1 2019-10-29 Christian Biesinger <cbiesinger@google.com>
3 * Makefile.in (HFILES_NO_SRCDIR): Add gdb_binary_search.h.
4 * dwarf2-frame.c (bsearch_fde_cmp): Update.
5 (dwarf2_frame_find_fde): Replace bsearch with gdb::binary_search.
6 * gdbsupport/gdb_binary_search.h: New file.
8 2019-10-29 Christian Biesinger <cbiesinger@google.com>
10 * NEWS: Mention new --with-system-gdbinit-dir option.
11 * config.in: Regenerate.
12 * configure: Regenerate.
13 * configure.ac: Add new option --with-system-gdbinit-dir.
14 * extension.c (get_ext_lang_of_file): Return extension_language_gdb
16 * main.c (get_init_files): Change system_gdbinit argument to
17 a vector and return the files in SYSTEM_GDBINIT_DIR in
18 addition to SYSTEM_GDBINIT.
19 (captured_main_1): Update.
20 (print_gdb_help): Update.
21 * top.c (print_gdb_configuration): Also print the value of
24 2019-10-28 Christian Biesinger <cbiesinger@google.com>
26 * gdbsupport/common-utils.h (startswith): Add an overloaded version
27 that takes gdb::string_view arguments.
29 2019-10-26 Tom de Vries <tdevries@suse.de>
31 * aarch64-linux-tdep.c: Fix typos in comments.
32 * aarch64-tdep.c: Same.
36 * arch/aarch64-insn.c: Same.
41 * cli/cli-decode.c: Same.
42 * cli/cli-script.c: Same.
43 * cli/cli-utils.h: Same.
44 * coff-pe-read.c: Same.
46 * compile/compile-cplus-symbols.c: Same.
47 * compile/compile-object-run.c: Same.
52 * dwarf-index-write.c: Same.
53 * dwarf2-frame.c: Same.
54 * dwarf2-frame.h: Same.
61 * guile/scm-objfile.c: Same.
70 * mi/mi-cmd-disas.c: Same.
71 * mi/mi-getopt.h: Same.
74 * nat/aarch64-sve-linux-sigcontext.h: Same.
76 * ppc-linux-nat.c: Same.
77 * ppc-linux-tdep.c: Same.
80 * prologue-value.h: Same.
81 * python/py-evtregistry.c: Same.
82 * python/py-instruction.h: Same.
83 * record-btrace.c: Same.
84 * record-full.c: Same.
86 * rs6000-tdep.c: Same.
89 * sparc-sol2-tdep.c: Same.
90 * sparc64-tdep.c: Same.
96 * tui/tui-data.h: Same.
98 * tui/tui-win.c: Same.
100 * unittests/rsp-low-selftests.c: Same.
112 * xtensa-tdep.c: Same.
114 2019-10-25 Ali Tamur <tamur@google.com>
116 * charset.c (find_charset_names): Reflect API change.
118 2019-10-25 Christian Biesinger <cbiesinger@google.com>
120 * symtab.c (struct demangled_name_entry): Change demangled name
121 to a unique_xmalloc_ptr<char>, now that we don't allocate it as
122 part of the struct anymore.
123 (symbol_set_names): No longer obstack allocate + copy the demangled
124 name, just store the allocated name from bfd.
126 2019-10-25 Tom Tromey <tromey@adacore.com>
128 * dwarf2-frame.c (dwarf2_cie_table): Now a typedef.
129 (bsearch_cie_cmp, add_cie): Remove.
130 (find_cie): Reimplement.
131 (decode_frame_entry_1, decode_frame_entry): Change type. Update.
132 (dwarf2_build_frame_info): Update.
134 2019-10-24 H.J. Lu <hongjiu.lu@intel.com>
137 * symfile.c (reread_symbols): Call forget_cached_source_info to
138 clear the stale source cache.
140 2019-10-24 Christian Biesinger <cbiesinger@google.com>
142 * configure: Regenerate.
143 * configure.ac: Remove code that sets python_has_threads.
145 2019-10-24 Christian Biesinger <cbiesinger@google.com>
147 * config.in: Regenerate.
148 * configure: Regenerate.
149 * configure.ac: Remove the code that uses sed to get the python
150 version and defines HAVE_LIBPYTHON2_6 / HAVE_LIBPYTHON2_7.
152 2019-10-24 Andrew Burgess <andrew.burgess@embecosm.com>
154 * python/py-progspace.c (pspy_block_for_pc): Return None for all
157 2019-10-23 Tom Tromey <tom@tromey.com>
159 * arc-tdep.c: Remove ".." from include.
160 * frv-tdep.c: Remove ".." from include.
161 * lm32-tdep.c: Remove ".." from include.
162 * microblaze-tdep.c: Remove ".." from include.
163 * or1k-tdep.h: Remove ".." from include.
164 * s12z-tdep.c: Remove ".." from include.
165 * Makefile.in (OPCODES_CFLAGS): Add comment.
166 (TOP_CFLAGS): New variable.
167 (INTERNAL_CFLAGS_BASE): Add TOP_CFLAGS.
169 2019-10-23 Tom Tromey <tom@tromey.com>
171 * Makefile.in (READLINE_DIR): Update.
173 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
175 * infcall.c (call_function_by_hand_dummy): Fix the function
176 comment. And extract out a code section into...
177 (reserve_stack_space): ...this new function.
179 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
181 * infcall.c (value_arg_coerce): Remove an unused parameter.
182 (call_function_by_hand_dummy): Update the call to
185 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
187 * infcall.c (call_function_by_hand_dummy): Refactor.
189 2019-10-23 Tankut Baris Aktemur <tankut.baris.aktemur@intel.com>
191 * MAINTAINERS (Write After Approval): Add Tankut Baris Aktemur.
193 2019-10-23 Tom Tromey <tom@tromey.com>
195 * configure: Rebuild.
196 * configure.ac: Don't check for sigprocmask.
197 * gdbsupport/common.m4 (GDB_AC_COMMON): Check for sigprocmask.
199 2019-10-23 Tom Tromey <tom@tromey.com>
201 * configure: Rebuild.
202 * acinclude.m4: Use m4_include, not sinclude.
204 2019-10-23 Tom de Vries <tdevries@suse.de>
207 * symtab.c (iterate_over_some_symtabs): Apply gdb_realpath on fullname.
209 2019-10-22 Christian Biesinger <cbiesinger@google.com>
211 * symtab.c (struct demangled_name_entry) <language>: Change from
212 bitfield to regular variable.
214 2019-10-22 Christian Biesinger <cbiesinger@google.com>
216 * symtab.c (struct demangled_name_entry): Add a constructor.
217 (free_demangled_name_entry): New function to call the destructor
218 for demangled_name_entry.
219 (create_demangled_names_hash): Pass free_demangled_name_entry to
221 (symbol_set_names): Call placement new for demangled_name_entry.
222 * utils.c: No longer include xxhash.h here, now that fast_hash
223 is inlined in the header.
224 * utils.h: Instead, include it here.
226 2019-10-22 Christian Biesinger <cbiesinger@google.com>
228 * Makefile.in: Link with libxxhash.
229 * config.in: Regenerate.
230 * configure: Regenerate.
231 * configure.ac: Search for libxxhash.
232 * utils.c (fast_hash): Use xxhash if present.
234 2019-10-22 Christian Biesinger <cbiesinger@google.com>
236 * utils.h (fast_hash): New function.
237 * symtab.c (hash_demangled_name_entry): Call new function
240 2019-10-22 Christian Biesinger <cbiesinger@google.com>
242 * symtab.c (struct demangled_name_entry): Change type of mangled
243 to gdb::string_view. Also adds a constructor that takes the
245 (hash_demangled_name_entry): Update.
246 (eq_demangled_name_entry): Update.
247 (free_demangled_name_entry): New function to call the destructor
248 now that this is not a POD anymore.
249 (create_demangled_names_hash): Pass free_demangled_name_entry to
251 (symbol_set_names): Update.
253 2019-10-21 Ali Tamur <tamu@google.com>
255 * dwarf2read.c (dir_index): Change type.
256 (file_name_index): Likewise.
257 (line_header::include_dir_at): Change comment and implementation on
258 whether it is DWARF 5.
259 (line_header::is_valid_file_index): New function.
260 (line_header::file_name_at): Change comment and implementation on
261 whether it is DWARF 5.
262 (line_header::file_names): Change to private field renamed as
263 m_file_names and introduce a new accessor method.
264 (line_header::file_names_size): New method.
265 (line_header::include_dirs): Change to private field and rename as
267 (dw2_get_file_names_reader): Define local var at a smaller scope and
269 (dwarf2_cu::setup_type_unit_groups): Reflect API change.
270 (process_structure_scope): Likewise.
271 (line_header::add_include_dir): Change message and reflect renaming.
272 (line_header::add_file_name): Likewise.
273 (read_formatted_entries): Handle DW_FORM_data16.
274 (dwarf_decode_line_header): Fix line header length calculation.
275 (psymtab_include_file_name): Change comment and API.
276 (lnp_state_machine::m_file): Update comment and reflect type change.
277 (lnp_state_machine::record_line): Reflect type change.
278 (dwarf_decode_lines): Reflect API change.
279 (file_file_name): Likewise.
280 (file_full_name): Likewise.
282 2019-10-21 Andrew Burgess <andrew.burgess@embecosm.com>
284 * objfiles.c (sort_cmp): Ensure that !(a < a) holds true.
286 2019-10-21 Tom Tromey <tom@tromey.com>
288 * tui/tui-winsource.h (tui_exec_info_content): Remove typedef.
290 2019-10-21 Tom Tromey <tom@tromey.com>
292 * configure.ac (nm.h): Conditionally create nm.h link. Subst
293 NM_H. Use AC_CONFIG_LINKS.
294 * configure: Rebuild.
295 * Makefile.in (NM_H): New variable.
296 (generated_files): Add NM_H. Remove gcore.
297 (nm.h, stamp-nmh): New targets.
299 2019-10-20 Tom Tromey <tom@tromey.com>
301 * objfiles.h (unlink_objfile, put_objfile_before): Don't declare.
302 * objfiles.c (unlink_objfile): Move earlier. Now static. Remove
304 (put_objfile_before): Now static.
306 2019-10-19 Simon Marchi <simon.marchi@polymtl.ca>
308 * gdbsupport/common-utils.h (startswith): Change return type to
311 2019-10-19 Christian Biesinger <cbiesinger@google.com>
313 * bcache.c (bcache::print_statistics): Use std::sort instead of qsort.
314 * breakpoint.c (bp_locations_compare): Rename to...
315 (bp_location_is_less_than): ...this, and change to std::sort semantics.
316 (update_global_location_list): Use std::sort instead of qsort.
317 * buildsym.c (compare_line_numbers): Rename to...
318 (lte_is_less_than): ...this, and change to std::sort semantics.
319 (buildsym_compunit::end_symtab_with_blockvector): Use std::sort
321 * disasm.c (compare_lines): Rename to...
322 (line_is_less_than): ...this, and change to std::sort semantics.
323 (do_mixed_source_and_assembly_deprecated): Call std::sort instead
325 * dwarf2-frame.c (qsort_fde_cmp): Rename to...
326 (fde_is_less_than): ...this, and change to std::sort semantics.
327 (dwarf2_build_frame_info): Call std::sort instead of qsort.
328 * mdebugread.c (compare_blocks):
329 (block_is_less_than): ...this, and change to std::sort semantics.
330 (sort_blocks): Call std::sort instead of qsort.
331 * objfiles.c (qsort_cmp): Rename to...
332 (sort_cmp): ...this, and change to std::sort semantics.
333 (update_section_map): Call std::sort instead of qsort.
334 * remote.c (compare_pnums): Remove.
335 (map_regcache_remote_table): Call std::sort instead of qsort.
336 * utils.c (compare_positive_ints): Remove.
337 * utils.h (compare_positive_ints): Remove.
338 * xcoffread.c (compare_lte): Remove.
339 (arrange_linetable): Call std::sort instead of qsort.
341 2019-10-19 Sergio Durigan Junior <sergiodj@redhat.com>
343 * symfile.c (init_entry_point_info): Fix typo.
344 * i386-darwin-tdep.c (darwin_dwarf_signal_frame_p): Fix typo.
346 2019-10-18 Tom de Vries <tdevries@suse.de>
348 * aarch64-tdep.c: Fix typos in comments.
351 * alpha-tdep.c: Same.
352 * alpha-tdep.h: Same.
354 * amd64-windows-tdep.c: Same.
357 * arch-utils.c: Same.
358 * arm-nbsd-tdep.c: Same.
361 * blockframe.c: Same.
364 * coff-pe-read.c: Same.
367 * darwin-nat.c: Same.
371 * dtrace-probe.c: Same.
372 * dwarf-index-write.c: Same.
373 * dwarf2-frame-tailcall.c: Same.
374 * dwarf2-frame.c: Same.
375 * dwarf2read.c: Same.
377 * exceptions.c: Same.
382 * gnu-v3-abi.c: Same.
384 * h8300-tdep.c: Same.
386 * i386-linux-tdep.c: Same.
388 * ia64-libunwind-tdep.c: Same.
394 * linux-thread-db.c: Same.
396 * mdebugread.c: Same.
398 * mn10300-tdep.c: Same.
401 * opencl-lang.c: Same.
404 * ppc-linux-nat.c: Same.
405 * ppc-linux-tdep.c: Same.
406 * ppc-sysv-tdep.c: Same.
409 * record-btrace.c: Same.
410 * record-full.c: Same.
411 * remote-fileio.c: Same.
413 * rs6000-tdep.c: Same.
415 * score-tdep.c: Same.
419 * sol-thread.c: Same.
420 * solib-svr4.c: Same.
424 * sparc-sol2-tdep.c: Same.
425 * sparc-tdep.c: Same.
426 * sparc64-tdep.c: Same.
431 * target-descriptions.c: Same.
432 * target-float.c: Same.
439 * windows-nat.c: Same.
441 * xstormy16-tdep.c: Same.
442 * xtensa-tdep.c: Same.
444 2019-10-17 Tom Tromey <tromey@adacore.com>
446 * configure: Rebuild.
447 * configure.ac: Use AC_CONFIG_HEADERS. Create stamp-h there, not
448 in AC_CONFIG_FILES invocation.
449 * Makefile.in (Makefile, data-directory/Makefile, stamp-h): Use
450 new-style config.status invocation.
452 2019-10-17 Tom de Vries <tdevries@suse.de>
454 * arm-nbsd-nat.c: Fix typos in comments.
456 * darwin-nat-info.c: Same.
457 * dwarf2read.c: Same.
466 * mdebugread.c: Same.
467 * moxie-tdep.c: Same.
468 * nto-procfs.c: Same.
470 * ppc-linux-tdep.c: Same.
472 * riscv-tdep.c: Same.
475 * sparc-linux-tdep.c: Same.
478 * target-descriptions.c: Same.
482 2019-10-16 Tom Tromey <tom@tromey.com>
484 * objfiles.h (struct objfile) <original_name>: Now const.
486 2019-10-16 Christian Biesinger <cbiesinger@google.com>
488 * gdbsupport/gdb_setjmp.h (SIGSETJMP): Allow passing in the value to
489 pass on to sigsetjmp's second argument.
490 * cp-support.c (gdb_demangle): Unblock SIGSEGV if we caught a crash.
492 2019-10-16 Keith Seitz <keiths@redhat.com>
495 * dwarf2read.c (dwarf2_per_objfile::locate_sections): Discard
496 sections whose size is greater than the file size.
498 2019-10-16 Jim Wilson <jimw@sifive.com>
500 * riscv-tdep.c (riscv_gcc_target_options): New.
501 (riscv_gnu_triplet_regexp): New.
502 (riscv_gdbarch_init): Call set_gdbarch_gcc_triplet_options and
503 set_gdbarch_gnu_triplet_regexp.
505 2019-10-16 Christian Biesinger <cbiesinger@google.com>
507 * Makefile.in: Add xml-builtin.h.
508 * features/feature_to_c.sh: Add an include for xml-builtin.h
509 to ensure that the compiler checks that the types match.
510 * xml-builtin.h: New file.
511 * xml-support.c (fetch_xml_builtin): Add missing const.
512 * xml-support.h: Remove declaration of xml_builtins.
514 2019-10-16 Tom de Vries <tdevries@suse.de>
517 * amd64-tdep.c (amd64_classify_aggregate_field): Factor out of ...
518 (amd64_classify_aggregate): ... here.
519 (amd64_classify_aggregate_field): Handled fiels of nested structs
522 2019-10-16 Tom de Vries <tdevries@suse.de>
525 * amd64-tdep.c (amd64_push_arguments): Handle AMD64_NO_CLASS in loop
526 that handles 'theclass'.
528 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
530 * linespec.c (decode_digits_ordinary): Update comment.
531 * make-target-delegates: No longer need to handle VEC case.
532 * memrange.c (normalize_mem_ranges): Update comment.
533 * namespace.c (add_using_directive): Update comment.
534 * objc-lang.c (uniquify_strings): Update comment.
535 * ppc-linux-nat.c (struct thread_points): Update comment.
536 * probe.h (find_probes_in_objfile): Update comment.
537 * target.h (enum flash_preserve_mode): Update comment.
538 * varobj.c (varobj_restrict_range): Update comment.
539 * varobj.h (varobj_list_children): Update comment.
541 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
543 * Makefile.in: Remove references to vec.h and vec.c.
544 * aarch64-tdep.c: No longer include vec.h.
545 * ada-lang.c: Likewise.
546 * ada-lang.h: Likewise.
547 * arm-tdep.c: Likewise.
549 * breakpoint.h: Likewise.
550 * charset.c: Likewise.
551 * cp-support.h: Likewise.
552 * dtrace-probe.c: Likewise.
553 * dwarf2read.c: Likewise.
554 * extension.h: Likewise.
555 * gdb_bfd.c: Likewise.
556 * gdbsupport/gdb_vecs.h: Likewise.
557 * gdbsupport/vec.c: Remove.
558 * gdbsupport/vec.h: Remove.
559 * gdbthread.h: Likewise.
560 * guile/scm-type.c: Likewise.
561 * inline-frame.c: Likewise.
562 * machoread.c: Likewise.
563 * memattr.c: Likewise.
564 * memrange.h: Likewise.
565 * namespace.h: Likewise.
566 * nat/linux-btrace.h: Likewise.
567 * osdata.c: Likewise.
568 * parser-defs.h: Likewise.
569 * progspace.h: Likewise.
570 * python/py-type.c: Likewise.
571 * record-btrace.c: Likewise.
572 * rust-exp.y: Likewise.
573 * solib-target.c: Likewise.
574 * stap-probe.c: Likewise.
575 * target-descriptions.c: Likewise.
576 * target-memory.c: Likewise.
577 * target.h: Likewise.
578 * varobj.c: Likewise.
579 * varobj.h: Likewise.
580 * xml-support.h: Likewise.
582 2019-10-15 Andrew Burgess <andrew.burgess@embecosm.com>
584 * gdb/dwarf2read.c (dwarf2_per_objfile::~dwarf2_per_objfile):
585 Update for new std::vector based implementation.
586 (process_psymtab_comp_unit_reader): Likewise.
587 (scan_partial_symbols): Likewise.
588 (recursively_compute_inclusions): Likewise.
589 (compute_compunit_symtab_includes): Likewise.
590 (process_imported_unit_die): Likewise.
591 (queue_and_load_dwo_tu): Likewise.
592 (follow_die_sig_1): Likewise.
593 * gdb/dwarf2read.h: Remove DEF_VEC_P.
594 (typedef dwarf2_per_cu_ptr): Remove.
595 (struct dwarf2_per_cu_data) <imported_symtabs_empty>: New
597 (struct dwarf2_per_cu_data) <imported_symtabs_push>: New function.
598 (struct dwarf2_per_cu_data) <imported_symtabs_size>: New function.
599 (struct dwarf2_per_cu_data) <imported_symtabs_free>: New function.
600 (struct dwarf2_per_cu_data) <imported_symtabs>: Change to
603 2019-10-15 Tom Tromey <tromey@adacore.com>
605 * windows-nat.c (windows_nat_target::resume): Use %x when logging
608 2019-10-15 Tom Tromey <tromey@adacore.com>
610 * windows-nat.c (windows_nat_target::fetch_registers)
611 (windows_nat_target::store_registers): Rename "pid" to "tid".
613 2019-10-15 Tom Tromey <tromey@adacore.com>
615 * gdbarch.h, gdbarch.c: Rebuild.
616 * gdbarch.sh (gcc_target_options): Change return type to
618 * compile/compile.c (get_args): Update.
619 * nios2-tdep.c (nios2_gcc_target_options): Return std::string.
620 * arm-linux-tdep.c (arm_linux_gcc_target_options): Return
622 * aarch64-linux-tdep.c (aarch64_linux_gcc_target_options): Return
624 * arch-utils.c (default_gcc_target_options): Return std::string.
625 * arch-utils.h (default_gcc_target_options): Return std::string.
626 * s390-tdep.c (s390_gcc_target_options): Return std::string.
628 2019-10-15 Christian Biesinger <cbiesinger@google.com>
630 * breakpoint.c (breakpoint_chain): Make static.
631 * tui/tui-winsource.c: Call iterate_over_breakpoints instead
632 of accessing breakpoint_chain.
634 2019-10-15 Christian Biesinger <cbiesinger@google.com>
636 * breakpoint.c (iterate_over_breakpoints): Change function pointer
637 to a gdb::function_view and return value to bool.
638 * breakpoint.h (iterate_over_breakpoints): Likewise.
639 * dummy-frame.c (pop_dummy_frame_bpt): Update.
640 (pop_dummy_frame): Update.
641 * guile/scm-breakpoint.c (bpscm_build_bp_list): Update.
642 (gdbscm_breakpoints): Update.
643 * python/py-breakpoint.c (build_bp_list): Update.
644 (gdbpy_breakpoints): Update.
645 * python/py-finishbreakpoint.c (bpfinishpy_detect_out_scope_cb):
647 (bpfinishpy_handle_stop): Update.
648 (bpfinishpy_handle_exit): Update.
649 * solib-svr4.c (svr4_update_solib_event_breakpoint): Update.
650 (svr4_update_solib_event_breakpoints): Update.
652 2019-10-15 Andreas Arnez <arnez@linux.ibm.com>
654 * s390-tdep.c (s390_effective_inner_type): Ignore static fields
655 when unwrapping single-field structs.
657 2019-10-14 Simon Marchi <simon.marchi@polymtl.ca>
659 * dwarf2read.c: Remove includes.
661 2019-10-13 Simon Marchi <simon.marchi@polymtl.ca>
663 * ui-out.c (ui_out::call_do_message): Silence
664 -Wformat-nonliteral warning.
666 2019-10-12 Simon Marchi <simon.marchi@polymtl.ca>
668 * breakpoint.c: Remove some includes: continuations.h, skip.h,
669 mi/mi-main.h, readline/readline.h, readline/history.h. Add
670 include: readline/tilde.h.
672 2019-10-12 Christian Biesinger <cbiesinger@google.com>
674 * remote.c (remote_target::get_trace_status): Remove declaration of
677 2019-10-12 Christian Biesinger <cbiesinger@google.com>
679 * cli/cli-cmds.c (max_user_call_depth): Move comment to header.
680 (show_user): Remove declaration of cmdlist.
681 * cli/cli-cmds.h (max_user_call_depth): Declare.
682 * cli/cli-script.c (execute_user_command): Remove declaration
683 of max_user_call_depth.
685 2019-10-11 Jim Wilson <jimw@sifive.com>
687 * gdbsupport/print-utils.h (pulongest): Fix comment.
688 (plongest): Likewise.
689 (phex): Add missing comment, mention leading zeros.
690 (phex_nz): Add mention of no leading zeros to comment.
692 * riscv-tdep.c (riscv_push_dummy_code): Change %lld to %s and use
693 plongest instead of unsigned long long cast.
695 2019-10-10 Christian Biesinger <cbiesinger@google.com>
697 * main.c (captured_main_1): Include gdbtk.h and remove declarations
698 for external_editor_command and gdbtk_test.
700 2019-10-10 Christian Biesinger <cbiesinger@google.com>
702 * mi/mi-cmd-var.c (varobjdebug): Remove declaration.
703 * varobj.c (varobjdebug): Move comment to...
704 * varobj.h (varobjdebug): ...here, and declare.
706 2019-10-09 Tom Tromey <tom@tromey.com>
708 * tui/tui-regs.c (tui_data_window::show_registers): Don't call
711 2019-10-09 Tom Tromey <tom@tromey.com>
713 * tui/tui-wingeneral.h (tui_delete_win): Don't declare.
714 * tui/tui-stack.c (tui_locator_window::rerender): Update.
715 * tui/tui-command.c (tui_cmd_window::resize)
716 (tui_refresh_cmd_win): Update.
717 * tui/tui-win.c (tui_resize_all, tui_set_focus_command): Update.
718 * tui/tui.c (tui_rl_other_window, tui_enable): Update.
719 * tui/tui-data.c (~tui_gen_win_info): Remove.
720 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
721 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
722 (tui_redisplay_readline, tui_mld_flush)
723 (tui_mld_erase_entire_line, tui_mld_getc, tui_getc): Update.
724 * tui/tui-regs.c (tui_data_window::delete_data_content_windows)
725 (tui_data_window::erase_data_content)
726 (tui_data_item_window::rerender)
727 (tui_data_item_window::refresh_window): Update.
728 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window)
729 (box_win, tui_gen_win_info::make_window)
730 (tui_gen_win_info::make_visible): Update.
731 (tui_delete_win): Remove.
732 * tui/tui-winsource.c
733 (tui_source_window_base::do_erase_source_content): Update.
734 (tui_show_source_line, tui_source_window_base::update_tab_width)
735 (tui_source_window_base::update_exec_info): Update.
736 * tui/tui-data.h (struct curses_deleter): New.
737 (struct tui_gen_win_info) <handle>: Now a unique_ptr.
738 (struct tui_gen_win_info) <~tui_gen_win_info>: Define.
740 2019-10-09 Tom Tromey <tom@tromey.com>
742 * tui/tui-wingeneral.h (struct tui_gen_win_info): Don't declare.
744 2019-10-09 Tom Tromey <tom@tromey.com>
746 * tui/tui-data.c (tui_win_is_auxiliary): Remove.
747 * tui/tui-data.h (tui_win_is_auxiliary): Don't declare.
749 2019-10-09 Tom Tromey <tom@tromey.com>
751 * tui/tui-disasm.c (tui_get_low_disassembly_address): Compute
752 window height directly.
753 * tui/tui-layout.h (tui_default_win_viewport_height): Don't
755 * tui/tui-layout.c (tui_default_win_height): Remove.
756 (tui_default_win_viewport_height): Remove.
758 2019-10-09 Tom Tromey <tom@tromey.com>
760 * tui/tui.h: Remove comments.
762 2019-10-09 Tom de Vries <tdevries@suse.de>
764 * python/lib/gdb/printer/bound_registers.py: Use
765 '^builtin_type_bound128' as regexp argument for
766 add_builtin_pretty_printer.
768 2019-10-09 Christian Biesinger <cbiesinger@google.com>
770 * guile/guile.c (guile_extension_script_ops): Remove forward
771 declaration and mark as static.
772 (guile_script_ops): Likewise.
773 (extension_language_guile): Move further down in the file so
774 it can reference the definitions for guile_{extension_,}script_ops.
776 2019-10-09 Andreas Arnez <arnez@linux.ibm.com>
778 * s390-tdep.c (390_process_record): Handle new arch13 instructions
779 except SORTL, DFLTCC, and KDSA.
781 2019-10-08 Tom Tromey <tromey@adacore.com>
783 * windows-nat.c (struct windows_thread_info_struct) <sf>: Remove.
784 (struct safe_symbol_file_add_args): Remove.
786 2019-10-08 Tom Tromey <tromey@adacore.com>
788 * windows-nat.c: Don't include buildsym-legacy.h.
790 2019-10-08 Tom Tromey <tromey@adacore.com>
792 * contrib/ari/gdb_ari.sh (%p): Allow gdb-specific %p extensions.
794 2019-10-08 Christian Biesinger <cbiesinger@google.com>
796 * gdbtypes.c (overload_debug): Move comment to header.
797 * gdbtypes.h (overload_debug): Declare.
798 * valops.c: Remove declaration of overload_debug, instead
801 2019-10-08 Christian Biesinger <cbiesinger@google.com>
803 * language.c (show_language_command): Pass lang_frame_mismatch_warn
805 (lang_frame_mismatch_warn): Make const, mark with N_(), and
807 * language.h (lang_frame_mismatch_warn): ... here. Also add
809 * top.c (lang_frame_mismatch_warn): Remove declaration.
810 (check_frame_language_change): Pass lang_frame_mismatch_warn
813 2019-10-07 Christian Biesinger <cbiesinger@google.com>
815 * c-lang.h (vtbl_ptr_name): Declare.
816 * cp-valprint.c (vtbl_ptr_name): Remove "extern" now that we get
818 * stabsread.c (define_symbol): Remove declaration of vtbl_ptr_name.
820 2019-10-07 Christian Biesinger <cbiesinger@google.com>
822 * charset.c (your_gdb_wchar_t_is_bogus): Replace with a
825 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
827 * ../Makefile.def (dependencies): Add all-libctf to all-gdb
828 * ../Makefile.in: Add "all-gdb: maybe-all-libctf"
829 * ctfread.c: New file.
830 * ctfread.h: New file.
831 * elfread.c: Include ctfread.h.
832 (struct elfinfo text_p): New member ctfsect.
833 (elf_locate_sections): Mark CTF section.
834 (elf_symfile_read): Call elfctf_build_psymtabs.
835 * Makefile.in (LIBCTF): Add.
838 (DIST): Add ctfread.c.
840 2019-10-07 Andrew Burgess <andrew.burgess@embecosm.com>
842 * ctfread.c (struct nextfield): Renamed to ...
843 (struct ctf_nextfield): ... this.
844 (struct field_info): Renamed to ...
845 (strut ctf_field_info): ... this.
846 (attach_fields_to_type): Update for renamed structures.
847 (ctf_add_member_cb): Likewise.
848 (ctf_add_enum_member_cb): Likewise.
849 (process_struct_members): Likewise.
850 (process_enum_type): Likewise.
852 2019-10-07 Weimin Pan <weimin.pan@oracle.com>
854 * tracectf.h: Rename, was ctf.h.
855 * tracectf.c: Rename, was ctf.c, replace ctf.h with tracectf.h.
856 * tracefile.c: Likewise.
857 * tracepoint.c: Remove unused include ctf.h.
858 * mi/mi-main.c: Likewise.
859 * Makefile.in Replace ctf.c with tracectf.c.
861 2019-10-06 Joel Brobecker <brobecker@adacore.com>
863 * version.in: Change version number to "9.0.50.DATE-git".
865 2019-10-03 Tom Tromey <tom@tromey.com>
868 * dwarf2read.c (quirk_rust_enum): Handle single-element unions.
870 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
872 * f-lang.c (f_language_defn): Use cp_get_symbol_name_matcher and
874 * NEWS: Add entry about nested function support.
876 2019-10-03 Bernhard Heckel <bernhard.heckel@intel.com>
877 Andrew Burgess <andrew.burgess@embecosm.com>
879 * cp-namespace.c (cp_search_static_and_baseclasses): Only search
880 for nested static variables when searchin VAR_DOMAIN.
881 * dwarf2read.c (add_partial_symbol): Add nested subroutines to the
882 global scope, update comment.
883 (add_partial_subprogram): Call add_partial_subprogram recursively
884 for nested subroutines when processinng Fortran.
885 (load_partial_dies): Process the child entities of a subprogram
886 when processing Fortran.
887 (partial_die_parent_scope): Handle building scope
888 for Fortran nested functions.
889 (process_die): Record that nested functions have a scope.
890 (new_symbol): Always record Fortran subprograms on the global
892 (determine_prefix): How to build the prefix for Fortran
895 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
897 * linux-nat.c (linux_nat_filter_event): Don't ignore SIGSTOP if we
898 have just sent the thread a SIGSTOP and are waiting for it to
901 2019-10-03 Andrew Burgess <andrew.burgess@embecosm.com>
903 * btrace.c (btrace_add_pc): Remove whitespace before the template
904 parameter in 'std::vector <...>'.
905 (parse_xml_btrace_block): Likewise.
906 (btrace_maint_decode_pt): Likewise.
907 (btrace_maint_update_packets): Likewise.
908 (btrace_maint_print_packets): Likewise.
909 * btrace.h (struct btrace_maint_info): Likewise.
910 * dwarf2read.c (struct type_unit_group): Likewise.
911 (build_type_psymtabs_reader): Likewise.
912 * gdbsupport/btrace-common.c (btrace_data_append): Likewise.
913 * gdbsupport/btrace-common.h (struct btrace_data_bts): Likewise.
914 * nat/linux-btrace.c (perf_event_read_bts): Likewise.
916 2019-10-03 Tom de Vries <tdevries@suse.de>
918 * cli/cli-style.c (_initialize_cli_style): Adding a '.' at the end of
919 the first line of the help text for set/show style metadata.
921 2019-10-02 Tom Tromey <tromey@adacore.com>
923 * Makefile.in (COMMON_SFILES): Add common-inferior.c.
924 * gdbsupport/common-inferior.c: New file.
925 * infcmd.c (startup_with_shell): Don't define.
926 * nat/fork-inferior.h (startup_with_shell): Don't declare.
927 * gdbsupport/common-inferior.h (startup_with_shell): Declare.
928 * inferior.h (startup_with_shell): Don't declare.
930 2019-10-02 Christian Biesinger <cbiesinger@google.com>
932 * gdbsupport/gdb_assert.h: Include errors.h.
933 * gdbsupport/gdb_string_view.h: Include gdb_assert.h.
935 2019-10-02 Tom Tromey <tromey@adacore.com>
937 * NEWS: Add $_ada_exception entry.
938 * ada-lang.c (struct ada_catchpoint): Add constructor.
939 <m_kind>: New member.
940 (allocate_location_exception, re_set_exception): Remove
942 (should_stop_exception): Compute $_ada_exception.
943 (check_status_exception, print_it_exception)
944 (print_one_exception, print_mention_exception): Remove
946 (allocate_location_catch_exception, re_set_catch_exception)
947 (check_status_exception, print_it_catch_exception)
948 (print_one_catch_exception, print_mention_catch_exception)
949 (print_recreate_catch_exception)
950 (allocate_location_catch_exception_unhandled)
951 (re_set_catch_exception_unhandled)
952 (check_status_exception, print_it_catch_exception_unhandled)
953 (print_one_catch_exception_unhandled)
954 (print_mention_catch_exception_unhandled)
955 (print_recreate_catch_exception_unhandled)
956 (allocate_location_catch_assert, re_set_catch_assert)
957 (check_status_assert, print_it_catch_assert)
958 (print_one_catch_assert, print_mention_catch_assert)
959 (print_recreate_catch_assert)
960 (allocate_location_catch_handlers, re_set_catch_handlers)
961 (check_status_handlers, print_it_catch_handlers)
962 (print_one_catch_handlers, print_mention_catch_handlers)
963 (print_recreate_catch_handlers): Remove.
964 (create_ada_exception_catchpoint): Update.
965 (initialize_ada_catchpoint_ops): Update.
967 2019-10-02 Tom Tromey <tromey@adacore.com>
969 * ada-lang.c (ada_lookup_simple_minsyms): Remove.
970 (create_excep_cond_exprs): Simplify exception string computation.
971 (ada_exception_catchpoint_cond_string): Likewise.
973 2019-10-02 Tom Tromey <tromey@adacore.com>
975 * symmisc.c (dump_msymbols): Don't use MSYMBOL_VALUE_ADDRESS.
976 * ada-lang.c (lesseq_defined_than): Handle
978 * dwarf2read.c (dwarf2_per_objfile): Add can_copy
980 (dwarf2_has_info): Likewise.
981 (new_symbol): Set maybe_copied on symbol when
983 * dwarf2read.h (dwarf2_per_objfile): Add can_copy
985 <can_copy>: New member.
986 * elfread.c (record_minimal_symbol): Set maybe_copied
987 on symbol when appropriate.
988 (elf_symfile_read): Update call to dwarf2_has_info.
989 * minsyms.c (lookup_minimal_symbol_linkage): New
991 * minsyms.h (lookup_minimal_symbol_linkage): Declare.
992 * symtab.c (get_symbol_address, get_msymbol_address):
994 * symtab.h (get_symbol_address, get_msymbol_address):
996 (SYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_ADDRESS): Handle
998 (struct symbol, struct minimal_symbol) <maybe_copied>:
1001 2019-10-02 Tom Tromey <tromey@adacore.com>
1003 * source.c (struct current_source_location): New.
1004 (current_source_key): New global.
1005 (current_source_symtab, current_source_line)
1006 (current_source_pspace): Remove.
1007 (get_source_location): New function.
1008 (get_current_source_symtab_and_line)
1009 (set_default_source_symtab_and_line)
1010 (set_current_source_symtab_and_line)
1011 (clear_current_source_symtab_and_line, select_source_symtab)
1012 (info_source_command, print_source_lines_base)
1013 (info_line_command, search_command_helper, _initialize_source):
1016 2019-10-02 Tom Tromey <tromey@adacore.com>
1018 * source.c (select_source_symtab): Don't call
1019 decode_line_with_current_source.
1021 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1023 * symtab.c (lookup_global_symbol): Search global block.
1025 2019-10-02 Tom Tromey <tromey@adacore.com>
1027 * coffread.c (process_coff_symbol): Update.
1028 * dwarf2read.c (var_decode_location, new_symbol): Update.
1029 * mdebugread.c (parse_symbol): Update.
1030 * objfiles.c (relocate_one_symbol): Update.
1031 * stabsread.c (define_symbol, fix_common_block)
1032 (scan_file_globals): Update.
1033 * symtab.h (SYMBOL_VALUE_ADDRESS): Expand to an rvalue.
1034 (SET_SYMBOL_VALUE_ADDRESS): New macro.
1035 * xcoffread.c (process_xcoff_symbol): Update.
1037 2019-10-02 Andreas Arnez <arnez@linux.ibm.com>
1039 * MAINTAINERS: Update my email address.
1041 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1043 * dwarf2read.c (struct type_unit_group) <tus>: Convert to
1045 (build_type_psymtabs_reader): Update for std::vector.
1046 (build_type_psymtab_dependencies): Likewise.
1047 * dwarf2read.h: Remove use of DEF_VEC_P.
1048 (typedef sig_type_ptr): Delete.
1050 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1052 * btrace.c (btrace_maint_clear): Update to handle change from VEC
1054 (btrace_maint_decode_pt): Likewise, and move allocation of the
1055 vector outside of the loop.
1056 (btrace_maint_update_packets): Update to handle change from VEC to
1058 (btrace_maint_print_packets): Likewise.
1059 (maint_info_btrace_cmd): Likewise.
1060 * btrace.h: Remove use of DEF_VEC_O.
1061 (typedef btrace_pt_packet_s): Delete.
1062 (struct btrace_maint_info) <packets>: Change fromm VEC to
1064 * gdbsupport/btrace-common.h: Remove 'vec.h' include.
1066 2019-10-02 Andrew Burgess <andrew.burgess@embecosm.com>
1068 * btrace.c (btrace_compute_ftrace_bts): Update for std::vector,
1069 make accesses into the vector constant references.
1070 (btrace_add_pc): Update for std::vector.
1071 (btrace_stitch_bts): Likewise.
1072 (parse_xml_btrace_block): Likewise.
1073 (btrace_maint_update_packets): Likewise.
1074 (btrace_maint_print_packets): Likewise.
1075 (maint_info_btrace_cmd): Likewise.
1076 * gdbsupport/btrace-common.c (btrace_data::fini): Update for
1078 (btrace_data::empty): Likewise.
1079 (btrace_data_append): Likewise.
1080 * gdbsupport/btrace-common.h: Remove use of DEF_VEC_O.
1081 (typedef btrace_block_s): Delete.
1082 (struct btrace_block): Add constructor.
1083 (struct btrace_data_bts) <blocks>: Change to std::vector.
1084 * nat/linux-btrace.c (perf_event_read_bts): Update for
1086 (linux_read_bts): Likewise.
1088 2019-10-01 Tom Tromey <tom@tromey.com>
1090 * cli/cli-logging.c (show_logging_filename): Use styled_string.
1092 2019-10-01 Tom Tromey <tom@tromey.com>
1094 * stack.c (print_frame, info_frame_command_core): Use
1096 * linux-thread-db.c (try_thread_db_load_1)
1097 (try_thread_db_load_from_pdir_1): Use styled_string.
1098 * auto-load.c (file_is_auto_load_safe, execute_script_contents)
1099 (auto_load_section_scripts, info_auto_load_local_gdbinit)
1100 (maybe_print_unsupported_script_warning)
1101 (maybe_print_script_not_found_warning): Use styled_string.
1102 * ada-lang.c (user_select_syms): Use styled_string.
1104 2019-10-01 Tom Tromey <tom@tromey.com>
1106 * p-lang.c (pascal_printstr): Use metadata style.
1107 * value.c (show_convenience): Use metadata style.
1108 * valprint.c (valprint_check_validity, val_print_optimized_out)
1109 (val_print_not_saved, val_print_unavailable)
1110 (val_print_invalid_address, generic_val_print, val_print)
1111 (value_check_printable, val_print_array_elements): Use metadata
1113 * ui-out.h (class ui_out) <field_fmt>: New overload.
1114 <do_field_fmt>: Add style parameter.
1115 * ui-out.c (ui_out::field_fmt): New overload.
1116 * typeprint.c (type_print_unknown_return_type)
1117 (val_print_not_allocated, val_print_not_associated): Use metadata
1119 * tui/tui-out.h (class tui_ui_out) <do_field_fmt>: Add style
1121 * tui/tui-out.c (tui_ui_out::do_field_fmt): Update.
1122 * tracepoint.c (tvariables_info_1): Use metadata style.
1123 * stack.c (print_frame_arg, print_frame_info, print_frame)
1124 (info_frame_command_core): Use metadata style.
1125 * skip.c (info_skip_command): Use metadata style.
1126 * rust-lang.c (rust_print_enum): Use metadata style.
1127 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
1129 * python/py-framefilter.c (py_print_single_arg): Use metadata
1131 * printcmd.c (do_one_display, print_variable_and_value): Use
1133 * p-valprint.c (pascal_val_print)
1134 (pascal_object_print_value_fields): Use metadata style.
1135 * p-typeprint.c (pascal_type_print_base): Use metadata style.
1136 * mi/mi-out.h (class mi_ui_out) <do_field_fmt>: Add style
1138 * mi/mi-out.c (mi_ui_out::do_field_fmt): Update.
1139 * m2-valprint.c (m2_print_long_set): Use metadata style.
1140 * m2-typeprint.c (m2_print_type): Use metadata style.
1141 * infcmd.c (print_return_value_1): Use metadata style.
1142 * gnu-v3-abi.c (print_one_vtable): Use metadata style.
1143 * f-valprint.c (info_common_command_for_block): Use metadata
1145 * f-typeprint.c (f_type_print_base): Use metadata style.
1146 * expprint.c (print_subexp_standard): Use metadata style.
1147 * cp-valprint.c (cp_print_value_fields): Use metadata style.
1148 * cli/cli-style.h (class cli_style_option): Add constructor.
1149 (metadata_style): Declare.
1150 * cli/cli-style.c (metadata_style): New global.
1151 (_initialize_cli_style): Register metadata style.
1152 * cli-out.h (class cli_ui_out) <do_field_fmt>: Add style
1154 * cli-out.c (cli_ui_out::do_field_fmt): Update.
1155 * c-typeprint.c (c_type_print_base_struct_union)
1156 (c_type_print_base_1): Use metadata style.
1157 * breakpoint.c (watchpoint_value_print)
1158 (print_one_breakpoint_location): Use metadata style.
1159 * break-catch-syscall.c (print_one_catch_syscall): Use metadata
1161 * break-catch-sig.c (signal_catchpoint_print_one): Use metadata
1163 * ada-valprint.c (val_print_packed_array_elements, printstr)
1164 (print_field_values, ada_val_print_ref, ada_val_print): Use
1166 * ada-typeprint.c (print_array_type, ada_print_type): Use metadata
1168 * ada-tasks.c (print_ada_task_info, info_task): Use metadata
1170 * ada-lang.c (user_select_syms): Use metadata style.
1172 2019-10-01 Tom Tromey <tom@tromey.com>
1174 * cli/cli-cmds.c (pwd_command): Style output.
1176 2019-10-01 Pedro Alves <palves@redhat.com>
1177 Tom Tromey <tom@tromey.com>
1179 * symtab.c (print_symbol_info): Use %ps.
1180 (print_msymbol_info): Use %ps.
1181 * symfile.c (symbol_file_add_with_addrs): Use %ps.
1182 * printcmd.c (print_variable_and_value): Use %ps.
1183 * macrocmd.c (show_pp_source_pos): Use %ps.
1184 * infrun.c (print_exited_reason): Use ui_out::message.
1185 * breakpoint.c (watchpoint_check, print_one_breakpoint_location)
1186 (describe_other_breakpoints): Use ui_out::message and new
1188 (say_where): Use new formats.
1189 (bkpt_print_it, tracepoint_print_one_detail): Use ui_out::message
1192 2019-10-01 Pedro Alves <palves@redhat.com>
1193 Tom Tromey <tom@tromey.com>
1195 * unittests/format_pieces-selftests.c: Add gdb_format parameter.
1196 (test_gdb_formats): New function.
1197 (run_tests): Call it.
1198 (test_format_specifier): Update.
1199 * utils.h (fputs_filtered): Update comment.
1200 (vfprintf_styled, vfprintf_styled_no_gdbfmt)
1201 (fputs_styled_unfiltered): Declare.
1202 * utils.c (fputs_styled_unfiltered): New function.
1203 (vfprintf_maybe_filtered): Add gdbfmt parameter.
1204 (vfprintf_filtered): Update.
1205 (vfprintf_unfiltered, vprintf_filtered): Update.
1206 (vfprintf_styled, vfprintf_styled_no_gdbfmt): New functions.
1207 * ui-out.h (enum ui_out_flag) <unfiltered_output,
1208 disallow_ui_out_field>: New constants.
1209 (enum class field_kind): New.
1210 (struct base_field_s, struct signed_field_s): New.
1211 (signed_field): New function.
1212 (struct string_field_s): New.
1213 (string_field): New function.
1214 (struct styled_string_s): New.
1215 (styled_string): New function.
1216 (class ui_out) <message>: Add comment.
1217 <vmessage, call_do_message>: New methods.
1218 <do_message>: Add style parameter.
1219 * ui-out.c (ui_out::call_do_message, ui_out::vmessage): New
1221 (ui_out::message): Rewrite.
1222 * mi/mi-out.h (class mi_ui_out) <do_message>: Add style
1224 * mi/mi-out.c (mi_ui_out::do_message): Add style parameter.
1225 * gdbsupport/format.h (class format_pieces) <format_pieces>: Add
1226 gdb_extensions parameter.
1227 (class format_piece): Add parameter to constructor.
1228 (n_int_args): New field.
1229 * gdbsupport/format.c (format_pieces::format_pieces): Add
1230 gdb_extensions parameter. Handle '*'.
1231 * cli-out.h (class cli_ui_out) <do_message>: Add style parameter.
1232 * cli-out.c (cli_ui_out::do_message): Add style parameter. Call
1233 vfprintf_styled_no_gdbfmt.
1234 (cli_ui_out::do_field_string, cli_ui_out::do_spaces)
1235 (cli_ui_out::do_text, cli_ui_out::field_separator): Allow
1237 * ui-style.h (struct ui_file_style) <ptr>: New method.
1239 2019-10-01 Tom Tromey <tom@tromey.com>
1241 * unittests/format_pieces-selftests.c: Update. Add final format.
1242 * gdbsupport/format.c (format_pieces::format_pieces): Don't add
1243 empty literal pieces.
1245 2019-10-01 Tom Tromey <tom@tromey.com>
1247 * ui-out.h (enum class ui_out_style_kind): Remove.
1248 (class ui_out) <field_string, field_stsream, do_field_string>:
1249 Change type of "style".
1250 * ui-out.c (ui_out::field_core_addr, ui_out::field_stream)
1251 (ui_out::field_string): Update.
1252 * tui/tui-out.h (class tui_ui_out) <do_field_string>: Change type
1254 * tui/tui-out.c (tui_ui_out::do_field_string): Update.
1255 * tracepoint.c (print_one_static_tracepoint_marker): Update.
1256 * stack.c (print_frame_arg, print_frame_info, print_frame):
1258 * source.c (print_source_lines_base): Update.
1259 * solib.c (info_sharedlibrary_command): Update.
1260 * skip.c (info_skip_command): Update.
1261 * record-btrace.c (btrace_call_history_src_line)
1262 (btrace_call_history): Update.
1263 * python/py-framefilter.c (py_print_frame): Update.
1264 * mi/mi-out.h (class mi_ui_out) <do_field_string>: Change type of
1266 * mi/mi-out.c (mi_ui_out::do_table_header)
1267 (mi_ui_out::do_field_signed, mi_ui_out::do_field_unsigned)
1268 (mi_ui_out::do_field_string): Update.
1269 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
1271 * cli-out.h (class cli_ui_out) <do_field_string>: Change type of
1273 * cli-out.c (cli_ui_out::do_table_header)
1274 (cli_ui_out::do_field_signed, cli_ui_out::do_field_unsigned)
1275 (cli_ui_out::do_field_skip, cli_ui_out::do_field_string)
1276 (cli_ui_out::do_field_fmt): Update.
1277 * breakpoint.c (print_breakpoint_location): Update.
1278 (update_static_tracepoint): Update.
1280 2019-10-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1282 * main.c (relocate_gdbinit_path_maybe_in_datadir): Remove std::string
1283 conversion of gdb_datadir.
1284 (captured_main_1): Remove xstrdup when assigning to gdb_datadir,
1285 remove not needed c_str ().
1287 2019-09-30 Ali Tamur <tamur@google.com>
1289 * dwarf2read.c (skip_one_die): Handle DW_FORM_strx forms.
1290 (dwarf2_string_attr): Likewise.
1292 2019-09-30 Ali Tamur <tamur@google.com>
1294 * dwarf2read.c (process_full_comp_unit): Remove whitespace at the EOL.
1295 (process_full_type_unit): Likewise.
1296 (dump_die_shallow): Likewise.
1297 (cu_debug_loc_section): Likewise.
1299 2019-09-28 Christian Biesinger <cbiesinger@google.com>
1301 * minsyms.c (compare_minimal_symbols): Rename to...
1302 (minimal_symbol_is_less_than): ...this, and adjust to STL
1303 conventions (return bool, take arguments as references)
1304 (minimal_symbol_reader::install): Call std::sort instead
1307 2019-09-29 Christian Biesinger <cbiesinger@google.com>
1309 * minsyms.h (msymbol_hash): Document that this is a case-insensitive
1311 * objfiles.h (struct objfile_per_bfd_storage) <demangled_names_hash,
1312 msymbol_hash, msymbol_demangled_hash>: Improve comments.
1314 2019-09-30 Simon Marchi <simon.marchi@polymtl.ca>
1316 * psymtab.c (add_psymbol_to_list): Move comment to psympriv.h.
1317 * psympriv.h (add_psymbol_to_list): Move comment here and update
1320 2019-09-29 Tom de Vries <tdevries@suse.de>
1322 * contrib/cc-with-tweaks.sh (get_tmpdir): New function.
1323 Use $tmpdir/$(basename "$output_file").dwz instead of
1324 "${output_file}.dwz".
1326 2019-09-28 Simon Marchi <simon.marchi@polymtl.ca>
1329 * hppa-linux-nat.c: Include gdbarch.h.
1331 2019-09-26 Christian Biesinger <cbiesinger@google.com>
1333 * blockframe.c (find_pc_partial_function): Change return type to bool.
1334 * elfread.c (elf_gnu_ifunc_resolve_name): Likewise.
1335 * minsyms.c (in_gnu_ifunc_stub): Likewise.
1336 (stub_gnu_ifunc_resolve_name): Likewise.
1337 * symtab.c (compare_filenames_for_search): Likewise.
1338 (compare_glob_filenames_for_search): Likewise.
1339 (matching_obj_sections): Likewise.
1340 (symbol_matches_domain): Likewise.
1341 (find_line_symtab): Change out param EXACT_MATCH to bool *.
1342 (find_line_pc): Change return type to bool.
1343 (find_line_pc_range): Likewise.
1344 (producer_is_realview): Likewise.
1345 * symtab.h (symbol_matches_domain): Likewise.
1346 (find_pc_partial_function): Likewise.
1347 (find_pc_line_pc_range): Likewise.
1348 (in_gnu_ifunc_stub): Likewise.
1349 (struct gnu_ifunc_fns) <gnu_ifunc_resolve_name>: Likewise.
1350 (find_line_pc): Likewise.
1351 (find_line_pc_range): Likewise.
1352 (matching_obj_sections): Likewise.
1353 (find_line_symtab): Change out parameter to bool.
1354 (producer_is_realview): Change return type to bool.
1355 (compare_filenames_for_search): Likewise.
1356 (compare_glob_filenames_for_search): Likewise.
1358 2019-09-26 Tom Tromey <tom@tromey.com>
1360 * Makefile.in (COMMON_SFILES): Remove gdb_usleep.c.
1361 (HFILES_NO_SRCDIR): Remove gdb_usleep.h.
1362 * gdb_usleep.h: Remove.
1363 * gdb_usleep.c: Remove.
1364 * utils.c: Don't include gdb_usleep.h.
1366 2019-09-26 Tom Tromey <tromey@adacore.com>
1368 * python/py-type.c (type_to_type_object): Call check_typedef
1371 2019-09-26 Tom Tromey <tom@tromey.com>
1373 * utils.h (initialize_utils): Don't declare.
1374 * top.c (gdb_init): Don't call initialize_utils.
1375 * utils.c (initialize_utils): Remove. Move contents...
1376 (_initialize_utils): ... here.
1378 2019-09-25 Tom Tromey <tom@tromey.com>
1380 * python/py-objfile.c (objfpy_get_build_id): Use bin2hex.
1381 * utils.h (make_hex_string): Don't declare.
1382 * utils.c (make_hex_string): Remove.
1384 2019-09-24 Tom de Vries <tdevries@suse.de>
1387 * amd64-linux-nat.c (amd64_linux_nat_target::fetch_registers):
1388 Initialize xstateregs before ptrace PTRACE_GETREGSET call.
1390 2019-09-23 Dimitar Dimitrov <dimitar@dinux.eu>
1392 * NEWS: Mention new simulator port for PRU.
1394 2019-09-23 Christian Biesinger <cbiesinger@google.com>
1396 * ada-exp.y (write_object_remaining): Update.
1397 * ada-lang.c (ada_decode): Return a std::string instead of a char*
1398 and eliminate the static buffer.
1399 (ada_decode_symbol): Update.
1400 (ada_la_decode): Update.
1401 (ada_sniff_from_mangled_name): Update.
1402 (is_valid_name_for_wild_match): Update.
1403 (ada_lookup_name_info::matches): Update and simplify.
1404 (name_matches_regex): Update.
1405 (ada_add_global_exceptions): Update.
1406 * ada-lang.h (ada_decode): Update signature.
1407 * ada-varobj.c (ada_varobj_describe_simple_array_child): Update.
1408 * dwarf-index-write.c (debug_names::insert): Update.
1410 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1412 * solib-svr4.c (svr4_iterate_over_objfiles_in_search_order): Fix
1415 2019-09-21 Simon Marchi <simon.marchi@polymtl.ca>
1417 * breakpoint.h (bp_location) <inserted, permanent, duplicate>:
1418 Change "nonzero" to "true" in documentation.
1420 2019-09-20 Christian Biesinger <cbiesinger@google.com>
1422 * solib-darwin.c (darwin_lookup_lib_symbol): Remove.
1423 (_initialize_darwin_solib): Don't set
1424 darwin_so_ops.lookup_lib_global_symbol.
1425 * solib-svr4.c (set_solib_svr4_fetch_link_map_offsets): Call
1426 set_gdbarch_iterate_over_objfiles_in_search_order.
1427 (elf_lookup_lib_symbol): Rename to...
1428 (svr4_iterate_over_objfiles_in_search_order): this, and update
1429 to iterate semantics.
1430 (_initialize_svr4_solib): Don't set lookup_lib_global_symbol.
1431 * solib.c (solib_global_lookup): Remove.
1432 * solist.h (struct target_so_ops): Remove lookup_lib_global_symbol.
1433 (solib_global_lookup): Remove.
1434 * symtab.c (lookup_global_or_static_symbol): Remove call to
1435 solib_global_lookup.
1437 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1439 * NEWS: Move entries about default MI version now being
1440 version 3, and about the GDB/MI fix for multi-location
1441 breakpoints to the "since GDB 8.3" section.
1443 2019-09-20 Joel Brobecker <brobecker@adacore.com>
1447 2019-09-20 Ulrich Weigand <uweigand@de.ibm.com>
1449 * NEWS: Mention that Cell/B.E. debugging support was removed.
1450 * MAINTAINERS: Remove spu target.
1452 * config/djgpp/fnchange.lst: Remove entries for removed files.
1454 * Makefile.in (ALL_TARGET_OBS): Remove solib-spu.o,
1455 spu-multiarch.o, and spu-tdep.o.
1456 (HFILES_NO_SRCDIR): Remove solib-spu.h and spu-tdep.h.
1457 (ALLDEPFILES): Remove solib-spu.c, spu-linux-nat.c,
1458 spu-multiarch.c, and spu-tdep.c.
1459 * spu-linux-nat.c: Remove file.
1460 * spu-multiarch.c: Remove file.
1461 * spu-tdep.c: Remove file.
1462 * spu-tdep.h: Remove file.
1463 * solib-spu.c: Remove file.
1464 * solib-spu.h: Remove file.
1466 * configure.host (powerpc64*-*-linux*): Remove Cell/B.E. support.
1467 * configure.nat (spu-linux): Remove.
1468 * configure.tgt (powerpc*-*-linux*): Remove solib-spu.o and
1469 solib-multiarch.o from gdb_target_obs.
1472 * arch/ppc-linux-common.h (struct ppc_linux_features): Remove "cell"
1474 (ppc_linux_no_features): Update.
1475 * arch/ppc-linux-common.c (ppc_linux_match_description): Remove
1477 * arch/ppc-linux-tdesc.h (tdesc_powerpc_cell32l): Remove declaration.
1478 (tdesc_powerpc_cell64l): Likewise.
1479 * nat/ppc-linux.h (PPC_FEATURE_CELL): Remove.
1480 * ppc-linux-nat.c (ppc_linux_nat_target::read_description): Remove
1482 * ppc-linux-tdep.h: Do not include "solib-spu.h" or "spu-tdep.h".
1483 Do not include "features/rs6000/powerpc-cell32l.c" or
1484 "features/rs6000/powerpc-cell64l.c".
1485 (ppc_linux_spu_section): Remove.
1486 (ppc_linux_core_read_description): Remove Cell/B.E. support.
1487 (spe_context_objfile, spe_context_lm_addr, spe_context_offset,
1488 spe_context_cache_ptid, spe_context_cache_ptid): Remove.
1489 (ppc_linux_spe_context_lookup): Remove.
1490 (ppc_linux_spe_context_inferior_created): Remove.
1491 (ppc_linux_spe_context_solib_loaded): Remove.
1492 (ppc_linux_spe_context_solib_unloaded): Remove.
1493 (ppc_linux_spe_context): Remove.
1494 (struct ppu2spu_cache): Remove.
1495 (ppu2spu_prev_arch, ppu2spu_this_id, ppu2spu_prev_register): Remove.
1496 (struct ppu2spu_data): Remove.
1497 (ppu2spu_unwind_register, ppu2spu_sniffer, ppu2spu_dealloc_cache,
1498 ppu2spu_unwind): Remove.
1499 (ppc_linux_init_abi): Remove Cell/B.E. support.
1500 * rs6000-tdep.h (rs6000_gdbarch_init): Remove Cell/B.E. support.
1502 * features/Makefile (rs6000/powerpc-cell32l-expedite): Remove.
1503 (rs6000/powerpc-cell64l-expedite): Likewise
1504 (WHICH): Remove rs6000/powerpc-cell32l and rs6000/powerpc-cell64l.
1505 (XMLTOC): Remove rs6000/powerpc-cell32l.xml and
1506 rs6000/powerpc-cell64l.xml.
1507 * features/rs6000/powerpc-cell32l.xml: Remove.
1508 * features/rs6000/powerpc-cell64l.xml: Likewise.
1509 * features/rs6000/powerpc-cell32l.c: Remove generated file.
1510 * features/rs6000/powerpc-cell64l.c: Likewise.
1511 * regformats/rs6000/powerpc-cell32l.dat: Remove generated file.
1512 * regformats/rs6000/powerpc-cell64l.dat: Likewise.
1513 * regformats/reg-spu.dat: Remove.
1515 * target.h (enum target_object): Remove TARGET_OBJECT_SPU.
1516 * corelow.c (struct spuid_list): Remove.
1517 (add_to_spuid_list): Remove.
1518 (core_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1519 * remote.c (PACKET_qXfer_spu_read, PACKET_qXfer_spu_write): Remove.
1520 (remote_protocol_features): Remove associated entries.
1521 (_initialize_remote): No longer initialize them.
1522 (remote_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1523 * linux-nat.c (SPUFS_MAGIC): Remove.
1524 (linux_proc_xfer_spu): Remove.
1525 (spu_enumerate_spu_ids): Remove.
1526 (linux_nat_target::xfer_partial): Remove support for TARGET_OBJECT_SPU.
1527 * linux-tdep.c (-linux_spu_make_corefile_notes): Remove.
1528 (linux_make_corefile_notes): No longer call it.
1530 * regcache.c (cooked_read_test): Remove bfd_arch_spu special case.
1531 (cooked_write_test): Likewise.
1533 2019-09-20 Tom Tromey <tom@tromey.com>
1535 * NEWS: Mention case-sensitivity of TUI commands.
1536 * tui/tui-win.c (tui_set_focus_command): Now case-sensitive.
1537 (tui_set_win_height_command, parse_scrolling_args): Likewise.
1538 * tui/tui-layout.c (tui_layout_command): Now case-sensitive.
1540 2019-09-20 Tom Tromey <tom@tromey.com>
1542 * tui/tui-source.c (tui_source_window::set_contents): Use
1543 make_unique_xstrdup.
1544 * tui/tui-disasm.c (tui_disasm_window::set_contents): Use
1545 make_unique_xstrdup.
1547 2019-09-20 Tom Tromey <tom@tromey.com>
1549 * tui/tui-data.c: Remove separator comments.
1550 * tui/tui-layout.c: Remove separator comments.
1551 * tui/tui-win.c: Remove separator comments.
1552 * tui/tui-wingeneral.c: Remove separator comments.
1554 2019-09-20 Tom Tromey <tom@tromey.com>
1556 * tui/tui.h (strcat_to_buf): Don't declare.
1557 * tui/tui.c (strcat_to_buf): Remove.
1559 2019-09-20 Tom Tromey <tom@tromey.com>
1561 * tui/tui-source.h (struct tui_source_window) <m_fullname>: Rename
1563 * tui/tui-source.c (tui_source_window::set_contents)
1564 (tui_source_window::location_matches_p)
1565 (tui_source_window::maybe_update): Update.
1567 2019-09-20 Tom Tromey <tom@tromey.com>
1569 * tui/tui-regs.h (struct tui_data_window) <get_current_group>:
1571 <m_regs_content, m_regs_column_count, m_current_group>: Add "m_"
1573 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
1574 (tui_data_window::line_from_reg_element_no)
1575 (tui_data_window::first_reg_element_no_inline)
1576 (tui_data_window::show_registers)
1577 (tui_data_window::show_register_group)
1578 (tui_data_window::display_registers_from)
1579 (tui_data_window::display_registers_from_line)
1580 (tui_data_window::first_data_item_displayed)
1581 (tui_data_window::delete_data_content_windows)
1582 (tui_data_window::erase_data_content)
1583 (tui_data_window::do_scroll_vertical)
1584 (tui_data_window::refresh_window)
1585 (tui_data_window::check_register_values): Update.
1587 2019-09-20 Tom Tromey <tom@tromey.com>
1589 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN): Remove define.
1590 (struct tui_locator_window) <full_name, proc_name>: Now
1592 * tui/tui-stack.c (tui_locator_window::make_status_line)
1593 (tui_locator_window::set_locator_fullname)
1594 (tui_locator_window::set_locator_info): Update.
1595 * tui/tui-source.c (tui_source_window::set_contents)
1596 (tui_source_window::showing_source_p): Update.
1598 2019-09-20 Tom Tromey <tom@tromey.com>
1600 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
1601 Don't call tui_locator_win_info_ptr.
1603 2019-09-20 Tom Tromey <tom@tromey.com>
1605 * tui/tui-win.c (tui_resize_all): Don't call refresh.
1607 2019-09-20 Tom Tromey <tom@tromey.com>
1609 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use 1 as
1611 * tui/tui-stack.c (tui_locator_window::rerender): Call scrollok.
1612 * tui/tui-layout.c (show_source_disasm_command, show_data)
1613 (show_source_or_disasm_and_command): Use 1 as height for locator.
1615 2019-09-20 Tom Tromey <tom@tromey.com>
1617 * tui/tui.c (tui_enable): Update.
1618 * tui/tui-win.c (tui_sigwinch_handler, tui_async_resize_screen):
1620 * tui/tui-data.h (tui_win_resized, tui_set_win_resized_to):
1622 * tui/tui-data.c (win_resized): Now bool.
1623 (tui_win_resized): Return bool.
1624 (tui_set_win_resized_to): Accept a bool.
1626 2019-09-20 Tom Tromey <tom@tromey.com>
1628 * tui/tui-regs.h (struct tui_data_window) <show_register_group>:
1629 Change type of "refresh_values_only".
1630 * tui/tui-regs.c (tui_data_window::show_register_group): Change
1631 type of "refresh_values_only".
1633 2019-09-20 Tom Tromey <tom@tromey.com>
1635 * tui/tui-disasm.c (struct tui_asm_line) <addr_string, insn>: Now
1637 (tui_disassemble): Add "pos" parameter.
1638 (tui_disasm_window::set_contents): Simplify.
1640 2019-09-20 Tom Tromey <tom@tromey.com>
1642 * tui/tui-winsource.h (struct tui_source_window_base)
1643 <show_source_content>: Now private.
1644 * tui/tui-winsource.c
1645 (tui_source_window_base::show_source_content): Don't handle empty
1648 2019-09-20 Tom Tromey <tom@tromey.com>
1650 * tui/tui-layout.c (show_source_disasm_command)
1651 (show_source_or_disasm_and_command): Don't call
1652 show_source_content.
1654 2019-09-20 Tom Tromey <tom@tromey.com>
1656 * tui/tui-stack.h (struct tui_locator_window) <make_status_line>:
1658 * tui/tui-stack.c (tui_locator_window::make_status_line): Rename
1659 from tui_make_status_line.
1660 (tui_locator_window::rerender): Update.
1662 2019-09-20 Tom Tromey <tom@tromey.com>
1664 * tui/tui-stack.c (tui_make_status_line): Return std::string.
1665 (tui_locator_window::rerender): Update.
1667 2019-09-20 Tom Tromey <tom@tromey.com>
1669 * tui/tui-winsource.h (struct tui_source_window_base)
1670 <~tui_source_window_base>: Don't declare.
1672 * tui/tui-winsource.c (~tui_source_window_base): Remove.
1673 * tui/tui-source.h (struct tui_source_window) <fullname>: New
1675 * tui/tui-source.c (tui_source_window::set_contents): Update.
1676 (tui_source_window::location_matches_p)
1677 (tui_source_window::maybe_update): Update.
1679 2019-09-20 Tom Tromey <tom@tromey.com>
1681 * tui/tui-winsource.h (~tui_source_element): Remove.
1682 (tui_source_element): Update.
1683 (struct tui_source_element) <line>: Now a unique_xmalloc_ptr.
1684 * tui/tui-winsource.c (tui_show_source_line): Update.
1685 * tui/tui-source.c (tui_source_window::set_contents): Update.
1686 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
1688 2019-09-20 Tom Tromey <tom@tromey.com>
1690 * tui/tui-data.h (tui_clear_source_windows_detail): Don't
1692 * tui/tui-layout.c (tui_add_win_to_layout): Don't call
1693 tui_clear_source_windows_detail.
1694 * tui/tui-winsource.h (struct tui_source_window_base)
1695 <clear_detail>: Don't declare.
1696 * tui/tui-winsource.c (tui_source_window_base::clear_detail):
1698 * tui/tui-data.c (tui_clear_source_windows_detail): Remove.
1700 2019-09-20 Tom Tromey <tromey@adacore.com>
1703 * block.c (contained_in): Fix final return value.
1705 2019-09-20 Alan Modra <amodra@gmail.com>
1707 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Use bfd_set_usrdata.
1708 * dwarf2read.c (dwarf2_read_gdb_index, dwarf2_read_debug_names),
1709 (read_indirect_string_from_dwz): Use bfd accessor.
1710 * dwarf2read.h (struct dwz_file <filename>): Likewise.
1711 * machoread.c (macho_symfile_read_all_oso): Likewise.
1712 * solib.c (solib_bfd_open): Likewise.
1714 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1716 * eval.c: Move declaration of overload_resolution to...
1719 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1721 * arm-linux-nat.c: Remove extern declaration for arm_apcs_32.
1722 * arm-linux-tdep.c: Likewise.
1723 * arm-nbsd-nat.c: Likewise.
1724 * arm-tdep.h: Declare arm_apcs_32.
1725 * arm-tdep.c: Move documentation for arm_apcs_32 to arm-tdep.h.
1727 2019-09-19 Christian Biesinger <cbiesinger@google.com>
1729 * dwarf2loc.c: Remove extern declaration of dwarf_always_disassemble.
1730 * dwarf2read.h: Declare dwarf_always_disassemble.
1732 2019-09-19 Tom de Vries <tdevries@suse.de>
1735 * source-cache.c (source_cache::ensure): Catch exception thrown during
1736 construction of the highlighter.
1738 2019-09-18 Alan Modra <amodra@gmail.com>
1740 * aarch64-linux-tdep.c, * arm-tdep.c, * auto-load.c,
1741 * coff-pe-read.c, * coffread.c, * corelow.c, * dbxread.c,
1742 * dicos-tdep.c, * dwarf2-frame.c, * dwarf2read.c, * elfread.c,
1743 * exec.c, * fbsd-tdep.c, * gcore.c, * gdb_bfd.c, * gdb_bfd.h,
1744 * hppa-tdep.c, * i386-cygwin-tdep.c, * i386-fbsd-tdep.c,
1745 * i386-linux-tdep.c, * jit.c, * linux-tdep.c, * machoread.c,
1746 * maint.c, * mdebugread.c, * minidebug.c, * mips-linux-tdep.c,
1747 * mips-sde-tdep.c, * mips-tdep.c, * mipsread.c, * nto-tdep.c,
1748 * objfiles.c, * objfiles.h, * osabi.c, * ppc-linux-tdep.c,
1749 * ppc64-tdep.c, * record-btrace.c, * record-full.c, * remote.c,
1750 * rs6000-aix-tdep.c, * rs6000-tdep.c, * s390-linux-tdep.c,
1751 * s390-tdep.c, * solib-aix.c, * solib-dsbt.c, * solib-frv.c,
1752 * solib-spu.c, * solib-svr4.c, * solib-target.c,
1753 * spu-linux-nat.c, * spu-tdep.c, * symfile-mem.c, * symfile.c,
1754 * symmisc.c, * symtab.c, * target.c, * windows-nat.c,
1755 * xcoffread.c, * cli/cli-dump.c, * compile/compile-object-load.c,
1756 * mi/mi-interp.c: Update throughout for bfd section macro and
1758 * gcore (gcore_create_callback): Use bfd_set_section_lma.
1759 * spu-tdep.c (spu_overlay_new_objfile): Likewise.
1761 2019-09-18 Tom Tromey <tom@tromey.com>
1764 * tui/tui.c (tui_initialize_readline): Set name of keymap. Do not
1766 (tui_enable): Do not call rl_initialize.
1768 2019-09-18 Christian Groessler <chris@groessler.org>
1770 * alpha-linux-nat.c: Include gdbarch.h.
1772 2019-09-18 Simon Marchi <simon.marchi@polymtl.ca>
1774 * ui-file.c: Include cli/cli-style.h.
1775 (term_cli_styling): Remove cli_styling declaration.
1777 2019-09-18 Alan Modra <amodra@gmail.com>
1779 * arm-tdep.c (arm_record_special_symbol): Update bfd_get_section
1780 to bfd_asymbol_section.
1782 2019-09-18 Alan Modra <amodra@gmail.com>
1784 * amd64-dicos-tdep.c (amd64_dicos_osabi_sniffer): Constify target.
1785 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
1786 * i386-dicos-tdep.c (i386_dicos_osabi_sniffer): Likewise.
1788 2019-09-18 Alan Modra <amodra@gmail.com>
1790 * solib-spu.c (spu_bfd_open): Use bfd_set_filename.
1791 * spu-linux-nat.c (spu_bfd_open): Likewise.
1793 2019-09-18 Christian Biesinger <cbiesinger@google.com>
1795 * dwarf2loc.c: Change extern declaration of dwarf_always_disassemble
1796 to bool to match definition in dwarf2read.c.
1798 2019-09-17 Christian Biesinger <cbiesinger@google.com>
1800 * ada-lang.c (ada_ignore_descriptive_types_p): Change to bool.
1801 (print_signatures): Likewise.
1802 (trust_pad_over_xvs): Likewise.
1803 * arch/aarch64-insn.c (aarch64_debug): Likewise.
1804 * arch/aarch64-insn.h (aarch64_debug): Likewise.
1805 * arm-linux-nat.c (arm_apcs_32): Likewise.
1806 * arm-linux-tdep.c (arm_apcs_32): Likewise.
1807 * arm-nbsd-nat.c (arm_apcs_32): Likewise.
1808 * arm-tdep.c (arm_debug): Likewise.
1809 (arm_apcs_32): Likewise.
1810 * auto-load.c (debug_auto_load): Likewise.
1811 (auto_load_gdb_scripts): Likewise.
1812 (global_auto_load): Likewise.
1813 (auto_load_local_gdbinit): Likewise.
1814 (auto_load_local_gdbinit_loaded): Likewise.
1815 * auto-load.h (global_auto_load): Likewise.
1816 (auto_load_local_gdbinit): Likewise.
1817 (auto_load_local_gdbinit_loaded): Likewise.
1818 * breakpoint.c (disconnected_dprintf): Likewise.
1819 (breakpoint_proceeded): Likewise.
1820 (automatic_hardware_breakpoints): Likewise.
1821 (always_inserted_mode): Likewise.
1822 (target_exact_watchpoints): Likewise.
1823 (_initialize_breakpoint): Update.
1824 * breakpoint.h (target_exact_watchpoints): Change to bool.
1825 * btrace.c (maint_btrace_pt_skip_pad): Likewise.
1826 * cli/cli-cmds.c (trace_commands): Likewise.
1827 * cli/cli-cmds.h (trace_commands): Likewise.
1828 * cli/cli-decode.c (add_setshow_boolean_cmd): Change int* argument
1830 * cli/cli-logging.c (logging_overwrite): Change to bool.
1831 (logging_redirect): Likewise.
1832 (debug_redirect): Likewise.
1833 * cli/cli-option.h (option_def) <boolean>: Change return type to bool*.
1834 (struct boolean_option_def) <get_var_address_cb_>: Change return type
1836 <boolean_option_def>: Update.
1837 (struct flag_option_def): Change default type of Context to bool
1839 <flag_option_def>: Change return type of var_address_cb_ to bool*.
1840 * cli/cli-setshow.c (do_set_command): Cast to bool* instead of int*.
1841 (get_setshow_command_value_string): Likewise.
1842 * cli/cli-style.c (cli_styling): Change to bool.
1843 (source_styling): Likewise.
1844 * cli/cli-style.h (source_styling): Likewise.
1845 (cli_styling): Likewise.
1846 * cli/cli-utils.h (struct qcs_flags) <quiet, cont, silent>: Change
1848 * command.h (var_types): Update comment.
1849 (add_setshow_boolean_cmd): Change int* var argument to bool*.
1850 * compile/compile-cplus-types.c (debug_compile_cplus_types): Change to
1852 (debug_compile_cplus_scopes): Likewise.
1853 * compile/compile-internal.h (compile_debug): Likewise.
1854 * compile/compile.c (compile_debug): Likewise.
1855 (struct compile_options) <raw>: Likewise.
1856 * cp-support.c (catch_demangler_crashes): Likewise.
1857 * cris-tdep.c (usr_cmd_cris_version_valid): Likewise.
1858 (usr_cmd_cris_dwarf2_cfi): Likewise.
1859 * csky-tdep.c (csky_debug): Likewise.
1860 * darwin-nat.c (enable_mach_exceptions): Likewise.
1861 * dcache.c (dcache_enabled_p): Likewise.
1862 * defs.h (info_verbose): Likewise.
1863 * demangle.c (demangle): Likewise.
1864 (asm_demangle): Likewise.
1865 * dwarf-index-cache.c (debug_index_cache): Likewise.
1866 * dwarf2-frame.c (dwarf2_frame_unwinders_enabled_p): Likewise.
1867 * dwarf2-frame.h (dwarf2_frame_unwinders_enabled_p): Likewise.
1868 * dwarf2read.c (check_physname): Likewise.
1869 (use_deprecated_index_sections): Likewise.
1870 (dwarf_always_disassemble): Likewise.
1871 * eval.c (overload_resolution): Likewise.
1872 * event-top.c (set_editing_cmd_var): Likewise.
1873 (exec_done_display_p): Likewise.
1874 * event-top.h (set_editing_cmd_var): Likewise.
1875 (exec_done_display_p): Likewise.
1876 * exec.c (write_files): Likewise.
1877 * fbsd-nat.c (debug_fbsd_lwp): Likewise
1878 (debug_fbsd_nat): Likewise.
1879 * frame.h (struct frame_print_options) <print_raw_frame_arguments>:
1881 (struct set_backtrace_options) <backtrace_past_main>: Likewise.
1882 <backtrace_past_entry> Likewise.
1883 * gdb-demangle.h (demangle): Likewise.
1884 (asm_demangle): Likewise.
1885 * gdb_bfd.c (bfd_sharing): Likewise.
1886 * gdbcore.h (write_files): Likewise.
1887 * gdbsupport/common-debug.c (show_debug_regs): Likewise.
1888 * gdbsupport/common-debug.h (show_debug_regs): Likewise.
1889 * gdbthread.h (print_thread_events): Likewise.
1890 * gdbtypes.c (opaque_type_resolution): Likewise.
1891 (strict_type_checking): Likewise.
1892 * gnu-nat.c (gnu_debug_flag): Likewise.
1893 * guile/scm-auto-load.c (auto_load_guile_scripts): Likewise.
1894 * guile/scm-param.c (pascm_variable): Add boolval.
1895 (add_setshow_generic): Update.
1896 (pascm_param_value): Update.
1897 (pascm_set_param_value_x): Update.
1898 * hppa-tdep.c (hppa_debug): Change to bool..
1899 * infcall.c (may_call_functions_p): Likewise.
1900 (coerce_float_to_double_p): Likewise.
1901 (unwind_on_signal_p): Likewise.
1902 (unwind_on_terminating_exception_p): Likewise.
1903 * infcmd.c (startup_with_shell): Likewise.
1904 * inferior.c (print_inferior_events): Likewise.
1905 * inferior.h (startup_with_shell): Likewise.
1906 (print_inferior_events): Likewise.
1907 * infrun.c (step_stop_if_no_debug): Likewise.
1908 (detach_fork): Likewise.
1909 (debug_displaced): Likewise.
1910 (disable_randomization): Likewise.
1911 (non_stop): Likewise.
1912 (non_stop_1): Likewise.
1913 (observer_mode): Likewise.
1914 (observer_mode_1): Likewise.
1915 (set_observer_mode): Update.
1916 (sched_multi): Change to bool.
1917 * infrun.h (debug_displaced): Likewise.
1918 (sched_multi): Likewise.
1919 (step_stop_if_no_debug): Likewise.
1920 (non_stop): Likewise.
1921 (disable_randomization): Likewise.
1922 * linux-tdep.c (use_coredump_filter): Likewise.
1923 (dump_excluded_mappings): Likewise.
1924 * linux-thread-db.c (auto_load_thread_db): Likewise.
1925 (check_thread_db_on_load): Likewise.
1926 * main.c (captured_main_1): Update.
1927 * maint-test-options.c (struct test_options_opts) <flag_opt, xx1_opt,
1928 xx2_opt, boolean_opt>: Change to bool.
1929 * maint-test-settings.c (maintenance_test_settings_boolean): Likewise.
1930 * maint.c (maintenance_profile_p): Likewise.
1931 (per_command_time): Likewise.
1932 (per_command_space): Likewise.
1933 (per_command_symtab): Likewise.
1934 * memattr.c (inaccessible_by_default): Likewise.
1935 * mi/mi-main.c (mi_async): Likewise.
1936 (mi_async_1): Likewise.
1937 * mips-tdep.c (mips64_transfers_32bit_regs_p): Likewise.
1938 * nat/fork-inferior.h (startup_with_shell): Likewise.
1939 * nat/linux-namespaces.c (debug_linux_namespaces): Likewise.
1940 * nat/linux-namespaces.h (debug_linux_namespaces): Likewise.
1941 * nios2-tdep.c (nios2_debug): Likewise.
1942 * or1k-tdep.c (or1k_debug): Likewise.
1943 * parse.c (parser_debug): Likewise.
1944 * parser-defs.h (parser_debug): Likewise.
1945 * printcmd.c (print_symbol_filename): Likewise.
1946 * proc-api.c (procfs_trace): Likewise.
1947 * python/py-auto-load.c (auto_load_python_scripts): Likewise.
1948 * python/py-param.c (union parmpy_variable): Add "bool boolval" field.
1949 (set_parameter_value): Update.
1950 (add_setshow_generic): Update.
1951 * python/py-value.c (copy_py_bool_obj): Change argument from int*
1953 * python/python.c (gdbpy_parameter_value): Cast to bool* instead of
1955 * ravenscar-thread.c (ravenscar_task_support): Change to bool.
1956 * record-btrace.c (record_btrace_target::store_registers): Update.
1957 * record-full.c (record_full_memory_query): Change to bool.
1958 (record_full_stop_at_limit): Likewise.
1959 * record-full.h (record_full_memory_query): Likewise.
1960 * remote-notif.c (notif_debug): Likewise.
1961 * remote-notif.h (notif_debug): Likewise.
1962 * remote.c (use_range_stepping): Likewise.
1963 (interrupt_on_connect): Likewise.
1964 (remote_break): Likewise.
1965 * ser-tcp.c (tcp_auto_retry): Likewise.
1966 * ser-unix.c (serial_hwflow): Likewise.
1967 * skip.c (debug_skip): Likewise.
1968 * solib-aix.c (solib_aix_debug): Likewise.
1969 * spu-tdep.c (spu_stop_on_load_p): Likewise.
1970 (spu_auto_flush_cache_p): Likewise.
1971 * stack.c (struct backtrace_cmd_options) <full, no_filters, hide>:
1973 (struct info_print_options) <quiet>: Likewise.
1974 * symfile-debug.c (debug_symfile): Likewise.
1975 * symfile.c (auto_solib_add): Likewise.
1976 (separate_debug_file_debug): Likewise.
1977 * symfile.h (auto_solib_add): Likewise.
1978 (separate_debug_file_debug): Likewise.
1979 * symtab.c (basenames_may_differ): Likewise.
1980 (struct filename_partial_match_opts) <dirname, basename>: Likewise.
1981 (struct info_print_options) <quiet, exclude_minsyms>: Likewise.
1982 (struct info_types_options) <quiet>: Likewise.
1983 * symtab.h (demangle): Likewise.
1984 (basenames_may_differ): Likewise.
1985 * target-dcache.c (stack_cache_enabled_1): Likewise.
1986 (code_cache_enabled_1): Likewise.
1987 * target.c (trust_readonly): Likewise.
1988 (may_write_registers): Likewise.
1989 (may_write_memory): Likewise.
1990 (may_insert_breakpoints): Likewise.
1991 (may_insert_tracepoints): Likewise.
1992 (may_insert_fast_tracepoints): Likewise.
1993 (may_stop): Likewise.
1994 (auto_connect_native_target): Likewise.
1995 (target_stop_and_wait): Update.
1996 (target_async_permitted): Change to bool.
1997 (target_async_permitted_1): Likewise.
1998 (may_write_registers_1): Likewise.
1999 (may_write_memory_1): Likewise.
2000 (may_insert_breakpoints_1): Likewise.
2001 (may_insert_tracepoints_1): Likewise.
2002 (may_insert_fast_tracepoints_1): Likewise.
2003 (may_stop_1): Likewise.
2004 * target.h (target_async_permitted): Likewise.
2005 (may_write_registers): Likewise.
2006 (may_write_memory): Likewise.
2007 (may_insert_breakpoints): Likewise.
2008 (may_insert_tracepoints): Likewise.
2009 (may_insert_fast_tracepoints): Likewise.
2010 (may_stop): Likewise.
2011 * thread.c (struct info_threads_opts) <show_global_ids>: Likewise.
2012 (make_thread_apply_all_options_def_group): Change argument from int*
2014 (thread_apply_all_command): Update.
2015 (print_thread_events): Change to bool.
2016 * top.c (confirm): Likewise.
2017 (command_editing_p): Likewise.
2018 (history_expansion_p): Likewise.
2019 (write_history_p): Likewise.
2020 (info_verbose): Likewise.
2021 * top.h (confirm): Likewise.
2022 (history_expansion_p): Likewise.
2023 * tracepoint.c (disconnected_tracing): Likewise.
2024 (circular_trace_buffer): Likewise.
2025 * typeprint.c (print_methods): Likewise.
2026 (print_typedefs): Likewise.
2027 * utils.c (debug_timestamp): Likewise.
2028 (sevenbit_strings): Likewise.
2029 (pagination_enabled): Likewise.
2030 * utils.h (sevenbit_strings): Likewise.
2031 (pagination_enabled): Likewise.
2032 * valops.c (overload_resolution): Likewise.
2033 * valprint.h (struct value_print_options) <prettyformat_arrays,
2034 prettyformat_structs, vtblprint, unionprint, addressprint, objectprint,
2035 stop_print_at_null, print_array_indexes, deref_ref, static_field_print,
2036 pascal_static_field_print, raw, summary, symbol_print, finish_print>:
2038 * windows-nat.c (new_console): Likewise.
2039 (cygwin_exceptions): Likewise.
2040 (new_group): Likewise.
2041 (debug_exec): Likewise.
2042 (debug_events): Likewise.
2043 (debug_memory): Likewise.
2044 (debug_exceptions): Likewise.
2045 (useshell): Likewise.
2046 * windows-tdep.c (maint_display_all_tib): Likewise.
2047 * xml-support.c (debug_xml): Likewise.
2049 2019-09-17 Mike Gulick <mgulick@mathworks.com>
2051 * source.c (prepare_path_for_appending): New function.
2052 (openp): Make use of new function.
2053 (find_and_open_source): Search for the compilation directory and
2054 source file as a relative path beneath the directory search path.
2056 2019-09-17 Andrew Burgess <andrew.burgess@embecosm.com>
2058 * source-cache.c (source_cache::get_line_charpos): Catch
2059 exceptions and return false, this matches the behaviour documented
2062 2019-09-17 Joel Brobecker <brobecker@adacore.com>
2064 * ada-tasks.c (info_task): Remove quoting of the task's name.
2066 2019-09-16 Christian Biesinger <cbiesinger@google.com>
2068 * symfile.c (auto_solib_add): Replace comment with a reference
2071 2019-09-14 Christian Biesinger <cbiesinger@google.com>
2073 * NEWS: Mention that gdb can now be compiled with Python 3
2076 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2078 * maint.c (maint_print_section_data::maint_print_section_data):
2079 Force use of 'float log10 (float)' by casting the argument to
2082 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2084 * maint.c: Add 'cmath' include.
2085 (struct maint_print_section_data): New structure.
2086 (print_section_index): New function.
2087 (print_bfd_section_info): Add header comment, small whitespace
2088 cleanup, and update to call new print_section_index function.
2089 (print_objfile_section_info): Likewise.
2090 (maint_obj_section_from_bfd_section): New function.
2091 (print_bfd_section_info_maybe_relocated): New function.
2092 (maintenance_info_sections): Add header comment, always use
2093 bfd_map_over_sections instead of ALL_OBJFILE_OSECTIONS.
2095 2019-09-12 Andrew Burgess <andrew.burgess@embecosm.com>
2097 * psymtab.c (find_pc_sect_psymtab): Move baseaddr local into more
2098 inner scope, add check that the objfile has psymtabs before
2099 checking psymtabs_addrmap.
2100 * psymtab.h (psymtab_storage) <psymtabs_addrmap>: Extend comment.
2102 2019-09-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2104 * NEWS: Announce that Ada task names are now shown at more places,
2105 and between quotes (except in info task output).
2106 * gdb/ada-tasks.c (task_to_str): New function.
2107 (display_current_task_id): Call task_to_str.
2108 (task_command_1): Likewise.
2109 (print_ada_task_info): In non-mi mode, Properly align headers and data
2110 when task-id length is > 9 (9 is the default for a 32 bits CORE_ADDR).
2112 2019-09-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2114 * procfs.c (procfs_target::wait) <PR_FAULTED>: Get signal from
2115 prstatus.pr_lwp.pr_info instead of making it up.
2117 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2119 * auto-load.c (auto_load_expand_dir_vars): Update.
2120 * defs.h (gdb_datadir): Change to std::string.
2121 (python_libdir): Likewise.
2122 (relocate_gdb_directory): Change return type to std::string.
2123 * guile/guile.c (gdbscm_data_directory): Update.
2124 (initialize_scheme_side): Update.
2125 * jit.c (jit_reader_dir): Change to std::string.
2126 (jit_reader_load_command): Update.
2127 * main.c (gdb_datadir): Change to std::string.
2128 (python_libdir): Likewise.
2129 (set_gdb_data_directory): Update.
2130 (relocate_path): Change to return std::string.
2131 (relocate_gdb_directory): Change to return std::string.
2132 (relocate_gdbinit_path_maybe_in_datadir): Update.
2133 (captured_main_1): Update.
2134 * python/python.c (do_start_initialization): Update.
2135 * top.c (show_gdb_datadir): Update.
2136 * xml-syscall.c (xml_init_syscalls_info): Update.
2137 (init_syscalls_info): Update.
2139 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2141 * main.c (relocate_gdbinit_path_maybe_in_datadir): Factor this code
2142 out of get_init_files.
2143 (get_init_files): Update.
2145 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2147 * main.c (get_init_files): Change to use std::string.
2148 (captured_main_1): Update.
2149 (print_gdb_help): Update.
2151 2019-09-11 Ali Tamur <tamur@google.com>
2153 *gdb/target-float.c (host_float_ops<T>::to_longest): Update
2156 2019-09-11 Christian Biesinger <cbiesinger@google.com>
2158 * dbxread.c (read_dbx_symtab): Update.
2159 * dwarf2read.c (load_partial_dies): Update.
2160 * mdebugread.c (parse_partial_symbols): Update.
2161 (handle_psymbol_enumerators): Update.
2162 * psympriv.h (add_psymbol_to_list): Change type of copy_names to bool.
2163 * psymtab.c (add_psymbol_to_bcache): Likewise.
2164 (add_psymbol_to_list): Likewise.
2165 * symtab.c (symbol_set_names): Likewise.
2166 * symtab.h (symbol_set_names): Likewise.
2167 * xcoffread.c (scan_xcoff_symtab): Update.
2169 2019-09-11 Tom Tromey <tom@tromey.com>
2171 * symfile-mem.c (symbol_file_add_from_memory): Use
2173 * solib-darwin.c (darwin_bfd_open): Use bfd_set_filename.
2174 * solib-aix.c (solib_aix_bfd_open): Use bfd_set_filename.
2176 2019-09-10 Tom Tromey <tromey@adacore.com>
2178 * dwarf-index-write.c (write_psymbols): Extend error message.
2179 (debug_names::insert): Add Ada code.
2180 (debug_names::write_psymbols): Remove Ada check.
2181 (debug_names) <m_string_obstack>: New member.
2182 * dwarf2read.c (gdb_index_symbol_name_matcher): Remove.
2183 (gdb_index_symbol_name_matcher::matches): Remove.
2184 (mapped_index_base::find_name_components_bounds): Add "lang"
2186 (mapped_index_base::build_name_components): Also split names
2187 according to Ada syntax.
2188 (dw2_expand_symtabs_matching_symbol): Loop over languages. Change
2189 type of "match_callback".
2190 (check_match, check_find_bounds_finds)
2191 (dw2_expand_symtabs_matching): Update.
2192 (dw2_debug_names_iterator): Add new constructor.
2193 (dw2_debug_names_map_matching_symbols): New function.
2194 (dw2_debug_names_expand_symtabs_matching): Update.
2195 (dwarf2_debug_names_functions): Use
2196 dw2_debug_names_map_matching_symbols.
2198 2019-09-10 Tom Tromey <tromey@adacore.com>
2200 * dwarf2read.c (dw2_get_file_names_reader): Add the
2201 CU's file name to the results.
2203 2019-09-10 Tom Tromey <tromey@adacore.com>
2205 * ada-lang.c (add_nonlocal_symbols): Combine calls to
2206 map_matching_symbols. Update.
2207 * dwarf2read.c (dw2_map_matching_symbols): Update.
2208 * psymtab.c (match_partial_symbol): Change type; update.
2209 (psym_map_matching_symbols): Likewise.
2210 * symfile-debug.c (debug_qf_map_matching_symbols): Change
2212 * symfile.h (struct quick_symbol_functions)
2213 <map_matching_symbols>: Change "name" to be a lookup_name_info.
2216 2019-09-10 Tom Tromey <tromey@adacore.com>
2218 * psymtab.c (map_block): Remove.
2219 (psym_map_matching_symbols): Use iterate_over_symbols_terminated.
2220 * symtab.c (iterate_over_symbols_terminated): New function.
2221 * symtab.c (iterate_over_symbols_terminated): Declare.
2223 2019-09-10 Tom Tromey <tromey@adacore.com>
2225 * ada-lang.c (ada_iterate_over_symbols): Return bool.
2226 * language.h (struct language_defn) <la_iterate_over_symbols>:
2228 * symtab.c (iterate_over_symbols): Return bool.
2229 * symtab.h (iterate_over_symbols): Return bool.
2231 2019-09-10 Tom Tromey <tromey@adacore.com>
2233 * ada-lang.c (aux_add_nonlocal_symbols): Change type.
2234 (add_nonlocal_symbols): Update.
2235 * dwarf2read.c (dw2_map_matching_symbols): Change type.
2236 * psymtab.c (map_block, psym_map_matching_symbols): Change type.
2237 * symfile-debug.c (debug_qf_map_matching_symbols): Change type.
2238 * symfile.h (struct quick_symbol_functions) <map_matching_symbols>:
2239 Change type of "callback". Remove "data".
2242 2019-09-09 Ali Tamur <tamur@google.com>
2244 * dwarf2read.c (comp_unit_head): Update comment.
2245 (dwarf2_dwo_name): New function declaration.
2246 (dwarf_unit_type_name): New function declaration.
2247 (read_comp_unit_head): Add support for new compilation units,
2248 DW_UT_partial, DW_UT_skeleton, DW_UT_split_compile, DW_UT_split_type.
2249 Particularly, DW_UT_skeleton and DW_UT_split_compile have dwo_id
2250 (currently named as "signature") in their header. Also clarify error
2252 (lookup_dwo_id): New function. Returns the dwo id of the given
2254 (lookup_dwo_unit): Use the new lookup_dwo_id function.
2255 (init_cutu_and_read_dies): Use the new dwarf2_dwo_name and lookup_dwo_id
2257 (create_dwo_cu_reader): Use the added lookup_dwo_id function.
2258 (dwarf2_dwo_name): Get the dwo name if present.
2259 (dwarf_unit_type_name): Convert DW_UT_* types to string for diagnostic
2262 2019-09-09 Tom Tromey <tom@tromey.com>
2264 * tui/tui-win.c (tui_all_windows_info): Use ui_out.
2266 2019-09-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2268 * python/python.c (do_start_initialization): Make progname_copy static,
2269 to avoid a leak report.
2271 2019-09-08 Tom Tromey <tom@tromey.com>
2273 * tui/tui-wingeneral.c (box_win): Truncate long window titles.
2275 2019-09-07 Simon Marchi <simon.marchi@efficios.com>
2277 * dwarf2read.c (struct dw2_symtab_iterator) <block_index>:
2278 Change type to gdb::optional<block_enum>.
2279 (dw2_symtab_iter_init): Change block_index parameter type
2280 to gdb::optional<block_enum>.
2281 (dw2_lookup_symbol): Change block_index parameter
2282 type to block_enum.c
2283 (dw2_debug_names_lookup_symbol): Likewise.
2284 * psymtab.c (psym_lookup_symbol): Likewise.
2285 * symfile-debug.c (debug_qf_lookup_symbol): Likewise.
2286 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
2289 2019-09-06 Christian Biesinger <cbiesinger@google.com>
2291 * defs.h (relocate_gdb_directory): Change int to bool in
2292 signature and rename flag to relocatable.
2293 * main.c (relocate_path): Likewise.
2294 (relocate_gdb_directory): Likewise.
2296 2019-09-06 Alan Modra <amodra@gmail.com>
2298 * coffread.c (coff_symfile_read): Constify filename variable.
2299 * dbxread.c (dbx_symfile_init, coffstab_build_psymtabs),
2300 (elfstab_build_psymtabs, stabsect_build_psymtabs): Likewise.
2301 * gdb_bfd.c (gdb_bfd_close_or_warn): Likewise.
2302 * solib.c (reload_shared_libraries_1): Likewise.
2303 * symfile.c (reread_symbols): Likewise.
2304 * solib-aix.c (solib_aix_bfd_open): Add cast for xfree of filename.
2305 * solib-darwin.c (darwin_bfd_open): Likewise.
2306 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2308 2019-09-03 Andrew Burgess <andrew.burgess@embecosm.com>
2310 * psymtab.c (print_partial_symbols): Handle missing domain_enum
2311 values MODULE_DOMAIN and COMMON_BLOCK_DOMAIN.
2313 2019-09-03 Tom Tromey <tromey@adacore.com>
2315 * ada-valprint.c (ada_val_print_num): Don't recurse for range
2317 (has_negatives): Unbias a range type bound.
2318 * dwarf2read.c (read_subrange_type): Handle DW_AT_GNU_bias.
2319 * gdbtypes.c (operator==): Handle new field.
2320 (create_range_type): Add "bias" parameter.
2321 (create_static_range_type, resolve_dynamic_range): Update.
2322 * gdbtypes.h (struct range_bounds) <bias>: New member.
2323 (create_range_type): Add bias parameter.
2324 * printcmd.c (print_scalar_formatted): Unbias range types.
2325 * value.c (unpack_long): Unbias range types.
2326 (pack_long): Bias range types.
2328 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2330 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Check all
2333 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2335 * break-catch-throw.c (fetch_probe_arguments): Use gdbarch.
2336 * dtrace-probe.c (dtrace_probe::get_argument_count): Likewise.
2337 * probe.c (probe_safe_evaluate_at_pc) (compute_probe_arg)
2338 (compile_probe_arg): Likewise.
2339 * probe.h (get_argument_count): Likewise.
2340 * solib-svr4.c (solib_event_probe_action): Likewise.
2341 * stap-probe.c (stap_probe::get_argument_count): Likewise.
2343 2019-09-02 Alan Hayward <alan.hayward@arm.com>
2345 * solib-svr4.c (svr4_find_and_create_probe_breakpoints): Move
2347 (svr4_create_solib_event_breakpoints): ...from here.
2349 2019-08-30 Sergio Durigan Junior <sergiodj@redhat.com>
2351 * nat/fork-inferior.c (trace_start_error): Remove "\nError: "
2352 suffix from warning message.
2354 2019-08-30 Tom Tromey <tom@tromey.com>
2356 * tui/tui-winsource.h (struct tui_source_window_base)
2357 <refresh_all>: Don't declare.
2358 * tui/tui-winsource.c (tui_source_window_base::refresh_all):
2360 * tui/tui-win.c (tui_refresh_all_win): Don't call refresh_all or
2361 tui_show_locator_content.
2362 * tui/tui-regs.h (struct tui_data_window) <refresh_all>: Don't
2364 * tui/tui-regs.c (tui_data_window::refresh_all): Remove.
2365 * tui/tui-data.h (struct tui_win_info) <refresh_all>: Don't
2368 2019-08-30 Tom Tromey <tom@tromey.com>
2370 * tui/tui-io.c (tui_cont_sig): Don't call wrefresh.
2372 2019-08-30 Tom Tromey <tom@tromey.com>
2374 * tui/tui-stack.c (_initialize_tui_stack): Move later.
2375 Remove unnecessary forward declarations.
2377 2019-08-30 Tom Tromey <tom@tromey.com>
2379 * tui/tui-stack.c (tui_locator_window::set_locator_fullname): Call
2381 (tui_update_locator_fullname, tui_show_frame_info): Don't call
2382 tui_show_locator_content.
2384 2019-08-30 Tom Tromey <tom@tromey.com>
2386 * tui/tui-stack.c (tui_show_locator_content): Move lower. Rewrite.
2387 (tui_locator_window::rerender): Rewrite using body of previous
2388 tui_show_locator_content.
2390 2019-08-30 Tom Tromey <tom@tromey.com>
2392 * tui/tui-stack.h (struct tui_locator_window) <set_locator_info,
2393 set_locator_fullname>: New methods.
2394 * tui/tui-stack.c (tui_locator_window::set_locator_fullname):
2395 Rename from tui_set_locator_fullname.
2396 (tui_locator_window::set_locator_info): Rename from
2397 tui_set_locator_info. Return bool.
2398 (tui_update_locator_fullname, tui_show_frame_info): Update.
2400 2019-08-30 Tom Tromey <tom@tromey.com>
2402 * tui/tui-layout.c (show_layout): Don't call tui_refresh_all.
2404 2019-08-30 Tom Tromey <tom@tromey.com>
2406 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Don't
2409 2019-08-30 Tom Tromey <tom@tromey.com>
2411 * tui/tui-wingeneral.c (box_win): Assume win_info and
2412 win_info->handle cannot be NULL.
2414 2019-08-30 Tom Tromey <tom@tromey.com>
2416 * tui/tui-regs.h (struct tui_data_item_window) <rerender,
2417 refresh_window>: Declare.
2418 * tui/tui-regs.c (tui_data_window::display_registers_from): Call
2420 (tui_data_item_window::rerender): Rename from
2421 tui_display_register.
2422 (tui_data_item_window::refresh_window): New method.
2423 * tui/tui-layout.c (tui_gen_win_info::resize): Do nothing on
2426 2019-08-30 Tom Tromey <tom@tromey.com>
2428 * tui/tui-regs.h (struct tui_data_window) <regs_content,
2429 regs_column_count, current_group>: Move later. Now private.
2430 <get_current_group>: New method.
2431 * tui/tui-regs.c (tui_reg_command): Update.
2432 * tui/tui-layout.c (tui_set_layout): Update.
2434 2019-08-30 Tom Tromey <tom@tromey.com>
2436 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
2437 (tui_data_window::rerender): Don't call
2438 check_and_display_highlight_if_needed.
2439 (tui_data_window::refresh_all): Remove call to
2442 2019-08-30 Tom Tromey <tom@tromey.com>
2444 * tui/tui-regs.c (tui_data_window::last_regs_line_no)
2445 (tui_data_window::display_registers_from)
2446 (tui_data_window::display_reg_element_at_line)
2447 (tui_data_window::display_registers_from_line): Remove checks of
2450 2019-08-30 Tom Tromey <tom@tromey.com>
2452 * tui/tui-regs.h (struct tui_data_window) <display_all_data>:
2454 * tui/tui-regs.c (tui_data_window::show_registers): Call
2456 (tui_data_window::rerender): Rename from display_all_data.
2457 (tui_data_window::rerender): Remove old implementation.
2459 2019-08-30 Tom Tromey <tom@tromey.com>
2461 * tui/tui-regs.c (tui_data_window::display_all_data): Change
2463 * tui/tui-data.h (NO_DATA_STRING): Remove define.
2465 2019-08-29 Bernhard Wodok <barto@gmx.net>
2466 Sergio Durigan Junior <sergiodj@redhat.com>
2469 * mingw-hdep.c (gdb_select): Handle case when 'n' is zero.
2471 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2473 * symtab.c (search_symbols): Don't include MODULE_DOMAIN symbols
2474 when searching for types.
2476 2019-08-28 Andrew Burgess <andrew.burgess@embecosm.com>
2478 * f-lang.c (f_language_defn): Use f_print_typedef.
2479 * f-lang.h (f_print_typedef): Declare.
2480 * f-typeprint.c (f_print_typedef): Define.
2482 2019-08-27 Christian Biesinger <cbiesinger@google.com>
2484 * nat/linux-namespaces.c (mnsh_main): Initialize fd (to -1).
2486 2019-08-27 Andrew Burgess <andrew.burgess@embecosm.com>
2488 * cli/cli-utils.c (info_print_options_defs): Delete.
2489 (make_info_print_options_def_group): Delete.
2490 (extract_info_print_options): Delete.
2491 (info_print_command_completer): Delete.
2492 (info_print_args_help): Add extra parameter, and optionally
2493 include text about -n flag.
2494 * cli/cli-utils.h (struct info_print_options): Delete.
2495 (extract_info_print_options): Delete declaration.
2496 (info_print_command_completer): Delete declaration.
2497 (info_print_args_help): Add extra parameter, extend header
2499 * python/python.c (gdbpy_rbreak): Pass additional parameter to
2501 * stack.c (struct info_print_options): New type.
2502 (info_print_options_defs): New file scoped variable.
2503 (make_info_print_options_def_group): New static function.
2504 (info_print_command_completer): New static function.
2505 (info_locals_command): Update to use new local functions.
2506 (info_args_command): Likewise.
2507 (_initialize_stack): Add extra parameter to calls to
2508 info_print_args_help.
2509 * symtab.c (search_symbols): Add extra parameter, use this to
2510 possibly excluse non-debug symbols.
2511 (symtab_symbol_info): Add extra parameter, which is passed on to
2513 (struct info_print_options): New type.
2514 (info_print_options_defs): New file scoped variable.
2515 (make_info_print_options_def_group): New static function.
2516 (info_print_command_completer): New static function.
2517 (info_variables_command): Update to use local functions, and pass
2518 extra parameter through to symtab_symbol_info.
2519 (info_functions_command): Likewise.
2520 (info_types_command): Pass additional argument through to
2522 (rbreak_command): Pass extra argument to search_symbols.
2523 (_initialize_symtab): Add extra arguments for calls to
2524 info_print_args_help, and update help text for 'info variables',
2525 'whereis', and 'info functions' commands.
2526 * symtab.h (search_symbols): Add extra argument to declaration.
2527 * NEWS: Mention new flags.
2529 2019-08-26 Christian Biesinger <cbiesinger@google.com>
2531 * symtab.c (lookup_static_symbol): Call the new function (and move
2532 it down to be next to lookup_global_symbol).
2533 (struct global_sym_lookup_data): Add block_enum member and rename to...
2534 (struct global_or_static_sym_lookup_data): ...this.
2535 (lookup_symbol_global_iterator_cb): Pass block_index instead of
2536 GLOBAL_BLOCK to lookup_symbol_in_objfile and rename to...
2537 (lookup_symbol_global_or_static_iterator_cb): ...this.
2538 (lookup_global_or_static_symbol): New function.
2539 (lookup_global_symbol): Call new function.
2541 2019-08-26 Tom de Vries <tdevries@suse.de>
2544 * break-catch-throw.c (fetch_probe_arguments): Improve error mesage
2545 when pc_probe.prob == NULL.
2547 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2549 * dwarf2read.c (dw2_debug_names_iterator::next): Rename local
2550 variable symbol_linkage to symbol_linkage_.
2552 2019-08-25 Simon Marchi <simon.marchi@efficios.com>
2554 * dwarf2read.c (dw2_debug_names_iterator::next): Use enum to
2555 represent whether the symbol is static, dynamic, or we don't
2558 2019-08-25 Yoshinori Sato <ysato@users.sourceforge.jp>
2560 * gdb/rx-tdep.c (rx_register_names): New.
2561 (rx_register_name): Delete.
2562 (rx_psw_type): Delete.
2563 (rx_fpsw_type): Delete.
2564 (rx_register_type): Delete.
2565 (rx_gdbarch_init): Convert target-descriptions.
2566 (_initialize_rx_tdep): Add initialize_tdesc_rx.
2567 * gdb/features/Makefile: Add rx.xml.
2568 * gdb/features/rx.xml: New.
2569 * gdb/features/rx.c: Generated.
2570 * gdb/NEWS: Mention target description support.
2572 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2574 * symtab.c (symbol_cache_lookup): Always initialize *bsc_ptr and
2577 2019-08-23 Sergio Durigan Junior <sergiodj@redhat.com>
2579 * configure.ac: Don't check for 'dlfcn.h' (moved to
2580 gdbsupport/common.m4).
2581 * Makefile.in (COMMON_SFILES): Move 'gdb-dlfcn.c' to
2583 (HFILES_NO_SRCDIR): Likewise, for 'gdb-dlfcn.h'.
2584 * compile/compile-c-support.c: Include
2585 'gdbsupport/gdb-dlfcn.h'.
2586 * gdbsupport/common.m4: Check for 'dlfcn.h'.
2587 * gdb-dlfcn.c: Move to...
2588 * gdbsupport/gdb-dlfcn.c: ... here.
2589 * gdb-dlfcn.h: Move to...
2590 * gdbsupport/gdb-dlfcn.h: ... here.
2592 2019-08-23 Sandra Loosemore <sandra@codesourcery.com>
2594 * nios2-tdep.c (struct reg_value): Improve comments. Make
2595 the offset field signed.
2597 2019-08-22 Christian Biesinger <cbiesinger@google.com>
2599 * python/lib/gdb/__init__.py (_execute_file): New function.
2600 * python/python.c (python_run_simple_file): Call gdb._execute_file
2603 2019-08-22 Andrew Burgess <andrew.burgess@embecosm.com>
2605 * f-exp.y (yylex): Remove is_a_field_of_this local variable, and
2606 all uses as this was never set to anything but a zero value.
2608 2019-08-21 Bogdan Harjoc <harjoc@gmail.com>
2610 * cli/cli-cmds.c (with_command_1): Error out if no arguments.
2612 2019-08-21 Christian Biesinger <cbiesinger@google.com>
2614 * tui/tui-data.h (tui_gen_win_info): Add an =default
2615 move constructor, required by some GCC versions.
2617 2019-08-21 Jinke Fan <fanjinke51@yeah.net>
2619 * go32-nat.c (go32_sysinfo): Add hygon_p.
2621 2019-08-20 Tom Tromey <tom@tromey.com>
2623 * tui/tui-regs.h (struct tui_data_window) <last_regs_line_no,
2624 line_from_reg_element_no, first_reg_element_no_inline,
2625 display_all_data, delete_data_content_windows,
2626 erase_data_content>: Now private.
2628 2019-08-20 Tom Tromey <tom@tromey.com>
2630 * tui/tui-wingeneral.c (box_win): Change type of highlight_flag.
2631 (tui_unhighlight_win, tui_highlight_win)
2632 (tui_win_info::make_window): Update.
2633 * tui/tui-data.h (HILITE, NO_HILITE): Remove.
2635 2019-08-20 Tom Tromey <tom@tromey.com>
2637 * tui/tui-data.h (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2638 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2639 (MAX_PID_WIDTH): Move to tui-stack.c.
2640 * tui/tui-stack.c (PROC_PREFIX, LINE_PREFIX, PC_PREFIX)
2641 (MIN_LINE_WIDTH, MIN_PROC_WIDTH, MAX_TARGET_WIDTH)
2642 (MAX_PID_WIDTH): Move from tui-data.h.
2644 2019-08-20 Tom Tromey <tom@tromey.com>
2646 * tui/tui-wingeneral.h (tui_make_window): Don't declare.
2647 * tui/tui-wingeneral.c (box_win): Change type of win_info.
2649 (tui_gen_win_info::make_window): Rename from tui_make_window.
2650 (tui_win_info::make_window): New method.
2651 (tui_gen_win_info::make_visible): Update.
2652 * tui/tui-source.c (tui_source_window::set_contents): Update.
2653 * tui/tui-regs.c (tui_data_window::show_register_group): Update.
2654 (tui_data_window::display_registers_from): Update.
2655 * tui/tui-layout.c (tui_gen_win_info::resize): Update.
2656 * tui/tui-data.h (struct tui_gen_win_info) <make_window>:
2660 (struct tui_win_info) <make_window>: Declare.
2661 <can_box>: Now virtual.
2662 <title>: New member.
2663 * tui/tui-data.c (~tui_gen_win_info): Don't free title.
2664 * tui/tui-command.c (tui_cmd_window::resize): Update.
2666 2019-08-20 Tom Tromey <tom@tromey.com>
2668 * tui/tui-regs.h (struct tui_data_window) <display_regs>: Remove.
2669 * tui/tui-regs.c (tui_data_window::show_registers): Update.
2670 (tui_data_window::check_register_values): Update.
2672 2019-08-20 Tom Tromey <tom@tromey.com>
2674 * tui/tui-regs.h (struct tui_data_window): Use
2675 DISABLE_COPY_AND_ASSIGN.
2676 <regs_content>: Change type, removing unique_ptr.
2677 <tui_data_window>: Add move constructor.
2678 * tui/tui-regs.c (tui_data_window::show_registers)
2679 (tui_data_window::show_register_group)
2680 (tui_data_window::display_registers_from)
2681 (tui_data_window::display_registers_from)
2682 (tui_data_window::first_data_item_displayed)
2683 (tui_data_window::delete_data_content_windows)
2684 (tui_data_window::rerender, tui_data_window::refresh_window)
2685 (tui_data_window::check_register_values): Update.
2687 2019-08-20 Tom Tromey <tom@tromey.com>
2689 * tui/tui-regs.h (struct tui_data_window) <show_registers,
2690 show_register_group>: Declare.
2691 (tui_show_register_group): Don't declare.
2692 * tui/tui-regs.c (tui_data_window::show_registers): Rename from
2694 (tui_data_window::show_register_group): Rename from
2695 tui_show_register_group.
2696 (tui_data_window::check_register_values, tui_reg_command):
2698 * tui/tui-layout.c (tui_set_layout): Update.
2700 2019-08-20 Tom Tromey <tom@tromey.com>
2702 * tui/tui-regs.h (struct tui_data_window) <check_register_values>:
2704 (tui_check_register_values): Don't declare.
2705 * tui/tui-regs.c (tui_data_window::check_register_values): Rename
2706 from tui_check_register_values.
2707 * tui/tui-hooks.c (tui_register_changed): Update.
2709 2019-08-20 Tom Tromey <tom@tromey.com>
2711 * tui/tui-regs.c (tui_reg_layout): Move later.
2712 (tui_show_registers): Don't enable TUI mode or change layout.
2714 2019-08-20 Tom Tromey <tom@tromey.com>
2716 * tui/tui-regs.h (struct tui_data_item_window)
2717 <~tui_data_item_window>: Remove.
2718 <content>: Now a unique_xmalloc_ptr.
2719 * tui/tui-regs.c (tui_register_format): Return a
2721 (tui_get_register): Update.
2722 (~tui_data_item_window): Remove.
2723 (tui_data_window::display_registers_from, tui_display_register):
2725 * tui/tui-io.h (tui_expand_tabs): Update.
2726 * tui/tui-io.c (tui_expand_tabs): Return a unique_xmalloc_ptr.
2727 Remove "col" parameter.
2729 2019-08-20 Tom Tromey <tom@tromey.com>
2731 * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
2733 * tui/tui-regs.c (~tui_data_item_window): Update.
2735 2019-08-20 Tom Tromey <tom@tromey.com>
2737 * tui/tui-regs.c (tui_register_format, tui_get_register): Move
2740 2019-08-20 Tom Tromey <tom@tromey.com>
2742 * tui/tui-regs.c (tui_reg_command): Remove NULL check.
2744 2019-08-20 Tom Tromey <tom@tromey.com>
2746 * tui/tui-source.h (struct tui_source_window): Update.
2747 * tui/tui-regs.c (tui_show_registers): Update.
2748 * tui/tui-disasm.h (struct tui_disasm_window): Update.
2749 * tui/tui-data.h (NO_SRC_STRING, NO_DISASSEM_STRING)
2750 (NO_REGS_STRING): Remove defines.
2752 2019-08-20 Conrad Meyer <cem@FreeBSD.org>
2754 * remote.c (remote_target::remote_btrace_maybe_reopen): Avoid
2755 unnecessary thread walk if remote doesn't support the packet.
2757 2019-08-19 Tom Tromey <tromey@adacore.com>
2759 * python/py-value.c (value_has_field): Fix indentation.
2761 2019-08-19 Tom Tromey <tromey@adacore.com>
2763 * printcmd.c (do_one_display, info_display_command): Update.
2764 * block.h (contained_in): Return bool. Add allow_nested
2766 * block.c (contained_in): Return bool. Add allow_nested
2769 2019-08-19 Tom Tromey <tom@tromey.com>
2771 * configure: Rebuild.
2772 * configure.ac: Disallow the combination of -static-libstdc++ and
2774 * source-cache.c (get_language_name): Handle rust.
2775 (source_cache::get_source_lines): Ignore highlighting exceptions.
2777 2019-08-16 Tom Tromey <tom@tromey.com>
2779 * tui/tui.h (enum tui_win_type) <EXEC_INFO_WIN>: Remove.
2780 * tui/tui-winsource.h (struct tui_exec_info_window): Remove.
2781 (struct tui_source_window_base) <make_visible, refresh_window,
2782 resize>: Remove methods.
2783 <execution_info>: Remove field.
2784 * tui/tui-winsource.c (tui_source_window_base::do_erase_source_content)
2785 (tui_show_source_line, tui_source_window_base)
2786 (~tui_source_window_base): Update.
2787 (tui_source_window_base::resize)
2788 (tui_source_window_base::make_visible)
2789 (tui_source_window_base::refresh_window): Remove.
2790 (tui_source_window_base::update_exec_info): Update.
2791 * tui/tui-source.c (tui_source_window::set_contents): Update.
2792 * tui/tui-disasm.c (tui_disasm_window::set_contents): Update.
2794 2019-08-16 Tom Tromey <tom@tromey.com>
2796 * tui/tui-hooks.c (tui_remove_hooks): Don't set
2797 deprecated_query_hook.
2799 2019-08-16 Tom Tromey <tom@tromey.com>
2801 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
2802 (tui_update_source_windows_with_line): Update.
2803 * tui/tui-source.h (struct tui_source_window)
2804 <show_symtab_source>: Declare.
2805 (tui_show_symtab_source): Don't declare.
2806 * tui/tui-source.c (tui_show_symtab_source): Rename from
2807 tui_show_symtab_source.
2809 2019-08-16 Tom Tromey <tom@tromey.com>
2811 * tui/tui-winsource.h (struct tui_source_window_base)
2812 <set_contents>: Declare.
2813 * tui/tui-winsource.c
2814 (tui_source_window_base::update_source_window_as_is): Update.
2815 * tui/tui-source.h (struct tui_source_window) <set_contents>:
2817 (tui_set_source_content): Don't declare.
2818 * tui/tui-source.c (tui_source_window::set_contents): Rename from
2819 tui_set_source_content.
2820 * tui/tui-disasm.h (struct tui_disasm_window) <set_contents>:
2822 (tui_set_disassem_content): Don't declare.
2823 * tui/tui-disasm.c (tui_disasm_window::set_contents): Rename from
2824 tui_set_disassem_content.
2826 2019-08-16 Tom Tromey <tom@tromey.com>
2828 * tui/tui-winsource.h (struct tui_source_window_base)
2829 <update_breakpoint_info>: Declare.
2830 (tui_update_breakpoint_info): Don't declare.
2831 * tui/tui-winsource.c (tui_source_window_base::update_source_window_as_is)
2832 (tui_update_all_breakpoint_info): Update.
2833 (tui_source_window_base::update_breakpoint_info): Rename from
2834 tui_update_breakpoint_info.
2835 (tui_source_window_base::update_exec_info): Update.
2837 2019-08-16 Tom Tromey <tom@tromey.com>
2839 * tui/tui-winsource.h (struct tui_source_window_base)
2840 <update_source_window>: Declare.
2841 (tui_update_source_window): Don't declare.
2842 * tui/tui-winsource.c
2843 (tui_source_window_base::update_source_window): Rename from
2844 tui_update_source_window.
2845 (tui_source_window_base::rerender): Update.
2846 * tui/tui-source.c (tui_source_window::maybe_update): Update.
2847 * tui/tui-disasm.c (tui_show_disassem)
2848 (tui_show_disassem_and_update_source)
2849 (tui_disasm_window::maybe_update): Update.
2851 2019-08-16 Tom Tromey <tom@tromey.com>
2853 * tui/tui-winsource.h (struct tui_source_window_base)
2854 <update_source_window_as_is>: Declare.
2855 (tui_update_source_window_as_is): Don't declare.
2856 * tui/tui-winsource.c (tui_update_source_window): Update
2857 (tui_source_window_base::update_source_window_as_is): Rename from
2858 tui_update_source_window_as_is.
2859 (tui_source_window_base::refill): Update.
2860 * tui/tui-source.c (tui_show_symtab_source): Update.
2861 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical):
2864 2019-08-16 Tom Tromey <tom@tromey.com>
2866 * tui/tui-winsource.h (tui_update_source_window)
2867 (tui_update_source_window_as_is): Remove "noerror" parameter.
2868 * tui/tui-winsource.c (tui_update_source_window)
2869 (tui_update_source_window_as_is): Remove "noerror" parameter.
2870 (tui_update_source_windows_with_addr)
2871 (tui_update_source_windows_with_line)
2872 (tui_source_window_base::rerender)
2873 (tui_source_window_base::refill): Update.
2874 * tui/tui-source.h (tui_set_source_content)
2875 (tui_show_symtab_source): Remove "noerror" parameter.
2876 * tui/tui-source.c (tui_set_source_content): Remove "noerror"
2878 (tui_show_symtab_source): Likewise.
2879 (tui_source_window::maybe_update): Update.
2880 * tui/tui-disasm.c (tui_show_disassem)
2881 (tui_show_disassem_and_update_source)
2882 (tui_disasm_window::do_scroll_vertical)
2883 (tui_disasm_window::maybe_update): Update.
2885 2019-08-16 Tom Tromey <tom@tromey.com>
2887 * tui/tui.c (tui_is_window_visible): Update.
2888 * tui/tui-wingeneral.c (tui_make_window)
2889 (tui_gen_win_info::make_visible, tui_refresh_all): Update.
2890 * tui/tui-win.c (window_name_completer, tui_refresh_all_win)
2891 (tui_set_focus_command, tui_all_windows_info, update_tab_width)
2892 (tui_set_win_height_command, parse_scrolling_args): Update.
2893 * tui/tui-source.c (tui_source_window::style_changed): Update.
2894 * tui/tui-regs.c (tui_show_registers)
2895 (tui_data_window::first_data_item_displayed)
2896 (tui_data_window::delete_data_content_windows)
2897 (tui_check_register_values, tui_reg_command): Update.
2898 * tui/tui-disasm.c (tui_show_disassem): Update.
2899 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: New
2901 <is_visible>: Remove field.
2902 * tui/tui-data.c (tui_next_win, tui_prev_win)
2903 (tui_delete_invisible_windows): Update.
2905 2019-08-16 Tom Tromey <tom@tromey.com>
2907 * tui/tui-winsource.h (struct tui_source_window_base)
2908 <m_has_locator>: Remove.
2909 * tui/tui-layout.c (show_source_disasm_command, show_data)
2910 (show_source_or_disasm_and_command): Update.
2912 2019-08-16 Alan Hayward <alan.hayward@arm.com>
2914 * NEWS (Other MI changes): New subsection.
2915 * aarch64-tdep.c (aarch64_get_pc_address_flags): New function.
2916 (aarch64_gdbarch_init): Add aarch64_get_pc_address_flags.
2917 * arch-utils.c (default_get_pc_address_flags): New function.
2918 * arch-utils.h (default_get_pc_address_flags): New declaration.
2919 * gdbarch.sh: Add get_pc_address_flags.
2920 * gdbarch.c: Regenerate.
2921 * gdbarch.h: Likewise.
2922 * stack.c (print_pc): New function.
2923 (print_frame_info) (print_frame): Call print_pc.
2925 2019-08-16 Tom de Vries <tdevries@suse.de>
2927 * maint.c (maintenance_info_sections): Also handle !ALLOBJ case using
2928 print_objfile_section_info.
2930 2019-08-15 Tom Tromey <tom@tromey.com>
2932 * tui/tui-io.c (tui_puts_internal): Check TUI_CMD_WIN before
2933 calling update_cmdwin_start_line.
2934 * tui/tui-winsource.h (struct tui_source_window_base)
2935 <do_make_visible_with_new_height, set_new_height>: Don't declare.
2936 <rerender>: Declare.
2937 * tui/tui-winsource.c (tui_source_window_base::update_tab_width):
2939 (tui_source_window_base::set_new_height): Remove.
2940 (tui_source_window_base::rerender): Rename from
2941 do_make_visible_with_new_height.
2942 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Use
2944 (tui_win_info::make_invisible_and_set_new_height)
2945 (tui_win_info::make_visible_with_new_height): Remove.
2946 * tui/tui-stack.h (struct tui_locator_window) <rerender>:
2948 * tui/tui-stack.c (tui_locator_window::rerender): New method.
2949 * tui/tui-regs.h (struct tui_data_window) <set_new_height,
2950 do_make_visible_with_new_height>: Don't declare.
2951 <rerender>: Declare.
2952 * tui/tui-regs.c (tui_data_window::rerender): Rename from
2954 (tui_data_window::do_make_visible_with_new_height): Remove.
2955 * tui/tui-layout.c (show_source_disasm_command, show_data): Don't
2956 call tui_show_locator_content.
2957 (tui_gen_win_info::resize): Call rerender.
2958 (show_source_or_disasm_and_command): Don't call
2959 tui_show_locator_content.
2960 * tui/tui-data.h (struct tui_gen_win_info) <rerender>: New
2962 (struct tui_win_info) <rerender>: Declare.
2963 <set_new_height, make_invisible_and_set_new_height,
2964 make_visible_with_new_height>: Don't declare.
2965 * tui/tui-data.c (tui_win_list::rerender): New method.
2966 * tui/tui-command.h (struct tui_cmd_window)
2967 <do_make_visible_with_new_height>: Don't declare.
2969 (tui_cmd_window::do_make_visible_with_new_height): Remove.
2971 2019-08-15 Tom Tromey <tromey@adacore.com>
2973 * ada-exp.y (convert_char_literal): Handle "Q%c" encoding.
2974 * ada-lang.c (ada_enum_name): Likewise.
2976 2019-08-15 Christian Biesinger <cbiesinger@google.com>
2978 * python/lib/gdb/__init__.py (GdbOutputFile): Rename to have a
2980 (GdbOutputErrorFile): Likewise.
2981 (global scope): Adjust constructor calls to GdbOutput{,Error}File
2983 (execute_unwinders): Rename to have a leading underscore.
2984 (auto_load_packages): Likewise.
2985 (global scope): Adjust call to auto_load_packages accordingly.
2986 (GdbSetPythonDirectory): Likewise.
2987 * python/py-unwind.c (pyuw_sniffer): Call _execute_unwinders
2988 instead of execute_unwinders.
2990 2019-08-15 Tom Tromey <tom@tromey.com>
2992 * tui/tui-layout.c (show_layout, show_source_disasm_command)
2993 (show_data): Don't change window visibility.
2994 (tui_gen_win_info::resize): Remove special case for command
2995 window. Use wresize, when available.
2996 (show_source_or_disasm_and_command): Don't change window
2998 * tui/tui-command.h (struct tui_cmd_window) <resize>: Declare.
2999 <make_visible>: New method.
3000 * tui/tui-command.c (tui_cmd_window::resize): New method.
3002 2019-08-15 Tom Tromey <tom@tromey.com>
3004 * tui/tui-winsource.h (struct tui_source_window_iterator): New.
3005 (struct tui_source_windows): New.
3006 * tui/tui-winsource.c (tui_display_main): Update.
3007 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
3008 (new_height_ok, parse_scrolling_args): Update.
3009 * tui/tui-layout.c (show_layout, show_data): Update.
3010 * tui/tui-data.h (tui_source_windows, tui_clear_source_windows)
3011 (tui_add_to_source_windows): Don't declare.
3012 * tui/tui-data.c (source_windows, tui_source_windows)
3013 (tui_clear_source_windows, tui_add_to_source_windows): Remove.
3015 2019-08-15 Tom Tromey <tom@tromey.com>
3017 * tui/tui-winsource.h (struct tui_source_window_base) <resize>:
3019 * tui/tui-winsource.c (tui_source_window_base::resize): Rename.
3020 * tui/tui-layout.c (show_source_disasm_command, show_data):
3022 (tui_gen_win_info::resize): Rename.
3023 (show_source_or_disasm_and_command): Update.
3024 * tui/tui-data.h (struct tui_gen_win_info) <resize>: Rename from
3027 2019-08-15 Tom Tromey <tom@tromey.com>
3029 * tui/tui-stack.c (tui_initialize_static_data): Remove.
3030 * tui/tui-interp.c (tui_interp::init): Don't call
3031 tui_initialize_static_data.
3032 * tui/tui-data.h (tui_initialize_static_data): Don't declare.
3034 2019-08-15 Tom Tromey <tom@tromey.com>
3036 * tui/tui-layout.c (tui_default_win_viewport_height): Don't
3037 examine tui_win_list.
3039 2019-08-15 Tom Tromey <tom@tromey.com>
3041 * tui/tui-winsource.h (tui_clear_source_content): Don't declare.
3042 * tui/tui-winsource.c (tui_update_source_window_as_is): Don't call
3043 tui_clear_source_content.
3044 (tui_clear_source_content): Remove.
3045 (tui_source_window_base::do_erase_source_content): Hoist call to
3047 * tui/tui-stack.c (tui_show_frame_info): Don't call
3048 tui_clear_source_content.
3050 2019-08-15 Tom Tromey <tom@tromey.com>
3052 * tui/tui-winsource.h (struct tui_source_window_base)
3053 <do_erase_source_content>: New method.
3054 <erase_source_content>: New method.
3055 (tui_erase_source_content): Don't declare.
3056 * tui/tui-winsource.c (tui_clear_source_content): Update.
3057 (tui_source_window_base::do_erase_source_content): Rename from
3058 tui_erase_source_content.
3059 (tui_source_window_base::show_source_content): Update.
3060 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
3061 * tui/tui-source.h (struct tui_source_window)
3062 <erase_source_content>: New method.
3063 * tui/tui-disasm.h (struct tui_disasm_window)
3064 <erase_source_content>: New method.
3066 2019-08-15 Tom Tromey <tom@tromey.com>
3068 * tui/tui-winsource.h (tui_alloc_source_buffer): Don't declare.
3069 (struct tui_source_element): Add DISABLE_COPY_AND_ASSIGN, and move
3071 * tui/tui-winsource.c (tui_alloc_source_buffer): Remove.
3072 * tui/tui-source.c (tui_set_source_content): Update.
3073 * tui/tui-disasm.c (tui_set_disassem_content): Update.
3075 2019-08-15 Tom Tromey <tom@tromey.com>
3077 * tui/tui-winsource.h (tui_line_is_displayed): Don't declare.
3078 * tui/tui-winsource.c (tui_line_is_displayed): Move to
3080 * tui/tui-source.h (struct tui_source_window) <line_is_displayed>:
3082 * tui/tui-source.c (tui_source_window::line_is_displayed): New
3084 (tui_source_window::maybe_update): Update.
3086 2019-08-15 Tom Tromey <tom@tromey.com>
3088 * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare.
3089 * tui/tui-winsource.c (tui_addr_is_displayed): Move to
3091 * tui/tui-disasm.h (struct tui_disasm_window) <addr_is_displayed>:
3093 * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
3095 (tui_disasm_window::maybe_update): Update.
3097 2019-08-15 Tom Tromey <tom@tromey.com>
3099 * tui/tui-winsource.h (struct tui_source_window_base)
3100 <maybe_update>: Declare.
3101 * tui/tui-stack.c (tui_show_frame_info): Call maybe_update
3103 * tui/tui-source.h (struct tui_source_window) <maybe_update>:
3105 * tui/tui-source.c (tui_source_window::maybe_update): New method.
3106 * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
3108 * tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
3110 2019-08-15 Tom Tromey <tom@tromey.com>
3112 * tui/tui-stack.c (tui_make_status_line): Use string constructor.
3114 2019-08-15 Tom Tromey <tom@tromey.com>
3116 * tui/tui-wingeneral.c: Include tui-stack.h.
3117 * tui/tui-stack.h (MAX_LOCATOR_ELEMENT_LEN)
3118 (struct tui_locator_window): Move from tui-data.h.
3119 * tui/tui-stack.c (_locator, tui_locator_win_info_ptr)
3120 (tui_initialize_static_data): Move from tui-data.c.
3121 * tui/tui-data.h (MAX_LOCATOR_ELEMENT_LEN)
3122 (struct tui_locator_window): Move to tui-stack.c.
3123 * tui/tui-data.c (_locator, tui_locator_win_info_ptr)
3124 (tui_initialize_static_data): Move to tui-stack.c.
3126 2019-08-15 Tom Tromey <tom@tromey.com>
3128 * tui/tui-layout.c (show_source_disasm_command)
3129 (show_source_or_disasm_and_command): Use make_visible method, not
3131 * tui/tui-command.h (struct tui_cmd_window) <make_visible>:
3134 2019-08-15 Tom Tromey <tom@tromey.com>
3136 * tui/tui-wingeneral.h (tui_make_window): Update.
3137 * tui/tui-wingeneral.c (tui_make_window): Remove "box_it"
3139 (tui_gen_win_info::make_visible): Update.
3140 * tui/tui-regs.c (tui_data_window::display_registers_from):
3142 * tui/tui-layout.c (show_source_disasm_command)
3143 (show_source_or_disasm_and_command): Update.
3144 * tui/tui-data.h (struct tui_gen_win_info) <can_box>: New method.
3145 (enum tui_box): Remove.
3146 (struct tui_win_info) <can_box>: New method.
3147 * tui/tui-command.h (struct tui_cmd_window) <can_box>: New
3150 2019-08-15 Tom de Vries <tdevries@suse.de>
3152 * linux-nat-trad.c: Include gdbarch.h.
3154 2019-08-14 Alan Hayward <alan.hayward@arm.com>
3156 * aarch64-tdep.c (aarch64_analyze_prologue): Allow any valid
3159 2019-08-14 Tom Tromey <tromey@adacore.com>
3161 * darwin-nat.c: Include gdbarch.h.
3162 * darwin-nat-info.c: Include gdbarch.h.
3164 2019-08-13 Tom Tromey <tom@tromey.com>
3166 * tui/tui-data.h (struct tui_gen_win_info) <last_visible_line>:
3168 * tui/tui-data.c (tui_initialize_static_data): Update.
3170 2019-08-13 Tom Tromey <tom@tromey.com>
3172 * tui/tui-winsource.h (struct tui_exec_info_window)
3173 <~tui_exec_info_window, maybe_allocate_content, get_content,
3175 (struct tui_source_window_base) <set_exec_info_content,
3176 show_exec_info_content>: Don't declare.
3177 * tui/tui-winsource.c
3178 (tui_exec_info_window::maybe_allocate_content): Remove.
3179 (tui_source_window_base::update_exec_info): Rename from
3180 set_exec_info_content.
3181 (tui_source_window_base::show_exec_info_content)
3182 (tui_source_window_base::update_exec_info): Remove.
3184 2019-08-13 Tom Tromey <tom@tromey.com>
3186 * tui/tui-winsource.h (tui_clear_exec_info_content): Don't
3188 * tui/tui-winsource.c (tui_update_source_window_as_is)
3189 (tui_update_source_windows_with_addr, tui_erase_source_content):
3191 (tui_clear_exec_info_content): Remove.
3193 2019-08-13 Tom Tromey <tom@tromey.com>
3195 * tui/tui-winsource.h (tui_erase_exec_info_content): Don't
3197 * tui/tui-winsource.c (tui_source_window_base::refresh_all): Don't
3198 call tui_erase_exec_info_content.
3199 (tui_clear_exec_info_content): Rename from
3200 tui_erase_exec_info_content.
3201 (tui_clear_exec_info_content): Delete.
3203 2019-08-13 Tom Tromey <tom@tromey.com>
3205 * tui/tui-winsource.h (struct tui_source_window_base)
3206 <show_exec_info_content>: Declare.
3207 (tui_show_exec_info_content): Don't declare.
3208 * tui/tui-winsource.c
3209 (tui_source_window_base::show_exec_info_content): Rename from
3210 tui_show_exec_info_content.
3211 (tui_source_window_base::update_exec_info): Update.
3213 2019-08-13 Tom Tromey <tom@tromey.com>
3215 * tui/tui-data.h (enum tui_bp_flag, tui_bp_flags, struct tui_source_element)
3216 (TUI_BP_HIT_POS, TUI_BP_BREAK_POS, TUI_EXEC_POS)
3217 (TUI_EXECINFO_SIZE, tui_exec_info_content): Move ...
3218 * tui/tui-winsource.h (enum tui_bp_flag, tui_bp_flags, struct
3219 tui_source_element, TUI_BP_HIT_POS, TUI_BP_BREAK_POS)
3220 (TUI_EXEC_POS, TUI_EXECINFO_SIZE, tui_exec_info_content):
3223 2019-08-13 Tom Tromey <tom@tromey.com>
3225 * tui/tui-winsource.h (struct tui_source_window_base)
3226 <update_exec_info>: Declare.
3227 (tui_update_exec_info): Don't declare.
3228 * tui/tui-winsource.c (tui_update_source_window_as_is)
3229 (tui_source_window_base::refresh_all)
3230 (tui_update_all_breakpoint_info): Update.
3231 (tui_source_window_base::update_exec_info): Rename from
3232 tui_update_exec_info.
3233 * tui/tui-stack.c (tui_show_frame_info): Update.
3235 2019-08-13 Tom Tromey <tom@tromey.com>
3237 * tui/tui-winsource.h (struct tui_source_window_base)
3238 <set_exec_info_content>: Declare.
3239 (tui_set_exec_info_content): Don't declare.
3240 * tui/tui-winsource.c
3241 (tui_source_window_base::set_exec_info_content): Rename from
3242 tui_set_exec_info_content.
3243 (tui_update_exec_info): Update.
3245 2019-08-13 Tom Tromey <tom@tromey.com>
3247 * tui/tui-winsource.h (struct tui_source_window_base)
3248 <show_source_content>: Declare.
3249 (tui_show_source_content): Don't declare.
3250 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
3251 (tui_source_window_base::show_source_content): Rename from
3252 tui_show_source_content.
3253 (tui_source_window_base::refresh_all): Update.
3254 * tui/tui-layout.c (show_source_disasm_command)
3255 (show_source_or_disasm_and_command): Update.
3257 2019-08-13 Tom Tromey <tom@tromey.com>
3259 * tui/tui-winsource.c (tui_erase_source_content)
3260 (tui_show_source_content, tui_source_window_base::refresh_all):
3262 * tui/tui-wingeneral.h
3263 (tui_check_and_display_highlight_if_needed): Don't declare.
3264 * tui/tui-wingeneral.c
3265 (tui_win_info::check_and_display_highlight_if_needed): Rename from
3266 check_and_display_highlight_if_needed.
3267 * tui/tui-win.c (tui_rehighlight_all)
3268 (tui_win_info::make_visible_with_new_height): Update.
3269 * tui/tui-regs.c (tui_data_window::display_registers_from_line)
3270 (tui_data_window::erase_data_content)
3271 (tui_data_window::display_all_data): Update.
3272 * tui/tui-data.h (struct tui_win_info)
3273 <check_and_display_highlight_if_needed>: Declare.
3275 2019-08-13 Tom Tromey <tom@tromey.com>
3277 * tui/tui-win.c (tui_resize_all): Call
3278 tui_delete_invisible_windows.
3279 * tui/tui-layout.c (show_layout): Call
3280 tui_delete_invisible_windows.
3281 * tui/tui-data.h (tui_delete_invisible_windows): Declare.
3282 * tui/tui-data.c (tui_delete_invisible_windows): New function.
3284 2019-08-13 Tom Tromey <tom@tromey.com>
3286 * tui/tui-disasm.c (tui_show_disassem): Add assertion. Don't call
3287 tui_add_win_to_layout.
3289 2019-08-13 Tom Tromey <tom@tromey.com>
3291 * tui/tui-layout.h (tui_default_win_height): Don't declare.
3292 * tui/tui-layout.c (tui_default_win_height): Now static.
3294 2019-08-13 Tom Tromey <tom@tromey.com>
3296 * tui/tui-layout.c (show_layout): Unify all layout cases into a
3298 (show_source_disasm_command, show_source_or_disasm_and_command):
3299 Don't check current layout.
3301 2019-08-13 Tom Tromey <tom@tromey.com>
3303 * tui/tui-wingeneral.c (make_all_visible): Remove.
3304 (tui_make_all_invisible): Simplify.
3305 * tui/tui-layout.c (tui_make_all_invisible): Move from
3306 tui-wingeneral.c; simplify.
3307 (show_layout): Hoist call to tui_make_all_invisible.
3308 (show_data): Don't call tui_make_all_invisible.
3310 2019-08-13 Tom Tromey <tom@tromey.com>
3312 * tui/tui-wingeneral.h (tui_make_all_visible): Don't declare.
3313 * tui/tui-wingeneral.c (tui_make_all_visible): Remove.
3315 2019-08-13 Tom Tromey <tom@tromey.com>
3317 * tui/tui-layout.c (current_layout, tui_current_layout): Move from
3319 (show_source_disasm_command, show_data)
3320 (show_source_or_disasm_and_command): Don't use
3321 tui_set_current_layout_to.
3322 * tui/tui-data.h (tui_set_current_layout_to): Don't declare.
3323 * tui/tui-data.c (current_layout, tui_current_layout): Move to
3325 (tui_set_current_layout_to): Remove.
3327 2019-08-13 Tom Tromey <tom@tromey.com>
3329 * tui/tui-layout.c (tui_set_layout): Update.
3330 * tui/tui-data.h (struct tui_layout_def): Remove.
3331 (tui_layout_def): Don't declare.
3332 * tui/tui-data.c (layout_def): Remove.
3333 (tui_layout_def): Remove.
3335 2019-08-13 Tom Tromey <tom@tromey.com>
3337 * tui/tui-winsource.h (struct tui_source_window_base)
3338 <clear_detail>: No longer "override".
3339 * tui/tui-regs.h (struct tui_data_window) <clear_detail>: Remove.
3340 * tui/tui-regs.c (tui_data_window::clear_detail): Remove.
3341 * tui/tui-data.h (struct tui_win_info) <clear_detail>: Remove.
3342 * tui/tui-command.h (struct tui_cmd_window) <clear_detail>:
3344 * tui/tui-command.c (tui_cmd_window::clear_detail): Remove.
3346 2019-08-13 Tom Tromey <tromey@adacore.com>
3348 * tracepoint.c: Don't include readline.h or history.h.
3350 2019-08-12 Tom Tromey <tom@tromey.com>
3352 * configure: Rebuild.
3353 * configure.ac: Check for readline 7.
3354 * NEWS: Mention readline 7 requirement.
3357 2019-08-12 Tom Tromey <tom@tromey.com>
3359 * mingw-hdep.c (gdb_select): Remove readline hack.
3361 2019-08-09 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
3363 * blockframe.c (find_pc_partial_function): Set *block to nullptr
3364 when the function fails.
3366 2019-08-09 Andreas Arnez <arnez@linux.ibm.com>
3368 * s390-tdep.c (s390_type_align): New function.
3369 (s390_gdbarch_init): Set it as type_align gdbarch method.
3371 2019-08-09 Tom de Vries <tdevries@suse.de>
3374 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): Adjust pc_high and
3375 pc_low with relocation offset.
3377 2019-08-07 Tom Tromey <tromey@adacore.com>
3379 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
3380 (print_frame_args): Update.
3381 * python/py-framefilter.c (py_print_single_arg, enumerate_args):
3383 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
3384 * frame.h (struct frame_arg): Add initializers.
3385 <error>: Now a unique_xmalloc_ptr.
3387 2019-08-07 Alan Hayward <alan.hayward@arm.com>
3389 * NEWS: Expand the Pointer Authentication entry.
3390 * aarch64-tdep.c (aarch64_frame_unmask_address): Rename from this.
3391 (aarch64_frame_unmask_lr): ... to this.
3392 (aarch64_prologue_prev_register, aarch64_dwarf2_prev_register):
3393 Call aarch64_frame_unmask_lr.
3394 * frame.c (struct frame_info): Add "masked" variable.
3395 (frame_set_previous_pc_masked) (frame_get_pc_masked): New functions.
3396 (fprint_frame): Check for masked pc.
3397 * frame.h (frame_set_previous_pc_masked) (frame_get_pc_masked): New
3399 * python/py-framefilter.c (py_print_frame): Check for masked pc.
3400 * stack.c (print_frame): Check for masked pc.
3402 2019-08-06 Tom Tromey <tom@tromey.com>
3404 * stabsread.c (patch_block_stabs, read_one_struct_field)
3405 (read_enum_type): Use obstack_strndup.
3406 * rust-exp.y (rust_parser::copy_name): Use obstack_strndup.
3407 * gdb_obstack.h (obstack_strndup): Use obstack_strndup.
3408 * dwarf2read.c (guess_full_die_structure_name)
3409 (anonymous_struct_prefix): Use obstack_strndup.
3410 * dbxread.c (cp_set_block_scope): Use obstack_strndup.
3411 * c-exp.y (yylex): Use obstack_strndup.
3412 * ada-exp.y (write_object_renaming, write_ambiguous_var)
3413 (write_var_or_type): Use obstack_strndup.
3415 2019-08-06 Tom Tromey <tom@tromey.com>
3417 * symfile.c (reread_symbols): Use obstack_strdup.
3418 * stabsread.c (read_type): Use obstack_strdup.
3419 * gdb_obstack.h (obstack_strdup): New overload.
3420 * dwarf2read.c (dwarf2_compute_name, create_dwo_unit_in_dwp_v1)
3421 (create_dwo_unit_in_dwp_v2, build_error_marker_type)
3422 (dwarf2_canonicalize_name): Use obstack_strdup.
3423 * dbxread.c (read_dbx_symtab): Use obstack_strdup.
3424 * cp-support.c (inspect_type, replace_typedefs_qualified_name):
3427 2019-08-06 Tom Tromey <tom@tromey.com>
3429 * gdb_obstack.h (obstack_strdup): Define.
3430 * gdb_obstack.c (obstack_strdup): Don't define.
3432 2019-08-06 Tom Tromey <tom@tromey.com>
3434 * xcoffread.c (SYMNAME_ALLOC, process_xcoff_symbol): Use
3436 * typeprint.c (typedef_hash_table::find_global_typedef): Use
3438 * symfile.c (allocate_compunit_symtab): Use obstack_strdup.
3439 * stabsread.c (common_block_start): Use obstack_strdup.
3440 * objfiles.c (set_objfile_main_name, objfile): Use
3442 * namespace.c (add_using_directive): Use obstack_strdup.
3443 * mdebugread.c (parse_symbol, parse_type): Use obstack_strdup.
3444 * jit.c (finalize_symtab): Use obstack_strdup.
3445 * dwarf2read.c (fixup_go_packaging, dwarf2_physname)
3446 (guess_partial_die_structure_name, partial_die_info::fixup)
3447 (dwarf2_name): Use obstack_strdup.
3448 * coffread.c (coff_read_struct_type, coff_read_enum_type): Use
3450 * c-exp.y (scan_macro_expansion): Use obstack_strdup.
3451 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
3453 * ada-lang.c (ada_decode_symbol): Use obstack_strdup.
3455 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3457 * unittests/help-doc-selftests.c: New file.
3458 * Makefile.in: Add the new file.
3460 2019-08-07 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3462 * cli/cli-decode.h (print_doc_line): Add for_value_prefix argument.
3463 * cli/cli-decode.c (print_doc_line): Likewise. It now prints
3464 the full first line, except when FOR_VALUE_PREFIX. In this case,
3465 the trailing '.' is not output, and the first character is uppercased.
3466 (print_help_for_command): Update call to print_doc_line.
3467 (print_doc_of_command): Likewise.
3468 * cli/cli-setshow.c (deprecated_show_value_hack): Likewise.
3469 * cli/cli-option.c (append_indented_doc): Do not append newline.
3470 (build_help_option): Append newline after first appended_indented_doc
3471 only if a second call is done.
3472 (build_help): Append 2 new lines before each option, except the first
3474 * compile/compile.c (_initialize_compile): Add new lines after
3475 %OPTIONS%, when not at the end of the help.
3476 Change help doc or code
3477 producing the help doc to respect the invariants.
3478 * maint-test-options.c (_initialize_maint_test_options): Likewise.
3479 Also removed the new line after 'Options:', as all other commands
3480 do not put an empty line between 'Options:' and the first option.
3481 * printcmd.c (_initialize_printcmd): Likewise.
3482 * stack.c (_initialize_stack): Likewise.
3483 * interps.c (interpreter_exec_cmd): Fix "Usage:" line that was
3484 incorrectly telling COMMAND is optional.
3485 * ada-lang.c (_initialize_ada_language): Change help doc or code
3486 producing the help doc to respect the invariants.
3487 * ada-tasks.c (_initialize_ada_tasks): Likewise.
3488 * breakpoint.c (_initialize_breakpoint): Likewise.
3489 * cli/cli-cmds.c (_initialize_cli_cmds): Likewise.
3490 * cli/cli-logging.c (_initialize_cli_logging): Likewise.
3491 * cli/cli-setshow.c (_initialize_cli_setshow): Likewise.
3492 * cli/cli-style.c (cli_style_option::add_setshow_commands,
3493 _initialize_cli_style): Likewise.
3494 * corelow.c (core_target_info): Likewise.
3495 * dwarf-index-cache.c (_initialize_index_cache): Likewise.
3496 * dwarf2read.c (_initialize_dwarf2_read): Likewise.
3497 * filesystem.c (_initialize_filesystem): Likewise.
3498 * frame.c (_initialize_frame): Likewise.
3499 * gnu-nat.c (add_task_commands): Likewise.
3500 * infcall.c (_initialize_infcall): Likewise.
3501 * infcmd.c (_initialize_infcmd): Likewise.
3502 * interps.c (_initialize_interpreter): Likewise.
3503 * language.c (_initialize_language): Likewise.
3504 * linux-fork.c (_initialize_linux_fork): Likewise.
3505 * maint-test-settings.c (_initialize_maint_test_settings): Likewise.
3506 * maint.c (_initialize_maint_cmds): Likewise.
3507 * memattr.c (_initialize_mem): Likewise.
3508 * printcmd.c (_initialize_printcmd): Likewise.
3509 * python/lib/gdb/function/strfns.py (_MemEq, _StrLen, _StrEq,
3511 * ravenscar-thread.c (_initialize_ravenscar): Likewise.
3512 * record-btrace.c (_initialize_record_btrace): Likewise.
3513 * record-full.c (_initialize_record_full): Likewise.
3514 * record.c (_initialize_record): Likewise.
3515 * regcache-dump.c (_initialize_regcache_dump): Likewise.
3516 * regcache.c (_initialize_regcache): Likewise.
3517 * remote.c (add_packet_config_cmd, init_remote_threadtests,
3518 _initialize_remote): Likewise.
3519 * ser-tcp.c (_initialize_ser_tcp): Likewise.
3520 * serial.c (_initialize_serial): Likewise.
3521 * skip.c (_initialize_step_skip): Likewise.
3522 * source.c (_initialize_source): Likewise.
3523 * stack.c (_initialize_stack): Likewise.
3524 * symfile.c (_initialize_symfile): Likewise.
3525 * symtab.c (_initialize_symtab): Likewise.
3526 * target-descriptions.c (_initialize_target_descriptions): Likewise.
3527 * top.c (init_main): Likewise.
3528 * tracefile-tfile.c (tfile_target_info): Likewise.
3529 * tracepoint.c (_initialize_tracepoint): Likewise.
3530 * tui/tui-win.c (_initialize_tui_win): Likewise.
3531 * utils.c (add_internal_problem_command): Likewise.
3532 * valprint.c (value_print_option_defs): Likewise.
3534 2019-08-06 Frank Ch. Eigler <fche@redhat.com>
3537 * configure.ac: Drop enable-libmcheck support.
3538 * configure, config.in: Rebuild.
3539 * libmcheck.m4: Remove.
3540 * acinclude.m4: Don't include it.
3541 * Makefile.in: Don't distribute it.
3542 * top.c (print_gdb_configuration): Don't mention it.
3544 2019-08-06 Tom Tromey <tom@tromey.com>
3546 * utils.c (set_output_style): Sometimes pass stream to
3548 * ui-out.h (class ui_out) <can_emit_style_escape>: Declare.
3549 * record-btrace.c (btrace_insn_history): Update.
3550 * mi/mi-out.h (class mi_ui_out) <can_emit_style_escape>: New
3552 * disasm.h (gdb_pretty_print_disassembler): Add uiout parameter.
3553 Update initializers.
3554 <m_uiout>: New field.
3556 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3557 Remove "uiout" parameter.
3558 (dump_insns): Update.
3559 * cli-out.h (class cli_ui_out) <can_emit_style_escape>: Declare.
3560 * cli-out.c (cli_ui_out::can_emit_style_escape): New method.
3562 2019-08-06 Christian Biesinger <cbiesinger@google.com>
3564 * symtab.c (symbol_cache_lookup): Change int to enum block_enum.
3565 (error_in_psymtab_expansion): Likewise.
3566 (lookup_symbol_via_quick_fns): Likewise.
3567 (basic_lookup_transparent_type_quick): Likewise.
3568 (basic_lookup_transparent_type_1): Likewise.
3570 2019-08-06 Tom Tromey <tromey@adacore.com>
3572 * source.c (last_source_error): Now bool.
3573 (print_source_lines_base): Make "noprint" bool. Only open
3574 source file when last_source_visited changes.
3576 2019-08-06 Tom Tromey <tromey@adacore.com>
3578 * annotate.c (annotate_source_line): Use g_source_cache.
3579 * source-cache.c (source_cache::get_plain_source_lines): Change
3580 parameters. Populate m_offset_cache.
3581 (source_cache::ensure): New method.
3582 (source_cache::get_line_charpos): New method.
3583 (extract_lines): Move lower. Change parameters.
3584 (source_cache::get_source_lines): Move lower.
3585 * source-cache.h (class source_cache): Update comment.
3586 <get_line_charpos>: New method.
3587 <get_source_lines>: Update comment.
3588 <clear>: Clear m_offset_cache.
3589 <get_plain_source_lines>: Change parameters.
3590 <ensure>: New method
3591 <m_offset_cache>: New member.
3592 * source.c (forget_cached_source_info_for_objfile): Update.
3593 (info_source_command): Use g_source_cache.
3594 (find_source_lines, open_source_file_with_line_charpos): Remove.
3595 (print_source_lines_base, search_command_helper): Use g_source_cache.
3596 * source.h (open_source_file_with_line_charpos): Don't declare.
3597 * symtab.h (struct symtab) <nlines, line_charpos>: Remove.
3598 * tui/tui-source.c (tui_source_window::do_scroll_vertical):
3601 2019-08-06 Tom Tromey <tromey@adacore.com>
3603 * source-cache.c (source_cache::get_plain_source_lines):
3604 Remove "first_line" and "last_line" parameters.
3605 (source_cache::get_source_lines): Cache plain text.
3606 * source-cache.h (class source_cache)
3607 <get_plain_source_lines>: Update.
3609 2019-08-06 Tom Tromey <tromey@adacore.com>
3611 * source-cache.c (extract_lines): No longer a method.
3612 Changed type of parameter. Include final newline.
3613 (selftests::extract_lines_test): New function.
3614 (_initialize_source_cache): Likewise.
3615 * source-cache.h (class source_cache)
3616 <extract_lines>: Don't declare.
3618 2019-08-06 Tom Tromey <tromey@adacore.com>
3620 * breakpoint.c (init_breakpoint_sal): Update.
3621 (breakpoint): Update.
3622 * breakpoint.h (struct breakpoint) <filter>: Now a
3625 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3627 * NEWS: Mention dictionary access on blocks.
3628 * python/py-block.c (blpy_getitem): New function.
3629 (block_object_as_mapping): New struct.
3630 (block_object_type): Use new struct for tp_as_mapping field.
3632 2019-08-05 Christian Biesinger <cbiesinger@google.com>
3634 * objfiles.h (objfile): Add a comment describing partial symbols.
3636 2019-08-05 Tom Tromey <tromey@adacore.com>
3638 * compile/compile.c (_initialize_compile): Use _(), not N_().
3639 * thread.c (_initialize_thread): Use _(), not N_().
3640 * stack.c (_initialize_stack): Use _(), not N_().
3641 * printcmd.c (_initialize_printcmd): Use _(), not N_().
3643 2019-08-04 Simon Marchi <simon.marchi@polymtl.ca>
3645 * dwarf2read.c (struct dw2_symtab_iterator):
3646 <want_specific_block>: Remove.
3647 <block_index>: Change type to gdb::optional.
3648 (dw2_symtab_iter_init): Remove WANT_SPECIFIC_BLOCK parameter,
3649 change type of BLOCK_INDEX parameter to gdb::optional.
3650 (dw2_symtab_iter_next): Re-write in function of gdb::optional.
3651 (dw2_lookup_symbol): Don't pass argument for
3652 WANT_SPECIFIC_BLOCK.
3653 (dw2_expand_symtabs_for_function): Don't pass argument for
3654 WANT_SPECIFIC_BLOCK, pass empty optional for BLOCK_INDEX.
3655 (class dw2_debug_names_iterator)
3656 <dw2_debug_names_iterator>: Remove WANT_SPECIFIC_BLOCK
3657 parameter, change BLOCK_INDEX type to gdb::optional.
3658 <m_want_specific_block>: Remove.
3659 <m_block_index>: Change type to gdb::optional.
3660 (dw2_debug_names_iterator::next): Change type of IS_STATIC to
3661 gdb::optional. Re-write in function of gdb::optional.
3662 (dw2_debug_names_lookup_symbol): Don't pass argument for
3663 WANT_SPECIFIC_BLOCK.
3664 (dw2_debug_names_expand_symtabs_for_function): Don't pass
3665 argument for WANT_SPECIFIC_BLOCK, pass empty optional for
3668 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3670 * NEWS: Mention changes to "info sources" command.
3672 2019-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3674 * symtab.c (filename_partial_match_opts): New struct type.
3675 (struct output_source_filename_data): New members
3676 regexp, c_regexp, partial_match.
3677 (output_source_filename): Use new members to decide to print file.
3678 (info_sources_option_defs): New variable.
3679 (make_info_sources_options_def_group, print_info_sources_header,
3680 info_sources_command_completer):
3682 (info_sources_command): Read new optional arguments.
3683 (_initialize_symtab): Update info sources help.
3685 2019-08-02 Alexandre Oliva <oliva@adacore.com>
3687 * ada-lang.c (exception_support_info_v0): Renamed from...
3688 (default_exception_support_info): ... this. Create new
3690 (ada_has_this_exception_support): Look up catch_handlers_sym.
3691 (ada_exception_support_info_sniffer): Try v0 after default.
3693 2019-08-01 Tom Tromey <tromey@adacore.com>
3695 * ia64-libunwind-tdep.h (struct libunwind_descr): Include
3698 2019-08-01 Christian Biesinger <cbiesinger@google.com>
3700 * s12z-tdep.c: Fix include path for s12z-opc.h.
3702 2019-08-01 Alan Hayward <alan.hayward@arm.com>
3704 * NEWS: Require GNU make 3.82.
3706 2019-07-16 Tom Tromey <tom@tromey.com>
3708 * tui/tui-wingeneral.h (tui_copy_win, tui_box_win): Don't
3711 2019-07-30 Tom Tromey <tromey@adacore.com>
3713 * block.c (contained_in): Remove BLOCK_FUNCTION check.
3715 2019-07-30 Kevin Buettner <kevinb@redhat.com>
3717 * printcmd.c (print_address_symbolic): Print negative offsets.
3718 (build_address_symbolic): Force signed arithmetic when computing
3721 2019-07-30 Christian Biesinger <cbiesinger@google.com>
3723 PR/24474: Add a function to lookup static variables.
3724 * NEWS: Mention this new function.
3725 * python/py-symbol.c (gdbpy_lookup_static_symbol): New function.
3726 * python/python-internal.h (gdbpy_lookup_static_symbol): New function.
3727 * python/python.c (python_GdbMethods): Add new function.
3729 2019-07-29 Christian Biesinger <cbiesinger@google.com>
3731 * NEWS: Mention new functions Objfile.lookup_{global,static}_symbol.
3732 * python/py-objfile.c (objfpy_lookup_global_symbol): New function.
3733 (objfpy_lookup_static_symbol): New function.
3734 (objfile_object_methods): Add new functions.
3736 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3738 * NEWS: Mention 'set|show print frame-info'. Mention new
3739 'presence' value for 'frame-arguments'. Mention new '-frame-info'
3740 backtrace argument. Mention that python frame filtering code
3741 is now consistent with what 'backtrace' command prints.
3743 2019-07-29 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3745 * frame.h (enum print_what): New value 'SHORT_LOCATION', update
3747 (print_frame_info_auto, print_frame_info_source_line,
3748 print_frame_info_location, print_frame_info_source_and_location,
3749 print_frame_info_location_and_address, print_frame_info_short_location):
3751 (struct frame_print_options): New member print_frame_info.
3752 * extension.h (enum ext_lang_frame_args): New value CLI_PRESENCE.
3753 * stack.h (get_user_print_what_frame_info): New declaration.
3754 (frame_show_address): New declaration.
3755 * stack.c (print_frame_arguments_choices): New value 'presence'.
3756 (print_frame_info_auto, print_frame_info_source_line,
3757 print_frame_info_location, print_frame_info_source_and_location,
3758 print_frame_info_location_and_address, print_frame_info_short_location,
3759 print_frame_info_choices, print_frame_info_print_what): New definitions.
3760 (print_frame_args): Only print dots for args if print frame-arguments
3762 (frame_print_option_defs): New element for "frame-info".
3763 (get_user_print_what_frame_info): New function.
3764 (frame_show_address): Make non static. Move comment to stack.h.
3765 (print_frame_info_to_print_what): New function.
3766 (print_frame_info): Update comment. Use fp_opts.print_frame_info
3767 to decide what to print.
3768 (backtrace_command_1): Handle the new print_frame_arguments_presence
3770 (_initialize_stack): Call add_setshow_enum_cmd for frame-info.
3771 * python/py-framefilter.c (py_print_args): Handle CLI_PRESENCE.
3772 (py_print_frame): In non-mi mode, use LOCATION as default for
3773 print_what, similarly to frame information printed directly by
3774 backtrace command. Handle frame-info user option in non MI mode.
3776 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3778 * linux-thread-db.c (thread_db_target::thread_handle_to_thread_info):
3779 Add case for debugging 32-bit target on 64-bit host. Revise
3782 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3784 * infrun.c (fill_in_stop_func): Use find_pc_partial_function
3785 instead of find_function_entry_range_from_pc.
3787 2019-07-27 Kevin Buettner <kevinb@redhat.com>
3789 * stack.c (find_frame_funname): Remove code which preferred
3790 minsym over symtab sym in "certain pathological cases".
3792 * valprint.h (build_address_symbolic): Add "prefer_sym_over_minsym"
3793 parameter. Change type of "do_demangle" to bool.
3794 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
3795 Pass suitable "prefer_sym_over_minsym" flag to
3796 build_address_symbolic(). Don't output "+" for negative offsets.
3797 * printcmd.c (print_address_symbolic): Update invocation of
3798 build_address_symbolic to include a "prefer_sym_over_minsym"
3800 (build_address_symbolic): Add "prefer_sym_over_minsym" parameter.
3801 Restrict cases in which use of minimal symbol is preferred to that
3802 of a found symbol. Update comments.
3804 * dwarf2-frame.c (dwarf2_frame_cache): Don't decode FDE instructions
3805 for entry pc when entry pc is out of range for that FDE.
3807 2019-07-26 Brian Callahan <bcallah@openbsd.org>
3810 * gdb/obsd-nat.c (obsd_nat_target::pid_to_str): Fix typo in return
3813 2019-07-25 Christian Biesinger <cbiesinger@google.com>
3815 * python/py-objfile.c (add_separate_debug_file): Fix comment about
3816 this function's Python signature.
3819 2019-07-24 Christian Biesinger <cbiesinger@google.com>
3821 * compile/compile-object-load.c (compile_object_load): Pass GLOBAL_SCOPE.
3822 * solib-spu.c (spu_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3823 * solib-svr4.c (elf_lookup_lib_symbol): Pass GLOBAL_SCOPE.
3824 * symtab.c (lookup_global_symbol_from_objfile): Add a scope parameter.
3825 * symtab.h (lookup_global_symbol_from_objfile): Likewise.
3828 2019-07-24 Yoshinori Sato <ysato@users.sourceforge.jp>
3830 * h8300-tdep.c (h8300_register_name_common): New.
3831 h8300_register_name): Use h8300_register_name_common.
3832 (h8300s_register_name): Likewise.
3833 (h8300sx_register_name): Likewise.
3834 (h8300h_register_nam): New.
3835 (h8300_gdbarch_init): Use h8300h_register_name in h8300h machine.
3838 2019-07-23 Srinath Parvathaneni <srinath.parvathaneni@arm.com>
3840 * arm-tdep.c (arm_skip_cmse_entry): New function.
3841 (arm_is_sgstubs_section): New function.
3842 (arm_skip_stub): Add call to arm_skip_cmse_entry function.
3844 2019-07-22 Tom Tromey <tom@tromey.com>
3846 * tui/tui-win.c (tui_win_info::make_invisible_and_set_new_height):
3849 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3851 * c-typeprint.c (c_print_typedef): Pass -1 instead of 0 to
3854 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3856 * symtab.c (search_symbols): Adjust msymbol matching type arrays
3857 so that GDB doesn't match any msymbols when searching in the
3859 (print_symbol_info): Print using typedef_print or type_print based
3860 on the type of the symbol. Add updated FIXME comment moved from...
3861 (_initialize_symtab): ... move and update FIXME comment to above.
3863 2019-07-22 Andrew Burgess <andrew.burgess@embecosm.com>
3865 * NEWS: Mention adding -q option to "info types".
3866 * symtab.c (struct info_types_options): New struct.
3867 (info_types_options_defs): New variable.
3868 (make_info_types_options_def_group): New function.
3869 (info_types_command): Use gdb::option framework to parse options.
3870 (info_types_command_completer): New function.
3871 (_initialize_symtab): Extend the help text on "info types" and
3872 register command completer.
3874 2019-07-21 Christian Biesinger <cbiesinger@google.com>
3876 * symtab.c (lookup_symbol_in_objfile_symtabs): Change int to block_enum.
3877 (lookup_symbol_in_objfile): Change int to block_enum and add a
3878 gdb_assert to make sure block_index is GLOBAL_BLOCK or STATIC_BLOCK.
3880 2019-07-20 Christian Biesinger <cbiesinger@google.com>
3882 * MAINTAINERS (Write After Approval): Add self.
3884 2019-07-19 Andrew Burgess <andrew.burgess@embecosm.com>
3886 * riscv-tdep.c (riscv_push_dummy_code): Write a 4-byte nop
3887 instruction to the dummy code region.
3889 2019-07-19 Tom Tromey <tromey@adacore.com>
3891 * contrib/ari/gdb_ari.sh: Mention C++11, not ISO C 90.
3892 (ARGSUSED, PARAMS, __func__): Remove rules.
3894 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3896 * arm-tdep.c (_initialize_arm_tdep): Remove xml tests.
3897 * features/arm/arm-with-iwmmxt.c: Remove.
3898 * features/arm/arm-with-iwmmxt.xml: Remove.
3899 * features/arm/arm-with-m-fpa-layout.c: Remove.
3900 * features/arm/arm-with-m-fpa-layout.xml: Remove.
3901 * features/arm/arm-with-m-vfp-d16.c: Remove.
3902 * features/arm/arm-with-m-vfp-d16.xml: Remove.
3903 * features/arm/arm-with-m.c: Remove.
3904 * features/arm/arm-with-m.xml: Remove.
3905 * features/arm/arm-with-neon.c: Remove.
3906 * features/arm/arm-with-neon.xml: Remove.
3907 * features/arm/arm-with-vfpv2.c: Remove.
3908 * features/arm/arm-with-vfpv2.xml: Remove.
3909 * features/arm/arm-with-vfpv3.c: Remove.
3910 * features/arm/arm-with-vfpv3.xml: Remove.
3912 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3914 * arm-tdep.c (_initialize_arm_tdep): Add xml regression tests.
3916 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3918 * arch/aarch32.c (aarch32_create_target_description): Create
3919 target descriptions using features.
3920 * arch/arm.c (arm_create_target_description)
3921 (arm_create_mprofile_target_description): Likewise.
3922 * arm-tdep.c (_initialize_arm_tdep): Remove tdesc init calls.
3924 2019-07-19 Alan Hayward <alan.hayward@arm.com>
3926 * Makefile.in: Add new files.
3927 * aarch32-tdep.c: New file.
3928 * aarch32-tdep.h: New file.
3929 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
3930 Call aarch32_read_description.
3931 * arch/aarch32.c: New file.
3932 * arch/aarch32.h: New file.
3933 * arch/arm.c (arm_create_target_description)
3934 (arm_create_mprofile_target_description): New function.
3935 * arch/arm.h (arm_fp_type, arm_m_profile_type): New enum.
3936 (arm_create_target_description)
3937 (arm_create_mprofile_target_description): New declaration.
3938 * arm-fbsd-tdep.c (arm_fbsd_read_description_auxv): Call
3939 read_description functions.
3940 * arm-linux-nat.c (arm_linux_nat_target::read_description):
3942 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
3943 * arm-tdep.c (tdesc_arm_list): New variable.
3944 (arm_register_g_packet_guesses): Call create description functions.
3945 (arm_read_description) (arm_read_mprofile_description): New
3947 * arm-tdep.h (arm_read_description)
3948 (arm_read_mprofile_description): Add declaration.
3949 * configure.tgt: Add new files.
3951 2019-07-18 Guillaume LABARTHE <guillaume.labarthe@gmail.com>
3953 * top.c (new_ui_command): Open specified terminal just once.
3955 2019-07-18 Tom Tromey <tromey@adacore.com>
3957 * symtab.c (main_name): Constify return type.
3958 * symfile.c (set_initial_language): Update.
3959 * symtab.h (main_name): Constify return type.
3961 2019-07-17 Tom Tromey <tom@tromey.com>
3963 * tui/tui-winsource.c (tui_update_source_window)
3964 (tui_update_source_window_as_is)
3965 (tui_update_source_windows_with_line): Remove return.
3966 * tui/tui-disasm.c (tui_show_disassem)
3967 (tui_show_disassem_and_update_source): Remove return.
3968 * tui/tui.c (tui_reset): Remove return.
3969 * tui/tui-wingeneral.c
3970 (tui_check_and_display_highlight_if_needed): Remove return.
3972 2019-07-17 Tom Tromey <tom@tromey.com>
3974 * tui/tui-win.c (parse_scrolling_args): Throw separate errors.
3976 2019-07-17 Tom Tromey <tom@tromey.com>
3978 * tui/tui-winsource.h (struct tui_exec_info_window)
3979 (struct tui_source_window_base): Move from tui-data.h.
3980 * tui/tui-winsource.c: Move many method definitions from
3981 elsewhere. Remove "structuring" comments.
3982 * tui/tui-wingeneral.c (tui_source_window_base::make_visible)
3983 (tui_source_window_base::refresh_window): Move to
3985 * tui/tui-win.c (tui_source_window_base::refresh_all)
3986 (tui_source_window_base::update_tab_width)
3987 (tui_source_window_base::set_new_height)
3988 (tui_source_window_base::do_make_visible_with_new_height): Move to
3990 * tui/tui-source.h: Update.
3991 * tui/tui-source.c (tui_source_window_base::reset): Move to
3993 * tui/tui-disasm.h: Update.
3994 * tui/tui-data.h (struct tui_exec_info_window): Move to
3996 (struct tui_source_window_base): Likewise.
3997 * tui/tui-data.c (tui_source_window_base::clear_detail)
3998 (tui_source_window_base, ~tui_source_window_base): Move to
4001 2019-07-17 Tom Tromey <tom@tromey.com>
4003 * tui/tui-win.c (tui_resize_all)
4004 (tui_source_window_base::update_tab_width)
4005 (tui_adjust_win_heights): Update.
4006 (tui_win_info::make_invisible_and_set_new_height): Rename from
4007 make_invisible_and_set_new_height.
4008 * tui/tui-data.h (struct tui_win_info)
4009 <make_invisible_and_set_new_height>: New method.
4011 2019-07-17 Tom Tromey <tom@tromey.com>
4013 * tui/tui.c: Update.
4014 * tui/tui-source.h (struct tui_source_window): Move from
4016 * tui/tui-layout.c: Update.
4017 * tui/tui-disasm.c: Update.
4018 * tui/tui-data.h (struct tui_source_window): Move to
4021 2019-07-17 Tom Tromey <tom@tromey.com>
4023 * tui/tui-disasm.h (struct tui_disasm_window): Move from
4025 * tui/tui-data.h (struct tui_disasm_window): Move to
4028 2019-07-17 Tom Tromey <tom@tromey.com>
4030 * tui/tui-regs.h (struct tui_data_item_window): Move from
4032 * tui/tui-regs.c (tui_data_item_window): Move from tui-data.c.
4033 * tui/tui-data.h (struct tui_data_item_window): Move to
4035 * tui/tui-data.c (~tui_data_item_window): Move to tui-regs.c.
4037 2019-07-17 Tom Tromey <tom@tromey.com>
4039 * tui/tui.c: Update.
4040 * tui/tui-win.c (tui_cmd_window::do_make_visible_with_new_height)
4041 (tui_cmd_window::max_height): Move to tui-command.c.
4042 * tui/tui-layout.c: Update.
4043 * tui/tui-data.h (struct tui_cmd_window): Move to tui-command.h.
4044 * tui/tui-data.c (tui_cmd_window::clear_detail): Move to
4046 * tui/tui-command.h (struct tui_cmd_window): Move from
4048 * tui/tui-command.c: Remove "structuring" comments.
4049 (tui_cmd_window::clear_detail)
4050 (tui_cmd_window::do_make_visible_with_new_height)
4051 (tui_cmd_window::max_height): Move from elsewhere.
4053 2019-07-17 Tom Tromey <tom@tromey.com>
4055 * tui/tui-io.c (tui_dispatch_ctrl_char): Move from tui-command.c.
4057 * tui/tui-command.h (tui_dispatch_ctrl_char): Don't declare.
4058 * tui/tui-command.c (tui_dispatch_ctrl_char): Move to tui-io.c.
4060 2019-07-17 Tom Tromey <tom@tromey.com>
4062 * tui/tui.c: Update.
4063 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Move to
4065 * tui/tui-windata.h: Remove file.
4066 * tui/tui-windata.c: Remove file.
4067 * tui/tui-win.c (tui_data_window::set_new_height)
4068 (tui_data_window::do_make_visible_with_new_height): Move to
4070 * tui/tui-regs.h (struct tui_data_window): Move from tui-data.h.
4071 * tui/tui-regs.c: Remove "structuring" comments.
4072 (tui_data_window::first_data_item_displayed)
4073 (tui_data_window::delete_data_content_windows)
4074 (tui_data_window::erase_data_content)
4075 (tui_data_window::display_all_data)
4076 (tui_data_window::refresh_all)
4077 (tui_data_window::do_scroll_vertical)
4078 (tui_data_window::clear_detail, tui_data_window::set_new_height)
4079 (tui_data_window::do_make_visible_with_new_height)
4080 (tui_data_window::refresh_window): Move from elsewhere.
4081 (_initialize_tui_regs): Move to end of file.
4082 * tui/tui-layout.c: Update.
4083 * tui/tui-hooks.c: Update.
4084 * tui/tui-data.h (struct tui_data_window): Move to tui-regs.h.
4085 * tui/tui-data.c (tui_data_window::clear_detail): Move to
4087 * Makefile.in (SUBDIR_TUI_SRCS): Remove tui-windata.c.
4089 2019-07-17 Tom Tromey <tom@tromey.com>
4091 * tui/tui-io.c (tui_puts_internal): Call wrefresh if newline is
4094 2019-07-17 Tom Tromey <tom@tromey.com>
4096 * tui/tui-win.c (tui_source_window_base::set_new_height)
4097 (tui_source_window_base::do_make_visible_with_new_height): Use
4098 m_has_locator field directly.
4099 * tui/tui-data.h (struct tui_win_info) <has_locator>: Remove
4101 (struct tui_source_window_base) <has_locator>: Likewise.
4103 2019-07-17 Tom Tromey <tom@tromey.com>
4105 * tui/tui-wingeneral.h (tui_make_visible, tui_make_invisible):
4107 * tui/tui-wingeneral.c (tui_make_visible, tui_make_invisible):
4109 * tui/tui-win.c (tui_source_window_base::set_new_height)
4110 (tui_source_window_base::set_new_height)
4111 (make_invisible_and_set_new_height)
4112 (tui_source_window_base::do_make_visible_with_new_height)
4113 (tui_source_window_base::do_make_visible_with_new_height):
4115 * tui/tui-layout.c (show_source_disasm_command, show_data)
4116 (show_source_or_disasm_and_command): Update.
4117 * tui/tui-layout.c (show_layout): Update.
4119 2019-07-17 Tom Tromey <tom@tromey.com>
4121 * tui/tui-layout.c (make_data_window): Remove.
4122 (show_data): Unify creation and re-initialization cases.
4124 2019-07-17 Tom Tromey <tom@tromey.com>
4126 * tui/tui-layout.c (make_source_window, make_disasm_window):
4128 (show_data): Unify creation and re-initialization cases.
4130 2019-07-17 Tom Tromey <tom@tromey.com>
4132 * tui/tui-layout.c (make_command_window): Remove.
4133 (show_source_disasm_command, show_source_or_disasm_and_command):
4134 Unify creation and re-initialization cases.
4136 2019-07-17 Tom Tromey <tom@tromey.com>
4138 * tui/tui-layout.c (show_source_or_disasm_and_command): Unify
4139 creation and re-initialization cases.
4141 2019-07-17 Tom Tromey <tom@tromey.com>
4143 * tui/tui-regs.c (tui_get_register): Return void.
4145 2019-07-17 Tom Tromey <tom@tromey.com>
4147 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible):
4150 2019-07-17 Tom Tromey <tom@tromey.com>
4152 * tui/tui-layout.c (show_source_disasm_command): Simplify window
4155 2019-07-17 Tom Tromey <tom@tromey.com>
4157 * tui/tui.h (tui_set_layout_by_name): Don't declare.
4158 * tui/tui-regs.c (tui_reg_layout): New function.
4159 (tui_show_registers, tui_reg_command): Use it.
4160 * tui/tui-layout.c (LAYOUT_USAGE): Remove.
4161 (tui_layout_command): Rename from tui_set_layout_by_name. Change
4163 (tui_layout_command): Remove.
4165 2019-07-17 Tom Tromey <tom@tromey.com>
4167 * tui/tui-layout.h (tui/tui-layout): Return void.
4168 * tui/tui-layout.c (tui_set_layout): Return void. Add assert.
4170 2019-07-17 Tom Tromey <tom@tromey.com>
4172 * tui/tui-layout.c (show_source_disasm_command, show_data):
4174 (reset_locator): Remove.
4175 (show_source_or_disasm_and_command): Update.
4177 2019-07-17 Tom Tromey <tom@tromey.com>
4179 * tui/tui-source.c (tui_source_window_base::reset): Remove
4181 * tui/tui-layout.c (make_command_window, make_source_window)
4182 (make_disasm_window, make_data_window)
4183 (show_source_disasm_command, show_data, tui_gen_win_info::reset)
4184 (reset_locator, show_source_or_disasm_and_command): Update.
4185 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Remove
4187 (struct tui_source_window_base) <reset>: Likewise.
4189 2019-07-17 Tom Tromey <tom@tromey.com>
4191 * tui/tui-layout.c (show_source_disasm_command): Use
4193 (reset_locator): New function.
4194 (init_and_make_win): Remove.
4195 (show_source_or_disasm_and_command): Use reset_locator.
4197 2019-07-17 Tom Tromey <tom@tromey.com>
4199 * tui/tui-winsource.c (tui_set_exec_info_content): Remove
4201 * tui/tui-wingeneral.c (tui_source_window_base::make_visible):
4203 * tui/tui-source.c (tui_source_window_base::reset): New method.
4204 * tui/tui-layout.c (make_command_window): Don't call
4206 (make_source_window, make_disasm_window): Don't call
4207 make_source_or_disasm_window.
4208 (make_data_window): Don't call init_and_make_win. Change calling
4210 (show_source_disasm_command, show_data): Simplify.
4211 (make_source_or_disasm_window): Remove.
4212 (show_source_or_disasm_and_command): Simplify.
4213 * tui/tui-data.h (struct tui_gen_win_info) <reset>: Now virtual.
4214 (struct tui_source_window_base) <reset>: Likewise.
4215 <execution_info>: Remove initializer.
4216 * tui/tui-data.c (tui_source_window_base): Initialize
4219 2019-07-17 Tom Tromey <tom@tromey.com>
4221 * tui/tui-layout.c (tui_set_layout): Remove regs_populate
4224 2019-07-17 Tom Tromey <tom@tromey.com>
4226 * tui/tui.c (tui_rl_other_window): Update.
4227 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
4228 superclass method first. Always iterate over regs_content.
4229 (tui_unhighlight_win, tui_highlight_win): Use refresh_window
4231 * tui/tui-win.c (tui_set_focus_command): Update.
4233 2019-07-17 Tom Tromey <tom@tromey.com>
4235 * tui/tui-win.c (tui_set_focus_command): Rename from
4236 tui_set_focus. Call tui_enable.
4237 (tui_set_focus_command): Remove.
4239 2019-07-17 Tom Tromey <tom@tromey.com>
4241 * tui/tui-winsource.c (tui_show_exec_info_content): Don't call
4243 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Call
4245 (tui_data_window::refresh_window): Call refresh_window on data
4246 items. Always call superclass refresh_window.
4247 (tui_win_info::refresh): Remove.
4248 (tui_source_window_base::refresh_window): Update.
4249 (tui_refresh_all): Update.
4250 * tui/tui-layout.c (show_source_disasm_command): Remove call to
4252 (show_source_or_disasm_and_command): Likewise.
4253 * tui/tui-data.h (struct tui_win_info) <refresh>: Remove.
4254 (struct tui_source_window_base) <refresh>: Likewise.
4256 2019-07-17 Tom Tromey <tom@tromey.com>
4258 * tui/tui-winsource.c (tui_clear_source_content)
4259 (tui_show_source_content): Update.
4260 * tui/tui-source.c (tui_source_window::showing_source_p): Check
4261 whether content is empty.
4262 * tui/tui-data.h (struct tui_source_window_base) <content_in_use>:
4265 2019-07-17 Tom Tromey <tom@tromey.com>
4267 * tui/tui-winsource.c (tui_erase_source_content): Clear the
4269 * tui/tui-source.h (tui_set_source_content_nil): Don't declare.
4270 * tui/tui-source.c (tui_set_source_content_nil): Remove.
4272 2019-07-17 Tom Tromey <tom@tromey.com>
4274 * tui/tui-data.h (UNDEFINED_ITEM): Remove define.
4275 (struct tui_data_item_window): Update.
4277 2019-07-17 Tom Tromey <tom@tromey.com>
4279 * tui/tui-data.h (MAX_CONTENT_COUNT, TUI_NULL_STR)
4280 (DEFAULT_HISTORY_COUNT, WITH_LOCATOR, NO_LOCATOR): Remove
4283 2019-07-17 Tom Tromey <tom@tromey.com>
4285 * tui/tui-winsource.h (tui_erase_source_content)
4286 (tui_clear_source_content): Remove "display_prompt" parameter.
4287 * tui/tui-winsource.c (tui_update_source_window_as_is)
4288 (tui_update_source_windows_with_addr): Update.
4289 (tui_clear_source_content): Remove "display_prompt" parameter.
4290 (tui_erase_source_content): Likewise. Simplify.
4291 (tui_show_source_content): Update.
4292 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
4293 * tui/tui-stack.c (tui_show_frame_info): Update.
4294 * tui/tui-data.h (EMPTY_SOURCE_PROMPT, NO_EMPTY_SOURCE_PROMPT):
4297 2019-07-17 Tom Tromey <tom@tromey.com>
4299 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4300 * tui/tui-disasm.h (tui_set_disassem_content): Add win_info
4302 * tui/tui-disasm.c (tui_set_disassem_content): Add win_info
4305 2019-07-17 Tom Tromey <tom@tromey.com>
4307 * tui/tui-winsource.c (tui_clear_source_content)
4308 (tui_show_source_content, tui_show_exec_info_content)
4309 (tui_clear_exec_info_content): Update.
4310 * tui/tui-stack.c (tui_show_locator_content): Update.
4311 (tui_show_frame_info): Update.
4312 * tui/tui-source.h (tui_source_window): Don't declare.
4313 * tui/tui-source.c (tui_source_window::showing_source_p): Rename
4314 from tui_source_is_displayed.
4315 * tui/tui-data.h (struct tui_gen_win_info) <content_in_use>:
4317 (struct tui_source_window_base) <content_in_use>: New field. Now
4319 (struct tui_source_window) <showing_source_p>: New method.
4320 (TUI_SRC_WIN): Change cast.
4321 * tui/tui-data.c (tui_initialize_static_data): Update.
4323 2019-07-17 Tom Tromey <tom@tromey.com>
4325 * tui/tui-winsource.c (tui_update_breakpoint_info): Use
4327 * tui/tui-source.c (tui_source_window::location_matches_p): New
4329 * tui/tui-disasm.c (tui_disasm_window::location_matches_p): New
4331 * tui/tui-data.h (struct tui_source_window_base)
4332 <location_matches_p>: New method.
4333 (struct tui_source_window, struct tui_disasm_window)
4334 <location_matches_p>: Likewise.
4336 2019-07-17 Tom Tromey <tom@tromey.com>
4338 * tui/tui-win.c (tui_set_win_height_command): Rename from
4340 (tui_set_win_height_command): Remove.
4342 2019-07-17 Tom Tromey <tom@tromey.com>
4344 * tui/tui-source.c (tui_source_window): New constructor. Add
4346 (~tui_source_window): New destructor.
4347 (tui_source_window::style_changed): New method.
4348 * tui/tui-hooks.c (tui_redisplay_source): Remove.
4349 (tui_attach_detach_observers): Update.
4350 * tui/tui-data.h (struct tui_source_window): Make constructor not
4351 inline. Add destructor.
4352 (struct tui_source_window) <style_changed>: New method.
4353 <m_observable>: New member.
4355 2019-07-17 Tom Tromey <tom@tromey.com>
4357 * tui/tui-data.c (tui_clear_source_windows_detail): Fix typo.
4358 * tui/tui-win.c (tui_resize_all): Fix typo.
4360 2019-07-17 Tom Tromey <tom@tromey.com>
4362 * tui/tui-wingeneral.h (tui_refresh_all): Update.
4363 * tui/tui-wingeneral.c (make_all_visible): Use foreach.
4364 (tui_refresh_all): Remove "list" parameter. Use foreach.
4365 * tui/tui-win.c (window_name_completer): Use foreach.
4366 (tui_refresh_all_win, tui_rehighlight_all, tui_all_windows_info)
4367 (update_tab_width): Likewise.
4368 * tui/tui-layout.c (show_layout): Update.
4369 * tui/tui-data.h (class tui_window_iterator): New.
4370 (struct all_tui_windows): New.
4371 * tui/tui-data.c (tui_partial_win_by_name): Use foreach.
4373 2019-07-17 Tom Tromey <tom@tromey.com>
4375 * tui/tui-regs.c (tui_reg_next, tui_reg_prev): Add "current_group"
4376 parameter. Don't reference globals.
4377 (tui_reg_command): Update.
4379 2019-07-17 Tom Tromey <tom@tromey.com>
4381 * tui/tui-regs.c (tui_show_registers): Simplify.
4383 2019-07-17 Tom Tromey <tom@tromey.com>
4385 * tui/tui-regs.c (tui_show_registers): Update.
4386 (tui_show_register_group): Add win_info parameter.
4388 2019-07-17 Tom Tromey <tom@tromey.com>
4390 * tui/tui-regs.c (tui_data_window::display_reg_element_at_line):
4391 Rename from tui_display_reg_element_at_line.
4392 (tui_data_window::display_registers_from_line): Update.
4393 * tui/tui-data.h (struct tui_data_window)
4394 <display_reg_element_at_line>: New method.
4396 2019-07-17 Tom Tromey <tom@tromey.com>
4398 * tui/tui-regs.h (tui_display_registers_from)
4399 (tui_display_registers_from_line): Don't declare.
4400 * tui/tui-windata.c (tui_data_window::display_all_data)
4401 (tui_data_window::refresh_all)
4402 (tui_data_window::do_scroll_vertical): Update.
4403 * tui/tui-regs.c (tui_data_window::display_registers_from): Rename
4404 from tui_display_registers_from.
4405 (tui_display_reg_element_at_line): Update.
4406 (tui_data_window::display_registers_from_line): Rename from
4407 tui_display_registers_from_line.
4408 * tui/tui-data.h (struct tui_data_window) <display_registers_from,
4409 display_registers_from_line>: New methods.
4411 2019-07-17 Tom Tromey <tom@tromey.com>
4413 * tui/tui-windata.h (tui_erase_data_content): Don't declare.
4414 * tui/tui-windata.c (tui_data_window::erase_data_content): Rename
4415 from tui_erase_data_content.
4416 (tui_data_window::display_all_data)
4417 (tui_data_window::refresh_all)
4418 (tui_data_window::do_scroll_vertical): Update.
4419 * tui/tui-regs.c (tui_show_registers): Update.
4420 * tui/tui-data.h (struct tui_data_window) <erase_data_content>:
4423 2019-07-17 Tom Tromey <tom@tromey.com>
4425 * tui/tui-windata.h (tui_delete_data_content_windows): Don't
4428 (tui_data_window::delete_data_content_windows): Rename from
4429 tui_delete_data_content_windows.
4430 (tui_data_window::display_all_data)
4431 (tui_data_window::do_scroll_vertical): Update.
4432 * tui/tui-data.h (struct tui_data_window)
4433 <delete_data_content_windows>: New method.
4435 2019-07-17 Tom Tromey <tom@tromey.com>
4437 * tui/tui-windata.h (tui_refresh_data_win): Don't declare.
4438 * tui/tui-regs.h (tui_first_reg_element_inline): Don't declare.
4440 2019-07-17 Tom Tromey <tom@tromey.com>
4442 * tui/tui-windata.h (tui_display_all_data): Don't declare.
4443 * tui/tui-windata.c (tui_data_window::display_all_data): Rename
4444 from tui_display_all_data.
4446 (tui_data_window::do_make_visible_with_new_height): Update.
4447 * tui/tui-regs.c (tui_show_registers): Update.
4448 * tui/tui-layout.c (tui_set_layout): Update.
4449 * tui/tui-data.h (struct tui_data_window) <display_all_data>: New
4452 2019-07-17 Tom Tromey <tom@tromey.com>
4454 * tui/tui-windata.h (tui_display_data_from): Don't declare.
4455 * tui/tui-windata.c (tui_display_data_from): Remove.
4456 (tui_data_window::refresh_all): Update.
4458 2019-07-17 Tom Tromey <tom@tromey.com>
4460 * tui/tui-windata.h (tui_display_data_from_line): Don't declare.
4461 * tui/tui-windata.c (tui_display_data_from_line): Remove.
4462 (tui_display_data_from, tui_data_window::do_scroll_vertical): Call
4463 tui_display_registers_from_line.
4464 * tui/tui-regs.h (tui_display_registers_from_line): Update.
4465 * tui/tui-regs.c (tui_display_registers_from_line): Remove
4466 "force_display" parameter.
4468 2019-07-17 Tom Tromey <tom@tromey.com>
4470 * tui/tui-regs.h (tui_first_reg_element_no_inline): Don't
4472 * tui/tui-regs.c (tui_data_window::first_reg_element_no_inline):
4473 Rename from tui_first_reg_element_no_inline.
4474 (tui_display_reg_element_at_line)
4475 (tui_display_registers_from_line): Update.
4476 * tui/tui-data.h (struct tui_data_window)
4477 <first_reg_element_no_inline>: New method.
4479 2019-07-17 Tom Tromey <tom@tromey.com>
4481 * tui/tui-windata.c (tui_display_data_from)
4482 (tui_data_window::do_scroll_vertical): Update.
4483 * tui/tui-regs.h (tui_line_from_reg_element_no): Don't declare.
4484 * tui/tui-regs.c (tui_data_window::line_from_reg_element_no):
4485 Rename from tui_line_from_reg_element_no.
4486 (tui_display_registers_from_line): Update.
4487 * tui/tui-data.h (struct tui_data_window)
4488 <line_from_reg_element_no>: New method.
4490 2019-07-17 Tom Tromey <tom@tromey.com>
4492 * tui/tui-regs.h (tui_last_regs_line_no): Don't declare.
4493 * tui/tui-regs.c (tui_data_window::last_regs_line_no): Rename from
4494 tui_last_regs_line_no.
4495 (tui_display_reg_element_at_line)
4496 (tui_display_registers_from_line): Update.
4497 * tui/tui-data.h (struct tui_data_window) <last_regs_line_no>: New
4500 2019-07-17 Tom Tromey <tom@tromey.com>
4503 * tui/tui-winsource.h (tui_update_all_breakpoint_info)
4504 (tui_update_breakpoint_info): Add "being_deleted" parameter.
4505 * tui/tui-winsource.c (tui_update_source_window_as_is): Update.
4506 (tui_update_all_breakpoint_info): Add "being_deleted" parameter.
4507 (tui_update_breakpoint_info): Likewise.
4508 * tui/tui-hooks.c (tui_event_create_breakpoint)
4509 (tui_event_delete_breakpoint, tui_event_modify_breakpoint):
4512 2019-07-17 Tom Tromey <tom@tromey.com>
4514 * tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
4516 2019-07-17 Tom Tromey <tom@tromey.com>
4518 * tui/tui-winsource.c (tui_update_source_window_as_is)
4519 (tui_update_source_windows_with_addr): Update.
4520 * tui/tui-source.h (tui_set_source_content)
4521 (tui_show_symtab_source): Add "win_info" parameter.
4522 * tui/tui-source.c (tui_set_source_content): Add "win_info"
4524 (tui_show_symtab_source): Likewise.
4526 2019-07-17 Tom Tromey <tom@tromey.com>
4528 * tui/tui-wingeneral.c
4529 (tui_check_and_display_highlight_if_needed): Check can_highlight.
4531 2019-07-17 Tom Tromey <tom@tromey.com>
4533 * tui/tui-data.h (struct tui_win_info) <can_scroll>: New method.
4534 (struct tui_cmd_window) <can_scroll>: New method.
4535 * tui/tui-command.c (tui_dispatch_ctrl_char): Use can_scroll
4538 2019-07-17 Tom Tromey <tromey@adacore.com>
4540 * ui-out.h (class ui_out) <field_signed, field_fmt_signed,
4541 do_field_signed>: Rename. Change type of "value".
4542 * ui-out.c (ui_out::field_signed): Rename from field_int.
4543 Change type of "value".
4544 (ui_out::field_fmt_signed): Rename from field_fmt_int. Change
4546 * tui/tui-out.h (class tui_ui_out) <do_field_signed>: Rename from
4547 do_field_int. Change type of "value".
4548 * tui/tui-out.c (tui_ui_out::do_field_signed): Rename from
4549 do_field_int. Change type of "value".
4550 * tracepoint.c (trace_status_mi, tfind_1)
4551 (print_one_static_tracepoint_marker): Update.
4552 * thread.c (print_thread_info_1, print_selected_thread_frame):
4554 * stack.c (print_frame, print_frame_info): Update.
4555 * spu-tdep.c (info_spu_signal_command, info_spu_dma_cmdlist):
4557 * source.c (print_source_lines_base): Update.
4558 * skip.c (info_skip_command): Update.
4559 * record-btrace.c (btrace_ui_out_decode_error)
4560 (btrace_call_history_src_line): Update.
4561 * python/py-framefilter.c (py_print_single_arg, py_print_frame):
4563 * progspace.c (print_program_space): Update.
4564 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Update.
4565 * mi/mi-out.h (class mi_ui_out) <do_field_signed>: Rename from
4566 do_field_int. Change type of "value".
4567 * mi/mi-out.c (mi_ui_out::do_table_begin)
4568 (mi_ui_out::do_table_header): Update.
4569 (mi_ui_out::do_field_signed): Rename from do_field_int. Change
4571 * mi/mi-main.c (mi_cmd_thread_list_ids, print_one_inferior)
4572 (mi_cmd_data_list_changed_registers, output_register)
4573 (mi_cmd_data_read_memory, mi_load_progress)
4574 (mi_cmd_trace_frame_collected): Update.
4575 * mi/mi-interp.c (mi_on_normal_stop_1, mi_output_solib_attribs):
4577 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
4578 (mi_cmd_var_delete, mi_cmd_var_info_num_children)
4579 (mi_cmd_var_list_children, varobj_update_one): Update.
4580 * mi/mi-cmd-stack.c (mi_cmd_stack_info_depth)
4581 (mi_cmd_stack_list_args, list_arg_or_local): Update.
4582 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Update.
4583 * inferior.c (print_inferior): Update.
4584 * gdb_bfd.c (print_one_bfd): Update.
4585 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn):
4587 * darwin-nat-info.c (darwin_debug_regions_recurse): Update.
4588 * cli-out.h (class cli_ui_out) <do_field_signed>: Rename from
4589 do_field_int. Change type of "value".
4590 * cli-out.c (cli_ui_out::do_field_signed): Rename from
4591 do_field_int. Change type of "value".
4592 * breakpoint.c (watchpoint_check, print_breakpoint_location)
4593 (print_one_breakpoint_location, print_it_catch_fork)
4594 (print_one_catch_fork, print_it_catch_vfork)
4595 (print_one_catch_vfork, print_it_catch_solib)
4596 (print_it_catch_exec, print_it_ranged_breakpoint)
4597 (print_mention_watchpoint, print_mention_masked_watchpoint)
4598 (bkpt_print_it, update_static_tracepoint): Update.
4599 * break-catch-throw.c (print_it_exception_catchpoint): Update.
4600 * break-catch-syscall.c (print_it_catch_syscall): Update.
4601 * ada-tasks.c (print_ada_task_info): Update.
4602 * ada-lang.c (print_it_exception, print_mention_exception):
4605 2019-07-17 Andrew Burgess <andrew.burgess@embecosm.com>
4607 PR breakpoints/24541
4608 * gdbarch.c: Regenerate.
4609 * gdbarch.h: Regenerate.
4610 * gdbarch.sh: Adjust return type and parameter types for
4611 'stap_adjust_register'.
4612 (i386_stap_adjust_register): Adjust signature and return new
4614 * stap-probe.c (stap_parse_register_operand): Adjust use of
4615 'gdbarch_stap_adjust_register'.
4617 2019-07-17 Tom Tromey <tromey@adacore.com>
4619 * s390-linux-nat.c (s390_watch_area): Remove typedef. Don't
4621 (struct s390_debug_reg_state) <watch_areas, break_areas>: Now
4623 (struct s390_process_info): Add initializers.
4624 (s390_add_process): Use new.
4625 (s390_linux_nat_target::low_forget_process): Use delete.
4626 (s390_linux_nat_target::low_new_fork)
4627 (s390_linux_nat_target::stopped_by_watchpoint)
4628 (s390_linux_nat_target::low_prepare_to_resume)
4629 (s390_linux_nat_target::insert_watchpoint)
4630 (s390_linux_nat_target::insert_hw_breakpoint)
4631 (s390_linux_nat_target::remove_watchpoint)
4632 (s390_linux_nat_target::remove_hw_breakpoint): Update.
4634 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4636 * aarch64-fbsd-nat.c: Include regcache.h.
4637 (getregs_supplies, getfpregs_supplies): Remove unused gdbarch
4639 (aarch64_fbsd_nat_target::fetch_registers)
4640 (aarch64_fbsd_nat_target::store_registers): Remove gdbarch
4642 * arm-fbsd-nat.c, riscv-fbsd-nat.c: Likewise.
4644 2019-07-16 John Baldwin <jhb@FreeBSD.org>
4646 * fbsd-nat.c: Include gdbarch.h.
4648 2019-07-15 Tom Tromey <tromey@adacore.com>
4650 * mi/mi-out.c (mi_ui_out::do_field_int): Use plongest.
4652 2019-07-15 Tom Tromey <tromey@adacore.com>
4654 * mi/mi-out.h (class mi_ui_out) <do_field_unsigned>: Declare.
4655 * mi/mi-out.c (mi_ui_out::do_field_unsigned): New method.
4656 * cli-out.h (class cli_ui_out) <do_field_unsigned>: Declare.
4657 * cli-out.c (cli_ui_out::do_field_int): New method.
4658 * ui-out.c (ui_out::field_unsigned): New method.
4659 * symfile.c (generic_load): Use field_unsigned.
4660 (print_transfer_performance): Likewise.
4661 * record-btrace.c (ui_out_field_uint): Remove.
4662 (btrace_call_history_insn_range, btrace_call_history): Use
4664 * disasm.c (gdb_pretty_print_disassembler::pretty_print_insn): Use
4666 * ui-out.h (class ui_out) <field_unsigned>: New method.
4667 <do_field_unsigned>: Likewise.
4669 2019-07-15 Tom Tromey <tromey@adacore.com>
4671 * mi/mi-main.c (list_available_thread_groups): Use field_string.
4672 * mi/mi-interp.c (mi_memory_changed): Use field_string.
4673 * target.c (flash_erase_command): Use field_string.
4674 * infrun.c (print_signal_received_reason): Use field_string.
4675 * i386-tdep.c (i386_mpx_print_bounds): Use field_string.
4676 * breakpoint.c (maybe_print_thread_hit_breakpoint): Use
4678 * ada-tasks.c (print_ada_task_info): Use field_string.
4680 2019-07-15 Tom Tromey <tromey@adacore.com>
4682 * target.c (flash_erase_command): Use field_core_addr.
4683 * symfile.c (generic_load): Use field_core_addr.
4684 * sparc64-linux-tdep.c (sparc64_linux_handle_segmentation_fault):
4685 Use field_core_addr.
4686 * i386-linux-tdep.c (i386_linux_handle_segmentation_fault): Use
4689 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4691 * dwarf2loc.c (dwarf2_evaluate_property): Sign extend property
4692 value if its desired type is smaller than a CORE_ADDR and signed.
4694 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4696 * dwarf2loc.c (dwarf2_evaluate_property): Update to take account
4697 of changes to field names, and use new is_reference field to
4698 decide if a property is a reference or not.
4699 * dwarf2loc.h (struct dwarf2_locexpr_baton): Add 'is_reference'
4701 (struct dwarf2_property_baton): Update header comment, rename
4702 'referenced_type' to 'property_type' and update comments.
4703 * dwarf2read.c (attr_to_dynamic_prop): Add extra parameter to hold
4704 default property type, store in property baton, update to take
4705 accound of renamed field.
4706 (read_func_scope): Update call to attr_to_dynamic_prop.
4707 (read_array_type): Likewise.
4708 (dwarf2_per_cu_addr_sized_int_type): New function.
4709 (read_subrange_index_type): Move type finding code to
4710 dwarf2_per_cu_addr_sized_int_type.
4711 (read_subrange_type): Update calls to attr_to_dynamic_prop.
4712 (dwarf2_per_cu_addr_type): New function.
4713 (set_die_type): Update calls to attr_to_dynamic_prop.
4715 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4717 * dwarf2read.c (read_subrange_index_type): New function.
4718 (read_subrange_type): Move code into new function and call it.
4719 * gdbtypes.c (create_range_type): Add some asserts.
4721 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4723 * dwarf2loc.c (dwarf2_evaluate_property): Change return type, and
4724 update return statements.
4725 * dwarf2loc.h (dwarf2_evaluate_property): Update return type on
4726 declaration, and update comment to match.
4727 * gdbtypes.c (resolve_dynamic_array): Update call to
4728 dwarf2_evaluate_property to match new return type.
4730 2019-07-12 Andrew Burgess <andrew.burgess@embecosm.com>
4732 * valarith.c (value_subscripted_rvalue): Change lowerbound
4733 parameter type from int to LONGEST.
4734 * value.h (value_subscripted_rvalue): Likewise in declaration.
4736 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4738 * cli/cli-utils.c (info_print_command_completer): New function.
4739 * cli/cli-utils.h: Add 'completer.h' include, and forward
4740 declaration for 'struct cmd_list_element'.
4741 (info_print_command_completer): Declare.
4742 * stack.c (_initialize_stack): Add completer for 'info locals' and
4744 * symtab.c (_initialize_symtab): Add completer for 'info
4745 variables' and 'info functions'.
4746 * NEWS: Mention completion for additional info commands.
4748 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4750 * cli/cli-utils.c (extract_info_print_args): Delete.
4751 (extract_arg_maybe_quoted): Delete.
4752 (info_print_options_defs): New variable.
4753 (make_info_print_options_def_group): New function.
4754 (extract_info_print_options): Define new function.
4755 * cli/cli-utils.h (extract_info_print_args): Delete.
4756 (struct info_print_options): New structure.
4757 (extract_info_print_options): Declare new function.
4758 * stack.c (info_locals_command): Update to use new
4759 extract_info_print_options, also add a header comment.
4760 (info_args_command): Likewise.
4761 * symtab.c (info_variables_command): Likewise.
4762 (info_functions_command): Likewise.
4764 2019-07-11 Andrew Burgess <andrew.burgess@embecosm.com>
4766 * cli/cli-option.c (parse_option): Use extract_string_maybe_quoted
4767 to extract string arguments.
4768 * common/common-utils.c (extract_string_maybe_quoted): New function.
4769 * common/common-utils.h (extract_string_maybe_quoted): Declare.
4771 2019-07-11 Tom Tromey <tromey@adacore.com>
4773 * main.c (get_init_files): Use GDBINIT, not gdbinit.
4774 * auto-load.c (file_is_auto_load_safe): Use GDBINIT, not gdbinit.
4775 * top.h (gdbinit): Don't declare.
4776 * cli/cli-cmds.c (init_cli_cmds): Remove, merging contents
4778 (_initialize_cli_cmds): ...here. Use GDBINIT, not gdbinit.
4779 * top.c (gdb_init): Don't call init_cli_cmds.
4781 * cli/cli-cmds.h (init_cli_cmds): Don't declare.
4783 2019-07-11 Tom Tromey <tromey@adacore.com>
4785 * python/py-inferior.c (add_thread_object): Don't use thread_obj
4786 after it has been moved.
4788 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4790 * valops.c (value_must_coerce_to_target): Change return type to
4792 * value.h (value_must_coerce_to_target): Likewise.
4794 2019-07-10 Simon Marchi <simon.marchi@efficios.com>
4796 * breakpoint.c (is_hardware_watchpoint): Remove
4797 forward-declaration.
4798 (is_masked_watchpoint): Change return type to bool.
4799 (is_tracepoint): Likewise.
4800 (is_breakpoint): Likewise.
4801 (is_hardware_watchpoint): Likewise.
4802 (is_watchpoint): Likewise.
4803 (is_no_memory_software_watchpoint): Likewise.
4804 (is_catchpoint): Likewise.
4805 (breakpoint_1): Make FILTER parameter's return type bool.
4806 is_masked_watchpoint): Change return type to bool.
4807 (save_breakpoints): Make FILTER parameter's return type bool.
4808 * breakpoint.h (is_breakpoint): Change return type to bool.
4809 (is_watchpoint): Likewise.
4810 (is_catchpoint): Likewise.
4811 (is_tracepoint): Likewise.
4813 2019-07-10 Tom Tromey <tom@tromey.com>
4815 * defs.h: Don't include gdbarch.h.
4816 * aarch64-ravenscar-thread.c, aarch64-tdep.c, alpha-bsd-tdep.h,
4817 alpha-linux-tdep.c, alpha-mdebug-tdep.c, arch-utils.h, arm-tdep.h,
4818 ax-general.c, btrace.c, buildsym-legacy.c, buildsym.h, c-lang.c,
4819 cli/cli-decode.h, cli/cli-dump.c, cli/cli-script.h,
4820 cli/cli-style.h, coff-pe-read.h, compile/compile-c-support.c,
4821 compile/compile-cplus.h, compile/compile-loc2c.c, corefile.c,
4822 cp-valprint.c, cris-linux-tdep.c, ctf.c, d-lang.c, d-namespace.c,
4823 dcache.c, dicos-tdep.c, dictionary.c, disasm-selftests.c,
4824 dummy-frame.c, dummy-frame.h, dwarf2-frame-tailcall.c,
4825 dwarf2expr.c, expression.h, f-lang.c, frame-base.c,
4826 frame-unwind.c, frv-linux-tdep.c, gdbarch-selftests.c, gdbtypes.h,
4827 go-lang.c, hppa-nbsd-tdep.c, hppa-obsd-tdep.c, i386-dicos-tdep.c,
4828 i386-tdep.h, ia64-vms-tdep.c, interps.h, language.c,
4829 linux-record.c, location.h, m2-lang.c, m32r-linux-tdep.c,
4830 mem-break.c, memattr.c, mn10300-linux-tdep.c, nios2-linux-tdep.c,
4831 objfiles.h, opencl-lang.c, or1k-linux-tdep.c, p-lang.c,
4832 parser-defs.h, ppc-tdep.h, probe.h, python/py-record-btrace.c,
4833 record-btrace.c, record.h, regcache-dump.c, regcache.h,
4834 riscv-fbsd-tdep.c, riscv-linux-tdep.c, rust-exp.y,
4835 sh-linux-tdep.c, sh-nbsd-tdep.c, source-cache.c,
4836 sparc-nbsd-tdep.c, sparc-obsd-tdep.c, sparc-ravenscar-thread.c,
4837 sparc64-fbsd-tdep.c, std-regs.c, target-descriptions.h,
4838 target-float.c, tic6x-linux-tdep.c, tilegx-linux-tdep.c, top.c,
4839 tracefile.c, trad-frame.c, type-stack.h, ui-style.c, utils.c,
4840 utils.h, valarith.c, valprint.c, varobj.c, x86-tdep.c,
4841 xml-support.h, xtensa-linux-tdep.c, cli/cli-cmds.h: Update.
4842 * s390-linux-nat.c, procfs.c, inf-ptrace.c: Likewise.
4844 2019-07-10 Tom Tromey <tromey@adacore.com>
4846 * ada-lang.h (is_ada_exception_catchpoint): Declare.
4847 * breakpoint.c (init_ada_exception_breakpoint): Register as
4849 (print_one_breakpoint_location, print_one_breakpoint): Use
4850 is_ada_exception_catchpoint.
4851 * ada-lang.c (class ada_catchpoint_location): Pass
4852 bp_loc_software_breakpoint to bp_location constructor.
4853 (is_ada_exception_catchpoint): New function.
4855 2019-07-10 Tom Tromey <tromey@adacore.com>
4857 * arm-tdep.c (arm_exidx_entry_s): Remove typedef. Don't define
4859 (struct arm_exidx_entry): New method operator<.
4860 (struct arm_exidx_data) <section_maps>: Change type.
4861 (arm_exidx_data_free): Remove.
4862 (arm_exidx_data_key): Change type. Move lower.
4863 (arm_exidx_new_objfile): Update.
4864 (arm_compare_exidx_entries): Remove.
4865 (arm_find_exidx_entry, _initialize_arm_tdep)
4867 2019-07-10 Tom Tromey <tromey@adacore.com>
4869 * solib-spu.c (ocl_program_data_key): Change type.
4870 (append_ocl_sos, ocl_enable_break, _initialize_spu_solib):
4873 2019-07-10 Tom Tromey <tromey@adacore.com>
4875 * solib-aix.c (lm_info_aix_p): Remove typedef. Don't define VEC.
4876 (struct solib_aix_inferior_data) <library_list>: Change type.
4877 (solib_aix_inferior_data_handle): Change type.
4878 (get_solib_aix_inferior_data): Update.
4879 (solib_aix_free_library_list): Remove.
4880 (library_list_start_library): Update.
4881 (solib_aix_parse_libraries, solib_aix_get_library_list): Change
4883 (solib_aix_get_library_list)
4884 (solib_aix_solib_create_inferior_hook, solib_aix_current_sos)
4885 (solib_aix_normal_stop_observer, _initialize_solib_aix): Update.
4887 2019-07-10 Tom Tromey <tromey@adacore.com>
4889 * solib-dsbt.c (struct dsbt_info): Add initializers.
4890 (solib_dsbt_pspace_data): Change type.
4891 (dsbt_pspace_data_cleanup): Remove.
4892 (get_dsbt_info, _initialize_dsbt_solib): Update.
4894 2019-07-10 Tom Tromey <tromey@adacore.com>
4896 * spu-tdep.c (spu_overlay_data): Change type.
4897 (spu_get_overlay_table, spu_overlay_new_objfile)
4898 (_initialize_spu_tdep): Update.
4900 2019-07-10 Tom Tromey <tromey@adacore.com>
4902 * gdb-stabs.h (struct dbx_symfile_info): Add initializers and
4904 (dbx_objfile_data_key): Change type and declare later.
4905 (DBX_SYMFILE_INFO): Rewrite.
4906 * dbxread.c (dbx_objfile_data_key): Change type.
4907 (dbx_symfile_init): Update.
4908 (~dbx_symfile_info): Rename from dbx_free_symfile_info. Update.
4909 (coffstab_build_psymtabs, elfstab_build_psymtabs)
4910 (stabsect_build_psymtabs, _initialize_dbxread): Update.
4912 2019-07-10 Tom Tromey <tromey@adacore.com>
4914 * jit.c (jit_program_space_key): Change type. Move lower.
4915 (get_jit_program_space_data): Update.
4916 (jit_program_space_data_cleanup): Remove.
4917 (jit_breakpoint_deleted, free_objfile_data, _initialize_jit):
4919 (struct jit_program_space_data): Add initializers.
4921 2019-07-10 Tom Tromey <tromey@adacore.com>
4923 * solib-darwin.c (struct darwin_info): Add initializers.
4924 (solib_darwin_pspace_data): Change type.
4925 (darwin_pspace_data_cleanup): Remove.
4926 (get_darwin_info, _initialize_darwin_solib): Update.
4928 2019-07-10 Tom Tromey <tromey@adacore.com>
4930 * remote-sim.c (struct sim_inferior_data): Add initializers,
4931 constructor, and destructor.
4932 (sim_inferior_data_key): Change type. Move lower.
4933 (check_for_duplicate_sim_descriptor): Update.
4934 (get_sim_inferior_data): Use new. Update.
4935 (~sim_inferior_data_cleanup): Rename from
4936 sim_inferior_data_cleanup. Simplify.
4937 (gdbsim_close_inferior, simulator_command)
4938 (sim_command_completer, _initialize_remote_sim): Update.
4939 (next_pid, INITIAL_PID): Move earlier.
4941 2019-07-10 Tom Tromey <tromey@adacore.com>
4943 * python/python-internal.h (create_thread_object): Return
4945 * python/py-infthread.c (create_thread_object): Return gdbpy_ref.
4946 * python/py-inferior.c (struct threadlist_entry): Add
4948 <thread_obj>: Now a gdbpy_ref.
4949 (thread_to_thread_object): Update.
4950 (add_thread_object): Use new.
4951 (delete_thread_object): Use delete.
4952 (infpy_threads): Update.
4953 (py_free_inferior): Update. Construct "inf_obj" after acquiring
4956 2019-07-10 Tom Tromey <tromey@adacore.com>
4958 * valops.c (value_cast): Specialize error message for Ada.
4960 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4962 * breakpoint.c (breakpoint_1): Update doc and parameter names.
4964 2019-07-10 Simon Marchi <simon.marchi@polymtl.ca>
4966 * breakpoint.h (bpstat_explains_signal, bpstat_causes_stop,
4967 bpstat_should_step): Return bool, adjust comments.
4968 * breakpoint.c (bpstat_explains_signal, bpstat_causes_stop,
4969 bpstat_should_step): Likewise.
4971 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4973 * features/Makefile: Use feature target descriptions for Arm.
4974 * features/arm/arm-core.c: Generate new file.
4975 * features/arm/arm-fpa.c: Likewise.
4976 * features/arm/arm-m-profile-with-fpa.xml: Likewise.
4977 * features/arm/arm-m-profile.c: Likewise.
4978 * features/arm/arm-vfpv2.c: Likewise.
4979 * features/arm/arm-vfpv3.c: Likewise.
4980 * features/arm/xscale-iwmmxt.c: Likewise.
4981 * target-descriptions.c (maint_print_c_tdesc_cmd): Add Arm.
4983 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4985 * arm-linux-nat.c (arm_linux_nat_target::read_description): Check
4988 2019-07-10 Alan Hayward <alan.hayward@arm.com>
4990 * features/aarch64-pauth.c: Regenerate.
4992 2019-07-09 Simon Marchi <simon.marchi@polymtl.ca>
4994 * breakpoint.h (struct bpstat_what) <is_longjmp>: Change type to
4996 (bpstat_what): Use false instead of 0.
4998 2019-07-09 Pedro Alves <palves@redhat.com>
5000 * break-catch-throw.c (is_exception_catchpoint): New.
5001 * breakpoint.c (print_one_breakpoint_location): New parameter
5002 'raw_loc'. Handle it. Use
5003 is_watchpoint/is_catchpoint/is_exception_catchpoint instead of
5004 looking at the breakpoint's type.
5005 (print_one_breakpoint): If handling "maint info breakpoints", also
5006 print locations of exception catchpoints.
5007 * breakpoint.h (is_exception_catchpoint): Declare.
5009 2019-07-09 Pedro Alves <palves@redhat.com>
5011 * break-catch-throw.c (print_one_exception_catchpoint): Skip the
5013 (allocate_location_exception_catchpoint): New.
5014 (handle_gnu_v3_exceptions): Don't reset 'type' to bp_breakpoint.
5015 (initialize_throw_catchpoint_ops): Install
5016 allocate_location_exception_catchpoint as allocate_location
5018 * breakpoint.c (bpstat_what) <bp_catch>: Set action to
5019 BPSTAT_WHAT_SINGLE if not stopping and the location's type is not
5021 (breakpoint_address_is_meaningful): Delete.
5022 (bl_address_is_meaningful): New.
5023 (breakpoint_locations_match): Adjust comment.
5024 (bp_location_from_bp_type): New, factored out of...
5025 (bp_location::bp_location(breakpoint *)): ... this.
5026 (bp_location::bp_location(breakpoint *, bp_loc_type)): New,
5028 (bp_location::bp_location(breakpoint *)): ... this. Reimplement.
5029 (bp_loc_is_permanent): Use bl_address_is_meaningful instead of
5030 breakpoint_address_is_meaningful.
5031 (bp_locations_compare): Adjust comment.
5032 (update_global_location_list): Use bl_address_is_meaningful
5033 instead of breakpoint_address_is_meaningful.
5034 * breakpoint.h (bp_location::bp_location(breakpoint *)): New
5036 (bp_location::bp_location(breakpoint *, bp_loc_type)): Declare.
5037 * python/py-breakpoint.c (bppy_get_location): No longer check
5038 whether location is null.
5040 2019-07-09 Pedro Alves <palves@redhat.com>
5043 * breakpoint.c (print_one_breakpoint_location): Remove
5044 single-location assert.
5046 2019-07-09 Tom Tromey <tom@tromey.com>
5048 * contrib/ari/gdb_ari.sh: Change common to gdbsupport.
5049 * configure: Rebuild.
5050 * configure.ac: Change common to gdbsupport.
5051 * gdbsupport: Rename from common.
5052 * acinclude.m4: Change common to gdbsupport.
5053 * Makefile.in (CONFIG_SRC_SUBDIR, COMMON_SFILES)
5054 (HFILES_NO_SRCDIR, stamp-version, ALLDEPFILES): Change common to
5056 * aarch64-tdep.c, ada-lang.c, ada-lang.h, agent.c, alloc.c,
5057 amd64-darwin-tdep.c, amd64-dicos-tdep.c, amd64-fbsd-nat.c,
5058 amd64-fbsd-tdep.c, amd64-linux-nat.c, amd64-linux-tdep.c,
5059 amd64-nbsd-tdep.c, amd64-obsd-tdep.c, amd64-sol2-tdep.c,
5060 amd64-tdep.c, amd64-windows-tdep.c, arch-utils.c,
5061 arch/aarch64-insn.c, arch/aarch64.c, arch/aarch64.h, arch/amd64.c,
5062 arch/amd64.h, arch/arm-get-next-pcs.c, arch/arm-linux.c,
5063 arch/arm.c, arch/i386.c, arch/i386.h, arch/ppc-linux-common.c,
5064 arch/riscv.c, arch/riscv.h, arch/tic6x.c, arm-tdep.c, auto-load.c,
5065 auxv.c, ax-gdb.c, ax-general.c, ax.h, breakpoint.c, breakpoint.h,
5066 btrace.c, btrace.h, build-id.c, build-id.h, c-lang.h, charset.c,
5067 charset.h, cli/cli-cmds.c, cli/cli-cmds.h, cli/cli-decode.c,
5068 cli/cli-dump.c, cli/cli-option.h, cli/cli-script.c,
5069 coff-pe-read.c, command.h, compile/compile-c-support.c,
5070 compile/compile-c.h, compile/compile-cplus-symbols.c,
5071 compile/compile-cplus-types.c, compile/compile-cplus.h,
5072 compile/compile-loc2c.c, compile/compile.c, completer.c,
5073 completer.h, contrib/ari/gdb_ari.sh, corefile.c, corelow.c,
5074 cp-support.c, cp-support.h, cp-valprint.c, csky-tdep.c, ctf.c,
5075 darwin-nat.c, debug.c, defs.h, disasm-selftests.c, disasm.c,
5076 disasm.h, dtrace-probe.c, dwarf-index-cache.c,
5077 dwarf-index-cache.h, dwarf-index-write.c, dwarf2-frame.c,
5078 dwarf2expr.c, dwarf2loc.c, dwarf2read.c, event-loop.c,
5079 event-top.c, exceptions.c, exec.c, extension.h, fbsd-nat.c,
5080 features/aarch64-core.c, features/aarch64-fpu.c,
5081 features/aarch64-pauth.c, features/aarch64-sve.c,
5082 features/i386/32bit-avx.c, features/i386/32bit-avx512.c,
5083 features/i386/32bit-core.c, features/i386/32bit-linux.c,
5084 features/i386/32bit-mpx.c, features/i386/32bit-pkeys.c,
5085 features/i386/32bit-segments.c, features/i386/32bit-sse.c,
5086 features/i386/64bit-avx.c, features/i386/64bit-avx512.c,
5087 features/i386/64bit-core.c, features/i386/64bit-linux.c,
5088 features/i386/64bit-mpx.c, features/i386/64bit-pkeys.c,
5089 features/i386/64bit-segments.c, features/i386/64bit-sse.c,
5090 features/i386/x32-core.c, features/riscv/32bit-cpu.c,
5091 features/riscv/32bit-csr.c, features/riscv/32bit-fpu.c,
5092 features/riscv/64bit-cpu.c, features/riscv/64bit-csr.c,
5093 features/riscv/64bit-fpu.c, features/tic6x-c6xp.c,
5094 features/tic6x-core.c, features/tic6x-gp.c, filename-seen-cache.h,
5095 findcmd.c, findvar.c, fork-child.c, gcore.c, gdb_bfd.c, gdb_bfd.h,
5096 gdb_proc_service.h, gdb_regex.c, gdb_select.h, gdb_usleep.c,
5097 gdbarch-selftests.c, gdbthread.h, gdbtypes.h, gnu-nat.c,
5098 go32-nat.c, guile/guile.c, guile/scm-ports.c,
5099 guile/scm-safe-call.c, guile/scm-type.c, i386-fbsd-nat.c,
5100 i386-fbsd-tdep.c, i386-go32-tdep.c, i386-linux-nat.c,
5101 i386-linux-tdep.c, i386-tdep.c, i387-tdep.c,
5102 ia64-libunwind-tdep.c, ia64-linux-nat.c, inf-child.c,
5103 inf-ptrace.c, infcall.c, infcall.h, infcmd.c, inferior-iter.h,
5104 inferior.c, inferior.h, inflow.c, inflow.h, infrun.c, infrun.h,
5105 inline-frame.c, language.h, linespec.c, linux-fork.c, linux-nat.c,
5106 linux-tdep.c, linux-thread-db.c, location.c, machoread.c,
5107 macrotab.h, main.c, maint.c, maint.h, memattr.c, memrange.h,
5108 mi/mi-cmd-break.h, mi/mi-cmd-env.c, mi/mi-cmd-stack.c,
5109 mi/mi-cmd-var.c, mi/mi-interp.c, mi/mi-main.c, mi/mi-parse.h,
5110 minsyms.c, mips-linux-tdep.c, namespace.h,
5111 nat/aarch64-linux-hw-point.c, nat/aarch64-linux-hw-point.h,
5112 nat/aarch64-linux.c, nat/aarch64-sve-linux-ptrace.c,
5113 nat/amd64-linux-siginfo.c, nat/fork-inferior.c,
5114 nat/linux-btrace.c, nat/linux-btrace.h, nat/linux-namespaces.c,
5115 nat/linux-nat.h, nat/linux-osdata.c, nat/linux-personality.c,
5116 nat/linux-procfs.c, nat/linux-ptrace.c, nat/linux-ptrace.h,
5117 nat/linux-waitpid.c, nat/mips-linux-watch.c,
5118 nat/mips-linux-watch.h, nat/ppc-linux.c, nat/x86-dregs.c,
5119 nat/x86-dregs.h, nat/x86-linux-dregs.c, nat/x86-linux.c,
5120 nto-procfs.c, nto-tdep.c, objfile-flags.h, objfiles.c, objfiles.h,
5121 obsd-nat.c, observable.h, osdata.c, p-valprint.c, parse.c,
5122 parser-defs.h, ppc-linux-nat.c, printcmd.c, probe.c, proc-api.c,
5123 procfs.c, producer.c, progspace.h, psymtab.h,
5124 python/py-framefilter.c, python/py-inferior.c, python/py-ref.h,
5125 python/py-type.c, python/python.c, record-btrace.c, record-full.c,
5126 record.c, record.h, regcache-dump.c, regcache.c, regcache.h,
5127 remote-fileio.c, remote-fileio.h, remote-sim.c, remote.c,
5128 riscv-tdep.c, rs6000-aix-tdep.c, rust-exp.y, s12z-tdep.c,
5129 selftest-arch.c, ser-base.c, ser-event.c, ser-pipe.c, ser-tcp.c,
5130 ser-unix.c, skip.c, solib-aix.c, solib-target.c, solib.c,
5131 source-cache.c, source.c, source.h, sparc-nat.c, spu-linux-nat.c,
5132 stack.c, stap-probe.c, symfile-add-flags.h, symfile.c, symfile.h,
5133 symtab.c, symtab.h, target-descriptions.c, target-descriptions.h,
5134 target-memory.c, target.c, target.h, target/waitstatus.c,
5135 target/waitstatus.h, thread-iter.h, thread.c, tilegx-tdep.c,
5136 top.c, top.h, tracefile-tfile.c, tracefile.c, tracepoint.c,
5137 tracepoint.h, tui/tui-io.c, ui-file.c, ui-out.h,
5138 unittests/array-view-selftests.c,
5139 unittests/child-path-selftests.c, unittests/cli-utils-selftests.c,
5140 unittests/common-utils-selftests.c,
5141 unittests/copy_bitwise-selftests.c, unittests/environ-selftests.c,
5142 unittests/format_pieces-selftests.c,
5143 unittests/function-view-selftests.c,
5144 unittests/lookup_name_info-selftests.c,
5145 unittests/memory-map-selftests.c, unittests/memrange-selftests.c,
5146 unittests/mkdir-recursive-selftests.c,
5147 unittests/observable-selftests.c,
5148 unittests/offset-type-selftests.c, unittests/optional-selftests.c,
5149 unittests/parse-connection-spec-selftests.c,
5150 unittests/ptid-selftests.c, unittests/rsp-low-selftests.c,
5151 unittests/scoped_fd-selftests.c,
5152 unittests/scoped_mmap-selftests.c,
5153 unittests/scoped_restore-selftests.c,
5154 unittests/string_view-selftests.c, unittests/style-selftests.c,
5155 unittests/tracepoint-selftests.c, unittests/unpack-selftests.c,
5156 unittests/utils-selftests.c, unittests/xml-utils-selftests.c,
5157 utils.c, utils.h, valarith.c, valops.c, valprint.c, value.c,
5158 value.h, varobj.c, varobj.h, windows-nat.c, x86-linux-nat.c,
5159 xml-support.c, xml-support.h, xml-tdesc.h, xstormy16-tdep.c,
5160 xtensa-linux-nat.c, dwarf2read.h: Change common to gdbsupport.
5162 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5164 * linespec.c (decode_digits_list_mode): Set explicit_line to a
5166 (decode_digits_ordinary): Set explicit_line field in sal.
5167 * symtab.c (skip_prologue_sal): Don't skip prologue for a
5168 symtab_and_line that was set on an explicit line number in
5169 assembler code. Do always update the recorded symtab and line if
5170 we do skip the prologue.
5172 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5174 * breakpoint.c (set_breakpoint_location_function): Remove
5175 explicit_loc parameter.
5176 (momentary_breakpoint_from_master): Update call to
5177 set_breakpoint_location_function.
5178 (add_location_to_breakpoint): Likewise.
5180 2019-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
5182 * riscv-tdep.c (riscv_features_from_gdbarch_info): Don't modify
5183 required features based on default bfd type when no specific bfd
5186 2019-07-08 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5188 * NEWS: Mention that GDB printf and eval commands can now print
5189 C-style and Ada-style convenience var strings without
5190 calling the inferior.
5191 * printcmd.c (printf_c_string): Locally print GDB internal var
5192 instead of transiting via the inferior.
5193 (printf_wide_c_string): Likewise.
5195 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5197 PR breakpoints/25011
5198 * symfile.c (symbol_file_command): Call solib_create_inferior_hook.
5200 2019-07-04 Tom Tromey <tom@tromey.com>
5203 * tui/tui-winsource.c (tui_clear_source_content): Update.
5204 (tui_source_window_base::set_is_exec_point_at): Fix comment.
5205 (tui_update_breakpoint_info): Update.
5206 (tui_set_exec_info_content): Update.
5207 * tui/tui-source.c (tui_set_source_content_nil): Update.
5208 * tui/tui-disasm.c (tui_set_disassem_content): Don't set
5210 * tui/tui-data.h (enum tui_bp_flag): New.
5211 (tui_bp_flags): New enum flags type.
5212 (struct tui_source_element) <break_mode>: Change type. Rename
5214 (TUI_BP_ENABLED, TUI_BP_DISABLED, TUI_BP_HIT)
5215 (TUI_BP_CONDITIONAL, TUI_BP_HARDWARE): Don't define. Now enum
5217 * tui/tui-winsource.h: Fix comment.
5219 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5221 * aarch32-linux-nat.h (VFP_REGS_SIZE): Remove define.
5222 * aarch64-linux-nat.c (fetch_fpregs_from_thread)
5223 (store_fpregs_to_thread)
5224 (aarch64_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5225 * arch/arm.h (IWMMXT_VEC_REGISTER_SIZE, ARM_CORE_REGS_SIZE)
5226 (ARM_FP_REGS_SIZE, ARM_VFP2_REGS_SIZE, ARM_VFP3_REGS_SIZE)
5227 (IWMMXT_REGS_SIZE): Add define.
5228 * arm-linux-nat.c (IWMMXT_REGS_SIZE): Remove define.
5229 (fetch_vfp_regs, store_vfp_regs)
5230 (arm_linux_nat_target::read_description): Use ARM_VFP3_REGS_SIZE.
5231 * arm-tdep.c (arm_register_g_packet_guesses): Use new defines.
5233 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5235 * arch/arm-get-next-pcs.c (thumb_get_next_pcs_raw): Use ARM_
5237 * arch/arm-linux.c (arm_linux_sigreturn_next_pc_offset): Likewise.
5238 * arch/arm.h (INT_REGISTER_SIZE) Rename from...
5239 (ARM_INT_REGISTER_SIZE): ...to this.
5240 (ARM_FP_REGISTER_SIZE) (ARM_VFP_REGISTER_SIZE): Add define.
5241 * arm-linux-tdep.c (ARM_LINUX_JB_ELEMENT_SIZE)
5242 (ARM_LINUX_SIZEOF_GREGSET, arm_linux_supply_gregset)
5243 (arm_linux_collect_gregset, supply_nwfpe_register)
5244 (collect_nwfpe_register, arm_linux_collect_nwfpe): Use ARM_
5246 * arm-linux-tdep.h (ARM_LINUX_SIZEOF_NWFPE, NWFPE_FPSR_OFFSET)
5247 (NWFPE_FPCR_OFFSET, NWFPE_TAGS_OFFSET): Likewise
5248 * arm-nbsd-tdep.c (ARM_NBSD_JB_ELEMENT_SIZE): Likewise.
5249 * arm-tdep.c (arm_push_dummy_call, arm_extract_return_value)
5250 (arm_return_in_memory, arm_store_return_value)
5251 (arm_get_longjmp_target, arm_register_g_packet_guesses)
5252 (arm_record_ld_st_multiple): Likewise.
5253 * arm-tdep.h (FP_REGISTER_SIZE, VFP_REGISTER_SIZE): Remove.
5254 * arm-wince-tdep.c (ARM_WINCE_JB_ELEMENT_SIZE): Use ARM_ defines.
5256 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5258 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Use
5259 AARCH64_DISPLACED_MODIFIED_INSNS.
5260 * aarch64-tdep.c (struct aarch64_displaced_step_data)
5261 (aarch64_displaced_step_copy_insn): Likewise.
5262 * aarch64-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5263 (AARCH64_DISPLACED_MODIFIED_INSNS): ...to this.
5264 * arm-linux-tdep.c (arm_linux_cleanup_svc): Use
5265 ARM_DISPLACED_MODIFIED_INSNS.
5266 * arm-tdep.c (arm_gdbarch_init): Likewise.
5267 * arm-tdep.h (DISPLACED_MODIFIED_INSNS): Rename from..
5268 (ARM_DISPLACED_MODIFIED_INSNS): ...to this.
5269 (struct arm_displaced_step_closure): Use
5270 ARM_DISPLACED_MODIFIED_INSNS.
5272 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5274 * features/Makefile: Remove unused xml files.
5275 * features/aarch64.xml: Remove.
5276 * features/i386/amd64-avx-avx512-linux.xml: Remove.
5277 * features/i386/amd64-avx-avx512.xml: Remove.
5278 * features/i386/amd64-avx-linux.xml: Remove.
5279 * features/i386/amd64-avx-mpx-avx512-pku-linux.xml: Remove.
5280 * features/i386/amd64-avx-mpx-avx512-pku.xml: Remove.
5281 * features/i386/amd64-avx-mpx-linux.xml: Remove.
5282 * features/i386/amd64-avx-mpx.xml: Remove.
5283 * features/i386/amd64-avx.xml: Remove.
5284 * features/i386/amd64-linux.xml: Remove.
5285 * features/i386/amd64-mpx-linux.xml: Remove.
5286 * features/i386/amd64-mpx.xml: Remove.
5287 * features/i386/amd64.xml: Remove.
5288 * features/i386/i386-avx-avx512-linux.xml: Remove.
5289 * features/i386/i386-avx-avx512.xml: Remove.
5290 * features/i386/i386-avx-linux.xml: Remove.
5291 * features/i386/i386-avx-mpx-avx512-pku-linux.xml: Remove.
5292 * features/i386/i386-avx-mpx-avx512-pku.xml: Remove.
5293 * features/i386/i386-avx-mpx-linux.xml: Remove.
5294 * features/i386/i386-avx-mpx.xml: Remove.
5295 * features/i386/i386-avx.xml: Remove.
5296 * features/i386/i386-linux.xml: Remove.
5297 * features/i386/i386-mmx-linux.xml: Remove.
5298 * features/i386/i386-mmx.xml: Remove.
5299 * features/i386/i386-mpx-linux.xml: Remove.
5300 * features/i386/i386-mpx.xml: Remove.
5301 * features/i386/i386.xml: Remove.
5302 * features/i386/x32-avx-avx512-linux.xml: Remove.
5303 * features/i386/x32-avx-linux.xml: Remove.
5304 * features/i386/x32-linux.xml: Remove.
5306 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5308 * regformats/aarch64.dat: Remove.
5309 * regformats/i386/amd64-avx-avx512-linux.dat: Remove.
5310 * regformats/i386/amd64-avx-linux.dat: Remove.
5311 * regformats/i386/amd64-avx-mpx-avx512-pku-linux.dat: Remove.
5312 * regformats/i386/amd64-avx-mpx-linux.dat: Remove.
5313 * regformats/i386/amd64-linux.dat: Remove.
5314 * regformats/i386/amd64-mpx-linux.dat: Remove.
5315 * regformats/i386/amd64.dat: Remove.
5316 * regformats/i386/i386-avx-avx512-linux.dat: Remove.
5317 * regformats/i386/i386-avx-linux.dat: Remove.
5318 * regformats/i386/i386-avx-mpx-avx512-pku-linux.dat: Remove.
5319 * regformats/i386/i386-avx-mpx-linux.dat: Remove.
5320 * regformats/i386/i386-linux.dat: Remove.
5321 * regformats/i386/i386-mmx-linux.dat: Remove.
5322 * regformats/i386/i386-mpx-linux.dat: Remove.
5323 * regformats/i386/i386.dat: Remove.
5324 * regformats/i386/x32-avx-avx512-linux.dat: Remove.
5325 * regformats/i386/x32-avx-linux.dat: Remove.
5326 * regformats/i386/x32-linux.dat: Remove.
5328 2019-07-04 Alan Hayward <alan.hayward@arm.com>
5330 * aarch64-tdep.c: Remove xml self tests.
5331 * amd64-linux-tdep.c: Likewise.
5332 * amd64-tdep.c: Likewise.
5333 * i386-linux-tdep.c: Likewise.
5334 * i386-tdep.c: Likewise.
5336 2019-07-03 Pedro Alves <palves@redhat.com>
5339 * cli/cli-cmds.c (struct pipe_cmd_opts): New.
5340 (pipe_cmd_option_defs): New.
5341 (make_pipe_cmd_options_def_group): New.
5342 (pipe_command): Use gdb::option::process_options.
5343 (pipe_command_completer): New function.
5344 (_initialize_cli_cmds): Install completer for "pipe" command.
5346 2019-07-03 Pedro Alves <palves@redhat.com>
5348 * cli/cli-option.c (union option_value) <string>: New field.
5349 (struct option_def_and_value): Add ctor, move ctor, dtor and
5350 use DISABLE_COPY_AND_ASSIGN.
5351 (option_def_and_value::clear_value): New.
5352 (parse_option, save_option_value_in_ctx, get_val_type_str)
5353 (add_setshow_cmds_for_options): Handle var_string.
5354 * cli-option.h (union option_def::var_address) <string>: New
5356 (struct string_option_def): New.
5357 * maint-test-options.c (struct test_options_opts): Add default
5358 ctor and use DISABLE_COPY_AND_ASSIGN.
5359 <string_opt>: New field.
5360 (test_options_opts::~test_options_opts): New.
5361 (test_options_opts::dump): Also dump "-string".
5362 (test_options_option_defs): Install "string.
5364 2019-07-03 Pedro Alves <palves@redhat.com>
5366 * cli/cli-option.c (parse_option) <var_enum>: Don't return an
5367 option_value with a null enumeration.
5368 (complete_options): Save the option values in the context.
5369 (save_option_value_in_ctx): New, factored out from ...
5370 (process_options): ... here.
5371 * cli/cli-utils.c (get_ulongest): Don't advance PP until the end
5373 * maint-test-options.c (test_options_opts::dump): New, factored
5375 (maintenance_test_options_command_mode): ... here.
5376 (maintenance_test_options_command_completion_result): Delete.
5377 (maintenance_test_options_command_completion_text): Update
5379 (maintenance_show_test_options_completion_result): Change
5380 prototype. Just print
5381 maintenance_test_options_command_completion_text.
5382 (save_completion_result): New.
5383 (maintenance_test_options_completer_mode): Pass options context to
5384 complete_options, and then save a dump.
5385 (_initialize_maint_test_options): Use add_cmd to install "maint
5386 show test-options-completion-result".
5388 2019-07-03 Pedro Alves <palves@redhat.com>
5390 * NEWS (New commands): Mention "with" and "maint with".
5391 * cli/cli-cmds.c (with_command_1, with_command_completer_1)
5392 (with_command, with_command_completer): New.
5393 (pipe_command): Adjust to new repeat_previous
5395 (_initialize_cli_cmds): Install the "with" command and its "w"
5397 * cli/cli-cmds.h (with_command_1, with_command_completer_1): New
5399 * cli/cli-setshow.c (parse_cli_var_uinteger)
5400 (parse_cli_var_zuinteger_unlimited, do_set_command): Handle empty
5401 argument strings for all var_types.
5402 (get_setshow_command_value_string): New, factored out from ...
5403 (do_show_command): ... this.
5404 * cli/cli-setshow.h: Include <string>.
5405 (get_setshow_command_value_string): Declare.
5406 * command.h (repeat_previous): Now returns const char *. Adjust
5408 * maint.c: Include "cli/cli-cmds.h".
5409 (maintenance_with_cmd, maintenance_with_cmd_completer): New.
5410 (_initialize_maint_cmds): Register the "maintenance with" command.
5411 * top.c (repeat_previous): Move bits from pipe_command here:
5412 Return the saved command line, if any; error out if there's no
5413 command to relaunch.
5415 2019-07-03 Pedro Alves <palves@redhat.com>
5417 * NEWS (New commands): Mention "maint set/show test-settings"
5418 instead of "maint test-settings".
5419 * maint-test-settings.c (maintenance_test_settings_list): Delete.
5420 (maintenance_test_settings_set_list): Rename to ...
5421 (maintenance_set_test_settings_list): ... this.
5422 (maintenance_test_settings_show_list): Rename to ...
5423 (maintenance_show_test_settings_list): ... this.
5424 (maintenance_test_settings_cmd): Delete.
5425 (maintenance_test_settings_set_cmd): ...
5426 (maintenance_set_test_settings_cmd): ... this.
5427 (maintenance_test_settings_show_cmd): ...
5428 (maintenance_show_test_settings_cmd): ... this.
5429 (maintenance_test_settings_show_value_cmd):
5430 (maintenance_show_test_settings_value_cmd): ... this.
5431 (_initialize_maint_test_settings): No longer install the "maint
5432 test-settings" prefix command. Rename "maint test-settings set"
5433 to "maint set test-settings", and "maint test-settings show" to
5434 "maint show test-settings". Adjust all subcommands.
5436 2019-07-03 Pedro Alves <palves@redhat.com>
5438 * maint-test-settings.c: Fix file's intro comment. Replace all
5439 references to "test-options" with references to "test-settings",
5442 2019-07-03 Pedro Alves <palves@redhat.com>
5444 * maint-test-settings.c (maintenance_test_settings_xxx)
5445 (maintenance_test_settings_yyy, maintenance_test_settings_zzz):
5447 (maintenance_test_settings_enums): Use them.
5448 (maintenance_test_settings_enum): Default to
5449 maintenance_test_settings_xxx.
5450 (_initialize_maint_test_settings): Initialize
5451 MAINTENANCE_TEST_SETTINGS_FILENAME.
5453 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5455 * breakpoint.h (remove_breakpoints_inf): Change return type to
5456 void, move function documentation here.
5457 * breakpoint.c (remove_breakpoints_inf): Change return type to
5458 void, move function documentation to header.
5460 2019-07-02 Pedro Alves <palves@redhat.com>
5462 * NEWS (Completion improvements): Mention "info threads".
5463 * thread.c (struct info_threads_opts, info_threads_option_defs)
5464 (make_info_threads_options_def_group): New.
5465 (info_threads_command): Use gdb::option::process_options.
5466 (info_threads_command_completer): New.
5467 (_initialize_thread): Use gdb::option::build_help to build the
5468 help text for "info threads".
5470 2019-07-02 Simon Marchi <simon.marchi@polymtl.ca>
5472 * defs.h (generic_load): Move from here...
5473 * symfile.h (generic_load): ... to here. Rename name parameter
5475 * symfile.c (generic_load): Add comment.
5477 2019-07-01 Tom Tromey <tromey@adacore.com>
5480 (dw2_debug_names_iterator::find_vec_in_debug_names): Hoist
5481 declaration of without_params. Fix formatting.
5483 2019-07-01 Tom Tromey <tromey@adacore.com>
5485 * ada-exp.y (find_primitive_type): Update.
5486 * ada-lang.h (ada_lookup_symbol): Update.
5487 * ada-lang.c (ada_lookup_symbol): Remove "is_a_field_of_this"
5489 (ada_lookup_encoded_symbol, ada_lookup_symbol_nonlocal): Update.
5491 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5493 PR breakpoints/24541
5494 * gdbarch.c: Regenerate.
5495 * gdbarch.h: Regenerate.
5496 * gdbarch.sh: Add 'stap_adjust_register'.
5497 * i386-tdep.c: Include '<unordered_set>'.
5498 (i386_stap_adjust_register): New function.
5499 (i386_elf_init_abi): Register 'i386_stap_adjust_register'.
5500 * stap-probe.c (stap_parse_register_operand): Call
5501 'gdbarch_stap_adjust_register'.
5503 2019-06-28 Sergio Durigan Junior <sergiodj@redhat.com>
5506 https://bugzilla.redhat.com/show_bug.cgi?id=1723564
5507 * python/python.c (do_start_initialization): Use 'xmalloc'
5508 instead of 'PyMem_Malloc'.
5510 2019-06-28 Tom Tromey <tromey@adacore.com>
5512 * dwarf2read.c (partial_die_info::read): Prefer the linkage name
5515 2019-06-27 Tom Tromey <tromey@adacore.com>
5517 * arm-tdep.c (arm_objfile_data_key): Move lower. Change type to
5519 (arm_find_mapping_symbol, arm_record_special_symbol)
5520 (_initialize_arm_tdep): Update.
5521 (arm_objfile_data_free): Remove.
5523 2019-06-27 Tom Tromey <tromey@adacore.com>
5525 * cp-valprint.c (cp_print_value_fields): Pass opts, not options,
5526 to cp_print_static_field.
5528 2019-06-26 Tom Tromey <tromey@adacore.com>
5530 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove.
5531 * minsyms.h (lookup_minimal_symbol_solib_trampoline): Don't
5534 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5536 * features/aarch64-core.c (create_feature_aarch64_core):
5538 * features/aarch64-core.xml: Add cpsr flags.
5540 2019-06-26 Alan Hayward <alan.hayward@arm.com>
5542 * arm-tdep.c (arm_gnu_triplet_regexp): New function.
5543 (arm_gdbarch_init): Add arm_gnu_triplet_regexp.
5545 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5547 * arm-tdep.c (struct arm_per_objfile) <section_maps_sorted>: New
5549 (arm_find_mapping_symbol): Sort mapping symbol vectors on first
5551 (arm_record_special_symbol): Don't insert new symbol in sorted
5552 position, push it at the end.
5554 2019-06-25 Simon Marchi <simon.marchi@polymtl.ca>
5556 * arm-tdep.c (struct arm_mapping_symbol) (operator <): New.
5557 (arm_mapping_symbol_s): Remove.
5558 (DEF_VEC_O(arm_mapping_symbol_s)): Remove.
5559 (arm_mapping_symbol_vec): New typedef.
5560 (struct arm_per_objfile): Add constructor.
5561 <section_maps>: Change type to
5562 std::unique_ptr<arm_mapping_symbol_vec[]>.
5563 (arm_compare_mapping_symbols): Remove.
5564 (arm_find_mapping_symbol): Adjust to section_maps type change.
5565 (arm_objfile_data_free): Call delete on arm_per_objfile.
5566 (arm_record_special_symbol): Adjust to section_maps type change.
5567 Allocate arm_per_objfile with new.
5569 2019-06-25 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5571 * cli/cli-cmds.c (alias_command): Compare the alias prefix
5572 with the command prefix.
5574 2019-06-25 Tom Tromey <tom@tromey.com>
5576 * tui/tui-wingeneral.c (tui_delete_win): Remove "return".
5577 * tui/tui-data.c (~tui_gen_win_info): Remove "if".
5579 2019-06-25 Tom Tromey <tom@tromey.com>
5581 * tui/tui-layout.c (init_and_make_win): Assert on unrecognized
5583 * tui/tui-data.h (struct tui_gen_win_info): Make constructor
5586 2019-06-25 Tom Tromey <tom@tromey.com>
5588 * tui/tui-winsource.c
5589 (tui_source_window_base::set_is_exec_point_at): Add check against
5592 2019-06-25 Tom Tromey <tom@tromey.com>
5594 * tui/tui-source.c (tui_set_source_content): Don't check before
5596 * tui/tui-disasm.c (tui_disassemble): Don't check before xfree.
5598 2019-06-25 Tom Tromey <tom@tromey.com>
5600 * tui/tui-winsource.h (tui_update_source_window_as_is)
5601 (tui_alloc_source_buffer, tui_line_is_displayed)
5602 (tui_addr_is_displayed): Change type of win_info.
5603 * tui/tui-winsource.c (tui_update_source_window_as_is)
5604 (tui_clear_source_content, tui_show_source_line)
5605 (tui_show_source_content, tui_source_window_base::refill)
5606 (tui_source_window_base::set_is_exec_point_at)
5607 (tui_source_window_base::set_is_exec_point_at)
5608 (tui_update_breakpoint_info, tui_set_exec_info_content): Update.
5609 (tui_alloc_source_buffer, tui_line_is_displayed)
5610 (tui_addr_is_displayed): Change type of win_info. Update.
5611 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5612 (tui_source_window_base::do_make_visible_with_new_height):
5614 * tui/tui-source.c (tui_set_source_content)
5615 (tui_set_source_content_nil)
5616 (tui_source_window::do_scroll_vertical): Update.
5617 * tui/tui-layout.c (show_layout): Update.
5618 * tui/tui-disasm.c (tui_set_disassem_content)
5619 (tui_disasm_window::do_scroll_vertical): Update.
5620 * tui/tui-data.h (tui_win_content): Remove.
5621 (struct tui_gen_win_info) <content, content_size>: Remove.
5622 (struct tui_source_element): Add initializers and destructor.
5623 (union tui_which_element, struct tui_win_element): Remove.
5624 (struct tui_source_window_base) <content>: New field.
5625 (struct tui_data_window): Remove destructor.
5626 (tui_alloc_content, tui_free_win_content)
5627 (tui_free_all_source_wins_content): Don't declare.
5628 * tui/tui-data.c (tui_initialize_static_data): Update.
5629 (init_content_element, tui_alloc_content): Remove.
5630 (~tui_gen_win_info): Update.
5631 (~tui_data_window, tui_free_all_source_wins_content)
5632 (tui_free_win_content, free_content, free_content_elements):
5635 2019-06-25 Tom Tromey <tom@tromey.com>
5637 * tui/tui-winsource.h (tui_clear_source_content)
5638 (tui_erase_source_content, tui_show_source_content): Change type
5640 * tui/tui-winsource.c (tui_clear_source_content)
5641 (tui_erase_source_content, tui_show_source_content): Change type
5643 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights): Update.
5644 * tui/tui-source.h (tui_set_source_content_nil): Change type of
5646 * tui/tui-source.c (tui_set_source_content_nil): Change type of
5648 * tui/tui-layout.c (show_source_or_disasm_and_command): Update.
5650 2019-06-25 Tom Tromey <tom@tromey.com>
5652 * tui/tui-winsource.c (tui_clear_source_content)
5653 (tui_source_window_base::set_is_exec_point_at): Update.
5654 * tui/tui-source.c (tui_set_source_content_nil): Update.
5655 * tui/tui-data.h (struct tui_source_element) <is_exec_point>: Now
5657 * tui/tui-data.c (init_content_element): Update.
5659 2019-06-25 Tom Tromey <tom@tromey.com>
5661 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Update.
5662 * tui/tui-win.c (make_invisible_and_set_new_height): Update.
5663 * tui/tui-layout.c (init_and_make_win): Update.
5664 * tui/tui.h (enum tui_win_type): Update.
5665 * tui/tui-data.h (tui_win_is_auxiliary): Rename from
5666 tui_win_is_auxillary.
5667 * tui/tui-data.c (tui_win_is_auxiliary): Rename from
5668 tui_win_is_auxillary.
5670 2019-06-25 Tom Tromey <tom@tromey.com>
5672 * tui/tui-wingeneral.c (tui_data_window::refresh_window): Update.
5673 * tui/tui-windata.c (tui_data_window::first_data_item_displayed)
5674 (tui_delete_data_content_windows, tui_display_all_data)
5675 (tui_data_window::do_scroll_vertical, tui_display_data_from):
5677 * tui/tui-win.c (tui_data_window::set_new_height): Simplify.
5678 * tui/tui-regs.c (tui_last_regs_line_no)
5679 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
5680 (tui_show_registers): Update.
5681 (tui_show_register_group): Return void. Update.
5682 (tui_display_registers_from, tui_display_reg_element_at_line)
5683 (tui_display_registers_from_line, tui_check_register_values):
5685 * tui/tui-data.h (union tui_which_element) <data_window>: Remove
5687 (struct tui_data_window) <regs_content>: Now a std::vector.
5688 <regs_content_count>: Remove.
5689 (tui_add_content_elements, tui_free_data_content): Don't declare.
5690 * tui/tui-data.c (tui_data_window::clear_detail): Update.
5691 (init_content_element): Remove DATA_WIN case. Add assert.
5692 (tui_add_content_elements): Remove.
5693 (tui_data_window): Update.
5694 (tui_free_data_content): Remove.
5695 (free_content_elements): Remove DATA_WIN case.
5697 2019-06-25 Tom Tromey <tom@tromey.com>
5699 * tui/tui-data.c (tui_data_item_window): Update.
5700 * tui/tui-windata.h (tui_check_data_values): Don't declare.
5701 * tui/tui-windata.c (tui_display_all_data)
5702 (tui_display_data_from_line): Update.
5703 (tui_check_data_values): Remove.
5704 * tui/tui-regs.c (tui_show_register_group)
5705 (tui_display_reg_element_at_line): Update.
5706 * tui/tui-hooks.c (tui_register_changed)
5707 (tui_refresh_frame_and_register_information): Call
5708 tui_check_register_values.
5709 * tui/tui-data.h (struct tui_data_window) <data_content,
5710 data_content_count, data_type>: Remove.
5711 (enum tui_data_type): Remove.
5713 * tui/tui-data.c (tui_data_window::clear_detail)
5714 (~tui_data_window): Update.
5716 2019-06-25 Tom Tromey <tom@tromey.com>
5718 * tui/tui-windata.h (tui_first_data_item_displayed): Don't
5720 * tui/tui-windata.c (tui_data_window::first_data_item_displayed):
5721 Rename from tui_first_data_item_displayed. Update.
5722 (tui_data_window::refresh_all)
5723 (tui_data_window::do_scroll_vertical): Update.
5724 * tui/tui-data.h (struct tui_data_window)
5725 <first_data_item_displayed>: Declare new method.
5727 2019-06-25 Tom Tromey <tom@tromey.com>
5729 * tui/tui-data.h (tui_init_generic_part): Don't declare.
5730 * tui/tui-data.c (tui_init_generic_part): Remove, moving
5732 (tui_initialize_static_data): ...here.
5734 2019-06-25 Tom Tromey <tom@tromey.com>
5736 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
5737 (tui_display_registers_from, tui_check_register_values): Update.
5738 (tui_display_register): Remove win_info parameter; update.
5739 (tui_get_register): Change type of parameters.
5740 * tui/tui-data.h (struct tui_data_element): Remove.
5741 (union tui_which_element) <data>: Remove.
5742 <data_window>: Change type.
5743 (struct tui_data_item_window): New.
5744 * tui/tui-data.c (init_content_element): Remove DATA_ITEM_WIN
5746 (~tui_data_item_window): New destructor.
5747 (free_content_elements): Remove DATA_ITEM_WIN case.
5749 2019-06-25 Tom Tromey <tom@tromey.com>
5751 * tui/tui.h (enum tui_win_type) <MAX_WINDOWS, UNDEFINED_WIN>:
5754 2019-06-25 Tom Tromey <tom@tromey.com>
5756 * tui/tui-data.h (struct tui_command_element): Remove.
5757 (union tui_which_element) <command>: Remove.
5758 * tui/tui-data.c (init_content_element): Remove CMD_WIN case. Add
5760 (free_content_elements): Remove CMD_WIN case.
5762 2019-06-25 Tom Tromey <tom@tromey.com>
5764 * tui/tui-layout.c (tui_set_layout): Update.
5765 * tui/tui-data.h (struct tui_layout_def) <split>: Remove.
5766 * tui/tui-data.c (layout_def): Update.
5768 2019-06-25 Tom Tromey <tom@tromey.com>
5770 * tui/tui-wingeneral.c (tui_refresh_all): Update.
5771 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
5772 (tui_source_window_base::set_new_height): Update.
5773 * tui/tui-stack.c (tui_make_status_line): Change parameter type.
5775 (tui_set_locator_fullname, tui_set_locator_info)
5776 (tui_show_frame_info): Update.
5777 * tui/tui-source.c (tui_set_source_content)
5778 (tui_source_is_displayed): Update.
5779 * tui/tui-layout.c (show_source_disasm_command, show_data)
5780 (show_source_or_disasm_and_command): Update.
5781 * tui/tui-disasm.c (tui_set_disassem_content)
5782 (tui_get_begin_asm_address): Update.
5783 * tui/tui-data.h (struct tui_locator_element): Remove.
5784 (union tui_which_element) <locator>: Remove.
5785 (struct tui_locator_window): New.
5786 (tui_locator_win_info_ptr): Change return type.
5787 * tui/tui-data.c (_locator): Change type.
5788 (tui_locator_win_info_ptr): Change return type.
5789 (init_content_element): Remove LOCATOR_WIN case. Add assert.
5790 (tui_alloc_content): Add assert.
5792 2019-06-25 Tom Tromey <tom@tromey.com>
5794 * tui/tui-winsource.c
5795 (tui_exec_info_window::maybe_allocate_content): New method.
5796 (tui_set_exec_info_content, tui_show_exec_info_content): Update.
5797 * tui/tui-layout.c (init_and_make_win): Add EXEC_INFO_WIN case.
5798 (make_source_or_disasm_window): Add cast.
5799 * tui/tui-data.h (union tui_which_element) <simple_string>:
5801 (struct tui_source_info): New.
5802 (struct tui_source_window_base) <execution_info>: Change type.
5803 * tui/tui-data.c (init_content_element): Remove EXEC_INFO_WIN
5804 case, and add assert.
5805 (tui_alloc_content): Add assert.
5807 2019-06-25 Tom Tromey <tom@tromey.com>
5809 * tui/tui-data.h (tui_alloc_win_info): Don't declare.
5810 * tui/tui-layout.c (init_and_make_win): Use "new" directly.
5811 * tui/tui-data.c (tui_alloc_win_info): Remove.
5813 2019-06-25 Tom Tromey <tom@tromey.com>
5815 * tui/tui-win.c (tui_set_win_focus_to): Don't check window type.
5816 * tui/tui-wingeneral.c (tui_unhighlight_win): Check
5819 2019-06-25 Tom Tromey <tom@tromey.com>
5821 * tui/tui-win.c (tui_source_window_base::update_tab_width): Call
5822 make_visible_with_new_height method.
5823 (tui_win_info::make_visible_with_new_height): New method.
5824 (tui_source_window_base::do_make_visible_with_new_height)
5825 (tui_data_window::do_make_visible_with_new_height)
5826 (tui_cmd_window::do_make_visible_with_new_height): New methods.
5827 (make_visible_with_new_height): Remove.
5828 (tui_resize_all, tui_adjust_win_heights): Use
5829 make_visible_with_new_height method.
5830 * tui/tui-data.h (struct tui_win_info)
5831 <do_make_visible_with_new_height, make_visible_with_new_height>:
5833 (struct tui_source_window_base, struct tui_data_window)
5834 (struct tui_cmd_window) <do_make_visible_with_new_height>: New
5837 2019-06-25 Tom Tromey <tom@tromey.com>
5839 * tui/tui-win.c (tui_source_window_base::update_tab_width): New
5841 (update_tab_width): Call update_tab_width method.
5842 * tui/tui-data.h (struct tui_win_info)
5843 (struct tui_source_window_base) <update_tab_width>: New methods.
5845 2019-06-25 Tom Tromey <tom@tromey.com>
5847 * tui/tui-wingeneral.h (tui_make_window): Change type of "box_it"
5849 * tui/tui-wingeneral.c (tui_make_window): Change type of "box_it"
5851 (tui_gen_win_info::make_visible): Update.
5852 * tui/tui-layout.c (init_and_make_win): Change type of "box_it"
5854 * tui/tui-data.h (enum tui_box): New enum.
5855 (BOX_WINDOW, DONT_BOX_WINDOW): Remove defines.
5857 2019-06-25 Tom Tromey <tom@tromey.com>
5859 * tui/tui-layout.c (make_source_or_disasm_window): Always use
5860 init_and_make_win for EXEC_INFO_WIN.
5861 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>: No
5863 (struct tui_win_info) <~tui_win_info>: Inline.
5864 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5866 * tui/tui-data.c (source_win, disasm_win): Remove globals.
5867 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
5869 (tui_initialize_static_data): Update.
5870 (~tui_gen_win_info): Handle more cleanup here.
5871 (~tui_source_window_base): Delete "execution_info".
5872 (~tui_win_info): Move code to ~tui_gen_win_info; remove.
5874 2019-06-25 Tom Tromey <tom@tromey.com>
5876 * tui/tui-layout.c (make_command_window): Don't set
5878 (show_source_disasm_command): Call the reset method.
5879 (show_data): Don't set can_highlight. Call the reset method.
5880 (tui_gen_win_info::reset): Rename from init_gen_win_info
5881 (init_and_make_win): Simplify. Return tui_gen_win_info.
5882 (show_source_or_disasm_and_command): Call the reset method.
5883 * tui/tui-data.h (struct tui_gen_win_info) <reset>: New method.
5884 (struct tui_cmd_window): Set can_highlight.
5886 2019-06-25 Tom Tromey <tom@tromey.com>
5888 * tui/tui-wingeneral.c (tui_gen_win_info::make_visible): Rename
5890 (tui_make_visible, tui_make_invisible): Rewrite.
5891 (tui_win_info::make_visible): Remove.
5892 (tui_source_window_base::make_visible): Update.
5893 * tui/tui-data.h (struct tui_gen_win_info) <make_visible>: New
5894 method. Moved from...
5895 (struct tui_win_info) <make_visible>: ...here.
5897 2019-06-25 Tom Tromey <tom@tromey.com>
5899 * tui/tui-winsource.c
5900 (tui_source_window_base::do_scroll_horizontal): Remove direction
5902 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Remove
5903 direction parameter.
5904 * tui/tui-win.c (tui_win_info::forward_scroll)
5905 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
5906 (tui_win_info::right_scroll): Update.
5907 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Remove
5908 direction parameter.
5909 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Remove
5910 direction parameter.
5911 * tui/tui-data.h (enum tui_scroll_direction): Remove.
5912 (struct tui_win_info) <do_scroll_vertical, do_scroll_horizontal>:
5913 Remove direction parameter.
5914 (struct tui_source_window_base, struct tui_source_window)
5915 (struct tui_disasm_window, struct tui_data_window)
5916 (struct tui_cmd_window): Update.
5918 2019-06-25 Tom Tromey <tom@tromey.com>
5920 * tui/tui-winsource.h (tui_set_exec_info_content)
5921 (tui_show_exec_info_content, tui_erase_exec_info_content)
5922 (tui_clear_exec_info_content, tui_update_exec_info): Change
5923 argument to tui_source_window_base.
5924 * tui/tui-winsource.c (tui_set_exec_info_content)
5925 (tui_show_exec_info_content, tui_erase_exec_info_content)
5926 (tui_clear_exec_info_content, tui_update_exec_info): Change
5927 argument to tui_source_window_base.
5929 2019-06-25 Tom Tromey <tom@tromey.com>
5931 * tui/tui-winsource.h (tui_set_exec_info_content): Return void.
5932 * tui/tui-winsource.c (tui_set_exec_info_content): Return void.
5934 2019-06-25 Tom Tromey <tom@tromey.com>
5936 * tui/tui-winsource.c (tui_set_exec_info_content): Remove NULL
5939 2019-06-25 Tom Tromey <tom@tromey.com>
5941 * tui/tui-winsource.h (tui_alloc_source_buffer): Change return
5943 * tui/tui-winsource.c (tui_alloc_source_buffer): Change return
5945 * tui/tui-source.c (tui_set_source_content): Update.
5946 * tui/tui-disasm.c (tui_set_disassem_content): Update.
5948 2019-06-25 Tom Tromey <tom@tromey.com>
5950 * tui/tui-win.c (window_name_completer, tui_set_focus)
5951 (tui_all_windows_info): Use name method.
5952 * tui/tui-data.h (struct tui_gen_win_info)
5953 (struct tui_source_window, struct tui_disasm_window)
5954 (struct tui_data_window, struct tui_cmd_window) <name>: New
5956 (tui_win_name): Don't declare.
5957 * tui/tui-data.c (tui_partial_win_by_name): Use name method.
5958 (tui_win_name): Remove.
5960 2019-06-25 Tom Tromey <tom@tromey.com>
5962 * tui/tui-winsource.h (tui_update_source_window)
5963 (tui_update_source_window_as_is): Change parameter type.
5964 * tui/tui-winsource.c (tui_update_source_window): Change win_info
5965 to be a tui_source_window_base.
5966 (tui_update_source_window_as_is): Likewise.
5967 * tui/tui-win.c (make_visible_with_new_height): Update.
5969 2019-06-25 Tom Tromey <tom@tromey.com>
5971 * tui/tui-winsource.c (tui_erase_source_content)
5972 (tui_show_source_content, tui_show_exec_info_content)
5973 (tui_erase_exec_info_content): Use refresh_window method.
5974 * tui/tui-wingeneral.h (tui_refresh_win): Don't declare.
5975 * tui/tui-wingeneral.c (tui_gen_win_info::refresh_window): Rename
5976 from tui_refresh_win.
5977 (tui_data_window::refresh_window): New method.
5978 (tui_win_info::refresh, tui_source_window_base::refresh)
5979 (tui_refresh_all): Use refresh_window method.
5980 * tui/tui-stack.c (tui_show_locator_content): Call refresh_window
5982 * tui/tui-regs.c (tui_display_register): Call refresh_window
5984 * tui/tui-layout.c (show_source_disasm_command)
5985 (show_source_or_disasm_and_command): Call refresh_window method.
5986 * tui/tui-data.h (struct tui_gen_win_info)
5987 (struct tui_data_window, struct tui_cmd_window) <refresh_window>:
5990 2019-06-25 Tom Tromey <tom@tromey.com>
5992 * tui/tui.c (tui_rl_other_window, tui_enable)
5993 (tui_is_window_visible, tui_get_command_dimension): Update.
5994 * tui/tui-winsource.c (tui_update_source_window_as_is)
5995 (tui_clear_source_content, tui_erase_source_content)
5996 (tui_show_source_line, tui_source_window_base::refill)
5997 (tui_source_window_base::do_scroll_horizontal)
5998 (tui_source_window_base::set_is_exec_point_at)
5999 (tui_update_breakpoint_info, tui_set_exec_info_content)
6000 (tui_alloc_source_buffer, tui_line_is_displayed)
6001 (tui_addr_is_displayed): Update.
6002 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6003 (tui_check_and_display_highlight_if_needed)
6004 (tui_win_info::make_visible, tui_win_info::refresh)
6005 (tui_refresh_all): Update.
6006 * tui/tui-windata.c (tui_first_data_item_displayed)
6007 (tui_delete_data_content_windows, tui_erase_data_content)
6008 (tui_display_all_data, tui_data_window::refresh_all)
6009 (tui_check_data_values): Update.
6010 * tui/tui-win.c (window_name_completer, tui_update_gdb_sizes)
6011 (tui_set_win_focus_to, tui_win_info::forward_scroll)
6012 (tui_win_info::backward_scroll, tui_refresh_all_win)
6013 (tui_resize_all, tui_set_focus, tui_all_windows_info)
6014 (update_tab_width, tui_set_win_height, tui_adjust_win_heights)
6015 (tui_source_window_base::set_new_height)
6016 (tui_data_window::set_new_height)
6017 (make_invisible_and_set_new_height)
6018 (make_visible_with_new_height, new_height_ok)
6019 (parse_scrolling_args): Update.
6020 * tui/tui-stack.c (tui_show_frame_info): Update.
6021 * tui/tui-source.c (tui_set_source_content)
6022 (tui_set_source_content_nil, tui_source_is_displayed)
6023 (tui_source_window::do_scroll_vertical): Update.
6024 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6025 (tui_display_registers_from, tui_display_reg_element_at_line)
6026 (tui_check_register_values, tui_reg_command): Update.
6027 * tui/tui-layout.c (tui_default_win_height)
6028 (show_source_disasm_command, show_data, init_and_make_win)
6029 (show_source_or_disasm_and_command): Update.
6030 * tui/tui-io.c (update_cmdwin_start_line, tui_putc, tui_puts)
6031 (tui_redisplay_readline, tui_mld_flush)
6032 (tui_mld_erase_entire_line, tui_mld_getc, tui_cont_sig)
6034 * tui/tui-disasm.c (tui_set_disassem_content)
6035 (tui_disasm_window::do_scroll_vertical): Update.
6036 * tui/tui-data.h (struct tui_gen_win_info) <~tui_gen_win_info>:
6038 (struct tui_win_info): Derive from tui_gen_win_info.
6039 <~tui_win_info>: Mark as override.
6040 <generic>: Remove member.
6041 * tui/tui-data.c (tui_cmd_window::clear_detail, tui_next_win)
6042 (tui_prev_win, tui_partial_win_by_name, tui_win_info)
6043 (~tui_data_window, ~tui_win_info)
6044 (tui_free_all_source_wins_content): Update.
6045 * tui/tui-command.c (tui_refresh_cmd_win): Update.
6047 2019-06-25 Tom Tromey <tom@tromey.com>
6049 * tui/tui-layout.c (init_and_make_win): Use new.
6050 * tui/tui-data.h (struct tui_gen_win_info): Add constructor,
6051 destructor, initializers.
6052 (tui_alloc_generic_win_info): Don't declare.
6053 * tui/tui-data.c (_locator): Add argument to constructor.
6054 (source_win, disasm_win): New globals.
6055 (exec_info): Remove.
6056 (tui_source_exec_info_win_ptr, tui_disassem_exec_info_win_ptr):
6058 (tui_alloc_generic_win_info): Remove.
6059 (init_content_element): Use new.
6060 (tui_win_info::tui_win_info): Update.
6061 (free_content_elements) <case DATA_WIN>: Use delete.
6063 2019-06-25 Tom Tromey <tom@tromey.com>
6065 * tui/tui-wingeneral.c (tui_refresh_win): Update.
6066 * tui/tui-windata.c (tui_first_data_item_displayed)
6067 (tui_delete_data_content_windows): Update.
6068 * tui/tui-win.c (tui_data_window::set_new_height): Update.
6069 * tui/tui-regs.c (tui_show_registers, tui_show_register_group)
6070 (tui_display_registers_from, tui_check_register_values): Update.
6071 * tui/tui-data.h (union tui_which_element) <data_window>: Now a
6073 * tui/tui-data.c (init_content_element): Update. Allocate the new
6075 (tui_free_data_content): Update.
6076 (free_content_elements) <case DATA_WIN>: Free the window.
6078 2019-06-25 Tom Tromey <tom@tromey.com>
6080 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win):
6082 * tui/tui-layout.c (make_command_window)
6083 (show_source_disasm_command, show_data, init_and_make_win)
6084 (show_source_or_disasm_and_command): Update.
6085 * tui/tui-data.h (struct tui_win_info) <set_highlight>: New
6087 <can_highight, is_highlighted>: Now bool.
6088 (tui_set_win_highlight): Don't declare.
6089 * tui/tui-data.c (tui_set_win_highlight): Remove.
6091 2019-06-25 Tom Tromey <tom@tromey.com>
6093 * tui/tui-wingeneral.c (make_visible): Remove check of window
6096 2019-06-25 Tom Tromey <tom@tromey.com>
6098 * tui/tui-win.c (tui_win_info::max_height)
6099 (tui_cmd_window::max_height): New methods.
6100 (new_height_ok): Call max_height.
6101 * tui/tui-data.h (struct tui_win_info, struct tui_cmd_window)
6102 <max_height>: New method.
6104 2019-06-25 Tom Tromey <tom@tromey.com>
6106 * tui/tui-win.c (tui_source_window_base::set_new_height)
6107 (tui_data_window::set_new_height): New methods.
6108 (make_invisible_and_set_new_height): Call set_new_height method.
6109 * tui/tui-data.h (struct tui_win_info)
6110 (struct tui_source_window_base, struct tui_data_window)
6111 <set_new_height>: New method.
6113 2019-06-25 Tom Tromey <tom@tromey.com>
6115 * tui/tui.c (tui_rl_other_window): Call the refresh_all method.
6116 * tui/tui-windata.c (tui_data_window::refresh_all): Rename from
6117 tui_refresh_data_win.
6118 * tui/tui-win.c (tui_source_window_base::refresh_all): New
6120 (tui_refresh_all_win): Call the refresh_all method.
6121 (tui_set_focus): Likewise.
6122 * tui/tui-data.h (struct tui_win_info) <refresh_all>: New method.
6123 (struct tui_source_window_base, struct tui_data_window) <refresh>:
6126 2019-06-25 Tom Tromey <tom@tromey.com>
6128 * tui/tui-winsource.h (tui_refill_source_window)
6129 (tui_set_is_exec_point_at): Don't declare.
6130 * tui/tui-winsource.c (tui_update_source_windows_with_addr)
6131 (tui_source_window_base::refill): Rename from
6132 tui_refill_source_window.
6133 (tui_source_window_base::do_scroll_horizontal): Update.
6134 (tui_source_window_base::set_is_exec_point_at): Rename from
6135 tui_set_is_exec_point_at.
6136 (tui_update_all_breakpoint_info): Update.
6137 * tui/tui-stack.c (tui_show_frame_info): Update.
6138 * tui/tui-layout.c (show_data): Add cast.
6139 * tui/tui-hooks.c (tui_redisplay_source): Call refill method.
6140 * tui/tui-data.h (struct tui_source_window_base) <refill,
6141 set_is_exec_point_at>: New methods.
6142 (tui_source_windows, tui_add_to_source_windows): Update types.
6143 (tui_add_to_source_windows): Remove redundant declaration.
6144 * tui/tui-data.c (source_windows): Store tui_source_window_base.
6145 (tui_source_windows): Change return type.
6146 (tui_clear_source_windows_detail): Update.
6147 (tui_add_to_source_windows): Change type of parameter.
6148 (tui_free_all_source_wins_content): Update.
6150 2019-06-25 Tom Tromey <tom@tromey.com>
6152 * tui/tui-wingeneral.c (tui_win_info::refresh)
6153 (tui_source_window_base::refresh): New methods.
6154 (tui_refresh_all): Call the refresh method.
6155 * tui/tui-data.h (struct tui_win_info)
6156 (struct tui_source_window_base) <refresh>: New method.
6158 2019-06-25 Tom Tromey <tom@tromey.com>
6160 * tui/tui.h (tui_is_window_visible): Return bool.
6161 * tui/tui.c (tui_is_window_visible): Return bool.
6162 * tui/tui-wingeneral.c (tui_make_window, make_visible)
6163 (tui_make_visible, tui_make_invisible)
6164 (tui_win_info::make_visible)
6165 (tui_source_window_base::make_visible, make_all_visible)
6166 (tui_make_all_visible, tui_make_all_invisible): Update.
6167 * tui/tui-windata.c (tui_delete_data_content_windows): Update.
6168 * tui/tui-data.h (struct tui_gen_win_info) <is_visible>: Now
6170 (struct tui_win_info, struct tui_source_window_base)
6171 (struct tui_cmd_window) <make_visible>: Change parameter to bool.
6172 * tui/tui-data.c (tui_init_generic_part): Update.
6174 2019-06-25 Tom Tromey <tom@tromey.com>
6176 * tui/tui-wingeneral.c (tui_win_info::make_visible)
6177 (tui_source_window_base::make_visible): New methods.
6178 (make_all_visible): Make method call.
6179 * tui/tui-data.h (struct tui_win_info) <make_visible>: New method.
6180 (struct tui_source_window_base, struct tui_cmd_window): Override
6182 (tui_win_is_source_type): Don't declare.
6183 * tui/tui-data.c (tui_win_is_source_type): Remove.
6185 2019-06-25 Tom Tromey <tom@tromey.com>
6187 * tui/tui-layout.c (show_source_or_disasm_and_command): Remove
6190 2019-06-25 Tom Tromey <tom@tromey.com>
6192 * tui/tui-data.h (struct tui_data_window, struct tui_cmd_window):
6193 Inline constructor. Add initializers for members.
6194 * tui/tui-data.c (tui_data_window, tui_cmd_window): Remove
6195 constructors; now inline in class.
6197 2019-06-25 Tom Tromey <tom@tromey.com>
6199 * tui/tui-regs.c (tui_show_registers): Update.
6200 * tui/tui-data.h (struct tui_data_window) <display_regs>: Now
6202 * tui/tui-data.c (tui_data_window::clear_detail)
6203 (tui_data_window): Update.
6205 2019-06-25 Tom Tromey <tom@tromey.com>
6207 * tui/tui-windata.c (tui_display_all_data)
6208 (tui_display_data_from_line, tui_display_data_from)
6209 (tui_check_data_values, tui_data_window::do_scroll_vertical):
6211 * tui/tui-regs.c (tui_last_regs_line_no)
6212 (tui_line_from_reg_element_no, tui_first_reg_element_no_inline)
6213 (tui_show_registers, tui_show_register_group)
6214 (tui_display_registers_from, tui_display_reg_element_at_line)
6215 (tui_display_registers_from_line, tui_check_register_values)
6216 (tui_reg_next, tui_reg_prev): Update.
6217 * tui/tui-layout.c (tui_set_layout, show_data): Update.
6218 * tui/tui-data.h (struct tui_data_info): Remove. Move contents to
6220 (struct tui_win_info) <detail>: Remove. Add new fields from
6222 (TUI_DATA_WIN): Add cast.
6223 * tui/tui-data.c (tui_data_window::clear_detail, tui_data_window)
6224 (~tui_data_window): Simplify.
6226 2019-06-25 Tom Tromey <tom@tromey.com>
6228 * tui/tui-layout.c (show_source_disasm_command)
6229 (show_source_or_disasm_and_command): Update.
6230 * tui/tui-io.c (update_cmdwin_start_line)
6231 (tui_redisplay_readline): Update.
6232 * tui/tui-data.h (struct tui_command_info): Remove.
6233 (struct tui_win_info) <detail>: Remove command_info member.
6234 (struct tui_data_window) <start_line>: New member, from
6236 (TUI_CMD_WIN): Add casts.
6238 2019-06-25 Tom Tromey <tom@tromey.com>
6240 * tui/tui-winsource.c (tui_update_source_window)
6241 (tui_refill_source_window)
6242 (tui_source_window_base::do_scroll_horizontal)
6243 (tui_update_breakpoint_info, tui_set_exec_info_content)
6244 (tui_show_exec_info_content, tui_erase_exec_info_content)
6245 (tui_clear_exec_info_content): Update.
6246 * tui/tui-wingeneral.c (make_all_visible, tui_refresh_all):
6248 * tui/tui-win.c (make_invisible_and_set_new_height)
6249 (make_visible_with_new_height): Update.
6250 * tui/tui-source.c (tui_set_source_content)
6251 (tui_show_symtab_source): Update.
6252 * tui/tui-layout.c (extract_display_start_addr)
6253 (show_source_disasm_command, show_data)
6254 (make_source_or_disasm_window)
6255 (show_source_or_disasm_and_command): Update.
6256 * tui/tui-disasm.c (tui_set_disassem_content): Simplify.
6257 (tui_disasm_window::do_scroll_vertical): Remove shadowing
6259 * tui/tui-data.h (struct tui_source_info): Remove. Move contents
6260 to tui_source_window_base.
6261 (struct tui_win_info) <detail>: Remove source_info member.
6262 (struct tui_source_window_base) <has_locator>: Inline.
6263 Move contents from tui_source_info; rename has_locator member to
6265 (TUI_SRC_WIN, TUI_DISASM_WIN): Add casts.
6266 * tui/tui-data.c (tui_source_window_base::has_locator): Move to
6268 (tui_source_window_base::clear_detail, ~tui_source_window_base):
6270 (tui_free_all_source_wins_content): Cast to
6271 tui_source_window_base.
6273 2019-06-25 Tom Tromey <tom@tromey.com>
6275 * tui/tui-win.c (make_invisible_and_set_new_height)
6276 (make_visible_with_new_height): Call has_locator method.
6277 * tui/tui-layout.c (show_source_disasm_command, show_data)
6278 (show_source_or_disasm_and_command): Update for bool change.
6279 * tui/tui-data.h (struct tui_source_info) <has_locator>: Now bool.
6280 (tui_win_info) <has_locator>: New method.
6281 (struct tui_source_window_base) <has_locator>: New method.
6282 (tui_win_has_locator): Don't declare.
6283 * tui/tui-data.c (tui_source_window_base::has_locator): Rename
6284 from tui_win_has_locator.
6285 (tui_source_window_base): Use false, not FALSE.
6287 2019-06-25 Tom Tromey <tom@tromey.com>
6289 * tui/tui-data.h (tui_clear_win_detail): Don't declare.
6290 * tui/tui-data.c (tui_clear_source_windows_detail): Call the
6291 clear_detail method directly.
6292 (tui_clear_win_detail): Remove.
6294 2019-06-25 Tom Tromey <tom@tromey.com>
6296 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Use
6297 "this", not TUI_DISASM_WIN.
6299 2019-06-25 Tom Tromey <tom@tromey.com>
6301 * tui/tui-winsource.h (tui_horizontal_source_scroll): Don't
6303 * tui/tui-winsource.c
6304 (tui_source_window_base::do_scroll_horizontal): Rename from
6305 tui_horizontal_source_scroll.
6306 * tui/tui-windata.h (tui_vertical_data_scroll): Don't declare.
6307 * tui/tui-windata.c (tui_data_window::do_scroll_vertical): Rename
6308 from tui_vertical_data_scroll.
6309 * tui/tui-win.h (tui_scroll): Don't declare.
6310 * tui/tui-win.c (tui_win_info::forward_scroll)
6311 (tui_win_info::backward_scroll, tui_win_info::left_scroll)
6312 (tui_win_info::right_scroll): Rename and update.
6313 (tui_scroll_forward_command, tui_scroll_backward_command)
6314 (tui_scroll_left_command, tui_scroll_right_command): Update.
6315 (tui_scroll): Remove.
6316 * tui/tui-source.h: Don't declare tui_vertical_source_scroll.
6317 * tui/tui-source.c (tui_source_window::do_scroll_vertical): Rename
6318 from tui_vertical_source_scroll.
6319 * tui/tui-disasm.h (tui_vertical_disassem_scroll): Don't declare.
6320 * tui/tui-disasm.c (tui_disasm_window::do_scroll_vertical): Rename
6321 from tui_vertical_disassem_scroll.
6322 * tui/tui-data.h (struct tui_win_info) <do_scroll_vertical,
6323 do_scroll_horizontal>: New methods.
6324 <forward_scroll, backward_scroll, left_scroll, right_scroll>:
6326 (struct tui_source_window_base): Add do_scroll_horizontal.
6327 (struct tui_source_window, struct tui_disasm_window): Add
6329 (struct tui_data_window, struct tui_cmd_window): Add
6330 do_scroll_horizontal and do_scroll_vertical.
6331 * tui/tui-command.c (tui_dispatch_ctrl_char): Use method calls.
6333 2019-06-25 Tom Tromey <tom@tromey.com>
6335 * tui/tui-data.h (struct tui_source_window_base): New struct.
6336 (struct tui_source_window): Derive from tui_source_window_base.
6337 (struct tui_disasm_window): New struct.
6338 * tui/tui-data.c (tui_source_window_base::clear_detail): Rename
6339 from tui_source_window::clear_detail.
6340 (tui_source_window_base): Rename from tui_source_window.
6341 (~tui_source_window_base): Rename from ~tui_source_window.
6342 (tui_alloc_win_info): Create a tui_disasm_window.
6344 2019-06-25 Tom Tromey <tom@tromey.com>
6346 * tui/tui-data.h (struct tui_source_window)
6347 (struct tui_data_window): Declare destructors.
6348 * tui/tui-data.c (~tui_source_window, ~tui_data_window): New
6350 (tui_win_info): Simplify.
6352 2019-06-25 Tom Tromey <tom@tromey.com>
6354 * tui/tui-winsource.c (tui_display_main)
6355 (tui_update_source_windows_with_addr)
6356 (tui_update_all_breakpoint_info): Update.
6357 * tui/tui-win.c (tui_resize_all, tui_adjust_win_heights)
6358 (new_height_ok, parse_scrolling_args): Update.
6359 * tui/tui-stack.c (tui_show_frame_info): Update.
6360 * tui/tui-data.h (struct tui_list): Remove.
6361 (tui_source_windows): Return a reference to a std::vector.
6362 * tui/tui-data.c (source_windows): Now a std::vector.
6363 (tui_source_windows): Change return type.
6364 (tui_clear_source_windows): Rewrite.
6365 (tui_clear_source_windows_detail, tui_add_to_source_windows)
6366 (tui_free_all_source_wins_content): Rewrite.
6368 2019-06-25 Tom Tromey <tom@tromey.com>
6370 * tui/tui-data.h (struct tui_win_info, struct tui_source_window)
6371 (struct tui_data_window, struct tui_cmd_window): Declare
6372 clear_detail method.
6373 * tui/tui-data.c (tui_source_window::clear_detail)
6374 (tui_cmd_window::clear_detail, tui_data_window::clear_detail): New
6376 (tui_clear_win_detail): Simplify.
6378 2019-06-25 Tom Tromey <tom@tromey.com>
6380 * tui/tui-layout.c (make_source_window, make_disasm_window)
6381 (make_source_or_disasm_window): Remove win_info_ptr parameter.
6382 Return the new window.
6383 (show_source_disasm_command, show_data)
6384 (show_source_or_disasm_and_command): Update.
6386 2019-06-25 Tom Tromey <tom@tromey.com>
6388 * tui/tui-layout.c (make_command_window): Remove win_info_ptr
6389 parameter. Return the new window.
6390 (show_source_disasm_command): Update and remove NULL check.
6391 (show_source_or_disasm_and_command): Update.
6393 2019-06-25 Tom Tromey <tom@tromey.com>
6395 * tui/tui-layout.c (init_and_make_win): Remove NULL check.
6397 2019-06-25 Tom Tromey <tom@tromey.com>
6399 * tui/tui-data.h (struct tui_win_info): Make constructor
6400 protected. Make destructor virtual. Add initializers.
6401 (tui_source_window, tui_data_window, tui_cmd_window): New
6403 * tui/tui-data.c (tui_win_info): Rename from init_win_info. Now a
6404 constructor. Add "type" parameter.
6405 (tui_source_window, tui_data_window, tui_cmd_window): New
6407 (tui_alloc_win_info): Instantiate the appropriate subclass.
6409 2019-06-25 Tom Tromey <tom@tromey.com>
6411 * tui/tui-win.c (tui_resize_all): Use delete.
6412 * tui/tui-data.h (struct tui_win_info) <~tui_win_info>: Declare
6414 (tui_free_window): Don't declare.
6415 * tui/tui-data.c (~tui_win_info): Rename from tui_free_window.
6418 2019-06-25 Tom Tromey <tom@tromey.com>
6420 * tui/tui-data.h (struct tui_win_info): Add constructor.
6421 * tui/tui-data.c (tui_alloc_win_info): Use new.
6422 (tui_free_window): Use delete.
6424 2019-06-22 Tom Tromey <tom@tromey.com>
6426 * tui/tui-windata.h (tui_first_data_element_no_in_line): Don't
6428 * tui/tui-windata.c (tui_first_data_element_no_in_line): Remove.
6430 2019-06-22 Tom Tromey <tom@tromey.com>
6432 * tui/tui-data.h (tui_del_window, tui_del_data_windows): Don't
6434 * tui/tui-data.c (tui_del_window, tui_del_data_windows): Remove.
6436 2019-06-22 Tom de Vries <tdevries@suse.de>
6438 * dwarf2read.c (create_addrmap_from_aranges)
6439 (read_debug_names_from_section): Print ptrdiff_t using '%s' and plongest
6442 2019-06-21 Simon Marchi <simon.marchi@efficios.com>
6444 * dwarf2read.h (dwarf2_section_info_def): Remove.
6445 (DEF_VEC_O (dwarf2_section_info_def)): Remove.
6446 * dwarf2read.c (struct dwo_sections) <types>: Change type to
6447 std::vector<dwarf2_section_info>.
6448 (struct dwo_file) <~dwo_file>: Remove.
6449 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't manually free
6451 (dwarf2_per_objfile::locate_sections): Adjust to std::vector.
6452 (dwarf2_read_debug_names): Likewise.
6453 (create_debug_types_hash_table): Change parameter type to
6454 array_view, adjust code accordingly.
6455 (dwarf2_locate_dwo_sections): Adjust to std::vector.
6456 (partial_die_info::fixup): Likewise.
6457 (determine_prefix): Likewise.
6458 * dwarf-index-write.c (write_psymtabs_to_index): Adjust.
6460 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6462 * dwarf2read.c (struct dwo_file) <dbfd>: Change type to
6464 <~dwo_file>: Remove call to gdb_bfd_unref.
6465 (open_and_init_dwo_file): Move gdb_bfd_ref_ptr into dbfd field. Call
6466 gdb_bfd_ref_ptr::get.
6468 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6470 * dwarf2read.h (struct dwarf2_per_objfile) <dwo_files>: Change
6472 * dwarf2read.c (struct dwo_file): Initialize fields.
6474 (free_dwo_file): Remove, move content to ~dwo_file.
6475 (struct dwo_file_deleter): Remove.
6476 (dwo_file_up>: Remove custom deleter.
6477 (free_dwo_files): Remove.
6478 (dwarf2_per_objfile::~dwarf2_per_objfile): Don't explicitly free
6480 (process_skeletonless_type_units): Call unique_ptr::get.
6481 (allocate_dwo_file_hash_table): Add deleter to created hash
6482 table. Change return type to htab_up.
6483 (lookup_dwo_file_slot): Don't memset dwo_file, call
6485 (create_dwo_unit_in_dwp_v1): Allocate dwo_file with new.
6486 (create_dwo_unit_in_dwp_v2): Likewise.
6487 (open_and_init_dwo_file): Likewise.
6488 (free_dwo_file_from_slot): Remove.
6490 2019-06-21 Simon Marchi <simon.marchi@polymtl.ca>
6492 * dwarf2read.h (struct dwarf2_section_info) <readin,
6493 is_virtual>: Change type to bool.
6494 * dwarf2read.c (dwarf2_read_section, create_dwp_v2_section): Use
6497 2019-06-19 Tom Tromey <tom@tromey.com>
6499 * tui/tui-data.h (tui_init_content_element): Don't declare.
6501 2019-06-19 Tom Tromey <tom@tromey.com>
6503 * tui/tui-data.h (tui_init_win_info): Don't declare.
6505 2019-06-19 Tom de Vries <tdevries@suse.de>
6507 * dwarf2read.h (abstract_to_concrete): Change type to
6508 std::unordered_map<sect_offset, std::vector<sect_offset>,
6509 gdb::hash_enum<sect_offset>>.
6511 2019-06-19 Tom Tromey <tromey@adacore.com>
6513 * ada-lang.c (ada_evaluate_subexp) <case OP_ATR_FIRST>: Handle
6514 EVAL_AVOID_SIDE_EFFECTS specially.
6516 2019-06-19 Tom Tromey <tromey@adacore.com>
6518 * source-cache.c (highlighter): New global.
6519 (source_cache::get_source_lines): Create a highlighter on demand.
6521 2019-06-18 Andrew Burgess <andrew.burgess@embecosm.com>
6523 * defs.h (deprecated_interactive_hook): Delete declaration.
6524 * interps.c (clear_interpreter_hooks): Remove use of
6525 deprecated_interactive_hook.
6526 * top.c (deprecated_interactive_hook): Delete definition.
6527 * utils.c (maybe_quit): Remove use of deprecated_interactive_hook.
6529 2019-06-18 Tom de Vries <tdevries@suse.de>
6532 * dwarf2read.h (abstract_to_concrete): Change type from
6533 std::unordered_map<die_info_ptr, std::vector<die_info_ptr>> to
6534 std::unordered_map<sect_offset, std::vector<sect_offset>>.
6535 * dwarf2read.c (read_variable): Update.
6536 (dwarf2_fetch_die_loc_sect_off): Update.
6538 2019-06-17 Tom de Vries <tdevries@suse.de>
6541 * common/pathstuff.c (child_path): Make sure parent_len > 0 before
6542 accessing parent[parent_len - 1].
6544 2019-06-17 Paul Pluzhnikov <ppluzhnikov@google.com>
6547 * gdb/dtrace-probe.c (dtrace_static_probe_ops::get_probe): Don't
6548 call dtrace_process_dof with NULL dof.
6550 2019-06-16 Tom de Vries <tdevries@suse.de>
6553 * contrib/gdb-add-index.sh: Update to handle dwz-m-ed executable.
6555 2019-06-16 Tom Tromey <tom@tromey.com>
6557 * tui/tui-wingeneral.c (tui_unhighlight_win, tui_highlight_win)
6558 (make_all_visible): Use address of member.
6560 2019-06-16 Tom Tromey <tom@tromey.com>
6562 * tui/tui-data.c (tui_clear_win_detail, init_win_info)
6563 (tui_free_window, free_content, free_content_elements): Remove
6565 * tui/tui-windata.c (tui_display_all_data): Remove unnecessary
6567 * tui/tui-regs.c (tui_show_register_group)
6568 (tui_display_registers_from, tui_display_reg_element_at_line):
6569 Remove unnecessary cast.
6571 2019-06-16 Andrew Burgess <andrew.burgess@embecosm.com>
6573 * linux-nat.c (normal_mask): Delete.
6574 (_initialize_linux_nat): Don't initialise normal_mask.
6576 2019-06-16 Simon Marchi <simon.marchi@polymtl.ca>
6579 * dwarf-index-write.h (write_psymtabs_to_index): Add
6580 dwz_basename parameter.
6581 * dwarf-index-write.c (write_gdbindex): Move file writing to
6582 write_gdbindex_1. Change return type void.
6583 (assert_file_size): Move up, remove filename parameter.
6584 (write_gdbindex_1): New function.
6585 (write_debug_names): Change return type to void, call
6587 (struct index_wip_file): New struct.
6588 (write_psymtabs_to_index): Add dwz_basename parameter. Move
6589 file logic to index_wip_file. Write index for dwz file if
6591 (save_gdb_index_command): Pass basename of dwz file, if present.
6592 * dwarf-index-cache.c (index_cache::store): Obtain and pass
6593 build-id of dwz file, if present.
6594 * dwarf2read.c (struct dwz_file): Move to dwarf2read.h.
6595 (dwarf2_get_dwz_file): Likewise.
6596 * dwarf2read.h (struct dwz_file): Move from dwarf2read.c.
6597 (dwarf2_get_dwz_file): Likewise.
6599 2019-06-16 Tom Tromey <tom@tromey.com>
6601 * coffread.c (process_coff_symbol): Use xstrdup.
6602 * value.c (create_internalvar): Use xstrdup.
6604 2019-06-16 Tom Tromey <tom@tromey.com>
6606 * valops.c (value_cast, value_slice): Remove unnecessary cast.
6607 * breakpoint.c (stopin_command, stopat_command)
6608 (until_break_command, decode_location_default): Remove unnecessary
6610 * utils.c (subset_compare): Remove unnecessary cast.
6611 * ada-lang.c (ada_update_initial_language): Remove unnecessary
6613 * linespec.c (decode_line_with_last_displayed): Remove unnecessary
6615 * infcmd.c (path_command): Remove unnecessary cast.
6616 * coffread.c (decode_type): Remove unnecessary cast.
6617 * xcoffread.c (read_xcoff_symtab): Remove unnecessary cast.
6618 * mipsread.c (mipscoff_symfile_read): Remove unnecessary cast.
6619 * tui/tui-stack.c (tui_show_locator_content)
6620 (tui_show_frame_info): Remove unnecessary cast.
6621 * tui/tui-win.c (tui_scroll_forward_command)
6622 (tui_scroll_backward_command, tui_set_focus, tui_set_win_height)
6623 (parse_scrolling_args): Remove unnecessary cast.
6624 * tui/tui-data.c (init_win_info, tui_del_window)
6625 (tui_free_window, tui_del_data_windows, tui_free_data_content)
6626 (free_content_elements): Remove unnecessary cast.
6627 * tui/tui-windata.c (tui_first_data_item_displayed): Remove
6629 * tui/tui-source.c (tui_set_source_content)
6630 (tui_vertical_source_scroll): Remove unnecessary cast.
6631 * tui/tui-layout.c (tui_default_win_height): Remove unnecessary
6633 * tui/tui-io.c (tui_initialize_io): Remove unnecessary cast.
6634 * tui/tui-regs.c (tui_display_registers_from)
6635 (tui_display_register): Remove unnecessary cast.
6636 * tui/tui-wingeneral.c (tui_refresh_win, tui_delete_win)
6637 (tui_unhighlight_win, tui_highlight_win, tui_make_window)
6638 (make_visible): Remove unnecessary cast.
6639 * tui/tui-winsource.c (tui_erase_source_content)
6640 (tui_update_breakpoint_info, tui_set_exec_info_content): Remove
6642 * ax-gdb.c (agent_command_1): Remove unnecessary cast.
6643 * cli/cli-setshow.c (cmd_show_list): Remove unnecessary cast.
6644 * stabsread.c (read_type, read_array_type, read_range_type):
6645 Remove unnecessary cast.
6646 * mdebugread.c (mdebug_build_psymtabs): Remove unnecessary cast.
6647 (parse_symbol, parse_type, upgrade_type, parse_external)
6648 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref): Remove
6650 * gdb_bfd.c (gdb_bfd_map_section): Remove unnecessary cast.
6652 2019-06-16 Tom Tromey <tom@tromey.com>
6654 * tui/tui-data.c (tui_alloc_generic_win_info)
6655 (tui_alloc_win_info, tui_add_content_elements): Remove NULL
6658 2019-06-16 Bernhard Heckel <bernhard.heckel@intel.com>
6659 Andrew Burgess <andrew.burgess@embecosm.com>
6661 * f-typeprint.c (f_print_type): Don't return early for not
6662 associated or not allocated types.
6663 (f_type_print_varspec_suffix): Add print_rank parameter and print
6664 ranks of array types in case they dangling.
6665 (f_type_print_base): Add print_rank parameter.
6667 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6669 * NEWS: Mention new MI commands.
6670 * break-catch-throw.c (enum exception_event_kind): Move to
6672 (print_mention_exception_catchpoint): Output text as a single
6674 (catch_exception_command_1): Rename to...
6675 (catch_exception_event): ...this, make non-static, update header
6676 command, and change some parameter types.
6677 (catch_catch_command): Update for changes to
6678 catch_exception_command_1.
6679 (catch_throw_command): Likewise.
6680 (catch_rethrow_command): Likewise.
6681 * breakpoint.c (enum exception_event_kind): Delete.
6682 * breakpoint.h (enum exception_event_kind): Moved here from
6683 break-catch-throw.c.
6684 (catch_exception_event): Declare.
6685 * mi/mi-cmd-catch.c (mi_cmd_catch_exception_event): New function.
6686 (mi_cmd_catch_throw): New function.
6687 (mi_cmd_catch_rethrow): New function.
6688 (mi_cmd_catch_catch): New function.
6689 * mi/mi-cmds.c (mi_cmds): Add 'catch-throw', 'catch-rethrow', and
6690 'catch-catch' entries.
6691 * mi/mi-cmds.h (mi_cmd_catch_throw): Declare.
6692 (mi_cmd_catch_rethrow): Declare.
6693 (mi_cmd_catch_catch): Declare.
6695 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6697 * annotate.c (annotate_source_line): Change return type to void,
6698 update implementation to match.
6699 * annotate.h (annotate_source_line): Change return type to void,
6700 update header comment.
6701 * stack.c (print_frame_info): Don't change what frame information
6702 is printed based on whether annotations are on or not.
6704 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6706 * annotate.c: Add 'source.h' and 'objfiles.h' includes.
6707 (annotate_source): Make static.
6708 (annotate_source_line): Moved from source.c and renamed from
6709 identify_source_line. Update the return type.
6710 * annotate.h (annotate_source): Delete declaration.
6711 (annotate_source_line): Declaration moved from source.h, and
6712 renamed from identify_source_line. Return type updated.
6713 * source.c (identify_source_line): Moved to annotate.c and renamed
6714 to annotate_source_line.
6715 (info_line_command): Remove check of annotation_level.
6716 * source.h (identify_source_line): Move declaration to annotate.h
6717 and rename to annotate_source_line.
6718 * stack.c: Add 'annotate.h' include.
6719 (print_frame_info): Remove check of annotation_level before
6720 calling annotate_source_line.
6722 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6724 * source-cache.c (source_cache::get_plain_source_lines): Use
6725 open_source_file_with_line_charpos instead of just
6726 open_source_file, remove call to find_source_lines.
6727 (source_cache::get_source_lines): Likewise.
6728 * source.c (find_source_lines): Make static.
6729 (get_filename_and_charpos): Renamed into...
6730 (open_source_file_with_line_charpos): ..this along with changes to
6731 return a scoped_fd, and some other minor clean ups.
6732 (identify_source_line): Use open_source_file_with_line_charpos.
6733 (search_command_helper): Use open_source_file_with_line_charpos
6734 instead of just open_source_file, remove call to
6736 * source.h (open_source_file_with_line_charpos): Declare new
6738 (find_source_lines): Delete declaration.
6740 2019-06-15 Andrew Burgess <andrew.burgess@embecosm.com>
6742 * source.c (get_filename_and_charpos): Remove fullname
6744 (identify_source_line): Update call to get_filename_and_charpos.
6746 2019-06-14 Tom Tromey <tromey@adacore.com>
6749 * ui-style.h (skip_ansi_escape): Update comment.
6750 * ui-file.h (class no_terminal_escape_file): New class.
6751 * ui-file.c (no_terminal_escape_file::write)
6752 (no_terminal_escape_file::puts): New methods.
6753 * cli/cli-logging.c (handle_redirections): Use
6754 no_terminal_escape_file.
6756 2019-06-14 Tom Tromey <tromey@adacore.com>
6758 * NEWS: Move convenience variable news above Python news.
6760 2019-06-14 Tom Tromey <tom@tromey.com>
6762 * gnulib: Move directory to top-level.
6763 * configure.ac: Don't configure gnulib.
6764 * configure: Rebuild.
6765 * common/common-defs.h: Use new path to gnulib.
6766 * Makefile.in (GNULIB_BUILDDIR): Now ../gnulib.
6768 (INCGNU): Look in new gnulib location.
6769 (HFILES_NO_SRCDIR): Remove gnulib files.
6770 (SUBDIR, REQUIRED_SUBDIRS): Remove gnulib.
6771 (generated_files): Remove GNULIB_H.
6772 ($(LIBGNU), all-lib): Remove targets.
6773 (distclean): Don't mention GNULIB_BUILDDIR.
6774 ($(GNULIB_BUILDDIR)/Makefile): Remove target.
6776 2019-06-14 Tom Tromey <tromey@adacore.com>
6778 * symfile.c (add_symbol_file_command): Remove obsolete comment.
6779 Warn if symbol file does not provide any symbols.
6781 2019-06-14 Tom Tromey <tromey@adacore.com>
6783 * source.c (find_and_open_source): Respect basenames_may_differ.
6785 2019-06-14 Andrew Burgess <andrew.burgess@embecosm.com>
6787 * annotate.c (annotate_breakpoints_invalid): Make use of
6788 scoped_restore_terminal_state.
6789 (annotate_frames_invalid): Likewise.
6791 2019-06-14 Tom Tromey <tromey@adacore.com>
6793 * ada-lang.c (ada_evaluate_subexp) <case BINOP_ASSIGN>: Always
6794 allow assignment to an internalvar.
6796 2019-06-14 Tom Tromey <tromey@adacore.com>
6798 * ada-lex.l: Allow "_" in attribute names.
6800 2019-06-14 Tom Tromey <tromey@adacore.com>
6803 * regcache.c (registers_changed): Don't call alloca.
6804 * top.c (execute_command): Don't call alloca.
6806 2019-06-13 Pedro Alves <palves@redhat.com>
6808 * cli/cli-setshow.c (cli/cli-setshow.c): New parameter
6809 'expression'. When parsing an expression, error out if there's
6810 junk after "unlimited".
6811 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
6812 (do_set_command): Adjust calls to is_unlimited_literal.
6814 2019-06-13 Pedro Alves <palves@redhat.com>
6816 * compile/compile.c (make_compile_options_def_group): Add braces
6817 around array_view initializer.
6818 * thread.c (make_thread_apply_all_options_def_group)
6819 (make_thread_apply_all_options_def_group): Likewise.
6821 2019-06-13 Pedro Alves <palves@redhat.com>
6823 * NEWS (New commands): Mention "maint test-options
6824 require-delimiter", "maint test-options unknown-is-error", "maint
6825 test-options unknown-is-operand" and "maint show
6826 test-options-completion-result".
6827 (New command options, command completion): New section.
6828 (Completion improvements): New section.
6829 Mention that you can abbreviate "unlimited".
6831 2019-06-13 Pedro Alves <palves@redhat.com>
6833 * cli/cli-utils.c (parse_flags, parse_flags_qcs): Delete.
6834 * cli/cli-utils.h (parse_flags, parse_flags_qcs): Delete.
6835 * unittests/cli-utils-selftests.c (test_parse_flags)
6836 (test_parse_flags_qcs): Delete.
6837 (test_cli_utils): Don't call deleted functions.
6839 2019-06-13 Pedro Alves <palves@redhat.com>
6841 * thread.c: Include "cli/cli-option.h".
6842 (tp_array_compar_ascending): Global.
6843 (tp_array_compar): Delete function.
6844 (tp_array_compar_ascending, tp_array_compar_descending): New
6846 (ascending_option_def, qcs_flag_option_def)
6847 (thr_qcs_flags_option_defs)
6848 (make_thread_apply_all_options_def_group)
6849 (make_thread_apply_options_def_group): New.
6850 (thread_apply_all_command): Use gdb::option::process_options.
6851 (thread_apply_command_completer)
6852 (thread_apply_all_command_completer): New.
6853 (thread_apply_command): Use gdb::option::process_options.
6854 (_initialize_thread): Delete THREAD_APPLY_FLAGS_HELP, replace it
6855 with a new THREAD_APPLY_OPTION_HELP. Use gdb::option::build_help
6856 to generate help text of "thread apply". Adjust "taas"'s help.
6857 * tid-parse.c (tid_range_parser::in_thread_range): New method.
6858 * tid-parse.h (tid_range_parser::in_thread_range): New method.
6860 2019-06-13 Pedro Alves <palves@redhat.com>
6862 * thread.c (thread_apply_command): Check for invalid TID with
6863 isdigit instead of !isalpha.
6865 2019-06-13 Pedro Alves <palves@redhat.com>
6867 * cli/cli-utils.c (parse_flags_qcs): Use validate_flags_qcs.
6868 (validate_flags_qcs): New.
6869 * cli/cli-utils.h (struct qcs_flags): Change field types to int.
6870 (validate_flags_qcs): Declare.
6871 * stack.c (qcs_flag_option_def, fr_qcs_flags_option_defs): New.
6872 (make_frame_apply_options_def_group): New.
6873 (frame_apply_command_count): Process options with
6874 gdb::option::process_options.
6875 (frame_apply_completer): New.
6876 (frame_apply_level_completer, frame_apply_all_completer)
6877 (frame_apply_completer): New.
6878 (_initialize_stack): Update help of "frame apply", "frame apply
6879 level", "frame apply all" and "faas" to mention supported options
6880 and install command completers.
6881 * stack.h (frame_apply_all_completer): Declare.
6882 * thread.c: Include "stack.h".
6883 (tfaas_command): Add "--".
6884 (_initialize_thread): Update help "tfaas" to mention supported
6885 options and install command completer.
6887 2019-06-13 Pedro Alves <palves@redhat.com>
6889 * completer.c (complete_nested_command_line): New.
6890 (gdb_completion_word_break_characters_throw): Add assertion.
6891 * completer.h (complete_nested_command_line): Declare.
6893 2019-06-13 Pedro Alves <palves@redhat.com>
6895 * stack.c (parse_backtrace_qualifiers): New.
6896 (backtrace_command): Use it.
6897 (backtrace_command_completer): Complete on qualifiers.
6899 2019-06-13 Pedro Alves <palves@redhat.com>
6901 * frame.c: Include "cli/cli-option.h.
6902 (user_set_backtrace_options): New.
6903 (backtrace_past_main, backtrace_past_entry, backtrace_limit):
6905 (get_prev_frame): Adjust.
6906 (boolean_option_def, uinteger_option_def)
6907 (set_backtrace_option_defs): New.
6908 (_initialize_frame): Adjust and use
6909 gdb::option::add_setshow_cmds_for_options to install "set
6910 backtrace past-main" and "set backtrace past-entry".
6911 * frame.h: Include "cli/cli-option.h".
6912 (struct frame_print_options): Forward declare.
6913 (print_frame_arguments_all, print_frame_arguments_scalars)
6914 (print_frame_arguments_none): Declare.
6915 (print_entry_values): Delete declaration.
6916 (struct frame_print_options, user_frame_print_options): New.
6917 (struct set_backtrace_options): New.
6918 (set_backtrace_option_defs, user_set_backtrace_options): Declare.
6919 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
6920 (mi_cmd_stack_list_locals, mi_cmd_stack_list_args)
6921 (mi_cmd_stack_list_variables): Pass down USER_FRAME_PRINT_OPTIONS.
6922 (list_args_or_locals): Add frame_print_options parameter.
6923 (mi_cmd_stack_info_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6924 * python/py-framefilter.c (enumerate_args): Pass down
6925 USER_FRAME_PRINT_OPTIONS.
6926 * stack.c: Include "cli/cli-option.h".
6927 (print_frame_arguments_all, print_frame_arguments_scalars)
6928 (print_frame_arguments_none): Declare.
6929 (print_raw_frame_arguments, print_entry_values): Delete.
6930 (user_frame_print_options): New.
6931 (boolean_option_def, enum_option_def, frame_print_option_defs):
6933 (struct backtrace_cmd_options): New.
6934 (bt_flag_option_def): New.
6935 (backtrace_command_option_defs): New.
6936 (print_stack_frame): Pass down USER_FRAME_PRINT_OPTIONS.
6937 (print_frame_arg, read_frame_arg, print_frame_args)
6938 (print_frame_info, print_frame): Add frame_print_options parameter
6940 (info_frame_command_core): Pass down USER_FRAME_PRINT_OPTIONS.
6941 (backtrace_command_1): Add frame_print_options and
6942 backtrace_cmd_options parameters and use them.
6943 (make_backtrace_options_def_group): New.
6944 (backtrace_command): Process command options with
6945 gdb::option::process_options.
6946 (backtrace_command_completer): New.
6947 (_initialize_stack): Extend "backtrace"'s help to mention
6948 supported options. Install completer for "backtrace".
6949 Install some settings commands with add_setshow_cmds_for_options.
6951 2019-06-13 Pedro Alves <palves@redhat.com>
6953 * NEWS (Changed commands): Mention set/show print raw-frame-arguments,
6954 and that "set/show print raw frame-arguments" are now deprecated.
6956 * cli/cli-decode.c (add_setshow_boolean_cmd): Now returns the
6958 * command.h (add_setshow_boolean_cmd): Return cmd_list_element *.
6959 * stack.c (_initialize_stack): Install "set/show print
6960 raw-frame-arguments", and deprecate "set/show print raw
6962 * valprint.c (_initialize_valprint): Deprecate "set/show print
6965 2019-06-13 Pedro Alves <palves@redhat.com>
6967 * compile/compile.c (struct compile_options): New.
6968 (compile_flag_option_def, compile_command_option_defs)
6969 (make_compile_options_def_group): New.
6970 (compile_file_command): Handle options with
6971 gdb::option::process_options.
6972 (compile_file_command_completer): New function.
6973 (compile_code_command): Handle options with
6974 gdb::option::process_options.
6975 (compile_code_command_completer): New function.
6976 (_initialize_compiler): Install completers for "compile code" and
6977 "compile file". Mention available options in "compile code" and
6978 "compile code"'s help.
6979 * completer.c (advance_to_completion_word): New, factored out from
6981 (advance_to_expression_complete_word_point): ... this.
6982 (advance_to_filename_complete_word_point): New.
6983 * completer.h (advance_to_filename_complete_word_point): New
6986 2019-06-13 Pedro Alves <palves@redhat.com>
6988 * compile/compile.c: Include "cli/cli-option.h".
6989 (compile_print_value): Scope data pointer is now a
6990 value_print_options pointer; adjust.
6991 (compile_print_command): Process options. Scope data pointer is
6992 now a value_print_options pointer; adjust.
6993 (_initialize_compile): Update "compile print"'s help to include
6994 supported options. Install a completer for "compile print".
6995 * cp-valprint.c (show_vtblprint, show_objectprint)
6996 (show_static_field_print): Delete.
6997 (_initialize_cp_valprint): Don't install "set print
6998 static-members", "set print vtbl", "set print object" here.
6999 * printcmd.c: Include "cli/cli-option.h" and
7000 "common/gdb_optional.h".
7001 (print_command_parse_format): Rework to fill in a
7002 value_print_options instead of a format_data.
7003 (print_value): Change parameter type from format_data pointer to
7004 value_print_options reference. Adjust.
7005 (print_command_1): Process options. Adjust to pass down a
7006 value_print_options.
7007 (print_command_completer): New.
7008 (_initialize_printcmd): Install print_command_completer as
7009 handle_brkchars completer for the "print" command. Update
7010 "print"'s help to include supported options.
7011 * valprint.c: Include "cli/cli-option.h".
7012 (show_vtblprint, show_objectprint, show_static_field_print): Moved
7013 here from cp-valprint.c.
7014 (boolean_option_def, uinteger_option_def)
7015 (value_print_option_defs, make_value_print_options_def_group):
7016 New. Use gdb::option::add_setshow_cmds_for_options to install
7017 "set print elements", "set print null-stop", "set print repeats",
7018 "set print pretty", "set print union", "set print array", "set
7019 print address", "set print symbol", "set print array-indexes".
7020 * valprint.h: Include <string> and "cli/cli-option.h".
7021 (make_value_print_options_def_group): Declare.
7022 (print_value): Change parameter type from format_data pointer to
7023 value_print_options reference.
7024 (print_command_completer): Declare.
7026 2019-06-13 Pedro Alves <palves@redhat.com>
7028 * Makefile.in (SUBDIR_CLI_SRCS): Add cli/cli-option.c.
7029 (COMMON_SFILES): Add maint-test-settings.c.
7030 * cli/cli-decode.c (boolean_enums): New global, factored out from
7032 (add_setshow_boolean_cmd): ... here.
7033 * cli/cli-decode.h (boolean_enums): Declare.
7034 * cli/cli-option.c: New file.
7035 * cli/cli-option.h: New file.
7036 * cli/cli-setshow.c (parse_cli_boolean_value(const char **)): New,
7037 factored out from ...
7038 (parse_cli_boolean_value(const char *)): ... this.
7039 (is_unlimited_literal): Change parameter type to pointer to
7040 pointer. Adjust and advance ARG pointer.
7041 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7042 (parse_cli_var_enum): New, factored out from ...
7043 (do_set_command): ... this. Adjust.
7044 * cli/cli-setshow.h (parse_cli_boolean_value)
7045 (parse_cli_var_uinteger, parse_cli_var_zuinteger_unlimited)
7046 (parse_cli_var_enum): Declare.
7047 * cli/cli-utils.c: Include "cli/cli-option.h".
7048 (get_ulongest): New.
7049 * cli/cli-utils.h (get_ulongest): Declare.
7050 (check_for_argument): New overloads.
7051 * maint-test-options.c: New file.
7053 2019-06-13 Pedro Alves <palves@redhat.com>
7055 * cli/cli-utils.c (number_or_range_parser::get_number): Do not
7056 parse a range if "-" is at the end of the string.
7058 2019-06-13 Pedro Alves <palves@redhat.com>
7060 * cli/cli-setshow.c (parse_auto_binary_operation)
7061 (parse_cli_boolean_value): Don't allow "o".
7063 2019-06-13 Pedro Alves <palves@redhat.com>
7065 * Makefile.in (COMMON_SFILES): Add maint-test-settings.c.
7066 * NEWS: Mention maint test-settings KIND.
7067 * maint-test-settings.c: New file.
7069 2019-06-13 Pedro Alves <palves@redhat.com>
7071 * cli/cli-decode.c (add_setshow_cmd_full): Remove "show"
7073 (add_setshow_string_cmd, add_setshow_string_noescape_cmd): Remove
7076 2019-06-13 Pedro Alves <palves@redhat.com>
7078 * cli/cli-setshow.c (do_set_command) <var_enum>: Detect junk
7081 2019-06-13 Pedro Alves <palves@redhat.com>
7083 * cli/cli-setshow.c (is_unlimited_literal): Allow abbreviations.
7085 2019-06-13 Pedro Alves <palves@redhat.com>
7087 * ax-gdb.c (agent_command_1): Remove skip_spaces call.
7088 * breakpoint.c (watch_maybe_just_location): Remove skip_spaces
7090 * cli/cli-cmds.c (apropos_command): Remove skip_spaces call.
7091 * cli/cli-utils.c (extract_info_print_args): Remove skip_spaces
7093 (check_for_argument): Skip spaces after argument.
7095 2019-06-13 Pedro Alves <palves@redhat.com>
7097 * thread.c (thread_apply_command): Adjust TID parsing.
7098 * tid-parse.c (tid_range_parser::finished): Ensure parsing end is
7099 detected before end of string.
7100 (tid_is_in_list): Error out if LIST is invalid.
7102 2019-06-13 Pedro Alves <palves@redhat.com>
7104 * completer.c (complete_line_internal_1): Rewind completion word
7106 (completion_tracker::advance_custom_word_point_by): Change
7107 parameter type to int.
7108 * completer.h (completion_tracker::advance_custom_word_point_by):
7111 2019-06-13 Pedro Alves <palves@redhat.com>
7113 * completer.c (advance_to_completion_word): Handle delimiters.
7115 2019-06-11 Bernhard Heckel <bernhard.heckel@intel.com>
7117 * dwarf2read.c (add_partial_symbol): Skip nameless modules.
7119 2019-06-11 Tom Tromey <tom@tromey.com>
7121 * common/common-utils.c (xmalloc, xrealloc, xcalloc)
7122 (xmalloc_failed): Move to alloc.c.
7123 * alloc.c: New file.
7124 * Makefile.in (COMMON_SFILES): Add alloc.c.
7126 2019-06-11 Tom Tromey <tom@tromey.com>
7128 * nat/linux-waitpid.c: Don't include server.h.
7129 (linux_debug): Remove.
7130 (my_waitpid): Update.
7132 2019-06-11 Tom Tromey <tromey@adacore.com>
7134 * infcall.c (_initialize_infcall): Remove trailing newline from
7136 * user-regs.c (_initialize_user_regs): Remove trailing newline
7138 * typeprint.c (_initialize_typeprint): Remove trailing newline
7140 * reverse.c (_initialize_reverse): Remove trailing newlines from
7142 * tracepoint.c (_initialize_tracepoint): Remove trailing newlines
7144 * language.c (add_set_language_command): Remove trailing newline
7146 * infcmd.c (_initialize_infcmd): Remove trailing newlines from
7148 * disasm.c (_initialize_disasm): Remove trailing newline from
7150 * top.c (init_main): Remove trailing newline from help.
7151 * interps.c (_initialize_interpreter): Remove trailing newline
7153 * btrace.c (_initialize_btrace): Remove trailing newlines from
7155 * breakpoint.c (_initialize_breakpoint): Remove trailing newline
7157 * python/python.c (_initialize_python): Remove trailing newline
7159 * spu-tdep.c (_initialize_spu_tdep): Remove trailing newlines from
7161 * tui/tui-win.c (_initialize_tui_win): Remove trailing newlines
7162 from help. Reformat some text.
7163 * tui/tui-stack.c (_initialize_tui_stack): Remove trailing newline
7165 * tui/tui-layout.c (_initialize_tui_layout): Remove trailing
7168 2019-06-11 Tom Tromey <tromey@adacore.com>
7170 * darwin-nat.c (darwin_decode_exception_message)
7171 (darwin_decode_message, darwin_nat_target::kill): Fix shadowing.
7173 2019-06-10 Andrew Burgess <andrew.burgess@embecosm.com>
7175 * valops.c (value_slice): Check for not allocated or not
7178 2019-06-10 Tom de Vries <tdevries@suse.de>
7181 * dwarf2read.c (struct mapped_index::symbol_name_slot_invalid): Make
7182 sure an empty slot (defined by a 32-bit zero pair) is recognized as
7185 2019-06-10 Tom de Vries <tdevries@suse.de>
7188 * linespec.c (linespec_lexer_lex_string): Remove incorrect
7189 "++(PARSER_STREAM (parser))" for "[abi"-prefixed colon. Add assert.
7191 2019-06-10 Tom de Vries <tdevries@suse.de>
7194 * symtab.c (struct demangled_name_entry): Add language field.
7195 (symbol_set_names): Revert "[gdb/symtab] Fix language of duplicate
7196 static minimal symbol". Set and use language field.
7198 2019-06-10 Tom Tromey <tromey@adacore.com>
7200 * ada-lang.c (_initialize_ada_language): Update help text.
7202 2019-06-10 Tom Tromey <tromey@adacore.com>
7204 * m32c-tdep.c (m32c_m16c_address_to_pointer): Don't end warning
7206 * guile/guile.c (handle_boot_error): Don't end warning with a
7208 * cli/cli-cmds.c (exit_status_set_internal_vars): Don't end
7209 warning with a newline.
7210 * s12z-tdep.c (s12z_skip_prologue): Don't end warning with a
7212 (s12z_frame_cache): Likewise.
7213 * dwarf-index-cache.c (index_cache::store): Don't end warning with
7215 * solib-svr4.c (disable_probes_interface): Don't end warning with
7217 * nat/fork-inferior.c (fork_inferior): Don't end warning with a
7219 * python/python.c (do_finish_initialization): Don't end warning
7222 2019-06-10 Tom Tromey <tom@tromey.com>
7224 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7225 (gdbpy_breakpoint_deleted, gdbpy_breakpoint_modified): Use
7228 2019-06-10 Tom Tromey <tromey@adacore.com>
7230 * elfread.c (elf_read_minimal_symbols): Don't set the dbx objfile
7232 (elf_new_init): Don't call stabsread_new_init.
7233 * dbxread.c (coffstab_build_psymtabs): Set dbx objfile data.
7234 (elfstab_build_psymtabs): Likewise. Call stabsread_new_init.
7235 * coffread.c (coff_symfile_init): Don't set the dbx objfile data.
7237 2019-06-10 Tom de Vries <tdevries@suse.de>
7241 * dwarf2read.c (read_func_scope): Handle DW_AT_main_subprogram.
7243 2019-06-06 Руслан Ижбулатов <lrn1986@gmail.com>
7245 * source.c (find_and_open_source): Also rewrite relative file
7248 2019-04-26 Amos Bird <amosbird@gmail.com>
7250 * annotate.c (annotate_thread_exited): Add "thread-exited"
7253 2019-06-06 Tom Tromey <tromey@adacore.com>
7255 * maint.h (class scoped_command_stats): Use
7256 DISABLE_COPY_AND_ASSIGN.
7257 <print_time>: New method.
7258 * maint.c (scoped_command_stats, ~scoped_command_stats): Call
7260 (scoped_command_stats::print_time): New method.
7262 2019-06-05 Andrew Burgess <andrew.burgess@embecosm.com>
7264 * riscv-tdep.c (riscv_insn::decode): Gracefully ignore
7265 instructions of lengths 6 or 8 bytes.
7267 2019-06-04 Pedro Alves <palves@redhat.com>
7269 * common/gdb_unique_ptr.h (make_unique_xstrdup): New.
7271 * ada-lang.c (catch_ada_completer): Use make_unique_xstrdup.
7272 * breakpoint.c (condition_completer): Likewise.
7273 * cli/cli-dump.c (scan_expression): Likewise.
7274 * common/filestuff.c (mkdir_recursive): Likewise.
7275 * common/gdb_tilde_expand.c (gdb_tilde_expand_up)
7276 * common/pathstuff.c (gdb_realpath, gdb_realpath_keepfile)
7277 (gdb_abspath): Likewise.
7278 * compile/compile-cplus-types.c
7279 (compile_cplus_instance::decl_name): Likewise.
7280 * completer.c (complete_explicit_location):
7281 (signal_completer, reg_or_group_completer_1): Likewise.
7282 * cp-support.c (cp_remove_params_if_any): Likewise.
7283 * fbsd-tdep.c (fbsd_core_vnode_path): Likewise.
7284 * guile/scm-safe-call.c (gdbscm_safe_eval_string): Likewise.
7285 * infcmd.c (strip_bg_char): Likewise.
7286 * linespec.c (copy_token_string): Likewise.
7287 * mi/mi-main.c (output_cores): Likewise.
7288 * psymtab.c (psymtab_search_name):
7289 * symfile.c (test_set_ext_lang_command): Likewise.
7290 * target.c (target_fileio_read_stralloc): Likewise.
7291 * tui/tui-regs.c (tui_reggroup_completer): Likewise.
7292 * value.c (complete_internalvar): Likewise.
7294 2019-06-04 Christian Biesinger <cbiesinger@google.com>
7296 Add objfile property to gdb.Type.
7297 * NEWS: Mention Python API addition.
7298 * python/py-type.c (typy_get_objfile): New method.
7300 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7302 * NEWS: Mention the new set|show style [title|highlight].
7303 Mention changes to "show style", "help" and "apropos".
7305 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7307 * cli/cli-decode.h (apropos_cmd): Add verbose argument.
7308 * cli/cli-decode.c (apropos_cmd): Likewise. Use print_doc_of_command
7309 instead of print_help_for_command.
7310 (print_doc_of_command): New function.
7311 (help_list): Add 'apropos -v word' suggestion.
7312 (print_help_for_command): Style the command name using title style.
7313 * cli/cli-cmds.c (apropos_command): Parse optional -v flag.
7314 (_initialize_cli_cmds): Describe -v in apropos_command help.
7316 2019-06-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7318 * cli/cli-style.h (cli_style_option): Add name in constructor,
7319 add m_name class member, add constructor with intensity,
7320 add name class function.
7321 (cli_style_option::add_setshow_commands): Remove name argument.
7322 (highlight_style, title_style): New styles.
7323 * cli/cli-style.c (do_show): New function that shows a style
7324 characteristic styling the style name with itself.
7325 (set_style_name): New function.
7326 (STYLE_ADD_SETSHOW_COMMANDS): Remove NAME arguments.
7327 Update all callers according to the changes in cli/cli-style.h.
7328 * utils.h (fputs_highlighted): New function.
7329 * utils.c (fputs_highlighted): Likewise.
7331 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7333 * NEWS: Mention new pipe command and new convenience variables.
7335 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7337 * cli/cli-cmds.c (pipe_command): New function.
7338 (_initialize_cli_cmds): Call add_com for pipe_command.
7339 Define | as an alias for pipe.
7340 (exit_status_set_internal_vars): New function.
7341 (shell_escape): Call exit_status_set_internal_vars.
7342 cli/cli-decode.c (find_command_name_length): Recognize | as
7343 a single character command.
7345 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7347 * gdbcmd.h (execute_command_to_ui_file): New declaration.
7348 top.c (execute_command_to_ui_file): New function, mostly a copy
7349 of execute_command_to_string.
7350 (execute_command_to_string): Implement by calling
7351 execute_command_to_ui_file.
7353 2019-05-31 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7355 * top.h (saved_command_line): Remove declaration.
7356 * top.c (previous_saved_command_line, previous_repeat_arguments):
7358 (saved_command_line): Make static, define together with other
7360 (dont_repeat): Clear repeat_arguments.
7361 (repeat_previous, get_saved_command_line, save_command_line):
7363 (gdb_init): Initialize saved_command_line
7364 and previous_saved_command_line.
7365 * main.c (captured_main_1): Remove saved_command_line initialization.
7366 * event-top.c (handle_line_of_input): Update to use
7367 the new 'repeat' related functions instead of direct access to
7369 * command.h (repeat_previous, get_saved_command_line,
7370 save_command_line): New declarations.
7371 (dont_repeat): Add comment.
7373 2019-05-30 Tom Tromey <tromey@adacore.com>
7375 * gdbtypes.h (struct range_bounds) <flag_upper_bound_is_count>:
7377 (TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED): Rewrite comment.
7379 2019-05-30 Jan Vrany <jan.vrany@fit.cvut.cz>
7382 * completer.c (complete): Initialize variable word.
7384 2019-05-29 Sergio Durigan Junior <sergiodj@redhat.com>
7386 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7387 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1715008
7388 * dwarf2read.c (dwarf_decode_macro_bytes): Move check to see if
7389 'body' is NULL to the outter 'if', protecting the '!is_define'
7392 2019-05-29 Tom Tromey <tromey@adacore.com>
7394 * dwarf2read.c (partial_die_parent_scope): Call dwarf_tag_name.
7395 (dwarf_unknown): New function.
7396 (dwarf_tag_name, dwarf_attr_name, dwarf_form_name)
7397 (dwarf_type_encoding_name): Use dwarf_unknown.
7399 2019-05-29 Tom Tromey <tromey@adacore.com>
7402 * cp-valprint.c (cp_print_value_fields): Call
7403 cp_print_static_field inside "try".
7405 2019-05-29 Tom Tromey <tromey@adacore.com>
7407 * inflow.c (struct terminal_info): Add default operator=.
7408 * configure: Rebuild.
7409 * warning.m4 (AM_GDB_WARNINGS): Add -Wdeprecated-copy,
7410 -Wdeprecated-copy-dtor, -Wredundant-move.
7412 2019-05-29 Tom Tromey <tromey@adacore.com>
7415 * infcmd.c (print_return_value_1): Handle finish_print
7417 (show_print_finish): New function.
7418 (_initialize_infcmd): Add "set/show print finish" commands.
7419 * valprint.c (user_print_options): Initialize new member.
7420 * valprint.h (struct value_print_options) <finish_print>: New
7423 2019-05-28 Tom Tromey <tromey@adacore.com>
7425 * ada-lang.c (ada_remove_Xbn_suffix)
7426 (find_old_style_renaming_symbol)
7427 (parse_old_style_renaming): Remove.
7428 (ada_find_renaming_symbol): Don't call
7429 find_old_style_renaming_symbol.
7430 (ada_is_renaming_symbol): Rename from
7431 ada_find_renaming_symbol. Remove "block" parameter. Return
7433 (ada_read_var_value): Update and simplify.
7434 * ada-exp.y (write_var_or_type): Remove old code.
7436 2019-05-28 Alan Hayward <alan.hayward@arm.com>
7439 * event-top.c: Remove include comment.
7440 * inflow.c (class scoped_ignore_sigttou): Move from here...
7441 * inflow.h (class scoped_ignore_sigttou): ...to here.
7442 * ser-unix.c (hardwire_drain_output): Block SIGTTOU during drain.
7443 * top.c: Remove include comment.
7445 2019-05-27 Tom Tromey <tom@tromey.com>
7449 2019-05-22 Tom Tromey <tromey@adacore.com>
7451 * target.c (target_follow_exec): Constify parameter.
7452 * target-delegates.c: Rebuild.
7453 * remote.c (remote_target::follow_exec): Constify parameter.
7454 * infrun.c (follow_exec): Constify parameter.
7455 * target.h (struct target_ops) <follow_exec>: Constify parameter.
7456 (target_follow_exec): Likewise.
7458 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7460 * aarch64-tdep.c (aarch64_execute_dwarf_cfa_vendor_op): Treat
7461 DW_CFA_AARCH64_negate_ra_state as nop on non pauth targets.
7463 2019-05-22 Alan Hayward <alan.hayward@arm.com>
7465 * NEWS: Add debugredirect and testsuite sections.
7467 2019-05-22 Simon Cook <simon.cook@embecosm.com>
7469 * riscv-tdep.c (riscv_gdbarch_init): Support determining flen from
7470 target descriptions using exclusively floating point register name
7473 2019-05-21 Andrew Burgess <andrew.burgess@embecosm.com>
7476 * f-lang.c (build_fortran_types): Handle the case where
7477 gdbarch_floatformat_for_type returns a nullptr.
7479 2019-05-21 Tom de Vries <tdevries@suse.de>
7482 * cli/cli-cmds.c (complete_command): Fix use of unitialized variable.
7484 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7487 * f-lang.c (build_fortran_types): Use floatformats_ia64_quad for
7489 * i386-tdep.c (i386_floatformat_for_type): Use
7490 floatformats_ia64_quad for the 16-byte floating point component
7491 within a fortran 32-byte complex number.
7493 2019-05-18 Andrew Burgess <andrew.burgess@embecosm.com>
7495 * dwarf2read.c (struct cu_partial_die_info): Add constructor,
7496 delete default constructor.
7497 (find_partial_die): Update to return const struct.
7498 (partial_die_parent_scope): Move variable declaration into scope
7499 of its use and change its type to auto.
7500 (guess_partial_die_structure_name): Likewise.
7501 (partial_die_info::fixup): Likewise.
7503 2019-05-17 Tom Tromey <tromey@adacore.com>
7505 * source.c (find_and_open_source): Remove cast.
7507 2019-05-17 Tom Tromey <tromey@adacore.com>
7509 * annotate.c (annotate_source): Make "filename" const.
7510 * annotate.h (annotate_source): Use const.
7512 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7514 * disasm.c (set_disassembler_options): Send errors to stderr.
7516 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7518 * cli/cli-interp.c (struct saved_output_files): Add saved entry.
7519 (cli_interp_base::set_logging): Check debug_redirect.
7520 * cli/cli-interp.h (set_logging): Add debug_redirect parameter.
7521 * cli/cli-logging.c (debug_redirect): Add static variable.
7522 (pop_output_files): Add default param.
7523 (handle_redirections): Print debug setting.
7524 (show_logging_command): Likewise.
7525 (_initialize_cli_logging): Add debugredirect command.
7526 * interps.c (current_interp_set_logging): Add debug_redirect
7528 * interps.h (set_logging): Add debug_redirect parameter.
7529 (current_interp_set_logging): Likewise.
7530 * mi/mi-common.h: Likewise.
7531 * mi/mi-interp.c (mi_interp::set_logging): Likewise.
7533 2019-05-17 Alan Hayward <alan.hayward@arm.com>
7534 Tom Tromey <tromey@adacore.com>
7536 * cli/cli-interp.c (cli_interp_base::set_logging): Create tee_file
7538 * cli/cli-interp.h (make_logging_output): Remove declaration.
7539 * cli/cli-logging.c (make_logging_output): Remove function.
7540 * mi/mi-interp.c (mi_interp::set_logging): Create tee_file
7542 * ui-file.c (tee_file::tee_file): Remove bools.
7543 (tee_file::~tee_file): Remove deletes.
7544 * ui-file.h (tee_file): Remove bools.
7546 2019-01-28 Jan Vrany <jan.vrany@fit.cvut.cz>
7548 * mi/mi-cmds.h (mi_cmd_complete): New function.
7549 * mi/mi-main.c (mi_cmd_complete): Likewise.
7550 * mi/mi-cmds.c: Define new MI command -complete.
7551 * NEWS: Mention new -complete command.
7553 2019-01-24 Jan Vrany <jan.vrany@fit.cvut.cz>
7555 * completer.h (complete): New function.
7556 * completer.c (complete): Likewise.
7557 * cli/cli-cmds.c: (complete_command): Update to use new complete()
7558 function defined in completer.h.
7560 2019-05-17 Jan Vrany <jan.vrany@fit.cvut.cz>
7562 * MAINTAINERS (Write After Approval): Add myself.
7564 2019-05-17 Tom de Vries <tdevries@suse.de>
7567 * dwarf2read.c (struct cu_partial_die_info): New struct.
7568 (find_partial_die): Return cu_partial_die_info.
7569 (partial_die_parent_scope, guess_partial_die_structure_name)
7570 (partial_die_info::fixup): Handle new return type of find_partial_die.
7572 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7574 PR breakpoints/24541
7575 * stap-probe.c (stap_parse_register_operand): Make "regname" an
7576 "std::string", simplifying the algorithm.
7578 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7580 * stap-probe.c (handle_stap_probe): Fix complaint formatting.
7581 (stap_static_probe_ops::get_probes): Likewise.
7583 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7585 * stap-probe.c (stap_parse_register_operand): Make "if (*p->arg ==
7586 '-')" and "else if".
7587 (stap_parse_single_operand): Join checks for
7588 "gdbarch_stap_parse_special_token_p" and
7589 "gdbarch_stap_parse_special_token" in the same "if" statement.
7590 Invert check when verifying for operation on register
7593 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7595 * stap-probe.c (stap_get_opcode): Update comment.
7596 (stap_get_expected_argument_type): Likewise.
7597 (handle_stap_probe): Likewise.
7599 2019-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7601 * i386-tdep.c (i386_stap_parse_special_token_triplet): Change
7602 return type to 'bool'. Adjust comment. Use 'bool' when
7604 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7605 * stap-probe.c (stap_parse_argument_1): Likewise.
7606 (stap_is_operator): Likewise.
7607 (stap_is_generic_prefix): Likewise.
7608 (stap_is_register_prefix): Likewise.
7609 (stap_is_register_indirection_prefix): Likewise.
7610 (stap_is_integer_prefix): Likewise.
7611 (stap_generic_check_suffix): Likewise.
7612 (stap_check_integer_suffix): Likewise.
7613 (stap_check_register_suffix): Likewise.
7614 (stap_check_register_indirection_suffix): Likewise.
7615 (stap_parse_register_operand): Likewise.
7616 (stap_parse_single_operand): Likewise.
7617 (stap_parse_argument_1): Likewise.
7618 (stap_probe::get_argument_count): Likewise.
7619 (stap_is_operator): Likewise.
7621 2019-05-16 Tom Tromey <tromey@adacore.com>
7623 * darwin-nat.c (thread_info_from_private_thread_info): Add struct
7626 2019-05-15 Simon Marchi <simon.marchi@efficios.com>
7628 * linux-thread-db.c (try_thread_db_load_1): Change return type
7630 (try_thread_db_load): Likewise.
7631 (try_thread_db_load_from_pdir_1): Likewise.
7632 (try_thread_db_load_from_pdir): Likewise.
7633 (try_thread_db_load_from_sdir): Likewise.
7634 (try_thread_db_load_from_dir): Likewise.
7635 (thread_db_load_search): Likewise.
7636 (has_libpthread): Likewise.
7637 (thread_db_load): Likewise.
7639 2019-05-15 Sergio Durigan Junior <sergiodj@redhat.com>
7641 Ref.: https://bugzilla.redhat.com/show_bug.cgi?id=1708192
7642 * dwarf2read.c (parse_macro_definition): Check whether 'body' is
7643 NULL, and complain/return if that's the case.
7645 2019-05-15 John Darrington <john@darrington.wattle.id.au>
7647 * s12z-tdep.c (push_pull_get_stack_adjustment): New function.
7648 (advance, posn, abstract_read_memory): New functions.
7649 [struct mem_read_abstraction]: New struct.
7650 (s12z_frame_cache): Use opcodes API to interpret stack frame code.
7652 2019-05-14 Tom Tromey <tromey@adacore.com>
7654 * ada-lang.c (coerce_unspec_val_to_type): Only set address when
7655 value is not lval_memory.
7657 2019-05-14 Tom Tromey <tromey@adacore.com>
7659 * solib.c (info_sharedlibrary_command): Style the file name.
7661 2019-05-14 Alan Hayward <alan.hayward@arm.com>
7663 * aarch64-tdep.c (aarch64_vnh_type): Add half view.
7664 (aarch64_vnv_type): Likewise.
7665 * target-descriptions.c (make_gdb_type): Add TDESC_TYPE_IEEE_HALF.
7666 * common/tdesc.c: Likewise.
7667 * common/tdesc.h (enum tdesc_type_kind): Likewise.
7668 * features/aarch64-fpu.c (create_feature_aarch64_fpu): Regenerate.
7669 * features/aarch64-fpu.xml: Add ieee half view.
7670 * features/aarch64-sve.c (create_feature_aarch64_fpu): Likewise.
7671 * gdbtypes.c (gdbtypes_post_init): Add builtin_half
7672 * gdbtypes.h (struct builtin_type): Likewise.
7673 (struct objfile_type): Likewise.
7675 2019-05-12 Paul Naert <paul.naert@polymtl.ca>
7677 * language.c (language_sniff_from_mangled_name): Fix "langauge"
7679 * location.h (string_to_event_location): Likewise.
7681 2019-05-11 Joel Brobecker <brobecker@adacore.com>
7685 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7687 * breakpoint.h (fix_multi_location_breakpoint_output_globally):
7688 New variable declaration.
7689 * breakpoint.c (fix_multi_location_breakpoint_output_globally):
7691 (print_one_breakpoint): Use ui_out::test_flags and new global
7692 variable to compute use_fixed_output.
7693 * mi/mi-main.h (mi_multi_location_breakpoint_output_fixed):
7695 * mi/mi-main.c (fix_multi_location_breakpoint_output): Remove.
7696 (mi_multi_location_breakpoint_output_fixed): Remove.
7697 (mi_cmd_fix_multi_location_breakpoint_output): Adjust to set the
7699 * mi/mi-out.c (mi_ui_out::mi_ui_out): Set
7700 fix_multi_location_breakpoint_output flag if version >= 3.
7701 * ui-out.h (enum ui_out_flag)
7702 <fix_multi_location_breakpoint_output>: New enumerator.
7704 2019-05-10 Simon Marchi <simon.marchi@efficios.com>
7706 * contrib/cc-with-tweaks.sh: Validate dwz's work.
7708 2019-05-10 Tom Tromey <tromey@adacore.com>
7710 * ada-lang.c (catch_ada_completer): New function.
7711 (_initialize_ada_language): Use it.
7713 2019-05-10 Tom Tromey <tromey@adacore.com>
7715 * thread.c (print_thread_info): Make "requested_threads" const.
7716 * gdbthread.h (print_thread_info): Make "requested_threads"
7718 * ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
7719 * ada-lang.h (print_ada_task_info): Make "taskno_str" const.
7721 2019-05-08 Tom Tromey <tom@tromey.com>
7723 * gdbtypes.c (objfile_type_data): Change type.
7724 (objfile_type, _initialize_gdbtypes): Update.
7726 2019-05-08 Tom Tromey <tom@tromey.com>
7728 * dwarf2-frame.c (dwarf2_frame_objfile_data): Change type.
7729 (dwarf2_frame_find_fde, dwarf2_build_frame_info)
7730 (_initialize_dwarf2_frame): Update.
7732 2019-05-08 Tom Tromey <tom@tromey.com>
7734 * objc-lang.c (objc_objfile_data): Change type.
7735 (find_methods): Update.
7736 (_initialize_objc_lang): Remove.
7738 2019-05-08 Tom Tromey <tom@tromey.com>
7740 * stabsread.c (rs6000_builtin_type_data): Change type.
7741 (rs6000_builtin_type, _initialize_stabsread): Update.
7743 2019-05-08 Tom Tromey <tom@tromey.com>
7745 * mips-tdep.c (mips_pdr_data): Remove.
7746 (_initialize_mips_tdep): Update.
7748 2019-05-08 Tom Tromey <tom@tromey.com>
7750 * hppa-tdep.c (hppa_objfile_priv_data): Change type.
7751 (hppa_init_objfile_priv_data, read_unwind_info)
7752 (find_unwind_entry, _initialize_hppa_tdep): Update.
7754 2019-05-08 Tom Tromey <tom@tromey.com>
7756 * elfread.c (elf_objfile_gnu_ifunc_cache_data): Change type.
7757 (elf_gnu_ifunc_record_cache): Update. Don't allocate hash table
7759 (elf_gnu_ifunc_resolve_by_cache, _initialize_elfread): Update.
7761 2019-05-08 Tom Tromey <tom@tromey.com>
7763 * mdebugread.c (basic_type_data): Change type.
7764 (basic_type, _initialize_mdebugread): Update.
7766 2019-05-08 Tom Tromey <tom@tromey.com>
7768 * common/gdb_unique_ptr.h (struct noop_deleter): New.
7770 2019-05-08 Tom Tromey <tom@tromey.com>
7772 * nto-tdep.c (nto_inferior_data_reg): Change type.
7773 (nto_inferior_data): Update.
7774 (nto_inferior_data_cleanup, nto_new_inferior_data)
7775 (_initialize_nto_tdep): Remove.
7776 * nto-tdep.h (struct nto_inferior_data): Add initializers.
7778 2019-05-08 Tom Tromey <tom@tromey.com>
7780 * ada-lang.c (struct ada_inferior_data): Add initializers.
7781 (ada_inferior_data): Change type.
7782 (ada_inferior_data_cleanup): Remove.
7783 (get_ada_inferior_data, ada_inferior_exit)
7784 (struct ada_pspace_data): Add initializers, destructor.
7785 (ada_pspace_data_handle): Change type.
7786 (get_ada_pspace_data): Update.
7787 (ada_pspace_data_cleanup): Remove.
7789 2019-05-08 Tom Tromey <tom@tromey.com>
7791 * coffread.c (struct coff_symfile_info): Add initializers.
7792 (coff_objfile_data_key): Move lower. Change type.
7793 (coff_symfile_init, coff_symfile_read, _initialize_coffread):
7795 (coff_free_info): Remove.
7797 2019-05-08 Tom Tromey <tom@tromey.com>
7799 * fbsd-tdep.c (struct fbsd_pspace_data): Add initializers.
7800 (fbsd_pspace_data_handle): Move lower. Change type.
7801 (get_fbsd_pspace_data): Update.
7802 (fbsd_pspace_data_cleanup): Remove.
7803 (_initialize_fbsd_tdep): Update.
7805 2019-05-08 Tom Tromey <tom@tromey.com>
7807 * ada-tasks.c (ada_tasks_pspace_data_handle): Change type.
7808 (get_ada_tasks_pspace_data): Update.
7809 (ada_tasks_pspace_data_cleanup): Remove.
7810 (_initialize_tasks): Update.
7811 (ada_tasks_inferior_data_handle): Change type.
7812 (get_ada_tasks_inferior_data): Update.
7813 (ada_tasks_inferior_data_cleanup): Remove.
7814 (struct ada_tasks_pspace_data): Add initializers.
7816 2019-05-08 Tom Tromey <tom@tromey.com>
7818 * symfile.h (struct sym_probe_fns) <sym_get_probes>: Change type.
7819 * symfile-debug.c (debug_sym_get_probes): Change type.
7820 * stap-probe.c (handle_stap_probe):
7821 (stap_static_probe_ops::get_probes): Change type.
7822 * probe.h (class static_probe_ops) <get_probes>: Change type.
7823 * probe.c (class any_static_probe_ops) <get_probes>: Change type.
7824 (parse_probes_in_pspace): Update.
7825 (find_probes_in_objfile, find_probe_by_pc, collect_probes):
7827 (any_static_probe_ops::get_probes): Change type.
7828 * elfread.c (elfread_data): New typedef.
7829 (probe_key): Change type.
7830 (elf_get_probes): Likewise. Update.
7831 (probe_key_free): Remove.
7832 (_initialize_elfread): Update.
7833 * dtrace-probe.c (class dtrace_static_probe_ops) <get_probes>:
7835 (dtrace_process_dof_probe, dtrace_process_dof)
7836 (dtrace_static_probe_ops::get_probe): Change type.
7838 2019-05-08 Tom Tromey <tom@tromey.com>
7840 * xcoffread.c (struct xcoff_symfile_info): Rename from
7841 coff_symfile_info. Add initializers.
7842 (xcoff_objfile_data_key): Move lower. Change type.
7843 (XCOFF_DATA): Rewrite.
7844 (xcoff_free_info): Remove.
7845 (xcoff_symfile_init, _initialize_xcoffread, read_xcoff_symtab)
7846 (read_symbol, read_symbol_lineno, find_linenos, init_stringtab)
7847 (xcoff_initial_scan): Update.
7849 2019-05-08 Tom Tromey <tom@tromey.com>
7851 * solib-svr4.c (struct svr4_info): Add initializers and
7853 <probes_table>: Now an htab_up.
7854 (solib_svr4_pspace_data): Change type.
7855 (free_probes_table): Simplify.
7856 (~svr4_info): Rename from svr4_pspace_data_cleanup.
7857 (get_svr4_info, probes_table_htab_remove_objfile_probes)
7858 (probes_table_remove_objfile_probes, register_solib_event_probe)
7859 (solib_event_probe_at, svr4_update_solib_event_breakpoint)
7860 (_initialize_svr4_solib): Update.
7862 2019-05-08 Tom Tromey <tom@tromey.com>
7864 * remote.c (remote_pspace_data): Change type.
7865 (remote_pspace_data_cleanup): Remove.
7866 (get_remote_exec_file, set_pspace_remote_exec_file)
7867 (_initialize_remote): Update.
7869 2019-05-08 Tom Tromey <tom@tromey.com>
7871 * breakpoint.c (breakpoint_objfile_key): Change type.
7872 (get_breakpoint_objfile_data): Update.
7873 (free_breakpoint_objfile_data): Remove.
7874 (_initialize_breakpoint): Update.
7876 2019-05-08 Tom Tromey <tom@tromey.com>
7878 * linux-tdep.c (struct linux_info): Add initializers.
7879 (linux_inferior_data): Move. Change type.
7880 (invalidate_linux_cache_inf): Update.
7881 (linux_inferior_data_cleanup): Remove.
7882 (get_linux_inferior_data, _initialize_linux_tdep): Update.
7884 2019-05-08 Tom Tromey <tom@tromey.com>
7886 * auxv.c (auxv_inferior_data): Move. Change type.
7887 (auxv_inferior_data_cleanup): Remove.
7888 (invalidate_auxv_cache_inf): Rewrite.
7889 (get_auxv_inferior_data, _initialize_auxv): Update.
7891 2019-05-08 Tom Tromey <tom@tromey.com>
7893 * symfile-debug.c (struct debug_sym_fns_data): Add initializers.
7894 (symfile_debug_objfile_data_key): Change type.
7895 (symfile_debug_installed, debug_qf_has_symbols)
7896 (debug_qf_find_last_source_symtab)
7897 (debug_qf_forget_cached_source_info)
7898 (debug_qf_map_symtabs_matching_filename, debug_qf_lookup_symbol)
7899 (debug_qf_print_stats, debug_qf_dump)
7900 (debug_qf_expand_symtabs_for_function)
7901 (debug_qf_expand_all_symtabs)
7902 (debug_qf_expand_symtabs_with_fullname)
7903 (debug_qf_map_matching_symbols)
7904 (debug_qf_expand_symtabs_matching)
7905 (debug_qf_find_pc_sect_compunit_symtab)
7906 (debug_qf_map_symbol_filenames)
7907 (debug_qf_find_compunit_symtab_by_address, debug_sym_get_probes)
7908 (debug_sym_new_init, debug_sym_init, debug_sym_read)
7909 (debug_sym_read_psymbols, debug_sym_finish, debug_sym_offsets)
7910 (debug_sym_read_linetable, debug_sym_relocate): Update.
7911 (symfile_debug_free_objfile): Remove.
7912 (install_symfile_debug_logging, _initialize_symfile_debug):
7915 2019-05-08 Tom Tromey <tom@tromey.com>
7917 * dwarf2read.h (struct dwarf2_per_objfile): Don't inherit from
7918 allocate_on_obstack.
7919 * dwarf2read.c (dwarf2_objfile_data_key): Change type.
7920 (get_dwarf2_per_objfile): Update.
7921 (set_dwarf2_per_objfile): Remove.
7922 (dwarf2_has_info, dwarf2_get_section_info): Update.
7923 (dwarf2_free_objfile): Remove.
7924 (_initialize_dwarf2_read): Update.
7926 2019-05-08 Tom Tromey <tom@tromey.com>
7928 * auto-load.c (struct auto_load_pspace_info): Add destructor and
7930 <unsupported_script_warning_printed,
7931 script_not_found_warning_printed>: Now bool.
7932 (auto_load_pspace_data): Change type.
7933 (~auto_load_pspace_info): Rename from
7934 auto_load_pspace_data_cleanup.
7935 (get_auto_load_pspace_data, init_loaded_scripts_info)
7936 (clear_section_scripts, maybe_print_unsupported_script_warning)
7937 (maybe_print_script_not_found_warning, _initialize_auto_load):
7940 2019-05-08 Tom Tromey <tom@tromey.com>
7942 * objfiles.c (objfile_pspace_info): Add destructor and
7944 (objfiles_pspace_data): Change type.
7945 (~objfile_pspace_info): Rename from objfiles_pspace_data_cleanup.
7946 (get_objfile_pspace_data): Update.
7947 (objfiles_bfd_data): Change type.
7948 (get_objfile_bfd_data): Update.
7949 (objfile_bfd_data_free, _initialize_objfiles): Remove.
7951 2019-05-08 Tom Tromey <tom@tromey.com>
7953 * break-catch-syscall.c (catch_syscall_inferior_data): Move.
7955 (get_catch_syscall_inferior_data): Update.
7956 (catch_syscall_inferior_data_cleanup): Remove.
7957 (_initialize_break_catch_syscall): Update.
7959 2019-05-08 Tom Tromey <tom@tromey.com>
7961 * inflow.c (struct terminal_info): Add destructor and
7963 (inflow_inferior_data): Change type.
7964 (~terminal_info): Rename from inflow_inferior_data_cleanup.
7965 (get_inflow_inferior_data, inflow_inferior_exit)
7966 (swap_terminal_info, _initialize_inflow): Update.
7968 2019-05-08 Tom Tromey <tom@tromey.com>
7970 * target-dcache.c (target_dcache_cleanup): Remove.
7971 (target_dcache_aspace_key): Change type.
7972 (target_dcache_init_p, target_dcache_invalidate)
7973 (target_dcache_get, target_dcache_get_or_init)
7974 (_initialize_target_dcache): Update.
7975 * dcache.h (struct dcache_deleter): New.
7977 2019-05-08 Tom Tromey <tom@tromey.com>
7979 * symtab.c (struct symbol_cache): Add destructor and
7981 (symbol_cache_key): Move. Change type.
7982 (make_symbol_cache, free_symbol_cache): Remove.
7983 (get_symbol_cache): Update.
7984 (symbol_cache_cleanup): Remove.
7985 (ALL_PSPACES, symbol_cache_flush)
7986 (maintenance_print_symbol_cache)
7987 (maintenance_print_symbol_cache_statistics, _initialize_symtab):
7990 2019-05-08 Tom Tromey <tom@tromey.com>
7992 * symtab.c (struct main_info): Add destructor and initializers.
7993 (main_progspace_key): Move. Change type.
7994 (get_main_info): Update.
7995 (main_info_cleanup): Remove.
7996 (_initialize_symtab): Update.
7998 2019-05-08 Tom Tromey <tom@tromey.com>
8000 * registry.h (DECLARE_REGISTRY): Define the _key class.
8002 2019-05-08 Andrew Burgess <andrew.burgess@embecosm.com>
8004 * NEWS: Merge two 'New commands' sections.
8006 2019-05-08 Joel Brobecker <brobecker@adacore.com>
8008 * ada-valprint.c (ada_val_print_gnat_array): Remove language
8009 parameter and use Ada language definition instead.
8010 (ada_val_print_ptr): Remove unused language parameter.
8011 (ada_val_print_num): Remove language parameter and use Ada language
8013 (ada_val_print_enum, ada_val_print_flt): Remove unused language
8015 (ada_val_print_struct_union, ada_val_print_ref): Remove language
8016 parameter and use Ada language definition instead.
8017 (ada_val_print_1): Update all ada_val_print_xxx calls.
8018 Remove language parameter.
8019 (ada_val_print): Update ada_val_print_1 call.
8021 2019-05-08 Tom Tromey <tromey@adacore.com>
8023 * remote.c (remote_hw_watchpoint_limit)
8024 (remote_hw_watchpoint_length_limit, remote_hw_breakpoint_limit):
8027 2019-05-08 Tom Tromey <tromey@adacore.com>
8029 * maint.c (_initialize_maint_cmds): Move initialization code to
8031 (watchdog, show_watchdog): Move to remote.c.
8032 * remote.c (watchdog, show_watchdog): Move from maint.c. Make
8034 (_initialize_remote): Move initialization code from maint.c.
8035 * defs.h (watchdog): Don't declare.
8037 2019-05-08 Tom Tromey <tromey@adacore.com>
8039 * tui/tui-interp.c: Include main.h.
8040 * interps.c: Include main.h.
8041 * main.h (interpreter_p): Declare.
8042 * defs.h (interpreter_p): Don't declare.
8044 2019-05-08 Tom Tromey <tromey@adacore.com>
8046 * dwarf2loc.c: Include dwarf2read.h.
8047 * defs.h (read_unsigned_leb128): Don't declare.
8048 * dwarf2read.h (read_unsigned_leb128): Declare.
8050 2019-05-08 Tom Tromey <tromey@adacore.com>
8052 * utils.c (fputs_maybe_filtered): Call can_emit_style_escape as a
8055 2019-05-08 Tom Tromey <tromey@adacore.com>
8057 * utils.c (fputs_maybe_filtered): Reset style after paging, even
8058 when no wrap column is set.
8060 2019-05-08 Tom Tromey <tromey@adacore.com>
8062 * c-lang.c (c_get_string): Handle non-C-style arrays.
8064 2019-05-08 Tom Tromey <tromey@adacore.com>
8066 * typeprint.c (print_offset_data::update): Print the bit offset,
8067 not the number of bits remaining.
8069 2019-05-08 Tom Tromey <tromey@adacore.com>
8071 * typeprint.c (print_offset_data::maybe_print_hole): Add extra
8072 padding at end of comment.
8074 2019-05-08 Tom Tromey <tromey@adacore.com>
8076 * dwarf2loc.c (dwarf2_evaluate_property) <PROP_ADDR_OFFSET>:
8079 2019-05-06 Tom Tromey <tom@tromey.com>
8081 * common/scoped_mmap.c: Include common-defs.h.
8082 * common/scoped_mmap.h: Don't include config.h.
8084 2019-05-04 Tom Tromey <tom@tromey.com>
8086 * aarch64-tdep.c (stack_item_t): Remove typedef and DEF_VEC.
8087 (struct aarch64_call_info): Add initializers.
8088 <si>: Now a std::vector.
8089 (pass_on_stack, aarch64_push_dummy_call): Update.
8091 2019-05-04 Simon Marchi <simon.marchi@efficios.com>
8092 Tom Tromey <tom@tromey.com>
8094 * ppc-linux-nat.c (thread_points_p): Remove typedef and DEF_VEC.
8095 (ppc_threads): Now a std::vector. Now static.
8096 (hwdebug_find_thread_points_by_tid)
8097 (ppc_linux_nat_target::low_new_thread, ppc_linux_thread_exit):
8100 2019-05-04 Tom Tromey <tom@tromey.com>
8102 * arc-tdep.c (arc_tdesc_init): Return bool.
8104 2019-05-04 Tom Tromey <tom@tromey.com>
8106 * arm-linux-nat.c (arm_linux_nat_target::can_use_hw_breakpoint):
8107 Use gdb_assert_not_reached.
8109 2019-05-04 Tom Tromey <tom@tromey.com>
8111 * compile/compile-cplus-types.c (compile_cplus_convert_enum): Use
8114 2019-05-04 Tom Tromey <tom@tromey.com>
8116 * arc-tdep.c (arc_tdesc_init): Use bool.
8118 2019-05-04 Tom Tromey <tom@tromey.com>
8120 * stack.c (select_frame_for_mi): Use "false", not "FALSE".
8122 2019-05-04 Tom Tromey <tom@tromey.com>
8124 * cli/cli-cmds.c (valid_command_p): Return bool.
8126 2019-05-04 Tom Tromey <tom@tromey.com>
8128 * cli/cli-decode.c (valid_user_defined_cmd_name_p): Return bool.
8129 * command.h (valid_user_defined_cmd_name_p): Channge return type.
8131 2019-05-04 Raul Tambre <raul@tambre.ee>
8133 * python/lib/gdb/prompt.py (_ExtendedPrompt)
8134 <before_prompt_hook, get_show_string>: Fix incorrect use of 'is'
8135 operator for comparison.
8137 2019-05-04 Tom Tromey <tom@tromey.com>
8139 * psymtab.c (psymbol_name_matches, match_partial_symbol)
8140 (lookup_partial_symbol, print_partial_symbols)
8141 (recursively_search_psymtabs, sort_pst_symbols, psymbol_hash)
8142 (psymbol_compare): Update.
8143 (add_psymbol_to_bcache): Clear the entire psymbol.
8144 (maintenance_check_psymtabs): Update.
8145 * psympriv.h (struct partial_symbol): Don't derive from
8146 general_symbol_info.
8147 <obj_section, unrelocated_address, address,
8148 set_unrelocated_address>: Update.
8149 <ginfo>: New member.
8150 * dwarf-index-write.c (write_psymbols, debug_names::insert)
8151 (debug_names::write_psymbols): Update.
8153 2019-05-04 Tom de Vries <tdevries@suse.de>
8155 * contrib/cc-with-tweaks.sh: Support -n arg.
8157 2019-05-04 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8159 * corelow.c (core_target::detach): Ensure frame cache and
8160 register caches are cleared.
8161 inferior.c (exit_inferior_1): Likewise.
8163 2019-05-03 Sandra Loosemore <sandra@codesourcery.com>
8164 Tom Tromey <tom@tromey.com>
8166 * dictionary.c (collate_pending_symbols_by_language): Remove
8167 "struct" from foreach.
8168 * symtab.c (lookup_global_symbol_from_objfile)
8169 (lookup_symbol_in_objfile_from_linkage_name): Remove "struct" from
8171 * ser-tcp.c (net_open): Remove "struct" from foreach.
8172 * objfiles.c (objfile_relocate, objfile_rebase)
8173 (objfile_has_symbols): Remove "struct" from foreach.
8174 * minsyms.c (lookup_minimal_symbol_by_pc_section): Remove "struct"
8176 * dwarf2read.c (handle_struct_member_die): Remove "struct" from
8178 * darwin-nat.c (thread_info_from_private_thread_info): Remove
8179 "struct" from foreach.
8180 * ada-lang.c (create_excep_cond_exprs)
8181 (ada_exception_catchpoint_cond_string): Remove "struct" from
8184 2019-05-03 Tom Tromey <tromey@adacore.com>
8186 * ada-exp.y (convert_char_literal): Check suffix of each
8189 2019-05-03 Dilyan Palauzov <dilyan.palauzov@aegee.org>
8192 * ada-exp.y (yywrap): Don't define.
8193 * ada-lex.l (%option): Add noyywrap
8196 2019-05-03 Eli Zaretskii <eliz@gnu.org>
8198 * common/common-defs.h [__MINGW32__ || __CYGWIN__]: Define
8199 _WIN32_WINNT to the XP level, unless already defined to a higher
8202 * unittests/parse-connection-spec-selftests.c:
8204 * common/netstuff.c [USE_WIN32API]: Remove the _WIN32_WINNT
8207 * symfile.c (find_separate_debug_file): Remove colon from the
8208 drive spec of DOS/Windows file names of the target, so that the
8209 file name produced from DEBUGDIR and the target's directory will
8210 be valid on DOS/Windows systems.
8212 2019-05-02 Andrew Burgess <andrew.burgess@embecosm.com>
8214 * rust-lang.c (val_print_struct): Handle printing structures
8217 2019-05-02 Tom Tromey <tromey@adacore.com>
8219 * valarith.c (_initialize_valarith): Remove.
8221 2019-05-01 Tom Tromey <tromey@adacore.com>
8223 * ada-lang.c (ada_value_primitive_field): Treat more fields as
8226 2019-05-01 Tom Tromey <tromey@adacore.com>
8228 * ada-lang.c (ada_value_assign): Correctly compute starting offset
8229 for big-endian copies.
8231 2019-04-30 Ali Tamur <tamur@google.com>
8232 * gdb/dwarf2read.c (read_3_bytes): New declaration.
8233 (read_attribute_value): Added DW_FORM_strx1-4 cases.
8234 (read_3_bytes): New function.
8236 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8238 * windows-nat.c (main_thread_id): Delete.
8239 (handle_output_debug_string): Replace main_thread_id by
8240 current_event.dwThreadId.
8241 (fake_create_process): Likewise.
8242 (get_windows_debug_event) <CREATE_PROCESS_DEBUG_EVENT>:
8243 Do not set main_thread_id.
8244 <LOAD_DLL_DEBUG_EVENT>: Replace main_thread_id by
8245 current_event.dwThreadId.
8246 <UNLOAD_DLL_DEBUG_EVENT>: Likewise.
8248 2019-04-30 Joel Brobecker <brobecker@adacore.com>
8250 * windows-nat.c (get_windows_debug_event) <EXIT_PROCESS_DEBUG_EVENT>:
8251 Use current_event.dwThreadId instead of main_thread_id.
8253 2019-04-30 Tom Tromey <tromey@adacore.com>
8255 * ada-lang.c (ada_lookup_simple_minsyms): New function.
8256 (create_excep_cond_exprs): Iterate over program spaces.
8257 (ada_exception_catchpoint_cond_string): Examine all minimal
8258 symbols for exception types.
8260 2019-04-30 Tom Tromey <tromey@adacore.com>
8263 * dwarf2read.c (process_structure_scope): Handle case where type
8264 has template parameters but no symbol was created.
8266 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8267 Chris January <chris.january@arm.com>
8269 * f-typeprint.c (f_type_print_base): Print 'allocatable' type
8271 * gdbtypes.h (TYPE_IS_ALLOCATABLE): Define.
8273 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8275 * f-typeprint.c (f_print_type): Update rules for printing
8277 (f_type_print_varspec_suffix): Likewise.
8279 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8280 Chris January <chris.january@arm.com>
8282 * f-typeprint.c (f_type_print_varspec_suffix): Handle printing
8285 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8287 * f-lang.c (build_fortran_types): Change name of void type to
8289 * f-typeprint.c (f_type_print_base): Print the name of the void
8290 type, rather than a fixed string.
8291 * f-valprint.c (f_decorations): Use lower case void string.
8293 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8294 Chris January <chris.january@arm.com>
8296 * dwarf2read.c (dwarf2_init_complex_target_type): Use different
8299 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8300 Chris January <chris.january@arm.com>
8301 David Lecomber <david.lecomber@arm.com>
8303 * f-exp.y (BINOP_INTRINSIC): New token.
8304 (exp): New parser rule handling BINOP_INTRINSIC.
8305 (f77_keywords): Add new builtin procedures.
8306 * f-lang.c (evaluate_subexp_f): Handle BINOP_MOD, UNOP_FORTRAN_CEILING,
8307 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8308 (operator_length_f): Handle UNOP_FORTRAN_CEILING,
8309 UNOP_FORTRAN_FLOOR, BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8310 (print_unop_subexp_f): New function.
8311 (print_binop_subexp_f): New function.
8312 (print_subexp_f): Handle UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8313 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX.
8314 (dump_subexp_body_f): Likewise.
8315 (operator_check_f): Likewise.
8316 * fortran-operator.def: Add UNOP_FORTRAN_CEILING, UNOP_FORTRAN_FLOOR,
8317 BINOP_FORTRAN_MODULO, BINOP_FORTRAN_CMPLX
8319 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8321 * gdb/expprint.c (dump_subexp_body_standard): Remove use of
8323 * gdb/expression.h (exp_opcode): Include 'fortran-operator.def'.
8324 * gdb/f-exp.y (exp): Rename UNOP_KIND to UNOP_FORTRAN_KIND.
8325 * gdb/f-lang.c (evaluate_subexp_f): Likewise.
8326 (operator_length_f): New fuction.
8327 (print_subexp_f): New function.
8328 (op_name_f): New function.
8329 (dump_subexp_body_f): New function.
8330 (operator_check_f): New function.
8331 (exp_descriptor_f): Replace standard expression handling functions
8333 * gdb/fortran-operator.def: New file.
8334 * gdb/parse.c (operator_length_standard): Remove use of UNOP_KIND.
8335 * gdb/std-operator.def: Remove UNOP_KIND.
8337 2019-04-30 Andrew Burgess <andrew.burgess@embecosm.com>
8339 * std-operator.def: Remove unbalanced, stray double quote
8342 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8343 Chris January <chris.january@arm.com>
8344 Daniel Everett <daniel.everett@arm.com>
8345 Nick Forrington <nick.forrington@arm.com>
8346 Richard Bunt <richard.bunt@arm.com>
8348 * cp-valprint.c (cp_print_value_fields): Allow an additional level
8349 of depth when printing anonymous structs or unions.
8350 * guile/scm-pretty-print.c (gdbscm_apply_val_pretty_printer):
8351 Don't print either the top-level value, or the children if the
8352 max-depth is exceeded.
8353 (ppscm_print_children): When printing the key of a map, allow one
8354 extra level of depth.
8355 * python/py-prettyprint.c (gdbpy_apply_val_pretty_printer): Don't
8356 print either the top-level value, or the children if the max-depth
8358 (print_children): When printing the key of a map, allow one extra
8360 * python/py-value.c (valpy_format_string): Add max_depth keyword.
8361 * valprint.c: (PRINT_MAX_DEPTH_DEFAULT): Define.
8362 (user_print_options): Initialise max_depth field.
8363 (val_print_scalar_or_string_type_p): New function.
8364 (val_print): Check to see if the max depth has been reached.
8365 (val_print_check_max_depth): Define new function.
8366 (show_print_max_depth): New function.
8367 (_initialize_valprint): Add 'print max-depth' option.
8368 * valprint.h (struct value_print_options) <max_depth>: New field.
8369 (val_print_check_max_depth): Declare new function.
8370 * NEWS: Document new feature.
8372 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8374 * ada-lang.c (ada_language_defn): Initialise new field.
8375 * c-lang.c (c_is_string_type_p): New function.
8376 (c_language_defn): Initialise new field.
8377 (cplus_language_defn): Initialise new field.
8378 (asm_language_defn): Initialise new field.
8379 (minimal_language_defn): Initialise new field.
8380 * c-lang.h (c_is_string_type_p): Declare new function.
8381 * d-lang.c (d_language_defn): Initialise new field.
8382 * f-lang.c (f_is_string_type_p): New function.
8383 (f_language_defn): Initialise new field.
8384 * go-lang.c (go_is_string_type_p): New function.
8385 (go_language_defn): Initialise new field.
8386 * language.c (default_is_string_type_p): New function.
8387 (unknown_language_defn): Initialise new field.
8388 (auto_language_defn): Initialise new field.
8389 * language.h (struct language_defn) <la_is_string_type_p>: New
8391 (default_is_string_type_p): Declare new function.
8392 * m2-lang.c (m2_language_defn): Initialise new field.
8393 * objc-lang.c (objc_language_defn): Initialise new field.
8394 * opencl-lang.c (opencl_language_defn): Initialise new field.
8395 * p-lang.c (pascal_is_string_type_p): New function.
8396 (pascal_language_defn): Initialise new field.
8397 * rust-lang.c (rust_is_string_type_p): New function.
8398 (rust_language_defn): Initialise new field.
8400 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8402 * language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
8404 * ada-lang.c (ada_language_defn): Initialise new field.
8405 * c-lang.c (c_language_defn): Likewise.
8406 (cplus_language_defn): Likewise.
8407 (asm_language_defn): Likewise.
8408 (minimal_language_defn): Likewise.
8409 * d-lang.c (d_language_defn): Likewise.
8410 * f-lang.c (f_language_defn): Likewise.
8411 * go-lang.c (go_language_defn): Likewise.
8412 * language.c (unknown_language_defn): Likewise.
8413 (auto_language_defn): Likewise.
8414 * m2-lang.c (m2_language_defn): Likewise.
8415 * objc-lang.c (objc_language_defn): Likewise.
8416 * opencl-lang.c (opencl_language_defn): Likewise.
8417 * p-lang.c (pascal_language_defn): Likewise.
8418 * rust-lang.c (rust_language_defn): Likewise.
8420 2019-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
8422 * ada-lang.c (ada_is_character_type): Change return type to bool.
8423 (ada_is_string_type): Likewise.
8424 * ada-lang.h (ada_is_character_type): Update declaration
8425 (ada_is_string_type): Likewise.
8427 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8429 Support style in 'frame|thread apply'
8431 * gdbcmd.h (execute_command_to_string): New term_out parameter.
8432 * record.c (record_start, record_stop): Update callers of
8433 execute_command_to_string with false.
8434 * guile/guile.c (gdbscm_execute_gdb_command): Likewise.
8435 * ui-file.h (class ui_file): New term_out and can_emit_style_escape
8437 (class string_file): New constructor with term_out parameter.
8438 Override methods term_out and can_emit_style_escape. New member
8440 (class stdio_file): Override can_emit_style_escape.
8441 (class tee_file): Override term_out and can_emit_style_escape.
8442 * utils.h (can_emit_style_escape): Remove.
8443 * utils.c (can_emit_style_escape): Likewise.
8444 Update all callers of can_emit_style_escape (SOMESTREAM) to
8445 SOMESTREAM->can_emit_style_escape.
8446 * source-cache.c (source_cache::get_source_lines): Likewise.
8447 * stack.c (frame_apply_command_count): Call execute_command_to_string
8448 passing the term_out characteristic of the current gdb_stdout.
8449 * thread.c (thr_try_catch_cmd): Likewise.
8450 * top.c (execute_command_to_string): pass term_out parameter
8451 to construct the string_file for the command output.
8452 * ui-file.c (term_cli_styling): New function (most code moved
8453 from utils.c can_emit_style_escape).
8454 (string_file::string_file, string_file::can_emit_style_escape,
8455 stdio_file::can_emit_style_escape, tee_file::term_out,
8456 tee_file::can_emit_style_escape): New functions.
8458 2019-04-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8460 * NEWS: Mention the new set|show may-call-functions.
8461 * infcall.c (may_call_functions_p): New variable.
8462 (show_may_call_functions_p): New function.
8463 (call_function_by_hand_dummy): Throws an error if not
8465 (_initialize_infcall): Call add_setshow_boolean_cmd for
8468 2019-04-25 Keith Seitz <keiths@redhat.com>
8471 * cp-support.c (inspect_type): Don't attempt substitutions
8472 of symbol with the same name.
8474 2019-04-25 Tom Tromey <tromey@adacore.com>
8477 * event-top.c (gdb_rl_callback_handler): Make "gdb_rl_expt"
8480 2019-04-25 Tom Tromey <tromey@adacore.com>
8482 * xml-support.c (struct gdb_xml_parser) <set_error>: Take an
8484 (gdb_xml_start_element_wrapper, gdb_xml_end_element_wrapper)
8485 (gdb_xml_parser::parse): Use std::move.
8486 * python/python-internal.h (gdbpy_convert_exception): Take a const
8488 * python/py-value.c (valpy_getitem, valpy_nonzero): Use
8490 * python/py-utils.c (gdbpy_convert_exception): Take a const
8492 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8494 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8496 * mi/mi-main.c (mi_print_exception): Take a const reference.
8497 * main.c (handle_command_errors): Take a const reference.
8498 * linespec.c (parse_linespec): Use std::move.
8499 * infcall.c (run_inferior_call): Use std::move.
8500 (call_function_by_hand_dummy): Use std::move.
8501 * exec.c (try_open_exec_file): Use std::move.
8502 * exceptions.h (exception_print, exception_fprintf)
8503 (exception_print_same): Update.
8504 * exceptions.c (print_exception, exception_print)
8505 (exception_fprintf, exception_print_same): Change parameters to
8507 * event-top.c (gdb_rl_callback_read_char_wrapper): Update.
8508 * common/new-op.c: Use std::move.
8509 * common/common-exceptions.h (struct gdb_exception): Add move
8511 (struct gdb_exception_error, struct gdb_exception_quit, struct
8512 gdb_quit_bad_alloc): Change constructor to move constructor.
8513 (throw_exception): Change parameter to rvalue reference.
8514 * common/common-exceptions.c (throw_exception): Take rvalue
8516 * cli/cli-interp.c (safe_execute_command): Use std::move.
8517 * breakpoint.c (insert_bp_location, location_to_sals): Use
8520 2019-04-25 Tom Tromey <tromey@adacore.com>
8522 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception)
8523 (gdbscm_throw_gdb_exception): Take a gdbscm_gdb_exception.
8524 * guile/scm-block.c, guile/scm-breakpoint.c, guile/scm-cmd.c,
8525 guile/scm-disasm.c, guile/scm-frame.c, guile/scm-lazy-string.c,
8526 guile/scm-math.c, guile/scm-param.c, guile/scm-ports.c,
8527 guile/scm-symbol.c, guile/scm-symtab.c, guile/scm-type.c,
8528 guile/scm-value.c: Use unpack.
8529 * guile/guile-internal.h (gdbscm_scm_from_gdb_exception): Take a
8530 gdbscm_gdb_exception.
8531 (gdbscm_throw_gdb_exception): Likewise.
8532 (struct gdbscm_gdb_exception): New.
8533 (unpack): New function.
8534 (gdbscm_wrap): Use unpack.
8536 2019-04-25 Tom Tromey <tromey@adacore.com>
8538 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8539 (gdb_rl_callback_handler): Use std::move.
8540 * common/common-exceptions.h (struct gdb_exception): Add move
8541 assignment operator.
8542 (throw_exception_sjlj): Change "exception" to const reference.
8543 * common/common-exceptions.c (exceptions_state_mc_catch): Update.
8544 (throw_exception_sjlj): Change "exception" to const reference.
8546 2019-04-25 Tom Tromey <tromey@adacore.com>
8548 * xml-support.c (gdb_xml_parser::gdb_xml_parser): Update.
8549 * python/py-value.c (valpy_getitem, valpy_nonzero): Update.
8550 * python/py-inferior.c (infpy_write_memory, infpy_search_memory):
8552 * python/py-breakpoint.c (bppy_set_condition, bppy_set_commands):
8554 * mi/mi-interp.c (mi_interp::exec): Update.
8555 * linespec.c (parse_linespec): Update.
8556 * infcall.c (run_inferior_call): Update.
8557 * guile/scm-value.c (gdbscm_value_to_lazy_string): Update.
8558 * guile/scm-symbol.c (gdbscm_lookup_symbol)
8559 (gdbscm_lookup_global_symbol): Update.
8560 * guile/scm-param.c (gdbscm_parameter_value): Update.
8561 * guile/scm-frame.c (gdbscm_frame_read_register)
8562 (gdbscm_frame_read_var): Update.
8563 * guile/scm-breakpoint.c (gdbscm_register_breakpoint_x): Update.
8564 * exec.c (try_open_exec_file): Update.
8565 * event-top.c (gdb_rl_callback_read_char_wrapper_noexcept)
8566 (gdb_rl_callback_handler): Update.
8567 * common/common-exceptions.h (exception_none): Don't declare.
8568 * common/common-exceptions.c (exception_none): Don't define.
8569 (struct catcher) <exception>: Update.
8570 * cli/cli-interp.c (safe_execute_command): Update.
8571 * breakpoint.c (insert_bp_location, location_to_sals): Update.
8573 2019-04-25 Ali Tamur <tamur@google.com>
8575 * dwarf2read.c (skip_one_die): Add DW_FORM_strx.
8576 (read_attribute_value): Likewise.
8577 (dwarf2_read_addr_index): Update comment.
8578 (read_str_index): Add DW_FORM_strx.
8579 (dwarf2_string_attr): Likewise.
8580 (dwarf2_const_value_attr): Likewise.
8581 (dump_die_shallow): Likewise.
8582 (dwarf2_fetch_constant_bytes): Likewise.
8583 (skip_form_bytes): Likewise.
8584 * testsuite/lib/dwarf.exp (_handle_DW_FORM): Add DW_FORM_strx.
8586 2019-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8590 * linux-tdep.c (dump_mapping_p): Add new parameters ADDR and
8591 OFFSET. Verify if current mapping contains an ELF header.
8592 (linux_find_memory_regions_full): Adjust call to
8595 2019-04-25 Sandra Loosemore <sandra@codesourcery.com>
8596 Kang Li <kanglictf@gmail.com>
8600 * dwarf2-frame.c (read_initial_length): Be consistent about using
8601 unsigned representation of length.
8602 (decode_frame_entry_1): Likewise. Check for wraparound of
8603 end pointer as well as buffer overflow.
8605 2019-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8607 * aarch64-tdep.c (aarch64_gdbarch_init): Use "pulongest" to print
8610 2019-04-24 Tom Tromey <tromey@adacore.com>
8612 * amd64-tdep.c (amd64_has_unaligned_fields): Ignore bitfields.
8614 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8616 * s12z-tdep.c (s12z_unwind_pc): Delete.
8617 (s12z_unwind_sp): Delete.
8618 (s12z_gdbarch_init): Don't register deleted functions with
8621 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8623 * rl78-tdep.c (rl78_unwind_sp): Delete.
8624 (rl78_gdbarch_init): Don't register deleted function with gdbarch.
8626 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8628 * xstormy16-tdep.c (xstormy16_unwind_sp): Delete.
8629 (xstormy16_unwind_pc): Delete.
8630 (xstormy16_dummy_id): Delete.
8631 (xstormy16_gdbarch_init): Don't register deleted functions with
8634 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8636 * vax-tdep.c (vax_unwind_pc): Delete.
8637 (vax_gdbarch_init): Don't register deleted function with gdbarch.
8639 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8641 * v850-tdep.c (v850_unwind_sp): Delete.
8642 (v850_unwind_pc): Delete.
8643 (v850_dummy_id): Delete.
8644 (v850_gdbarch_init): Don't register deleted functions with
8647 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8649 * tilegx-tdep.c (tilegx_unwind_sp): Delete.
8650 (tilegx_unwind_pc): Delete.
8651 (tilegx_unwind_dummy_id): Delete.
8652 (tilegx_gdbarch_init): Don't register deleted functions with
8655 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8657 * tic6x-tdep.c (tic6x_unwind_sp): Delete.
8658 (tic6x_dummy_id): Delete.
8659 (tic6x_gdbarch_init): Don't register deleted functions with
8662 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8664 * sparc-tdep.c (sparc_unwind_pc): Delete.
8665 (sparc32_gdbarch_init): Don't register deleted function with
8668 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8670 * sh-tdep.c (sh_unwind_sp): Delete.
8671 (sh_unwind_pc): Delete.
8672 (sh_dummy_id): Delete.
8673 (sh_gdbarch_init): Don't register deleted functions with
8676 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8678 * score-tdep.c (score_unwind_sp): Delete.
8679 (score_unwind_pc): Delete.
8680 (score_dummy_id): Delete.
8681 (score_gdbarch_init): Don't register deleted functions with
8684 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8686 * rx-tdep.c (rx_unwind_pc): Delete.
8687 (rx_unwind_sp): Delete.
8688 (rx_dummy_id): Delete.
8689 (rx_gdbarch_init): Don't register deleted functions with
8690 gdbarch. Update comment.
8692 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8694 * rs6000-tdep.c (rs6000_unwind_pc): Delete.
8695 (rs6000_dummy_id): Delete.
8696 (rs6000_gdbarch_init): Don't register deleted functions with
8699 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8701 * or1k-tdep.c (or1k_dummy_id): Delete.
8702 (or1k_gdbarch_init): Don't register deleted function with gdbarch.
8704 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8706 * nios2-tdep.c (nios2_dummy_id): Delete.
8707 (nios2_unwind_sp): Delete.
8708 (nios2_gdbarch_init): Don't register deleted functions with
8711 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8713 * nds32-tdep.c (nds32_dummy_id): Delete.
8714 (nds32_unwind_pc): Delete.
8715 (nds32_unwind_sp): Delete.
8716 (nds32_gdbarch_init): Don't register deleted functions with
8719 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8721 * msp430-tdep.c (msp430_unwind_pc): Delete.
8722 (msp430_unwind_sp): Delete.
8723 (msp430_dummy_id): Delete.
8724 (msp430_gdbarch_init): Don't register deleted functions with
8727 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8729 * moxie-tdep.c (moxie_unwind_sp): Delete.
8730 (moxie_unwind_pc): Delete.
8731 (moxie_dummy_id): Delete.
8732 (moxie_gdbarch_init): Don't register deleted functions with
8735 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8737 * mn10300-tdep.c (mn10300_dummy_id): Delete.
8738 (mn10300_unwind_pc): Delete.
8739 (mn10300_unwind_sp): Delete.
8740 (mn10300_push_dummy_call): Use gdbarch_unwind_sp not
8742 (mn10300_frame_unwind_init): Don't register deleted functions with
8745 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8747 * mep-tdep.c (mep_unwind_pc): Delete.
8748 (mep_unwind_sp): Delete.
8749 (mep_dummy_id): Delete.
8750 (mep_gdbarch_init): Don't register deleted functions with
8753 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8755 * m68hc11-tdep.c (m68hc11_unwind_pc): Delete.
8756 (m68hc11_unwind_sp): Delete.
8757 (m68hc11_gdbarch_init): Don't register deleted functions with
8760 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8762 * m32r-tdep.c (m32r_unwind_sp): Delete.
8763 (m32r_unwind_pc): Delete.
8764 (m32r_dummy_id): Delete.
8765 (m32r_gdbarch_init): Don't register deleted functions with
8768 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8770 * m32c-tdep.c (m32c_unwind_pc): Delete.
8771 (m32c_unwind_sp): Delete.
8772 (m32c_dummy_id): Delete.
8773 (m32c_gdbarch_init): Don't register deleted functions with
8776 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8778 * gdb/lm32-tdep.c (lm32_unwind_sp): Delete.
8779 (lm32_unwind_pc): Delete.
8780 (lm32_dummy_id): Delete.
8781 (lm32_gdbarch_init): Don't register deleted functions with
8784 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8786 * gdb/iq2000-tdep.c (iq2000_unwind_sp): Delete.
8787 (iq2000_unwind_pc): Delete.
8788 (iq2000_dummy_id): Delete.
8789 (iq2000_gdbarch_init): Don't register deleted functions with
8792 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8794 * nds32-tdep.c (nds32_type_align): Delete.
8795 (nds32_push_dummy_call): Use type_align instead.
8797 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8799 * arm-tdep.c (arm_type_align): Only handle vector override case.
8800 (arm_push_dummy_call): Use type_align.
8801 (arm_gdbarch_init): Register arm_type_align gdbarch function.
8803 2019-04-23 Andrew Burgess <andrew.burgess@embecosm.com>
8805 * aarch64-tdep.c (aarch64_type_align): Only handle vector override
8807 (pass_on_stack): Use type_align.
8808 (aarch64_gdbarch_init): Register aarch64_type_align gdbarch
8811 2019-04-23 Tom Tromey <tromey@adacore.com>
8813 * dwarf2read.c (line_header::file_name_at): Remove unused
8816 2019-04-23 Tom de Vries <tdevries@suse.de>
8819 * contrib/cc-with-tweaks.sh: Remove superfluous .alt file after dwz
8823 2019-03-27 Ali Tamur <tamur@google.com>
8825 * dwarf2-frame.c(dwarf_expr_executor::get_addr_index): Update comment
8826 * dwarf2expr.c(dwarf_expr_context::execute_stack_op): Add DW_OP_addrx
8827 * dwarf2expr.h(dwarf_expr_context::offset): Update comment
8828 (dwarf_expr_context::get_addr_index): Likewise
8829 * dwarf2loc.c(dwarf_evaluate_loc_desc::get_addr_index): Likewise
8830 (symbol_needs_eval_context::get_addr_index): Likewise
8831 (disassemble_dwarf_expression): Add DW_OP_addrx
8832 * dwarf2read.c(attr_value_as_address): Add DW_FORM_addrx
8833 (read_cutu_die_from_dwo): Update comment
8834 (skip_one_die): Add DW_FORM_addrx
8835 (read_attribute_value): Likewise
8836 (var_decode_location): Add DW_OP_addrx
8837 (dwarf2_const_value_attr): Add DW_FORM_addrx
8838 (dump_die_shallow): Likewise
8839 (dwarf2_fetch_constant_bytes): Likewise
8840 (decode_locdesc): Add DW_OP_addrx
8841 (skip_form_bytes): Add DW_FORM_addrx
8843 2019-04-22 Ali Tamur <tamur@google.com>
8845 * MAINTAINERS (Write After Approval): Add self.
8847 2019-04-22 Simon Marchi <simon.marchi@efficios.com>
8849 * solib-svr4.c (get_svr4_info): Add pspace parameter.
8850 (svr4_keep_data_in_core): Pass current_program_space to get_svr4_info.
8851 (open_symbol_file_object): Likewise.
8852 (svr4_default_sos): Add info parameter.
8853 (svr4_read_so_list): Likewise.
8854 (svr4_current_sos_direct): Adjust functions calls to pass down
8856 (svr4_current_sos_1): Add info parameter.
8857 (svr4_current_sos): Call get_svr4_info, pass info down to
8859 (svr4_fetch_objfile_link_map): Pass objfile->pspace to
8861 (svr4_in_dynsym_resolve_code): Pass current_program_space to
8863 (probes_table_htab_remove_objfile_probes): Pass objfile->pspace
8865 (probes_table_remove_objfile_probes): Likewise.
8866 (register_solib_event_probe): Add info parameter.
8867 (solist_update_incremental): Pass info parameter down to
8869 (disable_probes_interface): Add info parameter.
8870 (svr4_handle_solib_event): Pass current_program_space to
8871 get_svr4_info. Adjust disable_probes_interface cleanup.
8872 (svr4_create_probe_breakpoints): Add info parameter, pass it
8873 down to register_solib_event_probe.
8874 (svr4_create_solib_event_breakpoints): Add info parameter,
8875 pass it down to svr4_create_probe_breakpoints.
8876 (enable_break): Pass info down to
8877 svr4_create_solib_event_breakpoints.
8878 (svr4_solib_create_inferior_hook): Pass current_program_space to
8880 (svr4_clear_solib): Likewise.
8882 2019-04-22 Pedro Alves <palves@redhat.com>
8884 * solib-svr4.c (svr4_free_objfile_observer): New.
8885 (probe_and_action::objfile): New field.
8886 (probes_table_htab_remove_objfile_probes)
8887 (probes_table_remove_objfile_probes): New functions.
8888 (register_solib_event_probe): Add 'objfile' parameter. Store it
8889 in the new probe_and_action. Don't store the probe in 'lookup'.
8890 (svr4_create_probe_breakpoints): Pass objfile to
8891 register_solib_event_probe.
8892 (_initialize_svr4_solib): Register a free_objfile observer.
8894 2019-04-19 Tom Tromey <tom@tromey.com>
8896 * common/queue.h: Remove.
8898 2019-04-19 Tom Tromey <tom@tromey.com>
8900 * event-loop.c: Don't include "common/queue.h".
8902 2019-04-19 Tom Tromey <tom@tromey.com>
8904 * remote.c (remote_target): Use delete.
8905 * remote-notif.h: Include <list>, not "common/queue.h".
8906 (notif_client_p): Remove typedef.
8907 (remote_notif_state): Add constructor, destructor, initializer.
8908 <notif_queue>: Now a std::list.
8909 (remote_notif_state_xfree): Don't declare.
8910 * remote-notif.c (remote_notif_process, handle_notification)
8911 (remote_notif_state_allocate): Update.
8912 (~remote_notif_state): Rename from remote_notif_state_xfree.
8914 2019-04-19 Tom Tromey <tom@tromey.com>
8916 * symfile.c (reread_symbols): Update.
8917 * objfiles.c (objfile_register_static_link)
8918 (objfile_lookup_static_link): Update
8919 (~objfile) Don't delete static_links.
8920 * objfiles.h (struct objfile) <static_links>: Now an htab_up.
8922 2019-04-19 Tom Tromey <tom@tromey.com>
8924 * type-stack.h (struct type_stack) <insert>: Constify string.
8925 * type-stack.c (type_stack::insert): Constify string.
8926 * gdbtypes.h (lookup_template_type): Update.
8927 (address_space_name_to_int): Update.
8928 * gdbtypes.c (address_space_name_to_int): Make space_identifier
8930 (lookup_template_type): Make name const.
8931 * c-exp.y: Update rules.
8932 (lex_one_token, classify_name, classify_inner_name)
8933 (c_print_token): Update.
8934 * p-exp.y: Update rules.
8936 * f-exp.y: Update rules.
8938 * d-exp.y: Update rules.
8939 (lex_one_token, classify_name, classify_inner_name): Update.
8940 * parse.c (write_dollar_variable, copy_name): Return std::string.
8941 * parser-defs.h (copy_name): Change return type.
8942 * m2-exp.y: Update rules.
8944 * go-exp.y (lex_one_token): Update.
8946 (classify_unsafe_function, classify_packaged_name)
8947 (classify_name, yylex): Update.
8949 2019-04-19 Sergei Trofimovich <siarheit@google.com>
8951 * configure.ac: add --enable-source-highlight switch.
8952 * configure: Regenerate.
8953 * top.c (print_gdb_version): plumb --enable-source-highlight
8954 status to "show configuration".
8956 2019-04-19 Tom Tromey <tromey@adacore.com>
8958 * ada-lang.c (ada_is_variant_part, ada_to_fixed_type_1):
8960 (empty_record, ada_template_to_fixed_record_type_1)
8961 (template_to_static_fixed_type)
8962 (to_record_with_fixed_variant_part): Use INIT_NONE_SPECIFIC.
8963 * cp-abi.c (value_rtti_type): Check HAVE_CPLUS_STRUCT.
8964 * gdbtypes.h (INIT_NONE_SPECIFIC, ADA_TYPE_P): New
8967 2019-04-19 Ilya Yu. Malakhov <malakhov@mcst.ru>
8970 * source.c (print_source_lines_base): Advance "iter" when a
8971 control character is seen.
8973 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8975 * inferior.h (struct infcall_suspend_state_deleter):
8976 Catch exception in destructor to avoid crash.
8978 2019-04-19 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8980 * cli/cli-cmds.c (_initialize_cli_cmds): Move "shell" "!" alias
8981 close to the add_com "shell".
8983 2019-04-18 Tom Tromey <tromey@adacore.com>
8985 * process-stratum-target.h (class process_stratum_target)
8986 <stratum>: Add "final".
8988 2019-04-17 Tom Tromey <tromey@adacore.com>
8990 * dwarf2read.c (dwarf2_init_complex_target_type): Check "tt"
8991 against nullptr before use.
8993 2019-04-17 Alan Hayward <alan.hayward@arm.com>
8995 * nat/linux-waitpid.c (linux_debug): Call debug_vprintf.
8997 2019-04-17 Jim Wilson <jimw@sifive.com>
8998 Andrew Burgess <andrew.burgess@embecosm.com>
9000 * riscv-tdep.c (riscv_breakpoint_kind_from_pc): Hanndle case where
9001 code read might fail, assume 4-byte breakpoint in that case.
9003 2019-04-15 Leszek Swirski <leszeks@google.com>
9005 * amd64-tdep.c (amd64_classify_aggregate): Use cp_pass_by_reference
9006 rather than a hand-rolled POD check when checking for forced MEMORY
9009 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9011 * aarch64-linux-nat.c (store_sveregs_to_thread): Set vector length.
9012 * nat/aarch64-sve-linux-ptrace.c (aarch64_sve_set_vq): New
9014 (aarch64_sve_regs_copy_to_reg_buf): Remove VG checks.
9015 (aarch64_sve_regs_copy_from_reg_buf): Likewise.
9016 * nat/aarch64-sve-linux-ptrace.h (aarch64_sve_set_vq): New
9019 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9021 * aarch64-linux-nat.c
9022 (aarch64_linux_nat_target::thread_architecture): Add override.
9023 * aarch64-tdep.c (aarch64_gdbarch_init): Ensure different tdesc for
9026 2019-04-15 Alan Hayward <alan.hayward@arm.com>
9028 * aarch64-tdep.c (aarch64_gdbarch_init): Move gdbarch lookup.
9030 2019-04-13 Andrew Burgess <andrew.burgess@embecosm.com>
9032 * dwarf2read.c (dwarf2_init_complex_target_type): Handle complex
9033 target types of size 96-bits, add some additional comments, and
9034 check that the builtin type we found was the correct size.
9036 2019-04-12 Eli Zaretskii <eliz@gnu.org>
9038 * utils.c (prompt_for_continue): Don't restore the styling at the
9039 end, as applied_style has the wrong value. This fixes styling in
9040 long lists of file names that are interrupted by the "Continue?"
9043 2019-04-12 Andrew Burgess <andrew.burgess@embecosm.com>
9045 * ada-lang.c (ada_language_defn): Remove use of LANG_MAGIC.
9046 * c-lang.c (c_language_defn): Likewise.
9047 (cplus_language_defn): Likewise.
9048 (asm_language_defn): Likewise.
9049 (minimal_language_defn): Likewise.
9050 * d-lang.c (d_language_defn): Likewise.
9051 * f-lang.c (f_language_defn): Likewise.
9052 * go-lang.c (go_language_defn): Likewise.
9053 * language.c (unknown_language_defn): Likewise.
9054 (auto_language_defn): Likewise.
9055 * language.h (struct language_defn): Remove la_magic field.
9056 (LANG_MAGIC): Delete.
9057 * m2-lang.c (m2_language_defn): Remove use of LANG_MAGIC.
9058 * objc-lang.c (objc_language_defn): Likewise.
9059 * opencl-lang.c (opencl_language_defn): Likewise.
9060 * p-lang.c (pascal_language_defn): Likewise.
9061 * rust-lang.c (rust_language_defn): Likewise.
9063 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9065 * riscv-tdep.c (riscv_type_align): New function.
9066 (riscv_type_alignment): Delete.
9067 (riscv_arg_location): Use 'type_align'.
9068 (riscv_gdbarch_init): Register riscv_type_align gdbarch function.
9070 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9072 * gdbtypes.c (type_align): A struct with no non-static fields also
9075 2019-04-11 Andrew Burgess <andrew.burgess@embecosm.com>
9077 * riscv-tdep.c (riscv_call_arg_complex_float): Fix offset of first
9079 (riscv_struct_info::riscv_struct_info): Initialise m_offsets
9081 (riscv_struct_info::analyse): New implementation using new
9082 analyse_inner member function.
9083 (riscv_struct_info::field_offset): New member function.
9084 (riscv_struct_info::m_offsets): New member variable.
9085 (riscv_struct_info::analyse_inner): New private member function,
9086 takes the old implementation of riscv_struct_info::analyse but
9087 extended to track field offsets.
9088 (riscv_call_arg_struct): Update the struct folding special cases
9089 to handle cases where empty C++ structs, which are non-zero
9091 (riscv_arg_location): Initialise the length of each location, a
9092 non-zero length now indicates the location is in use.
9093 (riscv_push_dummy_call): Allow for the first location having a
9094 non-zero offset when setting up arguments.
9095 (riscv_return_value): Likewise, but for return values.
9097 2019-04-11 Tom Tromey <tromey@adacore.com>
9099 * utils.c (internal_vproblem): Make "msg" const.
9101 2019-04-11 Alan Hayward <alan.hayward@arm.com>
9103 * aarch64-tdep.c (aarch64_analyze_prologue_test): Reset saved regs.
9104 * trad-frame.c (trad_frame_reset_saved_regs): New function.
9105 (trad_frame_alloc_saved_regs): Call trad_frame_reset_saved_regs.
9106 * trad-frame.h (trad_frame_reset_saved_regs): New declaration.
9108 2019-04-10 Kevin Buettner <kevinb@redhat.com>
9110 * amd64-linux-nat.c (amd64_linux_collect_native_gregset): New
9112 (fill_gregset): Call amd64_linux_collect_native_gregset instead
9113 of amd64_collect_native_gregset.
9114 (amd64_linux_nat_target::store_registers): Likewise.
9116 2019-04-10 Tom Tromey <tom@tromey.com>
9118 * symtab.c (lookup_global_symbol_from_objfile)
9119 (lookup_symbol_in_objfile_from_linkage_name): Use the iterator.
9120 * objfiles.h (class separate_debug_iterator): New.
9121 (class separate_debug_range): New.
9122 (struct objfile) <separate_debug_objfiles>: New method.
9123 (objfile_separate_debug_iterate): Don't declare.
9124 * objfiles.c (separate_debug_iterator::operator++): Rename from
9125 objfile_separate_debug_iterate.
9126 (objfile_relocate, objfile_rebase, objfile_has_symbols): Use the
9128 * minsyms.c (lookup_minimal_symbol_by_pc_section): Use the
9131 2019-04-10 Tom Tromey <tom@tromey.com>
9133 * symfile.c (reread_symbols): Remove old comment.
9134 * objfiles.c (free_all_objfiles): Fix a typo.
9136 2019-04-10 Tom Tromey <tom@tromey.com>
9138 * ia64-tdep.c (ia64_get_dyn_info_list): Use foreach.
9139 * minsyms.c (lookup_minimal_symbol): Use foreach.
9140 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
9141 (lookup_minimal_symbol_solib_trampoline): Likewise.
9142 * symfile.c (reread_symbols): Use foreach.
9144 2019-04-09 Ivan Begert <ivanbegert@gmail.com>
9145 Tom Tromey <tromey@adacore.com>
9148 * rust-exp.y (rust_parser::lex_number): Use strtoulst.
9149 (rust_lex_int_test): Change "value" to be LONGEST.
9150 (rust_lex_tests): Add test for long integer literal.
9152 2019-04-09 Tom Tromey <tromey@adacore.com>
9154 * remote.c (remote_target::remote_add_inferior): Change fake_pid_p
9156 (extended_remote_target::attach): Update.
9157 (remote_target::remote_notice_new_inferior): Update.
9158 (remote_target::add_current_inferior_and_thread): Update.
9159 * inferior.c (exit_inferior_1): Use "false".
9160 * corelow.c (add_to_thread_list): Make fake_pid_p bool.
9162 2019-04-09 Simon Marchi <simon.marchi@efficios.com>
9164 * infcmd.c (run_command_1): Pass -qualified to tbreak when using
9165 the "start" command.
9167 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9169 * python/py-inferior.c (infpy_thread_from_thread_handle):
9170 Adjust comments to reflect renaming of thread_from_thread_handle
9171 to thread_from_handle. Adjust keywords. Fix type error message.
9172 (inferior_object_methods): Add thread_from_handle. Retain
9173 thread_from_thread_handle, but mark it as deprecated.
9175 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9177 * gdbthread.h (find_thread_by_handle): Revise declaration.
9178 * thread.c (find_thread_by_handle): Likewise. Adjust
9180 * python/py-inferior.c (infpy_thread_from_thread_handle): Add
9181 support for buffer objects as handles.
9183 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9185 * python/py-infthread.c (thpy_thread_handle): New function.
9186 (thread_object_methods): Register thpy_thread_handle.
9188 2019-04-08 Kevin Buettner <kevinb@redhat.com>
9190 * gdbthread.h (thread_to_thread_handle): Declare.
9191 * thread.c (gdbtypes.h): Include.
9192 (thread_to_thread_handle): New function.
9194 * target.h (struct target_ops): Add thread_info_to_thread_handle.
9195 (target_thread_info_to_thread_handle): Declare.
9196 * target.c (target_thread_info_to_thread_handle): New function.
9197 * target-debug.h (target_debug_print_gdb_byte_vector): Define.
9198 * target-delegates.c: Regenerate.
9200 * linux-thread-db.c (class thread_db_target): Add method
9201 thread_info_to_thread_handle.
9202 (thread_db_target::thread_info_to_thread_handle): Define.
9203 * remote.c (class remote_target): Add new method
9204 thread_info_to_thread_handle.
9205 (remote_target::thread_info_to_thread_handle): Define.
9207 2019-04-08 Pedro Alves <palves@redhat.com>
9209 * common/common-exceptions.c (throw_exception): Don't create
9210 named object to throw; throw directly.
9211 (throw_it): Likewise. Don't initialize gdb_exception::message
9212 here, with new; pass FMT and AP to the ctor instead.
9213 * common/common-exceptions.h: Include <string>.
9214 (gdb_exception::gdb_exception(enum return_reason, enum errors,
9215 const char *, va_list)): New ctor. Use std::make_shared.
9216 (gdb_exception_error::gdb_exception_error(enum return_reason, enum
9218 (gdb_exception_error::gdb_exception_error(enum errors, const char
9220 (gdb_exception_error::gdb_exception_error(const gdb_exception &)):
9222 (gdb_exception_quit::gdb_exception_quit(enum return_reason, enum
9224 (gdb_exception_quit::gdb_exception_quit(const char *, va_list)): New.
9225 (gdb_exception_quit::gdb_exception_quit(const gdb_exception &)):
9228 2019-04-08 Tom Tromey <tom@tromey.com>
9230 * valops.c (value_rtti_indirect_type): Replace throw_exception
9232 * tracefile-tfile.c (tfile_target_open): Replace throw_exception
9234 * thread.c (thr_try_catch_cmd): Replace throw_exception with
9236 * target.c (target_translate_tls_address): Replace throw_exception
9238 * stack.c (frame_apply_command_count): Replace throw_exception
9240 * solib-spu.c (append_ocl_sos): Replace throw_exception with
9242 * s390-tdep.c (s390_frame_unwind_cache): Replace throw_exception
9244 * rs6000-tdep.c (rs6000_frame_cache)
9245 (rs6000_epilogue_frame_cache): Replace throw_exception with throw.
9246 * remote.c: Replace throw_exception with throw.
9247 * record-full.c (record_full_message, record_full_wait_1)
9248 (record_full_restore): Replace throw_exception with throw.
9250 (get_thread_current_frame_id, record_btrace_start_replaying)
9251 (cmd_record_btrace_bts_start, cmd_record_btrace_pt_start)
9252 (cmd_record_btrace_start): Replace throw_exception with throw.
9253 * parse.c (parse_exp_in_context_1): Replace throw_exception with
9255 * linux-nat.c (detach_one_lwp, linux_resume_one_lwp)
9256 (resume_stopped_resumed_lwps): Replace throw_exception with throw.
9258 (find_linespec_symbols): Replace throw_exception with throw.
9259 * infrun.c (displaced_step_prepare, resume): Replace
9260 throw_exception with throw.
9261 * infcmd.c (post_create_inferior): Replace throw_exception with
9263 * inf-loop.c (inferior_event_handler): Replace throw_exception
9265 * i386-tdep.c (i386_frame_cache, i386_epilogue_frame_cache)
9266 (i386_sigtramp_frame_cache): Replace throw_exception with throw.
9267 * frame.c (frame_unwind_pc, get_prev_frame_if_no_cycle)
9268 (get_prev_frame_always, get_frame_pc_if_available)
9269 (get_frame_address_in_block_if_available, get_frame_language):
9270 Replace throw_exception with throw.
9271 * frame-unwind.c (frame_unwind_try_unwinder): Replace
9272 throw_exception with throw.
9273 * eval.c (fetch_subexp_value, evaluate_var_value)
9274 (evaluate_funcall, evaluate_subexp_standard): Replace
9275 throw_exception with throw.
9276 * dwarf2loc.c (call_site_find_chain)
9277 (dwarf2_evaluate_loc_desc_full, dwarf2_locexpr_baton_eval):
9278 Replace throw_exception with throw.
9279 * dwarf2-frame.c (dwarf2_frame_cache): Replace throw_exception
9281 * darwin-nat.c (darwin_attach_pid): Replace throw_exception with
9283 * cp-abi.c (baseclass_offset): Replace throw_exception with throw.
9284 * completer.c (complete_line_internal): Replace throw_exception
9286 * compile/compile-object-run.c (compile_object_run): Replace
9287 throw_exception with throw.
9288 * cli/cli-script.c (process_next_line): Replace throw_exception
9290 * btrace.c (btrace_compute_ftrace_pt, btrace_compute_ftrace)
9291 (btrace_enable, btrace_maint_update_pt_packets): Replace
9292 throw_exception with throw.
9293 * breakpoint.c (create_breakpoint, save_breakpoints): Replace
9294 throw_exception with throw.
9295 * break-catch-throw.c (re_set_exception_catchpoint): Replace
9296 throw_exception with throw.
9297 * amd64-tdep.c (amd64_frame_cache, amd64_sigtramp_frame_cache)
9298 (amd64_epilogue_frame_cache): Replace throw_exception with throw.
9299 * aarch64-tdep.c (aarch64_make_prologue_cache)
9300 (aarch64_make_stub_cache): Replace throw_exception with throw.
9302 2019-04-08 Tom Tromey <tom@tromey.com>
9304 * common/common-exceptions.c (throw_exception): Rename from
9305 throw_exception_cxx. Remove old copy. Make argument const.
9306 (throw_it): Create and throw exception objects directly.
9307 * common/common-exceptions.h (throw_exception): Make argument
9309 (struct gdb_exception_error): Add constructor.
9310 (struct gdb_exception_quit): Add constructor.
9312 2019-04-08 Tom Tromey <tom@tromey.com>
9314 * common/common-exceptions.h (exception_rethrow): Don't declare.
9315 (TRY_SJLJ): Update comment.
9316 (TRY, CATCH, END_CATCH): Remove.
9317 * common/common-exceptions.c (exception_rethrow): Remove.
9319 2019-04-08 Tom Tromey <tom@tromey.com>
9321 * common/common-exceptions.h (gdb_exception_RETURN_MASK_ALL):
9323 (gdb_exception_error): Rename from
9324 gdb_exception_RETURN_MASK_ERROR.
9325 (gdb_exception_quit): Rename from gdb_exception_RETURN_MASK_QUIT.
9326 (gdb_quit_bad_alloc): Update.
9327 * aarch64-tdep.c: Update.
9328 * ada-lang.c: Update.
9329 * ada-typeprint.c: Update.
9330 * ada-valprint.c: Update.
9331 * amd64-tdep.c: Update.
9332 * arch-utils.c: Update.
9333 * break-catch-throw.c: Update.
9334 * breakpoint.c: Update.
9336 * c-varobj.c: Update.
9337 * cli/cli-cmds.c: Update.
9338 * cli/cli-interp.c: Update.
9339 * cli/cli-script.c: Update.
9340 * common/common-exceptions.c: Update.
9341 * common/new-op.c: Update.
9342 * common/selftest.c: Update.
9343 * compile/compile-c-symbols.c: Update.
9344 * compile/compile-cplus-symbols.c: Update.
9345 * compile/compile-object-load.c: Update.
9346 * compile/compile-object-run.c: Update.
9347 * completer.c: Update.
9348 * corelow.c: Update.
9350 * cp-support.c: Update.
9351 * cp-valprint.c: Update.
9352 * darwin-nat.c: Update.
9353 * disasm-selftests.c: Update.
9354 * dtrace-probe.c: Update.
9355 * dwarf-index-cache.c: Update.
9356 * dwarf-index-write.c: Update.
9357 * dwarf2-frame-tailcall.c: Update.
9358 * dwarf2-frame.c: Update.
9359 * dwarf2loc.c: Update.
9360 * dwarf2read.c: Update.
9362 * event-loop.c: Update.
9363 * event-top.c: Update.
9365 * f-valprint.c: Update.
9366 * fbsd-tdep.c: Update.
9367 * frame-unwind.c: Update.
9369 * gdbtypes.c: Update.
9370 * gnu-v3-abi.c: Update.
9371 * guile/guile-internal.h: Update.
9372 * guile/scm-block.c: Update.
9373 * guile/scm-breakpoint.c: Update.
9374 * guile/scm-cmd.c: Update.
9375 * guile/scm-disasm.c: Update.
9376 * guile/scm-frame.c: Update.
9377 * guile/scm-lazy-string.c: Update.
9378 * guile/scm-math.c: Update.
9379 * guile/scm-param.c: Update.
9380 * guile/scm-ports.c: Update.
9381 * guile/scm-pretty-print.c: Update.
9382 * guile/scm-symbol.c: Update.
9383 * guile/scm-symtab.c: Update.
9384 * guile/scm-type.c: Update.
9385 * guile/scm-value.c: Update.
9386 * i386-linux-tdep.c: Update.
9387 * i386-tdep.c: Update.
9388 * inf-loop.c: Update.
9389 * infcall.c: Update.
9393 * language.c: Update.
9394 * linespec.c: Update.
9395 * linux-fork.c: Update.
9396 * linux-nat.c: Update.
9397 * linux-tdep.c: Update.
9398 * linux-thread-db.c: Update.
9400 * mi/mi-cmd-break.c: Update.
9401 * mi/mi-cmd-stack.c: Update.
9402 * mi/mi-interp.c: Update.
9403 * mi/mi-main.c: Update.
9404 * objc-lang.c: Update.
9405 * p-valprint.c: Update.
9407 * ppc-linux-tdep.c: Update.
9408 * printcmd.c: Update.
9409 * python/py-arch.c: Update.
9410 * python/py-breakpoint.c: Update.
9411 * python/py-cmd.c: Update.
9412 * python/py-finishbreakpoint.c: Update.
9413 * python/py-frame.c: Update.
9414 * python/py-framefilter.c: Update.
9415 * python/py-gdb-readline.c: Update.
9416 * python/py-inferior.c: Update.
9417 * python/py-infthread.c: Update.
9418 * python/py-lazy-string.c: Update.
9419 * python/py-linetable.c: Update.
9420 * python/py-objfile.c: Update.
9421 * python/py-param.c: Update.
9422 * python/py-prettyprint.c: Update.
9423 * python/py-progspace.c: Update.
9424 * python/py-record-btrace.c: Update.
9425 * python/py-record.c: Update.
9426 * python/py-symbol.c: Update.
9427 * python/py-type.c: Update.
9428 * python/py-unwind.c: Update.
9429 * python/py-utils.c: Update.
9430 * python/py-value.c: Update.
9431 * python/python.c: Update.
9432 * record-btrace.c: Update.
9433 * record-full.c: Update.
9434 * remote-fileio.c: Update.
9436 * riscv-tdep.c: Update.
9437 * rs6000-aix-tdep.c: Update.
9438 * rs6000-tdep.c: Update.
9439 * rust-exp.y: Update.
9440 * rust-lang.c: Update.
9441 * s390-tdep.c: Update.
9442 * selftest-arch.c: Update.
9443 * solib-dsbt.c: Update.
9444 * solib-frv.c: Update.
9445 * solib-spu.c: Update.
9446 * solib-svr4.c: Update.
9448 * sparc64-linux-tdep.c: Update.
9450 * symfile-mem.c: Update.
9451 * symmisc.c: Update.
9455 * tracefile-tfile.c: Update.
9456 * tui/tui.c: Update.
9457 * typeprint.c: Update.
9458 * unittests/cli-utils-selftests.c: Update.
9459 * unittests/parse-connection-spec-selftests.c: Update.
9461 * valprint.c: Update.
9464 * windows-nat.c: Update.
9465 * x86-linux-nat.c: Update.
9466 * xml-support.c: Update.
9468 2019-04-08 Tom Tromey <tom@tromey.com>
9470 * xml-support.c: Use C++ exception handling.
9471 * x86-linux-nat.c: Use C++ exception handling.
9472 * windows-nat.c: Use C++ exception handling.
9473 * varobj.c: Use C++ exception handling.
9474 * value.c: Use C++ exception handling.
9475 * valprint.c: Use C++ exception handling.
9476 * valops.c: Use C++ exception handling.
9477 * unittests/parse-connection-spec-selftests.c: Use C++ exception
9479 * unittests/cli-utils-selftests.c: Use C++ exception handling.
9480 * typeprint.c: Use C++ exception handling.
9481 * tui/tui.c: Use C++ exception handling.
9482 * tracefile-tfile.c: Use C++ exception handling.
9483 * top.c: Use C++ exception handling.
9484 * thread.c: Use C++ exception handling.
9485 * target.c: Use C++ exception handling.
9486 * symmisc.c: Use C++ exception handling.
9487 * symfile-mem.c: Use C++ exception handling.
9488 * stack.c: Use C++ exception handling.
9489 * sparc64-linux-tdep.c: Use C++ exception handling.
9490 * solib.c: Use C++ exception handling.
9491 * solib-svr4.c: Use C++ exception handling.
9492 * solib-spu.c: Use C++ exception handling.
9493 * solib-frv.c: Use C++ exception handling.
9494 * solib-dsbt.c: Use C++ exception handling.
9495 * selftest-arch.c: Use C++ exception handling.
9496 * s390-tdep.c: Use C++ exception handling.
9497 * rust-lang.c: Use C++ exception handling.
9498 * rust-exp.y: Use C++ exception handling.
9499 * rs6000-tdep.c: Use C++ exception handling.
9500 * rs6000-aix-tdep.c: Use C++ exception handling.
9501 * riscv-tdep.c: Use C++ exception handling.
9502 * remote.c: Use C++ exception handling.
9503 * remote-fileio.c: Use C++ exception handling.
9504 * record-full.c: Use C++ exception handling.
9505 * record-btrace.c: Use C++ exception handling.
9506 * python/python.c: Use C++ exception handling.
9507 * python/py-value.c: Use C++ exception handling.
9508 * python/py-utils.c: Use C++ exception handling.
9509 * python/py-unwind.c: Use C++ exception handling.
9510 * python/py-type.c: Use C++ exception handling.
9511 * python/py-symbol.c: Use C++ exception handling.
9512 * python/py-record.c: Use C++ exception handling.
9513 * python/py-record-btrace.c: Use C++ exception handling.
9514 * python/py-progspace.c: Use C++ exception handling.
9515 * python/py-prettyprint.c: Use C++ exception handling.
9516 * python/py-param.c: Use C++ exception handling.
9517 * python/py-objfile.c: Use C++ exception handling.
9518 * python/py-linetable.c: Use C++ exception handling.
9519 * python/py-lazy-string.c: Use C++ exception handling.
9520 * python/py-infthread.c: Use C++ exception handling.
9521 * python/py-inferior.c: Use C++ exception handling.
9522 * python/py-gdb-readline.c: Use C++ exception handling.
9523 * python/py-framefilter.c: Use C++ exception handling.
9524 * python/py-frame.c: Use C++ exception handling.
9525 * python/py-finishbreakpoint.c: Use C++ exception handling.
9526 * python/py-cmd.c: Use C++ exception handling.
9527 * python/py-breakpoint.c: Use C++ exception handling.
9528 * python/py-arch.c: Use C++ exception handling.
9529 * printcmd.c: Use C++ exception handling.
9530 * ppc-linux-tdep.c: Use C++ exception handling.
9531 * parse.c: Use C++ exception handling.
9532 * p-valprint.c: Use C++ exception handling.
9533 * objc-lang.c: Use C++ exception handling.
9534 * mi/mi-main.c: Use C++ exception handling.
9535 * mi/mi-interp.c: Use C++ exception handling.
9536 * mi/mi-cmd-stack.c: Use C++ exception handling.
9537 * mi/mi-cmd-break.c: Use C++ exception handling.
9538 * main.c: Use C++ exception handling.
9539 * linux-thread-db.c: Use C++ exception handling.
9540 * linux-tdep.c: Use C++ exception handling.
9541 * linux-nat.c: Use C++ exception handling.
9542 * linux-fork.c: Use C++ exception handling.
9543 * linespec.c: Use C++ exception handling.
9544 * language.c: Use C++ exception handling.
9545 * jit.c: Use C++ exception handling.
9546 * infrun.c: Use C++ exception handling.
9547 * infcmd.c: Use C++ exception handling.
9548 * infcall.c: Use C++ exception handling.
9549 * inf-loop.c: Use C++ exception handling.
9550 * i386-tdep.c: Use C++ exception handling.
9551 * i386-linux-tdep.c: Use C++ exception handling.
9552 * guile/scm-value.c: Use C++ exception handling.
9553 * guile/scm-type.c: Use C++ exception handling.
9554 * guile/scm-symtab.c: Use C++ exception handling.
9555 * guile/scm-symbol.c: Use C++ exception handling.
9556 * guile/scm-pretty-print.c: Use C++ exception handling.
9557 * guile/scm-ports.c: Use C++ exception handling.
9558 * guile/scm-param.c: Use C++ exception handling.
9559 * guile/scm-math.c: Use C++ exception handling.
9560 * guile/scm-lazy-string.c: Use C++ exception handling.
9561 * guile/scm-frame.c: Use C++ exception handling.
9562 * guile/scm-disasm.c: Use C++ exception handling.
9563 * guile/scm-cmd.c: Use C++ exception handling.
9564 * guile/scm-breakpoint.c: Use C++ exception handling.
9565 * guile/scm-block.c: Use C++ exception handling.
9566 * guile/guile-internal.h: Use C++ exception handling.
9567 * gnu-v3-abi.c: Use C++ exception handling.
9568 * gdbtypes.c: Use C++ exception handling.
9569 * frame.c: Use C++ exception handling.
9570 * frame-unwind.c: Use C++ exception handling.
9571 * fbsd-tdep.c: Use C++ exception handling.
9572 * f-valprint.c: Use C++ exception handling.
9573 * exec.c: Use C++ exception handling.
9574 * event-top.c: Use C++ exception handling.
9575 * event-loop.c: Use C++ exception handling.
9576 * eval.c: Use C++ exception handling.
9577 * dwarf2read.c: Use C++ exception handling.
9578 * dwarf2loc.c: Use C++ exception handling.
9579 * dwarf2-frame.c: Use C++ exception handling.
9580 * dwarf2-frame-tailcall.c: Use C++ exception handling.
9581 * dwarf-index-write.c: Use C++ exception handling.
9582 * dwarf-index-cache.c: Use C++ exception handling.
9583 * dtrace-probe.c: Use C++ exception handling.
9584 * disasm-selftests.c: Use C++ exception handling.
9585 * darwin-nat.c: Use C++ exception handling.
9586 * cp-valprint.c: Use C++ exception handling.
9587 * cp-support.c: Use C++ exception handling.
9588 * cp-abi.c: Use C++ exception handling.
9589 * corelow.c: Use C++ exception handling.
9590 * completer.c: Use C++ exception handling.
9591 * compile/compile-object-run.c: Use C++ exception handling.
9592 * compile/compile-object-load.c: Use C++ exception handling.
9593 * compile/compile-cplus-symbols.c: Use C++ exception handling.
9594 * compile/compile-c-symbols.c: Use C++ exception handling.
9595 * common/selftest.c: Use C++ exception handling.
9596 * common/new-op.c: Use C++ exception handling.
9597 * cli/cli-script.c: Use C++ exception handling.
9598 * cli/cli-interp.c: Use C++ exception handling.
9599 * cli/cli-cmds.c: Use C++ exception handling.
9600 * c-varobj.c: Use C++ exception handling.
9601 * btrace.c: Use C++ exception handling.
9602 * breakpoint.c: Use C++ exception handling.
9603 * break-catch-throw.c: Use C++ exception handling.
9604 * arch-utils.c: Use C++ exception handling.
9605 * amd64-tdep.c: Use C++ exception handling.
9606 * ada-valprint.c: Use C++ exception handling.
9607 * ada-typeprint.c: Use C++ exception handling.
9608 * ada-lang.c: Use C++ exception handling.
9609 * aarch64-tdep.c: Use C++ exception handling.
9611 2019-04-08 Tom Tromey <tom@tromey.com>
9613 * xml-support.c (gdb_xml_parser::parse): Update.
9614 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
9615 * value.c (show_convenience): Update.
9616 * unittests/cli-utils-selftests.c (test_number_or_range_parser)
9617 (test_parse_flags_qcs): Update.
9618 * thread.c (thr_try_catch_cmd): Update.
9619 * target.c (target_translate_tls_address): Update.
9620 * stack.c (print_frame_arg, read_frame_local, read_frame_arg)
9621 (info_frame_command_core, frame_apply_command_count): Update.
9622 * rust-exp.y (rust_lex_exception_test): Update.
9623 * riscv-tdep.c (riscv_print_one_register_info): Update.
9624 * remote.c (remote_target::enable_btrace): Update.
9625 * record-btrace.c (record_btrace_enable_warn): Update.
9626 * python/py-utils.c (gdbpy_convert_exception): Update.
9627 * printcmd.c (do_one_display, print_variable_and_value): Update.
9628 * mi/mi-main.c (mi_print_exception): Update.
9629 * mi/mi-interp.c (mi_cmd_interpreter_exec): Use SCOPE_EXIT.
9630 * mi/mi-cmd-stack.c (list_arg_or_local): Update.
9631 * linux-nat.c (linux_nat_target::attach): Update.
9632 * linux-fork.c (class scoped_switch_fork_info): Update.
9633 * infrun.c (displaced_step_prepare): Update.
9634 * infcall.c (call_function_by_hand_dummy): Update.
9635 * guile/scm-exception.c (gdbscm_scm_from_gdb_exception): Update.
9636 * gnu-v3-abi.c (print_one_vtable): Update.
9637 * frame.c (get_prev_frame_always): Update.
9638 * f-valprint.c (info_common_command_for_block): Update.
9639 * exec.c (try_open_exec_file): Update.
9640 * exceptions.c (print_exception, exception_print)
9641 (exception_fprintf, exception_print_same): Update.
9642 * dwarf2-frame.c (dwarf2_build_frame_info): Update.
9643 * dwarf-index-cache.c (index_cache::store)
9644 (index_cache::lookup_gdb_index): Update.
9645 * darwin-nat.c (maybe_cache_shell): Update.
9646 * cp-valprint.c (cp_print_value_fields): Update.
9647 * compile/compile-cplus-symbols.c (gcc_cplus_convert_symbol)
9648 (gcc_cplus_symbol_address): Update.
9649 * compile/compile-c-symbols.c (gcc_convert_symbol)
9650 (gcc_symbol_address, generate_c_for_for_one_variable): Update.
9651 * common/selftest.c: Update.
9652 * common/common-exceptions.h (struct gdb_exception) <message>: Now
9654 (exception_try_scope_entry, exception_try_scope_exit): Don't
9656 (struct exception_try_scope): Remove.
9657 (TRY): Don't use exception_try_scope.
9658 (struct gdb_exception): Add constructor, operator=.
9660 (struct gdb_exception_RETURN_MASK_ALL)
9661 (struct gdb_exception_RETURN_MASK_ERROR)
9662 (struct gdb_exception_RETURN_MASK_QUIT): Add constructor.
9663 (struct gdb_quit_bad_alloc): Update.
9664 * common/common-exceptions.c (exception_none): Change
9666 (struct catcher) <state, exception>: Initialize inline.
9667 <prev>: Remove member.
9668 (current_catcher): Remove.
9669 (catchers): New global.
9670 (exceptions_state_mc_init): Simplify.
9671 (catcher_pop): Remove.
9672 (exceptions_state_mc, exceptions_state_mc_catch): Update.
9673 (try_scope_depth, exception_try_scope_entry)
9674 (exception_try_scope_exit): Remove.
9675 (throw_exception_sjlj): Update.
9676 (exception_messages, exception_messages_size): Remove.
9677 (throw_it): Simplify.
9678 (gdb_exception_sliced_copy): Remove.
9679 (throw_exception_cxx): Update.
9680 * cli/cli-script.c (script_from_file): Update.
9681 * breakpoint.c (insert_bp_location, update_breakpoint_locations):
9683 * ada-valprint.c (ada_val_print): Update.
9684 * ada-lang.c (ada_to_fixed_type_1, ada_exception_name_addr)
9685 (create_excep_cond_exprs): Update.
9687 2019-04-08 Tom Tromey <tom@tromey.com>
9689 * common/common-exceptions.h (GDB_XCPT_SJMP, GDB_XCPT_TRY)
9690 (GDB_XCPT_RAW_TRY, GDB_XCPT): Remove.
9691 (TRY, CATCH, END_CATCH): Remove some definitions.
9692 * common/common-exceptions.c: Don't use GDB_XCPT.
9693 (catcher_list_size): Remove.
9694 (throw_exception, throw_it): Simplify.
9696 2019-04-05 Tom Tromey <tom@tromey.com>
9698 Revert the header-sorting patch.
9699 * ft32-tdep.c: Revert.
9700 * frv-tdep.c: Revert.
9701 * frv-linux-tdep.c: Revert.
9703 * frame-unwind.c: Revert.
9704 * frame-base.c: Revert.
9705 * fork-child.c: Revert.
9706 * findvar.c: Revert.
9707 * findcmd.c: Revert.
9708 * filesystem.c: Revert.
9709 * filename-seen-cache.h: Revert.
9710 * filename-seen-cache.c: Revert.
9711 * fbsd-tdep.c: Revert.
9712 * fbsd-nat.h: Revert.
9713 * fbsd-nat.c: Revert.
9714 * f-valprint.c: Revert.
9715 * f-typeprint.c: Revert.
9717 * extension.h: Revert.
9718 * extension.c: Revert.
9719 * extension-priv.h: Revert.
9720 * expprint.c: Revert.
9723 * exceptions.c: Revert.
9724 * event-top.c: Revert.
9725 * event-loop.c: Revert.
9727 * elfread.c: Revert.
9728 * dwarf2read.h: Revert.
9729 * dwarf2read.c: Revert.
9730 * dwarf2loc.c: Revert.
9731 * dwarf2expr.h: Revert.
9732 * dwarf2expr.c: Revert.
9733 * dwarf2-frame.c: Revert.
9734 * dwarf2-frame-tailcall.c: Revert.
9735 * dwarf-index-write.h: Revert.
9736 * dwarf-index-write.c: Revert.
9737 * dwarf-index-common.c: Revert.
9738 * dwarf-index-cache.h: Revert.
9739 * dwarf-index-cache.c: Revert.
9740 * dummy-frame.c: Revert.
9741 * dtrace-probe.c: Revert.
9744 * disasm-selftests.c: Revert.
9745 * dictionary.c: Revert.
9746 * dicos-tdep.c: Revert.
9747 * demangle.c: Revert.
9750 * darwin-nat.h: Revert.
9751 * darwin-nat.c: Revert.
9752 * darwin-nat-info.c: Revert.
9753 * d-valprint.c: Revert.
9754 * d-namespace.c: Revert.
9757 * csky-tdep.c: Revert.
9758 * csky-linux-tdep.c: Revert.
9759 * cris-tdep.c: Revert.
9760 * cris-linux-tdep.c: Revert.
9761 * cp-valprint.c: Revert.
9762 * cp-support.c: Revert.
9763 * cp-namespace.c: Revert.
9765 * corelow.c: Revert.
9766 * corefile.c: Revert.
9767 * continuations.c: Revert.
9768 * completer.h: Revert.
9769 * completer.c: Revert.
9770 * complaints.c: Revert.
9771 * coffread.c: Revert.
9772 * coff-pe-read.c: Revert.
9773 * cli-out.h: Revert.
9774 * cli-out.c: Revert.
9775 * charset.c: Revert.
9776 * c-varobj.c: Revert.
9777 * c-valprint.c: Revert.
9778 * c-typeprint.c: Revert.
9780 * buildsym.c: Revert.
9781 * buildsym-legacy.c: Revert.
9782 * build-id.h: Revert.
9783 * build-id.c: Revert.
9785 * bsd-uthread.c: Revert.
9786 * breakpoint.h: Revert.
9787 * breakpoint.c: Revert.
9788 * break-catch-throw.c: Revert.
9789 * break-catch-syscall.c: Revert.
9790 * break-catch-sig.c: Revert.
9791 * blockframe.c: Revert.
9793 * bfin-tdep.c: Revert.
9794 * bfin-linux-tdep.c: Revert.
9795 * bfd-target.c: Revert.
9797 * ax-general.c: Revert.
9800 * avr-tdep.c: Revert.
9802 * auto-load.c: Revert.
9803 * arm-wince-tdep.c: Revert.
9804 * arm-tdep.c: Revert.
9805 * arm-symbian-tdep.c: Revert.
9806 * arm-pikeos-tdep.c: Revert.
9807 * arm-obsd-tdep.c: Revert.
9808 * arm-nbsd-tdep.c: Revert.
9809 * arm-nbsd-nat.c: Revert.
9810 * arm-linux-tdep.c: Revert.
9811 * arm-linux-nat.c: Revert.
9812 * arm-fbsd-tdep.c: Revert.
9813 * arm-fbsd-nat.c: Revert.
9814 * arm-bsd-tdep.c: Revert.
9815 * arch-utils.c: Revert.
9816 * arc-tdep.c: Revert.
9817 * arc-newlib-tdep.c: Revert.
9818 * annotate.h: Revert.
9819 * annotate.c: Revert.
9820 * amd64-windows-tdep.c: Revert.
9821 * amd64-windows-nat.c: Revert.
9822 * amd64-tdep.c: Revert.
9823 * amd64-sol2-tdep.c: Revert.
9824 * amd64-obsd-tdep.c: Revert.
9825 * amd64-obsd-nat.c: Revert.
9826 * amd64-nbsd-tdep.c: Revert.
9827 * amd64-nbsd-nat.c: Revert.
9828 * amd64-nat.c: Revert.
9829 * amd64-linux-tdep.c: Revert.
9830 * amd64-linux-nat.c: Revert.
9831 * amd64-fbsd-tdep.c: Revert.
9832 * amd64-fbsd-nat.c: Revert.
9833 * amd64-dicos-tdep.c: Revert.
9834 * amd64-darwin-tdep.c: Revert.
9835 * amd64-bsd-nat.c: Revert.
9836 * alpha-tdep.c: Revert.
9837 * alpha-obsd-tdep.c: Revert.
9838 * alpha-nbsd-tdep.c: Revert.
9839 * alpha-mdebug-tdep.c: Revert.
9840 * alpha-linux-tdep.c: Revert.
9841 * alpha-linux-nat.c: Revert.
9842 * alpha-bsd-tdep.c: Revert.
9843 * alpha-bsd-nat.c: Revert.
9844 * aix-thread.c: Revert.
9846 * addrmap.c: Revert.
9847 * ada-varobj.c: Revert.
9848 * ada-valprint.c: Revert.
9849 * ada-typeprint.c: Revert.
9850 * ada-tasks.c: Revert.
9851 * ada-lang.c: Revert.
9852 * aarch64-tdep.c: Revert.
9853 * aarch64-ravenscar-thread.c: Revert.
9854 * aarch64-newlib-tdep.c: Revert.
9855 * aarch64-linux-tdep.c: Revert.
9856 * aarch64-linux-nat.c: Revert.
9857 * aarch64-fbsd-tdep.c: Revert.
9858 * aarch64-fbsd-nat.c: Revert.
9859 * aarch32-linux-nat.c: Revert.
9861 2019-04-05 Tom Tromey <tom@tromey.com>
9863 * ft32-tdep.c: Sort headers.
9864 * frv-tdep.c: Sort headers.
9865 * frv-linux-tdep.c: Sort headers.
9866 * frame.c: Sort headers.
9867 * frame-unwind.c: Sort headers.
9868 * frame-base.c: Sort headers.
9869 * fork-child.c: Sort headers.
9870 * findvar.c: Sort headers.
9871 * findcmd.c: Sort headers.
9872 * filesystem.c: Sort headers.
9873 * filename-seen-cache.h: Sort headers.
9874 * filename-seen-cache.c: Sort headers.
9875 * fbsd-tdep.c: Sort headers.
9876 * fbsd-nat.h: Sort headers.
9877 * fbsd-nat.c: Sort headers.
9878 * f-valprint.c: Sort headers.
9879 * f-typeprint.c: Sort headers.
9880 * f-lang.c: Sort headers.
9881 * extension.h: Sort headers.
9882 * extension.c: Sort headers.
9883 * extension-priv.h: Sort headers.
9884 * expprint.c: Sort headers.
9885 * exec.h: Sort headers.
9886 * exec.c: Sort headers.
9887 * exceptions.c: Sort headers.
9888 * event-top.c: Sort headers.
9889 * event-loop.c: Sort headers.
9890 * eval.c: Sort headers.
9891 * elfread.c: Sort headers.
9892 * dwarf2read.h: Sort headers.
9893 * dwarf2read.c: Sort headers.
9894 * dwarf2loc.c: Sort headers.
9895 * dwarf2expr.h: Sort headers.
9896 * dwarf2expr.c: Sort headers.
9897 * dwarf2-frame.c: Sort headers.
9898 * dwarf2-frame-tailcall.c: Sort headers.
9899 * dwarf-index-write.h: Sort headers.
9900 * dwarf-index-write.c: Sort headers.
9901 * dwarf-index-common.c: Sort headers.
9902 * dwarf-index-cache.h: Sort headers.
9903 * dwarf-index-cache.c: Sort headers.
9904 * dummy-frame.c: Sort headers.
9905 * dtrace-probe.c: Sort headers.
9906 * disasm.h: Sort headers.
9907 * disasm.c: Sort headers.
9908 * disasm-selftests.c: Sort headers.
9909 * dictionary.c: Sort headers.
9910 * dicos-tdep.c: Sort headers.
9911 * demangle.c: Sort headers.
9912 * dcache.h: Sort headers.
9913 * dcache.c: Sort headers.
9914 * darwin-nat.h: Sort headers.
9915 * darwin-nat.c: Sort headers.
9916 * darwin-nat-info.c: Sort headers.
9917 * d-valprint.c: Sort headers.
9918 * d-namespace.c: Sort headers.
9919 * d-lang.c: Sort headers.
9920 * ctf.c: Sort headers.
9921 * csky-tdep.c: Sort headers.
9922 * csky-linux-tdep.c: Sort headers.
9923 * cris-tdep.c: Sort headers.
9924 * cris-linux-tdep.c: Sort headers.
9925 * cp-valprint.c: Sort headers.
9926 * cp-support.c: Sort headers.
9927 * cp-namespace.c: Sort headers.
9928 * cp-abi.c: Sort headers.
9929 * corelow.c: Sort headers.
9930 * corefile.c: Sort headers.
9931 * continuations.c: Sort headers.
9932 * completer.h: Sort headers.
9933 * completer.c: Sort headers.
9934 * complaints.c: Sort headers.
9935 * coffread.c: Sort headers.
9936 * coff-pe-read.c: Sort headers.
9937 * cli-out.h: Sort headers.
9938 * cli-out.c: Sort headers.
9939 * charset.c: Sort headers.
9940 * c-varobj.c: Sort headers.
9941 * c-valprint.c: Sort headers.
9942 * c-typeprint.c: Sort headers.
9943 * c-lang.c: Sort headers.
9944 * buildsym.c: Sort headers.
9945 * buildsym-legacy.c: Sort headers.
9946 * build-id.h: Sort headers.
9947 * build-id.c: Sort headers.
9948 * btrace.c: Sort headers.
9949 * bsd-uthread.c: Sort headers.
9950 * breakpoint.h: Sort headers.
9951 * breakpoint.c: Sort headers.
9952 * break-catch-throw.c: Sort headers.
9953 * break-catch-syscall.c: Sort headers.
9954 * break-catch-sig.c: Sort headers.
9955 * blockframe.c: Sort headers.
9956 * block.c: Sort headers.
9957 * bfin-tdep.c: Sort headers.
9958 * bfin-linux-tdep.c: Sort headers.
9959 * bfd-target.c: Sort headers.
9960 * bcache.c: Sort headers.
9961 * ax-general.c: Sort headers.
9962 * ax-gdb.h: Sort headers.
9963 * ax-gdb.c: Sort headers.
9964 * avr-tdep.c: Sort headers.
9965 * auxv.c: Sort headers.
9966 * auto-load.c: Sort headers.
9967 * arm-wince-tdep.c: Sort headers.
9968 * arm-tdep.c: Sort headers.
9969 * arm-symbian-tdep.c: Sort headers.
9970 * arm-pikeos-tdep.c: Sort headers.
9971 * arm-obsd-tdep.c: Sort headers.
9972 * arm-nbsd-tdep.c: Sort headers.
9973 * arm-nbsd-nat.c: Sort headers.
9974 * arm-linux-tdep.c: Sort headers.
9975 * arm-linux-nat.c: Sort headers.
9976 * arm-fbsd-tdep.c: Sort headers.
9977 * arm-fbsd-nat.c: Sort headers.
9978 * arm-bsd-tdep.c: Sort headers.
9979 * arch-utils.c: Sort headers.
9980 * arc-tdep.c: Sort headers.
9981 * arc-newlib-tdep.c: Sort headers.
9982 * annotate.h: Sort headers.
9983 * annotate.c: Sort headers.
9984 * amd64-windows-tdep.c: Sort headers.
9985 * amd64-windows-nat.c: Sort headers.
9986 * amd64-tdep.c: Sort headers.
9987 * amd64-sol2-tdep.c: Sort headers.
9988 * amd64-obsd-tdep.c: Sort headers.
9989 * amd64-obsd-nat.c: Sort headers.
9990 * amd64-nbsd-tdep.c: Sort headers.
9991 * amd64-nbsd-nat.c: Sort headers.
9992 * amd64-nat.c: Sort headers.
9993 * amd64-linux-tdep.c: Sort headers.
9994 * amd64-linux-nat.c: Sort headers.
9995 * amd64-fbsd-tdep.c: Sort headers.
9996 * amd64-fbsd-nat.c: Sort headers.
9997 * amd64-dicos-tdep.c: Sort headers.
9998 * amd64-darwin-tdep.c: Sort headers.
9999 * amd64-bsd-nat.c: Sort headers.
10000 * alpha-tdep.c: Sort headers.
10001 * alpha-obsd-tdep.c: Sort headers.
10002 * alpha-nbsd-tdep.c: Sort headers.
10003 * alpha-mdebug-tdep.c: Sort headers.
10004 * alpha-linux-tdep.c: Sort headers.
10005 * alpha-linux-nat.c: Sort headers.
10006 * alpha-bsd-tdep.c: Sort headers.
10007 * alpha-bsd-nat.c: Sort headers.
10008 * aix-thread.c: Sort headers.
10009 * agent.c: Sort headers.
10010 * addrmap.c: Sort headers.
10011 * ada-varobj.c: Sort headers.
10012 * ada-valprint.c: Sort headers.
10013 * ada-typeprint.c: Sort headers.
10014 * ada-tasks.c: Sort headers.
10015 * ada-lang.c: Sort headers.
10016 * aarch64-tdep.c: Sort headers.
10017 * aarch64-ravenscar-thread.c: Sort headers.
10018 * aarch64-newlib-tdep.c: Sort headers.
10019 * aarch64-linux-tdep.c: Sort headers.
10020 * aarch64-linux-nat.c: Sort headers.
10021 * aarch64-fbsd-tdep.c: Sort headers.
10022 * aarch64-fbsd-nat.c: Sort headers.
10023 * aarch32-linux-nat.c: Sort headers.
10025 2019-04-04 Tom Tromey <tom@tromey.com>
10027 * varobj.c (varobj_create): Update.
10028 * rust-exp.y (struct rust_parser) <update_innermost_block,
10029 lookup_symbol>: New methods.
10030 (rust_parser::update_innermost_block, rust_parser::lookup_symbol):
10032 (rust_parser::rust_lookup_type)
10033 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10034 * printcmd.c (display_command, do_one_display): Update.
10035 * parser-defs.h (struct parser_state) <parser_state>: Add
10036 "tracker" parameter.
10037 (block_tracker): New member.
10038 (class innermost_block_tracker) <innermost_block_tracker>: Add
10040 <reset>: Remove method.
10041 (innermost_block): Don't declare.
10042 (null_post_parser): Update.
10043 * parse.c (innermost_block): Remove global.
10044 (write_dollar_variable): Update.
10045 (parse_exp_1, parse_exp_in_context): Add "tracker" parameter.
10046 Remove "tracker_types" parameter.
10047 (parse_expression): Add "tracker" parameter.
10048 (parse_expression_for_completion): Update.
10049 (null_post_parser): Add "tracker" parameter.
10050 * p-exp.y: Update rules.
10051 * m2-exp.y: Update rules.
10052 * language.h (struct language_defn) <la_post_parser>: Add
10053 "tracker" parameter.
10054 * go-exp.y: Update rules.
10055 * f-exp.y: Update rules.
10056 * expression.h (parse_expression, parse_exp_1): Add "tracker"
10058 * d-exp.y: Update rules.
10059 * c-exp.y: Update rules.
10060 * breakpoint.c (set_breakpoint_condition): Create an
10061 innermost_block_tracker.
10062 (watch_command_1): Likewise.
10063 * ada-lang.c (resolve): Add "tracker" parameter.
10064 (resolve_subexp): Likewise.
10065 * ada-exp.y (write_var_from_sym): Update.
10067 2019-04-04 Tom Tromey <tom@tromey.com>
10069 * type-stack.h: New file.
10070 * type-stack.c: New file.
10071 * parser-defs.h (enum type_pieces, union type_stack_elt): Move to
10073 (insert_into_type_stack, insert_type, push_type, push_type_int)
10074 (insert_type_address_space, pop_type, pop_type_int)
10075 (pop_typelist, pop_type_stack, append_type_stack)
10076 (push_type_stack, get_type_stack, push_typelist)
10077 (follow_type_instance_flags, follow_types): Don't declare.
10078 * parse.c (type_stack): Remove global.
10079 (parse_exp_in_context): Update.
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): Remove (moved to
10086 * f-exp.y (type_stack): New global.
10088 (push_kind_type, f_parse): Update.
10089 * d-exp.y (type_stack): New global.
10092 * c-exp.y (struct c_parse_state) <type_stack>: New member.
10094 * Makefile.in (COMMON_SFILES): Add type-stack.c.
10095 (HFILES_NO_SRCDIR): Add type-stack.h.
10097 2019-04-04 Tom Tromey <tom@tromey.com>
10099 * rust-exp.y (rust_parser::lex_identifier, rustyylex)
10100 (rust_parser::convert_ast_to_expression, rust_parse)
10101 (rust_lex_test_completion, rust_lex_tests): Update.
10102 * parser-defs.h (struct expr_completion_state): New.
10103 (struct parser_state) <parser_state>: Add completion parameter.
10104 <mark_struct_expression, mark_completion_tag>: New methods.
10105 <parse_completion, m_completion_state>: New members.
10106 (prefixify_expression, null_post_parser): Update.
10107 (mark_struct_expression, mark_completion_tag): Don't declare.
10108 * parse.c (parse_completion, expout_last_struct)
10109 (expout_tag_completion_type, expout_completion_name): Remove
10111 (parser_state::mark_struct_expression)
10112 (parser_state::mark_completion_tag): Now methods.
10113 (prefixify_expression): Add last_struct parameter.
10114 (prefixify_subexp): Likewise.
10115 (parse_exp_1): Update.
10116 (parse_exp_in_context): Add cstate parameter. Update.
10117 (parse_expression_for_completion): Create an
10118 expr_completion_state.
10119 (null_post_parser): Add "completion" parameter.
10120 * p-exp.y: Update rules.
10122 * language.h (struct language_defn) <la_post_parser>: Add
10123 "completing" parameter.
10124 * go-exp.y: Update rules.
10125 (lex_one_token): Update.
10126 * expression.h (parse_completion): Don't declare.
10127 * d-exp.y: Update rules.
10128 (lex_one_token): Update rules.
10129 * c-exp.y: Update rules.
10130 (lex_one_token): Update.
10131 * ada-lang.c (resolve): Add "parse_completion" parameter.
10132 (resolve_subexp): Likewise.
10133 (ada_resolve_function): Likewise.
10135 2019-04-04 Tom Tromey <tom@tromey.com>
10137 * parser-defs.h (struct parser_state) <start_arglist,
10138 end_arglist>: New methods.
10139 <arglist_len, m_funcall_chain>: New members.
10140 (arglist_len, start_arglist, end_arglist): Don't declare.
10141 * parse.c (arglist_len, funcall_chain): Remove global.
10142 (start_arglist, end_arglist): Remove functions.
10143 (parse_exp_in_context): Update.
10144 * p-exp.y: Update rules.
10145 * m2-exp.y: Update rules.
10146 * go-exp.y: Update rules.
10147 * f-exp.y: Update rules.
10148 * d-exp.y: Update rules.
10149 * c-exp.y: Update rules.
10151 2019-04-04 Tom Tromey <tom@tromey.com>
10153 * rust-exp.y (struct rust_parser) <lex_hex, lex_escape,
10154 lex_operator, push_back>: New methods.
10156 (rust_parser::lex_hex, lex_escape): Rename and update.
10157 (rust_parser::lex_string, rust_parser::lex_identifier): Update.
10158 (rust_parser::lex_operator): Rename and update.
10159 (rust_parser::lex_number, rustyylex, rustyyerror)
10160 (rust_lex_test_init, rust_lex_test_sequence)
10161 (rust_lex_test_push_back, rust_lex_tests): Update.
10162 * parser-defs.h (struct parser_state) <parser_state>: Add "input"
10164 <lexptr, prev_lexptr>: New members.
10165 (lexptr, prev_lexptr): Don't declare.
10166 * parse.c (lexptr, prev_lexptr): Remove globals.
10167 (parse_exp_in_context): Update.
10168 * p-exp.y (yylex, yyerror): Update.
10169 * m2-exp.y (parse_number, yylex, yyerror): Update.
10170 * go-exp.y (lex_one_token, yyerror): Update.
10171 * f-exp.y (match_string_literal, yylex, yyerror): Update.
10172 * d-exp.y (lex_one_token, yyerror): Update.
10173 * c-exp.y (scan_macro_expansion, finished_macro_expansion)
10174 (lex_one_token, yyerror): Update.
10175 * ada-lex.l (YY_INPUT): Update.
10176 (rewind_to_char): Update.
10177 * ada-exp.y (yyerror): Update.
10179 2019-04-04 Tom Tromey <tom@tromey.com>
10181 * rust-exp.y (rustyylex, rust_lex_tests): Update.
10182 * parser-defs.h (struct parser_state) <parser_state>: Add new
10184 <comma_terminates>: New member.
10185 (comma_terminates): Don't declare global.
10186 * parse.c (comma_terminates): Remove global.
10187 (parse_exp_in_context): Update.
10188 * p-exp.y (yylex): Update.
10189 * m2-exp.y (yylex): Update.
10190 * go-exp.y (lex_one_token): Update.
10191 * f-exp.y (yylex): Update.
10192 * d-exp.y (lex_one_token): Update.
10193 * c-exp.y (lex_one_token): Update.
10194 * ada-lex.l: Update.
10196 2019-04-04 Tom Tromey <tom@tromey.com>
10198 * rust-exp.y (struct rust_parser) <paren_depth>: New member.
10199 (rustyylex, rust_lex_test_init, rust_lex_test_one)
10200 (rust_lex_test_sequence, rust_lex_test_push_back): Update.
10201 * parser-defs.h (paren_depth): Don't declare.
10202 * parse.c (paren_depth): Remove global.
10203 (parse_exp_in_context): Update.
10204 * p-exp.y (paren_depth): New global.
10205 (pascal_parse): Initialize it.
10206 * m2-exp.y (paren_depth): New global.
10207 (m2_parse): Initialize it.
10208 * go-exp.y (paren_depth): New global.
10209 (go_parse): Initialize it.
10210 * f-exp.y (paren_depth): New global.
10211 (f_parse): Initialize it.
10212 * d-exp.y (paren_depth): New global.
10213 (d_parse): Initialize it.
10214 * c-exp.y (paren_depth): New global.
10215 (c_parse): Initialize it.
10216 * ada-lex.l (paren_depth): New global.
10217 (lexer_init): Initialize it.
10219 2019-04-04 Tom Tromey <tom@tromey.com>
10221 * rust-exp.y (rust_parser::crate_name, rust_parser::super_name)
10222 (rust_parser::convert_ast_to_type)
10223 (rust_parser::convert_ast_to_expression, rust_lex_tests): Update.
10224 * parser-defs.h (struct parser_state) <parser_state>: Add
10225 parameters. Initialize new members.
10226 <expression_context_block, expression_context_pc>: New members.
10227 * parse.c (expression_context_block, expression_context_pc):
10229 (parse_exp_in_context): Update.
10230 * p-exp.y: Update all rules.
10232 * m2-exp.y: Update all rules.
10234 * go-exp.y (yylex): Update.
10235 * f-exp.y (yylex): Update.
10236 * d-exp.y: Update all rules.
10238 * c-exp.y: Update all rules.
10239 (lex_one_token, classify_name, yylex, c_parse): Update.
10240 * ada-exp.y (write_var_or_type, write_name_assoc): Update.
10242 2019-04-04 Tom Tromey <tom@tromey.com>
10244 * gdbarch.h, gdbarch.c: Rebuild.
10245 * gdbarch.sh (dtrace_parse_probe_argument): Change type.
10247 (struct stap_parse_info): Replace "parser_state" with
10249 * parser-defs.h (struct expr_builder): Rename from "parser_state".
10250 (parser_state): New class.
10251 * parse.c (expr_builder): Rename.
10252 (expr_builder::release): Rename.
10253 (write_exp_elt, write_exp_elt_opcode, write_exp_elt_sym)
10254 (write_exp_elt_msym, write_exp_elt_block, write_exp_elt_objfile)
10255 (write_exp_elt_longcst, write_exp_elt_floatcst)
10256 (write_exp_elt_type, write_exp_elt_intern, write_exp_string)
10257 (write_exp_string_vector, write_exp_bitstring)
10258 (write_exp_msymbol, mark_struct_expression)
10259 (write_dollar_variable)
10260 (insert_type_address_space, increase_expout_size): Replace
10261 "parser_state" with "expr_builder".
10262 * dtrace-probe.c: Replace "parser_state" with "expr_builder".
10263 * amd64-linux-tdep.c (amd64_dtrace_parse_probe_argument): Replace
10264 "parser_state" with "expr_builder".
10266 2019-04-04 Tom Tromey <tom@tromey.com>
10268 * rust-exp.y: Replace "parse_language" with method call.
10270 (yylex): Replace "parse_language" with method call.
10272 (yylex): Replace "parse_language" with method call.
10273 * go-exp.y (classify_name): Replace "parse_language" with method
10275 * f-exp.y (yylex): Replace "parse_language" with method call.
10276 * d-exp.y (lex_one_token): Replace "parse_language" with method
10279 (lex_one_token, classify_name, yylex): Replace "parse_language"
10281 * ada-exp.y (find_primitive_type, type_char)
10282 (type_system_address): Replace "parse_language" with method call.
10284 2019-04-04 Tom Tromey <tom@tromey.com>
10286 * rust-exp.y: Replace "parse_gdbarch" with method call.
10287 * parse.c (write_dollar_variable, insert_type_address_space):
10288 Replace "parse_gdbarch" with method call.
10289 * p-exp.y (parse_type, yylex): Replace "parse_gdbarch" with method
10291 * objc-lang.c (end_msglist): Replace "parse_gdbarch" with method
10293 * m2-exp.y (parse_type, parse_m2_type, yylex): Replace
10294 "parse_gdbarch" with method call.
10295 * go-exp.y (parse_type, classify_name): Replace "parse_gdbarch"
10297 * f-exp.y (parse_type, parse_f_type, yylex): Replace
10298 "parse_gdbarch" with method call.
10299 * d-exp.y (parse_type, parse_d_type, lex_one_token): Replace
10300 "parse_gdbarch" with method call.
10301 * c-exp.y (parse_type, parse_number, classify_name): Replace
10302 "parse_gdbarch" with method call.
10303 * ada-lex.l: Replace "parse_gdbarch" with method call.
10304 * ada-exp.y (parse_type, find_primitive_type, type_char)
10305 (type_system_address): Replace "parse_gdbarch" with method call.
10307 2019-04-04 Tom Tromey <tom@tromey.com>
10309 * dtrace-probe.c (dtrace_probe::build_arg_exprs): Update.
10310 * stap-probe.c (stap_parse_argument): Update.
10311 * stap-probe.h (struct stap_parse_info) <stap_parse_info>: Remove
10312 initial_size parameter.
10313 * rust-exp.y (rust_lex_tests): Update.
10314 * parse.c (parser_state): Update.
10315 (parse_exp_in_context): Update.
10316 * parser-defs.h (struct parser_state) <parser_state>: Remove
10317 "initial_size" parameter.
10319 2019-04-04 Tom Tromey <tom@tromey.com>
10321 * parser-defs.h (increase_expout_size): Don't declare.
10322 * parse.c (increase_expout_size): Now static.
10324 2019-04-04 Thomas Schwinge <thomas@codesourcery.com>
10326 * gnu-nat.c (gnu_nat_target::wait): Fix
10327 target_waitstatus_to_string call.
10329 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10331 * eval.c (evaluate_subexp_standard): Handle internal functions
10332 during Fortran function call handling.
10334 2019-04-01 Andrew Burgess <andrew.burgess@embecosm.com>
10336 * NEWS: Mention new internal functions.
10337 * dwarf2read.c (dwarf2_init_complex_target_type): New function.
10338 (read_base_type): Use dwarf2_init_complex_target_type.
10339 * value.c (creal_internal_fn): New function.
10340 (cimag_internal_fn): New function.
10341 (_initialize_values): Register new internal functions.
10343 2019-04-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10345 * infrun.c (stop_all_threads): If debug_infrun, always
10346 trace the wait status after wait_one, using
10347 target_waitstatus_to_string and target_pid_to_str.
10348 (handle_inferior_event): Replace various trace of
10349 wait status kind by a single trace.
10350 * gdb/gnu-nat.c (gnu_nat_target::wait): Replace local
10351 wait status kind image by target_waitstatus_to_string.
10352 * target/waitstatus.c (target_waitstatus_to_string): Fix
10355 2019-04-01 Tom Tromey <tromey@adacore.com>
10358 * dwarf2read.c (partial_die_info::read): Handle DW_AT_ranges.
10360 2019-04-01 Sergio Durigan Junior <sergiodj@redhat.com>
10361 Pedro Alves <palves@redhat.com>
10363 * top.c (quit_force): Call 'finalize_values'.
10364 * value.c (finalize_values): New function.
10365 * value.h (finalize_values): Declare.
10367 2019-03-30 Eli Zaretskii <eliz@gnu.org>
10369 * NEWS: Announce $_gdb_major and $_gdb_minor.
10371 * top.c (init_gdb_version_vars): New function.
10372 (gdb_init): Call init_gdb_version_vars.
10374 2019-03-29 Tom Tromey <tromey@adacore.com>
10376 * printcmd.c (_initialize_printcmd): Add usage lines. Update some
10377 help text. Remove dead code.
10379 2019-03-29 Keith Seitz <keiths@redhat.com>
10381 From Siddhesh Poyarekar:
10382 * f-lang.h (f77_get_upperbound): Return LONGEST.
10383 (f77_get_lowerbound): Likewise.
10384 * f-typeprint.c (f_type_print_varspec_suffix): Expand
10385 UPPER_BOUND and LOWER_BOUND to LONGEST. Use plongest to format
10387 (f_type_print_base): Expand UPPER_BOUND to LONGEST. Use
10388 plongest to format print it.
10389 * f-valprint.c (f77_get_lowerbound): Return LONGEST.
10390 (f77_get_upperbound): Likewise.
10391 (f77_get_dynamic_length_of_aggregate): Expand UPPER_BOUND,
10392 LOWER_BOUND to LONGEST.
10393 (f77_create_arrayprint_offset_tbl): Likewise.
10395 2019-03-29 Keith Seitz <keiths@redhat.com>
10397 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10398 %s/pulongest for TYPE_LENGTH instead of %d in format
10400 * ada-typerint.c (ada_print_type): Likewise.
10401 * amd64-windows-tdep.c (amd64_windows_store_arg_in_reg): Likewise.
10402 * compile/compile-c-support.c (generate_register_struct): Likewise.
10403 * gdbtypes.c (recursive_dump_type): Likewise.
10404 * gdbtypes.h (struct type) <length>: Change type to ULONGEST.
10405 * m2-typeprint.c (m2_array): Use %s/pulongest for TYPE_LENGTH
10406 instead of %d in format strings.
10407 * riscv-tdep.c (riscv_type_alignment): Cast second argument
10408 to std::min to ULONGEST.
10409 * symmisc.c (print_symbol): Use %s/pulongest for TYPE_LENGTH
10410 instead of %d in format strings.
10411 * tracepoint.c (info_scope_command): Likewise.
10412 * typeprint.c (print_offset_data::update)
10413 (print_offset_data::finish): Likewise.
10414 * xtensa-tdep.c (xtensa_store_return_value)
10415 (xtensa_push_dummy_call): Likewise.
10417 2019-03-28 Jon Turney <jon.turney@dronecode.org.uk>
10419 * windows-nat.c (display_selector): Fixed format specifications
10422 2019-03-28 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10424 * infrun.c (follow_exec): Call target_terminal::ours_for_output.
10426 2019-03-28 Sandra Loosemore <sandra@codesourcery.com>
10428 * nios2-tdep.h (struct gdbarch_tdep): Add is_kernel_helper.
10429 * nios2-tdep.c (nios2_get_next_pc): Skip over kernel helpers.
10430 * nios2-linux-tdep.c (nios2_linux_is_kernel_helper): New.
10431 (nios2_linux_init_abi): Install it.
10433 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10435 * aarch64-tdep.c (aarch64_vnv_type): Use vector types.
10437 2019-03-28 Alan Hayward <alan.hayward@arm.com>
10439 * features/aarch64-sve.c (create_feature_aarch64_sve): Add q view.
10441 2019-03-24 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10442 Tom Tromey <tromey@adacore.com>
10444 * minsyms.c (minimal_symbol_upper_bound): Fix buffer overflow.
10446 2019-03-26 Joel Brobecker <brobecker@adacore.com>
10448 * gdb-gdb.py.in (StructMainTypePrettyPrinter.bound_img): New method.
10449 (StructMainTypePrettyPrinter.bounds_img): Use new "bound_img"
10450 method to compute the bounds of range types. Also print "[evaluated]"
10451 if the bounds' values come from a dynamic evaluation.
10453 2019-03-26 Andrew Burgess <andrew.burgess@embecosm.com>
10455 * cp-valprint.c (cp_print_value_fields): Don't print trailing
10456 whitespace when pretty printing is on.
10458 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10460 * ppc-linux-nat.c: Add include.
10462 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10464 * NEWS: Mention AArch64 Pointer Authentication.
10466 2019-03-26 Alan Hayward <alan.hayward@arm.com>
10468 * arm-linux-nat.c: Add include.
10470 2019-03-25 Simon Marchi <simon.marchi@polymtl.ca>
10472 * source-cache.c (source_cache::get_source_lines): Re-read
10473 fullname after calling open_source_file.
10475 2019-03-25 John Baldwin <jhb@FreeBSD.org>
10477 * NEWS: Mention TLS support for FreeBSD.
10479 2019-03-25 Tom Tromey <tromey@adacore.com>
10481 * minsyms.c (BUNCH_SIZE): Update comment.
10482 (~minimal_symbol_reader): Remove old comment.
10483 (compact_minimal_symbols): Update comment.
10484 (minimal_symbol_reader::install): Remove old comment. Update
10487 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10489 * s390-linux-nat.c: Add include.
10491 2019-03-25 Alan Hayward <alan.hayward@arm.com>
10493 * aarch64-linux-nat.c (aarch64_linux_nat_target::read_description):
10494 Call linux_get_hwcap.
10495 * aarch64-linux-tdep.c (aarch64_linux_core_read_description):
10497 (aarch64_linux_get_hwcap): Remove function.
10498 * aarch64-linux-tdep.h (aarch64_linux_get_hwcap): Remove
10500 * arm-linux-nat.c (arm_linux_nat_target::read_description):Call
10502 * arm-linux-tdep.c (arm_linux_core_read_description): Likewise.
10503 * linux-tdep.c (linux_get_hwcap): Add function.
10504 (linux_get_hwcap2): Likewise.
10505 * linux-tdep.h (linux_get_hwcap): Add declaration.
10506 (linux_get_hwcap2): Likewise.
10507 * ppc-linux-nat.c (ppc_linux_get_hwcap): Remove function.
10508 (ppc_linux_get_hwcap2): Likewise.
10509 (ppc_linux_nat_target::region_ok_for_hw_watchpoint): Call
10511 (ppc_linux_nat_target::insert_watchpoint): Likewise.
10512 (ppc_linux_nat_target::watchpoint_addr_within_range): Likewise.
10513 (ppc_linux_nat_target::read_description): Likewise.
10514 * ppc-linux-tdep.c (ppc_linux_core_read_description): Likewise.
10515 * s390-linux-nat.c: Likewise.
10516 * s390-linux-tdep.c (s390_core_read_description): Likewise.
10518 2019-03-24 Tom Tromey <tom@tromey.com>
10520 * ada-lang.c (standard_lookup): Simplify initialization.
10521 (ada_lookup_symbol_nonlocal): Simplify return.
10522 * solib-spu.c (spu_lookup_lib_symbol): Simplify return.
10523 * solib-darwin.c (darwin_lookup_lib_symbol): Simplify return.
10524 * solib-svr4.c (elf_lookup_lib_symbol): Simplify return.
10525 * rust-lang.c (rust_lookup_symbol_nonlocal): Simplify
10527 * solib.c (solib_global_lookup): Simplify.
10528 * symtab.c (null_block_symbol): Remove.
10529 (symbol_cache_lookup): Simplify returns.
10530 (lookup_language_this): Simplify returns.
10531 (lookup_symbol_aux): Simplify return.
10532 (lookup_local_symbol): Simplify returns.
10533 (lookup_global_symbol_from_objfile): Simplify return.
10534 (lookup_symbol_in_objfile_symtabs)
10535 (lookup_symbol_in_objfile_from_linkage_name): Simplify return.
10536 (lookup_symbol_via_quick_fns, lookup_symbol_in_static_block)
10537 (lookup_static_symbol, lookup_global_symbol): Simplify return.
10538 * cp-namespace.c (cp_lookup_bare_symbol)
10539 (cp_search_static_and_baseclasses, cp_lookup_symbol_via_imports)
10540 (cp_lookup_symbol_via_all_imports, cp_lookup_nested_symbol_1)
10541 (cp_lookup_nested_symbol): Don't use null_block_symbol.
10542 (cp_lookup_symbol_via_imports): Simplify initialization.
10543 (find_symbol_in_baseclass): Likewise.
10544 * symtab.h (null_block_symbol): Remove.
10545 * d-namespace.c (d_lookup_symbol): Don't use null_block_symbol.
10546 (d_lookup_nested_symbol, d_lookup_symbol_imports)
10547 (d_lookup_symbol_module): Likewise.
10548 (find_symbol_in_baseclass): Simplify initialization.
10550 2019-03-24 Tom Tromey <tom@tromey.com>
10552 * expression.h: Don't include symtab.h.
10553 (struct block): Forward declare.
10555 2019-03-24 Tom Tromey <tom@tromey.com>
10557 * c-exp.y (typebase): Remove casts.
10558 * gdbtypes.c (lookup_unsigned_typename, )
10559 (lookup_signed_typename): Remove cast.
10560 * eval.c (parse_to_comma_and_eval): Remove cast.
10561 * parse.c (write_dollar_variable): Remove cast.
10562 * block.h (struct block) <superblock>: Now const.
10563 * symfile-debug.c (debug_qf_map_matching_symbols): Update.
10564 * psymtab.c (psym_map_matching_symbols): Make "block" const.
10565 (map_block): Make "block" const.
10566 * symfile.h (struct quick_symbol_functions)
10567 <map_matching_symbols>: Constify block argument to "callback".
10568 * symtab.c (basic_lookup_transparent_type_quick): Make "block"
10570 (find_pc_sect_compunit_symtab): Make "b" const.
10571 (find_symbol_at_address): Likewise.
10572 (search_symbols): Likewise.
10573 * dwarf2read.c (dw2_lookup_symbol): Make "block" const.
10574 (dw2_debug_names_lookup_symbol): Likewise.
10575 (dw2_map_matching_symbols): Update.
10576 * p-valprint.c (pascal_val_print): Remove "block".
10577 * ada-lang.c (ada_add_global_exceptions): Make "b" const.
10578 (aux_add_nonlocal_symbols): Make "block" const.
10579 (resolve_subexp): Remove cast.
10580 * linespec.c (iterate_over_all_matching_symtabs): Make "block"
10582 (iterate_over_file_blocks): Likewise.
10583 * f-exp.y (%union) <bval>: Remove.
10584 * coffread.c (patch_opaque_types): Make "b" const.
10585 * spu-tdep.c (spu_catch_start): Make "block" const.
10586 * c-valprint.c (print_unpacked_pointer): Remove "block".
10587 * symmisc.c (dump_symtab_1): Make "b" const.
10588 (block_depth): Make "block" const.
10589 * d-exp.y (%union) <bval>: Remove.
10590 * cp-support.h (cp_lookup_rtti_type): Update.
10591 * cp-support.c (cp_lookup_rtti_type): Make "block" const.
10592 * psymtab.c (psym_lookup_symbol): Make "block" const.
10593 (maintenance_check_psymtabs): Make "b" const.
10594 * python/py-framefilter.c (extract_sym): Make "sym_block" const.
10595 (enumerate_locals, enumerate_args): Update.
10596 * python/py-symtab.c (stpy_global_block): Make "block" const.
10597 (stpy_static_block): Likewise.
10598 * inline-frame.c (block_starting_point_at): Make "new_block"
10600 * block.c (find_block_in_blockvector): Make return type const.
10601 (blockvector_for_pc_sect): Make "b" const.
10602 (find_block_in_blockvector): Make "b" const.
10604 2019-03-23 Tom Tromey <tom@tromey.com>
10606 * varobj.c (varobj_create): Update.
10607 * symfile.c (clear_symtab_users): Don't reset innermost_block.
10608 * printcmd.c (display_command, do_one_display): Don't reset
10610 * parser-defs.h (enum innermost_block_tracker_type): Move to
10612 (innermost_block): Update comment.
10613 * parse.c (parse_exp_1): Add tracker_types parameter.
10614 (parse_exp_in_context): Rename from parse_exp_in_context_1. Add
10615 tracker_types parameter. Reset innermost_block.
10616 (parse_exp_in_context): Remove.
10617 (parse_expression_for_completion): Update.
10618 * objfiles.c (~objfile): Don't reset expression_context_block or
10620 * expression.h (enum innermost_block_tracker_type): Move from
10622 (parse_exp_1): Add tracker_types parameter.
10623 * breakpoint.c (set_breakpoint_condition, watch_command_1): Don't
10624 reset innermost_block.
10626 2019-03-23 Tom Tromey <tom@tromey.com>
10628 * objfiles.h: Include bcache.h.
10630 2019-03-23 Tom Tromey <tom@tromey.com>
10632 * linespec.c (get_current_search_block): Use
10633 scoped_restore_current_language.
10634 * symmisc.c (dump_symtab): Use scoped_restore_current_language.
10636 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10637 Jiong Wang <jiong.wang@arm.com>
10639 * aarch64-linux-tdep.c
10640 (aarch64_linux_iterate_over_regset_sections): Check for pauth
10642 * aarch64-linux-tdep.h (AARCH64_LINUX_SIZEOF_PAUTH): New define.
10644 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10645 Jiong Wang <jiong.wang@arm.com>
10647 * aarch64-tdep.c (aarch64_analyze_prologue): Check for pauth
10649 (aarch64_analyze_prologue_test): Add PACIASP test.
10650 (aarch64_prologue_prev_register): Unmask PC value.
10652 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10653 Jiong Wang <jiong.wang@arm.com>
10655 * aarch64-tdep.c (aarch64_frame_unmask_address): New function.
10656 (aarch64_dwarf2_prev_register): Unmask PC value.
10657 (aarch64_dwarf2_frame_init_reg): Init pauth registers.
10658 (aarch64_execute_dwarf_cfa_vendor_op): Check for
10659 DW_CFA_AARCH64_negate_ra_state.
10660 (aarch64_gdbarch_init): Add aarch64_execute_dwarf_cfa_vendor_op.
10662 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10663 Jiong Wang <jiong.wang@arm.com>
10665 * aarch64-tdep.c (aarch64_dwarf_reg_to_regnum): Check for pauth
10667 (aarch64_pseudo_register_name): Likewise.
10668 (aarch64_pseudo_register_type): Likewise.
10669 (aarch64_pseudo_register_reggroup_p): Likewise.
10670 (aarch64_gdbarch_init): Add pauth registers.
10671 * aarch64-tdep.h (AARCH64_DWARF_PAUTH_RA_STATE): New define.
10672 (AARCH64_DWARF_PAUTH_DMASK): Likewise.
10673 (AARCH64_DWARF_PAUTH_CMASK): Likewise.
10674 (struct gdbarch_tdep): Add regnum for ra_state.
10676 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10677 Jiong Wang <jiong.wang@arm.com>
10679 * arch/aarch64.h (AARCH64_PAUTH_REGS_SIZE): New define.
10681 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10682 Jiong Wang <jiong.wang@arm.com>
10684 * aarch64-linux-nat.c (fetch_pauth_masks_from_thread): New
10686 (aarch64_linux_nat_target::fetch_registers): Read pauth registers.
10687 * aarch64-tdep.c (aarch64_cannot_store_register): New function.
10688 (aarch64_gdbarch_init): Add puth registers.
10689 * aarch64-tdep.h (struct gdbarch_tdep): Add pauth features.
10690 * arch/aarch64.h (AARCH64_PAUTH_DMASK_REGNUM): New define.
10691 (AARCH64_PAUTH_CMASK_REGNUM): Likewise.
10693 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10694 Jiong Wang <jiong.wang@arm.com>
10696 * aarch64-linux-nat.c
10697 (aarch64_linux_nat_target::read_description): Read PACA hwcap.
10698 * aarch64-linux-tdep.c
10699 (aarch64_linux_core_read_description): Likewise.
10700 (aarch64_linux_get_hwcap): New function.
10701 * aarch64-linux-tdep.h (AARCH64_HWCAP_PACA): New define.
10702 (aarch64_linux_get_hwcap): New declaration.
10704 2019-03-22 Alan Hayward <alan.hayward@arm.com>
10705 Jiong Wang <jiong.wang@arm.com>
10707 * aarch64-linux-nat.c
10708 (aarch64_linux_nat_target::read_description): Add pauth param.
10709 * aarch64-linux-tdep.c
10710 (aarch64_linux_core_read_description): Likewise.
10711 * aarch64-tdep.c (struct target_desc): Add in pauth.
10712 (aarch64_read_description): Add pauth param.
10713 (aarch64_gdbarch_init): Likewise.
10714 * aarch64-tdep.h (aarch64_read_description): Likewise.
10715 * arch/aarch64.c (aarch64_create_target_description): Likewise.
10716 * arch/aarch64.h (aarch64_create_target_description): Likewise.
10717 * features/Makefile: Add new files.
10718 * features/aarch64-pauth.c: New file.
10719 * features/aarch64-pauth.xml: New file.
10721 2019-03-20 Tom Tromey <tromey@adacore.com>
10723 * infrun.c (handle_inferior_event): Rename from
10724 handle_inferior_event_1. Create a scoped_value_mark.
10725 (handle_inferior_event): Remove.
10727 2019-03-19 Tom Tromey <tromey@adacore.com>
10729 * mi/mi-interp.c (mi_on_normal_stop_1): Only show displays once.
10730 * infrun.h (print_stop_event): Add "displays" parameter.
10731 * infrun.c (print_stop_event): Add "displays" parameter.
10733 2019-03-19 Pedro Alves <palves@redhat.com>
10735 * tui/tui-out.c (tui_ui_out::do_field_string): Simplify.
10736 (tui_ui_out::do_text): Add comments. Reset M_LINE to 0 instead of
10737 to -1. Fix TABs vs spaces.
10738 (tui_ui_out::tui_ui_out): Don't initialize fields here.
10739 * tui/tui-out.h (tui_ui_out) Add intro comments.
10740 <m_line, m_start_of_line>: In-class initialize, and add describing
10743 2019-03-18 Alan Hayward <alan.hayward@arm.com>
10745 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint1): Fix
10747 (arm_linux_remove_hw_breakpoint1): Use a gdb::function_view.
10749 2019-03-18 Pedro Alves <palves@redhat.com>
10750 Eli Zaretskii <eliz@gnu.org>
10752 * tui/tui-out.c (tui_ui_out::tui_ui_out): Fix initialization of
10753 m_line and m_start_of_line.
10755 2019-03-18 Eli Zaretskii <eliz@gnu.org>
10757 * tui/tui-io.c (gdb_wgetch): Don't echo CR.
10758 (tui_getc): When gdb_wgetch returns a CR, behave the same as when
10759 it returns a newline. This fixes a regression in TU mode, whereby
10760 the next line is output on the same screen line as the user input.
10762 2019-03-18 Tom Tromey <tromey@adacore.com>
10764 * minsyms.c (minimal_symbol_reader::install): Remove call to
10767 2019-03-18 Pedro Alves <palves@redhat.com>
10769 * tui/tui-io.c (reverse_mode_p, reverse_save_bg, reverse_save_fg):
10771 (apply_style): New, factored out from ...
10772 (apply_ansi_escape): ... this. Handle reverse video mode.
10773 (tui_set_reverse_mode): New function.
10774 * tui/tui-io.h (tui_set_reverse_mode): New declaration.
10775 * tui/tui-winsource.c (tui_show_source_line): Use
10776 tui_set_reverse_mode instead of setting A_STANDOUT.
10777 * ui-style.h (struct ui_file_style) <set_reverse, set_fg, set_bg>:
10778 New setter methods.
10780 2019-03-18 Hannes Domani <ssbssa@yahoo.de>
10782 * tui/tui-source.c (copy_source_line): Fix handling of 'column'.
10785 2019-03-18 Tom Tromey <tromey@adacore.com>
10787 * ada-lang.c (empty_array): Add "high" parameter.
10788 (ada_evaluate_subexp): Update.
10790 2019-03-17 Sergei Trofimovich <siarheit@google.com>
10792 * unittests/string_view-selftests.c: Define
10793 _initialize_string_view_selftests unconditionally.
10795 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10798 * windows-nat.c (windows_make_so): Remove unused text_vma variable.
10800 2019-03-17 Vladimir Martyanov <vilgeforce@gmail.com>
10803 * windows-nat.c (display_selector): Fix format specifiers.
10805 2019-03-17 Eli Zaretskii <eliz@gnu.org>
10807 * tui/tui-winsource.c (tui_set_is_exec_point_at): Call
10808 tui_refill_source_window instead of tui_refresh_win, to update the
10809 current execution line. This fixes redisplay of the current line
10810 when stepping through the code with "next" or "step".
10812 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10814 * source-cache.c (source_cache::get_source_lines): Call
10815 find_source_lines to initialize s->nlines. This fixes vertical
10816 scrolling of TUI source window when the DOWN arrow is pressed.
10818 2019-03-16 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10820 * auto-load.c (_initialize_auto_load): Fix 'This options has'.
10821 linux-thread-db.c (_initialize_thread_db): Likewise.
10823 2019-03-16 Eli Zaretskii <eliz@gnu.org>
10825 * tui/tui-winsource.c (tui_show_source_line): Revert "Use
10826 wclrtoeol in tui_show_source_line". This reverts changes made in
10827 commit 4a3045920bbe4e50a0f4920b0fdc4e88ef23015c.
10829 2019-03-15 Tom Tromey <tom@tromey.com>
10831 * symtab.h (struct minimal_symbol): Derive from
10832 general_symbol_info.
10833 (MSYMBOL_VALUE, MSYMBOL_VALUE_RAW_ADDRESS)
10834 (MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10835 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10836 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10837 (MSYMBOL_LINKAGE_NAME, MSYMBOL_DEMANGLED_NAME)
10838 (MSYMBOL_SEARCH_NAME): Update.
10839 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SET_NAMES): Remove.
10840 * solib.c (gdb_bfd_lookup_symbol_from_symtab): Don't use memset.
10841 * minsyms.c (minimal_symbol_reader::record_full): Update.
10843 2019-03-15 Tom Tromey <tom@tromey.com>
10845 * minsyms.c (minimal_symbol_reader::install): Use memcpy.
10847 2019-03-15 Tom Tromey <tom@tromey.com>
10849 * objfiles.h (struct objfile_per_bfd_storage) <msymbols>: Now a
10850 unique_xmalloc_ptr.
10851 (objfile::msymbols_range::begin, objfile::msymbols_range::end):
10853 * minsyms.c (lookup_minimal_symbol_by_pc_section)
10854 (build_minimal_symbol_hash_tables)
10855 (minimal_symbol_reader::install): Update.
10857 2019-03-15 Tom Tromey <tom@tromey.com>
10859 * symtab.c (create_demangled_names_hash): Update.
10860 (symbol_set_names): Update.
10861 * objfiles.h (struct objfile_per_bfd_storage)
10862 <demangled_names_hash>: Now an htab_up.
10863 * objfiles.c (objfile_per_bfd_storage): Simplify.
10865 2019-03-15 Tom Tromey <tom@tromey.com>
10867 * objfiles.h (struct objfile_per_bfd_storage): Declare
10869 * objfiles.c (objfile_per_bfd_storage::~objfile_per_bfd_storage):
10871 (get_objfile_bfd_data): Use new. Don't initialize
10873 (free_objfile_per_bfd_storage): Remove.
10874 (objfile_bfd_data_free, objfile::~objfile): Use delete.
10876 2019-03-15 Tom Tromey <tom@tromey.com>
10878 * symfile.c (reread_symbols): Update.
10879 * objfiles.c (objfile::objfile): Update.
10880 * minsyms.h (terminate_minimal_symbol_table): Don't declare.
10881 * minsyms.c (lookup_minimal_symbol_by_pc_section): Update
10883 (minimal_symbol_reader::install): Update.
10884 (terminate_minimal_symbol_table): Remove.
10885 * jit.c (jit_object_close_impl): Update.
10887 2019-03-15 Tom Tromey <tom@tromey.com>
10889 * minsyms.c (minimal_symbol_reader::record_full): Remove some
10892 2019-03-15 Tom Tromey <tom@tromey.com>
10894 * objfiles.h (struct objfile_per_bfd_storage)
10895 <demangled_hash_languages>: Now a bitset.
10896 * minsyms.c (add_minsym_to_demangled_hash_table): Update.
10897 (lookup_minimal_symbol): Update.
10899 2019-03-15 Tom Tromey <tom@tromey.com>
10901 * minsyms.h (class minimal_symbol_reader) <record_with_info>:
10902 Don't return the symbol.
10903 * coffread.c (record_minimal_symbol): Use record_full.
10905 2019-03-14 Eli Zaretskii <eliz@gnu.org>
10907 The MS-Windows port of ncurses fails to switch to a color pair if
10908 one or both of the colors are the implicit default colors. This
10909 change records the default colors when TUI is initialized, and
10910 then specifies them explicitly when a color pair uses the default
10911 colors. This allows color styling in TUI mode on MS-Windows.
10913 * tui/tui-io.c [__MINGW32__]: Include windows.h. Declare
10915 (tui_initialize_io) [__MINGW32__]: Record the default terminal
10916 colors in ncurses_norm_attr.
10917 (apply_ansi_escape) [__MINGW32__]: If a color in a color pair is
10918 "none", replace it with the default color recorded in
10921 2019-03-14 Tom Tromey <tromey@adacore.com>
10923 * source-cache.h (class source_cache) <get_source_lines>: Return
10925 * source-cache.c (source_cache::extract_lines): Handle case where
10926 first_pos==npos. Return std::string.
10927 (source_cache::get_source_lines): Update.
10929 2019-03-14 Tom Tromey <tromey@adacore.com>
10931 * NEWS: Add item for "style sources" commands.
10932 * source-cache.c (source_cache::get_source_lines): Check
10934 * cli/cli-style.c (source_styling): New global.
10935 (_initialize_cli_style): Add "style sources" commands.
10936 (show_style_sources): New function.
10937 * cli/cli-style.h (source_styling): Declare.
10939 2019-03-14 Pedro Alves <palves@redhat.com>
10940 Tom Tromey <tromey@adacore.com>
10942 * tui/tui-winsource.h (tui_refill_source_window): Declare.
10943 * tui/tui-winsource.c (tui_refill_source_window): New function,
10945 (tui_horizontal_source_scroll): ... here. Move some logic.
10946 * cli/cli-style.c (set_style_enabled): Notify new observable.
10947 * tui/tui-hooks.c (tui_redisplay_source): New function.
10948 (tui_attach_detach_observers): Attach or detach
10949 tui_redisplay_source.
10950 * observable.h (source_styling_changed): New observable.
10951 * observable.c: Define source_styling_changed observable.
10953 2019-03-13 Tom Tromey <tromey@adacore.com>
10955 * i386-gnu-nat.c (i386_gnu_nat_target::fetch_registers)
10956 (i386_gnu_nat_target::store_registers): Update.
10957 * target-debug.h (target_debug_print_std_string): New macro.
10958 * x86-linux-nat.c (x86_linux_nat_target::enable_btrace): Update.
10959 * windows-tdep.c (display_one_tib): Update.
10960 * tui/tui-stack.c (tui_make_status_line): Update.
10961 * top.c (print_inferior_quit_action): Update.
10962 * thread.c (thr_try_catch_cmd): Update.
10963 (add_thread_with_info): Update.
10964 (thread_target_id_str): Update.
10965 (thr_try_catch_cmd): Update.
10966 (thread_command): Update.
10967 (thread_find_command): Update.
10968 * record-btrace.c (record_btrace_target::info_record)
10969 (record_btrace_resume_thread, record_btrace_target::resume)
10970 (record_btrace_cancel_resume, record_btrace_step_thread)
10971 (record_btrace_target::wait, record_btrace_target::wait)
10972 (record_btrace_target::wait, record_btrace_target::stop): Update.
10973 * progspace.c (print_program_space): Update.
10974 * process-stratum-target.c
10975 (process_stratum_target::thread_address_space): Update.
10976 * linux-fork.c (linux_fork_mourn_inferior)
10977 (detach_checkpoint_command, info_checkpoints_command)
10978 (linux_fork_context): Update.
10979 (linux_fork_detach): Update.
10980 (class scoped_switch_fork_info): Update.
10981 (delete_checkpoint_command): Update.
10982 * infrun.c (follow_fork_inferior): Update.
10983 (follow_fork_inferior): Update.
10984 (proceed_after_vfork_done): Update.
10985 (handle_vfork_child_exec_or_exit): Update.
10986 (follow_exec): Update.
10987 (displaced_step_prepare_throw): Update.
10988 (displaced_step_restore): Update.
10989 (start_step_over): Update.
10990 (resume_1): Update.
10991 (clear_proceed_status_thread): Update.
10993 (print_target_wait_results): Update.
10994 (do_target_wait): Update.
10995 (context_switch): Update.
10996 (stop_all_threads): Update.
10997 (restart_threads): Update.
10998 (finish_step_over): Update.
10999 (handle_signal_stop): Update.
11000 (switch_back_to_stepped_thread): Update.
11001 (keep_going_pass_signal): Update.
11002 (print_exited_reason): Update.
11003 (normal_stop): Update.
11004 * inferior.c (inferior_pid_to_str): Change return type.
11005 (print_selected_inferior): Update.
11006 (add_inferior): Update.
11007 (detach_inferior): Update.
11008 * dummy-frame.c (fprint_dummy_frames): Update.
11009 * dcache.c (dcache_info_1): Update.
11010 * btrace.c (btrace_enable, btrace_disable, btrace_teardown)
11011 (btrace_fetch, btrace_clear): Update.
11012 * linux-tdep.c (linux_core_pid_to_str): Change return type.
11013 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): Change return
11015 * fbsd-tdep.c (fbsd_core_pid_to_str): Change return type.
11016 * sol2-tdep.h (sol2_core_pid_to_str): Change return type.
11017 * sol2-tdep.c (sol2_core_pid_to_str): Change return type.
11018 * gdbarch.c, gdbarch.h: Rebuild.
11019 * gdbarch.sh (core_pid_to_str): Change return type.
11020 * windows-nat.c (struct windows_nat_target) <pid_to_str>: Change
11022 (windows_nat_target::pid_to_str): Change return type.
11023 (windows_delete_thread): Update.
11024 (windows_nat_target::attach): Update.
11025 (windows_nat_target::files_info): Update.
11026 * target-delegates.c: Rebuild.
11027 * sol-thread.c (class sol_thread_target) <pid_to_str>: Change
11029 (sol_thread_target::pid_to_str): Change return type.
11030 * remote.c (class remote_target) <pid_to_str>: Change return
11032 (remote_target::pid_to_str): Change return type.
11033 (extended_remote_target::attach, remote_target::remote_stop_ns)
11034 (remote_target::remote_notif_remove_queued_reply)
11035 (remote_target::push_stop_reply, remote_target::disable_btrace):
11037 (extended_remote_target::attach): Update.
11038 * remote-sim.c (struct gdbsim_target) <pid_to_str>: Change return
11040 (gdbsim_target::pid_to_str): Change return type.
11041 * ravenscar-thread.c (struct ravenscar_thread_target)
11042 <pid_to_str>: Change return type.
11043 (ravenscar_thread_target::pid_to_str): Change return type.
11044 * procfs.c (class procfs_target) <pid_to_str>: Change return
11046 (procfs_target::pid_to_str): Change return type.
11047 (procfs_target::attach): Update.
11048 (procfs_target::detach): Update.
11049 (procfs_target::fetch_registers): Update.
11050 (procfs_target::store_registers): Update.
11051 (procfs_target::wait): Update.
11052 (procfs_target::files_info): Update.
11053 * obsd-nat.c (obsd_nat_target::pid_to_str): Change return type.
11054 * nto-procfs.c (struct nto_procfs_target) <pid_to_str>: Change
11056 (nto_procfs_target::pid_to_str): Change return type.
11057 (nto_procfs_target::files_info, nto_procfs_target::attach): Update.
11058 * linux-thread-db.c (class thread_db_target) <pid_to_str>: Change
11060 * linux-nat.c (linux_nat_target::pid_to_str): Change return type.
11061 (exit_lwp): Update.
11062 (attach_proc_task_lwp_callback, get_detach_signal)
11063 (detach_one_lwp, resume_lwp, linux_nat_target::resume)
11064 (linux_nat_target::resume, wait_lwp, stop_callback)
11065 (maybe_clear_ignore_sigint, stop_wait_callback, status_callback)
11066 (save_stop_reason, select_event_lwp, linux_nat_filter_event)
11067 (linux_nat_wait_1, resume_stopped_resumed_lwps)
11068 (linux_nat_target::wait, linux_nat_stop_lwp): Update.
11069 * inf-ptrace.c (inf_ptrace_target::pid_to_str): Change return
11071 (inf_ptrace_target::attach): Update.
11072 (inf_ptrace_target::files_info): Update.
11073 * go32-nat.c (struct go32_nat_target) <pid_to_str>: Change return
11075 (go32_nat_target::pid_to_str): Change return type.
11076 * gnu-nat.c (gnu_nat_target::pid_to_str): Change return type.
11077 (gnu_nat_target::wait): Update.
11078 (gnu_nat_target::wait): Update.
11079 (gnu_nat_target::resume): Update.
11080 * fbsd-nat.c (fbsd_nat_target::pid_to_str): Change return type.
11081 (fbsd_nat_target::wait): Update.
11082 * darwin-nat.c (darwin_nat_target::pid_to_str): Change return
11084 (darwin_nat_target::attach): Update.
11085 * corelow.c (class core_target) <pid_to_str>: Change return type.
11086 (core_target::pid_to_str): Change return type.
11087 * target.c (normal_pid_to_str): Change return type.
11088 (default_pid_to_str): Likewise.
11089 (target_pid_to_str): Change return type.
11090 (target_translate_tls_address): Update.
11091 (target_announce_detach): Update.
11092 * bsd-uthread.c (struct bsd_uthread_target) <pid_to_str>: Change
11094 (bsd_uthread_target::pid_to_str): Change return type.
11095 * bsd-kvm.c (class bsd_kvm_target) <pid_to_str>: Change return
11097 (bsd_kvm_target::pid_to_str): Change return type.
11098 * aix-thread.c (class aix_thread_target) <pid_to_str>: Change
11100 (aix_thread_target::pid_to_str): Change return type.
11101 * target.h (struct target_ops) <pid_to_str>: Change return type.
11102 (target_pid_to_str, normal_pid_to_str): Likewise.
11103 * obsd-nat.h (class obsd_nat_target) <pid_to_str>: Change return
11105 * linux-nat.h (class linux_nat_target) <pid_to_str>: Change return
11107 * inf-ptrace.h (struct inf_ptrace_target) <pid_to_str>: Change
11109 * gnu-nat.h (struct gnu_nat_target) <pid_to_str>: Change return
11111 * fbsd-nat.h (class fbsd_nat_target) <pid_to_str>: Change return
11113 * darwin-nat.h (class darwin_nat_target) <pid_to_str>: Change
11116 2019-03-13 Simon Marchi <simon.marchi@ericsson.com>
11118 * NEWS: Mention that the new default MI version is 3. Mention
11119 changes to the output of commands and events that deal with
11120 multi-location breakpoints.
11121 * breakpoint.c: Include "mi/mi-out.h".
11122 (print_one_breakpoint): Change output syntax if using MI version
11124 * mi/mi-main.h (mi_cmd_fix_multi_location_breakpoint_output):
11126 (mi_multi_location_breakpoint_output_fixed): New.
11127 * mi/mi-main.c (fix_multi_location_breakpoint_output): New.
11128 (mi_cmd_fix_multi_location_breakpoint_output): New.
11129 (mi_multi_location_breakpoint_output_fixed): New.
11130 * mi/mi-cmds.c (mi_cmds): Register command
11131 -fix-multi-location-breakpoint-output.
11132 * mi/mi-out.c (mi_out_new): Instantiate version 3 when using
11135 2019-03-13 Simon Marchi <simon.marchi@polymtl.ca>
11137 * mi/mi-out.h (mi_out_new): Change parameter to const char *.
11138 * mi/mi-out.c (mi_out_new): Change parameter to const char *,
11139 instantiate mi_ui_out based on interpreter name.
11140 * mi/mi-interp.c (mi_interp::init): Use the new mi_out_new.
11141 * mi/mi-main.c (mi_load_progress): Likewise.
11143 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11145 * NEWS: Combine separate "New targets" sections for 8.3.
11147 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11149 * ppc-fbsd-tdep.c (ppcfbsd_get_thread_local_address): New.
11150 (ppcfbsd_init_abi): Install gdbarch
11151 "fetch_tls_load_module_address" and "get_thread_local_address"
11154 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11156 * riscv-fbsd-tdep.c (riscv_fbsd_get_thread_local_address): New.
11157 (riscv_fbsd_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 * i386-fbsd-tdep.c (i386fbsd_get_thread_local_address): New.
11164 (i386fbsd_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 * amd64-fbsd-tdep.c (amd64fbsd_get_thread_local_address): New.
11171 (amd64fbsd_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 * fbsd-tdep.c (fbsd_pspace_data_handle): New variable.
11178 (struct fbsd_pspace_data): New type.
11179 (get_fbsd_pspace_data, fbsd_pspace_data_cleanup)
11180 (fbsd_read_integer_by_name, fbsd_fetch_rtld_offsets)
11181 (fbsd_get_tls_index, fbsd_get_thread_local_address): New function.
11182 (_initialize_fbsd_tdep): Initialize 'fbsd_pspace_data_handle'.
11183 * fbsd-tdep.c (fbsd_get_thread_local_address): New prototype.
11185 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11187 * gdbtypes.c (lookup_struct_elt): New function.
11188 (lookup_struct_elt_type): Reimplement via lookup_struct_elt.
11189 * gdbtypes.h (struct struct_elt): New type.
11190 (lookup_struct_elt): New prototype.
11192 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11194 * gdbtypes.c (lookup_struct_elt_type): Update comment and
11195 remove disabled code block.
11197 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11199 * gdbarch.sh (get_thread_local_address): New method.
11200 * gdbarch.h, gdbarch.c: Regenerate.
11201 * target.c (target_translate_tls_address): Use
11202 gdbarch_get_thread_local_address if present instead of
11203 target::get_thread_local_address.
11205 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11207 * target.h (target::get_thread_local_address): Update comment.
11209 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11211 * solib-svr4.c (svr4_fetch_objfile_link_map): Look for
11212 objfile->separate_debug_objfile_backlink if not NULL.
11214 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11216 * amd64-bsd-nat.c (amd64bsd_fetch_inferior_registers): Use
11217 tdep->fsbase_regnum instead of constants for fs_base and gs_base.
11218 (amd64bsd_store_inferior_registers): Likewise.
11219 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11220 Enable segment base registers.
11221 * i386-bsd-nat.c (i386bsd_fetch_inferior_registers): Use
11222 PT_GETFSBASE and PT_GETGSBASE.
11223 (i386bsd_store_inferior_registers): Use PT_SETFSBASE and
11225 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Enable
11226 segment base registers.
11227 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11229 2019-03-12 John Baldwin <jhb@FreeBSD.org>
11231 * amd64-fbsd-nat.c (amd64_fbsd_nat_target::read_description):
11232 Update calls to i386_target_description to add 'segments'
11234 * amd64-tdep.c (amd64_init_abi): Set tdep->fsbase_regnum. Don't
11235 add segment base registers.
11236 * arch/i386.c (i386_create_target_description): Add 'segments'
11237 parameter to enable segment base registers.
11238 * arch/i386.h (i386_create_target_description): Likewise.
11239 * features/i386/32bit-segments.xml: New file.
11240 * features/i386/32bit-segments.c: Generate.
11241 * i386-fbsd-nat.c (i386_fbsd_nat_target::read_description): Update
11242 call to i386_target_description to add 'segments' parameter.
11243 * i386-fbsd-tdep.c (i386fbsd_core_read_description): Likewise.
11244 * i386-go32-tdep.c (i386_go32_init_abi): Likewise.
11245 * i386-linux-tdep.c (i386_linux_read_description): Likewise.
11246 * i386-tdep.c (i386_validate_tdesc_p): Add segment base registers
11247 if feature is present.
11248 (i386_gdbarch_init): Pass I386_NUM_REGS to set_gdbarch_num_regs.
11249 Add 'segments' parameter to call to i386_target_description.
11250 (i386_target_description): Add 'segments' parameter to enable
11251 segment base registers.
11252 (_initialize_i386_tdep) [GDB_SELF_TEST]: Add 'segments' parameter
11253 to call to i386_target_description.
11254 * i386-tdep.h (struct gdbarch_tdep): Add 'fsbase_regnum'.
11255 (enum i386_regnum): Add I386_FSBASE_REGNUM and I386_GSBASE_REGNUM.
11256 Define I386_NUM_REGS.
11257 (i386_target_description): Add 'segments' parameter to enable
11258 segment base registers.
11260 2019-03-12 Eli Zaretskii <eliz@gnu.org>
11263 * source-cache.c: #undef open and close, to avoid unresolved
11264 externals during linking.
11266 2019-03-12 Tom Tromey <tromey@adacore.com>
11268 * remote.c (magic_null_ptid, not_sent_ptid, any_thread_ptid): Now
11269 const. Add initializers.
11270 (_initialize_remote): Don't initialize ptid globals.
11272 2019-03-12 Pedro Alves <palves@redhat.com>
11274 * yy-remap.h [TEST_CPNAMES] (YYFPRINTF): Don't define.
11276 2019-03-12 Pedro Alves <palves@redhat.com>
11278 * cp-name-parser.y (main): Remove unused 'len' variable.
11280 2019-03-12 Tom Tromey <tromey@adacore.com>
11282 * common/ptid.c (null_ptid, minus_one_ptid): Now const.
11283 * common/ptid.h (null_ptid, minus_one_ptid): Now const.
11285 2019-03-12 Tom Tromey <tromey@adacore.com>
11287 * linux-nat.c (iterate_over_lwps): Update.
11288 (stop_callback): Remove parameter.
11289 (stop_wait_callback, detach_callback, resume_set_callback)
11290 (select_singlestep_lwp_callback, set_ignore_sigint)
11291 (status_callback, resumed_callback, resume_clear_callback)
11292 (kill_callback, kill_wait_callback, linux_nat_stop_lwp): Remove
11294 (linux_nat_target::detach, linux_nat_target::resume)
11295 (linux_stop_and_wait_all_lwps, select_event_lwp)
11296 (linux_nat_filter_event, linux_nat_wait_1)
11297 (linux_nat_target::kill, linux_nat_target::stop)
11298 (linux_nat_target::stop): Update.
11299 (linux_nat_resume_callback): Change type.
11300 (resume_stopped_resumed_lwps, count_events_callback)
11301 (select_event_lwp_callback): Likewise.
11302 (linux_stop_lwp, linux_nat_stop_lwp): Update.
11303 * arm-linux-nat.c (struct update_registers_data): Remove.
11304 (update_registers_callback): Change type.
11305 (arm_linux_insert_hw_breakpoint1): Update.
11306 * nat/x86-linux-dregs.c (update_debug_registers_callback): Remove
11308 (x86_linux_dr_set_addr): Update.
11309 (x86_linux_dr_set_control): Update.
11310 * nat/linux-nat.h (iterate_over_lwps_ftype): Remove parameter.
11311 (iterate_over_lwps): Use gdb::function_view.
11312 * nat/aarch64-linux-hw-point.c (struct
11313 aarch64_dr_update_callback_param): Remove.
11314 (debug_reg_change_callback): Change type.
11315 (aarch64_notify_debug_reg_change): Update.
11316 * s390-linux-nat.c (s390_refresh_per_info): Update.
11318 2019-03-11 Tom Tromey <tromey@adacore.com>
11320 * dwarf2read.c (dwarf2_find_containing_comp_unit): Remove
11321 redundant assignment to "this_cu".
11323 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11325 * gdbtypes.c (rank_one_type): Remove unnecessary cases from switch.
11327 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11329 * gdbtypes.c (rank_one_type_parm_set): New function extracted
11331 (rank_one_type): ... this.
11333 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11335 * gdbtypes.c (rank_one_type_parm_struct): New function extracted
11337 (rank_one_type): ... this.
11339 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11341 * gdbtypes.c (rank_one_type_parm_complex): New function extracted
11343 (rank_one_type): ... this.
11345 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11347 * gdbtypes.c (rank_one_type_parm_float): New function extracted
11349 (rank_one_type): ... this.
11351 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11353 * gdbtypes.c (rank_one_type_parm_bool): New function extracted
11355 (rank_one_type): ... this.
11357 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11359 * gdbtypes.c (rank_one_type_parm_range): New function extracted
11361 (rank_one_type): ... this.
11363 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11365 * gdbtypes.c (rank_one_type_parm_char): New function extracted
11367 (rank_one_type): ... this.
11369 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11371 * gdbtypes.c (rank_one_type_parm_enum): New function extracted
11373 (rank_one_type): ... this.
11375 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11377 * gdbtypes.c (rank_one_type_parm_int): New function extracted
11379 (rank_one_type): ... this.
11381 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11383 * gdbtypes.c (rank_one_type_parm_func): New function extracted
11385 (rank_one_type): ... this.
11387 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11389 * gdbtypes.c (rank_one_type_parm_array): New function extracted
11391 (rank_one_type): ... this.
11393 2019-03-08 Simon Marchi <simon.marchi@efficios.com>
11395 * gdbtypes.c (rank_one_type_parm_ptr): New function extracted
11397 (rank_one_type): ... this.
11399 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11401 * inferior.c (initialize_inferiors): Ensure 'help set/show print
11402 inferior-events' shows the example events.
11404 2019-03-08 Eli Zaretskii <eliz@gnu.org>
11406 Support styling on native MS-Windows console
11409 * utils.c (can_emit_style_escape) [_WIN32]: Don't disable styling
11410 on MS-Windows if $TERM is not defined.
11412 * cli/cli-style.c: Set cli_styling to 1 in the MinGW build.
11414 * posix-hdep.c (gdb_console_fputs):
11415 * mingw-hdep.c (rgb_to_16colors, gdb_console_fputs): New
11417 * ui-file.h (gdb_console_fputs): Add prototype.
11419 * ui-file.c (stdio_file::puts): Call gdb_console_fputs, and fall
11420 back to fputs only if the former returns zero.
11422 2019-03-07 Tom Tromey <tom@tromey.com>
11424 * symmisc.c (print_symbol_bcache_statistics): Update.
11425 (print_objfile_statistics): Update.
11426 * symfile.c (allocate_symtab): Update.
11427 * stabsread.c: Don't include bcache.h.
11428 * psymtab.h (struct psymbol_bcache): Don't declare.
11429 (class psymtab_storage) <psymbol_cache>: Now a bcache.
11430 (psymbol_bcache_init, psymbol_bcache_free)
11431 (psymbol_bcache_get_bcache): Don't declare.
11432 * psymtab.c (struct psymbol_bcache): Remove.
11433 (psymtab_storage::psymtab_storage): Update.
11434 (psymtab_storage::~psymtab_storage): Update.
11435 (psymbol_bcache_init, psymbol_bcache_free)
11436 (psymbol_bcache_get_bcache, psymbol_bcache_full): Remove.
11437 (add_psymbol_to_bcache): Update.
11438 (allocate_psymtab): Update.
11439 * objfiles.h (struct objfile_per_bfd_storage) <filename_cache,
11440 macro_cache>: No longer pointers.
11441 * objfiles.c (get_objfile_bfd_data): Don't call bcache_xmalloc.
11442 (free_objfile_per_bfd_storage): Don't call bcache_xfree.
11443 * macrotab.c (macro_bcache): Update.
11444 * macroexp.c: Don't include bcache.h.
11445 * gdbtypes.c (check_types_worklist): Update.
11446 (types_deeply_equal): Remove TRY/CATCH. Update.
11447 * elfread.c (elf_symtab_read): Update.
11448 * dwarf2read.c: Don't include bcache.h.
11449 * buildsym.c (buildsym_compunit::get_macro_table): Update.
11450 * bcache.h (bcache, bcache_full, bcache_xffree, bcache_xmalloc)
11451 (print_bcache_statistics, bcache_memory_used): Don't declare.
11452 (struct bcache): Move from bcache.c. Add constructor, destructor,
11453 methods. Rename all data members.
11454 * bcache.c (struct bcache): Move to bcache.h.
11455 (bcache::expand_hash_table): Rename from expand_hash_table.
11457 (bcache::insert): Rename from bcache_full.
11458 (bcache::compare): Rename from bcache_compare.
11459 (bcache_xmalloc): Remove.
11460 (bcache::~bcache): Rename from bcache_xfree.
11461 (bcache::print_statistics): Rename from print_bcache_statistics.
11462 (bcache::memory_used): Rename from bcache_memory_used.
11464 2019-03-07 Pedro Alves <palves@redhat.com>
11466 * infrun.c (normal_stop): Also check for
11467 TARGET_WAITKIND_NO_RESUMED before referring to inferior_thread().
11469 2019-03-07 Andrew Burgess <andrew.burgess@embecosm.com>
11471 * f-lang.c (value_from_host_double): Moved to...
11472 * value.c (value_from_host_double): ...here.
11473 * value.h (value_from_host_double): Declare.
11474 * guile/scm-math.c (vlscm_convert_typed_number): Use
11475 value_from_host_double.
11476 (vlscm_convert_number): Likewise.
11477 * guile/scm-value.c (gdbscm_value_to_real): Likewise.
11478 * python/py-value.c (convert_value_from_python): Likewise.
11480 2019-03-06 Tom Tromey <tom@tromey.com>
11482 * gcore.c (write_gcore_file): Use SCOPE_EXIT.
11484 2019-03-06 Tom Tromey <tom@tromey.com>
11486 * utils.h (free_current_contents): Don't declare.
11487 * utils.c (free_current_contents): Remove.
11489 2019-03-06 Tom Tromey <tom@tromey.com>
11491 * top.c (quit_force): Update.
11492 * main.c (captured_command_loop): Update.
11493 * common/new-op.c (operator new): Update.
11494 * common/common-exceptions.c (struct catcher)
11495 <save_cleanup_chain>: Remove member.
11496 (exceptions_state_mc_init): Update.
11497 (exception_try_scope_entry): Return nullptr.
11498 (exception_try_scope_exit, exception_rethrow)
11499 (throw_exception_sjlj, throw_exception_cxx): Update.
11500 * common/cleanups.h (make_cleanup, make_cleanup_dtor)
11501 (all_cleanups, do_cleanups, discard_cleanups)
11502 (discard_final_cleanups, save_cleanups, save_final_cleanups)
11503 (restore_cleanups, restore_final_cleanups): Don't declare.
11504 (do_final_cleanups): Remove parameter.
11505 * common/cleanups.c (cleanup_chain, make_cleanup)
11506 (make_cleanup_dtor, all_cleanups, do_cleanups)
11507 (discard_my_cleanups, discard_cleanups)
11508 (discard_final_cleanups, save_my_cleanups, save_cleanups)
11509 (save_final_cleanups, restore_my_cleanups, restore_cleanups)
11510 (null_cleanup): Remove.
11511 (do_final_cleanups): Remove parameter.
11513 2019-03-06 Tom Tromey <tom@tromey.com>
11515 * remote.c (remote_target::remote_parse_stop_reply): Use
11516 unique_xmalloc_ptr.
11518 2019-03-06 Tom Tromey <tom@tromey.com>
11520 * stabsread.c (struct stabs_field_info): Rename from field_info.
11521 <list, fnlist>: Add initializers.
11522 <obstack>: New member.
11523 (read_member_functions, read_struct_fields, read_baseclasses):
11524 Allocate on obstack. Don't use cleanups.
11525 (read_one_struct_field, read_member_functions, read_struct_fields)
11526 (read_baseclasses, read_tilde_fields, attach_fn_fields_to_type)
11527 (attach_fields_to_type, read_cpp_abbrev, read_member_functions)
11528 (read_struct_type): Update.
11530 2019-03-06 Tom Tromey <tom@tromey.com>
11532 * nat/linux-namespaces.c (linux_mntns_access_fs): Use SCOPE_EXIT.
11533 * common/filestuff.h (make_cleanup_close): Don't declare.
11534 * common/filestuff.c (do_close_cleanup, make_cleanup_close):
11537 2019-03-06 Tom Tromey <tom@tromey.com>
11539 * solib-aix.c: Use make_scope_exit.
11541 2019-03-06 Tom Tromey <tom@tromey.com>
11543 * solib-svr4.c (svr4_parse_libraries, svr4_current_sos_direct):
11544 Use make_scope_exit.
11546 2019-03-06 Tom Tromey <tom@tromey.com>
11548 * solib-svr4.c (disable_probes_interface): Remove parameter.
11549 (svr4_handle_solib_event): Use make_scope_exit.
11551 2019-03-06 Tom Tromey <tom@tromey.com>
11553 * remote.c (struct stop_reply_deleter): Remove.
11554 (stop_reply_up): Update.
11555 (struct stop_reply): Derive from notif_event. Don't typedef.
11556 <regcache>: Now a std::vector.
11557 (stop_reply_xfree): Remove.
11558 (stop_reply::~stop_reply): Rename from stop_reply_dtr.
11559 (remote_notif_stop_alloc_reply): Return a unique_ptr. Use new.
11560 (remote_target::discard_pending_stop_replies): Use delete.
11561 (remote_target::remote_parse_stop_reply): Update.
11562 (remote_target::process_stop_reply): Update.
11563 * remote-notif.h (struct notif_event): Add virtual destructor.
11564 Remove "dtr" member.
11565 (struct notif_client) <alloc_event>: Return a unique_ptr.
11566 (notif_event_xfree): Don't declare.
11567 (notif_event_up): New typedef.
11568 * remote-notif.c (remote_notif_ack, remote_notif_parse): Update.
11569 (notif_event_xfree, do_notif_event_xfree): Remove.
11570 (remote_notif_state_xfree): Update.
11572 2019-03-06 Tom Tromey <tom@tromey.com>
11574 * infrun.c (displaced_step_clear_cleanup): Now a
11575 forward_scope_exit type.
11576 (displaced_step_prepare_throw): Update.
11577 (displaced_step_fixup): Update.
11579 2019-03-06 Tom Tromey <tom@tromey.com>
11581 * inferior.h (class inferior): Update comment.
11582 * gdbthread.h (class thread_info): Update comment.
11584 2019-03-06 Joel Brobecker <brobecker@adacore.com>
11585 Tom Tromey <tom@tromey.com>
11587 * stabsread.h (struct stab_section_list): Remove.
11588 (coffstab_build_psymtabs): Update.
11589 * dbxread.c (symbuf_sections): Now a std::vector.
11590 (sect_idx): New global.
11591 (fill_symbuf): Update.
11592 (coffstab_build_psymtabs): Change type of stabsects parameter.
11594 * coffread.c (struct coff_symfile_info) <stabsects>: Now a
11596 (linetab, linetab_offset, linetab_size, stringtab): Move earlier.
11597 (coff_locate_sections): Update.
11598 (coff_symfile_read): Remove cleanups. Update.
11599 (init_stringtab): Add storage parameter.
11600 (free_stringtab, free_stringtab_cleanup): Remove.
11601 (init_lineno): Add storage parameter.
11602 (free_linetab, free_linetab_cleanup): Remove.
11604 2019-03-06 Pedro Alves <palves@redhat.com>
11606 * linux-fork.c (fork_info::clobber_regs): Delete.
11607 (fork_load_infrun_state): Remove reference to 'clobber_regs'.
11608 (fork_save_infrun_state): Remove 'clobber_regs' parameter. Update
11610 (scoped_switch_fork_info::scoped_switch_fork_info)
11611 (checkpoint_command, linux_fork_context): Adjust
11612 fork_save_infrun_state calls.
11614 2019-03-06 Pedro Alves <palves@redhat.com>
11616 * linux-fork.c (inf_has_multiple_thread_cb): Delete.
11617 (inf_has_multiple_threads): Return 'bool' and rewrite using
11618 inferior_info::threads().
11620 2019-03-06 Pedro Alves <palves@redhat.com>
11622 * linux-fork.c: Include <list>.
11623 (fork_list): Now a std::list instance.
11624 (fork_info): Add ctor, dtor, and in-class initialize all fields.
11625 (forks_exist_p, find_last_fork): Adjust.
11626 (new_fork): Delete.
11628 (add_fork): Adjust.
11629 (free_fork): Delete, folded into fork_info::~fork_info().
11630 (delete_fork, find_fork_ptid, find_fork_id, find_fork_pid):
11632 (init_fork_list): Delete.
11633 (linux_fork_killall, linux_fork_mourn_inferior)
11634 (linux_fork_detach, info_checkpoints_command): Adjust.
11635 (_initialize_linux_fork): No longer call init_fork_list.
11637 2019-03-06 Pedro Alves <palves@redhat.com>
11639 * linux-fork.c (new_fork): New, split out of ...
11640 (add_fork): ... this. Return void. Move "first fork" special
11641 case from here, to ...
11642 (checkpoint_command): ... here.
11643 * linux-linux.h (add_fork): Return void.
11645 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11647 * f-exp.y (direct_abs_decl): Handle TYPE*SIZE type names.
11649 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11650 Chris January <chris.january@arm.com>
11651 David Lecomber <david.lecomber@arm.com>
11653 * f-exp.y: New token, UNOP_INTRINSIC.
11654 (exp): New pattern using UNOP_INTRINSIC token.
11655 (f77_keywords): Add 'abs' keyword.
11656 * f-lang.c: Add 'target-float.h' and 'math.h' includes.
11657 (value_from_host_double): New function.
11658 (evaluate_subexp_f): Support UNOP_ABS.
11660 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11662 * f-lang.c (build_fortran_types): Use TYPE_CODE_CHAR for character
11665 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11667 * f-exp.y (convert_to_kind_type): Handle integer (kind=8).
11668 * f-lang.c (build_fortran_types): Setup builtin_integer_s8.
11669 * f-lang.h (struct builtin_f_type): Add builtin_integer_s8 field.
11671 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11673 * f-exp.y (convert_to_kind_type): Handle more type kinds.
11675 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11676 Chris January <chris.january@arm.com>
11678 * expprint.c (dump_subexp_body_standard): Support UNOP_KIND.
11679 * f-exp.y: Define 'KIND' token.
11680 (exp): New pattern for KIND expressions.
11681 (ptype): Handle types with a kind extension.
11682 (direct_abs_decl): Extend to spot kind extensions.
11683 (f77_keywords): Add 'kind' to the list.
11684 (push_kind_type): New function.
11685 (convert_to_kind_type): New function.
11686 * f-lang.c (evaluate_subexp_f): Support UNOP_KIND.
11687 * parse.c (operator_length_standard): Likewise.
11688 * parser-defs.h (enum type_pieces): Add tp_kind.
11689 * std-operator.def: Add UNOP_KIND.
11691 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11693 * f-exp.y (f_parse): Set yydebug.
11695 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11697 * f-lang.c (evaluate_subexp_f): New function.
11698 (exp_descriptor_f): New global.
11699 (f_language_defn): Use exp_descriptor_f instead of
11700 exp_descriptor_standard.
11702 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11704 * f-exp.y (struct token): Add comments.
11705 (dot_ops): Remove uppercase versions and the end marker.
11706 (f77_keywords): Likewise.
11707 (yylex): Use ARRAY_SIZE to iterate over dot_ops, assert all
11708 entries in the dot_ops array are case insensitive, and use
11709 strncasecmp to compare strings. Also some whitespace cleanup in
11710 this area. Similar for the f77_keywords array, except entries in
11711 this list might be case sensitive.
11713 2019-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
11715 * f-exp.y (struct f77_boolean_val): Add comments.
11716 (boolean_values): Remove uppercase versions, and end marker.
11717 (yylex): Use ARRAY_SIZE for iterating over boolean_values array,
11718 and use strncasecmp to achieve case insensitivity. Additionally,
11719 perform whitespace cleanup around this code.
11721 2019-03-06 Tom Tromey <tromey@adacore.com>
11723 * remote-sim.c (gdbsim_target_open): Use result of
11726 2019-03-06 Richard Bunt <richard.bunt@arm.com>
11727 Dirk Schubert <dirk.schubert@arm.com>
11728 Chris January <chris.january@arm.com>
11730 * eval.c (evaluate_subexp_standard): Call Fortran argument
11732 * f-lang.c (struct value): A value which can be passed into a
11733 Fortran function call.
11734 (fortran_argument_convert): Wrap Fortran arguments in a pointer
11736 (struct type): Value ready for a Fortran function call.
11737 (fortran_preserve_arg_pointer): Undo check_typedef, the pointer
11739 * f-lang.h (fortran_argument_convert): Declaration.
11740 (fortran_preserve_arg_pointer): Declaration.
11741 * infcall.c (value_arg_coerce): Call Fortran argument logic.
11743 2019-03-05 Tom Tromey <tromey@adacore.com>
11745 * python/py-prettyprint.c (print_string_repr): Remove #if.
11746 * python/py-utils.c (unicode_to_encoded_string): Remove #if.
11748 2019-03-05 Tom Tromey <tromey@adacore.com>
11750 * target.c (the_dummy_target): Move later. Change type to
11752 (initialize_targets): Don't initialize the_dummy_target.
11754 2019-03-05 Tom Tromey <tromey@adacore.com>
11756 * gdb_bfd.c (gdb_bfd_fdopenr): Remove.
11757 * gdb_bfd.h (gdb_bfd_fdopenr): Don't declare.
11759 2019-03-05 Tom Tromey <tromey@adacore.com>
11761 * windows-nat.c (windows_nat_target::attach)
11762 (windows_nat_target::detach): Don't call gdb_flush.
11763 * valprint.c (generic_val_print, val_print, val_print_string):
11764 Don't call gdb_flush.
11765 * utils.c (defaulted_query): Don't call gdb_flush.
11766 * typeprint.c (print_type_scalar): Don't call gdb_flush.
11767 * target.c (target_announce_detach): Don't call gdb_flush.
11768 * sparc64-tdep.c (adi_print_versions): Don't call gdb_flush.
11769 * remote.c (extended_remote_target::attach): Don't call
11771 * procfs.c (procfs_target::detach): Don't call gdb_flush.
11772 * printcmd.c (do_examine): Don't call gdb_flush.
11773 (info_display_command): Don't call gdb_flush.
11774 * p-valprint.c (pascal_val_print): Don't call gdb_flush.
11775 * nto-procfs.c (nto_procfs_target::attach): Don't call gdb_flush.
11776 * memattr.c (info_mem_command): Don't call gdb_flush.
11777 * mdebugread.c (mdebug_build_psymtabs): Don't call gdb_flush.
11778 * m2-valprint.c (m2_val_print): Don't call gdb_flush.
11779 * infrun.c (follow_exec, handle_command): Don't call gdb_flush.
11780 * inf-ptrace.c (inf_ptrace_target::attach): Don't call gdb_flush.
11781 * hppa-tdep.c (unwind_command): Don't call gdb_flush.
11782 * gnu-nat.c (gnu_nat_target::attach): Don't call gdb_flush.
11783 (gnu_nat_target::detach): Don't call gdb_flush.
11784 * f-valprint.c (f_val_print): Don't call gdb_flush.
11785 * darwin-nat.c (darwin_nat_target::attach): Don't call gdb_flush.
11786 * cli/cli-script.c (read_command_lines): Don't call gdb_flush.
11787 * cli/cli-cmds.c (shell_escape, print_disassembly): Don't call
11789 * c-valprint.c (c_val_print): Don't call gdb_flush.
11790 * ada-valprint.c (ada_print_scalar): Don't call gdb_flush.
11792 2019-03-05 Tom Tromey <tromey@adacore.com>
11794 * varobj.c (update_dynamic_varobj_children): Update.
11795 (install_default_visualizer): Use reset, not release.
11796 * value.c (set_internalvar): Update.
11797 * dwarf2loc.c (value_of_dwarf_reg_entry): Update.
11798 * common/gdb_ref_ptr.h (class ref_ptr) <release>: Add
11799 ATTRIBUTE_UNUSED_RESULT.
11801 2019-03-05 Tom Tromey <tromey@adacore.com>
11803 * remote.c (class scoped_remote_fd) <release>: Add
11804 ATTRIBUTE_UNUSED_RESULT.
11806 2019-03-05 Tom Tromey <tromey@adacore.com>
11808 * macroexp.c (struct macro_buffer) <release>: Add
11809 ATTRIBUTE_UNUSED_RESULT.
11811 2019-03-05 Tom Tromey <tromey@adacore.com>
11813 * nat/linux-btrace.c (linux_enable_bts, linux_enable_pt): Update.
11814 * common/scoped_mmap.h (class scoped_mmap) <release>: Add
11815 ATTRIBUTE_UNUSED_RESULT.
11817 2019-03-05 Tom Tromey <tromey@adacore.com>
11819 * common/scoped_fd.h (class scoped_fd) <release>: Add
11820 ATTRIBUTE_UNUSED_RESULT.
11822 2019-03-05 Tom Tromey <tromey@adacore.com>
11824 * parser-defs.h (struct parser_state) <release>: Add
11825 ATTRIBUTE_UNUSED_RESULT.
11827 2019-03-05 Tom Tromey <tromey@adacore.com>
11829 * utils.h (class gdb_argv) <release>: Add
11830 ATTRIBUTE_UNUSED_RESULT.
11831 * common/common-defs.h (ATTRIBUTE_UNUSED_RESULT): Define.
11833 2019-03-02 Eli Zaretskii <eliz@gnu.org>
11835 * xml-syscall.c (xml_list_syscalls_by_group): Drop 'struct' from
11836 for-loop range, to avoid compiler warnings.
11838 * tui/tui.c (tui_enable) [__MINGW32__]: Don't declare 'cap', to
11839 avoid compiler warnings about unused variables.
11841 * NEWS: Mention end of support for native debugging on MS-Windows
11845 * common/netstuff.c:
11846 * gdbserver/gdbreplay.c
11847 * gdbserver/remote-utils.c:
11849 * unittests/parse-connection-spec-selftests.c [USE_WIN32API]:
11850 Include ws2tcpip.h instead of wsiapi.h and winsock2.h. Redefine
11851 _WIN32_WINNT to 0x0501 if defined to a smaller value, as
11852 'getaddrinfo' and 'freeaddrinfo' were not available before
11853 Windows XP, and mingw.org's MinGW headers by default define
11854 _WIN32_WINNT to 0x500.
11856 2019-03-01 Gary Benson <gbenson@redhat.com>
11858 * coffread.c (coff_start_symtab): Remove unnecessary xstrdup.
11860 2019-02-28 Brian Vandenberg <phantall@gmail.com>
11861 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11864 * procfs.c (proc_wait_for_stop): Wrap write of PCWSTOP in
11865 set_sigint_trap, clear_sigint_trap.
11867 2019-02-27 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11869 * target.c (target_detach): Clear the regcache and the
11872 2019-02-27 Pedro Alves <palves@redhat.com>
11874 * utils.c (set_screen_size): When we cap the height/width sizes,
11875 tweak the corresponding command variable to show "unlimited":
11877 2019-02-27 Saagar Jha <saagar@saagarjha.com>
11878 Pedro Alves <palves@redhat.com>
11880 * utils.c (set_screen_size): Reduce "infinite" rows and columns
11881 before calling rl_set_screen_size.
11883 2019-02-27 Tom Tromey <tromey@adacore.com>
11885 * configure.ac (HAVE_LIBPYTHON2_4, HAVE_LIBPYTHON2_5): Never
11887 * python/py-value.c: Remove Python 2.4 workaround.
11888 * python/py-utils.c (gdb_pymodule_addobject): Remove Python 2.4
11890 * python/py-type.c (convert_field, gdbpy_initialize_types): Remove
11891 Python 2.4 workaround.
11892 * python/python-internal.h: Remove Python 2.4 comment.
11893 (Py_ssize_t): Don't define.
11894 (PyVarObject_HEAD_INIT, Py_TYPE): Don't define.
11895 (gdb_Py_DECREF): Remove Python 2.4 workaround.
11896 (gdb_PyObject_GetAttrString, PyObject_GetAttrString): Remove.
11897 (gdb_PyObject_HasAttrString, PyObject_HasAttrString): Remove.
11898 * python/python.c (do_start_initialization): Remove Python 2.4
11900 * python/py-prettyprint.c (class dummy_python_frame): Remove.
11901 (print_children): Remove Python 2.4 workaround.
11902 * python/py-inferior.c (buffer_procs): Remove Python 2.4
11904 (CHARBUFFERPROC_NAME): Remove.
11905 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Remove
11906 Python 2.4 workaround.
11908 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11910 * NEWS: Note minimum Python version.
11912 2019-02-27 Kevin Buettner <kevinb@redhat.com>
11914 * python/py-inferior.c (infpy_write_memory): Remove non-IS_PY3K
11915 code from these functions. Remove corresponding ifdefs. Use
11916 Py_buffer_up instead of explicit calls to PyBuffer_Release.
11917 Remove gotos and target of gotos.
11918 (infpy_search_memory): Likewise.
11920 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11922 * gdb/hppa-tdep.c (hppa_dummy_id): Delete.
11923 (hppa_gdbarch_init): Don't register deleted functions with
11926 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11928 * gdb/h8300-tdep.c (h8300_unwind_pc): Delete.
11929 (h8300_unwind_sp): Delete.
11930 (h8300_dummy_id): Delete.
11931 (h8300_gdbarch_init): Don't register deleted functions with
11934 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11936 * gdb/ft32-tdep.c (ft32_dummy_id): Delete.
11937 (ft32_unwind_pc): Delete.
11938 (ft32_unwind_sp): Delete.
11939 (ft32_gdbarch_init): Don't register deleted functions with
11942 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11944 * gdb/frv-tdep.c (frv_dummy_id): Delete.
11945 (frv_unwind_pc): Delete.
11946 (frv_unwind_sp): Delete.
11947 (frv_gdbarch_init): Don't register deleted functions with
11950 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11952 * gdb/riscv-tdep.c (riscv_dummy_id): Delete.
11953 (riscv_unwind_pc): Delete.
11954 (riscv_unwind_sp): Delete.
11955 (riscv_gdbarch_init): Don't register deleted functions with
11958 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11960 * gdb/csky-tdep.c (csky_dummy_id): Delete.
11961 (csky_unwind_pc): Delete.
11962 (csky_unwind_sp): Delete.
11963 (csky_gdbarch_init): Don't register deleted functions with
11966 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11968 * gdb/cris-tdep.c (cris_dummy_id): Delete.
11969 (cris_unwind_pc): Delete.
11970 (cris_unwind_sp): Delete.
11971 (cris_gdbarch_init): Don't register deleted functions with
11974 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11976 * gdb/bfin-tdep.c (bfin_dummy_id): Delete.
11977 (bfin_unwind_pc): Delete.
11978 (bfin_gdbarch_init): Don't register deleted functions with gdbarch.
11980 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11982 * gdb/arm-tdep.c (arm_dummy_id): Delete.
11983 (arm_unwind_pc): Delete.
11984 (arm_unwind_sp): Delete.
11985 (arm_gdbarch_init): Don't register deleted functions with gdbarch.
11987 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11989 * gdb/arc-tdep.c (arc_dummy_id): Delete.
11990 (arc_unwind_pc): Delete.
11991 (arc_unwind_sp): Delete.
11992 (arc_gdbarch_init): Don't register deleted functions with gdbarch.
11994 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
11996 * gdb/alpha-tdep.c (alpha_dummy_id): Delete.
11997 (alpha_unwind_pc): Delete.
11998 (alpha_gdbarch_init): Don't register deleted functions with
12001 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12003 * gdb/aarch64-tdep.c (aarch64_dummy_id): Delete.
12004 (aarch64_unwind_pc): Delete.
12005 (aarch64_unwind_sp): Delete.
12006 (aarch64_gdbarch_init): Don't register deleted functions with
12009 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12011 * gdbtypes.c (type_align): Don't consider static members when
12012 computing structure alignment.
12014 2019-02-27 Andrew Burgess <andrew.burgess@embecosm.com>
12016 * arc-tdep.c (arc_type_align): Provide alignment for basic types,
12017 return 0 for other types.
12018 * arch-utils.c (default_type_align): Always return 0.
12019 * gdbarch.h: Regenerate.
12020 * gdbarch.sh (type_align): Extend comment.
12021 * gdbtypes.c (type_align): Add additional comments, always call
12022 gdbarch_type_align before applying the default rules.
12023 * i386-tdep.c (i386_type_align): Return 0 as the default rule,
12024 generic code will then apply a suitable default.
12025 * nios2-tdep.c (nios2_type_align): Provide alignment for basic
12026 types, return 0 for other types.
12028 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12030 * NEWS: Create a new section for the next release branch.
12031 Rename the section of the current branch, now that it has
12034 2019-02-27 Joel Brobecker <brobecker@adacore.com>
12036 GDB 8.3 branch created (143420fb0d5ae54323ba9953f0818c194635228d):
12037 * version.in: Bump version to 8.3.50.DATE-git.
12039 2019-02-26 Simon Marchi <simon.marchi@efficios.com>
12041 * aix-thread.c (ptid_cmp): Remove unused variable.
12042 (get_signaled_thread): Likewise.
12043 (store_regs_user_thread): Likewise.
12044 (store_regs_kernel_thread): Likewise.
12045 (fetch_regs_kernel_thread): Remove shadowed variable.
12047 2019-02-26 Andrew Burgess <andrew.burgess@embecosm.com>
12049 * features/riscv/32bit-cpu.xml: Add register numbers.
12050 * features/riscv/32bit-fpu.c: Regenerate.
12051 * features/riscv/32bit-fpu.xml: Add register numbers.
12052 * features/riscv/64bit-cpu.xml: Add register numbers.
12053 * features/riscv/64bit-fpu.c: Regenerate.
12054 * features/riscv/64bit-fpu.xml: Add register numbers.
12056 2019-02-26 Kevin Buettner <kevinb@redhat.com>
12058 * NEWS: Mention two argument form of gdb.Value constructor.
12059 * python/py-value.c (convert_buffer_and_type_to_value): New
12061 (valpy_new): Parse arguments via gdb_PyArg_ParseTupleAndKeywords.
12062 Add support for handling an optional second argument. Call
12063 convert_buffer_and_type_to_value as appropriate.
12064 * python/python-internal.h (Py_buffer_deleter): New struct.
12065 (Py_buffer_up): New typedef.
12067 2019-02-25 John Baldwin <jhb@FreeBSD.org>
12069 * dwarf2read.c (dwarf2_get_dwz_file): Reset dwz_bfd to nullptr
12070 instead of releasing ownership.
12072 2019-02-25 Jordan Rupprecht <rupprecht@google.com>
12074 * dwarf2read.c (open_and_init_dwp_file): Call
12075 elf_numsections instead of bfd_count_sections to initialize
12076 dwp_file->num_sections.
12078 2019-02-25 Tom Tromey <tromey@adacore.com>
12080 * solib-darwin.c (darwin_get_dyld_bfd): Don't release dyld_bfd.
12082 2019-02-23 Sergio Durigan Junior <sergiodj@redhat.com>
12084 * gcore.in: Add '--readnever' option when invoking GDB.
12086 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12088 * MAINTAINERS: Update my email address.
12090 2019-02-22 Simon Marchi <simon.marchi@polymtl.ca>
12092 * build-id.c (build_id_to_debug_bfd_1): New function.
12093 (build_id_to_debug_bfd): Look for separate debug file in
12096 2019-02-22 Andrew Burgess <andrew.burgess@embecosm.com>
12098 * gdbarch.sh: Update the copyright year range that is placed into
12101 2019-02-22 Keith Seitz <keiths@redhat.com>
12104 * linespec.c (create_sals_line_offset): Search for the default
12105 symtab's filename instead of its fullname.
12107 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12109 * NEWS: Update style defaults.
12111 2019-02-21 Alan Hayward <alan.hayward@arm.com>
12113 * main.c (captured_main_1): Disable styling in batch mode.
12115 2019-02-20 Tom Tromey <tom@tromey.com>
12117 * symtab.c (symtab_symbol_info): Fix typos.
12119 2019-02-20 Tom Tromey <tromey@adacore.com>
12121 * findcmd.c (_initialize_mem_search): Use upper case for
12122 metasyntactic variables.
12124 2019-02-20 Alan Hayward <alan.hayward@arm.com>
12126 * aarch64-tdep.c (aarch64_add_reggroups): New function.
12127 (aarch64_gdbarch_init): Call aarch64_add_reggroups.
12129 2019-02-19 Simon Marchi <simon.marchi@polymtl.ca>
12131 * top.h (source_file_name): Change to std::string.
12132 * top.c (source_file_name): Likewise.
12133 (command_line_input): Adjust.
12134 * cli/cli-script.c (script_from_file): Adjust.
12136 2019-02-19 Tom Tromey <tromey@adacore.com>
12138 * ravenscar-thread.c
12139 (ravenscar_thread_target::update_thread_list): Don't call
12140 ada_build_task_list.
12141 * ada-lang.h (ada_build_task_list): Don't declare.
12142 * ada-tasks.c (struct ada_tasks_inferior_data)
12143 <task_list_valid_p>: Now bool.
12144 (read_known_tasks, ada_task_list_changed)
12145 (ada_tasks_invalidate_inferior_data): Update.
12146 (read_known_tasks_array): Return bool.
12147 (read_known_tasks_list): Likewise.
12148 (read_known_tasks): Return void.
12149 (ada_build_task_list): Now static.
12151 2019-02-18 Andrew Burgess <andrew.burgess@embecosm.com>
12153 * gdbtypes.c (type_align): Allow alignment of TYPE_CODE_METHODPTR
12154 and TYPE_CODE_MEMBERPTR to be overridden by the gdbarch.
12156 2019-02-18 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12158 * ada-task.c (_initialize_tasks): Use 'with_cleanup' register
12159 variant for ada_tasks_pspace_data_handle and
12160 ada_tasks_inferior_data_handle.
12161 (ada_tasks_pspace_data_cleanup): New function.
12162 (ada_tasks_inferior_data_cleanup): New function.
12164 2019-02-17 Tom Tromey <tom@tromey.com>
12166 * macrotab.h (macro_source_fullname): Return a std::string.
12167 * macrotab.c (macro_include, check_for_redefinition)
12168 (macro_undef, macro_lookup_definition, foreach_macro)
12169 (foreach_macro_in_scope): Update.
12170 (macro_source_fullname): Return a std::string.
12171 * macrocmd.c (show_pp_source_pos): Update.
12173 2019-02-17 Tom Tromey <tom@tromey.com>
12175 * macrocmd.c (show_pp_source_pos): Style the file names.
12177 2019-02-17 Tom Tromey <tom@tromey.com>
12180 * tui/tui-source.c (tui_set_source_content_nil): Rewrite.
12182 2019-02-17 Tom Tromey <tom@tromey.com>
12184 * ada-lang.c (user_select_syms): Use filtered printing.
12185 * utils.c (wrap_style): New global.
12186 (desired_style): Remove.
12187 (emit_style_escape): Add stream parameter.
12188 (set_output_style, reset_terminal_style, prompt_for_continue):
12190 (flush_wrap_buffer): Only flush gdb_stdout.
12191 (wrap_here): Set wrap_style.
12192 (fputs_maybe_filtered): Clear the wrap buffer on exception. Don't
12193 treat escape sequences as a character. Change when wrap buffer is
12195 (fputs_styled): Do not set the output style when the default is
12197 * ui-style.h (struct ui_file_style) <is_default>: New method.
12198 * source.c (print_source_lines_base): Emit escape sequences in one
12201 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12203 * gdbtypes.c (type_align): Handle TYPE_CODE_RANGE the same as
12204 integers and enumeration types.
12206 2019-02-17 Joel Brobecker <brobecker@adacore.com>
12208 * ada-lang.c (standard_lookup): Use ada_lookup_encoded_symbol
12209 instead of lookup_symbol_in_language
12210 (do_exact_match): New function.
12211 (ada_get_symbol_name_matcher): Return do_exact_match when
12212 doing a verbatim match.
12214 2019-02-15 Tom Tromey <tromey@adacore.com>
12216 * ravenscar-thread.c (ravenscar_thread_target::resume)
12217 (ravenscar_thread_target::wait): Special case wildcard requests.
12219 2019-02-15 Tom Tromey <tromey@adacore.com>
12221 * ravenscar-thread.c (base_ptid): Remove.
12222 (struct ravenscar_thread_target) <close>: New method.
12223 <m_base_ptid>: New member.
12224 <update_inferior_ptid, active_task, task_is_currently_active,
12225 runtime_initialized>: Declare methods.
12226 <ravenscar_thread_target>: Add constructor.
12227 (ravenscar_thread_target::task_is_currently_active)
12228 (ravenscar_thread_target::update_inferior_ptid)
12229 (ravenscar_runtime_initialized): Rename. Now methods.
12230 (ravenscar_thread_target::resume, ravenscar_thread_target::wait)
12231 (ravenscar_thread_target::update_thread_list): Update.
12232 (ravenscar_thread_target::active_task): Now method.
12233 (ravenscar_thread_target::store_registers)
12234 (ravenscar_thread_target::prepare_to_store)
12235 (ravenscar_thread_target::prepare_to_store)
12236 (ravenscar_thread_target::mourn_inferior): Update.
12237 (ravenscar_inferior_created): Use "new" to create target.
12238 (ravenscar_thread_target::get_ada_task_ptid): Update.
12239 (_initialize_ravenscar): Don't initialize base_ptid.
12240 (ravenscar_ops): Remove global.
12242 2019-02-15 Tom Tromey <tromey@adacore.com>
12244 * target.h (push_target): Declare new overload.
12245 * target.c (push_target): New overload, taking an rvalue reference.
12246 * remote.c (remote_target::open_1): Use push_target overload.
12247 * corelow.c (core_target_open): Use push_target overload.
12249 2019-02-15 Tom Tromey <tromey@adacore.com>
12251 * ravenscar-thread.c (is_ravenscar_task)
12252 (ravenscar_task_is_currently_active): Return bool.
12253 (ravenscar_update_inferior_ptid, get_running_thread_msymbol)
12254 (_initialize_ravenscar): Remove "(void)".
12255 (has_ravenscar_runtime, ravenscar_runtime_initialized): Likewise.
12258 2019-02-15 Tom Tromey <tromey@adacore.com>
12260 * ravenscar-thread.c (ravenscar_runtime_initializer)
12261 (has_ravenscar_runtime, get_running_thread_id)
12262 (ravenscar_thread_target::resume): Fix indentation.
12264 2019-02-15 Tom Tromey <tromey@adacore.com>
12266 * sparc-ravenscar-thread.c (struct sparc_ravenscar_ops): Derive
12267 from ravenscar_arch_ops.
12268 (sparc_ravenscar_ops::fetch_registers)
12269 (sparc_ravenscar_ops::store_registers): Now methods.
12270 (sparc_ravenscar_prepare_to_store): Remove.
12271 (sparc_ravenscar_ops): Redefine.
12272 * ravenscar-thread.h (struct ravenscar_arch_ops): Add virtual
12273 methods and destructor. Remove members.
12274 * ravenscar-thread.c (ravenscar_thread_target::fetch_registers)
12275 (ravenscar_thread_target::store_registers)
12276 (ravenscar_thread_target::prepare_to_store): Update.
12277 * ppc-ravenscar-thread.c (ppc_ravenscar_generic_prepare_to_store):
12279 (struct ppc_ravenscar_powerpc_ops): Derive from
12280 ravenscar_arch_ops.
12281 (ppc_ravenscar_powerpc_ops::fetch_registers)
12282 (ppc_ravenscar_powerpc_ops::store_registers): Now methods.
12283 (ppc_ravenscar_powerpc_ops): Redefine.
12284 (struct ppc_ravenscar_e500_ops): Derive from ravenscar_arch_ops.
12285 (ppc_ravenscar_e500_ops::fetch_registers)
12286 (ppc_ravenscar_e500_ops::store_registers): Now methods.
12287 (ppc_ravenscar_e500_ops): Redefine.
12288 * aarch64-ravenscar-thread.c
12289 (aarch64_ravenscar_generic_prepare_to_store): Remove.
12290 (struct aarch64_ravenscar_ops): Derive from ravenscar_arch_ops.
12291 (aarch64_ravenscar_fetch_registers)
12292 (aarch64_ravenscar_store_registers): Now methods.
12293 (aarch64_ravenscar_ops): Redefine.
12295 2019-02-15 Tom Tromey <tromey@adacore.com>
12297 * ravenscar-thread.c (ravenscar_thread_target::stopped_by_sw_breakpoint)
12298 (ravenscar_thread_target::stopped_by_hw_breakpoint)
12299 (ravenscar_thread_target::stopped_by_watchpoint)
12300 (ravenscar_thread_target::stopped_data_address)
12301 (ravenscar_thread_target::core_of_thread): Use scoped_restore.
12303 2019-02-15 Tom Tromey <tromey@adacore.com>
12305 * ravenscar-thread.c: Fix some typos.
12307 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12308 Tom Tromey <tromey@adacore.com>
12310 * ada-lang.c (ada_exception_sal): Change addr_string to a
12312 (create_ada_exception_catchpoint): Update.
12314 2019-02-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12315 Tom Tromey <tromey@adacore.com>
12317 * breakpoint.c (~bp_location): Rename from bp_location_dtor.
12318 (bp_location_ops): Remove.
12319 (base_breakpoint_allocate_location): Update.
12320 (free_bp_location): Update.
12321 * ada-lang.c (class ada_catchpoint_location)
12322 <ada_catchpoint_location>: Remove ops parameter.
12323 (ada_catchpoint_location_dtor): Remove.
12324 (ada_catchpoint_location_ops): Remove.
12325 (allocate_location_exception): Update.
12326 * breakpoint.h (struct bp_location_ops): Remove.
12327 (class bp_location) <bp_location>: Remove bp_location_ops
12329 <~bp_location>: Add destructor.
12332 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12333 Pedro Alves <palves@redhat.com>
12335 * remote.c (remote_target::remote_parse_stop_reply): Avoid using
12338 2019-02-14 David Michael <fedora.dm0@gmail.com>
12339 Samuel Thibault <samuel.thibault@gnu.org>
12340 Thomas Schwinge <thomas@codesourcery.com>
12342 * gnu-nat.c (S_proc_getmsgport_reply, S_proc_task2proc_reply)
12343 (S_proc_pid2proc_reply): Adjust to Hurd "proc" interface changes.
12345 2019-02-14 Thomas Schwinge <thomas@codesourcery.com>
12347 * gnu-nat.c (gnu_write_inferior, parse_int_arg, _parse_bool_arg)
12348 (check_empty): Use "const char *".
12350 * gnu-nat.c (gnu_nat_target::detach): Instead of
12351 'detach_inferior (pid)' call
12352 'detach_inferior (find_inferior_pid (pid))'.
12354 * configure.nat [gdb_host == i386gnu] (NATDEPFILES): Add
12355 'nat/fork-inferior.o'.
12356 * gnu-nat.c: #include "nat/fork-inferior.h".
12358 * gnu-nat.c (gnu_nat_target::detach): Instead of
12359 'inf_child_maybe_unpush_target (ops)' call 'maybe_unpush_target'.
12360 * gnu-nat.h: #include "inf-child.h".
12361 * i386-gnu-nat.c (gnu_fetch_registers): Rename/move to
12362 'i386_gnu_nat_target::fetch_registers'.
12363 (gnu_store_registers): Rename/move to
12364 'i386_gnu_nat_target::store_registers'.
12366 * config/i386/nm-i386gnu.h: Don't "#include" any files.
12367 * gnu-nat.h (mach_thread_info): New function.
12368 * gnu-nat.c (thread_takeover_sc_cmd): Use it.
12370 * config/i386/nm-i386gnu.h (gnu_target_pid_to_str): Remove.
12372 2019-02-14 Frederic Konrad <konrad@adacore.com>
12374 * riscv-rdep.c (riscv_type_alignment): Handle TYPE_CODE_RANGE.
12376 2019-02-14 Joel Brobecker <brobecker@adacore.com>
12378 * windows-nat.c (windows_add_thread): Add new parameter
12379 "main_thread_p" with default value set to false. Update
12380 function documentation as well as all callers.
12381 (windows_delete_thread): Likewise.
12382 (fake_create_process): Update call to windows_add_thread.
12383 (get_windows_debug_event) <CREATE_THREAD_DEBUG_EVENT>
12384 <CREATE_PROCESS_DEBUG_EVENT>: Likewise.
12385 <EXIT_THREAD_DEBUG_EVENT, EXIT_PROCESS_DEBUG_EVENT>: Update
12386 call to windows_delete_thread.
12388 2019-02-13 Simon Marchi <simon.marchi@ericsson.com>
12390 * MAINTAINERS: Add Andrew Burgess as global maintainer.
12392 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12394 * symfile.c (find_separate_debug_file): Use canonical path of
12395 sysroot with child_path instead of gdb_sysroot if it is valid.
12397 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12399 * symfile.c (find_separate_debug_file): Use child_path to
12400 determine if an object file is under a sysroot.
12402 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12404 * Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
12405 unittests/child-path-selftests.c.
12406 * common/pathstuff.c (child_path): New function.
12407 * common/pathstuff.h (child_path): New prototype.
12408 * unittests/child-path-selftests.c: New file.
12410 2019-02-12 John Baldwin <jhb@FreeBSD.org>
12412 * symfile.c (find_separate_debug_file): Look for separate debug
12413 files in debug directories under the sysroot.
12415 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12417 * symtab.h (struct minimal_symbol data_p): New const method.
12418 (struct minimal_symbol text_p): Likewise.
12419 * symtab.c (output_source_filename): Use file name style
12420 to print file name.
12421 (print_symbol_info): Likewise.
12422 (print_msymbol_info): Use address style to print addresses.
12423 Use function name style to print executable text symbols.
12424 (expand_symtab_containing_pc): Use data_p.
12425 (find_pc_sect_compunit_symtab): Likewise.
12427 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12429 * breakpoint.c (describe_other_breakpoints): Use address style
12430 to print addresses.
12431 (say_where): Likewise.
12433 2019-02-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12435 * ada-typeprint.c (print_func_type): Print function name
12436 style to print function name.
12437 * c-typeprint.c (c_print_type_1): Likewise.
12439 2019-02-11 Alan Hayward <alan.hayward@arm.com>
12441 * aarch64-linux-tdep.c (aarch64_linux_get_syscall_number): Check
12444 2019-02-10 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12446 * c-exp.y (direct_abs_decl): Use emplace_back to record the
12449 2019-02-10 Joel Brobecker <brobecker@adacore.com>
12451 * ada-varobj.c (ada_value_is_changeable_p): Add handling of
12452 TYPE_CODE_REF types.
12454 2019-02-08 Jim Wilson <jimw@sifive.com>
12456 * riscv-linux-tdep.c (riscv_linux_fregmap): New.
12457 (riscv_linux_fregset): New.
12458 (riscv_linux_iterate_over_regset_sections): Call cb for .reg2 section.
12460 2019-02-07 Tom Tromey <tom@tromey.com>
12462 * thread.c (thread_cancel_execution_command): Update.
12463 * thread-fsm.h (struct thread_fsm): Add constructor, destructor,
12465 (struct thread_fsm_ops): Remove.
12466 (thread_fsm_ctor, thread_fsm_delete, thread_fsm_clean_up)
12467 (thread_fsm_should_stop, thread_fsm_return_value)
12468 (thread_fsm_set_finished, thread_fsm_finished_p)
12469 (thread_fsm_async_reply_reason, thread_fsm_should_notify_stop):
12471 * mi/mi-interp.c (mi_on_normal_stop_1): Update.
12472 * infrun.c (clear_proceed_status_thread)
12473 (clean_up_just_stopped_threads_fsms, fetch_inferior_event)
12474 (print_stop_event): Update.
12475 * infcmd.c (struct step_command_fsm): Inherit from thread_fsm.
12477 (step_command_fsm_ops): Remove.
12478 (new_step_command_fsm): Remove.
12480 (step_command_fsm::should_stop): Rename from
12481 step_command_fsm_should_stop.
12482 (step_command_fsm::clean_up): Rename from
12483 step_command_fsm_clean_up.
12484 (step_command_fsm::do_async_reply_reason): Rename from
12485 step_command_fsm_async_reply_reason.
12486 (struct until_next_fsm): Inherit from thread_fsm. Add
12488 (until_next_fsm_ops): Remove.
12489 (new_until_next_fsm): Remove.
12490 (until_next_fsm::should_stop): Rename from
12491 until_next_fsm_should_stop.
12492 (until_next_fsm::clean_up): Rename from until_next_fsm_clean_up.
12493 (until_next_fsm::do_async_reply_reason): Rename from
12494 until_next_fsm_async_reply_reason.
12495 (struct finish_command_fsm): Inherit from thread_fsm. Add
12496 constructor. Change type of breakpoint.
12497 (finish_command_fsm_ops): Remove.
12498 (new_finish_command_fsm): Remove.
12499 (finish_command_fsm::should_stop): Rename from
12500 finish_command_fsm_should_stop.
12501 (finish_command_fsm::clean_up): Rename from
12502 finish_command_fsm_clean_up.
12503 (finish_command_fsm::return_value): Rename from
12504 finish_command_fsm_return_value.
12505 (finish_command_fsm::do_async_reply_reason): Rename from
12506 finish_command_fsm_async_reply_reason.
12507 (finish_command): Update.
12508 * infcall.c (struct call_thread_fsm): Inherit from thread_fsm.
12510 (call_thread_fsm_ops): Remove.
12511 (call_thread_fsm::call_thread_fsm): Rename from
12512 new_call_thread_fsm.
12513 (call_thread_fsm::should_stop): Rename from
12514 call_thread_fsm_should_stop.
12515 (call_thread_fsm::should_notify_stop): Rename from
12516 call_thread_fsm_should_notify_stop.
12517 (run_inferior_call, call_function_by_hand_dummy): Update.
12518 * cli/cli-interp.c (should_print_stop_to_console): Update.
12519 * breakpoint.c (struct until_break_fsm): Inherit from thread_fsm.
12520 Add constructor. Change type of location_breakpoint,
12522 (until_break_fsm_ops): Remove.
12523 (new_until_break_fsm): Remove.
12524 (until_break_fsm::should_stop): Rename from
12525 until_break_fsm_should_stop.
12526 (until_break_fsm::clean_up): Rename from
12527 until_break_fsm_clean_up.
12528 (until_break_fsm::do_async_reply_reason): Rename from
12529 until_break_fsm_async_reply_reason.
12530 (until_break_command): Update.
12531 * thread-fsm.c: Remove.
12532 * Makefile.in (COMMON_SFILES): Remove thread-fsm.c.
12534 2019-02-07 Tom Tromey <tom@tromey.com>
12536 * yy-remap.h: Add include guard.
12537 * xtensa-tdep.h: Add include guard.
12538 * xcoffread.h: Rename include guard.
12539 * varobj-iter.h: Add include guard.
12540 * tui/tui.h: Rename include guard.
12541 * tui/tui-winsource.h: Rename include guard.
12542 * tui/tui-wingeneral.h: Rename include guard.
12543 * tui/tui-windata.h: Rename include guard.
12544 * tui/tui-win.h: Rename include guard.
12545 * tui/tui-stack.h: Rename include guard.
12546 * tui/tui-source.h: Rename include guard.
12547 * tui/tui-regs.h: Rename include guard.
12548 * tui/tui-out.h: Rename include guard.
12549 * tui/tui-layout.h: Rename include guard.
12550 * tui/tui-io.h: Rename include guard.
12551 * tui/tui-hooks.h: Rename include guard.
12552 * tui/tui-file.h: Rename include guard.
12553 * tui/tui-disasm.h: Rename include guard.
12554 * tui/tui-data.h: Rename include guard.
12555 * tui/tui-command.h: Rename include guard.
12556 * tic6x-tdep.h: Add include guard.
12557 * target/waitstatus.h: Rename include guard.
12558 * target/wait.h: Rename include guard.
12559 * target/target.h: Rename include guard.
12560 * target/resume.h: Rename include guard.
12561 * target-float.h: Rename include guard.
12562 * stabsread.h: Add include guard.
12563 * rs6000-tdep.h: Add include guard.
12564 * riscv-fbsd-tdep.h: Add include guard.
12565 * regformats/regdef.h: Rename include guard.
12566 * record.h: Rename include guard.
12567 * python/python.h: Rename include guard.
12568 * python/python-internal.h: Rename include guard.
12569 * python/py-stopevent.h: Rename include guard.
12570 * python/py-ref.h: Rename include guard.
12571 * python/py-record.h: Rename include guard.
12572 * python/py-record-full.h: Rename include guard.
12573 * python/py-record-btrace.h: Rename include guard.
12574 * python/py-instruction.h: Rename include guard.
12575 * python/py-events.h: Rename include guard.
12576 * python/py-event.h: Rename include guard.
12577 * procfs.h: Add include guard.
12578 * proc-utils.h: Add include guard.
12579 * p-lang.h: Add include guard.
12580 * or1k-tdep.h: Rename include guard.
12581 * observable.h: Rename include guard.
12582 * nto-tdep.h: Rename include guard.
12583 * nat/x86-linux.h: Rename include guard.
12584 * nat/x86-linux-dregs.h: Rename include guard.
12585 * nat/x86-gcc-cpuid.h: Add include guard.
12586 * nat/x86-dregs.h: Rename include guard.
12587 * nat/x86-cpuid.h: Rename include guard.
12588 * nat/ppc-linux.h: Rename include guard.
12589 * nat/mips-linux-watch.h: Rename include guard.
12590 * nat/linux-waitpid.h: Rename include guard.
12591 * nat/linux-ptrace.h: Rename include guard.
12592 * nat/linux-procfs.h: Rename include guard.
12593 * nat/linux-osdata.h: Rename include guard.
12594 * nat/linux-nat.h: Rename include guard.
12595 * nat/linux-namespaces.h: Rename include guard.
12596 * nat/linux-btrace.h: Rename include guard.
12597 * nat/glibc_thread_db.h: Rename include guard.
12598 * nat/gdb_thread_db.h: Rename include guard.
12599 * nat/gdb_ptrace.h: Rename include guard.
12600 * nat/fork-inferior.h: Rename include guard.
12601 * nat/amd64-linux-siginfo.h: Rename include guard.
12602 * nat/aarch64-sve-linux-sigcontext.h: Rename include guard.
12603 * nat/aarch64-sve-linux-ptrace.h: Rename include guard.
12604 * nat/aarch64-linux.h: Rename include guard.
12605 * nat/aarch64-linux-hw-point.h: Rename include guard.
12606 * mn10300-tdep.h: Add include guard.
12607 * mips-linux-tdep.h: Add include guard.
12608 * mi/mi-parse.h: Rename include guard.
12609 * mi/mi-out.h: Rename include guard.
12610 * mi/mi-main.h: Rename include guard.
12611 * mi/mi-interp.h: Rename include guard.
12612 * mi/mi-getopt.h: Rename include guard.
12613 * mi/mi-console.h: Rename include guard.
12614 * mi/mi-common.h: Rename include guard.
12615 * mi/mi-cmds.h: Rename include guard.
12616 * mi/mi-cmd-break.h: Rename include guard.
12617 * m2-lang.h: Add include guard.
12618 * location.h: Rename include guard.
12619 * linux-record.h: Rename include guard.
12620 * linux-nat.h: Add include guard.
12621 * linux-fork.h: Add include guard.
12622 * i386-darwin-tdep.h: Rename include guard.
12623 * hppa-linux-offsets.h: Add include guard.
12624 * guile/guile.h: Rename include guard.
12625 * guile/guile-internal.h: Rename include guard.
12626 * gnu-nat.h: Rename include guard.
12627 * gdb-stabs.h: Rename include guard.
12628 * frv-tdep.h: Add include guard.
12629 * f-lang.h: Add include guard.
12630 * event-loop.h: Add include guard.
12631 * darwin-nat.h: Rename include guard.
12632 * cp-abi.h: Rename include guard.
12633 * config/sparc/nm-sol2.h: Rename include guard.
12634 * config/nm-nto.h: Rename include guard.
12635 * config/nm-linux.h: Add include guard.
12636 * config/i386/nm-i386gnu.h: Rename include guard.
12637 * config/djgpp/nl_types.h: Rename include guard.
12638 * config/djgpp/langinfo.h: Rename include guard.
12639 * compile/gcc-cp-plugin.h: Add include guard.
12640 * compile/gcc-c-plugin.h: Add include guard.
12641 * compile/compile.h: Rename include guard.
12642 * compile/compile-object-run.h: Rename include guard.
12643 * compile/compile-object-load.h: Rename include guard.
12644 * compile/compile-internal.h: Rename include guard.
12645 * compile/compile-cplus.h: Rename include guard.
12646 * compile/compile-c.h: Rename include guard.
12647 * common/xml-utils.h: Rename include guard.
12648 * common/x86-xstate.h: Rename include guard.
12649 * common/version.h: Rename include guard.
12650 * common/vec.h: Rename include guard.
12651 * common/tdesc.h: Rename include guard.
12652 * common/selftest.h: Rename include guard.
12653 * common/scoped_restore.h: Rename include guard.
12654 * common/scoped_mmap.h: Rename include guard.
12655 * common/scoped_fd.h: Rename include guard.
12656 * common/safe-iterator.h: Rename include guard.
12657 * common/run-time-clock.h: Rename include guard.
12658 * common/refcounted-object.h: Rename include guard.
12659 * common/queue.h: Rename include guard.
12660 * common/ptid.h: Rename include guard.
12661 * common/print-utils.h: Rename include guard.
12662 * common/preprocessor.h: Rename include guard.
12663 * common/pathstuff.h: Rename include guard.
12664 * common/observable.h: Rename include guard.
12665 * common/netstuff.h: Rename include guard.
12666 * common/job-control.h: Rename include guard.
12667 * common/host-defs.h: Rename include guard.
12668 * common/gdb_wait.h: Rename include guard.
12669 * common/gdb_vecs.h: Rename include guard.
12670 * common/gdb_unlinker.h: Rename include guard.
12671 * common/gdb_unique_ptr.h: Rename include guard.
12672 * common/gdb_tilde_expand.h: Rename include guard.
12673 * common/gdb_sys_time.h: Rename include guard.
12674 * common/gdb_string_view.h: Rename include guard.
12675 * common/gdb_splay_tree.h: Rename include guard.
12676 * common/gdb_setjmp.h: Rename include guard.
12677 * common/gdb_ref_ptr.h: Rename include guard.
12678 * common/gdb_optional.h: Rename include guard.
12679 * common/gdb_locale.h: Rename include guard.
12680 * common/gdb_assert.h: Rename include guard.
12681 * common/filtered-iterator.h: Rename include guard.
12682 * common/filestuff.h: Rename include guard.
12683 * common/fileio.h: Rename include guard.
12684 * common/environ.h: Rename include guard.
12685 * common/common-utils.h: Rename include guard.
12686 * common/common-types.h: Rename include guard.
12687 * common/common-regcache.h: Rename include guard.
12688 * common/common-inferior.h: Rename include guard.
12689 * common/common-gdbthread.h: Rename include guard.
12690 * common/common-exceptions.h: Rename include guard.
12691 * common/common-defs.h: Rename include guard.
12692 * common/common-debug.h: Rename include guard.
12693 * common/cleanups.h: Rename include guard.
12694 * common/buffer.h: Rename include guard.
12695 * common/btrace-common.h: Rename include guard.
12696 * common/break-common.h: Rename include guard.
12697 * cli/cli-utils.h: Rename include guard.
12698 * cli/cli-style.h: Rename include guard.
12699 * cli/cli-setshow.h: Rename include guard.
12700 * cli/cli-script.h: Rename include guard.
12701 * cli/cli-interp.h: Rename include guard.
12702 * cli/cli-decode.h: Rename include guard.
12703 * cli/cli-cmds.h: Rename include guard.
12704 * charset-list.h: Add include guard.
12705 * buildsym-legacy.h: Rename include guard.
12706 * bfin-tdep.h: Add include guard.
12707 * ax.h: Rename include guard.
12708 * arm-linux-tdep.h: Add include guard.
12709 * arm-fbsd-tdep.h: Add include guard.
12710 * arch/xtensa.h: Rename include guard.
12711 * arch/tic6x.h: Add include guard.
12712 * arch/i386.h: Add include guard.
12713 * arch/arm.h: Rename include guard.
12714 * arch/arm-linux.h: Rename include guard.
12715 * arch/arm-get-next-pcs.h: Rename include guard.
12716 * arch/amd64.h: Add include guard.
12717 * arch/aarch64-insn.h: Rename include guard.
12718 * arch-utils.h: Rename include guard.
12719 * annotate.h: Add include guard.
12720 * amd64-darwin-tdep.h: Rename include guard.
12721 * aarch64-linux-tdep.h: Add include guard.
12722 * aarch64-fbsd-tdep.h: Add include guard.
12723 * aarch32-linux-nat.h: Add include guard.
12725 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12727 * macrotab.c (macro_define_internal): New function that
12728 factorizes macro_define_object_internal and macro_define_function
12730 (macro_define_object_internal): Use macro_define_internal.
12731 (macro_define_function): Likewise.
12733 2019-02-06 Philippe Waroquiers <philippe.waroquiers@skynet.be>
12735 * macrocmd.c (extract_identifier): Return
12736 a gdb::unique_xmalloc_ptr<char> instead of a char *, and update
12739 2019-02-06 John Baldwin <jhb@FreeBSD.org>
12741 * fbsd-nat.c (fbsd_fetch_cmdline): Join arguments with spaces.
12743 2019-02-05 Tom Tromey <tom@tromey.com>
12745 * target.c (target_stack::unpush): Move assertion earlier.
12747 2019-01-30 Tom Tromey <tom@tromey.com>
12750 * python/python.c (execute_gdb_command): Use gdbpy_allow_threads.
12751 (gdbpy_parse_and_eval): Likewise.
12752 * python/python-internal.h (gdbpy_allow_threads): New class.
12754 2019-01-28 John Baldwin <jhb@FreeBSD.org>
12756 * aarch64-fbsd-tdep.c (aarch64_fbsd_gregmap)
12757 (aarch64_fbsd_fpregmap): Move earlier.
12758 (AARCH64_MCONTEXT_REG_SIZE, AARCH64_MCONTEXT_FPREG_SIZE): Delete.
12759 (aarch64_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12760 instead of individual calls to trad_frame_set_reg_addr.
12761 * arm-fbsd-tdep.c (arm_fbsd_gregmap, arm_fbsd_vfpregmap): Move
12763 (ARM_MCONTEXT_REG_SIZE, ARM_MCONTEXT_VFP_REG_SIZE): Delete.
12764 (arm_fbsd_sigframe_init): Use trad_frame_set_reg_regmap
12765 instead of individual calls to trad_frame_set_reg_addr.
12767 2019-01-28 Alan Hayward <alan.hayward@arm.com>
12769 * CONTRIBUTE: Replace contribution list with wiki link.
12771 2019-01-25 Tom Tromey <tom@tromey.com>
12773 * Makefile.in (GDB_CFLAGS): Don't add -I for common.
12775 2019-01-25 Tom Tromey <tom@tromey.com>
12777 * xtensa-linux-nat.c: Fix common/ includes.
12778 * xml-support.h: Fix common/ includes.
12779 * xml-support.c: Fix common/ includes.
12780 * x86-linux-nat.c: Fix common/ includes.
12781 * windows-nat.c: Fix common/ includes.
12782 * varobj.h: Fix common/ includes.
12783 * varobj.c: Fix common/ includes.
12784 * value.c: Fix common/ includes.
12785 * valops.c: Fix common/ includes.
12786 * utils.c: Fix common/ includes.
12787 * unittests/xml-utils-selftests.c: Fix common/ includes.
12788 * unittests/utils-selftests.c: Fix common/ includes.
12789 * unittests/unpack-selftests.c: Fix common/ includes.
12790 * unittests/tracepoint-selftests.c: Fix common/ includes.
12791 * unittests/style-selftests.c: Fix common/ includes.
12792 * unittests/string_view-selftests.c: Fix common/ includes.
12793 * unittests/scoped_restore-selftests.c: Fix common/ includes.
12794 * unittests/scoped_mmap-selftests.c: Fix common/ includes.
12795 * unittests/scoped_fd-selftests.c: Fix common/ includes.
12796 * unittests/rsp-low-selftests.c: Fix common/ includes.
12797 * unittests/parse-connection-spec-selftests.c: Fix common/
12799 * unittests/optional-selftests.c: Fix common/ includes.
12800 * unittests/offset-type-selftests.c: Fix common/ includes.
12801 * unittests/observable-selftests.c: Fix common/ includes.
12802 * unittests/mkdir-recursive-selftests.c: Fix common/ includes.
12803 * unittests/memrange-selftests.c: Fix common/ includes.
12804 * unittests/memory-map-selftests.c: Fix common/ includes.
12805 * unittests/lookup_name_info-selftests.c: Fix common/ includes.
12806 * unittests/function-view-selftests.c: Fix common/ includes.
12807 * unittests/environ-selftests.c: Fix common/ includes.
12808 * unittests/copy_bitwise-selftests.c: Fix common/ includes.
12809 * unittests/common-utils-selftests.c: Fix common/ includes.
12810 * unittests/cli-utils-selftests.c: Fix common/ includes.
12811 * unittests/array-view-selftests.c: Fix common/ includes.
12812 * ui-file.c: Fix common/ includes.
12813 * tui/tui-io.c: Fix common/ includes.
12814 * tracepoint.h: Fix common/ includes.
12815 * tracepoint.c: Fix common/ includes.
12816 * tracefile-tfile.c: Fix common/ includes.
12817 * top.h: Fix common/ includes.
12818 * top.c: Fix common/ includes.
12819 * thread.c: Fix common/ includes.
12820 * target/waitstatus.h: Fix common/ includes.
12821 * target/waitstatus.c: Fix common/ includes.
12822 * target.h: Fix common/ includes.
12823 * target.c: Fix common/ includes.
12824 * target-memory.c: Fix common/ includes.
12825 * target-descriptions.c: Fix common/ includes.
12826 * symtab.h: Fix common/ includes.
12827 * symfile.c: Fix common/ includes.
12828 * stap-probe.c: Fix common/ includes.
12829 * spu-linux-nat.c: Fix common/ includes.
12830 * sparc-nat.c: Fix common/ includes.
12831 * source.c: Fix common/ includes.
12832 * solib.c: Fix common/ includes.
12833 * solib-target.c: Fix common/ includes.
12834 * ser-unix.c: Fix common/ includes.
12835 * ser-tcp.c: Fix common/ includes.
12836 * ser-pipe.c: Fix common/ includes.
12837 * ser-base.c: Fix common/ includes.
12838 * selftest-arch.c: Fix common/ includes.
12839 * s12z-tdep.c: Fix common/ includes.
12840 * rust-exp.y: Fix common/ includes.
12841 * rs6000-aix-tdep.c: Fix common/ includes.
12842 * riscv-tdep.c: Fix common/ includes.
12843 * remote.c: Fix common/ includes.
12844 * remote-notif.h: Fix common/ includes.
12845 * remote-fileio.h: Fix common/ includes.
12846 * remote-fileio.c: Fix common/ includes.
12847 * regcache.h: Fix common/ includes.
12848 * regcache.c: Fix common/ includes.
12849 * record-btrace.c: Fix common/ includes.
12850 * python/python.c: Fix common/ includes.
12851 * python/py-type.c: Fix common/ includes.
12852 * python/py-inferior.c: Fix common/ includes.
12853 * progspace.h: Fix common/ includes.
12854 * producer.c: Fix common/ includes.
12855 * procfs.c: Fix common/ includes.
12856 * proc-api.c: Fix common/ includes.
12857 * printcmd.c: Fix common/ includes.
12858 * ppc-linux-nat.c: Fix common/ includes.
12859 * parser-defs.h: Fix common/ includes.
12860 * osdata.c: Fix common/ includes.
12861 * obsd-nat.c: Fix common/ includes.
12862 * nat/x86-linux.c: Fix common/ includes.
12863 * nat/x86-linux-dregs.c: Fix common/ includes.
12864 * nat/x86-dregs.h: Fix common/ includes.
12865 * nat/x86-dregs.c: Fix common/ includes.
12866 * nat/ppc-linux.c: Fix common/ includes.
12867 * nat/mips-linux-watch.h: Fix common/ includes.
12868 * nat/mips-linux-watch.c: Fix common/ includes.
12869 * nat/linux-waitpid.c: Fix common/ includes.
12870 * nat/linux-ptrace.h: Fix common/ includes.
12871 * nat/linux-ptrace.c: Fix common/ includes.
12872 * nat/linux-procfs.c: Fix common/ includes.
12873 * nat/linux-personality.c: Fix common/ includes.
12874 * nat/linux-osdata.c: Fix common/ includes.
12875 * nat/linux-namespaces.c: Fix common/ includes.
12876 * nat/linux-btrace.h: Fix common/ includes.
12877 * nat/linux-btrace.c: Fix common/ includes.
12878 * nat/fork-inferior.c: Fix common/ includes.
12879 * nat/amd64-linux-siginfo.c: Fix common/ includes.
12880 * nat/aarch64-sve-linux-ptrace.c: Fix common/ includes.
12881 * nat/aarch64-linux.c: Fix common/ includes.
12882 * nat/aarch64-linux-hw-point.h: Fix common/ includes.
12883 * nat/aarch64-linux-hw-point.c: Fix common/ includes.
12884 * namespace.h: Fix common/ includes.
12885 * mips-linux-tdep.c: Fix common/ includes.
12886 * minsyms.c: Fix common/ includes.
12887 * mi/mi-parse.h: Fix common/ includes.
12888 * mi/mi-main.c: Fix common/ includes.
12889 * mi/mi-cmd-env.c: Fix common/ includes.
12890 * memrange.h: Fix common/ includes.
12891 * memattr.c: Fix common/ includes.
12892 * maint.h: Fix common/ includes.
12893 * maint.c: Fix common/ includes.
12894 * main.c: Fix common/ includes.
12895 * machoread.c: Fix common/ includes.
12896 * location.c: Fix common/ includes.
12897 * linux-thread-db.c: Fix common/ includes.
12898 * linux-nat.c: Fix common/ includes.
12899 * linux-fork.c: Fix common/ includes.
12900 * inline-frame.c: Fix common/ includes.
12901 * infrun.c: Fix common/ includes.
12902 * inflow.c: Fix common/ includes.
12903 * inferior.h: Fix common/ includes.
12904 * inferior.c: Fix common/ includes.
12905 * infcmd.c: Fix common/ includes.
12906 * inf-ptrace.c: Fix common/ includes.
12907 * inf-child.c: Fix common/ includes.
12908 * ia64-linux-nat.c: Fix common/ includes.
12909 * i387-tdep.c: Fix common/ includes.
12910 * i386-tdep.c: Fix common/ includes.
12911 * i386-linux-tdep.c: Fix common/ includes.
12912 * i386-linux-nat.c: Fix common/ includes.
12913 * i386-go32-tdep.c: Fix common/ includes.
12914 * i386-fbsd-tdep.c: Fix common/ includes.
12915 * i386-fbsd-nat.c: Fix common/ includes.
12916 * guile/scm-type.c: Fix common/ includes.
12917 * guile/guile.c: Fix common/ includes.
12918 * go32-nat.c: Fix common/ includes.
12919 * gnu-nat.c: Fix common/ includes.
12920 * gdbthread.h: Fix common/ includes.
12921 * gdbarch-selftests.c: Fix common/ includes.
12922 * gdb_usleep.c: Fix common/ includes.
12923 * gdb_select.h: Fix common/ includes.
12924 * gdb_bfd.c: Fix common/ includes.
12925 * gcore.c: Fix common/ includes.
12926 * fork-child.c: Fix common/ includes.
12927 * findvar.c: Fix common/ includes.
12928 * fbsd-nat.c: Fix common/ includes.
12929 * event-top.c: Fix common/ includes.
12930 * event-loop.c: Fix common/ includes.
12931 * dwarf2read.c: Fix common/ includes.
12932 * dwarf2loc.c: Fix common/ includes.
12933 * dwarf2-frame.c: Fix common/ includes.
12934 * dwarf-index-cache.c: Fix common/ includes.
12935 * dtrace-probe.c: Fix common/ includes.
12936 * disasm-selftests.c: Fix common/ includes.
12937 * defs.h: Fix common/ includes.
12938 * csky-tdep.c: Fix common/ includes.
12939 * cp-valprint.c: Fix common/ includes.
12940 * cp-support.h: Fix common/ includes.
12941 * cp-support.c: Fix common/ includes.
12942 * corelow.c: Fix common/ includes.
12943 * completer.h: Fix common/ includes.
12944 * completer.c: Fix common/ includes.
12945 * compile/compile.c: Fix common/ includes.
12946 * compile/compile-loc2c.c: Fix common/ includes.
12947 * compile/compile-cplus-types.c: Fix common/ includes.
12948 * compile/compile-cplus-symbols.c: Fix common/ includes.
12949 * command.h: Fix common/ includes.
12950 * cli/cli-dump.c: Fix common/ includes.
12951 * cli/cli-cmds.c: Fix common/ includes.
12952 * charset.c: Fix common/ includes.
12953 * build-id.c: Fix common/ includes.
12954 * btrace.h: Fix common/ includes.
12955 * btrace.c: Fix common/ includes.
12956 * breakpoint.h: Fix common/ includes.
12957 * breakpoint.c: Fix common/ includes.
12959 (enum agent_op): Fix common/ includes.
12960 * ax-general.c (struct aop_map): Fix common/ includes.
12961 * ax-gdb.c: Fix common/ includes.
12962 * auxv.c: Fix common/ includes.
12963 * auto-load.c: Fix common/ includes.
12964 * arm-tdep.c: Fix common/ includes.
12965 * arch/riscv.c: Fix common/ includes.
12966 * arch/ppc-linux-common.c: Fix common/ includes.
12967 * arch/i386.c: Fix common/ includes.
12968 * arch/arm.c: Fix common/ includes.
12969 * arch/arm-linux.c: Fix common/ includes.
12970 * arch/arm-get-next-pcs.c: Fix common/ includes.
12971 * arch/amd64.c: Fix common/ includes.
12972 * arch/aarch64.c: Fix common/ includes.
12973 * arch/aarch64-insn.c: Fix common/ includes.
12974 * arch-utils.c: Fix common/ includes.
12975 * amd64-windows-tdep.c: Fix common/ includes.
12976 * amd64-tdep.c: Fix common/ includes.
12977 * amd64-sol2-tdep.c: Fix common/ includes.
12978 * amd64-obsd-tdep.c: Fix common/ includes.
12979 * amd64-nbsd-tdep.c: Fix common/ includes.
12980 * amd64-linux-tdep.c: Fix common/ includes.
12981 * amd64-linux-nat.c: Fix common/ includes.
12982 * amd64-fbsd-tdep.c: Fix common/ includes.
12983 * amd64-fbsd-nat.c: Fix common/ includes.
12984 * amd64-dicos-tdep.c: Fix common/ includes.
12985 * amd64-darwin-tdep.c: Fix common/ includes.
12986 * agent.c: Fix common/ includes.
12987 * ada-lang.h: Fix common/ includes.
12988 * ada-lang.c: Fix common/ includes.
12989 * aarch64-tdep.c: Fix common/ includes.
12991 2019-01-25 Tom Tromey <tom@tromey.com>
12993 * common/create-version.sh: Use common/version.h.
12995 2019-01-24 Pedro Alves <palves@redhat.com>
12997 * infrun.c (signal_stop, signal_print, signal_program)
12998 (signal_catch, signal_pass): Now arrays instead of pointers.
12999 (update_signals_program_target, do_target_resume)
13000 (signal_catch_update, handle_command, _initialize_infrun): Adjust.
13001 * linux-nat.c (linux_nat_target::pass_signals)
13002 (linux_nat_target::create_inferior, linux_nat_target::attach):
13004 * linux-nat.h (linux_nat_target::pass_signals): Adjust.
13005 * nto-procfs.c (nto_procfs_target::pass_signals): Adjust.
13006 * procfs.c (procfs_target::pass_signals): Adjust.
13007 * record-full.c (record_full_target::resume): Adjust.
13008 * remote.c (remote_target::pass_signals)
13009 (remote_target::program_signals): Adjust.
13010 * target-debug.h (target_debug_print_signals): Now takes a
13011 gdb::array_view as parameter. Adjust.
13012 * target.h (target_ops) <pass_signals, program_signals>: Replace
13013 pointer and length parameters with gdb::array_view.
13014 (target_pass_signals, target_program_signals): Likewise.
13015 * target-delegates.c: Regenerate.
13017 2019-01-24 Pedro Alves <palves@redhat.com>
13019 * common/forward-scope-exit.h
13020 (forward_scope_exit::forward_scope_exit): Pass arguments to
13021 m_bind_function directly, instead of creating a std::bind and
13024 2019-01-24 Alan Hayward <alan.hayward@arm.com>
13026 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13027 for static members.
13028 (pass_in_v_vfp_candidate): Likewise.
13030 2019-01-23 Tom Tromey <tom@tromey.com>
13031 Pedro Alves <palves@redhat.com>
13033 * regcache.c (class regcache_invalidator): Remove.
13034 (regcache::raw_write): Use make_scope_exit.
13036 2019-01-23 Tom Tromey <tom@tromey.com>
13038 * ui-out.h (class ui_out_emit_type): Update comment.
13040 2019-01-23 Tom Tromey <tom@tromey.com>
13042 * infrun.c (fetch_inferior_event): Update comment.
13044 2019-01-23 Tom Tromey <tom@tromey.com>
13045 Pedro Alves <palves@redhat.com>
13047 * infrun.c (reinstall_readline_callback_handler_cleanup): Remove
13049 (fetch_inferior_event): Use SCOPE_EXIT.
13052 2019-01-23 Tom Tromey <tom@tromey.com>
13053 Pedro Alves <palves@redhat.com>
13055 * infrun.c (disable_thread_events): Delete.
13056 (stop_all_threads): Use SCOPE_EXIT.
13058 2019-01-23 Tom Tromey <tom@tromey.com>
13059 Pedro Alves <palves@redhat.com>
13061 * symfile.c: Include forward-scope-exit.h.
13062 (clear_symtab_users_cleanup): Replace forward declaration with
13063 a FORWARD_SCOPE_EXIT.
13064 (syms_from_objfile_1): Use the forward_scope_exit and
13065 gdb::optional instead of cleanup_function.
13066 (reread_symbols): Use the forward_scope_exit instead of
13068 (clear_symtab_users_cleanup): Remove function.
13070 2019-01-23 Tom Tromey <tom@tromey.com>
13071 Pedro Alves <palves@redhat.com>
13073 * linux-nat.c: Include scope-exit.h.
13074 (cleanup_target_stop): Remove.
13075 (linux_nat_target::static_tracepoint_markers_by_strid): Use
13078 2019-01-23 Tom Tromey <tom@tromey.com>
13079 Pedro Alves <palves@redhat.com>
13081 * infcall.c (cleanup_delete_std_terminate_breakpoint): Remove.
13082 (call_function_by_hand_dummy): Use SCOPE_EXIT.
13084 2019-01-23 Tom Tromey <tom@tromey.com>
13085 Andrew Burgess <andrew.burgess@embecosm.com>
13086 Pedro Alves <palves@redhat.com>
13088 * infrun.c (fetch_inferior_event): Use scope_exit.
13089 * utils.h (make_bpstat_clear_actions_cleanup): Don't declare.
13090 * top.c (execute_command): Use scope_exit.
13091 * breakpoint.c (bpstat_do_actions): Use scope_exit.
13092 * utils.c (do_bpstat_clear_actions_cleanup)
13093 (make_bpstat_clear_actions_cleanup): Remove.
13095 2019-01-23 Tom Tromey <tom@tromey.com>
13096 Pedro Alves <palves@redhat.com>
13098 * infrun.c: Include "common/scope-exit.h"
13099 (delete_just_stopped_threads_infrun_breakpoints_cleanup): Remove.
13100 (wait_for_inferior): Use SCOPE_EXIT.
13101 (fetch_inferior_event): Use scope_exit.
13103 2019-01-23 Tom Tromey <tom@tromey.com>
13104 Pedro Alves <palves@redhat.com>
13106 * breakpoint.c (create_breakpoint): Remove cleanup.
13108 2019-01-23 Tom Tromey <tom@tromey.com>
13109 Andrew Burgess <andrew.burgess@embecosm.com>
13110 Pedro Alves <palves@redhat.com>
13112 2019-01-23 Pedro Alves <palves@redhat.com>
13114 * gdbarch-selftests.c (struct on_exit): Use SCOPE_EXIT.
13116 2019-01-23 Pedro Alves <palves@redhat.com>
13117 Andrew Burgess <andrew.burgess@embecosm.com>
13119 * gdbthread.h: Include "common/forward-scope-exit.h".
13120 (scoped_finish_thread_state): Redefine custom class in terms of
13121 forward_scope_exit.
13123 2019-01-23 Pedro Alves <palves@redhat.com>
13124 Andrew Burgess <andrew.burgess@embecosm.com>
13126 * common/forward-scope-exit.h: New file.
13128 2019-01-23 Pedro Alves <palves@redhat.com>
13129 Andrew Burgess <andrew.burgess@embecosm.com>
13130 Tom Tromey <tom@tromey.com>
13132 * common/scope-exit.h: New file.
13134 2019-01-23 Pedro Alves <palves@redhat.com>
13136 * common/preprocessor.h (ESC): Rename to ...
13137 (ESC_PARENS): ... this.
13138 * common/valid-expr.h (CHECK_VALID_EXPR_1, CHECK_VALID_EXPR_2)
13139 (CHECK_VALID_EXPR_3, CHECK_VALID_EXPR_4): Adjust.
13141 2019-01-23 Tom Tromey <tom@tromey.com>
13143 * language.h (class scoped_switch_to_sym_language_if_auto):
13144 Initialize m_lang in both cases.
13146 2019-01-23 Alan Hayward <alan.hayward@arm.com>
13148 * nat/aarch64-linux.c (aarch64_linux_new_thread): Replace XNEW
13151 2019-01-22 Tom Tromey <tom@tromey.com>
13153 * corelow.c: Do not include sys/file.h.
13155 2019-01-22 Tom Tromey <tom@tromey.com>
13157 * tui/tui-wingeneral.h: Include gdb_curses.h.
13159 2019-01-22 Tom Tromey <tom@tromey.com>
13161 * source-cache.h (class source_cache) <get_source_lines,
13162 get_plain_source_lines, extract_lines>: Rename "lines" parameter.
13164 2019-01-22 Tom Tromey <tom@tromey.com>
13166 * remote-fileio.h (struct remote_target): Declare.
13168 2019-01-22 Tom Tromey <tom@tromey.com>
13170 * python/py-arch.c: Do not include py-ref.h.
13171 * python/py-bpevent.c: Do not include py-ref.h.
13172 * python/py-cmd.c: Do not include py-ref.h.
13173 * python/py-continueevent.c: Do not include py-ref.h.
13174 * python/py-event.h: Do not include py-ref.h.
13175 * python/py-evtregistry.c: Do not include py-ref.h.
13176 * python/py-finishbreakpoint.c: Do not include py-ref.h.
13177 * python/py-frame.c: Do not include py-ref.h.
13178 * python/py-framefilter.c: Do not include py-ref.h.
13179 * python/py-function.c: Do not include py-ref.h.
13180 * python/py-infevents.c: Do not include py-ref.h.
13181 * python/py-linetable.c: Do not include py-ref.h.
13182 * python/py-objfile.c: Do not include py-ref.h.
13183 * python/py-param.c: Do not include py-ref.h.
13184 * python/py-prettyprint.c: Do not include py-ref.h.
13185 * python/py-progspace.c: Do not include py-ref.h.
13186 * python/py-symbol.c: Do not include py-ref.h.
13187 * python/py-symtab.c: Do not include py-ref.h.
13188 * python/py-type.c: Do not include py-ref.h.
13189 * python/py-unwind.c: Do not include py-ref.h.
13190 * python/py-utils.c: Do not include py-ref.h.
13191 * python/py-value.c: Do not include py-ref.h.
13192 * python/py-varobj.c: Do not include py-ref.h.
13193 * python/py-xmethods.c: Do not include py-ref.h.
13194 * python/python.c: Do not include py-ref.h.
13195 * varobj.c: Do not include py-ref.h.
13197 2019-01-22 Tom Tromey <tom@tromey.com>
13199 * objfiles.h (struct objfile_per_bfd_storage): Use "struct"
13200 keyword for bcache.
13202 2019-01-22 Tom Tromey <tom@tromey.com>
13204 * compile/compile-cplus-types.c: Remove a comment by #include.
13206 2019-01-22 Tom Tromey <tom@tromey.com>
13208 * compile/gcc-c-plugin.h: Include compile-internal.h.
13210 2019-01-22 Tom Tromey <tom@tromey.com>
13212 * stabsread.c (EXTERN): Do not define.
13213 (symnum, next_symbol_text_func, processing_gcc_compilation)
13214 (within_function, global_sym_chain, global_stabs)
13215 (previous_stab_code, this_object_header_files)
13216 (n_this_object_header_files)
13217 (n_allocated_this_object_header_files): Define.
13218 * stabsread.h (EXTERN): Never define. Use "extern".
13220 2019-01-22 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13222 * event-top.c (handle_line_of_input): use unique_xmalloc_ptr for
13225 2019-01-21 Tom Tromey <tom@tromey.com>
13227 * ui-out.c: Fix includes.
13228 * tui/tui-source.c: Fix includes.
13229 * target.c: Fix includes.
13230 * remote.c: Fix includes.
13231 * regcache.c: Fix includes.
13232 * python/py-block.c: Fix includes.
13233 * printcmd.c: Fix includes.
13234 * or1k-tdep.c: Fix includes.
13235 * mi/mi-main.c: Fix includes.
13236 * m32r-tdep.c: Fix includes.
13237 * csky-tdep.c: Fix includes.
13238 * compile/compile-cplus-types.c: Fix includes.
13239 * cli/cli-interp.c: Fix includes.
13241 2019-01-21 Alan Hayward <alan.hayward@arm.com>
13243 * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check
13246 2019-01-16 Tom Tromey <tom@tromey.com>
13248 * objfiles.h (struct minimal_symbol_iterator): Rename. Move
13250 (struct objfile) <msymbols_range>: Move from top level.
13251 <msymbols>: New method.
13252 (class objfile_msymbols): Remove.
13253 * symtab.c (default_collect_symbol_completion_matches_break_on):
13255 * symmisc.c (dump_msymbols): Update.
13256 * stabsread.c (scan_file_globals): Update.
13257 * objc-lang.c (info_selectors_command, info_classes_command)
13258 (find_methods): Update.
13259 * minsyms.c (find_solib_trampoline_target): Update.
13260 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Update.
13261 * coffread.c (coff_symfile_read): Update.
13262 * ada-lang.c (ada_lookup_simple_minsym)
13263 (ada_collect_symbol_completion_matches): Update.
13265 2019-01-16 Tom Tromey <tom@tromey.com>
13267 * objfiles.h (class objfile_msymbols) <iterator>: Change argument
13268 type. Remove no-argument constructor.
13269 <iterator::operator++>: Simplify.
13271 <end>: Use minimal_symbol_count.
13273 2019-01-16 Tom Tromey <tom@tromey.com>
13275 * objfiles.h (struct objfile) <psymtabs>: New method.
13276 (class objfile_psymtabs): Remove.
13277 * psymtab.h (class psymtab_storage) <partial_symtab_range>: New
13279 <range>: New method.
13280 (require_partial_symbols): Change return type.
13281 * psymtab.c (require_partial_symbols)
13282 (psym_expand_symtabs_matching): Update.
13283 * mdebugread.c (parse_partial_symbols): Update.
13284 * dbxread.c (dbx_end_psymtab): Update.
13286 2019-01-15 Tom Tromey <tom@tromey.com>
13288 * symtab.c (lookup_objfile_from_block)
13289 (lookup_symbol_in_objfile_symtabs)
13290 (basic_lookup_transparent_type_1, find_pc_sect_compunit_symtab)
13291 (find_line_symtab, info_sources_command)
13292 (default_collect_symbol_completion_matches_break_on)
13293 (make_source_files_completion_list): Update.
13294 * symmisc.c (print_objfile_statistics, dump_objfile)
13295 (maintenance_print_symbols, maintenance_info_symtabs)
13296 (maintenance_check_symtabs, maintenance_info_line_tables):
13298 * source.c (select_source_symtab)
13299 (forget_cached_source_info_for_objfile): Update.
13300 * objfiles.h (class objfile_compunits): Remove.
13301 (struct objfile) <compunits_range>: New typedef.
13302 (compunits): New method.
13303 * objfiles.c (objfile_relocate1): Update.
13304 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13305 * maint.c (count_symtabs_and_blocks): Update.
13306 * linespec.c (iterate_over_all_matching_symtabs): Update.
13307 * cp-support.c (add_symbol_overload_list_qualified): Update.
13308 * coffread.c (coff_symtab_read): Update.
13309 * ada-lang.c (add_nonlocal_symbols)
13310 (ada_collect_symbol_completion_matches)
13311 (ada_add_global_exceptions): Update.
13313 2019-01-15 Tom Tromey <tom@tromey.com>
13315 * progspace.h (program_space) <objfiles_safe_range>: New
13317 <objfiles_safe>: New method.
13318 * objfiles.h (class all_objfiles_safe): Remove.
13319 * objfiles.c (free_all_objfiles, objfile_purge_solibs): Update.
13320 * jit.c (jit_inferior_exit_hook): Update.
13322 2019-01-17 Tom Tromey <tom@tromey.com>
13324 * progspace.h (program_space) <objfiles_range>: New typedef.
13325 <objfiles>: New method.
13326 <objfiles_head>: Rename from objfiles.
13327 (object_files): Update.
13328 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Update.
13329 * guile/scm-pretty-print.c
13330 (ppscm_find_pretty_printer_from_objfiles): Update.
13331 * guile/scm-objfile.c (gdbscm_objfiles): Update.
13332 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers):
13334 * python/py-progspace.c (pspy_get_objfiles): Update.
13335 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
13337 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
13338 (objfpy_lookup_objfile_by_build_id): Update.
13339 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update.
13340 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
13342 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13343 (expand_symtab_containing_pc, lookup_objfile_from_block)
13344 (lookup_static_symbol, basic_lookup_transparent_type)
13345 (find_pc_sect_compunit_symtab, find_symbol_at_address)
13346 (find_line_symtab, info_sources_command)
13347 (default_collect_symbol_completion_matches_break_on)
13348 (make_source_files_completion_list, find_main_name): Update.
13349 * symmisc.c (print_symbol_bcache_statistics)
13350 (print_objfile_statistics, maintenance_print_symbols)
13351 (maintenance_print_msymbols, maintenance_print_objfiles)
13352 (maintenance_info_symtabs, maintenance_check_symtabs)
13353 (maintenance_expand_symtabs, maintenance_info_line_tables):
13355 * symfile.c (remove_symbol_file_command, overlay_invalidate_all)
13356 (find_pc_overlay, find_pc_mapped_section, list_overlays_command)
13357 (map_overlay_command, unmap_overlay_command)
13358 (simple_overlay_update, expand_symtabs_matching)
13359 (map_symbol_filenames): Update.
13360 * symfile-debug.c (set_debug_symfile): Update.
13361 * spu-tdep.c (spu_overlay_update, spu_objfile_from_frame):
13363 * source.c (select_source_symtab, forget_cached_source_info):
13365 * solib.c (solib_read_symbols): Update.
13366 * solib-spu.c (append_ocl_sos): Update.
13367 * psymtab.c (maintenance_print_psymbols)
13368 (maintenance_info_psymtabs, maintenance_check_psymtabs): Update.
13369 * probe.c (parse_probes_in_pspace, find_probe_by_pc): Update.
13370 * printcmd.c (info_symbol_command): Update.
13371 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created):
13373 * objfiles.h (class all_objfiles): Remove.
13374 * objfiles.c (have_partial_symbols, have_full_symbols)
13375 (have_minimal_symbols, qsort_cmp, update_section_map)
13376 (shared_objfile_contains_address_p)
13377 (default_iterate_over_objfiles_in_search_order): Update.
13378 * objc-lang.c (info_selectors_command, info_classes_command)
13379 (find_methods): Update.
13380 * minsyms.c (find_solib_trampoline_target): Update.
13381 * maint.c (maintenance_info_sections)
13382 (maintenance_translate_address, count_symtabs_and_blocks):
13384 * main.c (captured_main_1): Update.
13385 * linux-thread-db.c (try_thread_db_load_from_pdir)
13386 (has_libpthread): Update.
13387 * linespec.c (iterate_over_all_matching_symtabs)
13388 (search_minsyms_for_name): Update.
13389 * jit.c (jit_find_objf_with_entry_addr): Update.
13390 * hppa-tdep.c (find_unwind_entry)
13391 (hppa_lookup_stub_minimal_symbol): Update.
13392 * gcore.c (gcore_create_callback, objfile_find_memory_regions):
13394 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
13395 (elf_gnu_ifunc_resolve_by_got): Update.
13396 * dwarf2-frame.c (dwarf2_frame_find_fde): Update.
13397 * dwarf-index-write.c (save_gdb_index_command): Update.
13398 * cp-support.c (add_symbol_overload_list_qualified): Update.
13399 * breakpoint.c (create_overlay_event_breakpoint)
13400 (create_longjmp_master_breakpoint)
13401 (create_std_terminate_master_breakpoint)
13402 (create_exception_master_breakpoint): Update.
13403 * blockframe.c (find_pc_partial_function): Update.
13404 * ada-lang.c (ada_lookup_simple_minsym, add_nonlocal_symbols)
13405 (ada_collect_symbol_completion_matches)
13406 (ada_add_global_exceptions): Update.
13408 2019-01-17 Tom Tromey <tom@tromey.com>
13410 * solib-target.c (lm_info_target_p): Remove typedef. Don't
13412 (solib_target_parse_libraries): Change return type.
13413 (library_list_start_segment, library_list_start_section)
13414 (library_list_end_library, library_list_start_library); Update.
13415 (solib_target_free_library_list): Remove.
13416 (solib_target_parse_libraries): Remove cleanup. Change return
13418 (solib_target_current_sos): Update.
13420 2019-01-17 Tom Tromey <tromey@bapiya>
13422 * valprint.c: Replace "the the" with "the".
13423 * symtab.c: Replace "the the" with "the".
13424 * solib.c: Replace "the the" with "the".
13425 * solib-dsbt.c: Replace "the the" with "the".
13426 * linespec.c: Replace "the the" with "the".
13427 * dwarf2loc.h: Replace "the the" with "the".
13428 * amd64-windows-tdep.c: Replace "the the" with "the".
13429 * aarch64-tdep.c: Replace "the the" with "the".
13431 2019-01-16 Keith Seitz <keiths@redhat.com>
13434 * dwarf2read.c (dwarf2_cu) <ancestor>: New field.
13435 <builder>: Rename to ..
13436 <m_builder>: ... this and make private.
13437 (dwarf2_cu::get_builder): New method. Change all users of
13438 `builder' to use this method.
13439 (dwarf2_start_symtab): Move to ...
13440 (dwarf2_cu::start_symtab): ... here. Update all callers
13441 (setup_type_unit_groups): Move to ...
13442 (dwarf2_cu::setup_type_unit_groups): ... here. Update all
13444 (dwarf2_cu::reset_builder): New method.
13445 (process_full_compunit, process_full_type_unit): Use
13446 dwarf2_cu::reset_builder.
13447 (follow_die_offset): Record the ancestor CU if it is different
13448 from the followed DIE's CU.
13449 (follow_die_sig_1): Likewise.
13451 2019-01-15 Tom Tromey <tom@tromey.com>
13453 * remote.c (class remote_state) <buf>: Now a char_vector.
13454 <buf_size>: Remove.
13455 (remote_target::getpkt): Change type of buf. Remove sizeof_buf
13457 (remote_target::getpkt_or_notif_sane_1)
13458 (remote_target::getpkt_sane)
13459 (remote_target::getpkt_or_notif_sane): Likewise.
13460 (class remote_target) <putpkt>: New overload.
13461 (remote_target::read_frame): Change type of "buf_p". Remove
13462 sizeof_p parameter.
13463 (packet_ok): New overload.
13464 (packet_check_result): New overload.
13467 2019-01-14 Tom Tromey <tom@tromey.com>
13469 * remote-notif.c (handle_notification, remote_notif_ack)
13470 (remote_notif_parse): Make "buf" const.
13471 * remote-notif.h (struct notif_client) <parse, ack>: Make "buf"
13473 (remote_notif_parse, remote_notif_ack, handle_notification):
13475 * remote.c (remote_notif_stop_parse): Make "buf" const.
13476 (remote_target::remote_parse_stop_reply): Make "buf" const.
13477 (remote_notif_stop_ack): Make "buf" const.
13479 2019-01-14 Tom Tromey <tom@tromey.com>
13481 * remote.c (remote_console_output): Make parameter const.
13483 2019-01-14 Tom Tromey <tom@tromey.com>
13485 * target-debug.h (target_debug_print_signals): Constify.
13486 * nto-procfs.c (nto_procfs_target::pass_signals): Update.
13487 * procfs.c (procfs_target::pass_signals): Update.
13488 * linux-nat.c (linux_nat_target::pass_signals): Update.
13489 * linux-nat.h (class linux_nat_target) <pass_signals>: Update.
13490 * target-delegates.c: Rebuild.
13491 * remote.c (remote_target::program_signals): Update.
13492 (remote_target::pass_signals): Update.
13493 * target.c (target_pass_signals): Constify argument.
13494 (target_program_signals): Likewise.
13495 * target.h (struct target_ops) <pass_signals, program_signals>:
13497 (target_pass_signals, target_program_signals): Constify argument.
13499 2019-01-14 Tom Tromey <tom@tromey.com>
13502 * tui/tui-io.c (gdb_wgetch): Print \r when needed.
13504 2019-01-14 Pedro Franco de Carvalho <pedromfc@linux.ibm.com>
13506 * ppc-tdep.h (struct gdbarch_tdep) <ppc_v0_alias_regnum>: New
13508 * rs6000-tdep.c: Include reggroups.h.
13509 (IS_V_ALIAS_PSEUDOREG): Define.
13510 (rs6000_register_name): Return names for the "vX" aliases.
13511 (rs6000_pseudo_register_type): Return type for the "vX" aliases.
13512 (rs6000_pseudo_register_reggroup_p): Restore. Handle "vX"
13513 aliases. Call default_register_reggroup_p for all other
13515 (v_alias_pseudo_register_read, v_alias_pseudo_register_write):
13517 (rs6000_pseudo_register_read, rs6000_pseudo_register_write):
13518 Handle "vX" aliases.
13519 (v_alias_pseudo_register_collect): New function.
13520 (rs6000_ax_pseudo_register_collect): Handle "vX" aliases.
13521 (rs6000_gdbarch_init): Initialize "vX" aliases as
13522 pseudo-registers. Restore registration of
13523 rs6000_pseudo_register_reggroup_p with
13524 set_tdesc_pseudo_register_reggroup_p.
13526 2019-01-13 Max Filippov <jcmvbkbc@gmail.com>
13528 * xtensa-linux-tdep.c (xtensa_linux_init_abi): Update
13529 tdep->num_pseudo_regs. Add calls to set_gdbarch_num_regs and
13530 set_gdbarch_num_pseudo_regs.
13532 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13534 * cli/cli-style.h (class cli_style_option): <add_setshow_commands>
13535 Remove arg prefixname, add do_set and do_show.
13536 Add member functions set_list and show_list.
13537 * cli/cli-style.c (class cli_style_option): Update accordingly.
13538 (style_set_list): Move to file scope.
13539 (style_show_list): Likewise.
13540 (set_style): Call help_list.
13541 (show_style): Call cmd_show_list.
13542 (_initialize_cli_style): New macro STYLE_ADD_SETSHOW_COMMANDS.
13543 Update to use the new macro.
13545 2019-10-12 Joel Brobecker <brobecker@adacore.com>
13547 * ada-lang.c (_initialize_ada_language): Expand the help text
13548 for the "catch exception" command.
13550 2019-01-12 Philippe Waroquiers <philippe.waroquiers@skynet.be>
13552 * symtab.c (matching_obj_sections): Initialize obj,
13553 declare it closer to its usage.
13555 2019-01-10 Tom Tromey <tom@tromey.com>
13557 * thread-iter.h (inf_threads_iterator): Use next_iterator.
13558 (basic_inf_threads_range): Remove.
13559 (inf_threads_range, inf_non_exited_threads_range)
13560 (safe_inf_threads_range): Use next_adapter.
13562 2019-01-10 Keith Seitz <keiths@redhat.com>
13566 * dwarf2read.c (dw2_add_symbol_to_list): Remove.
13567 (fixup_go_packaging, new_symbol): Use add_symbol_to_list.
13569 2019-01-10 Keith Seitz <keiths@redhat.com>
13573 * dictionary.c (pending_to_vector): Remove.
13574 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13575 Remove _1 suffix, replacing functions of the same name. Update
13577 (dict_create_hashed, dict_create_hashed_expandable)
13578 (dict_create_linear, dict_create_linear_expandable, dict_free)
13579 (dict_add_symbol, dict_add_pending, dict_size, dict_empty):
13580 Make functions static.
13582 2019-01-10 Keith Seitz <keiths@redhat.com>
13586 * dictionary.h (struct dictionary): Replace declaration with
13588 (dict_create_hashed, dict_create_hashed_expandable)
13589 (dict_create_linear, dict_create_linear_expandable)
13590 (dict_free, dict_add_symbol, dict_add_pending, dict_empty)
13591 (dict_iterator_first, dict_iterator_next, dict_iter_match_first)
13592 (dict_iter_match_next, dict_size): Rename to "mdict_" versions
13593 taking multidictionary argument.
13594 [ALL_DICT_SYMBOLS]: Update for multidictionary.
13595 * block.h (struct block) <dict>: Change to multidictionary
13596 and rename `multidict'.
13597 * block.c, buildsym.c, jit.c, mdebugread.c, objfiles.c,
13598 symmisc.c: Update all dictionary references to multidictionary.
13600 2019-01-10 Keith Seitz <keiths@redhat.com>
13604 * dictionary.c: Include unordered_map.
13605 (pending_to_vector): New function.
13606 (dict_create_hashed_1, dict_create_linear_1, dict_add_pending_1):
13607 Rewrite the non-"_1" functions to take vector instead
13609 (dict_create_hashed, dict_create_linear, dict_add_pending): Use the
13610 "new" _1 versions of the same name.
13611 (multidictionary): Define.
13612 (std::hash<enum language): New definition.
13613 (collate_pending_symbols_by_language, mdict_create_hashed)
13614 (mdict_create_hashed_expandable, mdict_create_linear)
13615 (mdict_create_linear_expandable, mdict_free)
13616 (find_language_dictionary, create_new_language_dictionary)
13617 (mdict_add_symbol, mdict_add_pending, mdict_iterator_first)
13618 (mdict_iterator_next, mdict_iter_match_first, mdict_iter_match_next)
13619 (mdict_size, mdict_empty): New functions.
13620 * dictionary.h (mdict_iterator): Define.
13622 2019-01-10 Pedro Alves <palves@redhat.com>
13624 * breakpoint.c (read_uploaded_action)
13625 (create_tracepoint_from_upload): Adjust to use
13626 gdb::unique_xmalloc_ptr.
13627 * ctf.c (ctf_write_uploaded_tp):
13628 (SET_ARRAY_FIELD): Use emplace_back.
13629 (SET_STRING_FIELD): Adjust to use gdb::unique_xmalloc_ptr.
13630 * tracefile-tfile.c (tfile_write_uploaded_tp):
13631 * tracepoint.c (parse_tracepoint_definition): Adjust to use
13632 gdb::unique_xmalloc_ptr.
13633 * tracepoint.h (struct uploaded_tp) <cond, actions, step_actions,
13634 at_string, cond_string, cmd_strings>: Replace char pointers
13635 with gdb::unique_xmalloc_ptr.
13637 2019-01-10 Pedro Alves <palves@redhat.com>
13639 * solib-target.c (library_list_start_library): Don't xstrdup name.
13641 2019-01-10 Pedro Alves <palves@redhat.com>
13643 * mdebugread.c (parse_partial_symbols): Use
13644 gdb::unique_xmalloc_ptr to manage heap-allocated 'stabsstring'.
13646 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13648 * linux-fork.c (scoped_switch_fork_info)
13649 <~scoped_switch_fork_info>: Fix incorrect variable name.
13651 2019-01-10 Andrew Burgess <andrew.burgess@embecosm.com>
13653 * linux-fork.c (scoped_switch_fork_info)
13654 <scoped_switch_fork_info>: Make explicit.
13655 <~scoped_switch_fork_info>: Wrap core in TRY/CATCH.
13657 2019-01-10 Tom Tromey <tom@tromey.com>
13659 * objfiles.h (objfile::reset_psymtabs): Update.
13660 * objfiles.c (objfile::objfile): Update.
13661 * psymtab.h (psymtab_storage::obstack): Update.
13662 (psymtab_storage::m_obstack): Use gdb::optional.
13663 (class psymtab_storage): Update comment. Remove objfile
13665 * psymtab.c (psymtab_storage::psymtab_storage): Update.
13667 2019-01-10 Tom Tromey <tom@tromey.com>
13669 * psymtab.h (psymtab_storage::allocate_psymtab): New method.
13670 <free_psymtabs>: Now private.
13671 * psymtab.c (psymtab_storage::allocate_psymtab): Implement.
13672 (allocate_psymtab): Use new method.
13674 2019-01-10 Tom Tromey <tom@tromey.com>
13676 * xcoffread.c (xcoff_end_psymtab): Use allocate_dependencies.
13677 * psymtab.h (psymtab_storage::allocate_dependencies): New method.
13678 * mdebugread.c (parse_partial_symbols): Use
13679 allocate_dependencies.
13680 * dwarf2read.c (dwarf2_create_include_psymtab): Use
13681 allocate_dependencies.
13682 (process_psymtab_comp_unit_reader)
13683 (build_type_psymtab_dependencies): Likewise.
13684 * dbxread.c (dbx_end_psymtab): Use allocate_dependencies.
13686 2019-01-10 Tom Tromey <tom@tromey.com>
13688 * psymtab.c (add_psymbol_to_bcache): Pass psymtab obstack to
13689 PSYMBOL_SET_LANGUAGE.
13690 (allocate_psymtab): Allocate psymtab on the psymtab obstack.
13692 2019-01-10 Tom Tromey <tom@tromey.com>
13694 * psymtab.h (psymtab_storage::obstack): New method.
13695 <m_obstack>: Rename from obstack; now private.
13696 * psymtab.c (psymtab_storage): Update.
13697 * dwarf2read.c (create_addrmap_from_index)
13698 (create_addrmap_from_aranges, dwarf2_build_psymtabs_hard):
13701 2019-01-10 Tom Tromey <tom@tromey.com>
13703 * symfile.c (reread_symbols): Call objfile->reset_psymtabs.
13704 * objfiles.h (objfile::reset_psymtabs): New method.
13706 2019-01-10 Tom Tromey <tom@tromey.com>
13708 * symmisc.c (print_symbol_bcache_statistics): Update.
13709 (print_objfile_statistics): Update.
13710 * symfile.c (reread_symbols): Update.
13711 * psymtab.h (class psymtab_storage): New.
13712 * psymtab.c (psymtab_storage): New constructor.
13713 (~psymtab_storage): New destructor.
13714 (require_partial_symbols): Update.
13715 (ALL_OBJFILE_PSYMTABS_REQUIRED): Rewrite.
13716 (find_pc_sect_psymtab, find_pc_sect_psymbol)
13717 (match_partial_symbol, lookup_partial_symbol, dump_psymtab)
13718 (psym_dump, recursively_search_psymtabs, psym_has_symbols)
13719 (psym_find_compunit_symtab_by_address, sort_pst_symbols)
13720 (start_psymtab_common, end_psymtab_common)
13721 (add_psymbol_to_bcache, add_psymbol_to_list, init_psymbol_list)
13722 (allocate_psymtab): Update.
13723 (psymtab_storage::discard_psymtab): Rename from discard_psymtab.
13725 (dump_psymtab_addrmap, maintenance_print_psymbols)
13726 (maintenance_check_psymtabs): Update.
13727 (class objfile_psymtabs): Move to objfiles.h.
13728 * psympriv.h (discard_psymtab): Now inline.
13729 (psymtab_discarder::psymtab_discarder): Update.
13730 (psymtab_discarder::~psymtab_discarder): Update.
13731 (ALL_OBJFILE_PSYMTABS): Rewrite.
13732 * objfiles.h (struct objfile) <psymtabs, psymtabs_addrmap,
13733 free_psymtabs, psymbol_cache, global_psymbols, static_psymbols>:
13735 <partial_symtabs>: New field.
13736 (class objfile_psymtabs): Move from psymtab.h. Update.
13737 * objfiles.c (objfile::objfile): Initialize partial_symtabs, not
13739 (objfile::~objfile): Don't destroy psymbol_cache.
13740 * mdebugread.c (parse_partial_symbols): Update.
13741 * dwarf2read.c (create_addrmap_from_index)
13742 (create_addrmap_from_aranges, dw2_find_pc_sect_compunit_symtab)
13743 (process_psymtab_comp_unit_reader, dwarf2_build_psymtabs_hard)
13744 (add_partial_subprogram, dwarf2_ranges_read): Update.
13745 * dwarf-index-write.c (write_address_map)
13746 (write_one_signatured_type, recursively_write_psymbols)
13747 (class debug_names, class debug_names, write_psymtabs_to_index):
13750 2019-01-10 Tom Tromey <tom@tromey.com>
13752 * symtab.h (SYMBOL_SET_NAMES): Update.
13753 (symbol_set_names): Update.
13754 (MSYMBOL_SET_NAMES): Update.
13755 * symtab.c (symbol_set_names): Change argument to be an
13756 objfile_per_bfd_storage.
13757 * psymtab.c (add_psymbol_to_bcache): Update.
13758 * psympriv.h (PSYMBOL_SET_NAMES): Take per_bfd argument.
13760 2019-01-10 Tom Tromey <tom@tromey.com>
13762 * symtab.c (create_demangled_names_hash): Change argument to be an
13763 objfile_per_bfd_storage.
13764 (symbol_set_names): Update.
13766 2019-01-10 Tom Tromey <tom@tromey.com>
13768 * xcoffread.c (xcoff_initial_scan): Unconditionally call
13770 * psymtab.c (init_psymbol_list): Do nothing if already called.
13771 * psympriv.h (init_psymbol_list): Add comment.
13772 * dwarf2read.c (dwarf2_build_psymtabs): Unconditionally call
13774 * dbxread.c (dbx_symfile_read): Unconditionally call
13777 2019-01-10 Tom Tromey <tom@tromey.com>
13779 * xcoffread.c (scan_xcoff_symtab): Update.
13780 * psymtab.c (add_psymbol_to_list): Replace "list" parameter with
13782 * mdebugread.c (parse_partial_symbols)
13783 (handle_psymbol_enumerators): Update.
13784 * dwarf2read.c (add_partial_symbol, load_partial_dies): Update.
13785 * dbxread.c (read_dbx_symtab): Update.
13786 * psympriv.h (psymbol_placement): New enum.
13787 (add_psymbol_to_list): Update.
13789 2019-01-10 Tom Tromey <tom@tromey.com>
13791 * xcoffread.c (xcoff_start_psymtab): Remove global_psymbols and
13792 static_psymbols parameters.
13793 (scan_xcoff_symtab): Update.
13794 * psymtab.c (start_psymtab_common): Remove global_psymbols and
13795 static_psymbols parameters.
13796 * psympriv.h (start_psymtab_common): Update.
13797 * mdebugread.c (parse_partial_symbols): Update.
13798 * dwarf2read.c (create_partial_symtab): Update.
13799 * dbxread.c (read_dbx_symtab): Update.
13800 (start_psymtab): Remove global_psymbols and static_psymbols
13803 2019-01-10 Tom Tromey <tom@tromey.com>
13805 * xcoffread.c (xcoff_end_psymtab): Remove some initializations.
13806 * psymtab.c (allocate_psymtab): Add comment.
13807 * psympriv.h (allocate_psymtab): Add comment.
13808 * dwarf2read.c (dwarf2_create_include_psymtab): Remove some
13810 * dbxread.c (dbx_end_psymtab): Remove some initializations.
13812 2019-01-10 Tom Tromey <tom@tromey.com>
13814 * symfile.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13816 * mipsread.c: Include mdebugread.h.
13817 * mdebugread.h (mdebug_build_psymtabs, elfmdebug_build_psymtabs):
13819 * elfread.c: Include mdebugread.h.
13821 2019-01-09 Tom Tromey <tom@tromey.com>
13823 * dbxread.c (dbx_end_psymtab): Use objfile_psymtabs.
13824 * mdebugread.c (parse_partial_symbols): Use objfile_psymtabs.
13825 * psymtab.c (ALL_OBJFILE_PSYMTABS_REQUIRED): Remove.
13826 (psym_map_symtabs_matching_filename, find_pc_sect_psymtab)
13827 (psym_lookup_symbol, psym_find_last_source_symtab)
13828 (psym_forget_cached_source_info, psym_print_stats)
13829 (psym_expand_symtabs_for_function, psym_expand_all_symtabs)
13830 (psym_expand_symtabs_with_fullname, psym_map_symbol_filenames)
13831 (psym_map_matching_symbols, psym_expand_symtabs_matching)
13832 (psym_find_compunit_symtab_by_address)
13833 (maintenance_print_psymbols, maintenance_info_psymtabs)
13834 (maintenance_check_psymtabs): Use ranged for.
13835 * psymtab.h (class objfile_psymtabs): New.
13836 (require_partial_symbols): Return objfile_psymtabs.
13837 * psympriv.h (ALL_OBJFILE_PSYMTABS): Remove.
13839 2019-01-09 Tom Tromey <tom@tromey.com>
13841 * symfile.c (overlay_invalidate_all, find_pc_overlay)
13842 (find_pc_mapped_section, list_overlays_command)
13843 (map_overlay_command, unmap_overlay_command)
13844 (simple_overlay_update): Use all_objfiles.
13845 * spu-tdep.c (spu_overlay_update): Use all_objfiles.
13846 * printcmd.c (info_symbol_command): Use all_objfiles.
13847 * objfiles.h (ALL_OBJSECTIONS): Remove.
13848 * maint.c (maintenance_translate_address): Use all_objfiles.
13849 * gcore.c (gcore_create_callback): Use all_objfiles.
13850 (objfile_find_memory_regions): Likewise.
13852 2019-01-09 Tom Tromey <tom@tromey.com>
13854 * symtab.c (find_line_symtab, info_sources_command)
13855 (make_source_files_completion_list): Use objfile_compunits.
13856 * source.c (select_source_symtab): Use objfile_compunits.
13857 * objfiles.h (struct objfile): Update comment.
13858 (ALL_OBJFILES): Remove.
13859 (ALL_FILETABS): Remove.
13860 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Use
13863 2019-01-09 Tom Tromey <tom@tromey.com>
13865 * symmisc.c (print_objfile_statistics, dump_objfile)
13866 (maintenance_print_symbols): Use compunit_filetabs.
13867 * source.c (forget_cached_source_info_for_objfile): Use
13869 * objfiles.h (ALL_OBJFILE_FILETABS): Remove.
13870 (ALL_FILETABS): Use compunit_filetabs.
13871 * objfiles.c (objfile_relocate1): Use compunit_filetabs.
13872 * coffread.c (coff_symtab_read): Use compunit_filetabs.
13874 2019-01-09 Tom Tromey <tom@tromey.com>
13876 * symtab.h (ALL_COMPUNIT_FILETABS): Remove.
13877 (compunit_filetabs): New.
13878 * symtab.c (iterate_over_some_symtabs, find_pc_sect_line): Use
13880 (info_sources_command, make_source_files_completion_list): Remove
13882 * symmisc.c (print_objfile_statistics, dump_objfile)
13883 (maintenance_print_symbols): Remove declaration.
13884 (maintenance_info_symtabs): Use compunit_filetabs.
13885 (maintenance_info_line_tables): Likewise.
13886 * source.c (select_source_symtab): Change local variable name.
13887 (forget_cached_source_info_for_objfile): Remove declaration.
13888 * objfiles.h (ALL_OBJFILE_FILETABS): Use compunit_filetabs.
13889 * objfiles.c (objfile_relocate1): Remove declaration.
13890 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13892 * maint.c (count_symtabs_and_blocks): Use compunit_filetabs.
13893 * coffread.c (coff_symtab_read): Remove declaration.
13894 * buildsym.c (buildsym_compunit::end_symtab_with_blockvector): Use
13897 2019-01-09 Tom Tromey <tom@tromey.com>
13899 * symtab.c (lookup_objfile_from_block)
13900 (find_pc_sect_compunit_symtab, search_symbols)
13901 (default_collect_symbol_completion_matches_break_on): Use
13903 * objfiles.h (ALL_COMPUNITS): Remove.
13904 * maint.c (count_symtabs_and_blocks): Use objfile_compunits.
13905 * cp-support.c (add_symbol_overload_list_qualified): Use
13907 * ada-lang.c (ada_collect_symbol_completion_matches)
13908 (ada_add_global_exceptions): Use objfile_compunits.
13910 2019-01-09 Tom Tromey <tom@tromey.com>
13912 * source.c (select_source_symtab)
13913 (forget_cached_source_info_for_objfile): Remove declaration.
13914 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Remove
13916 * maint.c (count_symtabs_and_blocks): Remove declaration.
13917 * cp-support.c (add_symbol_overload_list_qualified): Remove
13919 * coffread.c (coff_symtab_read): Remove declaration.
13920 * symtab.c (lookup_symbol_in_objfile_symtabs)
13921 (basic_lookup_transparent_type_1): Use objfile_compunits.
13922 (lookup_objfile_from_block, find_pc_sect_compunit_symtab)
13923 (info_sources_command, search_symbols)
13924 (default_collect_symbol_completion_matches_break_on)
13925 (make_source_files_completion_list): Remove declaration.
13926 * ada-lang.c (add_nonlocal_symbols): Use objfile_compunits.
13927 (ada_collect_symbol_completion_matches)
13928 (ada_add_global_exceptions): Remove declaration.
13929 * linespec.c (iterate_over_all_matching_symtabs): Use
13931 * objfiles.h (ALL_OBJFILE_COMPUNITS): Remove.
13932 (class objfile_compunits): New.
13933 (ALL_COMPUNITS): Use objfile_compunits.
13934 * symmisc.c (print_objfile_statistics, maintenance_info_symtabs)
13935 (maintenance_check_symtabs, maintenance_info_line_tables): Use
13937 * objfiles.c (objfile_relocate1): Use objfile_compunits.
13939 2019-01-09 Tom Tromey <tom@tromey.com>
13941 * symtab.c (search_symbols)
13942 (default_collect_symbol_completion_matches_break_on): Use
13944 * ada-lang.c (ada_lookup_simple_minsym)
13945 (ada_collect_symbol_completion_matches): Use objfile_msymbols.
13946 * minsyms.c (find_solib_trampoline_target): Use objfile_msymbols.
13947 * hppa-tdep.c (hppa_lookup_stub_minimal_symbol): Use
13949 * coffread.c (coff_symfile_read): Use objfile_msymbols.
13950 * symmisc.c (dump_msymbols): Use objfile_msymbols.
13951 * objc-lang.c (find_methods): Use objfile_msymbols.
13952 (info_selectors_command, info_classes_command): Likewise.
13953 * stabsread.c (scan_file_globals): Use objfile_msymbols.
13954 * objfiles.h (class objfile_msymbols): New.
13955 (ALL_OBJFILE_MSYMBOLS): Remove.
13956 (ALL_MSYMBOLS): Remove.
13958 2019-01-09 Tom Tromey <tom@tromey.com>
13960 * common/next-iterator.h (next_adapter): Add Iterator template
13962 * objfiles.h (ALL_OBJFILES_SAFE): Remove.
13963 (class all_objfiles_safe): New.
13964 * jit.c (jit_inferior_exit_hook): Use all_objfiles_safe.
13965 * objfiles.c (put_objfile_before): Update comment.
13966 (add_separate_debug_objfile): Likewise.
13967 (free_all_objfiles): Use all_objfiles_safe.
13968 (objfile_purge_solibs): Likewise.
13970 2019-01-09 Tom Tromey <tom@tromey.com>
13972 * symtab.c (iterate_over_symtabs, matching_obj_sections)
13973 (expand_symtab_containing_pc, lookup_static_symbol)
13974 (basic_lookup_transparent_type, find_pc_sect_compunit_symtab)
13975 (find_symbol_at_address, find_line_symtab, find_main_name): Use
13977 * probe.c (find_probe_by_pc, collect_probes): Use all_objfiles.
13978 * breakpoint.c (create_overlay_event_breakpoint)
13979 (create_longjmp_master_breakpoint)
13980 (create_std_terminate_master_breakpoint)
13981 (create_exception_master_breakpoint): Use all_objfiles.
13982 * linux-thread-db.c (try_thread_db_load_from_pdir)
13983 (has_libpthread): Use all_objfiles.
13984 * ada-lang.c (add_nonlocal_symbols): Use all_objfiles.
13985 * linespec.c (iterate_over_all_matching_symtabs)
13986 (search_minsyms_for_name): Use all_objfiles.
13987 * maint.c (maintenance_info_sections): Use all_objfiles.
13988 * main.c (captured_main_1): Use all_objfiles.
13989 * spu-tdep.c (spu_objfile_from_frame): Use all_objfiles.
13990 * guile/scm-objfile.c (gdbscm_objfiles): Use all_objfiles.
13991 * guile/scm-pretty-print.c
13992 (ppscm_find_pretty_printer_from_objfiles): Use all_objfiles.
13993 * solib-spu.c (append_ocl_sos): Use all_objfiles.
13994 * symmisc.c (maintenance_print_symbols): Use all_objfiles.
13995 (maintenance_print_msymbols): Use all_objfiles.
13996 * source.c (select_source_symtab): Use all_objfiles.
13997 * jit.c (jit_find_objf_with_entry_addr): Use all_objfiles.
13998 * symfile.c (remove_symbol_file_command)
13999 (expand_symtabs_matching, map_symbol_filenames): Use
14001 * ppc-linux-tdep.c (ppc_linux_spe_context_inferior_created): Use
14003 * dwarf2-frame.c (dwarf2_frame_find_fde): Use all_objfiles.
14004 * objc-lang.c (find_methods): Use all_objfiles.
14005 * objfiles.c (have_partial_symbols, have_full_symbols)
14006 (have_minimal_symbols, qsort_cmp)
14007 (default_iterate_over_objfiles_in_search_order): Use
14009 * hppa-tdep.c (find_unwind_entry): Use all_objfiles.
14010 * psymtab.c (maintenance_print_psymbols): Use all_objfiles.
14011 (maintenance_check_psymtabs): Use all_objfiles.
14012 (ALL_PSYMTABS): Remove.
14013 * compile/compile-object-run.c (do_module_cleanup): Use
14015 * blockframe.c (find_pc_partial_function): Use all_objfiles.
14016 * cp-support.c (add_symbol_overload_list_qualified): Use
14018 * windows-tdep.c (windows_iterate_over_objfiles_in_search_order):
14020 * dwarf-index-write.c (save_gdb_index_command): Use all_objfiles.
14021 * python/py-xmethods.c (gdbpy_get_matching_xmethod_workers): Use
14023 * python/py-objfile.c (objfpy_lookup_objfile_by_name)
14024 (objfpy_lookup_objfile_by_build_id): Use all_objfiles.
14025 * python/py-prettyprint.c (find_pretty_printer_from_objfiles):
14027 * solib.c (solib_read_symbols): Use all_objfiles
14029 2019-01-09 Tom Tromey <tom@tromey.com>
14031 * probe.c (parse_probes_in_pspace): Use all_objfiles.
14032 * guile/scm-progspace.c (gdbscm_progspace_objfiles): Use
14034 * objfiles.h (ALL_PSPACE_OBJFILES): Remove.
14035 * symmisc.c (print_symbol_bcache_statistics)
14036 (print_objfile_statistics, maintenance_print_objfiles)
14037 (maintenance_info_symtabs, maintenance_check_symtabs)
14038 (maintenance_expand_symtabs, maintenance_info_line_tables): Use
14040 * source.c (forget_cached_source_info): Use all_objfiles.
14041 * symfile-debug.c (set_debug_symfile): Use all_objfiles.
14042 * elfread.c (elf_gnu_ifunc_resolve_by_cache)
14043 (elf_gnu_ifunc_resolve_by_got): Use all_objfiles.
14044 * objfiles.c (update_section_map): Use all_objfiles.
14045 (shared_objfile_contains_address_p): Likewise.
14046 * psymtab.c (maintenance_info_psymtabs): Use all_objfiles.
14047 * python/py-progspace.c (pspy_get_objfiles): Use all_objfiles.
14049 2019-01-09 Tom Tromey <tom@tromey.com>
14051 * common/next-iterator.h: New file.
14052 * objfiles.h (class all_objfiles): New.
14053 (struct objfile_iterator): New.
14055 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14057 * NEWS: Move the description of the changed "frame", "select-frame",
14058 and "info frame" commands to the Changed commands section.
14060 2019-01-09 Simon Marchi <simon.marchi@ericsson.com>
14062 * gdbtypes.c (check_stub_method_group): Remove handling of old
14064 * linespec.c (find_methods): Likewise.
14065 * stabsread.c (read_member_functions): Likewise.
14066 * valops.c (search_struct_method): Likewise.
14067 (value_struct_elt_for_reference): Likewise.
14068 * NEWS: Mention this change.
14070 2019-01-09 Andrew Burgess <andrew.burgess@embecosm.com>
14072 * cli/cli-cmds.c (list_command): Pass a source_lines_range to
14073 print_source_lines.
14074 * source.c (print_source_lines_base): Update line number check.
14075 (print_source_lines): New function.
14076 (source_lines_range::source_lines_range): New function.
14077 * source.h (class source_lines_range): New class.
14078 (print_source_lines): New declaration.
14080 2019-01-09 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14082 * linespec.c (linespec_state_destructor): Free self->canonical_names.
14084 2019-01-08 Tom Tromey <tom@tromey.com>
14085 Simon Marchi <simon.marchi@ericsson.com>
14088 * ada-exp.y (DOLLAR_VARIABLE): Rename from SPECIAL_VARIABLE.
14089 * ada-lex.l (DOLLAR_VARIABLE): Likewise.
14090 * c-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14091 * f-exp.y (DOLLAR_VARIABLE): Likewise.
14092 * m2-exp.y (DOLLAR_VARIABLE): Rename from INTERNAL_VAR.
14093 * p-exp.y (DOLLAR_VARIABLE): Rename from VARIABLE.
14095 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14097 * source.c (select_source_symtab): Move header comment to
14098 declaration in source.h.
14099 (forget_cached_source_info_for_objfile): Likewise.
14100 (forget_cached_source_info): Likewise.
14101 (identify_source_line): Likewise.
14102 * source.h (identify_source_line): Move declaration from symtab.h
14103 and add comment from source.c
14104 (print_source_lines): Likewise.
14105 (forget_cached_source_info_for_objfile): Likewise.
14106 (forget_cached_source_info): Likewise.
14107 (select_source_symtab): Likewise.
14108 (enum print_source_lines_flag): Move definition from symtab.h.
14109 * symtab.h (identify_source_line): Move declaration to source.h.
14110 (print_source_lines): Likewise.
14111 (forget_cached_source_info_for_objfile): Likewise.
14112 (forget_cached_source_info): Likewise.
14113 (select_source_symtab): Likewise.
14114 (enum print_source_lines_flag): Move definition to source.h.
14115 * tui/tui-hooks.c: Add 'source.h' include.
14117 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14119 * source.c (print_source_lines_base): Handle requests to print
14120 reverse line number sequences, and guard against empty lines
14123 2019-01-08 Andrew Burgess <andrew.burgess@embecosm.com>
14125 * source.c (print_source_lines_base): Fix skip of '\r' if next
14128 2019-01-06 Tom Tromey <tom@tromey.com>
14130 * c-exp.y (struct c_parse_state) <macro_original_text,
14131 expansion_obstack>: New member.
14132 (macro_original_text, expansion_obstack): Remove globals.
14133 (scan_macro_expansion, scanning_macro_expansion)
14134 (finished_macro_expansion): Update.
14135 (scan_macro_cleanup): Remove.
14136 (yylex, c_parse): Update.
14138 2019-01-06 Tom Tromey <tom@tromey.com>
14140 * c-exp.y (struct c_parse_state) <strings>: New member.
14141 (operator_stoken): Update.
14143 2019-01-06 Tom Tromey <tom@tromey.com>
14145 * parser-defs.h (type_ptr): Remove typedef. Don't declare VEC.
14146 (union type_stack_elt) <typelist_val>: Now a pointer to
14148 (type_stack_cleanup): Don't declare.
14149 (push_typelist): Update.
14150 * parse.c (pop_typelist): Return a std::vector.
14151 (push_typelist): Take a std::vector.
14152 (follow_types): Update. Do not free args.
14153 (type_stack_cleanup): Remove.
14154 * c-exp.y (struct c_parse_state): New.
14155 (cpstate): New global.
14156 (type_aggregate_p, exp, ptr_operator, parameter_typelist)
14157 (nonempty_typelist): Update.
14158 (func_mod): Create a new vector.
14159 (c_parse): Create a c_parse_state.
14160 (check_parameter_typelist): Do not delete params.
14161 (function_method): Update. Do not delete type_list.
14163 2019-01-06 Tom Tromey <tom@tromey.com>
14166 * python/py-finishbreakpoint.c (bpfinishpy_init): Use
14168 * infcmd.c (finish_command_fsm_should_stop): Use check_typedef.
14169 (print_return_value): Likewise.
14171 2019-01-05 Tom Tromey <tom@tromey.com>
14173 * contrib/cleanup_check.py: Remove.
14174 * contrib/gcc-with-excheck: Remove.
14175 * contrib/exsummary.py: Remove.
14176 * contrib/excheck.py: Remove.
14178 2019-01-05 Joel Brobecker <brobecker@adacore.com>
14180 * thread.c (delete_thread_1): Add gdb_assert that THR is not
14181 NULL. Initialize tpprev to NULL instead of assigning it
14182 to NULL on the next statement.
14183 * windows-nat.c (windows_delete_thread): Remove check for
14184 main_thread_id before printing thread exit notifications.
14185 (get_windows_debug_event) <EXIT_THREAD_DEBUG_EVENT>:
14186 Remove thread ID check against main_thread_id.
14187 <CREATE_PROCESS_DEBUG_EVENT>: Remove call to
14188 windows_delete_thread.
14189 <EXIT_PROCESS_DEBUG_EVENT>: Add call to windows_delete_thread.
14191 2019-01-04 Tom Tromey <tom@tromey.com>
14193 * compile/compile.c (_initialize_compile): Use upper case for
14194 metasyntactic variables.
14195 * symmisc.c (_initialize_symmisc): Use upper case for
14196 metasyntactic variables.
14197 * psymtab.c (_initialize_psymtab): Use upper case for
14198 metasyntactic variables.
14199 * demangle.c (demangle_command): Use upper case for metasyntactic
14201 (_initialize_demangler): Likewise.
14202 * ax-gdb.c (_initialize_ax_gdb): Use upper case for metasyntactic
14205 2019-01-03 Tom Tromey <tom@tromey.com>
14207 * tui/tui-source.c (tui_set_source_content): Use xstrdup.
14209 2019-01-03 Tom Tromey <tom@tromey.com>
14211 * python/py-symtab.c (salpy_str): Update.
14212 (struct salpy_sal_object) <symtab>: Now a PyObject.
14213 (salpy_dealloc): Update.
14214 (del_objfile_sal): Use gdbpy_ref.
14216 2019-01-03 Tom Tromey <tom@tromey.com>
14218 * python/py-type.c (convert_field): Use new_reference. Return
14220 (make_fielditem): Return gdbpy_ref.
14221 (typy_fields): Update.
14222 (typy_getitem): Update.
14223 (field_name): Return gdbpy_ref. Use new_reference.
14224 (typy_iterator_iternext): Update.
14226 2019-01-03 Tom Tromey <tom@tromey.com>
14228 * python/py-record.c (gdbpy_stop_recording): Use Py_RETURN_NONE.
14230 2019-01-03 Tom Tromey <tom@tromey.com>
14232 * python/py-value.c (valpy_dealloc): Use Py_XDECREF.
14233 * python/py-type.c (typy_fields_items): Use gdbpy_ref.
14234 * python/py-progspace.c (pspy_set_printers): Use gdbpy_ref.
14235 (pspy_set_frame_filters, pspy_set_frame_unwinders)
14236 (pspy_set_type_printers): Likewise.
14237 * python/py-function.c (fnpy_init): Use gdbpy_ref.
14238 * python/py-cmd.c (cmdpy_init): Use gdbpy_ref.
14239 * python/py-objfile.c (objfpy_set_printers): Use gdbpy_ref.
14240 (objfpy_set_frame_filters, objfpy_set_frame_unwinders)
14241 (objfpy_set_type_printers): Likewise.
14243 2019-01-03 Tom Tromey <tom@tromey.com>
14245 * python/python.c (gdbpy_enter, ~gdbpy_enter): Update.
14246 (gdbpy_print_stack): Use gdbpy_err_fetch.
14247 * python/python-internal.h (class gdbpy_err_fetch): New class.
14248 (class gdbpy_enter) <m_error_type, m_error_value,
14249 m_error_traceback>: Remove.
14250 <m_error>: New member.
14251 (gdbpy_exception_to_string): Don't declare.
14252 * python/py-varobj.c (py_varobj_iter_next): Use gdbpy_err_fetch.
14253 * python/py-value.c (convert_value_from_python): Use
14255 * python/py-utils.c (gdbpy_err_fetch::to_string): Rename from
14256 gdbpy_exception_to_string.
14257 (gdbpy_handle_exception): Use gdbpy_err_fetch.
14258 * python/py-prettyprint.c (print_stack_unless_memory_error): Use
14261 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14263 * linux-nat.c (delete_lwp_cleanup): Delete.
14264 (struct lwp_deleter): New struct.
14265 (lwp_info_up): New typedef.
14266 (linux_nat_target::follow_fork): Delete cleanup, and make use of
14269 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14271 * linux-fork.c (class scoped_switch_fork_info): New class.
14272 (inferior_call_waitpid): Update to use scoped_switch_fork_info.
14274 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14276 * valops.c (find_overload_match): Remove use of null_cleanup, and
14277 calls to do_cleanups.
14279 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14281 * compile/compile-cplus-types.c
14282 (compile_cplus_instance::decl_name): Handle changes to
14284 * cp-support.c (cp_func_name): Update header comment, update
14286 * cp-support.h (cp_func_name): Update return type in declaration.
14287 * valops.c (find_overload_match): Move temp_func local to top
14288 level of function and change its type. Use temp_func to hold and
14289 delete temporary string obtained from cp_func_name.
14291 2019-01-03 Andrew Burgess <andrew.burgess@embecosm.com>
14293 * remote.c (remote_target::remote_check_symbols): Convert `msg` to
14294 gdb::char_vector, remove cleanup, and update uses of `msg`.
14296 2019-01-03 Jim Wilson <jimw@sifive.com>
14298 * riscv-tdep.c (riscv_freg_feature): Drop s0 name from f8.
14300 2019-01-02 Tom Tromey <tom@tromey.com>
14302 * xml-tdesc.c (xml_cache): Hold a target_desc_up.
14303 (tdesc_parse_xml): Remove cleanups.
14304 * target-descriptions.h (make_cleanup_free_target_description):
14306 (target_desc_deleter): New struct.
14307 (target_desc_up): New typedef.
14308 * target-descriptions.c (target_desc_deleter::operator()): Rename
14309 from free_target_description.
14310 (make_cleanup_free_target_description): Remove.
14312 2019-01-02 Tom Tromey <tom@tromey.com>
14314 * linespec.c (struct linespec_parser): Rename from ls_parser. Add
14315 constructor, destructor.
14316 (linespec_parser): Remove typedef.
14317 (~linespec_parser): Rename from linespec_parser_delete.
14318 (linespec_lex_to_end, linespec_complete_label)
14319 (linespec_complete): Update.
14320 (decode_line_full): Remove cleanups.
14321 (decode_line_1): Update.
14323 2019-01-02 Tom Tromey <tom@tromey.com>
14325 * python/python-internal.h (inferior_to_inferior_object): Change
14327 * python/py-exitedevent.c (create_exited_event_object): Update.
14328 * python/py-inferior.c (inferior_to_inferior_object): Return
14330 (python_new_inferior, python_inferior_deleted)
14331 (thread_to_thread_object, delete_thread_object)
14332 (build_inferior_list, gdbpy_selected_inferior): Update.
14333 * python/py-infthread.c (create_thread_object): Update. Also fail
14334 if inferior_to_inferior_object fails.
14336 2019-01-02 Simon Marchi <simon.marchi@ericsson.com>
14338 * inferior.h (class inferior) <displaced_step_state>: New field.
14339 * infrun.h (struct displaced_step_state): Move here from
14340 infrun.c. Initialize fields, add constructor.
14341 <inf>: Remove field.
14342 <reset>: New method.
14343 * infrun.c (struct displaced_step_inferior_state): Move to
14345 (displaced_step_inferior_states): Remove.
14346 (get_displaced_stepping_state): Adust.
14347 (displaced_step_in_progress_any_inferior): Adjust.
14348 (displaced_step_in_progress_thread): Adjust.
14349 (displaced_step_in_progress): Adjust.
14350 (add_displaced_stepping_state): Remove.
14351 (get_displaced_step_closure_by_addr): Adjust.
14352 (remove_displaced_stepping_state): Remove.
14353 (infrun_inferior_exit): Call displaced_step_state.reset.
14354 (use_displaced_stepping): Don't check for NULL.
14355 (displaced_step_prepare_throw): Call
14356 get_displaced_stepping_state.
14357 (displaced_step_fixup): Don't check for NULL.
14358 (prepare_for_detach): Don't check for NULL.
14360 2019-01-02 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14362 * infcall.c (call_function_by_hand_dummy): cleanup/destroy sm
14363 in case of call that did not complete.
14365 2019-01-02 Andrey Utkin <autkin@undo.io>
14367 * symfile.c (find_separate_debug_file): Fix search of debug files for
14370 2019-01-02 Tom Tromey <tom@tromey.com>
14372 * python/py-inferior.c (gdbpy_initialize_inferior): Fix
14374 * python/py-frame.c (frapy_older): Remove cast.
14375 (frapy_newer): Likewise.
14376 * python/py-breakpoint.c (local_setattro): Remove cast.
14377 * python/py-arch.c (archpy_name): Remove local variable.
14378 * python/py-type.c (gdbpy_lookup_type): Remove cast.
14380 2019-01-02 Joel Brobecker <brobecker@adacore.com>
14382 * unittests/basic_string_view/element_access/char/empty.cc:
14383 Fix year range in copyright header.
14385 2019-01-01 Andrew Burgess <andrew.burgess@embecosm.com>
14387 * arch/riscv.h (struct riscv_gdbarch_features) <hw_float_abi>:
14389 <operator==>: Update with for removed field.
14391 * riscv-tdep.h (struct gdbarch_tdep) <features>: Renamed to...
14392 <isa_features>: ...this.
14393 <abi_features>: New field.
14394 (riscv_isa_flen): Update comment.
14395 (riscv_abi_xlen): New declaration.
14396 (riscv_abi_flen): New declaration.
14397 * riscv-tdep.c (riscv_isa_xlen): Update to get answer from
14399 (riscv_abi_xlen): New function.
14400 (riscv_isa_flen): Update to get answer from isa_features.
14401 (riscv_abi_flen): New function.
14402 (riscv_has_fp_abi): Update to get answer from abi_features.
14403 (riscv_call_info::riscv_call_info): Use abi xlen and flen, not isa
14405 (riscv_call_info) <xlen, flen>: Update comment.
14406 (riscv_call_arg_struct): Remove invalid assertions
14407 (riscv_features_from_gdbarch_info): Update now hw_float_abi field
14409 (riscv_gdbarch_init): Gather isa features and abi features
14410 separately, ensure both match on the gdbarch when reusing an old
14411 gdbarch. Relax an error check to allow 32-bit abi float to run on
14412 a target with 64-bit float hardware.
14414 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14416 * source.c (search_command_helper): Stop reverse search
14417 when line 1 has been searched.
14419 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14421 * record-full.c (record_full_base_target::close): Rewrite
14422 record_full_core_buf_list free logic.
14424 2019-01-01 Philippe Waroquiers <philippe.waroquiers@skynet.be>
14426 * break-catch-syscall.c (print_one_catch_syscall): xfree
14429 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14431 * top.c (print_gdb_version): Update Copyright year in version
14434 2019-01-01 Joel Brobecker <brobecker@adacore.com>
14436 Update copyright year range in all GDB files.
14438 2019-01-01, 19 Joel Brobecker <brobecker@adacore.com>
14440 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2018.
14442 For older changes see ChangeLog-2018.
14448 version-control: never