3 * symtab.c (lookup_symbol_in_objfile_symtabs): New declaration.
4 (lookup_global_symbol_from_objfile): Call it.
8 Remove const from struct objfile *.
9 * solib-darwin.c, solib-spu.c, solib-svr4.c, solib.c, solist.h,
10 symtab.c, symtab.h: In these files.
14 * MAINTAINERS (Write After Approval): Add "Andreas From"
20 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
24 * NEWS: Mention gdb.Objfile.add_separate_debug_file.
25 * python/py-objfile.c (objfpy_add_separate_debug_file): New function.
26 (objfile_getset): Add "add_separate_debug_file".
30 * NEWS: Mention gdb.Objfile.build_id.
31 * build-id.c (build_id_bfd_get): Make non-static.
32 * build-id.h (build_id_bfd_get): Add declaration.
33 * python/py-objfile.c: #include "build-id.h", "elf-bfd.h".
34 (OBJFPY_REQUIRE_VALID): New macro.
35 (objfpy_get_build_id): New function.
36 (objfile_getset): Add "build_id".
37 * utils.c (make_hex_string): New function.
38 * utils.h (make_hex_string): Add declaration.
42 * block.c (block_lookup_symbol_primary): New function.
43 * block.h (block_lookup_symbol_primary): New declaration.
44 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
45 Call block_lookup_symbol_primary.
49 * tramp-frame.h (tramp_frame): Add `validate' member.
50 * tramp-frame.c (tramp_frame_start): Validate trampoline before
52 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
53 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
54 (mips_linux_o32_sigframe): Initialize `validate' member.
55 (mips_linux_o32_rt_sigframe): Likewise.
56 (mips_linux_n32_rt_sigframe): Likewise.
57 (mips_linux_n64_rt_sigframe): Likewise.
58 (micromips_linux_o32_sigframe): New variable.
59 (micromips_linux_o32_rt_sigframe): Likewise.
60 (micromips_linux_n32_rt_sigframe): Likewise.
61 (micromips_linux_n64_rt_sigframe): Likewise.
62 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
63 (mips_linux_n32n64_sigframe_init): Likewise.
64 (mips_linux_sigframe_validate): New function.
65 (micromips_linux_sigframe_validate): Likewise.
66 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
70 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
71 * sparc-sol2-tdep.c: Include "regset.h".
72 (sparc32_sol2_supply_core_gregset): New function.
73 (sparc32_sol2_collect_core_gregset): Likewise.
74 (sparc32_sol2_supply_core_fpregset): Likewise.
75 (sparc32_sol2_collect_core_fpregset): Likewise.
76 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
77 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
78 tdep->fpregset/sizeof_fpregset.
79 * sparc64-sol2-tdep.c: Include "regset.h".
80 (sparc64_sol2_supply_core_gregset): New function.
81 (sparc64_sol2_collect_core_gregset): Likewise.
82 (sparc64_sol2_supply_core_fpregset): Likewise.
83 (sparc64_sol2_collect_core_fpregset): Likewise.
84 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
85 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
86 tdep->fpregset/sizeof_fpregset.
90 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
95 * symtab.c (symbol_init_cplus_specific): Delete.
96 (symbol_set_demangled_name): Remove special c++ support.
97 (symbol_get_demangled_name, symbol_set_language): Ditto.
98 * symtab.h (struct cplus_specific): Delete.
99 (struct general_symbol_info) <language_specific>: Remove
105 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
110 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
115 * dwarf2read.c (peek_die_abbrev): Improve error message text.
119 * valops.c (do_search_struct_field): Remove remnant of Chill support.
120 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
124 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
128 * NEWS: Mention new Python events.
129 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
130 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
131 (py-infevents.o): New rule.
132 * doc/observer.texi (inferior_call_pre, inferior_call_post)
133 (memory_changed, register_changed): New observers.
134 * infcall.c (call_function_by_hand): Notify observer before and
136 * python/py-event.h (inferior_call_kind): New enum.
137 (emit_inferior_call_event): New prototype.
138 (emit_register_changed_event): New prototype.
139 (emit_memory_changed_event): New prototype.
140 * python/py-events.h (events_object): New registries
141 inferior_call, memory_changed and register_changed.
142 * python/py-evts.c (gdbpy_initialize_py_events): Add the
143 inferior_call, memory_changed and register_changed registries.
144 * python/py-infevents.c: New.
145 * python/py-inferior.c (python_on_inferior_call_pre)
146 (python_on_inferior_call_post, python_on_register_change)
147 (python_on_memory_change): New functions.
148 (gdbpy_initialize_inferior): Attach python handler to new
150 * python/py-infthread.c(gdbpy_create_ptid_object): New.
151 (thpy_get_ptid) Use gdbpy_create_ptid_object.
152 * python/python-internal.h:
153 (gdbpy_create_ptid_object)
154 (gdbpy_initialize_inferior_call_pre_event)
155 (gdbpy_initialize_inferior_call_post_event)
156 (gdbpy_initialize_register_changed_event)
157 (gdbpy_initialize_memory_changed_event): New prototypes.
158 * python/python.c (_initialize_python): Initialize new events.
159 * valops.c (value_assign): Notify register_changed observer.
163 * python/py-infthread.c: Whitespace fixes.
167 * features/Makefile (s390-te-linux64-expedite): Replace
168 non-existant r14 and r15 by r14l and r15l, respectively.
169 * regformats/s390-te-linux64.dat: Regenerate.
173 * objfiles.c (allocate_objfile): Remove duplicate comment.
177 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
178 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
179 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
180 (supply_gregset, supply_fpregset): Remove.
181 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
182 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
187 Add add-auto-load-scripts-directory.
188 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
189 * auto-load.c (add_auto_load_dir): New function.
190 (_initialize_auto_load): Install it.
195 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
199 * eval.c (evaluate_subexp): Check that the thread stack temporaries
200 are not already enabled before enabling them.
204 * arm-tdep.c (arm_analyze_prologue): Move local variables
205 'framereg' and 'framesize' to inner block. Move code to
210 * eval.c: Include gdbthread.h.
211 (evaluate_subexp): Enable thread stack temporaries before
212 evaluating a complete expression and clean them up after the
213 evaluation is complete.
214 * gdbthread.h: Include common/vec.h.
215 (value_ptr): New typedef.
216 (VEC (value_ptr)): New vector type.
217 (value_vec): New typedef.
218 (struct thread_info): Add new fields stack_temporaries_enabled
219 and stack_temporaries.
220 (enable_thread_stack_temporaries)
221 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
222 (get_last_thread_stack_temporary)
223 (value_in_thread_stack_temporaries): Declare.
224 * gdbtypes.c (class_or_union_p): New function.
225 * gdbtypes.h (class_or_union_p): Declare.
226 * infcall.c (call_function_by_hand): Store return values of class
227 type as temporaries on stack.
228 * thread.c (enable_thread_stack_temporaries): New function.
229 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
230 (get_last_thread_stack_temporary): Likewise.
231 (value_in_thread_stack_temporaries): Likewise.
232 * value.c (value_force_lval): New function.
233 * value.h (value_force_lval): Declare.
238 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
243 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
244 * config/sparc/linux.mh (NATDEPFILES): Likewise.
245 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
246 * m68klinux-nat.c (fetch_core_registers): Remove.
247 (linux_elf_core_fns): Remove.
248 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
252 * utils.c (gdb_realpath): Rework comment about handling on
257 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
259 * gnulib/aclocal.m4: Re-generated.
260 * gnulib/config.in: Re-generated.
261 * gnulib/configure: Re-generated.
262 * gnulib/import/Makefile.am: Re-generated.
263 * gnulib/import/Makefile.in: Re-generated.
264 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
265 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
266 * import/basename-lgpl.c: New file.
267 * import/dirname-lgpl.c: New file.
268 * import/dirname.h: New file.
269 * import/m4/dirname.m4: New file.
270 * import/m4/malloc.m4: New file.
271 * import/m4/rename.m4: New file.
272 * import/m4/rmdir.m4: New file.
273 * import/m4/stdio_h.m4: New file.
274 * import/malloc.c: New file.
275 * import/rename.c: New file.
276 * import/rmdir.c: New file.
277 * import/same-inode.h: New file.
278 * import/stdio.c: New file.
279 * import/stdio.in.h: New file.
280 * import/stripslash.c: New file.
284 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
286 * config.in: Re-generated.
287 * configure: Re-generated.
288 * utils.c (gdb_realpath): Remove code calling realpath,
289 canonicalize_file_name and pathconf.
290 [!_WIN32]: Call canonicalize_file_name.
294 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
296 * aclocal.m4: Re-generated.
297 * config.in: Re-generated.
298 * configure: Re-generated.
299 * import/Makefile.am: Re-generated.
300 * import/Makefile.in: Re-generated.
301 * import/m4/gnulib-cache.m4: Re-generated.
302 * import/m4/gnulib-comp.m4: Re-generated.
303 * import/canonicalize-lgpl.c: New file.
304 * import/extra/snippet/_Noreturn.h: New file.
305 * import/m4/canonicalize.m4: New file.
306 * import/m4/double-slash-root.m4: New file.
307 * import/m4/eealloc.m4: New file.
308 * import/m4/malloca.m4: New file.
309 * import/m4/nocrash.m4: New file.
310 * import/m4/stdlib_h.m4: New file.
311 * import/malloca.c: New file.
312 * import/malloca.h: New file.
313 * import/malloca.valgrind: New file.
317 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
318 * config.in, configure: Regenerate.
319 * symfile.c (find_separate_debug_file_by_debuglink): Remove
320 code checking HAVE_LSTAT is defined.
324 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
326 * gnulib/aclocal.m4: Re-generated.
327 * gnulib/config.in: Re-generated.
328 * gnulib/configure: Re-generated.
329 * gnulib/import/Makefile.am: Re-generated.
330 * gnulib/import/Makefile.in: Re-generated.
331 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
332 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
333 * gnulib/import/lstat.c: New file.
334 * gnulib/import/m4/lstat.m4: New file.
338 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
339 * config.in, configure: Re-generate.
340 * inf-child.c (inf_child_fileio_readlink): Don't check
341 HAVE_READLINK is defined.
345 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
346 * gnulib/aclocal.m4: Re-generated.
347 * gnulib/config.in: Likewise.
348 * gnulib/configure: Likewise.
349 * gnulib/import/Makefile.am: Likewise.
350 * gnulib/import/Makefile.in: Likewise.
351 * gnulib/import/m4/gnulib-cache.m4: Likewise.
352 * gnulib/import/m4/gnulib-comp.m4: Likewise.
353 * gnulib/import/dosname.h: New file
354 * gnulib/import/m4/largefile.m4: New file.
355 * gnulib/import/m4/readlink.m4: New file.
356 * gnulib/import/m4/stat.m4: New file.
357 * gnulib/import/readlink.c: New file.
358 * gnulib/import/stat.c: New file.
362 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
363 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
367 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
368 that there can be only one stack adjustment in the prologue
369 with tests to detect specific disallowed stack adjustments.
373 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
378 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
379 the instruction as well as reading it from memory.
380 (nios2_match_add): New.
381 (nios2_match_sub): New.
382 (nios2_match_addi): New.
383 (nios2_match_orhi): New.
384 (nios2_match_stw): New.
385 (nios2_match_ldw): New.
386 (nios2_match_rdctl): New.
387 (enum branch_condition): New.
388 (nios2_match_branch): New.
389 (nios2_match_jmpi): New.
390 (nios2_match_calli): New.
391 (nios2_match_jmpr): New.
392 (nios2_match_callr): New.
393 (nios2_match_break): New.
394 (nios2_match_trap): New.
395 (nios2_in_epilogue_p): Rewrite to use new functions.
396 (nios2_analyze_prologue): Likewise.
397 (nios2_skip_prologue): Delete unused local limit_pc.
398 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
399 (nios2_get_next_pc): Rewrite to use new functions.
403 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
408 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
409 elements pi_len by the size of the elements before calling
411 (inf_validate_task_sc): Likewise, and properly deallocate the
416 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
417 number and name if present. All callers updated.
418 (dump_fn_fieldlists): Fix indentation of args.
422 * MAINTAINERS (Write After Approval): Add myself.
426 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
427 to a bp_call_dummy breakpoint type.
431 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
432 registering the signal handler.
436 * event-top.h (call_stdin_event_handler_again_p): Declare.
437 * event-top.c (call_stdin_event_handler_again_p): Define.
438 (stdin_event_handler): Use it.
439 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
440 handler again if there is pending input following a
446 * linux-fork.c (checkpoint_command): Print index of new
447 checkpoint in response message.
451 * valprint.c (read_string): Move local variables 'found_nul',
452 'chunksize' and 'limit' to inner scope. Update comments.
456 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
458 (search_symbols): Fix comments and whitespace.
462 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
466 * psymtab.c (psymtab_search_name): Fix whitespace.
470 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
472 * gnulib/import/Makefile.am: Re-generated.
473 * gnulib/import/Makefile.in: Likewise.
474 * gnulib/import/m4/gnulib-cache.m4: Likewise.
478 * gdb_wchar.h: Include wchar.h and wctype.h.
479 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
480 include wchar.h and wctype.h.
481 Don't check HAVE_WCHAR_H.
485 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
487 * gnulib/import/Makefile.am: Re-generated.
488 * gnulib/import/Makefile.in: Likewise.
489 * gnulib/import/m4/gnulib-cache.m4: Likewise.
493 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
495 * gnulib/import/Makefile.am: Re-generated.
496 * gnulib/import/Makefile.in: Likewise.
497 * gnulib/import/m4/gnulib-cache.m4: Likewise.
501 * common/common-defs.h: Include alloca.h
502 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
503 * configure: Re-generated.
504 * defs.h: Remove code handling alloca.
505 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
510 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
512 * gnulib/import/Makefile.am: Re-generated.
513 * gnulib/import/Makefile.in: Likewise..
514 * gnulib/import/m4/gnulib-cache.m4: Likewise.
518 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
523 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
524 flag_unsigned if HIGH_BOUND is constant and negative.
529 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
530 modifier from "struct gdbarch" when compiling without Expat (XML)
532 (get_syscall_by_number): Likewise.
533 (get_syscall_by_name): Likewise.
534 (get_syscall_names): Likewise.
539 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
540 set_xml_syscall_file_name to provide gdbarch.
541 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
542 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
543 * breakpoint.c (print_it_catch_syscall): Adjust call to
544 get_syscall_by_number to provide gdbarch.
545 (print_one_catch_syscall): Likewise.
546 (print_mention_catch_syscall): Likewise.
547 (print_recreate_catch_syscall): Likewise.
548 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
549 and get_syscall_by_name to provide gdbarch.
550 (catch_syscall_completer): Adjust call to get_syscall_names to
552 * gdbarch.c: Regenerate.
553 * gdbarch.h: Likewise.
554 * gdbarch.sh: Forward declare "struct syscalls_info".
555 (xml_syscall_file): New variable.
556 (syscalls_info): Likewise.
557 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
558 set_xml_syscall_file_name to provide gdbarch.
559 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
560 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
561 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
562 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
563 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
564 * xml-syscall.c: Include gdbarch.h.
565 (set_xml_syscall_file_name): Accept gdbarch parameter.
566 (get_syscall_by_number): Likewise.
567 (get_syscall_by_name): Likewise.
568 (get_syscall_names): Likewise.
569 (my_gdb_datadir): Delete global variable.
570 (struct syscalls_info) <my_gdb_datadir>: New variable.
571 (struct syscalls_info) <sysinfo>: Rename variable to
573 (sysinfo): Delete global variable.
574 (have_initialized_sysinfo): Likewise.
575 (xml_syscall_file): Likewise.
576 (sysinfo_free_syscalls_desc): Rename to...
577 (syscalls_info_free_syscalls_desc): ... this.
578 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
579 code to the new layout of "struct syscalls_info".
580 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
582 (syscall_create_syscall_desc): Likewise.
583 (syscall_start_syscall): Likewise.
584 (syscall_parse_xml): Likewise.
585 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
586 (init_sysinfo): Rename to...
587 (init_syscalls_info): ...this. Add gdbarch as a parameter.
588 Adjust function to deal with gdbarch.
589 (xml_get_syscall_number): Delete parameter sysinfo. Accept
590 gdbarch as a parameter. Adjust code.
591 (xml_get_syscall_name): Likewise.
592 (xml_list_of_syscalls): Likewise.
593 (set_xml_syscall_file_name): Accept gdbarch as parameter.
594 (get_syscall_by_number): Likewise.
595 (get_syscall_by_name): Likewise.
596 (get_syscall_names): Likewise.
597 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
598 (get_syscall_by_number): Likewise.
599 (get_syscall_by_name): Likewise.
600 (get_syscall_names): Likewise.
604 Split struct symtab into two: struct symtab and compunit_symtab.
605 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
606 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
607 to "struct compunit_symtab *". All callers updated.
608 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
609 "struct symtab *" argument to "struct compunit_symtab *".
611 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
612 result to "struct compunit_symtab *". All callers updated.
613 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
614 Change result to "struct compunit_symtab *". All callers updated.
615 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
616 hange type to "struct compunit_symtab *". All uses updated.
617 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
618 Change type to "struct compunit_symtab *". All uses updated.
619 * buildsym.c (struct buildsym_compunit): New struct.
620 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
621 (buildsym_compunit): New static global.
622 (finish_block_internal): Update to fetch objfile from
624 (make_blockvector): Delete objfile argument.
625 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
626 debugformat, producer.
627 (start_buildsym_compunit): New function.
628 (free_buildsym_compunit): Renamed from free_subfiles_list.
630 (patch_subfile_names): Rewrite to use buildsym_compunit.
631 (get_compunit_symtab): New function.
632 (get_macro_table): Delete argument comp_dir. All callers updated.
633 (start_symtab): Change result to "struct compunit_symtab *".
634 All callers updated. Create the subfile of the main source file.
635 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
636 (reset_symtab_globals): Update.
637 (end_symtab_get_static_block): Update to use buildsym_compunit.
638 (end_symtab_without_blockvector): Rewrite.
639 (end_symtab_with_blockvector): Change result to
640 "struct compunit_symtab *". All callers updated.
641 Update to use buildsym_compunit. Don't set symtab->dirname,
642 instead set it in the compunit.
643 Explicitly make sure main symtab is first in its list.
644 Set debugformat, producer, blockvector, block_line_section, and
645 macrotable in the compunit.
646 (end_symtab_from_static_block): Change result to
647 "struct compunit_symtab *". All callers updated.
648 (end_symtab, end_expandable_symtab): Ditto.
649 (set_missing_symtab): Change symtab argument to
650 "struct compunit_symtab *". All callers updated.
651 (augment_type_symtab): Ditto.
652 (record_debugformat): Update to use buildsym_compunit.
653 (record_producer): Update to use buildsym_compunit.
654 * buildsym.h (struct subfile) <dirname>: Delete.
655 <producer, debugformat>: Delete.
656 <buildsym_compunit>: New member.
657 (get_compunit_symtab): Declare.
658 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
659 from primary_symtab. Change type to "struct compunit_symtab *".
661 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
663 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
664 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
665 symtab. Change type to "struct compunit_symtab *". All uses updated.
666 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
668 (dw2_find_last_source_symtab): Ditto.
669 (dw2_lookup_symbol): Ditto.
670 (recursively_find_pc_sect_compunit_symtab): Renamed from
671 recursively_find_pc_sect_symtab. Change result to
672 "struct compunit_symtab *". All callers updated.
673 (dw2_find_pc_sect_compunit_symtab): Renamed from
674 dw2_find_pc_sect_symtab. Change result to
675 "struct compunit_symtab *". All callers updated.
676 (get_compunit_symtab): Renamed from get_symtab. Change result to
677 "struct compunit_symtab *". All callers updated.
678 (recursively_compute_inclusions): Change type of immediate_parent
679 argument to "struct compunit_symtab *". All callers updated.
680 (compute_compunit_symtab_includes): Renamed from
681 compute_symtab_includes. All callers updated. Rewrite to compute
682 includes of compunit_symtabs and not symtabs.
683 (process_full_comp_unit): Update to work with struct compunit_symtab.
684 (process_full_type_unit): Ditto.
685 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
686 (dwarf_decode_lines): Remove special case handling of main subfile.
687 (macro_start_file): Delete argument comp_dir. All callers updated.
688 (dwarf_decode_macro_bytes): Ditto.
689 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
690 use struct compunit_symtab.
691 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
692 * jit.c (finalize_symtab): Build compunit_symtab.
693 * jv-lang.c (get_java_class_symtab): Change result to
694 "struct compunit_symtab *". All callers updated.
695 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
696 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
697 comp_dir. Change type to "struct compunit_symtab *".
699 (new_macro_table): Change comp_dir argument to cust,
700 "struct compunit_symtab *". All callers updated.
701 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
702 nr_primary_symtabs. All uses updated.
703 (count_symtabs_and_blocks): Update to handle compunits.
704 (report_command_stats): Update output, "primary symtabs" renamed to
706 * mdebugread.c (new_symtab): Change result to
707 "struct compunit_symtab *". All callers updated.
708 (parse_procedure): Change type of search_symtab argument to
709 "struct compunit_symtab *". All callers updated.
710 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
712 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
713 symtabs. Change type to "struct compunit_symtab *". All uses updated.
714 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
716 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
718 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
719 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
720 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
721 symtab. Change type to "struct compunit_symtab *". All uses updated.
722 * psymtab.c (psymtab_to_symtab): Change result type to
723 "struct compunit_symtab *". All callers updated.
724 (find_pc_sect_compunit_symtab_from_partial): Renamed from
725 find_pc_sect_symtab_from_partial. Change result type to
726 "struct compunit_symtab *". All callers updated.
727 (lookup_symbol_aux_psymtabs): Change result type to
728 "struct compunit_symtab *". All callers updated.
729 (find_last_source_symtab_from_partial): Ditto.
730 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
731 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
732 and macro_table from compunit.
733 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
734 type to "struct compunit_symtab *". All callers updated.
735 (debug_qf_lookup_symbol): Ditto.
736 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
737 debug_qf_find_pc_sect_symtab, change result type to
738 "struct compunit_symtab *". All callers updated.
739 * symfile.c (allocate_symtab): Delete objfile argument.
741 (allocate_compunit_symtab): New function.
742 (add_compunit_symtab_to_objfile): New function.
743 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
744 Change result type to "struct compunit_symtab *". All uses updated.
745 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
746 Change result type to "struct compunit_symtab *". All uses updated.
747 * symmisc.c (print_objfile_statistics): Compute blockvector count in
749 (dump_symtab_1): Update test for primary source symtab.
750 (maintenance_info_symtabs): Update to handle compunit symtabs.
751 (maintenance_check_symtabs): Ditto.
752 * symtab.c (set_primary_symtab): Delete.
753 (compunit_primary_filetab): New function.
754 (compunit_language): New function.
755 (iterate_over_some_symtabs): Change type of arguments "first",
756 "after_last" to "struct compunit_symtab *". All callers updated.
757 Update to loop over symtabs in each compunit.
758 (error_in_psymtab_expansion): Rename symtab argument to cust,
759 and change type to "struct compunit_symtab *". All callers updated.
760 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
761 Change result type to "struct compunit_symtab *". All callers updated.
762 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
763 Change result type to "struct compunit_symtab *". All callers updated.
764 (find_pc_sect_line): Only loop over symtabs within selected compunit
765 instead of all symtabs in the objfile.
766 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
767 <compunit_symtab> New member.
768 <block_line_section>: Moved to compunit_symtab.
769 <locations_valid>: Ditto.
770 <epilogue_unwind_valid>: Ditto.
771 <macro_table>: Ditto.
773 <debugformat>: Ditto.
776 <call_site_htab>: Ditto.
780 (SYMTAB_COMPUNIT): New macro.
781 (SYMTAB_BLOCKVECTOR): Update definition.
782 (SYMTAB_OBJFILE): Update definition.
783 (SYMTAB_DIRNAME): Update definition.
784 (struct compunit_symtab): New type. Common members among all source
785 symtabs within a compilation unit moved here. All uses updated.
786 (COMPUNIT_OBJFILE): New macro.
787 (COMPUNIT_FILETABS): New macro.
788 (COMPUNIT_DEBUGFORMAT): New macro.
789 (COMPUNIT_PRODUCER): New macro.
790 (COMPUNIT_DIRNAME): New macro.
791 (COMPUNIT_BLOCKVECTOR): New macro.
792 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
793 (COMPUNIT_LOCATIONS_VALID): New macro.
794 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
795 (COMPUNIT_CALL_SITE_HTAB): New macro.
796 (COMPUNIT_MACRO_TABLE): New macro.
797 (ALL_COMPUNIT_FILETABS): New macro.
798 (compunit_symtab_ptr): New typedef.
799 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
803 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
804 if the TYPE_CODE of range_type's base type does not match
805 the TYPE_CODE of encoding_type's base type.
809 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
814 * ada-lang.c (ada_is_redundant_range_encoding): New function.
815 (ada_is_redundant_index_type_desc): New function.
816 (to_fixed_array_type): Ignore parallel XA type if redundant.
820 * ada-lang.c (constrained_packed_array_type): Set the length
821 of the return array as if both bounds where zero if that
822 returned array's index type is dynamic.
826 * config/i386/go32.mh (CC): Remove.
830 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
835 * buildsym.c (buildsym_objfile): New static global.
836 (buildsym_comp_dir): New static global.
837 (finish_block_internal): Delete arg objfile. All callers updated.
838 (finish_block): Delete arg objfile. All callers updated.
839 (start_subfile): Delete arg dirname. All callers updated.
840 (patch_subfile_names): Update buildsym_comp_dir.
841 (get_macro_table): Delete arg objfile. All callers updated.
842 (start_symtab): New arg objfile. All callers updated.
843 Rename arg dirname to comp_dir.
844 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
845 (end_symtab_get_static_block): Delete arg objfile. All callers
847 (end_symtab_without_blockvector): Ditto.
848 (end_symtab_with_blockvector): Ditto.
849 (end_symtab_from_static_block): Ditto.
851 (end_expandable_symtab): Ditto.
852 (augment_type_symtab): Ditto.
853 * coffread.c (coff_start_symtab): New arg objfile. All callers
858 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
863 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
864 symtab.dirname updated to use it.
868 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
869 symtab.objfile updated to use it.
873 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
877 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
879 * findvar.c (default_read_var_value): Ditto.
880 * jv-lang.c (add_class_symtab_symbol): Ditto.
881 * parse.c (operator_check_standard): Ditto.
882 * printcmd.c (address_info): Ditto.
883 * symtab.c (fixup_symbol_section): Ditto.
884 (skip_prologue_sal): Ditto.
885 * tracepoint.c (scope_info): Ditto.
886 * valops.c (find_function_in_inferior): Ditto.
887 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
888 * python/py-symbol.c (set_symbol): Ditto.
892 * buildsym.c (main_subfile): New static global.
893 (free_subfiles_list): New function.
894 (start_symtab): Set main_subfile.
895 (restart_symtab): Replace init of subfiles, current_subfile with
896 call to free_subfiles_list.
897 (watch_main_source_file_lossage): Use main_subfile.
898 (reset_symtab_globals): Replace init of current_subfile with call
899 to free_subfiles_list.
900 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
901 functions, split out from ...
902 (end_symtab_from_static_block): ... here. Rewrite to call them.
906 The result of symtab expansion is always a primary symtab.
907 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
908 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
909 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
910 (psymtab_to_symtab): Add comment and assert.
911 (map_matching_symbols_psymtab): Remove unnecessary test for
917 * symtab.c (find_pc_line_symtab): New function.
918 * symtab.h (find_pc_line_symtab): Declare.
919 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
921 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
922 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
923 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
924 * tui/tui-win.c (make_visible_with_new_height): Ditto.
925 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
926 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
930 * symtab.c (expand_symtab_containing_pc): Renamed from
931 find_pc_sect_symtab_via_partial. All callers updated.
935 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
939 * common/common-defs.h: Move <stdarg.h> #include ahead of
944 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
945 [!PHONY_ICONV] (gdb_iconv): New function.
946 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
951 * dwarf2read.c (find_slot_in_mapped_hash): Handle
952 "(anonymous namespace)".
956 * dwarf2read.c (update_enumeration_type_from_children): Avoid
961 * NEWS (maint set target-async): Fix typo.
965 * infrun.c (enum infwait_states, infwait_state): Delete.
969 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
970 Rewrite stepping over a permanent breakpoint.
971 (thread_still_needs_step_over, proceed): Don't set
972 stepping_over_breakpoint for permanent breakpoints.
973 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
974 single-step breakpoints out of the target on hardware step
976 (process_event_stop_test): If stepping a permanent breakpoint
977 doesn't hit the step-resume breakpoint, delete the step-resume
979 (switch_back_to_stepped_thread): Also check if the stepped thread
980 has advanced already on hardware step targets.
981 (currently_stepping): Return true if the thread stepped a
986 Mark locations as permanent, not the whole breakpoint.
987 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
988 (mark_breakpoints_out): Don't mark permanent breakpoints as
990 (breakpoint_init_inferior): Use mark_breakpoints_out.
991 (breakpoint_here_p): Adjust.
992 (bpstat_stop_status, describe_other_breakpoints): Remove handling
993 of permanent breakpoints.
994 (make_breakpoint_permanent): Mark each location as permanent,
995 instead of marking the breakpoint.
996 (add_location_to_breakpoint): If the location is permanent, mark
997 it as such, and as inserted.
998 (init_breakpoint_sal): Don't make the breakpoint permanent here.
999 (bp_location_compare, update_global_location_list): Adjust.
1000 (update_breakpoint_locations): Don't make the breakpoint permanent
1002 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
1004 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
1005 (struct bp_location) <permanent>: New field.
1006 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
1007 reference to bp_permanent.
1011 * arch-utils.c (default_skip_permanent_breakpoint): New function.
1012 * arch-utils.h (default_skip_permanent_breakpoint): New
1014 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
1015 Install default_skip_permanent_breakpoint as default method.
1016 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
1017 (i386_gdbarch_init): Don't install it.
1018 * infrun.c (resume): Assume there's always a
1019 gdbarch_skip_permanent_breakpoint implementation.
1020 * gdbarch.h, gdbarch.c: Regenerate.
1024 Warn about cross-PID-namespace debugging.
1025 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
1026 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
1027 * linux-thread-db.c (check_pid_namespace_match): New function.
1028 (thread_db_inferior_created): Call it.
1032 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
1033 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
1037 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1042 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1043 (lookup_static_symbol): Move definition to new location and rewrite.
1044 (lookup_symbol_in_objfile): New function.
1045 (lookup_symbol_global_iterator_cb): Call it.
1049 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1053 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1054 check if we did a "nexti" inside a prologue.
1055 * symtab.c (in_prologue): Delete function.
1056 * symtab.h (in_prologue): Delete declaration.
1060 * symtab.h (lookup_global_symbol): Improve function comment.
1064 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1065 All callers updated.
1066 * symtab.h (lookup_global_symbol): Update decl.
1067 (lookup_static_symbol): Move decl to better location.
1071 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1075 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1076 All callers updated.
1077 (lookup_symbol_in_all_objfiles): Renamed from
1078 lookup_symbol_aux_symtabs. All callers updated.
1079 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1080 All callers updated.
1081 (lookup_symbol_in_objfile_symtabs): Renamed from
1082 lookup_symbol_aux_objfile. All callers updated.
1086 * symtab.c (lookup_symbol_in_block): Renamed from
1087 lookup_symbol_aux_block. All callers updated.
1091 * symtab.c (lookup_static_symbol): Renamed from
1092 lookup_static_symbol_aux. All callers updated.
1093 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1094 All callers updated.
1098 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1099 * block.c (block_lookup_symbol): Use it.
1100 * cp-support.c (make_symbol_overload_list_block): Use it.
1101 * symtab.c (iterate_over_symbols): Use it.
1105 * symtab.c (lookup_block_symbol): Moved to ...
1106 * block.c (block_lookup_symbol): ... here and renamed.
1107 All callers updated.
1108 * block.h (block_lookup_symbol): Declare.
1109 * symtab.h (lookup_block_symbol): Delete.
1113 * ada-lang.c (ada_make_symbol_completion_list): Use
1114 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1115 * symtab.c (lookup_objfile_from_block): Ditto.
1119 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1124 * objfiles.c (get_objfile_arch): Constify.
1125 * objfiles.h (get_objfile_arch): Update prototype.
1126 * solib.c (solib_global_lookup): Fetch arch from objfile,
1131 * nios2-tdep.c (wild_insn): Delete.
1132 (profiler_insn, irqentry_insn): Delete.
1133 (nios2_match_sequence): Delete.
1134 (nios2_analyze_prologue): Update comments. Remove matching
1135 of obsolete profiler_insn and irqentry_insn sequences.
1139 * charset.c (convert_between_encodings): Shrink obstack using
1141 * minsyms.c (install_minimal_symbols): Likewise.
1142 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1143 to char* before doing pointer arithmetic.
1147 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1151 * breakpoint.c (breakpoint_thread_match): Delete function.
1152 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1157 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1158 the method args also under EVAL_SKIP when evaluating method
1159 calls under EVAL_SKIP.
1163 * dwarf2loc.c (read_pieced_value): Do big endian
1164 processing only if gdb_regnum is not -1.
1165 (write_pieced_value): Ditto.
1169 * arm-linux-tdep.c (arm_linux_init_abi): Use
1170 info.byte_order_for_code to choose endianity of breakpoint
1171 instructions snippets.
1175 * arm-tdep.c (extract_arm_insn): Use
1176 gdbarch_byte_order_for_code to read arm instruction.
1180 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1184 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1185 main_subfile before returning.
1189 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1190 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1194 * valops.c (value_cast_pointers): Fix whitespace.
1195 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1200 * NEWS: Mention ability add attributes to gdb.Objfile and
1201 gdb.Progspace objects.
1202 * python/py-objfile.c (objfile_object): New member dict.
1203 (objfpy_dealloc): Py_XDECREF dict.
1204 (objfpy_initialize): Initialize dict.
1205 (objfile_getset): Add __dict__.
1206 (objfile_object_type): Set tp_dictoffset member.
1207 * python/py-progspace.c (progspace_object): New member dict.
1208 (pspy_dealloc): Py_XDECREF dict.
1209 (pspy_initialize): Initialize dict.
1210 (pspace_getset): Add __dict__.
1211 (pspace_object_type): Set tp_dictoffset member.
1215 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1216 replace '\\' with '\\\\'.
1225 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1226 instead of assuming a thread with a stepping range is always
1232 * event-top.c (change_line_handler): Call
1233 gdb_rl_callback_handler_remove instead of
1234 rl_callback_handler_remove.
1235 (callback_handler_installed): New global.
1236 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1237 (gdb_rl_callback_handler_reinstall): New functions.
1238 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1239 gdb_rl_callback_handler_install instead of
1240 rl_callback_handler_remove and rl_callback_handler_install.
1241 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1242 instead of rl_callback_handler_remove.
1243 * event-top.h (gdb_rl_callback_handler_remove)
1244 (gdb_rl_callback_handler_install)
1245 (gdb_rl_callback_handler_reinstall): New declarations.
1246 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1248 (fetch_inferior_event): Install it.
1249 * top.c (gdb_readline_wrapper_line) Call
1250 gdb_rl_callback_handler_remove instead of
1251 rl_callback_handler_remove.
1252 (gdb_readline_wrapper_cleanup): Don't call
1253 rl_callback_handler_install.
1257 * event-top.c (command_line_handler): Clear the first byte of
1258 linebuffer, when it is first allocated.
1262 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1269 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1270 (tui_allowed_p): Delete function.
1271 * tui/tui.c: Include "interps.h".
1272 (tui_enable): Don't use tui_allowed_p. Error out here with
1273 detailed error messages if the TUI is the top level interpreter,
1274 or if output is not a terminal. Use newterm instead of initscr,
1275 and error out if initializing the terminal fails. Also error out if
1276 the terminal doesn't support cursor addressing.
1277 * tui/tui.h (tui_allowed_p): Delete declaration.
1281 * arm-tdep.c (arm_skip_stack_protector): Return early if
1282 address loaded by first "ldr" instruction does not have
1283 a corresponding minimal symbol. Update comment.
1287 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1288 loaded address correctly of ldr instruction.
1293 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1295 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1296 thread's stepped_breakpoint field. Skip if reverse debugging.
1298 (init_thread_stepping_state, handle_signal_stop): Clear the
1299 thread's stepped_breakpoint field.
1303 * remote.c (remote_thread_alive): New, factored out from ...
1304 (remote_thread_alive): ... this.
1305 (remote_update_thread_list): Bail out before deleting threads if
1306 the target returned an empty list, and, the current thread has a
1311 * infrun.c (handle_signal_stop): Also skip handlers when a random
1312 signal arrives while handling a "stepi" or a "nexti". Set the
1313 thread's 'step_after_step_resume_breakpoint' flag.
1317 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1318 (arm_record_ld_st_imm_offset): Reimplement to cover all
1319 load/store cases for ARM opcode 010.
1320 (arm_record_ld_st_multiple): Reimplement to cover all
1321 load/store cases for ARM opcode 100.
1325 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1329 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1330 parameter "kind" to "block_index".
1331 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1333 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1337 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1341 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1346 * parser-defs.h (block_found): Move decl from here ...
1347 * symtab.h (block_found): ... to here.
1351 * symtab.h (struct field_of_this_result): Fix typo in comment.
1352 (lookup_symbol_in_language): Move function comment here.
1353 (lookup_symbol): Improve function comment.
1354 (basic_lookup_symbol_nonlocal): Ditto.
1355 (lookup_symbol_static, lookup_symbol_global): Ditto.
1356 (lookup_symbol_aux_block): Ditto.
1357 (lookup_language_this): Add function comment.
1358 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1360 (lookup_block_symbol): Improve function comment.
1361 (lookup_struct): Fix capitalization in function comment.
1362 (lookup_transparent_type): Add function comment.
1363 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1364 Improve function comment.
1365 (lookup_objfile_from_block): Add function comment.
1366 * symtab.c (lookup_symbol_in_language): Update function comment.
1367 (lookup_symbol, lookup_language_this): Ditto.
1368 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1369 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1370 (basic_lookup_symbol_nonlocal): Ditto.
1371 (lookup_symbol_static, lookup_symbol_global): Ditto.
1372 (lookup_transparent_type, lookup_block_symbol): Ditto.
1376 * symtab.c (types_info): Delete forward decl.
1377 (functions_info, variables_info, sources_info): Ditto.
1378 (_initialize_symtab): Rewrite forward decl to use
1379 initialize_file_ftype.
1383 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1387 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1388 of local var child_die.
1392 * infrun.c (follow_fork_inferior): Update fork message printing
1393 to use target_terminal_ours_for_output instead of
1394 target_terminal_ours, to use _() for all format strings, to print
1395 "vfork" instead of "fork" for vforks, and to add a detach message.
1396 (handle_vfork_child_exec_or_exit): Update message printing to use
1397 target_terminal_ours_for_output instead of target_terminal_ours, to
1398 use _() for all format strings, and to fix some formatting.
1402 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1403 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1404 * config/vax/vax.mh: Delete.
1405 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1406 obsolete configurations section.
1407 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1408 * vax-nat.c: Delete file.
1412 * NEWS (Removed targets): Add OS/arch column.
1416 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1417 on the arg type of a constructor only if it is of reference type.
1421 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1422 accessors and constants from nios2 opcodes update.
1423 (nios2_get_next_pc): Likewise.
1427 * gdbthread.h (set_running): Fix comment.
1428 (set_executing, finish_thread_state): Fix comment.
1432 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1436 * NEWS: Mention new event gdb.clear_objfiles.
1437 * python/py-event.h (emit_clear_objfiles_event): Clear
1438 * python/py-events.h (events_object): New member clear_objfiles.
1439 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1441 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1442 emit clear_objfiles event.
1443 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1445 (emit_clear_objfiles_event): New function.
1446 (clear_objfiles): New event.
1447 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1449 * python/python.c (_initialize_python): Call
1450 gdbpy_initialize_clear_objfiles_event.
1454 * NEWS: Mention new gdb.Objfile.progspace attribute.
1455 * python/py-objfile.c (objfpy_get_progspace): New function.
1456 (objfile_getset): New entry for "progspace".
1461 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1462 returns a copy of the input.
1463 (run_command_1, continue_command, step_1, jump_command)
1464 (signal_command, until_command, advance_command, finish_command)
1465 (attach_command): Adjust and install a cleanup to free the
1471 * infcmd.c (continue_1): If continuing all threads in the
1472 foreground, make sure the inferior's terminal settings are put in
1478 * annotate.c (annotate_breakpoints_invalid): Use
1479 target_terminal_our_for_output instead of target_terminal_ours.
1480 Give back the terminal to the target.
1481 (annotate_frames_invalid): Likewise.
1485 * target.c (enum terminal_state): New enum.
1486 (terminal_state): New global.
1487 (target_terminal_init): New function.
1488 (target_terminal_inferior): Skip if inferior already owns the
1490 (target_terminal_ours, target_terminal_ours_for_output): New
1492 * target.h (target_terminal_init): Convert to function prototype.
1493 (target_terminal_ours_for_output): Convert to function prototype
1495 (target_terminal_ours): Convert to function prototype and tweak
1497 * windows-nat.c (do_initial_windows_stuff): Call
1498 target_terminal_init instead of child_terminal_init_with_pgrp.
1502 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1503 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1504 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1506 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1507 * ada-lang.h [__alpha__ && __osf__]
1508 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1509 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1510 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1512 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1514 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1515 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1516 * configure: Regenerate.
1517 * configure.ac: Remove references to osf.
1518 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1519 section. Remove all other references to osf.
1520 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1521 Remove all other references to osf.
1522 * dec-thread.c: Delete file.
1523 * defs.h (GDB_OSABI_OSF1): Delete.
1524 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1526 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1527 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1529 (unconditionally_kill_inferior)
1530 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1531 * solib-osf.c: Delete file.
1535 * remote.c (clear_threads_listing_context): Move higher up, out of
1536 the HAVE_LIBEXPAT guard.
1540 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1541 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1546 * dec-thread.c (dec_thread_count_gdb_threads)
1547 (dec_thread_add_gdb_thread): Delete.
1548 (dec_thread_update_thread_list): Delete.
1549 (dec_thread_find_new_threads): Rename to ...
1550 (dec_thread_update_thread_list): ... this. Delete GDB-size
1551 threads that are no longer found in dec_thread_list.
1552 (resync_thread_list): Delete.
1553 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1558 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1559 * remote.c (remote_update_thread_list): Skip calling prune_threads
1560 if any thread listing method is supported, and instead walk over
1561 the set of remote threads listed, deleting those that are not
1562 found in GDB's thread list.
1566 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1567 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1568 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1569 (bsd_uthread_target): Adjust.
1570 * corelow.c (core_open): Adjust.
1571 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1572 (dec_thread_update_thread_list): New function.
1573 (init_dec_thread_ops): Adjust.
1574 * gdbthread.h (prune_threads): New declaration.
1575 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1576 (thread_db_update_thread_list): ... this. Call prune_threads.
1577 (init_thread_db_ops): Adjust.
1578 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1579 (procfs_update_thread_list): ... this. Call prune_threads.
1580 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1582 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1583 (obsd_update_thread_list): ... this. Call prune_threads.
1584 (obsd_add_target): Adjust.
1585 * procfs.c (procfs_target): Adjust.
1586 (procfs_notice_thread): Update comment.
1587 (procfs_find_new_threads): Rename to ...
1588 (procfs_update_thread_list): ... this. Call prune_threads.
1589 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1591 (ravenscar_wait): Adjust.
1592 (ravenscar_find_new_threads): Rename to ...
1593 (ravenscar_update_thread_list): ... this. Call prune_threads.
1594 (init_ravenscar_thread_ops): Adjust.
1595 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1596 (record_btrace_update_thread_list): ... this. Adjust comment.
1597 (init_record_btrace_ops): Adjust.
1598 * remote.c (remote_threads_info): Rename to ...
1599 (remote_update_thread_list): ... this. Call prune_threads.
1600 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1602 * sol-thread.c (check_for_thread_db): Adjust.
1603 (sol_find_new_threads_callback): Rename to ...
1604 (sol_update_thread_list_callback): ... this.
1605 (sol_find_new_threads): Rename to ...
1606 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1607 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1608 * target-delegates.c: Regenerate.
1609 * target.c (target_find_new_threads): Rename to ...
1610 (target_update_thread_list): ... this.
1611 * target.h (struct target_ops): Rename to_find_new_threads field
1612 to to_update_thread_list.
1613 (target_find_new_threads): Rename to ...
1614 (target_update_thread_list): ... this.
1615 * thread.c (prune_threads): Make extern.
1616 (update_thread_list): Adjust.
1620 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1621 Add describing comment. Return -1 if the qL packet is not
1623 (struct thread_item, thread_item_t): Move higher up in
1624 the file. Add comments.
1625 (struct threads_parsing_context): Move higher up in
1626 the file, add comments, and remote to ...
1627 (struct threads_listing_context): ... this.
1628 (remote_newthread_step): Don't add the thread to GDB's thread
1629 database here. Instead push it to the thread_listing_context
1631 (remote_find_new_threads): Rename to ...
1632 (remote_get_threads_with_ql): ... this. Add target_ops and
1633 targets_listing_context parameters. Pass down context.
1634 (start_thread): Adjust.
1635 (clear_threads_parsing_context): Rename to ...
1636 (clear_threads_listing_context): ... this.
1637 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1638 remote_threads_info.
1639 (remote_get_threads_with_qthreadinfo): Ditto.
1640 (remote_threads_info): Reimplement.
1644 * infrun.c (resume): Don't force displaced-stepping for all
1645 single-steps on software single-stepping archs.
1649 * breakpoint.c (single_step_breakpoints): Delete global.
1650 (insert_single_step_breakpoint): Adjust to store the breakpoint
1651 pointer in the current thread.
1652 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1653 (cancel_single_step_breakpoints): Delete functions.
1654 (breakpoint_has_location_inserted_here): Make extern.
1655 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1657 * breakpoint.h (breakpoint_has_location_inserted_here): New
1659 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1660 (cancel_single_step_breakpoints): Remove declarations.
1661 * gdbthread.h (struct thread_control_state)
1662 <single_step_breakpoints>: New field.
1663 (delete_single_step_breakpoints)
1664 (thread_has_single_step_breakpoints_set)
1665 (thread_has_single_step_breakpoint_here): New declarations.
1666 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1667 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1668 (singlestep_pc): Delete globals.
1669 (infrun_thread_ptid_changed): Remove references to removed
1671 (resume_cleanups): Delete the current thread's single-step
1673 (maybe_software_singlestep): Remove references to removed globals.
1674 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1675 delete_single_step_breakpoints.
1676 (init_wait_for_inferior): Remove references to removed globals.
1677 (delete_thread_infrun_breakpoints): Delete the thread's
1678 single-step breakpoints too.
1679 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1680 single-step breakpoints here.
1681 (delete_stopped_threads_single_step_breakpoints): New function.
1682 (adjust_pc_after_break): Adjust to use
1683 thread_has_single_step_breakpoints_set.
1684 (handle_inferior_event): Remove references to removed globals.
1685 Use delete_stopped_threads_single_step_breakpoints.
1686 (handle_signal_stop): Adjust to per-thread single-step
1687 breakpoints. Swap test order to do cheaper tests first.
1688 (switch_back_to_stepped_thread): Extend debug output. Remove
1689 references to removed globals.
1690 * record-full.c (record_full_wait_1): Adjust to per-thread
1691 single-step breakpoints.
1692 * thread.c (delete_single_step_breakpoints)
1693 (thread_has_single_step_breakpoints_set)
1694 (thread_has_single_step_breakpoint_here): New functions.
1695 (clear_thread_inferior_resources): Also delete the thread's
1696 single-step breakpoints.
1700 * thread.c (delete_thread_breakpoint): New function.
1701 (delete_step_resume_breakpoint)
1702 (delete_exception_resume_breakpoint): Use it.
1703 (delete_at_next_stop): New function.
1704 (clear_thread_inferior_resources): Use delete_at_next_stop.
1708 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1709 (breakpoint_inserted_here_p): ... here. Remove special case for
1710 software single-step breakpoints.
1711 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1712 (software_breakpoint_inserted_here_p): ... here. Remove special
1713 case for software single-step breakpoints.
1714 (bp_target_info_copy_insertion_state)
1715 (deprecated_insert_raw_breakpoint)
1716 (deprecated_remove_raw_breakpoint): Delete functions.
1717 * breakpoint.h (deprecated_insert_raw_breakpoint)
1718 (deprecated_remove_raw_breakpoint): Remove declarations.
1723 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1724 Delete array globals.
1725 (single_step_breakpoints): New global.
1726 (breakpoint_xfer_memory): Remove special handling for single-step
1728 (update_breakpoints_after_exec): Delete bp_single_step
1730 (detach_breakpoints): Remove special handling for single-step
1732 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1733 (bpstat_stop_status): Add comment.
1734 (bpstat_what, bptype_string, print_one_breakpoint_location)
1735 (adjust_breakpoint_address, init_bp_location): Handle
1737 (new_single_step_breakpoint): New function.
1738 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1739 handling for single-step breakpoints.
1740 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1741 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1743 (detach_single_step_breakpoints, find_single_step_breakpoint):
1745 (breakpoint_has_location_inserted_here): New function.
1746 (single_step_breakpoint_inserted_here_p): Rewrite.
1747 * breakpoint.h: Remove FIXME.
1748 (enum bptype) <bp_single_step>: New enum value.
1749 (insert_single_step_breakpoint): Update comment.
1750 * infrun.c (resume_cleanups)
1751 (delete_step_thread_step_resume_breakpoint): Remove single-step
1753 (fetch_inferior_event): Install a cleanup that removes infrun
1755 (switch_back_to_stepped_thread) <expect thread advanced also>:
1756 Clear step-over info.
1760 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1761 (delete_thread_infrun_breakpoints): New function, with parts
1762 salvaged from delete_step_resume_breakpoint_callback.
1763 (delete_step_thread_step_resume_breakpoint): Delete.
1764 (for_each_just_stopped_thread_callback_func): New typedef.
1765 (for_each_just_stopped_thread): New function.
1766 (delete_just_stopped_threads_infrun_breakpoints): New function.
1767 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1768 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1770 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1774 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1775 trying to step past a non-steppable watchpoint.
1776 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1778 * infrun.c (struct step_over_info): Add new field
1779 'nonsteppable_watchpoint_p' and adjust comments.
1780 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1782 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1783 (stepping_past_nonsteppable_watchpoint): New function.
1784 (step_over_info_valid_p): Also return true if stepping past a
1785 nonsteppable watchpoint.
1786 (proceed): Adjust call to set_step_over_info. Remove reference to
1788 (init_wait_for_inferior): Remove reference to init_infwait_state.
1789 (waiton_ptid): Delete global.
1790 (struct execution_control_state)
1791 <stepped_after_stopped_by_watchpoint>: Delete field.
1792 (wait_for_inferior, fetch_inferior_event): Always pass
1793 minus_one_ptid to target_wait.
1794 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1796 (init_infwait_state): Delete function.
1797 (handle_inferior_event): Remove infwait_state handling.
1798 (handle_signal_stop) <watchpoints handling>: Adjust after
1799 stepped_after_stopped_by_watchpoint removal. Don't remove
1800 breakpoints here nor set infwait_state. Set the thread's
1801 stepping_over_watchpoint flag, and call keep_going instead.
1802 (keep_going): Handle stepping_over_watchpoint. Adjust
1803 set_step_over_info calls.
1804 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1809 * infrun.c (step_over_info_valid_p): New function.
1810 (resume): Use step_over_info_valid_p instead of checking the
1811 threads's trap_expected flag.
1817 * python/lib/gdb/__init__.py (packages): Add "printer".
1818 * python/lib/gdb/command/bound_registers.py: Moved to ...
1819 * python/lib/gdb/printer/bound_registers.py: ... here.
1820 Add printer to global set of builtin printers. Rename printer from
1821 "bound" to "mpx_bound128".
1822 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1823 registered as global "builtin" printer.
1824 (add_builtin_pretty_printer): New function.
1825 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1826 gdb/printer/__init__.py.
1830 * Makefile.in (SFILES): Remove d-support.c.
1831 (COMMON_OBS): Remove d-support.o.
1832 * d-lang.h (d_parse_symbol): Remove declaration.
1833 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1834 * d-support.c: Remove file.
1838 * gdb/infrun.c (process_event_stop_test): Apply
1839 gdbarch_addr_bits_remove to longjmp resume address.
1843 * regformats/microblaze.dat: Delete file.
1847 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1848 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1852 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1859 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1860 with qualified args.
1864 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1865 of the case where the second operand is a pointer.
1866 <BINOP_SUB>: Likewise.
1870 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1871 only if it is not NULL.
1872 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1873 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1874 (struct probe_ops) <clear_semaphore>: Likewise.
1875 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1877 (stop_tracing): Likewise, for clear_semaphore.
1881 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1882 using language_c, instead of current_language.
1886 * python/py-objfile.c (objfpy_initialize): New function.
1887 (objfpy_new, objfile_to_objfile_object): Call it.
1888 * python/py-progspace.c (pspy_initialize): New function.
1889 (pspy_new, pspace_to_pspace_object): Call it.
1894 Fix "save breakpoints" for "catch" command.
1895 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1900 Fix "save breakpoints" for "disable $bpnum" command.
1901 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1905 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1906 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1907 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1908 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1910 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1911 * configure.ac: Remove references to IRIX.
1912 * configure.host: Add *-*-irix* to the obsolete hosts section.
1913 Remove all other references to irix.
1914 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1919 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1920 isn't valid, release the tdesc arch data and return NULL.
1924 * linux-tdep.c: Include observer.h.
1925 (linux_inferior_data): New global.
1926 (struct linux_info): New structure.
1927 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1928 (get_linux_inferior_data): New functions.
1929 (linux_vsyscall_range): Rename to ...
1930 (linux_vsyscall_range_raw): ... this.
1931 (linux_vsyscall_range): New function; handles caching.
1932 (_initialize_linux_tdep): Register linux_inferior_data. Install
1933 inferior_exit and inferior_appeared observers.
1939 * solib-svr4.c (svr4_read_so_list): Rename to ...
1940 (svr4_current_sos_1): ... this and change the function comment.
1941 (svr4_current_sos): New function.
1945 * arch-utils.c (default_vsyscall_range): New function.
1946 * arch-utils.h (default_vsyscall_range): New declaration.
1947 * gdbarch.sh (vsyscall_range): New hook.
1948 * gdbarch.h, gdbarch.c: Regenerate.
1949 * linux-tdep.c (linux_vsyscall_range): New function.
1950 (linux_init_abi): Install linux_vsyscall_range as
1951 vsyscall_range gdbarch hook.
1952 * memrange.c (address_in_mem_range): New function.
1953 * memrange.h (address_in_mem_range): New declaration.
1954 * symfile-mem.c (find_vdso_size): Delete function.
1955 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1959 * infrun.c (normal_stop): Fix typo in comment.
1964 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1965 typo when using logical AND to determine instruction type.
1969 * infrun.c (handle_signal_stop): Remove local variable
1974 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1978 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1982 * common/common-defs.h: Include common-exceptions.h.
1983 * exceptions.h: Do not include common-exceptions.h.
1987 * common/common-defs.h: Include cleanups.h.
1988 * common/common-exceptions.c: Do not include cleanups.h.
1989 * utils.h: Likewise.
1993 * ada-lang.c: Do not include exceptions.h.
1994 * ada-valprint.c: Likewise.
1995 * amd64-tdep.c: Likewise.
1996 * auto-load.c: Likewise.
1997 * block.c: Likewise.
1998 * break-catch-throw.c: Likewise.
1999 * breakpoint.c: Likewise.
2000 * btrace.c: Likewise.
2001 * c-lang.c: Likewise.
2002 * cli/cli-cmds.c: Likewise.
2003 * cli/cli-interp.c: Likewise.
2004 * cli/cli-script.c: Likewise.
2005 * completer.c: Likewise.
2006 * corefile.c: Likewise.
2007 * corelow.c: Likewise.
2008 * cp-abi.c: Likewise.
2009 * cp-support.c: Likewise.
2010 * cp-valprint.c: Likewise.
2011 * darwin-nat.c: Likewise.
2012 * dwarf2-frame-tailcall.c: Likewise.
2013 * dwarf2-frame.c: Likewise.
2014 * dwarf2loc.c: Likewise.
2015 * dwarf2read.c: Likewise.
2017 * event-loop.c: Likewise.
2018 * event-top.c: Likewise.
2019 * f-valprint.c: Likewise.
2020 * frame-unwind.c: Likewise.
2021 * frame.c: Likewise.
2022 * gdbtypes.c: Likewise.
2023 * gnu-v2-abi.c: Likewise.
2024 * gnu-v3-abi.c: Likewise.
2025 * guile/scm-auto-load.c: Likewise.
2026 * guile/scm-breakpoint.c: Likewise.
2027 * guile/scm-cmd.c: Likewise.
2028 * guile/scm-frame.c: Likewise.
2029 * guile/scm-lazy-string.c: Likewise.
2030 * guile/scm-param.c: Likewise.
2031 * guile/scm-symbol.c: Likewise.
2032 * guile/scm-type.c: Likewise.
2033 * hppa-hpux-tdep.c: Likewise.
2034 * i386-tdep.c: Likewise.
2035 * inf-loop.c: Likewise.
2036 * infcall.c: Likewise.
2037 * infcmd.c: Likewise.
2038 * infrun.c: Likewise.
2039 * interps.c: Likewise.
2040 * interps.h: Likewise.
2042 * linespec.c: Likewise.
2043 * linux-nat.c: Likewise.
2044 * linux-thread-db.c: Likewise.
2045 * m32r-rom.c: Likewise.
2047 * memory-map.c: Likewise.
2048 * mi/mi-cmd-break.c: Likewise.
2049 * mi/mi-cmd-stack.c: Likewise.
2050 * mi/mi-interp.c: Likewise.
2051 * mi/mi-main.c: Likewise.
2052 * monitor.c: Likewise.
2053 * nto-procfs.c: Likewise.
2054 * objc-lang.c: Likewise.
2055 * p-valprint.c: Likewise.
2056 * parse.c: Likewise.
2057 * ppc-linux-tdep.c: Likewise.
2058 * printcmd.c: Likewise.
2059 * probe.c: Likewise.
2060 * python/py-auto-load.c: Likewise.
2061 * python/py-breakpoint.c: Likewise.
2062 * python/py-cmd.c: Likewise.
2063 * python/py-finishbreakpoint.c: Likewise.
2064 * python/py-frame.c: Likewise.
2065 * python/py-framefilter.c: Likewise.
2066 * python/py-function.c: Likewise.
2067 * python/py-gdb-readline.c: Likewise.
2068 * python/py-inferior.c: Likewise.
2069 * python/py-infthread.c: Likewise.
2070 * python/py-lazy-string.c: Likewise.
2071 * python/py-linetable.c: Likewise.
2072 * python/py-param.c: Likewise.
2073 * python/py-prettyprint.c: Likewise.
2074 * python/py-symbol.c: Likewise.
2075 * python/py-type.c: Likewise.
2076 * python/py-value.c: Likewise.
2077 * python/python-internal.h: Likewise.
2078 * python/python.c: Likewise.
2079 * record-btrace.c: Likewise.
2080 * record-full.c: Likewise.
2081 * regcache.c: Likewise.
2082 * remote-fileio.c: Likewise.
2083 * remote-mips.c: Likewise.
2084 * remote.c: Likewise.
2085 * rs6000-aix-tdep.c: Likewise.
2086 * rs6000-nat.c: Likewise.
2088 * solib-darwin.c: Likewise.
2089 * solib-dsbt.c: Likewise.
2090 * solib-frv.c: Likewise.
2091 * solib-ia64-hpux.c: Likewise.
2092 * solib-spu.c: Likewise.
2093 * solib-svr4.c: Likewise.
2094 * solib.c: Likewise.
2095 * spu-tdep.c: Likewise.
2096 * stack.c: Likewise.
2097 * stap-probe.c: Likewise.
2098 * symfile-mem.c: Likewise.
2099 * symmisc.c: Likewise.
2100 * target.c: Likewise.
2101 * thread.c: Likewise.
2103 * tracepoint.c: Likewise.
2104 * tui/tui-interp.c: Likewise.
2105 * typeprint.c: Likewise.
2106 * utils.c: Likewise.
2107 * valarith.c: Likewise.
2108 * valops.c: Likewise.
2109 * valprint.c: Likewise.
2110 * value.c: Likewise.
2111 * varobj.c: Likewise.
2112 * windows-nat.c: Likewise.
2113 * xml-support.c: Likewise.
2117 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2119 (extended_mips16_next_pc): Update accordingly.
2123 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2125 (micromips_instruction_is_compact_branch): Likewise.
2126 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2127 or a compact jump, reaching a jump delay slot, or seeing a
2128 second non-prologue instruction.
2129 (micromips_scan_prologue): Also terminate scanning upon seeing a
2130 compact branch or jump, or reaching a branch or jump delay slot.
2131 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2132 or jump delay slot, or seeing a second non-prologue instruction.
2133 (mips32_instruction_has_delay_slot): Retain instruction
2134 examination code only, update arguments accordingly and move
2135 instruction fetch pieces to...
2136 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2137 (micromips_instruction_has_delay_slot): Likewise and to...
2138 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2139 (mips16_instruction_has_delay_slot): Likewise and to...
2140 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2141 (mips_single_step_through_delay): Update accordingly.
2142 (mips_adjust_breakpoint_address): Likewise.
2146 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2147 !mustbe32 also return 1 for 32-bit instructions.
2148 (mips16_instruction_has_delay_slot): Likewise. Add an
2149 explanatory comment.
2153 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2158 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2160 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2161 for the breakpoint's address. Don't preinitialize `placed_size'.
2162 (insert_bp_location): Set `reqstd_address' rather than
2164 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2165 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2167 (bkpt_remove_location): Likewise.
2168 (deprecated_insert_raw_breakpoint): Likewise.
2169 (deprecated_remove_raw_breakpoint): Likewise.
2170 (find_single_step_breakpoint): Likewise.
2171 * mem-break.c (default_memory_insert_breakpoint): Use
2172 `reqstd_address' for the breakpoint's address. Don't set
2173 `placed_address' or `placed_size' if breakpoint contents couldn't
2174 have been determined.
2175 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2176 the breakpoint's address.
2177 (remote_insert_hw_breakpoint): Likewise. Don't set
2178 `placed_address' or `placed_size' if breakpoint couldn't have been
2180 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2181 `reqstd_address' for the breakpoint's address.
2182 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2183 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2184 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2185 * microblaze-linux-tdep.c
2186 (microblaze_linux_memory_remove_breakpoint): Likewise.
2187 * monitor.c (monitor_insert_breakpoint): Likewise.
2188 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2189 (procfs_insert_hw_breakpoint): Likewise.
2190 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2191 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2192 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2193 * remote-mips.c (mips_insert_breakpoint): Likewise.
2194 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2198 * valops.c (value_assign): Check for bit field assignments
2199 before calling architecture-specific register value
2200 conversion functions.
2204 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2208 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2209 threads_are_executing.
2210 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2212 * gdbthread.h (threads_are_executing): Declare.
2213 (handle_signal_stop) <random signals>: Don't print about the
2214 signal here if stopping.
2215 (end_stepping_range): Don't notify observers here.
2216 (normal_stop): Update the thread list. If stopped by a random
2217 signal or a stepping range ended, notify observers.
2218 * thread.c (threads_executing): New global.
2219 (init_thread_list): Clear 'threads_executing'.
2220 (set_executing): Set or clear 'threads_executing'.
2221 (threads_are_executing): New function.
2222 (update_threads_executing): New function.
2223 (update_thread_list): Use it.
2227 PR breakpoints/17431
2228 * breakpoint.c (update_breakpoints_after_exec): Don't create
2229 overlay, longjmp, std terminate nor exception breakpoints here.
2233 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2235 * inferior.c (find_inferior_for_program_space): Give preference to
2236 the current inferior.
2237 * inferior.h (find_inferior_for_program_space): Update comment.
2238 * progspace.c (switch_to_program_space_and_thread): Prefer the
2239 current inferior if it's bound to the program space requested. If
2240 the inferior found doesn't have a PID yet, don't bother looking up
2242 * progspace.h (switch_to_program_space_and_thread): Adjust
2244 * thread.c (any_thread_of_process, any_live_thread_of_process):
2245 Give preference to the current thread.
2249 * breakpoint.c (insert_bp_location): Error out if inserting a
2250 software breakpoint at a read-only address.
2251 * target.c (memory_xfer_check_region): New function, factored out
2253 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2255 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2256 against the memory region attributes.
2260 * NEWS: Announce new exit-code field in -list-thread-groups
2262 * inferior.c (exit_inferior_1): Don't clear exit code.
2263 (inferior_appeared): Clear exit code.
2264 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2269 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2270 GENERATED" along with emacs/vi read-only markers.
2271 * regformats/aarch64.dat: Regenerate.
2272 * regformats/arm-with-iwmmxt.dat: Regenerate.
2273 * regformats/arm-with-neon.dat: Regenerate.
2274 * regformats/arm-with-vfpv2.dat: Regenerate.
2275 * regformats/arm-with-vfpv3.dat: Regenerate.
2276 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2277 * regformats/i386/amd64-avx.dat: Regenerate.
2278 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2279 * regformats/i386/amd64-avx512.dat: Regenerate.
2280 * regformats/i386/amd64-linux.dat: Regenerate.
2281 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2282 * regformats/i386/amd64-mpx.dat: Regenerate.
2283 * regformats/i386/amd64.dat: Regenerate.
2284 * regformats/i386/i386-avx-linux.dat: Regenerate.
2285 * regformats/i386/i386-avx.dat: Regenerate.
2286 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2287 * regformats/i386/i386-avx512.dat: Regenerate.
2288 * regformats/i386/i386-linux.dat: Regenerate.
2289 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2290 * regformats/i386/i386-mmx.dat: Regenerate.
2291 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2292 * regformats/i386/i386-mpx.dat: Regenerate.
2293 * regformats/i386/i386.dat: Regenerate.
2294 * regformats/i386/x32-avx-linux.dat: Regenerate.
2295 * regformats/i386/x32-avx.dat: Regenerate.
2296 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2297 * regformats/i386/x32-avx512.dat: Regenerate.
2298 * regformats/i386/x32-linux.dat: Regenerate.
2299 * regformats/i386/x32.dat: Regenerate.
2300 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2301 * regformats/mips-dsp-linux.dat: Regenerate.
2302 * regformats/mips-linux.dat: Regenerate.
2303 * regformats/mips64-dsp-linux.dat: Regenerate.
2304 * regformats/mips64-linux.dat: Regenerate.
2305 * regformats/nios2-linux.dat: Regenerate.
2306 * regformats/rs6000/powerpc-32.dat: Regenerate.
2307 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2308 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2309 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2310 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2311 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2312 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2313 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2314 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2315 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2316 * regformats/s390-linux32.dat: Regenerate.
2317 * regformats/s390-linux32v1.dat: Regenerate.
2318 * regformats/s390-linux32v2.dat: Regenerate.
2319 * regformats/s390-linux64.dat: Regenerate.
2320 * regformats/s390-linux64v1.dat: Regenerate.
2321 * regformats/s390-linux64v2.dat: Regenerate.
2322 * regformats/s390-te-linux64.dat: Regenerate.
2323 * regformats/s390x-linux64.dat: Regenerate.
2324 * regformats/s390x-linux64v1.dat: Regenerate.
2325 * regformats/s390x-linux64v2.dat: Regenerate.
2326 * regformats/s390x-te-linux64.dat: Regenerate.
2327 * regformats/tic6x-c62x-linux.dat: Regenerate.
2328 * regformats/tic6x-c62x.dat: Regenerate.
2329 * regformats/tic6x-c64x-linux.dat: Regenerate.
2330 * regformats/tic6x-c64x.dat: Regenerate.
2331 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2332 * regformats/tic6x-c64xp.dat: Regenerate.
2336 * features/Makefile: Update comments.
2337 (XMLTOC): List all xml files we build C files from.
2338 (clean-cfiles): New rule.
2342 * features/i386/amd64-avx512-linux.c: Regenerate.
2343 * features/i386/amd64-avx512.c: Regenerate.
2344 * features/i386/x32-avx512-linux.c: Regenerate.
2345 * features/i386/x32-avx512.c: Regenerate.
2349 * features/Makefile (WHICH): Remove arm-with-m,
2350 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2354 * features/Makefile (clean): New rule.
2358 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2359 (zmm14h): Add missing end quotes.
2363 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2364 * features/aarch64.c: Regenerate.
2368 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2369 code so as to work with follow_fork_inferior.
2370 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2371 (inf_ttrace_create_inferior): Remove reference to
2372 inf_ttrace_vfork_ppid.
2373 (inf_ttrace_attach): Ditto.
2374 (inf_ttrace_detach): Ditto.
2375 (inf_ttrace_kill): Use current_inferior instead of
2376 inf_ttrace_vfork_ppid.
2377 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2378 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2379 inferior away from the parent.
2380 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2382 (follow_fork_inferior): New function.
2383 (follow_inferior_reset_breakpoints): Make function static.
2384 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2385 * linux-nat.c (linux_child_follow_fork): Move target-independent
2386 code to infrun.c:follow_fork_inferior.
2390 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2391 * gdbarch.c: Regenerate.
2392 * gdbarch.h: Likewise.
2393 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2394 gdbarch method 'regset_from_core_section'.
2395 (get_core_register_section): Remove handling for the case that
2396 regset == NULL and regset_from_core_section is defined.
2397 (get_core_registers): Drop check for deleted method.
2398 * procfs.c (procfs_do_thread_registers): Adjust comment.
2402 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2403 (linux_nat_make_corefile_notes): Remove.
2404 (linux_target_install_ops): Do not set target method
2405 'make_corefile_notes'.
2406 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2408 (linux_corefile_thread_callback): Instead of args->collect, call
2409 linux_collect_thread_registers.
2410 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2411 NULL unless there is a regset iterator.
2412 (linux_make_corefile_notes_1): Remove.
2413 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2414 by linux_make_corefile_notes.
2415 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2419 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2420 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2422 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2426 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2427 (xtensa_iterate_over_regset_sections): New.
2428 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2432 * vax-tdep.c (vax_regset_from_core_section): Remove.
2433 (vax_iterate_over_regset_sections): New.
2434 (vax_gdbarch_init): Adjust gdbarch initialization.
2438 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2439 (tilegx_regset_from_core_section): Remove.
2440 (tilegx_iterate_over_regset_sections): New.
2441 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2445 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2446 (sparc_iterate_over_regset_sections): New.
2447 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2448 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2450 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2451 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2452 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2453 target method 'make_corefile_notes'.
2457 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2458 'sizeof_gregset' and 'sizeof_fpregset'.
2459 * sh-tdep.c (sh_regset_from_core_section): Remove.
2460 (sh_iterate_over_regset_sections): New.
2461 (sh_gdbarch_init): Adjust gdbarch initialization.
2462 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2464 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2469 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2470 (score7_linux_iterate_over_regset_sections): New.
2471 (score_gdbarch_init): Adjust gdbarch initialization.
2475 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2477 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2478 method 'make_corefile_notes'.
2479 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2480 (ppcfbsd_regset_from_core_section): Remove.
2481 (ppcfbsd_iterate_over_regset_sections): New.
2482 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2484 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2485 (ppcnbsd_iterate_over_regset_sections): New.
2486 (ppcnbsd_init_abi): Adjust.
2487 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2488 (ppcobsd_iterate_over_regset_sections): New.
2489 (ppcobsd_init_abi): Adjust.
2490 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2491 (rs6000_aix_iterate_over_regset_sections): New.
2492 (rs6000_aix_init_osabi): Adjust.
2496 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2497 (nios2_regset_from_core_section): Remove.
2498 (nios2_iterate_over_regset_sections): New.
2499 (nios2_linux_init_abi): Adjust gdbarch initialization.
2503 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2504 (am33_iterate_over_regset_sections): New.
2505 (am33_linux_init_osabi): Adjust gdbarch initialization.
2509 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2510 (mips_linux_iterate_over_regset_sections): New.
2511 (mips_linux_init_abi): Adjust gdbarch initialization.
2512 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2513 (mips64obsd_iterate_over_regset_sections): New.
2514 (mips64obsd_init_abi): Adjust.
2515 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2516 (mipsnbsd_iterate_over_regset_sections): New.
2517 (mipsnbsd_init_abi): Adjust.
2521 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2522 (m88k_iterate_over_regset_sections): New.
2523 (m88k_gdbarch_init): Adjust gdbarch initialization.
2527 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2528 (ia64_linux_iterate_over_regset_sections): New.
2529 (ia64_linux_init_abi): Adjust gdbarch initialization.
2533 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2534 (m68kbsd_iterate_over_regset_sections): New.
2535 (m68kbsd_init_abi): Adjust gdbarch initialization.
2536 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2537 (m68k_linux_iterate_over_regset_sections): New.
2538 (m68k_linux_init_abi): Adjust gdbarch initialization.
2542 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2543 (m32r_linux_regset_from_core_section): Remove.
2544 (m32r_linux_iterate_over_regset_sections): New.
2545 (m32r_linux_init_abi): Adjust gdbarch initialization.
2549 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2550 (amd64obsd_iterate_over_regset_sections): New.
2551 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2552 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2554 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2555 regset_from_core_section initialization.
2556 * i386-tdep.c (i386_regset_from_core_section): Remove.
2557 (i386_iterate_over_regset_sections): New.
2558 (i386_gdbarch_init): Adjust gdbarch initialization.
2559 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2560 (i386_iterate_over_regset_sections): New prototype.
2561 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2563 (i386obsd_aout_iterate_over_regset_sections): New.
2564 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2565 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2567 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2568 (amd64fbsd_init_abi): Call fbsd_init_abi.
2569 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2570 (i386fbsd4_init_abi): Call fbsd_init_abi.
2571 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2572 target method 'make_corefile_notes'.
2573 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2577 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2578 (hppa_hpux_iterate_over_regset_sections): New.
2579 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2580 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2581 (hppa_linux_iterate_over_regset_sections): New.
2582 (hppa_linux_init_abi): Adjust.
2583 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2584 (hppanbsd_iterate_over_regset_sections): New.
2585 (hppanbsd_init_abi): Adjust.
2586 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2587 (hppaobsd_iterate_over_regset_sections): New.
2588 (hppaobsd_init_abi): Adjust.
2592 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2593 (frv_linux_iterate_over_regset_sections): New.
2594 (frv_linux_init_abi): Adjust gdbarch initialization.
2598 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2599 (armbsd_iterate_over_regset_sections): New prototype.
2600 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2601 (armbsd_iterate_over_regset_sections): New.
2602 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2607 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2608 (alpha_linux_iterate_over_regset_sections): New.
2609 (alpha_linux_init_abi): Adjust gdbarch initialization.
2610 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2612 (alphanbsd_iterate_over_regset_sections): New prototype.
2616 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2618 (aarch64_linux_iterate_over_regset_sections): New.
2619 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2623 * fbsd-tdep.c: New file.
2624 * fbsd-tdep.h: New file.
2625 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2626 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2627 (ALLDEPFILES): Add fbsd-tdep.c.
2631 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2633 * gdbarch.h: Regenerate.
2634 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2636 (get_core_register_section): Add parameter 'regset' and use it, if
2637 set. Add parameter 'min_size' and verify the bfd section size
2639 (get_core_registers_cb): Add parameter 'regset' and pass it to
2640 get_core_register section. For the "standard" register sections
2641 ".reg" and ".reg2", set an appropriate default for human_name.
2642 (get_core_registers): Don't abort when the gdbarch has an iterator
2643 but no regset_from_core_section. Add NULL/0 for parameters
2644 'regset'/'min_size' in calls to get_core_register_section.
2645 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2646 'regset' and use it instead of calling the
2647 regset_from_core_section gdbarch method.
2648 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2649 * i386-tdep.c (i386_supply_xstateregset)
2650 (i386_collect_xstateregset, i386_xstateregset): Moved to
2652 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2654 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2655 core file support only if the regset iterator hasn't been set.
2656 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2657 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2658 Moved from i386-tdep.c and renamed to *_linux*.
2659 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2660 each callback invocation. Allow any .reg-xstate size when reading
2662 * amd64-tdep.c (amd64_supply_xstateregset)
2663 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2665 (amd64_regset_from_core_section): Remove.
2666 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2667 install an amd64-specific regset_from_core_section gdbarch method.
2668 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2669 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2670 Moved from amd64-tdep.c and renamed to *_linux*.
2671 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2672 to each callback invocation. Allow any .reg-xstate size when
2673 reading from a core file.
2674 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2675 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2676 each callback invocation.
2677 (arm_linux_init_abi): No longer set the regset_from_core_section
2679 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2680 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2681 each callback invocation.
2682 (ppc_linux_init_abi): No longer set the regset_from_core_section
2684 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2685 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2686 (s390_regset_from_core_section): Remove.
2687 (s390_iterate_over_regset_sections): Add regset parameter to each
2688 callback invocation.
2689 (s390_gdbarch_init): No longer set the regset_from_core_section
2690 gdbarch method. Drop initialization of deleted tdep fields.
2694 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2695 (amd64_linux_iterate_over_regset_sections): New.
2696 (amd64_linux_init_abi_common): Don't install the regset section
2697 list, but the new iterator in gdbarch.
2698 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2699 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2700 (arm_linux_iterate_over_regset_sections): ...here. New function.
2701 (arm_linux_init_abi): Set iterator instead of section list.
2702 * corelow.c (get_core_registers_cb): New function, logic moved
2704 (get_core_registers): ...loop body here. Use new iterator method
2705 instead of walking through the regset section list.
2706 * gdbarch.sh: Remove 'core_regset_sections'. New method
2707 'iterate_over_regset_sections'. New typedef
2708 'iterate_over_regset_sections_cb'.
2709 * gdbarch.c: Regenerate.
2710 * gdbarch.h: Likewise.
2711 * i386-linux-tdep.c (i386_linux_regset_sections)
2712 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2714 (i386_linux_iterate_over_regset_sections): New.
2715 (i386_linux_init_abi): Don't choose a regset section list, but
2716 install new iterator in gdbarch.
2717 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2718 (linux_collect_regset_section_cb): New function, logic moved
2720 (linux_collect_thread_registers): ...loop body here. Use iterator
2721 method instead of walking through list.
2722 (linux_make_corefile_notes_1): Check for presence of iterator
2723 method instead of regset section list.
2724 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2725 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2726 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2727 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2728 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2729 (ppc_linux_init_abi): Don't choose from above regset section
2730 lists, but install new iterator in gdbarch.
2731 * regset.h (struct core_regset_section): Remove.
2732 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2733 have_linux_v1, have_linux_v2, and have_tdb.
2734 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2735 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2736 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2737 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2738 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2739 (s390_iterate_over_regset_sections): ...here. New function. Use
2741 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2742 regset section lists, but install new iterator.
2746 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2750 * progspace.c (print_program_space): Don't prune program spaces
2751 before printing them.
2755 * infrun.c (user_visible_resume_ptid): Don't check
2756 singlestep_breakpoints_inserted_p.
2760 * breakpoint.c (should_be_inserted): Add debug output.
2764 * infrun.c (stepping_past_instruction_at)
2765 (clear_exit_convenience_vars): Point at infrun.h instead of
2767 (handle_signal_stop): Fix typo.
2771 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2776 * target.c (target_stop): Updated comment.
2780 * target/target.h (target_stop_ptid): Renamed as...
2781 (target_stop_and_wait): New function. Updated comment.
2783 (target_continue_ptid): Renamed as...
2784 (target_continue_no_signal): New function. Updated comment.
2789 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2791 * breakpoint.c (enum ugll_insert_mode): New enum.
2792 (always_inserted_mode): Now a plain boolean.
2793 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2794 (breakpoints_always_inserted_mode): Delete.
2795 (breakpoints_should_be_inserted_now): New function.
2796 (insert_breakpoints): Pass UGLL_INSERT to
2797 update_global_location_list instead of calling
2798 insert_breakpoint_locations manually.
2799 (create_solib_event_breakpoint_1): New, factored out from ...
2800 (create_solib_event_breakpoint): ... this.
2801 (create_and_insert_solib_event_breakpoint): Use
2802 create_solib_event_breakpoint_1 instead of calling
2803 insert_breakpoint_locations manually.
2804 (update_global_location_list): Change parameter type from boolean
2805 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2806 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2807 (update_global_location_list_nothrow): Change parameter type from
2808 boolean to enum ugll_insert_mode.
2809 (_initialize_breakpoint): "breakpoint always-inserted" option is
2810 now a boolean command. Update help text.
2811 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2812 (breakpoints_should_be_inserted_now): New declaration.
2813 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2814 Remove breakpoints_always_inserted_mode check.
2815 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2816 * remote.c (remote_start_remote): Likewise.
2820 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2821 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2822 Instead, pass UGLL_INSERT to update_global_location_list.
2823 (update_global_location_list): Change parameter type from boolean
2824 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2825 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2826 (create_solib_event_breakpoint_1): New, factored out from ...
2827 (create_solib_event_breakpoint): ... this.
2828 (create_and_insert_solib_event_breakpoint): Use
2829 create_solib_event_breakpoint_1 instead of calling
2830 insert_breakpoint_locations manually.
2831 (update_global_location_list): Handle UGLL_INSERT.
2835 * breakpoint.c (enum ugll_insert_mode): New enum.
2836 (update_global_location_list)
2837 (update_global_location_list_nothrow): Change parameter type from
2838 boolean to enum ugll_insert_mode. All callers adjusted.
2842 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2843 SystemTap support in GDB.
2847 * linux-nat.c (linux_handle_extended_wait): Call
2848 linux_ptrace_get_extended_event.
2849 (wait_lwp): Call linux_is_extended_waitstatus.
2850 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2851 and linux_is_extended_waitstatus.
2852 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2853 linux_ptrace_get_extended_event.
2854 (linux_ptrace_get_extended_event): New function.
2855 (linux_is_extended_waitstatus): New function.
2856 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2857 (linux_is_extended_waitstatus): New declarations.
2861 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2862 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2863 comments. Callers update.
2864 (dwarf_decode_lines): Likewise.
2865 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2866 comments. Skip the line table if 'lowpc' is greater than
2867 'address'. Don't check
2868 dwarf2_per_objfile->has_section_at_zero.
2872 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2873 * python/py-symtab.c (stpy_get_producer): New function.
2874 (symtab_object_getset): Add "producer" attribute.
2879 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2880 (do_captured_read_memory_integer): Remove.
2881 (safe_read_memory_integer): Use target_read_memory directly instead
2882 of catching errors in do_captured_read_memory_integer.
2886 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2891 * objc-lang.c (find_implementation_from_class): Remove dead code.
2896 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2897 "fprintf_unfiltered (gdb_stdlog...)".
2901 PR breakpoints/12526
2902 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2904 * breakpoint.c (watch_command_1): Use these fields to retain
2905 bitfield information.
2906 (extract_bitfield_from_watchpoint_value): New function.
2907 (watchpoint_check): Use it.
2908 (update_watchpoint): Use it. Optimize the address and length of a
2909 HW watchpoint pointing to a bitfield.
2910 * value.h (unpack_value_bitfield): New prototype.
2911 * value.c (unpack_value_bitfield): Make extern.
2915 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2917 * gnu-nat.c (inf_threads): New function.
2918 * gnu-nat.h (inf_threads_ftype): New typedef.
2919 (inf_threads): New declaration.
2920 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2921 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2922 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2923 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2924 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2925 (i386_gnu_dr_get_control): New functions.
2926 (reg_addr): New structure.
2927 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2928 i386 debugging register hooks.
2929 * NEWS: Mention this.
2933 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2934 vector data transfer instructions.
2935 (arm_record_coproc_data_proc): Updated.
2939 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2940 arm_record_exreg_ld_st_insn.
2941 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2946 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2947 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2948 processing instructions.
2952 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2953 for advance SIMD struct ld/st insn.
2954 (thumb2_record_decode_insn_handler): Replace stub handler with
2955 thumb2_record_asimd_struct_ld_st.
2959 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2960 for asimd, vfp and coprocessor insns.
2961 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2962 and coprocessor insns.
2963 (thumb2_record_coproc_insn): New function.
2964 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2966 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2971 * NEWS: Mention new "queue-signal" command.
2972 * infcmd.c (queue_signal_command): New function.
2973 (_initialize_infcmd): Add new queue-signal command.
2977 * linux-nat.c (wait_lwp): Add debugging printf.
2978 (linux_nat_wait_1): Ditto.
2982 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2983 (create_and_insert_solib_event_breakpoint): New functions.
2984 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2985 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2986 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2987 (remove_dbx_link_breakpoint): Delete function.
2988 (insert_dbx_link_bpt_in_file): Use
2989 create_and_insert_solib_event_breakpoint instead of
2990 deprecated_insert_raw_breakpoint.
2991 (procfs_wait): Don't check whether we hit __dbx_link here.
2992 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2994 * solib-irix.c (base_breakpoint): Delete global.
2995 (disable_break): Delete function.
2996 (enable_break): Use create_solib_event_breakpoint
2997 instead of deprecated_insert_raw_breakpoint.
2998 (irix_solib_handle_event): New function.
2999 (irix_solib_create_inferior_hook): Don't run the target or disable
3000 the mapping-complete breakpoint here.
3001 (_initialize_irix_solib): Install irix_solib_handle_event as
3002 so_ops->handle_event hook.
3008 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
3009 instead of read_memory_unsigned_integer.
3013 * nat/linux-waitpid.c: Include common-defs.h.
3014 [GDBSERVER]: Add FIXME comment.
3015 [!GDBSERVER]: Don't include defs.h or signal.h.
3016 (linux_debug) [!GDBSERVER]: Remove empty block.
3020 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
3021 Don't include defs.h or server.h.
3025 * nat/linux-btrace.c: Include common-defs.h.
3026 Don't include defs.h, server.h or gdbthread.h.
3027 * nat/linux-btrace.h (struct target_ops): New forward declaration.
3031 * common/agent.c: Include common-defs.h.
3032 Don't include defs.h or server.h.
3033 * common/buffer.c: Likewise.
3034 * common/common-debug.c: Likewise.
3035 * common/common-utils.c: Likewise.
3036 * common/errors.c: Likewise.
3037 * common/filestuff.c: Likewise.
3038 * common/format.c: Likewise.
3039 * common/gdb_vecs.c: Likewise.
3040 * common/print-utils.c: Likewise.
3041 * common/ptid.c: Likewise.
3042 * common/rsp-low.c: Likewise.
3043 * common/signals.c: Likewise.
3044 * common/vec.c: Likewise.
3045 * common/xml-utils.c: Likewise.
3046 * nat/linux-osdata.c: Likewise.
3047 * nat/linux-procfs.c: Likewise.
3048 * nat/linux-ptrace.c: Likewise.
3049 * nat/mips-linux-watch.c: Likewise.
3050 * target/waitstatus.c: Likewise.
3055 * common/common-regcache.h: New file.
3056 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3057 * regcache.h: Include common-regcache.h.
3058 (regcache_read_pc): Don't declare.
3059 * regcache.c (get_thread_regcache_for_ptid): New function.
3060 * nat/linux-btrace.c: Don't include regcache.h.
3061 Include common-regcache.h.
3062 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3066 * regcache.h (struct regset): Declare.
3071 * main.c: Include "infrun.h".
3072 (catch_command_errors, catch_command_errors_const): Wait for the
3073 foreground command to complete.
3074 * top.c (maybe_wait_sync_command_done): New function, factored out
3076 (maybe_wait_sync_command_done): ... here.
3077 * top.h (maybe_wait_sync_command_done): New declaration.
3082 * common/symbol.h: New file.
3083 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3084 * minsyms.c (find_minimal_symbol_address): New function.
3085 * common/agent.c: Include common/symbol.h.
3086 [!GDBSERVER]: Don't include objfiles.h.
3087 (agent_look_up_symbols): Use find_minimal_symbol_address.
3091 * target/target.h (target_stop_ptid, target_continue_ptid):
3093 * target.c (target_stop_ptid, target_continue_ptid): New
3095 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3096 (agent_run_command): Always use target_stop_ptid and
3097 target_continue_ptid.
3102 * target/target.h: New file.
3103 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3104 * target.h: Include target/target.h.
3105 (target_read_memory, target_write_memory): Don't declare.
3106 * target.c (target_read_uint32): New function.
3107 * common/agent.c: Include target/target.h.
3108 [!GDBSERVER]: Don't include target.h.
3109 (helper_thread_id): Type changed to uint32_t.
3110 (agent_get_helper_thread_id): Use target_read_uint32.
3111 (agent_run_command): Always use target_read_memory and
3112 target_write_memory.
3113 (agent_capability): Type changed to uint32_t.
3114 (agent_capability_check): Use target_read_uint32.
3118 * common/common-debug.h (show_debug_regs): Declare.
3119 * common/common-debug.c (show_debug_regs): Define.
3120 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3121 all uses with show_debug_regs. Replace all uses that considered
3122 debug_hw_points as a multi-value integer with straight boolean
3124 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3125 with show_debug_regs.
3126 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3127 all uses with show_debug_regs.
3128 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3129 uses with show_debug_regs.
3133 * findvar.c (address_from_register): Handle targets requiring
3134 a special conversion routine even for plain pointer types.
3138 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3139 (store_register): Do not call exec_one_dummy_insn.
3143 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3144 dereference it first. Use value_enclosing_type instead of
3146 (ada_array_length): Likewise.
3150 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3151 Adjust function implementation and documentation accordingly.
3152 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3153 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3154 Update call to ada_value_ptr_subscript.
3158 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3159 instead of VAL's type.
3163 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3168 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3169 last parameter to pkg-config, not first.
3170 * configure.ac: Pass --with-guile provided pkg-config path to
3171 GDB_GUILE_PROGRAM_NAMES.
3172 * configure: Regenerate.
3176 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3181 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3182 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3183 the list of sections determining GDB_OSABI_IRIX.
3187 * MAINTAINERS (Write After Approval): Add "James Hogan".
3191 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3195 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3200 * guile.c: #include <signal.h>.
3201 (_initialize_guile): Block SIGCHLD while initializing Guile.
3203 Replaces the following, which is reverted.
3208 * configure.ac: Add check for header gc/gc.h.
3209 Add check for function setenv.
3210 * configure: Regenerate.
3211 * config.in: Regenerate.
3212 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3216 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3217 with named constant. Fix style of pointer comparison.
3218 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3223 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3224 decide whether we display the command on "show user".
3225 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3226 printing command name.
3227 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3228 * cli/cli-decode.c (cli_user_command_p): Create helper function
3229 to verify whether cmd_list_element is a user-defined command.
3234 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3235 Fix goto out of TRY_CATCH.
3241 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3242 $_any_caller_matches.
3243 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3244 * python/lib/gdb/function/caller_is.py: New file.
3248 * infcmd.c (program_info): Fix typo.
3253 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3254 'number'. New variable 'has_digit'. Rewrite code to deal with
3255 subexpressions on SDT probes.
3259 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3260 the input is only one character long.
3265 * f-valprint.c (f_val_print): Specify the correct print option to
3266 use when printing integer values.
3270 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3271 Remove code to cope with LWPs wrapped as PIDs.
3272 Add assertions to ensure no wrapped LWPs are passed.
3276 * value.c (value_ranges_copy_adjusted): New function, factored out
3278 (value_contents_copy_raw): ... here.
3279 (unpack_value_bits_as_long_1): Rename back to ...
3280 (unpack_bits_as_long): ... this. Remove 'original_value' and
3281 'result' parameters. Change return type to LONGEST.
3282 (unpack_value_bits_as_long): Delete.
3283 (unpack_value_field_as_long_1): Delete.
3284 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3285 (unpack_value_bitfield): New function.
3286 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3287 (value_fetch_lazy): Use unpack_value_bitfield.
3288 * value.h (unpack_value_bits_as_long): Delete declaration.
3292 * python/py-frame.c (frapy_read_register): New function.
3296 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3297 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3302 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3304 (add_cmd): Set "completer_handle_brkchars" to NULL.
3305 * cli/cli-decode.h (struct cmd_list_element)
3306 <completer_handle_brkchars>: New field.
3307 * command.h (completer_ftype_void): New typedef.
3308 (set_cmd_completer_handle_brkchars): New prototype.
3309 * completer.c (set_gdb_completion_word_break_characters): New
3311 (complete_line_internal): Call "completer_handle_brkchars"
3312 callback from command.
3313 * completer.h: Include "command.h".
3314 (set_gdb_completion_word_break_characters): New prototype.
3315 * python/py-cmd.c (cmdpy_completer_helper): New function.
3316 (cmdpy_completer_handle_brkchars): New function.
3317 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3318 (cmdpy_init): Set completer_handle_brkchars to
3319 cmdpy_completer_handle_brkchars.
3323 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3324 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3325 Loop conditions changed to equivalent form.
3326 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3327 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3328 ALL_DEBUG_ADDRESS_REGISTERS.
3332 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3337 * typeprint.c (find_global_typedef): Fix comment.
3341 * i386-nat.h: Renamed as...
3342 * x86-nat.h: New file. All type, function and variable name
3343 prefixes changed from "i386_" to "x86_". All references updated.
3344 * i386-nat.c: Renamed as...
3345 * x86-nat.c: New file. All type, function and variable name
3346 prefixes changed from "i386_" to "x86_". All references updated.
3347 * common/i386-xstate.h: Renamed as...
3348 * common/x86-xstate.h: New file. All type, function and variable
3349 name prefixes changed from "i386_" to "x86_". All references
3351 * nat/i386-cpuid.h: Renamed as...
3352 * nat/x86-cpuid.h: New file. All type, function and variable name
3353 prefixes changed from "i386_" to "x86_". All references updated.
3354 * nat/i386-gcc-cpuid.h: Renamed as...
3355 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3356 name prefixes changed from "i386_" to "x86_". All references
3358 * nat/i386-dregs.h: Renamed as...
3359 * nat/x86-dregs.h: New file. All type, function and variable name
3360 prefixes changed from "i386_" to "x86_". All references updated.
3361 * nat/i386-dregs.c: Renamed as...
3362 * nat/x86-dregs.c: New file. All type, function and variable name
3363 prefixes changed from "i386_" to "x86_". All references updated.
3367 * varobj.c (_initialize_varobj): Move to the end of file.
3371 * common/common-exceptions.h: New file.
3372 * common/common-exceptions.c: Likewise.
3373 * Makefile.in (SFILES): Add common/common-exceptions.c.
3374 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3375 (COMMON_OBS): Add common-exceptions.o.
3376 (common-exceptions.o): New rule.
3377 * exceptions.h (common-exceptions.h): Include.
3378 (gdb_setjmp.h): Do not include.
3379 (return_reason): Moved to common-exceptions.h.
3380 (enum return_reason): Likewise.
3381 (RETURN_MASK): Likewise.
3382 (typedef return_mask): Likewise.
3383 (enum errors): Likewise.
3384 (struct gdb_exception): Likewise.
3385 (exceptions_state_mc_init): Likewise.
3386 (exceptions_state_mc_action_iter): Likewise.
3387 (exceptions_state_mc_action_iter_1): Likewise.
3388 (TRY_CATCH): Likewise.
3389 (throw_exception): Likewise.
3390 (throw_verror): Likewise.
3391 (throw_vquit): Likewise.
3392 (throw_error): Likewise.
3393 (throw_quit): Likewise.
3394 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3395 (enum catcher_action): Likewise.
3396 (struct catcher): Likewise.
3397 (current_catcher): Likewise.
3398 (catcher_list_size): Likewise.
3399 (exceptions_state_mc_init): Likewise.
3400 (catcher_pop): Likewise.
3401 (exceptions_state_mc): Likewise.
3402 (exceptions_state_mc_action_iter): Likewise.
3403 (exceptions_state_mc_action_iter_1): Likewise.
3404 (throw_exception): Likewise.
3405 (exception_messages): Likewise.
3406 (exception_messages_size): Likewise.
3407 (throw_it): Likewise.
3408 (throw_verror): Likewise.
3409 (throw_vquit): Likewise.
3410 (throw_error): Likewise.
3411 (throw_quit): Likewise.
3412 (prepare_to_throw_exception): New function.
3416 * common/gdb_setjmp.h: New file.
3417 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3418 * configure.ac: Move sigsetjmp check...
3419 * common/common.m4: ...here.
3420 * configure: Regenerate.
3421 * cp-support.c (SIGJMP_BUF): Delete.
3422 (SIGSETJMP): Likewise.
3423 (SIGLONGJMP): Likewise.
3424 * exceptions.h (gdb_setjmp.h): Include.
3425 (setjmp.h): Do not include.
3426 (EXCEPTIONS_SIGJMP_BUF): Delete.
3427 (EXCEPTIONS_SIGSETJMP): Likewise.
3428 (EXCEPTIONS_SIGLONGJMP): Likewise.
3429 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3431 * exceptions.c: Likewise.
3435 * cleanups.h: Moved to...
3436 * common/cleanups.h: New file.
3437 * cleanups.c: Moved to...
3438 * common/cleanups.c: New file. Include common-defs.h and
3439 cleanups.h. Do not include defs.h.
3440 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3441 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3442 (cleanups.o): New rule.
3446 * common/errors.h (internal_warning): New declaration.
3447 (internal_vwarning): Likewise.
3448 * common/errors.c (internal_warning): New function.
3449 * utils.h (internal_warning): Don't declare.
3450 (internal_vwarning): Likewise.
3451 * utils.c (internal_warning): Removed.
3455 * main.c (captured_main): Use warning during startup.
3456 Prefix startup warning messages with command name.
3460 * main.c (captured_main): Handle usage errors with error.
3464 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3465 exit pair with a call to error. Wrap the message with _().
3469 * main.c (captured_main): Replace a fprintf/exit
3470 pair with a call to error. Wrap the message with _().
3474 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3475 pairs with calls to error. Wrap the message with _().
3479 * utils.c (vwarning): Protect calls to target_terminal_ours
3484 * exceptions.c (print_flush): Protect calls to
3485 target_terminal_ours and wrap_here.
3489 * utils.h (filtered_printing_initialized): New declaration.
3490 * utils.c (abort_with_message): New function.
3491 (internal_vproblem): Use abort_with_message for first level
3492 recursive internal problems, and if gdb_stderr is not set up.
3493 Protect calls to target_terminal_ours, begin_line and query.
3497 * symtab.c (in_prologue): Move definition to better spot.
3498 (skip_prologue_using_sal): Ditto.
3502 * symtab.c (find_function_start_sal): Move definition to better spot.
3506 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3507 found_stack_adjust in forward scan. Remove condition check
3508 on found_stack_adjust which is always true. Indent the code.
3512 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3513 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3514 (dwarf_decode_lines): Remove argument
3515 want_line_info. Remove condition check on want_line_info.
3520 * dwarf2read.c (dwarf_record_line): Fix typo.
3524 * target.h (struct target_ops::to_terminal_save_ours): Remove
3526 (target_terminal_save_ours): Remove macro.
3527 * target-delegates.c: Regenerate.
3528 * inf-child.c (inf_child_target): Don't set the nonexistent
3529 field to_terminal_save_ours.
3530 * inferior.h (child_terminal_save_ours): Remove declaration.
3531 * terminal.h (gdb_save_tty_state): New declaration.
3532 * inflow.c (child_terminal_save_ours): Rename to ...
3533 (gdb_save_tty_state): ... this.
3534 * tui/tui.c: Include terminal.h.
3535 (tui_enable): Use gdb_save_tty_state instead of
3536 target_terminal_save_ours.
3537 (tui_disable): Likewise.
3541 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3542 Pass NULL instead of 0 for context pointer.
3546 * dwarf2read.c: Fix grammatical error.
3550 * dwarf2read.c (scan_partial_symbols): Update comments.
3551 Rename argument 'need_pc' with 'set_addrmap'.
3552 (add_partial_namespace): Rename argument 'need_pc' with
3554 (add_partial_module): Likewise.
3555 (add_partial_subprogram): Likewise. Update comments.
3556 (dwarf2_name): Fix typo.
3561 * dwarf2read.c (dwarf_record_line_p): New function.
3562 (dwarf_decode_lines_1): Ignore subsequent line number entries
3563 for the same line if any entry had a non-zero discriminator.
3567 * buildsym.h (record_line_ftype): New typedef.
3568 (record_line): Use it.
3569 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3570 (dwarf_decode_lines_1): Call them.
3574 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3575 (ctf_end): Remove code.
3579 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3580 (linux_make_corefile_notes): call update_thread_list, protected against
3585 * infcmd.c (attach_command): Remove comment.
3589 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3590 unsigned LONGEST to ULONGEST.
3594 * Makefile.in (check-read1): New rule.
3598 * value.c (value_from_contents_and_address): Strip resolved_type's
3599 typedef layers before checking its TYPE_DATA_LOCATION.
3603 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3607 * amd64-tdep.c (amd64_classify): Add a blank line after the
3608 example. Move "*/" to a new line.
3609 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3610 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3611 * dwarf2read.c (psymtab_include_file_name): Likewise.
3618 * ada-lang.c (coerce_unspec_val_to_type): Use
3619 value_contents_copy_raw.
3620 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3621 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3622 * cp-valprint.c (cp_print_value_fields): Let the common printing
3623 code handle optimized out values.
3624 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3625 * d-valprint.c (dynamic_array_type): Use
3626 value_bits_any_optimized_out.
3627 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3628 check_any_valid fields.
3629 (check_pieced_value_bits): Delete and inline ...
3630 (check_pieced_synthetic_pointer): ... here.
3631 (check_pieced_value_validity): Delete.
3632 (check_pieced_value_invalid): Delete.
3633 (pieced_value_funcs): Remove check_validity and check_any_valid
3635 (read_pieced_value): Use mark_value_bits_optimized_out.
3636 (write_pieced_value): Switch to use
3637 mark_value_bytes_optimized_out.
3638 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3639 of assuming the whole value is optimized out.
3640 * findvar.c (read_frame_register_value): Remove special handling
3641 of optimized out registers.
3642 (value_from_register): Use mark_value_bytes_optimized_out.
3643 * frame-unwind.c (frame_unwind_got_optimized): Use
3644 mark_value_bytes_optimized_out.
3645 * jv-valprint.c (java_value_print): Adjust.
3646 (java_print_value_fields): Let the common printing code handle
3647 optimized out values.
3648 * mips-tdep.c (mips_print_register): Remove special handling of
3649 optimized out registers.
3650 * opencl-lang.c (lval_func_check_validity): Delete.
3651 (lval_func_check_any_valid): Delete.
3652 (opencl_value_funcs): Remove check_validity and check_any_valid
3654 * p-valprint.c (pascal_object_print_value_fields): Let the common
3655 printing code handle optimized out values.
3656 * stack.c (read_frame_arg): Remove special handling of optimized
3657 out values. Fetch both VAL and ENTRYVAL before comparing
3658 contents. Adjust to value_available_contents_eq rename.
3659 * valprint.c (valprint_check_validity)
3660 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3661 (val_print_array_elements): Adjust.
3662 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3663 (value_bits_any_optimized_out): New function.
3664 (value_entirely_covered_by_range_vector): New function, factored
3665 out from value_entirely_unavailable.
3666 (value_entirely_unavailable): Reimplement.
3667 (value_entirely_optimized_out): New function.
3668 (insert_into_bit_range_vector): New function, factored out from
3669 mark_value_bits_unavailable.
3670 (mark_value_bits_unavailable): Reimplement.
3671 (struct ranges_and_idx): New struct.
3672 (find_first_range_overlap_and_match): New function, factored out
3673 from value_available_contents_bits_eq.
3674 (value_available_contents_bits_eq): Rename to ...
3675 (value_contents_bits_eq): ... this. Check both unavailable
3676 contents and optimized out contents.
3677 (value_available_contents_eq): Rename to ...
3678 (value_contents_eq): ... this.
3679 (allocate_value_lazy): Remove reference to the old optimized_out
3681 (allocate_optimized_out_value): Use
3682 mark_value_bytes_optimized_out.
3683 (require_not_optimized_out): Adjust to check whether the
3684 optimized_out vec is empty.
3685 (ranges_copy_adjusted): New function, factored out from
3686 value_contents_copy_raw.
3687 (value_contents_copy_raw): Also copy the optimized out ranges.
3688 Assert the destination ranges aren't optimized out.
3689 (value_contents_copy): Update comment, remove call to
3690 require_not_optimized_out.
3691 (value_contents_equal): Adjust to check whether the optimized_out
3693 (set_value_optimized_out, value_optimized_out_const): Delete.
3694 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3696 (value_entirely_optimized_out, value_bits_valid): Delete.
3697 (value_copy): Take a VEC copy of the 'optimized_out' field.
3698 (value_primitive_field): Remove special handling of optimized out.
3699 (value_fetch_lazy): Assert that lazy values have no unavailable
3700 regions. Use value_bits_any_optimized_out. Remove some special
3701 handling for optimized out values.
3702 * value.h: Add intro comment about <optimized out> and
3704 (struct lval_funcs): Remove check_validity and check_any_valid
3706 (set_value_optimized_out, value_optimized_out_const): Remove.
3707 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3709 (value_bits_any_optimized_out): New declaration.
3710 (value_bits_valid): Delete declaration.
3711 (value_available_contents_eq): Rename to ...
3712 (value_contents_eq): ... this, and extend comments.
3716 Fix -fsanitize=address on unreadable inferior strings.
3717 * valprint.c (val_print_string): Fix access before BUFFER.
3721 * target.c (target_struct_size): Remove.
3722 (target_struct_allocsize): Remove.
3723 (DEFAULT_ALLOCSIZE): Remove.
3724 (target_ops_p): New typedef.
3725 (DEF_VEC_P (target_ops_p)): New vector type.
3726 (target_structs): Change type to VEC (target_ops_p).
3727 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3728 (find_default_run_target): Rewrite for loop following changes to
3733 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3734 Adjust code accordingly. Adjust function description comment.
3738 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3743 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3744 * config.in: Regenerate.
3745 * configure: Regenerate.
3750 * common/common-debug.h: New file.
3751 * common/common-debug.c: Likewise.
3752 * debug.c: Likewise.
3753 * Makefile.in (SFILES): Add common/common-debug.c.
3754 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3755 (COMMON_OBS): Add common-debug.o and debug.o.
3756 (common-debug.o): New rule.
3757 * common/common-defs.h: Include common-debug.h.
3758 * common/agent.c (debug_agent_printf): New function.
3759 (DEBUG_AGENT): Redefine.
3760 * nat/i386-dregs.c (debug_printf): Undefine.
3764 * common/common-defs.h: Include print-utils.h.
3765 * utils.h: Do not include print-utils.h.
3770 * common/common-types.h: New file.
3771 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3772 * common/common-defs.h: Include common-types.h.
3773 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3779 * common/errors.h: New file.
3780 * common/errors.c: Likewise.
3781 * Makefile.in (SFILES): Add common/errors.c.
3782 (HFILES_NO_SRCDIR): Add common/errors.h.
3783 (COMMON_OBS): Add errors.o.
3784 (errors.o): New rule.
3785 * common/common-defs.h: Include errors.h.
3786 * utils.h (perror_with_name, error, verror, warning, vwarning):
3788 * common/common-utils.h: (malloc_failure, internal_error):
3793 * utils.c (internal_vproblem): Always print the message.
3797 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3801 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3802 Return 0 if TYPE is dynamic.
3803 (print_range): Add handling of dynamic ranges.
3808 * gdbtypes.h (struct main_type): Add field "data_location".
3809 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3810 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3811 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3812 a dynamic data location.
3813 (resolve_dynamic_type): Add DW_AT_data_location handling.
3814 (copy_recursive, copy_type): Copy the data_location information
3816 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3817 * value.c (value_from_contents_and_address): Add
3818 DW_AT_data_location handling.
3823 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3824 field "get_object_address".
3825 * dwarf2expr.c (execute_stack_op): Add handling for
3826 DW_OP_push_object_address.
3827 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3828 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3829 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3830 (dwarf_expr_get_obj_addr): New function.
3831 (dwarf_expr_ctx_funcs): Add get_object_address field.
3832 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3833 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3834 (dwarf2_evaluate_property): Add parameter "address". Use it.
3835 (needs_get_obj_addr): New function.
3836 (needs_frame_ctx_funcs): Add get_object_address field.
3837 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3838 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3839 (resolve_dynamic_array): Likewise.
3843 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3844 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3845 fixed value for records and unions for which some GNAT encodings
3850 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3851 rewrite to avoid "else if" and "else" constructs. Should be
3852 a no-op in practice.
3856 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3862 * eval.c: Update all calls to find_overload_match.
3863 * valarith.c: Likewise.
3864 (value_user_defined_cpp_op, value_user_defined_op): New
3865 argument NOSIDE. Update all callers.
3866 * valops.c (find_overload_match): New argument NOSIDE.
3867 * value.h (find_overload_match): Update signature.
3871 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3872 'items' methods instead of 'iteritems' method on dictionaries.
3876 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3881 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3885 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3889 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3894 * dcache.h: Include target.h, to avoid compile time warnings.
3898 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3899 frame_info" partial declaration.
3900 * gdbarch.h: Regenerate.
3904 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3905 Add parameter 'decode_for_pst_p'. Callers update.
3910 * configure.ac: Use local variable 'pos'.
3911 * configure: Regenerated.
3915 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3916 message, it is redundant with "Reading symbols from ..." message.
3920 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3925 * remote.c (remote_xfer_partial): Remove dead code.
3929 * ia64-linux-tdep.c: Include "regset.h".
3930 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3931 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3932 (ia64_linux_supply_fpregset): New function.
3933 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3934 (ia64_linux_regset_from_core_section): New function.
3935 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3940 * m68klinux-tdep.c: Include "regset.h".
3941 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3942 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3943 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3944 (m68k_linux_regset_from_core_section): New function.
3945 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3950 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3951 function. Move logic to...
3952 (tilegx_linux_regmap): ... this new register map.
3953 (tilegx_linux_regset): Refer to register map, replace supply
3954 method by regcache_supply_regset, and add collect method.
3955 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3956 TILEGX_FIRST_EASY_REGNUM.
3960 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3961 that calls regcache_supply_regset and handles the EPC register
3962 separately. Move main logic to...
3963 (score7_linux_gregmap): ... this new register map.
3964 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3965 (score7_linux_gregset): Refer to register map. Add collect method.
3966 (score7_linux_regset_from_core_section): Replace
3967 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3968 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3969 (struct regset): Delete unused forward declaraction.
3970 (struct pt_regs): Delete structure definition.
3971 (elf_gregset_t): Delete typedef.
3975 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3976 (nios2_core_regset): Add collect method.
3980 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3981 platform-independent and don't write to read-only input buffer.
3982 (m32r_linux_collect_gregset): New function.
3983 (m32r_linux_gregset): Add collect method.
3987 * hppa-linux-tdep.c (greg_map): Rename to...
3988 (hppa_linux_gregmap): ... this. Also convert to
3989 regcache_map_entry format.
3990 (hppa_linux_supply_regset): Delete function.
3991 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3992 (hppa_linux_fpregmap): ... this new register map.
3993 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3994 register map, replace supply method by regcache_supply_regset, and
3995 add collect method regcache_collect_regset.
3999 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
4000 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
4001 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
4002 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
4003 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
4004 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
4005 (frv_linux_supply_gregset): Replace main logic by call to
4006 regcache_supply_regset, but keep clearing gr32-gr63.
4007 (frv_linux_supply_fpregset): Delete function.
4008 (frv_linux_gregset): Refer to appropriate register map and add
4009 regcache_collect_regset as the collect method.
4010 (frv_linux_fpregset): Likewise. Also exchange the supply method
4011 by regcache_supply_regset.
4015 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
4016 by call to alpha_supply_int_regs.
4017 (alpha_linux_collect_gregset): New function.
4018 (alpha_linux_supply_fpregset): Replace logic by call to
4019 alpha_supply_fp_regs.
4020 (alpha_linux_collect_fpregset): New function.
4021 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
4025 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
4026 by call to regcache_collect_regset.
4027 (supply_gregset, supply_fpregset): Call regcache_supply_regset
4028 instead of aarch64_linux_supply_gregset/_fpregset.
4029 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
4030 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
4031 header file instead.
4032 (aarch64_linux_supply_gregset, supply_gregset_from_core)
4033 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
4034 functions. Move logic to ...
4035 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
4037 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
4038 refer to new register maps, replace *_regset_from_core by
4039 regcache_supply_regset, and also use regcache_collect_regset.
4040 * aarch64-linux-tdep.h: Include "regset.h".
4041 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4043 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4044 macros, moved from C source file.
4045 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4046 variable declarations.
4050 * s390-linux-nat.c: Include "regset.h".
4051 (regmap_gregset): Delete macro.
4052 (s390_64_regmap_gregset): New register map for
4053 regcache_supply/_collect_regset.
4054 (s390_64_gregset): New regset.
4055 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4056 (regmap_fpregset): Delete macro.
4057 (s390_native_supply, s390_native_collect): Delete functions.
4058 (supply_gregset, fill_gregset): Replace s390-specific regmap
4059 handling by a call to regcache_supply/_collect_regset.
4060 (supply_fpregset, fill_fpregset): Call regcache_supply/
4061 _collect_regset instead of s390_native_supply/_collect.
4062 (fetch_regset, store_regset): Likewise. Also change the last
4063 parameter to a regset instead of a regmap.
4064 (s390_linux_fetch_inferior_registers)
4065 (390_linux_store_inferior_registers): Adjust last parameter in
4066 calls to fetch_regset and store_regset.
4067 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4068 (s390_gregmap): ... this. Also make static const and convert to
4069 regcache_map_entry format.
4070 (s390x_regmap_gregset): Delete.
4071 (s390_regmap_fpregset): Rename to...
4072 (s390_fpregmap): ... this. Make static const and convert to
4073 regcache_map_entry format.
4074 (s390_regmap_upper, s390_regmap_last_break)
4075 (s390x_regmap_last_break, s390_regmap_system_call)
4076 (s390_regmap_tdb): Likewise.
4077 (s390_supply_regset, s390_collect_regset): Remove functions.
4078 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4080 (s390_gregset, s390_fpregset, s390_upper_regset)
4081 (s390_last_break_regset, s390x_last_break_regset)
4082 (s390_system_call_regset, s390_tdb_regset): Make global and
4083 replace s390_supply/_collect_regset by regcache_supply/
4085 (s390x_gregset): Delete.
4086 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4087 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4088 (s390_regmap_fpregset, s390_regmap_last_break)
4089 (s390x_regmap_last_break, s390_regmap_system_call)
4090 (s390_regmap_tdb): Delete global variable declarations.
4091 (s390_gregset, s390_fpregset, s390_last_break_regset)
4092 (s390x_last_break_regset, s390_system_call_regset)
4093 (s390_tdb_regset): New global variable declarations.
4097 * regcache.c: Include "regset.h".
4098 (regcache_transfer_regset): New local function.
4099 (regcache_supply_regset, regcache_collect_regset): New functions.
4100 * regcache.h (struct regcache_map_entry): New structure.
4101 (REGCACHE_MAP_SKIP): New enum value.
4102 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4106 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4107 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4108 (ppc_linux_collect_gregset ): Likewise.
4109 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4110 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4111 (ppc_collect_vrregset): Likewise.
4112 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4117 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4118 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4119 * remote.c (remote_read_bytes): Likewise.
4123 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4128 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4129 TARGET_XFER_OK instead of 0.
4133 * common/common-defs.h: Include errno.h.
4134 * defs.h: Do not include errno.h.
4135 * ada-typeprint.c: Likewise.
4136 * c-typeprint.c: Likewise.
4137 * core-regset.c: Likewise.
4138 * corefile.c: Likewise.
4139 * corelow.c: Likewise.
4140 * event-loop.c: Likewise.
4141 * f-typeprint.c: Likewise.
4142 * gnu-nat.c: Likewise.
4143 * go32-nat.c: Likewise.
4144 * i386gnu-nat.c: Likewise.
4145 * m2-typeprint.c: Likewise.
4146 * nat/linux-btrace.c: Likewise.
4147 * p-typeprint.c: Likewise.
4148 * procfs.c: Likewise.
4149 * remote-sim.c: Likewise.
4150 * rs6000-nat.c: Likewise.
4151 * target.c: Likewise.
4152 * typeprint.c: Likewise.
4153 * ui-file.c: Likewise.
4154 * valops.c: Likewise.
4155 * valprint.c: Likewise.
4159 * common/common-defs.h: Include string.h.
4160 * aarch64-tdep.c: Do not include string.h.
4161 * ada-exp.y: Likewise.
4162 * ada-lang.c: Likewise.
4163 * ada-lex.l: Likewise.
4164 * ada-typeprint.c: Likewise.
4165 * ada-valprint.c: Likewise.
4166 * aix-thread.c: Likewise.
4167 * alpha-linux-tdep.c: Likewise.
4168 * alpha-mdebug-tdep.c: Likewise.
4169 * alpha-nat.c: Likewise.
4170 * alpha-osf1-tdep.c: Likewise.
4171 * alpha-tdep.c: Likewise.
4172 * alphanbsd-tdep.c: Likewise.
4173 * amd64-dicos-tdep.c: Likewise.
4174 * amd64-linux-tdep.c: Likewise.
4175 * amd64-nat.c: Likewise.
4176 * amd64-sol2-tdep.c: Likewise.
4177 * amd64fbsd-tdep.c: Likewise.
4178 * amd64obsd-tdep.c: Likewise.
4179 * arch-utils.c: Likewise.
4180 * arm-linux-nat.c: Likewise.
4181 * arm-linux-tdep.c: Likewise.
4182 * arm-tdep.c: Likewise.
4183 * arm-wince-tdep.c: Likewise.
4184 * armbsd-tdep.c: Likewise.
4185 * armnbsd-nat.c: Likewise.
4186 * armnbsd-tdep.c: Likewise.
4187 * armobsd-tdep.c: Likewise.
4188 * avr-tdep.c: Likewise.
4189 * ax-gdb.c: Likewise.
4190 * ax-general.c: Likewise.
4191 * bcache.c: Likewise.
4192 * bfin-tdep.c: Likewise.
4193 * breakpoint.c: Likewise.
4194 * build-id.c: Likewise.
4195 * buildsym.c: Likewise.
4196 * c-exp.y: Likewise.
4197 * c-lang.c: Likewise.
4198 * c-typeprint.c: Likewise.
4199 * c-valprint.c: Likewise.
4200 * charset.c: Likewise.
4201 * cli-out.c: Likewise.
4202 * cli/cli-cmds.c: Likewise.
4203 * cli/cli-decode.c: Likewise.
4204 * cli/cli-dump.c: Likewise.
4205 * cli/cli-interp.c: Likewise.
4206 * cli/cli-logging.c: Likewise.
4207 * cli/cli-script.c: Likewise.
4208 * cli/cli-setshow.c: Likewise.
4209 * cli/cli-utils.c: Likewise.
4210 * coffread.c: Likewise.
4211 * common/agent.c: Likewise.
4212 * common/buffer.c: Likewise.
4213 * common/buffer.h: Likewise.
4214 * common/common-utils.c: Likewise.
4215 * common/filestuff.c: Likewise.
4216 * common/filestuff.c: Likewise.
4217 * common/format.c: Likewise.
4218 * common/print-utils.c: Likewise.
4219 * common/rsp-low.c: Likewise.
4220 * common/signals.c: Likewise.
4221 * common/vec.h: Likewise.
4222 * common/xml-utils.c: Likewise.
4223 * core-regset.c: Likewise.
4224 * corefile.c: Likewise.
4225 * corelow.c: Likewise.
4226 * cp-abi.c: Likewise.
4227 * cp-name-parser.y: Likewise.
4228 * cp-support.c: Likewise.
4229 * cp-valprint.c: Likewise.
4230 * cris-tdep.c: Likewise.
4231 * d-exp.y: Likewise.
4232 * darwin-nat.c: Likewise.
4233 * dbxread.c: Likewise.
4234 * dcache.c: Likewise.
4235 * demangle.c: Likewise.
4236 * dicos-tdep.c: Likewise.
4237 * disasm.c: Likewise.
4238 * doublest.c: Likewise.
4239 * dsrec.c: Likewise.
4240 * dummy-frame.c: Likewise.
4241 * dwarf2-frame.c: Likewise.
4242 * dwarf2loc.c: Likewise.
4243 * dwarf2read.c: Likewise.
4244 * elfread.c: Likewise.
4245 * environ.c: Likewise.
4247 * event-loop.c: Likewise.
4248 * exceptions.c: Likewise.
4250 * expprint.c: Likewise.
4251 * f-exp.y: Likewise.
4252 * f-lang.c: Likewise.
4253 * f-typeprint.c: Likewise.
4254 * f-valprint.c: Likewise.
4255 * fbsd-nat.c: Likewise.
4256 * findcmd.c: Likewise.
4257 * findvar.c: Likewise.
4258 * fork-child.c: Likewise.
4259 * frame.c: Likewise.
4260 * frv-linux-tdep.c: Likewise.
4261 * frv-tdep.c: Likewise.
4263 * gdb_bfd.c: Likewise.
4264 * gdbarch.c: Likewise.
4265 * gdbarch.sh: Likewise.
4266 * gdbtypes.c: Likewise.
4267 * gnu-nat.c: Likewise.
4268 * gnu-v2-abi.c: Likewise.
4269 * gnu-v3-abi.c: Likewise.
4270 * go-exp.y: Likewise.
4271 * go-lang.c: Likewise.
4272 * go32-nat.c: Likewise.
4273 * guile/guile.c: Likewise.
4274 * guile/scm-auto-load.c: Likewise.
4275 * hppa-hpux-tdep.c: Likewise.
4276 * hppa-linux-nat.c: Likewise.
4277 * hppanbsd-tdep.c: Likewise.
4278 * hppaobsd-tdep.c: Likewise.
4279 * i386-cygwin-tdep.c: Likewise.
4280 * i386-dicos-tdep.c: Likewise.
4281 * i386-linux-tdep.c: Likewise.
4282 * i386-nto-tdep.c: Likewise.
4283 * i386-sol2-tdep.c: Likewise.
4284 * i386-tdep.c: Likewise.
4285 * i386bsd-tdep.c: Likewise.
4286 * i386gnu-nat.c: Likewise.
4287 * i386nbsd-tdep.c: Likewise.
4288 * i386obsd-tdep.c: Likewise.
4289 * i387-tdep.c: Likewise.
4290 * ia64-libunwind-tdep.c: Likewise.
4291 * ia64-linux-nat.c: Likewise.
4292 * inf-child.c: Likewise.
4293 * inf-ptrace.c: Likewise.
4294 * inf-ttrace.c: Likewise.
4295 * infcall.c: Likewise.
4296 * infcmd.c: Likewise.
4297 * inflow.c: Likewise.
4298 * infrun.c: Likewise.
4299 * interps.c: Likewise.
4300 * iq2000-tdep.c: Likewise.
4301 * irix5-nat.c: Likewise.
4302 * jv-exp.y: Likewise.
4303 * jv-lang.c: Likewise.
4304 * jv-typeprint.c: Likewise.
4305 * jv-valprint.c: Likewise.
4306 * language.c: Likewise.
4307 * linux-fork.c: Likewise.
4308 * linux-nat.c: Likewise.
4309 * lm32-tdep.c: Likewise.
4310 * m2-exp.y: Likewise.
4311 * m2-typeprint.c: Likewise.
4312 * m32c-tdep.c: Likewise.
4313 * m32r-linux-nat.c: Likewise.
4314 * m32r-linux-tdep.c: Likewise.
4315 * m32r-rom.c: Likewise.
4316 * m32r-tdep.c: Likewise.
4317 * m68hc11-tdep.c: Likewise.
4318 * m68k-tdep.c: Likewise.
4319 * m68kbsd-tdep.c: Likewise.
4320 * m68klinux-nat.c: Likewise.
4321 * m68klinux-tdep.c: Likewise.
4322 * m88k-tdep.c: Likewise.
4323 * machoread.c: Likewise.
4324 * macrocmd.c: Likewise.
4326 * mdebugread.c: Likewise.
4327 * mem-break.c: Likewise.
4328 * memattr.c: Likewise.
4329 * memory-map.c: Likewise.
4330 * mep-tdep.c: Likewise.
4331 * mi/mi-cmd-break.c: Likewise.
4332 * mi/mi-cmd-disas.c: Likewise.
4333 * mi/mi-cmd-env.c: Likewise.
4334 * mi/mi-cmd-stack.c: Likewise.
4335 * mi/mi-cmd-var.c: Likewise.
4336 * mi/mi-cmds.c: Likewise.
4337 * mi/mi-console.c: Likewise.
4338 * mi/mi-getopt.c: Likewise.
4339 * mi/mi-interp.c: Likewise.
4340 * mi/mi-main.c: Likewise.
4341 * mi/mi-parse.c: Likewise.
4342 * microblaze-rom.c: Likewise.
4343 * microblaze-tdep.c: Likewise.
4344 * mingw-hdep.c: Likewise.
4345 * minidebug.c: Likewise.
4346 * minsyms.c: Likewise.
4347 * mips-irix-tdep.c: Likewise.
4348 * mips-linux-tdep.c: Likewise.
4349 * mips-tdep.c: Likewise.
4350 * mips64obsd-tdep.c: Likewise.
4351 * mipsnbsd-tdep.c: Likewise.
4352 * mipsread.c: Likewise.
4353 * mn10300-linux-tdep.c: Likewise.
4354 * mn10300-tdep.c: Likewise.
4355 * monitor.c: Likewise.
4356 * moxie-tdep.c: Likewise.
4357 * mt-tdep.c: Likewise.
4358 * nat/linux-btrace.c: Likewise.
4359 * nat/linux-osdata.c: Likewise.
4360 * nat/linux-procfs.c: Likewise.
4361 * nat/linux-ptrace.c: Likewise.
4362 * nat/linux-waitpid.c: Likewise.
4363 * nbsd-tdep.c: Likewise.
4364 * nios2-linux-tdep.c: Likewise.
4365 * nto-procfs.c: Likewise.
4366 * nto-tdep.c: Likewise.
4367 * objc-lang.c: Likewise.
4368 * objfiles.c: Likewise.
4369 * opencl-lang.c: Likewise.
4370 * osabi.c: Likewise.
4371 * osdata.c: Likewise.
4372 * p-exp.y: Likewise.
4373 * p-lang.c: Likewise.
4374 * p-typeprint.c: Likewise.
4375 * parse.c: Likewise.
4376 * posix-hdep.c: Likewise.
4377 * ppc-linux-nat.c: Likewise.
4378 * ppc-sysv-tdep.c: Likewise.
4379 * ppcfbsd-tdep.c: Likewise.
4380 * ppcnbsd-tdep.c: Likewise.
4381 * ppcobsd-tdep.c: Likewise.
4382 * printcmd.c: Likewise.
4383 * procfs.c: Likewise.
4384 * prologue-value.c: Likewise.
4385 * python/py-auto-load.c: Likewise.
4386 * python/py-gdb-readline.c: Likewise.
4387 * ravenscar-thread.c: Likewise.
4388 * regcache.c: Likewise.
4389 * registry.c: Likewise.
4390 * remote-fileio.c: Likewise.
4391 * remote-m32r-sdi.c: Likewise.
4392 * remote-mips.c: Likewise.
4393 * remote-notif.c: Likewise.
4394 * remote-sim.c: Likewise.
4395 * remote.c: Likewise.
4396 * reverse.c: Likewise.
4397 * rs6000-aix-tdep.c: Likewise.
4398 * ser-base.c: Likewise.
4399 * ser-go32.c: Likewise.
4400 * ser-mingw.c: Likewise.
4401 * ser-pipe.c: Likewise.
4402 * ser-tcp.c: Likewise.
4403 * ser-unix.c: Likewise.
4404 * serial.c: Likewise.
4405 * sh-tdep.c: Likewise.
4406 * sh64-tdep.c: Likewise.
4407 * shnbsd-tdep.c: Likewise.
4409 * sol-thread.c: Likewise.
4410 * solib-dsbt.c: Likewise.
4411 * solib-frv.c: Likewise.
4412 * solib-osf.c: Likewise.
4413 * solib-som.c: Likewise.
4414 * solib-spu.c: Likewise.
4415 * solib-target.c: Likewise.
4416 * solib.c: Likewise.
4417 * somread.c: Likewise.
4418 * source.c: Likewise.
4419 * sparc-nat.c: Likewise.
4420 * sparc-sol2-tdep.c: Likewise.
4421 * sparc-tdep.c: Likewise.
4422 * sparc64-tdep.c: Likewise.
4423 * sparc64fbsd-tdep.c: Likewise.
4424 * sparc64nbsd-tdep.c: Likewise.
4425 * sparcnbsd-tdep.c: Likewise.
4426 * spu-linux-nat.c: Likewise.
4427 * spu-multiarch.c: Likewise.
4428 * spu-tdep.c: Likewise.
4429 * stabsread.c: Likewise.
4430 * stack.c: Likewise.
4431 * std-regs.c: Likewise.
4432 * symfile.c: Likewise.
4433 * symmisc.c: Likewise.
4434 * symtab.c: Likewise.
4435 * target.c: Likewise.
4436 * thread.c: Likewise.
4437 * tilegx-linux-nat.c: Likewise.
4438 * tilegx-tdep.c: Likewise.
4440 * tracepoint.c: Likewise.
4441 * tui/tui-command.c: Likewise.
4442 * tui/tui-data.c: Likewise.
4443 * tui/tui-disasm.c: Likewise.
4444 * tui/tui-file.c: Likewise.
4445 * tui/tui-layout.c: Likewise.
4446 * tui/tui-out.c: Likewise.
4447 * tui/tui-regs.c: Likewise.
4448 * tui/tui-source.c: Likewise.
4449 * tui/tui-stack.c: Likewise.
4450 * tui/tui-win.c: Likewise.
4451 * tui/tui-windata.c: Likewise.
4452 * tui/tui-winsource.c: Likewise.
4453 * typeprint.c: Likewise.
4454 * ui-file.c: Likewise.
4455 * ui-out.c: Likewise.
4456 * user-regs.c: Likewise.
4457 * utils.c: Likewise.
4458 * v850-tdep.c: Likewise.
4459 * valarith.c: Likewise.
4460 * valops.c: Likewise.
4461 * valprint.c: Likewise.
4462 * value.c: Likewise.
4463 * varobj.c: Likewise.
4464 * vax-tdep.c: Likewise.
4465 * vaxnbsd-tdep.c: Likewise.
4466 * vaxobsd-tdep.c: Likewise.
4467 * windows-nat.c: Likewise.
4468 * xcoffread.c: Likewise.
4469 * xml-support.c: Likewise.
4470 * xstormy16-tdep.c: Likewise.
4471 * xtensa-linux-nat.c: Likewise.
4475 * common/common-defs.h: Include gdb_assert.h.
4476 * aarch64-tdep.c: Do not include gdb_assert.h.
4477 * addrmap.c: Likewise.
4478 * aix-thread.c: Likewise.
4479 * alpha-linux-tdep.c: Likewise.
4480 * alpha-mdebug-tdep.c: Likewise.
4481 * alphanbsd-tdep.c: Likewise.
4482 * amd64-nat.c: Likewise.
4483 * amd64-tdep.c: Likewise.
4484 * amd64bsd-nat.c: Likewise.
4485 * amd64fbsd-nat.c: Likewise.
4486 * amd64fbsd-tdep.c: Likewise.
4487 * amd64nbsd-nat.c: Likewise.
4488 * amd64nbsd-tdep.c: Likewise.
4489 * amd64obsd-nat.c: Likewise.
4490 * amd64obsd-tdep.c: Likewise.
4491 * arch-utils.c: Likewise.
4492 * arm-tdep.c: Likewise.
4493 * armbsd-tdep.c: Likewise.
4495 * bcache.c: Likewise.
4496 * bfin-tdep.c: Likewise.
4497 * blockframe.c: Likewise.
4498 * breakpoint.c: Likewise.
4499 * bsd-kvm.c: Likewise.
4500 * bsd-uthread.c: Likewise.
4501 * buildsym.c: Likewise.
4502 * c-exp.y: Likewise.
4503 * c-lang.c: Likewise.
4504 * charset.c: Likewise.
4505 * cleanups.c: Likewise.
4506 * cli-out.c: Likewise.
4507 * cli/cli-decode.c: Likewise.
4508 * cli/cli-dump.c: Likewise.
4509 * cli/cli-logging.c: Likewise.
4510 * cli/cli-script.c: Likewise.
4511 * cli/cli-utils.c: Likewise.
4512 * coffread.c: Likewise.
4513 * common/common-utils.c: Likewise.
4514 * common/queue.h: Likewise.
4515 * common/signals.c: Likewise.
4516 * common/vec.h: Likewise.
4517 * complaints.c: Likewise.
4518 * completer.c: Likewise.
4519 * corelow.c: Likewise.
4520 * cp-abi.c: Likewise.
4521 * cp-name-parser.y: Likewise.
4522 * cp-namespace.c: Likewise.
4523 * cp-support.c: Likewise.
4524 * cris-tdep.c: Likewise.
4525 * dbxread.c: Likewise.
4526 * dictionary.c: Likewise.
4527 * doublest.c: Likewise.
4528 * dsrec.c: Likewise.
4529 * dummy-frame.c: Likewise.
4530 * dwarf2-frame-tailcall.c: Likewise.
4531 * dwarf2-frame.c: Likewise.
4532 * dwarf2expr.c: Likewise.
4533 * dwarf2loc.c: Likewise.
4534 * dwarf2read.c: Likewise.
4536 * event-loop.c: Likewise.
4537 * exceptions.c: Likewise.
4538 * expprint.c: Likewise.
4539 * f-valprint.c: Likewise.
4540 * fbsd-nat.c: Likewise.
4541 * findvar.c: Likewise.
4542 * frame-unwind.c: Likewise.
4543 * frame.c: Likewise.
4544 * frv-tdep.c: Likewise.
4545 * gcore.c: Likewise.
4546 * gdb-dlfcn.c: Likewise.
4547 * gdb_bfd.c: Likewise.
4548 * gdbarch.c: Likewise.
4549 * gdbarch.sh: Likewise.
4550 * gdbtypes.c: Likewise.
4551 * gnu-nat.c: Likewise.
4552 * gnu-v3-abi.c: Likewise.
4553 * go-lang.c: Likewise.
4554 * guile/scm-exception.c: Likewise.
4555 * guile/scm-gsmob.c: Likewise.
4556 * guile/scm-lazy-string.c: Likewise.
4557 * guile/scm-math.c: Likewise.
4558 * guile/scm-pretty-print.c: Likewise.
4559 * guile/scm-safe-call.c: Likewise.
4560 * guile/scm-utils.c: Likewise.
4561 * guile/scm-value.c: Likewise.
4562 * h8300-tdep.c: Likewise.
4563 * hppa-hpux-nat.c: Likewise.
4564 * hppa-tdep.c: Likewise.
4565 * hppanbsd-tdep.c: Likewise.
4566 * hppaobsd-tdep.c: Likewise.
4567 * i386-darwin-nat.c: Likewise.
4568 * i386-darwin-tdep.c: Likewise.
4569 * i386-nto-tdep.c: Likewise.
4570 * i386-tdep.c: Likewise.
4571 * i386bsd-nat.c: Likewise.
4572 * i386fbsd-tdep.c: Likewise.
4573 * i386gnu-nat.c: Likewise.
4574 * i386nbsd-tdep.c: Likewise.
4575 * i386obsd-tdep.c: Likewise.
4576 * i387-tdep.c: Likewise.
4577 * ia64-libunwind-tdep.c: Likewise.
4578 * ia64-tdep.c: Likewise.
4579 * inf-ptrace.c: Likewise.
4580 * inf-ttrace.c: Likewise.
4581 * infcall.c: Likewise.
4582 * infcmd.c: Likewise.
4583 * infrun.c: Likewise.
4584 * inline-frame.c: Likewise.
4585 * interps.c: Likewise.
4586 * jv-lang.c: Likewise.
4587 * jv-typeprint.c: Likewise.
4588 * linux-fork.c: Likewise.
4589 * linux-nat.c: Likewise.
4590 * linux-thread-db.c: Likewise.
4591 * m32c-tdep.c: Likewise.
4592 * m32r-linux-nat.c: Likewise.
4593 * m32r-tdep.c: Likewise.
4594 * m68k-tdep.c: Likewise.
4595 * m68kbsd-nat.c: Likewise.
4596 * m68kbsd-tdep.c: Likewise.
4597 * m88k-tdep.c: Likewise.
4598 * machoread.c: Likewise.
4599 * macroexp.c: Likewise.
4600 * macrotab.c: Likewise.
4601 * maint.c: Likewise.
4602 * mdebugread.c: Likewise.
4603 * memory-map.c: Likewise.
4604 * mep-tdep.c: Likewise.
4605 * mi/mi-common.c: Likewise.
4606 * microblaze-tdep.c: Likewise.
4607 * mingw-hdep.c: Likewise.
4608 * mips-linux-nat.c: Likewise.
4609 * mips-linux-tdep.c: Likewise.
4610 * mips-tdep.c: Likewise.
4611 * mips64obsd-tdep.c: Likewise.
4612 * mipsnbsd-tdep.c: Likewise.
4613 * mn10300-linux-tdep.c: Likewise.
4614 * mn10300-tdep.c: Likewise.
4615 * moxie-tdep.c: Likewise.
4616 * mt-tdep.c: Likewise.
4617 * nat/linux-btrace.c: Likewise.
4618 * nat/linux-osdata.c: Likewise.
4619 * nat/linux-ptrace.c: Likewise.
4620 * nat/mips-linux-watch.c: Likewise.
4621 * nios2-linux-tdep.c: Likewise.
4622 * nios2-tdep.c: Likewise.
4623 * objc-lang.c: Likewise.
4624 * objfiles.c: Likewise.
4625 * obsd-nat.c: Likewise.
4626 * opencl-lang.c: Likewise.
4627 * osabi.c: Likewise.
4628 * parse.c: Likewise.
4629 * ppc-linux-nat.c: Likewise.
4630 * ppc-sysv-tdep.c: Likewise.
4631 * ppcfbsd-nat.c: Likewise.
4632 * ppcfbsd-tdep.c: Likewise.
4633 * ppcnbsd-nat.c: Likewise.
4634 * ppcnbsd-tdep.c: Likewise.
4635 * ppcobsd-nat.c: Likewise.
4636 * ppcobsd-tdep.c: Likewise.
4637 * printcmd.c: Likewise.
4638 * procfs.c: Likewise.
4639 * prologue-value.c: Likewise.
4640 * psymtab.c: Likewise.
4641 * python/py-lazy-string.c: Likewise.
4642 * python/py-value.c: Likewise.
4643 * regcache.c: Likewise.
4644 * reggroups.c: Likewise.
4645 * registry.c: Likewise.
4646 * remote-sim.c: Likewise.
4647 * remote.c: Likewise.
4648 * rs6000-aix-tdep.c: Likewise.
4649 * rs6000-tdep.c: Likewise.
4650 * s390-linux-tdep.c: Likewise.
4651 * score-tdep.c: Likewise.
4652 * ser-base.c: Likewise.
4653 * ser-mingw.c: Likewise.
4654 * sh-tdep.c: Likewise.
4655 * sh64-tdep.c: Likewise.
4656 * solib-darwin.c: Likewise.
4657 * solib-spu.c: Likewise.
4658 * solib-svr4.c: Likewise.
4659 * source.c: Likewise.
4660 * sparc-nat.c: Likewise.
4661 * sparc-sol2-tdep.c: Likewise.
4662 * sparc-tdep.c: Likewise.
4663 * sparc64-sol2-tdep.c: Likewise.
4664 * sparc64-tdep.c: Likewise.
4665 * sparc64fbsd-tdep.c: Likewise.
4666 * sparc64nbsd-tdep.c: Likewise.
4667 * sparc64obsd-tdep.c: Likewise.
4668 * sparcnbsd-tdep.c: Likewise.
4669 * sparcobsd-tdep.c: Likewise.
4670 * spu-multiarch.c: Likewise.
4671 * spu-tdep.c: Likewise.
4672 * stabsread.c: Likewise.
4673 * stack.c: Likewise.
4674 * symfile.c: Likewise.
4675 * symtab.c: Likewise.
4676 * target-descriptions.c: Likewise.
4677 * target-memory.c: Likewise.
4678 * target.c: Likewise.
4679 * tic6x-linux-tdep.c: Likewise.
4680 * tic6x-tdep.c: Likewise.
4681 * tilegx-linux-nat.c: Likewise.
4682 * tilegx-tdep.c: Likewise.
4684 * tramp-frame.c: Likewise.
4685 * tui/tui-out.c: Likewise.
4686 * tui/tui-winsource.c: Likewise.
4687 * ui-out.c: Likewise.
4688 * user-regs.c: Likewise.
4689 * utils.c: Likewise.
4690 * v850-tdep.c: Likewise.
4691 * valops.c: Likewise.
4692 * value.c: Likewise.
4693 * varobj.c: Likewise.
4694 * vax-nat.c: Likewise.
4695 * xml-syscall.c: Likewise.
4696 * xml-tdesc.c: Likewise.
4697 * xstormy16-tdep.c: Likewise.
4698 * xtensa-linux-nat.c: Likewise.
4699 * xtensa-tdep.c: Likewise.
4703 * common/common-defs.h: Include common-utils.h.
4704 * defs.h: Do not include common-utils.h.
4705 * common/gdb_assert.h: Likewise.
4706 * darwin-nat.h: Likewise.
4707 * nat/linux-btrace.c: Likewise.
4708 * target/waitstatus.h: Likewise.
4712 * common/common-defs.h: Include ptid.h.
4713 * defs.h: Do not include ptid.h.
4714 * inferior.h: Likewise.
4715 * infrun.h: Likewise.
4716 * nat/linux-btrace.h: Likewise.
4717 * nat/linux-osdata.h: Likewise.
4718 * target/waitstatus.h: Likewise.
4722 * common/common-defs.h: Include gdb_locale.h.
4723 * defs.h: Do not include gdb_locale.h.
4727 * common/common-defs.h: Include gdb/signals.h.
4728 * defs.h: Do not include gdb/signals.h.
4732 * common/common-defs.h: Include pathmax.h.
4733 * defs.h: Do not include pathmax.h.
4737 * common/common-defs.h: Include libiberty.h.
4738 * defs.h: Do not include libiberty.h.
4739 * common/queue.h: Likewise.
4740 * cp-name-parser.y: Likewise.
4741 * mi/mi-cmd-catch.c: Likewise.
4742 * python/python.c: Likewise.
4746 * common/common-defs.h: Include ansidecl.h.
4747 * defs.h: Do not include ansidecl.h.
4748 * common/buffer.h: Likewise.
4749 * common/common-utils.h: Likewise.
4753 * common/common-defs.h: Include stddef.h.
4754 * defs.h: Do not include stddef.h.
4755 * common/common-utils.h: Likewise.
4756 * amd64fbsd-nat.c: Likewise.
4757 * bcache.c: Likewise.
4758 * charset.c: Likewise.
4759 * common/buffer.h: Likewise.
4760 * common/vec.h: Likewise.
4761 * i386bsd-nat.c: Likewise.
4762 * nat/linux-btrace.h: Likewise.
4763 * ppcfbsd-nat.c: Likewise.
4764 * ppcnbsd-tdep.h: Likewise.
4765 * ppcobsd-nat.c: Likewise.
4766 * ppcobsd-tdep.h: Likewise.
4767 * python/py-gdb-readline.c: Likewise.
4771 * common/common-defs.h: Include stdarg.h.
4772 * defs.h: Do not include stdarg.h.
4773 * ada-lang.c: Likewise.
4774 * common/common-utils.h: Likewise.
4775 * guile/scm-string.c: Likewise.
4776 * guile/scm-utils.c: Likewise.
4777 * m32c-tdep.c: Likewise.
4781 * common/common-defs.h: Include stdlib.h.
4782 * defs.h: Do not include stdlib.h.
4783 * addrmap.c: Likewise.
4784 * bcache.c: Likewise.
4785 * common/buffer.c: Likewise.
4786 * common/common-utils.c: Likewise.
4787 * cp-name-parser.y: Likewise.
4788 * go32-nat.c: Likewise.
4789 * mn10300-linux-tdep.c: Likewise.
4790 * nat/linux-osdata.c: Likewise.
4791 * tui/tui.c: Likewise.
4792 * windows-nat.c: Likewise.
4796 * common/common-defs.h: Include stdio.h.
4797 * defs.h: Do not include stdio.h.
4798 * ada-lang.c: Likewise.
4799 * common/buffer.c: Likewise.
4800 * common/common-utils.c: Likewise.
4801 * cp-name-parser.y: Likewise.
4802 * gnu-nat.c: Likewise.
4803 * go32-nat.c: Likewise.
4804 * i386gnu-nat.c: Likewise.
4805 * proc-api.c: Likewise.
4806 * proc-events.c: Likewise.
4807 * proc-flags.c: Likewise.
4808 * proc-why.c: Likewise.
4809 * python/python-internal.h: Likewise.
4810 * target-memory.c: Likewise.
4811 * tui/tui-io.c: Likewise.
4812 * tui/tui.c: Likewise.
4816 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4817 (scan_dyntag_auxv): Same.
4821 * amd64-linux-nat.c: Remove duplicated include
4823 * i386-linux-nat.c: Likewise.
4827 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4828 operand" with "Special opcode" in comments.
4832 * interps.c (initialize_interps): Remove prototype.
4833 (interpreter_initialized): Remove static global.
4834 (interp_add): Do not call initialize_interps.
4835 (initialize_interps): Remove function.
4839 * utils.c (vwarning): Remove spurious va_end.
4843 * charset.c (convert_between_encodings): Cast result of obstack_base.
4844 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4845 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4846 (read_unwind_info): Use size_t for some locals.
4847 * jit.c (finalize_symtab): Likewise.
4848 * utils.c (hashtab_obstack_allocate): Likewise.
4849 * symmisc.c (print_objfile_statistics): Update format strings.
4853 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4854 (Changes in GDB 7.8): ... here.
4858 * target.c (set_targetdebug): New function.
4859 (initialize_targets): Pass set_targetdebug when creating "set
4864 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4865 if detecting a variable-sized field that is not the last field.
4866 Fix struct type length computation.
4870 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4875 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4876 Remove "+ 8" offset in computation of CHAIN_VMA.
4880 * inflow.c (child_terminal_inferior): Add comment.
4881 (child_terminal_ours_for_output): Add comment.
4882 (child_terminal_ours): Add comment.
4883 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4884 (linux_nat_terminal_ours): Add comment.
4888 * common/btrace-common.h: Do not include defs.h or server.h.
4889 * nat/mips-linux-watch.h: Likewise.
4890 * gdb-dlfcn.h: Do not include defs.h.
4891 * tracefile.h: Likewise.
4895 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4899 * bsd-kvm.c (bsd_kvm_open): Constify.
4900 * corelow.c (core_open): Constify.
4901 * ctf.c (ctf_open): Constify.
4902 * dbug-rom.c (dbug_open): Constify.
4903 * exec.c (exec_open): Constify.
4904 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4905 * microblaze-rom.c (picobug_open): Constify.
4906 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4908 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4909 * record-btrace.c (record_btrace_open): Constify.
4910 * record-full.c (record_full_core_open_1, record_full_open_1)
4911 (record_full_open): Constify.
4912 * remote-m32r-sdi.c (m32r_open): Constify.
4913 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4914 (rockhopper_open, lsi_open): Constify.
4915 * remote-sim.c (gdbsim_open): Constify.
4916 * remote.c (remote_open, extended_remote_open, remote_open_1):
4918 * target.h (struct target_ops) <to_open>: Make "arg" const.
4919 * tracefile-tfile.c (tfile_open): Constify.
4923 * breakpoint.c (map_breakpoint_numbers): Update.
4924 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4925 (get_number_const): New function.
4926 (get_number): Rewrite using get_number_const.
4927 (init_number_or_range): Make "string" const.
4928 (number_is_in_list): Make "list" const.
4929 * cli/cli-utils.h (get_number_const): Declare.
4930 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4931 (init_number_or_range, number_is_in_list): Update.
4932 * printcmd.c (map_display_numbers): Update.
4933 * value.c (value_from_history_ref): Constify.
4934 * value.h (value_from_history_ref): Update.
4938 * corefile.c (hook_type, call_extra_exec_file_hooks)
4939 (specify_exec_file_hook): Constify.
4940 * exec.c (exec_file_attach): Make "filename" const.
4941 * gdbcore.h (deprecated_exec_file_display_hook)
4942 (specify_exec_file_hook, exec_file_attach): Constify.
4943 * main.c (captured_main): Use catch_command_errors_const.
4947 * target.c (open_target): New function.
4948 (add_target_with_completer, add_deprecated_target_alias): Use
4949 set_cmd_sfunc, set_cmd_context.
4950 (debug_to_open): Remove.
4951 (setup_target_debug): Update.
4955 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4957 * parse.c (exp_iterate): Update comments.
4961 * common/common-defs.h: New file.
4962 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4963 * defs.h: Include common-defs.h.
4964 Do not include config.h or build-gnulib/config.h.
4968 * common/common-utils.h: Do not include config.h.
4969 * nat/linux-btrace.h: Likewise.
4973 * btrace.c: Include defs.h.
4974 * common/ptid.c: Include defs.h or server.h as appropriate.
4975 * nat/mips-linux-watch.c: Likewise.
4979 * target.c (target_is_pushed): Simplify.
4988 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4993 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4994 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4999 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
5000 (THUMB2_SET_R7_SIGRETURN2): Likewise.
5001 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
5002 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
5003 (THUMB2_EABI_SYSCALL): Likewise.
5004 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
5006 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
5007 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
5011 * guile/scm-param.c (pascm_print_param_smob): Fix output.
5015 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
5021 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
5022 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
5023 * configure.ac: Try to use guild to compile an scm file, if it fails
5024 then disable guile support.
5025 * configure: Regenerate.
5026 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
5028 (GUILE_COMPILED_FILES): New variable.
5029 (GUILE_FILES) Update.
5030 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
5031 (stamp-guile): Compile scm files.
5032 * guile/guile.c (boot_guile_support): New function.
5033 (standard_throw_args_p): New function.
5034 (print_standard_throw_error, print_throw_error): New functions.
5035 (handle_boot_error): New function.
5036 (initialize_scheme_side): Rewrite to call boot_guile_support.
5037 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
5038 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5044 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5045 * guile/lib/gdb/support.scm: New file.
5046 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5047 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5049 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5051 (%assert-type): Ditto, and renamed to assert-type.
5052 (%exception-print-style): Delete.
5057 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5058 * configure: Regenerate.
5059 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5061 (PYTHON_FILES): New variable.
5062 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5063 (GUILE_FILES): New variable.
5064 (stamp-python, install-python, uninstall-python): Handle empty
5066 (stamp-guile, install-guile, uninstall-guile): Ditto.
5071 * guile/lib/gdb.scm (pretty-printers): Export.
5072 (set-pretty-printers!): Export.
5073 * guile/lib/gdb/printing.scm (gdb module): Update.
5074 (prepend-pretty-printer!, append-pretty-printer!): Update.
5075 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5076 (pretty_printer_list_var): Delete.
5077 (pretty_printer_list): New static global.
5078 (gdbscm_pretty_printers): New function.
5079 (gdbscm_set_pretty_printers_x): New function.
5080 (ppscm_find_pretty_printer_from_gdb): Update.
5081 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5082 (gdbscm_initialize_pretty_printers): Update.
5087 * configure.ac: Add check for header gc/gc.h.
5088 Add check for function setenv.
5089 * configure: Regenerate.
5090 * config.in: Regenerate.
5091 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5095 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5096 variation in gdbarch matching.
5100 * exec.c (using_exec_ops): Remove.
5101 (exec_close_1): Update. Remove extraneous block, reindent.
5102 (add_target_sections): Use target_is_pushed.
5106 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5107 * monitor.c (monitor_create_inferior): Likewise.
5108 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5109 * remote-sim.c (gdbsim_create_inferior): Likewise.
5110 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5111 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5112 * windows-nat.c (do_initial_windows_stuff): Likewise.
5116 * NEWS: Mention signal passing and "signal" command changes.
5117 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5119 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5121 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5122 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5123 (jump_command): Adjust clear_proceed_status call.
5124 (signal_command): Warn if other thread that are resumed have
5125 signals that will be delivered. Adjust clear_proceed_status call.
5126 (until_next_command, finish_command)
5127 (proceed_after_attach_callback, attach_command_post_wait)
5128 (attach_command): Adjust clear_proceed_status call.
5129 * infrun.c (proceed_after_vfork_done): Likewise.
5130 (proceed_after_attach_callback): Adjust comment.
5131 (clear_proceed_status_thread): Clear stop_signal if not in pass
5133 (clear_proceed_status_callback): Delete.
5134 (clear_proceed_status): New 'step' parameter. Only clear the
5135 proceed status of threads the command being prepared is about to
5137 (proceed): If passed in an explicit signal, override stop_signal
5138 with it. Don't pass the last stop signal to the thread we're
5140 (init_wait_for_inferior): Adjust clear_proceed_status call.
5141 (switch_back_to_stepped_thread): Clear the signal if it should not
5143 * infrun.h (clear_proceed_status): New 'step' parameter.
5144 (user_visible_resume_ptid): Add comment.
5145 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5146 signal is in pass state.
5147 * remote.c (append_pending_thread_resumptions): Likewise.
5148 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5152 * target.h (target_stopped_data_address)
5153 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5158 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5160 (avr_pointer_to_address): Likewise.
5164 * monitor.c (compile_pattern): Update.
5165 * target.h (struct target_ops) <to_shortname, to_longname,
5170 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5171 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5172 (add_info_alias, add_com): Make "doc" const.
5173 (print_doc_line): Make "str" const.
5174 (delete_cmd): Update.
5175 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5176 (print_doc_line): Update.
5177 * cli/cli-script.c (document_command): Update.
5178 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5179 (add_com, add_info, add_info_alias): Update.
5180 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5181 * python/py-cmd.c (cmdpy_destroyer): Update.
5185 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5186 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5187 (help_cmd_list): Constify.
5188 (lookup_cmd): Update.
5189 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5191 (help_cmd_list, apropos_cmd): Update.
5192 * cli/cli-script.c (show_user): Update.
5193 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5194 * cli/cli-setshow.h (cmd_show_list): Update.
5195 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5196 (cmd_show_list): Update.
5197 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5198 * python/py-cmd.c (cmdpy_destroyer): Update.
5202 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5203 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5205 * command.h (deprecate_cmd): Update.
5206 * maint.c (maintenance_do_deprecate): Add casts.
5210 * cli/cli-decode.c (help_cmd): Make parameter "const".
5211 * cli/cli-decode.h (help_cmd): Update.
5215 * stack.c (up_silently_base, down_silently_base): Make argument
5220 * solib.c (solib_add): Make "pattern" const.
5221 * solib.h (solib_add): Update.
5225 * remote.c (remote_serial_open, print_packet, putpkt)
5226 (putpkt_binary): Constify.
5227 * remote.h (putpkt): Update.
5231 * monitor.c (monitor_open): Make "args" const.
5232 * monitor.h (monitor_open): Update.
5236 * maint.c (match_bfd_flags): Make "string" const.
5237 (print_bfd_section_info): Remove casts.
5238 (print_objfile_section_info): Make "string" const.
5242 * inf-child.c (inf_child_open_target): Make "arg" const.
5243 * inf-child.h (inf_child_open_target): Update.
5247 * environ.c (unset_in_environ): Make "var" const.
5248 * environ.h (unset_in_environ): Update.
5252 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5254 (scan_filename_with_cleanup): Likewise.
5255 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5256 Make arguments const.
5257 (restore_command): Update.
5261 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5266 * nat/linux-ptrace.c (additional_flags): New global.
5267 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5268 additional_flags; don't check GDBSERVER.
5269 (linux_ptrace_set_additional_flags): New function.
5270 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5272 * linux-nat.c (_initialize_linux_nat): Call
5273 linux_ptrace_set_additional_flags.
5277 * make-target-delegates (munge_type, write_debugmethod): New
5279 (debug_names): New global.
5280 ($TARGET_DEBUG_PRINTER): New global.
5281 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5283 Write debug methods. Generate init_debug_target.
5284 * target-debug.h: New file.
5285 * target-delegates.c: Rebuild.
5286 * target.c: Include target-debug.h.
5287 (debug_target): Hoist definition.
5288 (target_kill, target_get_section_table, target_memory_map)
5289 (target_flash_erase, target_flash_done, target_detach)
5290 (target_disconnect, target_wait, target_resume)
5291 (target_pass_signals, target_program_signals, target_follow_fork)
5292 (target_mourn_inferior, target_search_memory)
5293 (target_thread_address_space, target_close)
5294 (target_find_new_threads, target_core_of_thread)
5295 (target_verify_memory, target_insert_mask_watchpoint)
5296 (target_remove_mask_watchpoint): Remove targetdebug code.
5297 (debug_to_post_attach, debug_to_prepare_to_store)
5298 (debug_to_files_info, debug_to_insert_breakpoint)
5299 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5300 (debug_to_region_ok_for_hw_watchpoint)
5301 (debug_to_can_accel_watchpoint_condition)
5302 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5303 (debug_to_watchpoint_addr_within_range)
5304 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5305 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5306 (debug_to_terminal_init, debug_to_terminal_inferior)
5307 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5308 (debug_to_terminal_save_ours, debug_to_terminal_info)
5309 (debug_to_load, debug_to_post_startup_inferior)
5310 (debug_to_insert_fork_catchpoint)
5311 (debug_to_remove_fork_catchpoint)
5312 (debug_to_insert_vfork_catchpoint)
5313 (debug_to_remove_vfork_catchpoint)
5314 (debug_to_insert_exec_catchpoint)
5315 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5316 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5317 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5318 (setup_target_debug): Call init_debug_target.
5319 * target.h (TARGET_DEBUG_PRINTER): New macro.
5320 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5321 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5325 * exceptions.h (throw_vfatal): Renamed to...
5326 (throw_vquit): New declaration.
5327 (throw_quit): Likewise.
5328 * exceptions.c (throw_vfatal): Renamed to...
5329 (throw_vquit): New function.
5330 (throw_quit): Likewise.
5331 (throw_error): Call throw_verror rather than throw_it.
5332 * utils.h (vfatal): Removed.
5334 * utils.c (vfatal): Removed.
5336 (internal_verror): Replaced call to fatal with call to throw_quit.
5337 (quit): Replaced calls to fatal with calls to throw_quit.
5341 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5346 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5347 less than zero in conditional expression.
5351 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5352 ($INTRO_PART): Don't match whitespace.
5353 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5355 ($METHOD): Add $METHOD_TRAILER.
5357 (scan_target_h): New sub.
5358 Change main loop not to collect state.
5359 * target-delegates.c: Rebuild.
5363 * cp-support.c (gdb_demangle): Fix build on systems without
5368 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5369 for reference entry value target data value.
5373 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5374 value_available_contents_eq.
5378 * value.c (allocate_optimized_out_value): Don't mark value as
5383 * MAINTAINERS (Write After Approval): Update my email address.
5388 * remote.c (putpkt_binary): Add text to error message.
5392 * eval.c: Remove "Chill" from comments.
5393 * gdbtypes.h: Likewise.
5394 * symtab.h: Likewise.
5398 * std-operator.def: Update comments to TERNOP_SLICE.
5402 * std-operator.def: Remove BINOP_RANGE.
5403 * breakpoint.c (watchpoint_exp_is_const): Update.
5404 * expprint.c (dump_subexp_body_standard): Likewise.
5405 * eval.c (init_array_element): Remove dead code.
5406 (evaluate_subexp_standard): Likewise.
5410 * std-operator.def: Remove BINOP_IN.
5411 * breakpoint.c (watchpoint_exp_is_const): Update.
5412 * eval.c (evaluate_subexp_standard): Likewise.
5413 * expprint.c (dump_subexp_body_standard): Likewise.
5417 * microblaze-tdep.c (microblaze_register_names): Add
5418 the rshr and rslr register names.
5419 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5420 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5421 Use of tdesc_numbered_register. Use of
5422 microblaze_register_g_packet_guesses. Use of
5423 tdesc_use_registers. Use of set_gdbarch_register_type.
5424 (microblaze_register_g_packet_guesses): New.
5425 * microblaze-tdep.h (microblaze_reg_num): Add
5426 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5427 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5428 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5429 * features/microblaze-core.xml: New file.
5430 * features/microblaze-stack-protect.xml: New file.
5431 * features/microblaze-with-stack-protect.c: New file.
5432 * features/microblaze-with-stack-protect.xml: New file.
5433 * features/microblaze.xml: New file.
5434 * features/microblaze.c: New file.
5435 * features/Makefile (microblaze-with-stack-protect): Add
5436 microblaze-with-stack-protect microblaze and microblaze-expedite.
5437 * regformats/microblaze-with-stack-protect.dat: New file.
5438 * regformats/microblaze.dat: New file.
5439 * doc/gdb.texinfo (MicroBlaze Features): Added.
5443 * exec.c (exec_ops): Now static.
5444 * exec.h (exec_ops): Don't declare.
5448 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5449 to find_target_beneath.
5450 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5451 find_target_beneath.
5452 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5457 * utils.c (quit): Use target_supports_terminal_ours.
5458 * target.h (target_supports_terminal_ours): Declare.
5459 * target.c (target_supports_delete_record): Don't check
5460 to_delete_record against NULL.
5461 (target_supports_terminal_ours): New function.
5466 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5467 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5468 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5469 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5470 * windows-nat.c (windows_xfer_partial): Always delegate.
5471 * record-btrace.c (record_btrace_xfer_partial): Simplify
5473 (record_btrace_fetch_registers, record_btrace_store_registers)
5474 (record_btrace_prepare_to_store, record_btrace_resume)
5475 (record_btrace_wait, record_btrace_find_new_threads)
5476 (record_btrace_thread_alive): Likewise.
5477 * procfs.c (procfs_xfer_partial): Always delegate.
5478 * corelow.c (core_xfer_partial): Always delegate.
5479 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5483 * exec.c (exec_make_note_section): Move earlier.
5488 * maint.c (count_symtabs_and_blocks): Handle NULL
5489 current_program_space.
5490 (report_command_stats): Check global enabled flag in addition to
5491 recorded enabled flag.
5492 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5496 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5500 * target.h (struct target_ops) <to_delete_record>: Reformat
5505 * target-delegates.c: Rebuild.
5509 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5510 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5511 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5512 (avr_pointer_to_address): Likewise.
5513 (avr_address_class_type_flags): New function.
5514 (avr_address_class_type_flags_to_name): Likewise.
5515 (avr_address_class_name_to_type_flags): Likewise.
5516 (avr_gdbarch_init): Set address_class_type_flags,
5517 address_class_type_flags_to_name and
5518 address_class_name_to_type_flags.
5522 * linux-nat.c (kill_callback): Save errno and work with saved
5527 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5531 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5532 breakpoint support correctly.
5536 * utils.c (prompt_for_continue): Call target_terminal_ours.
5540 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5541 catch_errors. Don't re-enable stdin or notify observers where,
5543 (fetch_inferior_event_wrapper): Delete.
5548 * top.c: Include "inf-loop.h".
5549 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5551 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5553 (gdb_readline_wrapper): Store whether the target is async, and
5559 * top.c (gdb_readline_wrapper_line): Tweak comment.
5560 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5561 the input handler callback.
5566 * main.c: Include event-top.h.
5567 (handle_command_errors): New function.
5568 (catch_command_errors, catch_command_errors_const): Use it.
5572 * exceptions.c (catch_command_errors, catch_command_errors_const):
5574 * exceptions.h (catch_command_errors_ftype)
5575 (catch_command_errors_const_ftype): Moved to main.c.
5576 (catch_command_errors, catch_command_errors_const): Delete
5578 * main.c (catch_command_errors_ftype)
5579 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5580 (catch_command_errors, catch_command_errors_const)): Moved here
5581 from exceptions.c and make static.
5585 * exceptions.c (print_any_exception): Delete.
5586 (catch_exceptions_with_msg): Use exception_print instead of
5587 print_any_exception.
5588 (catch_errors): Use exception_fprintf instead of
5589 print_any_exception.
5590 (catch_command_errors, catch_command_errors_const): Use
5591 exception_print instead of print_any_exception.
5595 * infcall.c (run_inferior_call): Set 'sync_execution' while
5596 running the inferior call.
5600 * value.c (value_contents_equal): Delete function.
5601 * value.h (value_contents_equal): Delete declaration.
5606 * gdbtypes.c (is_dynamic_type_internal): New function, from
5608 (is_dynamic_type): Rewrite.
5609 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5610 (resolve_dynamic_struct): Likewise.
5611 (resolve_dynamic_type_internal): New function, from
5612 resolve_dynamic_type.
5613 (resolve_dynamic_type): Rewrite.
5617 * target.c (target_require_runnable): Also check record_stratum.
5622 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5623 thumb_instruction_restores_sp return true.
5627 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5628 (thumb_in_function_epilogue_p): Call
5629 thumb_instruction_restores_sp.
5633 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5635 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5639 * amd64-linux-nat.c (gdbcore.h): Remove include.
5640 (regset.h): Likewise.
5641 (nat/linux-btrace.h): Likewise.
5642 (btrace.h): Likewise.
5643 (gdb_assert.h): Likewise.
5644 (string.h): Likewise.
5645 (sys/uio.h): Likewise.
5646 (sys/debugreg.h): Likewise.
5647 (sys/syscall.h): Likewise.
5648 (sys/procfs.h): Likewise.
5649 (sys/user.h): Likewise.
5650 (asm/ptrace.h): Likewise.
5651 (i386-nat.h): Likewise.
5652 * i386-linux-nat.c (i386-nat.h): Likewise.
5653 (regset.h): Likewise.
5654 (target.h): Likewise.
5655 (linux-nat.h): Likewise.
5656 (nat/linux-btrace.h): Likewise.
5657 (btrace.h): Likewise.
5658 (gdb_assert.h): Likewise.
5659 (string.h): Likewise.
5660 (sys/uio.h): Likewise.
5661 (sys/user.h): Likewise.
5662 (sys/procfs.h): Likewise.
5663 (sys/reg.h): Likewise.
5664 (sys/debugreg.h): Likewise.
5665 (ORIG_EAX): Remove definition.
5669 * i386-linux-nat.h: New file.
5670 * x86-linux-nat.h: Likewise.
5671 * x86-linux-nat.c: Likewise.
5672 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5673 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5674 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5675 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5676 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5677 (PTRACE_SETREGSET): Likewise.
5678 (arch_lwp_info): Now in x86-linux-nat.c.
5679 (have_ptrace_getregset): Now in x86-linux-nat.h.
5680 (x86_linux_dr_get): Now in x86-linux-nat.c.
5681 (x86_linux_dr_set): Likewise.
5682 (x86_linux_dr_get_addr): Likewise.
5683 (x86_linux_dr_get_control): Likewise.
5684 (x86_linux_dr_get_status): Likewise.
5685 (update_debug_registers_callback): Likewise.
5686 (x86_linux_dr_set_control): Likewise.
5687 (x86_linux_dr_set_addr): Likewise.
5688 (x86_linux_prepare_to_resume): Likewise.
5689 (x86_linux_new_thread): Likewise.
5690 (x86_linux_new_fork): Likewise.
5691 (x86_linux_get_thread_area): Likewise.
5692 (super_post_startup_inferior): Likewise.
5693 (x86_linux_child_post_startup_inferior): Likewise.
5694 (AMD64_LINUX_USER64_CS): Likewise.
5695 (AMD64_LINUX_X32_DS): Likewise.
5696 (x86_linux_read_description): Likewise.
5697 (x86_linux_enable_btrace): Likewise.
5698 (x86_linux_disable_btrace): Likewise.
5699 (x86_linux_teardown_btrace): Likewise.
5700 (x86_linux_read_btrace): Likewise.
5701 (x86_linux_create_target): Likewise.
5702 (x86_linux_add_target): Likewise.
5703 * i386-linux-nat.c (x86-linux-nat.h): New include.
5704 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5705 (PTRACE_SETREGSET): Likewise.
5706 (arch_lwp_info): Now in x86-linux-nat.c.
5707 (have_ptrace_getregset): Now in x86-linux-nat.h.
5708 (x86_linux_dr_get): Now in x86-linux-nat.c.
5709 (x86_linux_dr_set): Likewise.
5710 (x86_linux_dr_get_addr): Likewise.
5711 (x86_linux_dr_get_control): Likewise.
5712 (x86_linux_dr_get_status): Likewise.
5713 (update_debug_registers_callback): Likewise.
5714 (x86_linux_dr_set_control): Likewise.
5715 (x86_linux_dr_set_addr): Likewise.
5716 (x86_linux_prepare_to_resume): Likewise.
5717 (x86_linux_new_thread): Likewise.
5718 (x86_linux_new_fork): Likewise.
5719 (x86_linux_get_thread_area): Likewise.
5720 (super_post_startup_inferior): Likewise.
5721 (x86_linux_child_post_startup_inferior): Likewise.
5722 (AMD64_LINUX_USER64_CS): Likewise.
5723 (AMD64_LINUX_X32_DS): Likewise.
5724 (x86_linux_read_description): Likewise.
5725 (x86_linux_enable_btrace): Likewise.
5726 (x86_linux_disable_btrace): Likewise.
5727 (x86_linux_teardown_btrace): Likewise.
5728 (x86_linux_read_btrace): Likewise.
5729 (x86_linux_create_target): Likewise.
5730 (x86_linux_add_target): Likewise.
5734 * amd64-linux-nat.c: Comment and whitespace changes.
5735 * i386-linux-nat.c: Comment and whitespace changes.
5739 * amd64-linux-nat.c (x86_linux_create_target): New function.
5740 (x86_linux_add_target): Likewise.
5741 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5742 * i386-linux-nat.c (x86_linux_create_target): New function.
5743 (x86_linux_add_target): Likewise.
5744 (_initialize_i386_linux_nat): Delegate to the above new functions.
5748 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5749 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5750 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5751 (ps_get_thread_area): Delegate to the above.
5755 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5756 x86_linux_read_description. All uses updated. amd64-specific
5757 code conditionalized. Conditionalized i386-specific code added.
5758 Redundant cast removed.
5759 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5760 x86_linux_read_description. All uses updated. i386-specific
5761 code conditionalized. Conditionalized amd64-specific code added.
5762 One sizeof replaced with the actual type it is describing.
5766 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5767 x86_linux_dr_get. All uses updated.
5768 (amd64_linux_dr_set): Renamed to
5769 x86_linux_dr_set. All uses updated.
5770 (amd64_linux_dr_get_addr): Renamed to
5771 x86_linux_dr_get_addr. All uses updated.
5772 (amd64_linux_dr_get_control): Renamed to
5773 x86_linux_dr_get_control. All uses updated.
5774 (amd64_linux_dr_get_status): Renamed to
5775 x86_linux_dr_get_status. All uses updated.
5776 (amd64_linux_dr_set_control): Renamed to
5777 x86_linux_dr_set_control. All uses updated.
5778 (amd64_linux_dr_set_addr): Renamed to
5779 x86_linux_dr_set_addr. All uses updated.
5780 (amd64_linux_prepare_to_resume): Renamed to
5781 x86_linux_prepare_to_resume. All uses updated.
5782 (amd64_linux_new_thread): Renamed to
5783 x86_linux_new_thread. All uses updated.
5784 (amd64_linux_new_fork): Renamed to
5785 x86_linux_new_fork. All uses updated.
5786 (amd64_linux_child_post_startup_inferior): Renamed to
5787 x86_linux_child_post_startup_inferior. All uses updated.
5788 (amd64_linux_enable_btrace): Renamed to
5789 x86_linux_enable_btrace. All uses updated.
5790 (amd64_linux_disable_btrace): Renamed to
5791 x86_linux_disable_btrace. All uses updated.
5792 (amd64_linux_teardown_btrace): Renamed to
5793 x86_linux_teardown_btrace. All uses updated.
5794 (amd64_linux_read_btrace): Renamed to
5795 x86_linux_read_btrace. All uses updated.
5796 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5797 x86_linux_dr_get. All uses updated.
5798 (i386_linux_dr_set): Renamed to
5799 x86_linux_dr_set. All uses updated.
5800 (i386_linux_dr_get_addr): Renamed to
5801 x86_linux_dr_get_addr. All uses updated.
5802 (i386_linux_dr_get_control): Renamed to
5803 x86_linux_dr_get_control. All uses updated.
5804 (i386_linux_dr_get_status): Renamed to
5805 x86_linux_dr_get_status. All uses updated.
5806 (i386_linux_dr_set_control): Renamed to
5807 x86_linux_dr_set_control. All uses updated.
5808 (i386_linux_dr_set_addr): Renamed to
5809 x86_linux_dr_set_addr. All uses updated.
5810 (i386_linux_prepare_to_resume): Renamed to
5811 x86_linux_prepare_to_resume. All uses updated.
5812 (i386_linux_new_thread): Renamed to
5813 x86_linux_new_thread. All uses updated.
5814 (i386_linux_new_fork): Renamed to
5815 x86_linux_new_fork. All uses updated.
5816 (i386_linux_child_post_startup_inferior): Renamed to
5817 x86_linux_child_post_startup_inferior. All uses updated.
5818 (i386_linux_enable_btrace): Renamed to
5819 x86_linux_enable_btrace. All uses updated.
5820 (i386_linux_disable_btrace): Renamed to
5821 x86_linux_disable_btrace. All uses updated.
5822 (i386_linux_teardown_btrace): Renamed to
5823 x86_linux_teardown_btrace. All uses updated.
5824 (i386_linux_read_btrace): Renamed to
5825 x86_linux_read_btrace. All uses updated.
5829 * remote.c (extended_remote_post_attach): New function.
5830 (init_extended_remote_ops): Install it as to_post_attach method.
5834 * infcmd.c (attach_command_post_wait): Don't call
5835 target_terminal_inferior here.
5836 (attach_command): Call it here instead.
5840 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5842 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5843 from varobj.c, with additional checks.
5844 (c_varobj_ops): Fill in is_path_expr_parent field.
5845 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5846 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5848 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5850 (varobj_default_is_path_expr_parent): New function.
5851 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5852 (varobj_default_is_path_expr_parent): Declare new function.
5856 * infcmd.c (finish_backward): Turn internal error into normal error.
5861 * remote.c (async_handle_remote_sigint)
5862 (async_handle_remote_sigint_twice): Call
5863 gdb_call_async_signal_handler instead of
5864 mark_async_signal_handler.
5868 * target-delegates.c: Rebuild.
5869 * target.c (target_info_record): Remove.
5870 * record.c (info_record_command): Unconditionally call
5872 * target.h (struct target_ops) <to_info_record>: Use
5873 TARGET_DEFAULT_IGNORE.
5874 (target_info_record): Remove.
5878 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5879 TARGET_DEFAULT_NORETURN.
5880 * target.c (generic_tls_error): New function.
5881 (target_translate_tls_address): Don't search target stack.
5882 * target-delegates.c: Rebuild.
5883 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5885 * linux-thread-db.c (thread_db_get_thread_local_address):
5886 Unconditionally call beneath target.
5890 * cli/cli-logging.c (pop_output_files): Assign targerr to
5895 * MAINTAINERS (Write After Approval): Update my email address.
5899 * proc-service.c (ps_xfer_memory): Update comment.
5900 (ps_pstop): Remove unused function.
5901 (ps_pcontinue): Likewise.
5902 (ps_lstop): Likewise.
5903 (ps_lcontinue): Likewise.
5904 (ps_lgetxregsize): Likewise.
5905 (ps_lgetxregs): Likewise.
5906 (ps_lsetxregs): Likewise.
5907 (ps_plog): Likewise.
5908 (ps_ptread): Likewise.
5909 (ps_ptwrite): Likewise.
5913 * dwarf2read.c (add_array_cv_type): New function.
5914 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5915 (read_tag_volatile_type): Likewise.
5919 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5920 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5921 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5922 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5923 * command.h (cmd_cfunc_ftype): Move earlier.
5924 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5925 (add_com, add_info): Use cmd_cfunc_ftype.
5929 * symtab.c (operator_chars): Make parameters and return type
5931 (file_matches): Make "files" const.
5932 (struct search_symbols_data) <files>: Now const.
5933 (search_symbols): Make "regexp" and "files" parameters const.
5935 (symtab_symbol_info): Remove cast.
5936 (rbreak_command): Update.
5937 * symtab.h (search_symbols): Update.
5941 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5942 Change parameter type to 'struct thread_info *'. Caller
5944 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5946 * dummy-frame.c (struct dummy_frame_id): New.
5947 (dummy_frame_id_eq): New function.
5948 (struct dummy_frame) <id>: Change its type to 'struct
5950 (dummy_frame_push): Add parameter ptid and save it in
5952 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5954 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5956 (lookup_dummy_frame): Change parameter type to 'struct
5957 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5958 instead of frame_id_eq.
5959 (dummy_frame_pop): Add parameter ptid. Callers updated.
5960 Update comments. Compose dummy_frame_id and pass it to
5962 (dummy_frame_discard): Add parameter ptid.
5963 (dummy_frame_sniffer): Compose dummy_frame_id and call
5964 dummy_frame_id_eq instead of frame_id_eq.
5965 (fprint_dummy_frames): Print ptid.
5966 * dummy-frame.h: Remove comments.
5967 (dummy_frame_push): Add ptid in declaration.
5968 (dummy_frame_pop, dummy_frame_discard): Likewise.
5972 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5973 * command.h (error_no_arg): Update.
5977 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5978 (do_show_command): Make "arg" const.
5979 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5983 * record-full.c (record_full_get_bookmark): Make "args" const.
5984 (record_full_goto_bookmark): Make "raw_bookmark" const.
5985 * record.c (record_goto): New function.
5986 (cmd_record_goto): Use it. Now static.
5987 * record.h (record_goto): Declare.
5988 (cmd_record_goto): Remove declaration.
5989 * target-delegates.c: Rebuild.
5990 * target.h (struct target_ops) <to_get_bookmark,
5991 to_goto_bookmark>: Make parameter const.
5995 * defs.h (generic_load): Update.
5996 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5997 * monitor.c (monitor_load): Make "args" const.
5998 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5999 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
6001 (mips_load): Make "file" const.
6002 * remote-sim.c (gdbsim_load): Make "args" const.
6003 * remote.c (remote_load): Make "name" const.
6004 * symfile.c (generic_load): Make "args" const.
6005 * target-delegates.c: Rebuild.
6006 * target.c (target_load): Make "arg" const.
6007 (debug_to_load): Make "args" const.
6008 * target.h (struct target_ops) <to_load>: Make parameter const.
6009 (target_load): Update.
6014 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
6015 (dwarf2_physname, read_partial_die)
6016 (guess_partial_die_structure_name, fixup_partial_die)
6017 (guess_full_die_structure_name, anonymous_struct_prefix)
6018 (dwarf2_name): Use per-BFD obstack.
6022 * dummy-frame.c (dummy_frame_sniffer): Move local variables
6023 dummyframe and this_id into inner block below.
6027 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
6028 with "signal_pass[0]" in the initialization of signal_pass.
6032 * record-btrace.c (record_btrace_generating_corefile)
6033 (record_btrace_prepare_to_generate_core)
6034 (record_btrace_done_generating_core): New.
6035 (record_btrace_xfer_partial, record_btrace_fetch_registers)
6036 (record_btrace_store_registers, record_btrace_prepare_to_store):
6037 Forward request when generating a core file.
6038 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6039 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6040 to_done_generating_core.
6044 * target.h (target_ops) <to_prepare_to_generate_core>
6045 <to_done_generating_core>: New.
6046 (target_prepare_to_generate_core, target_done_generating_core): New.
6047 * target.c (target_prepare_to_generate_core)
6048 (target_done_generating_core): New.
6049 * target-delegates.c: Regenerate.
6050 * gcore.c: (write_gcore_file): Rename to ...
6051 (write_gcore_file_1): ...this.
6052 (write_gcore_file): Call target_prepare_to_generate_core
6053 and target_done_generating_core.
6057 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6058 * gcore.c (write_gcore_file): Free memory returned from
6059 make_corefile_notes.
6060 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6061 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6065 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6066 (arm_linux_init_abi): Set skip_trampoline_code with
6067 gdbarch_skip_trampoline_code instead of
6068 find_solib_trampoline_target.
6072 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6073 arm_skip_bx_reg returns non-zero.
6077 * arm-tdep.c (arm_skip_bx_reg): New function.
6078 (arm_skip_stub): Call arm_skip_bx_reg.
6082 * MAINTAINERS: Add myself as write-after-approval maintainer.
6086 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6087 DR_CONTROL before setting DR0..DR3.
6088 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6089 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6090 bits of DR_CONTROL related to the debug register slot being
6091 disabled. If all slots are vacant, clear local slowdown as well,
6092 and assert DR_CONTROL is 0.
6096 * python/lib/gdb/command/xmethods.py
6097 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6098 current progspace only if the string "progspace" matches LOCUS_RE.
6102 Fix --with-system-readline with readline-6.3 patch 5.
6103 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6104 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6109 * dwarf2read.c (dw2_get_real_path): Use correct type in
6111 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6115 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6116 * common/glibc_thread_db.h: Likewise.
6117 * common/i386-cpuid.h: Likewise.
6118 * common/i386-gcc-cpuid.h: Likewise.
6119 * common/linux-btrace.h: Likewise.
6120 * common/linux-osdata.h: Likewise.
6121 * common/linux-procfs.h: Likewise.
6122 * common/linux-ptrace.h: Likewise.
6123 * common/mips-linux-watch.h: Likewise.
6124 * common/linux-btrace.c: Moved to nat.
6125 * common/linux-osdata.c: Likewise.
6126 * common/linux-procfs.c: Likewise.
6127 * common/linux-ptrace.c: Likewise.
6128 * common/mips-linux-watch.c: Likewise.
6129 * nat/gdb_thread_db.h: Moved from common.
6130 * nat/glibc_thread_db.h: Likewise.
6131 * nat/i386-cpuid.h: Likewise.
6132 * nat/i386-gcc-cpuid.h: Likewise.
6133 * nat/linux-btrace.c: Likewise.
6134 * nat/linux-btrace.h: Likewise.
6135 * nat/linux-osdata.c: Likewise.
6136 * nat/linux-osdata.h: Likewise.
6137 * nat/linux-procfs.c: Likewise.
6138 * nat/linux-procfs.h: Likewise.
6139 * nat/linux-ptrace.c: Likewise.
6140 * nat/linux-ptrace.h: Likewise.
6141 * nat/mips-linux-watch.c: Likewise.
6142 * nat/mips-linux-watch.h: Likewise.
6143 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6144 (object file files): Reordered.
6145 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6146 of glibc_thread_db.h.
6150 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6151 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6152 (i386_dr_low): Likewise.
6153 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6154 (i386_dr_low_set_addr): Likewise.
6155 (i386_dr_low_get_addr): Likewise.
6156 (i386_dr_low_can_set_control): Likewise.
6157 (i386_dr_low_set_control): Likewise.
6158 (i386_dr_low_get_control): Likewise.
6159 (i386_dr_low_get_status): Likewise.
6160 (i386_get_debug_register_length): Likewise.
6161 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6162 (i386_dr_low): Likewise.
6163 * nat/i386-dregs.c (i386-low.h): Remove include.
6164 (i386-nat.h): Likewise.
6165 (nat/i386-dregs.h): New include.
6166 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6167 (i386_dr_low_set_addr): Likewise.
6168 (i386_dr_low_get_addr): Likewise.
6169 (i386_dr_low_can_set_control): Likewise.
6170 (i386_dr_low_set_control): Likewise.
6171 (i386_dr_low_get_control): Likewise.
6172 (i386_dr_low_get_status): Likewise.
6173 (i386_get_debug_register_length): Likewise.
6174 (debug_hw_points): Likewise.
6178 * Makefile.in (SFILES): Add d-exp.y.
6179 (YYFILES): Add d-exp.c.
6180 (YYOBJ): Add d-exp.o.
6181 (local-maintainer-clean): Delete d-exp.c.
6182 * d-exp.y: New file.
6183 * d-lang.h (d_parse): New declaration.
6184 (d_error): New declaration.
6185 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6186 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6187 PREC_ORDER operators.
6188 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6192 * gdbthread.h (any_running): Remove the declaration.
6193 * thread.c (any_running): Remove.
6197 * gdbthread.h (struct thread_info) <state>: Change its type to
6198 'enum thread_state'. Update comments.
6202 * gdbthread.h (ALL_THREADS): Delete.
6203 (ALL_NON_EXITED_THREADS): New macro.
6204 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6205 instead of ALL_THREADS.
6206 * infrun.c (find_thread_needs_step_over)
6207 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6208 instead of ALL_THREADS.
6209 * record-btrace.c (record_btrace_open)
6210 (record_btrace_stop_recording, record_btrace_close)
6211 (record_btrace_is_replaying, record_btrace_resume)
6212 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6213 * remote.c (append_pending_thread_resumptions): Likewise.
6214 * thread.c (thread_apply_all_command): Likewise.
6218 * i386-nat.c (i386_stopped_by_watchpoint):
6219 Use i386_dr_stopped_by_watchpoint.
6220 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6221 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6225 * nat/i386-dregs.c: New file.
6226 * Makefile.in (i386-dregs.o): New rule.
6227 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6228 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6229 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6230 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6231 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6232 * config/i386/go32.mh (NATDEPFILES): Likewise.
6233 * config/i386/linux.mh (NATDEPFILES): Likewise.
6234 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6235 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6236 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6237 * i386-nat.h (debug_hw_points): New declaration.
6238 * i386-nat.c (breakpoint.h): Remove include.
6239 (command.h): Likewise.
6240 (target.h): Likewise.
6241 (gdb_assert.h): Likewise.
6242 (debug_hw_points): Made nonstatic.
6243 (debug_printf): Now in i386-dregs.c.
6244 (TARGET_HAS_DR_LEN_8): Likewise.
6245 (DR_CONTROL_SHIFT): Likewise.
6246 (DR_CONTROL_SIZE): Likewise.
6247 (DR_RW_EXECUTE): Likewise.
6248 (DR_RW_WRITE): Likewise.
6249 (DR_RW_READ): Likewise.
6250 (DR_RW_IORW): Likewise.
6251 (DR_LEN_1): Likewise.
6252 (DR_LEN_2): Likewise.
6253 (DR_LEN_4): Likewise.
6254 (DR_LEN_8): Likewise.
6255 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6256 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6257 (DR_ENABLE_SIZE): Likewise.
6258 (DR_LOCAL_SLOWDOWN): Likewise.
6259 (DR_GLOBAL_SLOWDOWN): Likewise.
6260 (DR_CONTROL_RESERVED): Likewise.
6261 (I386_DR_CONTROL_MASK): Likewise.
6262 (I386_DR_VACANT): Likewise.
6263 (I386_DR_LOCAL_ENABLE): Likewise.
6264 (I386_DR_GLOBAL_ENABLE): Likewise.
6265 (I386_DR_DISABLE): Likewise.
6266 (I386_DR_SET_RW_LEN): Likewise.
6267 (I386_DR_GET_RW_LEN): Likewise.
6268 (I386_DR_WATCH_HIT): Likewise.
6269 (i386_wp_op_t): Likewise.
6270 (i386_show_dr): Likewise.
6271 (i386_length_and_rw_bits): Likewise.
6272 (i386_insert_aligned_watchpoint): Likewise.
6273 (i386_remove_aligned_watchpoint): Likewise.
6274 (i386_handle_nonaligned_watchpoint): Likewise.
6275 (i386_update_inferior_debug_regs): Likewise.
6276 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6277 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6278 (i386_region_ok_for_watchpoint):
6279 Use i386_dr_region_ok_for_watchpoint.
6280 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6284 * i386-nat.c (i386_insert_hw_breakpoint): Use
6285 i386_insert_watchpoint.
6286 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6290 * i386-nat.c (i386_dr_show): Renamed to
6291 i386_show_dr and made static. All uses updated.
6292 (i386_dr_length_and_rw_bits): Renamed to
6293 i386_length_and_rw_bits and made static.
6295 (i386_dr_insert_aligned_watchpoint): Renamed to
6296 i386_insert_aligned_watchpoint and made static.
6298 (i386_dr_remove_aligned_watchpoint): Renamed to
6299 i386_remove_aligned_watchpoint and made static.
6301 (i386_dr_update_inferior_debug_regs): Renamed to
6302 i386_update_inferior_debug_regs and made static.
6304 * nat/i386-dregs.h (i386_dr_show): Removed.
6305 (i386_dr_length_and_rw_bits): Likewise.
6306 (i386_dr_insert_aligned_watchpoint): Likewise.
6307 (i386_dr_remove_aligned_watchpoint): Likewise.
6308 (i386_dr_update_inferior_debug_regs): Likewise.
6312 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6313 * configure: Regenerate.
6314 * config.in: Likewise.
6315 * main.c (signal.h): New include.
6316 (setup_alternate_signal_stack): New function.
6317 (captured_main): Call the above.
6318 * cp-support.c (signal.h): New include.
6319 (catch_demangler_crashes): New flag.
6320 (SIGJMP_BUF): New define.
6321 (SIGSETJMP): Likewise.
6322 (SIGLONGJMP): Likewise.
6323 (gdb_demangle_jmp_buf): New static global.
6324 (gdb_demangle_attempt_core_dump): Likewise.
6325 (gdb_demangle_signal_handler): New function.
6326 (gdb_demangle): If catch_demangler_crashes is set, install the
6327 above signal handler before calling bfd_demangle, and restore
6328 the original signal handler afterwards. Display the offending
6329 symbol and call demangler_warning the first time a segmentation
6331 (_initialize_cp_support): New maint set/show command.
6335 * utils.h (resource_limit_kind): New enum.
6336 (can_dump_core): New declaration.
6337 (warn_cant_dump_core): Likewise.
6338 (dump_core): Likewise.
6339 * utils.c (dump_core): Made nonstatic. Added new
6340 parameter "limit_kind".
6341 (can_dump_core): Made nonstatic. Moved printing code to...
6342 (warn_cant_dump_core): New function.
6343 (can_dump_core_warn): Likewise.
6344 (internal_vproblem): Replace calls to can_dump_core with
6345 calls to can_dump_core_warn. Supply new argument to each.
6349 * utils.h (demangler_vwarning): New declaration.
6350 (demangler_warning): Likewise.
6351 * utils.c (struct internal_problem)
6352 <user_settable_should_quit>: New field.
6353 <user_settable_should_dump_core>: Likewise
6354 (internal_error_problem): Add values for above new fields.
6355 (internal_warning_problem): Likewise.
6356 (demangler_warning_problem): New static global.
6357 (demangler_vwarning): New function.
6358 (demangler_warning): Likewise.
6359 (add_internal_problem_command): Selectively add commands.
6360 (_initialize_utils): New internal problem command.
6361 * maint.c (maintenance_demangler_warning): New function.
6362 (_initialize_maint_cmds): New command.
6366 * f-valprint.c (info_common_command_for_block): Update.
6367 * symtab.h (struct general_symbol_info) <common_block>: Now
6372 * symtab.h (struct symtab) <blockvector>: Now const.
6373 * ada-lang.c (ada_add_global_exceptions): Update.
6374 * buildsym.c (augment_type_symtab): Update.
6375 * dwarf2read.c (dw2_lookup_symbol): Update.
6376 * jit.c (finalize_symtab): Update.
6377 * jv-lang.c (add_class_symtab_symbol): Update.
6378 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6380 * objfiles.c (objfile_relocate1): Update.
6381 * psymtab.c (lookup_symbol_aux_psymtabs)
6382 (maintenance_check_psymtabs): Update.
6383 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6385 * spu-tdep.c (spu_catch_start): Update.
6386 * symmisc.c (dump_symtab_1): Update.
6387 * symtab.c (lookup_global_symbol_from_objfile)
6388 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6389 (basic_lookup_transparent_type_quick)
6390 (basic_lookup_transparent_type, find_pc_sect_symtab)
6391 (find_pc_sect_line, search_symbols): Update.
6392 * block.c (find_block_in_blockvector): Make "bl" const.
6393 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6395 (blockvector_contains_pc): Make "bv" const.
6396 (block_for_pc_sect): Update.
6397 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6398 (blockvector_contains_pc): Update.
6399 * breakpoint.c (resolve_sal_pc): Update.
6400 * inline-frame.c (block_starting_point_at): Update.
6404 * completer.c (complete_line): Make "line_buffer" const.
6405 * completer.h (complete_line): Update.
6409 * symtab.c (add_macro_name): Remove unneeded cast.
6413 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6414 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6418 * probe.c (info_probes_for_ops): Make "arg" const.
6419 * probe.h (info_probes_for_ops): Update.
6423 * varobj.c (varobj_create): Update.
6424 * valops.c (value_of_this): Update.
6425 * tracepoint.c (add_local_symbols, scope_info): Update.
6426 * symtab.h (struct general_symbol_info) <block>: Now const.
6427 * symtab.c (skip_prologue_sal)
6428 (default_make_symbol_completion_list_break_on)
6429 (skip_prologue_using_sal): Update.
6430 * stack.h (iterate_over_block_locals)
6431 (iterate_over_block_local_vars): Update.
6432 * stack.c (print_frame_args): Update.
6433 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6435 (get_selected_block): Make return type const.
6436 * python/py-frame.c (frapy_block): Update.
6437 * python/py-block.c (gdbpy_block_for_pc): Update.
6438 * p-exp.y (%union) <bval>: Now const.
6439 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6440 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6441 * m2-exp.y (%union) <bval>: Now const.
6442 * linespec.c (get_current_search_block): Make return type const.
6443 (create_sals_line_offset, find_label_symbols): Update.
6444 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6446 (block_starting_point_at): Make "block" const.
6447 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6448 (check_exception_resume): Update.
6449 * guile/scm-frame.c (gdbscm_frame_block): Update.
6450 * guile/scm-block.c (gdbscm_lookup_block): Update.
6451 * frame.h (get_frame_block): Update.
6452 (get_selected_block): Make return type const.
6453 * frame.c (frame_id_inner): Update.
6454 * f-valprint.c (info_common_command_for_block)
6455 (info_common_command): Update.
6456 * dwarf2loc.c (dwarf2_find_location_expression)
6457 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6458 (locexpr_describe_location_piece): Update.
6459 * c-exp.y (%union) <bval>: Now const.
6460 * breakpoint.c (resolve_sal_pc): Update.
6461 * blockframe.c (get_frame_block):Make return type const.
6462 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6463 (block_innermost_frame): Update.
6464 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6465 (block_for_pc, block_for_pc_sect): Update.
6466 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6468 (block_for_pc_sect, block_for_pc): Make return type const.
6469 * ax-gdb.c (gen_expr): Update.
6470 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6471 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6472 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6473 (ada_read_var_value): Update.
6474 * ada-exp.y (struct name_info) <block>: Now const.
6476 (block_lookup): Constify.
6480 * nat/i386-dregs.h: New file.
6481 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6482 * i386-nat.h (i386-dregs.h): New include.
6483 (DR_FIRSTADDR): Now in i386-dregs.h.
6484 (DR_LASTADDR): Likewise.
6485 (DR_NADDR): Likewise.
6486 (DR_STATUS): Likewise.
6487 (DR_CONTROL): Likewise.
6488 (i386_debug_reg_state): Likewise.
6489 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6493 * breakpoint.c (set_longjmp_breakpoint): Call
6494 momentary_breakpoint_from_master with additional argument.
6495 (set_longjmp_breakpoint_for_call_dummy): Call
6496 momentary_breakpoint_from_master with additional argument.
6497 (set_std_terminate_breakpoint): Call
6498 momentary_breakpoint_from_master with additional argument.
6499 (momentary_breakpoint_from_master): Add argument to function
6500 definition and use it to initialize structure member flag.
6501 (clone_momentary_breakpoint): Call
6502 momentary_breakpoint_from_master with additional argument.
6503 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6504 member flags set in momentary_breakpoint_from_master.
6508 * i386-nat.c (i386_show_dr): Renamed to
6509 i386_dr_show and made nonstatic. All uses updated.
6510 (i386_length_and_rw_bits): Renamed to
6511 i386_dr_length_and_rw_bits and made nonstatic.
6513 (i386_insert_aligned_watchpoint): Renamed to
6514 i386_dr_insert_aligned_watchpoint and made nonstatic.
6516 (i386_remove_aligned_watchpoint): Renamed to
6517 i386_dr_remove_aligned_watchpoint and made nonstatic.
6519 (i386_update_inferior_debug_regs): Renamed to
6520 i386_dr_update_inferior_debug_regs and made nonstatic.
6525 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6526 (i386_dr_low_can_set_control): Likewise.
6527 (i386_dr_low_set_addr): Likewise.
6528 (i386_dr_low_set_control): Likewise.
6529 (i386_dr_low_get_addr): Likewise.
6530 (i386_dr_low_get_status): Likewise.
6531 (i386_dr_low_get_control): Likewise.
6532 (i386_insert_aligned_watchpoint): Use new macros.
6533 (i386_update_inferior_debug_regs): Likewise.
6534 (i386_stopped_data_address): Likewise.
6538 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6539 New parameter. All uses updated.
6543 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6548 * i386-nat.c (debug_printf): New macro.
6549 (i386_get_debug_register_length): Likewise.
6550 (TARGET_HAS_DR_LEN_8): Use above macro.
6551 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6552 and printf_unfiltered. Use phex to format values.
6556 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6561 * i386-nat.c: Comment changes.
6565 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6569 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6570 (i386_insert_aligned_watchpoint): Likewise.
6571 (i386_remove_aligned_watchpoint): Likewise.
6572 (i386_handle_nonaligned_watchpoint): Likewise.
6576 * i386-nat.c: Whitespace changes.
6580 * MAINTAINERS: Update Roland McGrath's email address.
6581 Thanks to Sergio Durigan Junior for pointing out that he left
6582 Red Hat a while ago, and giving me a current address.
6586 * utils.h (savestring): Remove declaration.
6590 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6595 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6596 to update the varobj if inferior_ptid is null_ptid.
6600 * target.h (struct target_ops) <to_info_proc>: Make parameter
6602 (target_info_proc): Update.
6603 * target.c (target_info_proc): Make "args" const.
6604 * procfs.c (procfs_info_proc): Update.
6605 * linux-tdep.c (linux_info_proc): Update.
6606 (linux_core_info_proc_mappings): Make "args" const.
6607 (linux_core_info_proc): Update.
6608 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6609 * gdbarch.c: Rebuild.
6610 * gdbarch.h: Rebuild.
6611 * corelow.c (core_info_proc): Update.
6615 * target.h (struct target_ops) <to_disconnect>: Make parameter
6617 (target_disconnect): Update.
6618 * target.c (target_disconnect): Make "args" const.
6619 * target-delegates.c: Rebuild.
6620 * remote.c (remote_disconnect): Update.
6621 * record.h (record_disconnect): Update.
6622 * record.c (record_disconnect): Update.
6623 * inf-child.c (inf_child_disconnect): Update.
6627 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6628 * target.c (debug_to_rcmd, default_rcmd): Update.
6629 * target-delegates.c: Rebuild.
6630 * remote.c (remote_rcmd): Update.
6631 * monitor.c (monitor_rcmd): Update.
6635 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6636 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6637 have OBJF_SHARED set.
6638 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6639 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6640 instead of OBJF_USERLOADED.
6641 * objfiles.h (OBJF_SHARED): Update comment.
6642 (userloaded_objfile_contains_address_p): Rename to ...
6643 (shared_objfile_contains_address_p): ... this, and update
6645 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6647 (remove_symbol_file_command): Skip objfiles that don't have
6652 * minsyms.h (prim_record_minimal_symbol)
6653 (prim_record_minimal_symbol_and_info): Update comments.
6657 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6658 or --without-guile, according to how GDB was built.
6662 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6664 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6666 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6668 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6669 help_list.Pass all_commands, not -1, to help_list.
6670 * cli/cli-dump.c (dump_command, append_command)
6671 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6672 (binary_dump_command, binary_append_command): Pass all_commands,
6673 not -1, to help_list.
6674 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6676 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6678 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6680 * top.c (set_history): Pass all_commands, not -1, to help_list.
6681 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6682 all_commands, not -1, to help_list.
6683 * symfile.c (overlay_command): Pass all_commands, not -1, to
6685 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6687 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6689 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6691 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6692 not -1, to help_list.
6693 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6694 not -1, to help_list.
6695 * maint.c (maintenance_command, maintenance_info_command)
6696 (maintenance_print_command, maintenance_set_cmd): Pass
6697 all_commands, not -1, to help_list.
6698 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6700 * language.c (set_check): Pass all_commands, not -1, to help_list.
6701 * infcmd.c (unset_command): Pass all_commands, not -1, to
6703 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6705 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6707 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6709 * breakpoint.c (save_command): Pass all_commands, not -1, to
6711 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6712 all_commands, not -1, to help_list.
6716 * regcache.c (struct register_to_invalidate): New structure.
6717 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6719 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6723 * varobj.c (varobj_get_num_children): Call
6724 varobj_is_dynamic_p.
6725 (varobj_list_children): Likewise.
6726 (varobj_update): Likewise. Update comments.
6730 * varobj.c (varobj_pretty_printed_p): Rename to ...
6731 (varobj_is_dynamic_p): ... this. New function.
6732 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6733 (varobj_is_dynamic_p): Declare.
6734 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6735 (mi_print_value_p, varobj_update_one): Likewise.
6740 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6741 (varobj_get_iterator): Wrap up code for pretty-printer by
6742 "#if HAVE_PYTHON" and "#endif".
6743 (update_dynamic_varobj_children): Likewise.
6748 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6749 gdb_python_initialized is false. Move some code from varobj.c.
6750 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6751 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6752 (struct varobj_item): Moved to varobj-iter.h".
6753 (varobj_clear_saved_item): New function.
6754 (update_dynamic_varobj_children): Move python-related code to
6756 (free_variable): Call varobj_clear_saved_item and
6762 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6763 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6764 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6765 (py-varobj.o): New rule.
6766 * python/py-varobj.c: New file.
6767 * python/python-internal.h (py_varobj_get_iterator): Declare.
6768 * varobj-iter.h: New file.
6769 * varobj.c: Include "varobj-iter.h"
6770 (struct varobj) <child_iter>: Change its type from "PyObject *"
6771 to "struct varobj_iter *".
6772 <saved_item>: Likewise.
6773 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6774 [HAVE_PYTHON] (varobj_get_iterator): New function.
6775 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6776 python-specific code to python/py-varobj.c.
6777 (install_visualizer): Call varobj_iter_delete instead of
6779 * varobj.h (varobj_ensure_python_env): Declare.
6783 * varobj.c (struct varobj_item): New structure.
6784 (create_child_with_value): Update declaration.
6785 (varobj_add_child): Replace arguments 'name' and 'value' with
6786 'item'. All callers updated.
6787 (install_dynamic_child): Likewise.
6788 (update_dynamic_varobj_children): Likewise.
6789 (varobj_add_child): Likewise.
6790 (create_child_with_value): Likewise.
6794 * NEWS: Create a new section for the next release branch.
6795 Rename the section of the current branch, now that it has
6800 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6801 * version.in: Bump version to 7.8.50.DATE-cvs.
6806 * ser-mingw.c (net_windows_socket_check_pending): New function.
6807 (net_windows_select_thread): Ignore spurious wakeups. Use
6808 net_windows_socket_check_pending.
6809 (net_windows_wait_handle): Check for pending events with
6810 ioctlsocket, through net_windows_socket_check_pending, instead of
6811 checking the socket's event.
6815 * python/python-internal.h (gdb_PyObject_GetAttrString)
6816 (gdb_PyObject_HasAttrString): New inline function definitions.
6817 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6818 char * of the second argument to PyObject_GetAttrString.
6822 * serial.c (serial_write): Fix index of character to be printed
6823 in call to serial_logchar when serial debug traces are enabled.
6827 * gdbtypes (resolve_dynamic_range): Add function description.
6831 * linux-nat.c (linux_child_follow_fork): Initialize status with
6832 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6833 inner block. Only pass the signal to PTRACE_DETACH if in pass
6838 * common/signals.c (gdb_signal_from_host): Reorder to separate
6839 the always-available ANSI-standard signals from the signals that
6841 (do_gdb_signal_to_host): Likewise.
6842 * proc-events.c (signal_table): Likewise.
6846 * common/linux-ptrace.c (linux_disable_event_reporting): New
6848 * common/linux-ptrace.h (linux_disable_event_reporting): New
6850 * linux-nat.c (linux_child_follow_fork): Do a single step before
6857 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6858 from symbol_matches_domain in symtab.c. All local callers
6859 of symbol_matches_domain updated.
6860 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6861 search STRUCT_DOMAIN.
6862 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6863 independently. standard_lookup will do that automatically.
6864 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6865 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6866 (cp_lookup_symbol_in_namespace): Likewise.
6867 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6868 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6869 may return a STRUCT_DOMAIN match.
6870 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6871 * cp-support.c: Include language.h.
6872 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6874 * psymtab.c (match_partial_symbol): Compare the requested
6875 domain with the symbol's domain directly.
6876 (lookup_partial_symbol): Likewise.
6877 * symtab.c (lookup_symbol_in_language): Explain when/why
6878 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6879 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6880 appropriate languages.
6881 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6882 and moved to ada-lang.c
6883 (lookup_block_symbol): Explain that this function only returns
6884 symbol matching the requested DOMAIN.
6885 Compare the requested domain with the symbol's domain directly.
6886 (iterate_over_symbols): Compare the requested domain with the
6887 symbol's domain directly.
6888 * symtab.h (symbol_matches_domain): Remove.
6892 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6893 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6894 (gdbscm_guile_version_is_at_least): Declare.
6895 (gdbscm_scm_string_to_int): Declare.
6896 * guile/guile.c (gdbscm_guile_major_version): New global.
6897 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6898 (guile_datadir): New static global.
6899 (gdbscm_guile_data_directory): New function.
6900 (initialize_scheme_side): Update.
6901 (misc_guile_functions): Add guile-data-directory.
6902 (initialize_gdb_module): Fetch guile version number.
6903 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6904 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6905 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6906 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6908 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6909 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6910 * guile/scm-value.c (gdbscm_value_to_string): Only call
6911 scm_port_conversion_strategy if Guile version >= 2.0.6.
6915 * main.c (print_gdb_help): Add -q and --silent.
6919 * common/signals.c: Remove preprocessor conditionals for
6920 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6921 SIGSEGV and SIGTERM.
6922 * proc-events.c: Likewise.
6926 * symfile.c (symfile_free_objfile): Remove restriction to
6928 * symfile-mem.c (symbol_file_add_from_memory): Call
6929 add_target_sections_of_objfile.
6933 * guile/scm-value.c (gdbscm_history_append_x): Use
6934 'vlscm_get_value_smob_arg_unsafe' instead of
6935 'vlscm_scm_to_value'.
6940 * utils.c (printchar): Don't escape at all if quoter is NUL.
6941 Update function documentation to clarify effect of parameter
6943 * remote.c (escape_buffer): Pass '\\' as the quoter to
6944 fputstrn_unfiltered.
6945 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6946 generate the output.
6947 (mi_solib_unloaded): Same.
6951 * development.sh: Delete.
6952 * Makefile.in (config.status): Adjust dependency on development.sh.
6953 * configure.ac: Adjust development.sh source call.
6954 * configure: Regenerate.
6958 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6959 is_scheme_bkpt, spec.
6960 (bpscm_make_breakpoint_smob): Initialize new members.
6961 (gdbscm_create_breakpoint_x): Split into two ...
6962 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6963 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6964 (scheme_function breakpoint_functions): Update.
6965 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6966 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6967 register-breakpoint!.
6972 * mem-break.c (z_type_supported): Return zero if
6973 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6977 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6978 value_from_contents_and_address_unresolved.
6979 (ada_template_to_fixed_record_type_1): Likewise.
6980 (ada_which_variant_applies): Likewise.
6981 * value.h (value_from_contents_and_address_unresolved): Declare.
6982 * value.c (value_from_contents_and_address_unresolved): New
6984 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6985 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6986 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6990 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6994 * procfs.c (procfs_attach): Make "args" const.
6995 * windows-nat.c (windows_attach): Make "args" const.
6996 * nto-procfs.c (procfs_attach): Make "args" const.
6997 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6998 * go32-nat.c (go32_attach): Make "args" const.
6999 * gnu-nat.c (gnu_attach): Make "args" const.
7000 * darwin-nat.c (darwin_attach): Make "args" const.
7001 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
7002 * linux-nat.c (linux_nat_attach): Make "args" const.
7003 * remote.c (extended_remote_attach_1, extended_remote_attach):
7005 * target.h (struct target_ops) <to_attach>: Make "args" const.
7006 (find_default_attach): Likewise.
7007 * utils.c (parse_pid_to_attach): Make "args" const.
7008 * utils.h (parse_pid_to_attach): Update.
7012 * target-delegates.c: Rebuild.
7013 * target.c (default_thread_address_space): New function.
7014 (target_thread_address_space): Simplify.
7015 * target.h (struct target_ops) <to_thread_address_space>: Add
7016 TARGET_DEFAULT_FUNC.
7020 * guile/scm-type.c (type_smob): Remove duplicate typedef.
7024 * record-btrace.c: Include event-loop.h and inf-loop.h.
7025 (record_btrace_resume_exec_dir)
7026 (record_btrace_async_inferior_event_handler)
7027 (record_btrace_handle_async_inferior_event): New.
7028 (record_btrace_open): Create async event handler.
7029 (record_btrace_close): Delete async event handler.
7030 (record_btrace_resume): Set record_btrace_resume_exec_dir,
7031 Mark async event handler.
7032 (record_btrace_execution_direction): New.
7033 (init_record_btrace_ops): Initialize to_execution_direction.
7037 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
7038 (gdbscm_make_parameter): Ditto.
7042 * exec.c (exec_close_1): Call clear_section_table instead of
7043 resize_section_table.
7044 (clear_section_table): New function.
7045 (resize_section_table): Make static. Rename arg num_added to
7047 * exec.h (clear_section_table): Declare.
7048 (resize_section_table): Delete.
7049 * progspace.c (release_program_space): Call clear_section_table
7050 instead of resize_section_table.
7054 * NEWS (Python Scripting): Add entry about the new xmethods
7059 * python/py-xmethods.c: New file.
7060 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7061 (objfpy_dealloc): XDECREF on the new xmethods field.
7062 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7064 (objfpy_get_xmethods): New function.
7065 (objfile_getset): New entry 'xmethods'.
7066 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7067 (pspy_dealloc): XDECREF on the new xmethods field.
7068 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7070 (pspy_get_xmethods): New function.
7071 (pspace_getset): New entry 'xmethods'.
7072 * python/python-internal.h: Add declarations for new functions.
7073 * python/python.c (_initialize_python): Invoke
7074 gdbpy_initialize_xmethods.
7075 * python/lib/gdb/__init__.py (xmethods): New
7077 * python/lib/gdb/xmethod.py: New file.
7078 * python/lib/gdb/command/xmethods.py: New file.
7082 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7083 best match method returned by find_overload_match is an xmethod.
7084 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7085 the best matching operator returned by find_overload_match is an
7087 * valops.c: #include "extension.h".
7088 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7089 Return void. The list of matching source methods is returned in
7090 "fn_list" and a vector of matching debug method workers is
7091 returned in "xm_worker_vec". Update all callers.
7092 (value_find_oload_method_list): Likewise.
7093 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7094 non-NULL, then the index of the best matching method in this
7095 vector is returned. Update all callers.
7096 (find_overload_match): Include xmethods while performing overload
7101 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7102 * extension-priv.h (struct extension_language_ops): Add the
7104 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7105 get_matching_xmethod_workers, get_xmethod_argtypes,
7106 invoke_xmethod, free_xmethod_worker,
7107 free_xmethod_worker_vec): New functions.
7108 * extension.h: #include "common/vec.h".
7109 New function declarations.
7110 (struct xmethod_worker): New struct.
7111 (VEC (xmethod_worker_ptr)): New vector type.
7112 (xmethod_worker_ptr): New typedef.
7113 (xmethod_worker_vec): Likewise.
7114 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7116 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7117 (struct builtin_type): New field "xmethod".
7118 * valarith.c (value_ptradd): Assert that the value argument is not
7120 * valops.c (value_must_coerce_to_target): Return 0 for
7121 lval_xcallable values.
7122 * value.c (struct value): New field XM_WORKER in the field
7124 (value_address, value_raw_address): Return 0 for lval_xcallable
7126 (set_value_address): Assert that the value is not an
7128 (value_free): Free the associated xmethod worker when freeing
7129 lval_xcallable values.
7130 (set_value_component_location): Assert that the WHOLE value is not
7132 (value_of_xmethod, call_xmethod): New functions.
7133 * value.h: Declare "struct xmethod_worker".
7134 Declare new functions value_of_xmethod, call_xmethod.
7139 PR breakpoints/17000
7140 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7141 New function, extracted from software_breakpoint_inserted_here_p.
7142 (software_breakpoint_inserted_here_p): Replace factored out code
7143 by call to find_non_raw_software_breakpoint_inserted_here.
7144 (bp_target_info_copy_insertion_state): New function.
7145 (bkpt_insert_location): Handle the case of a single-step
7146 breakpoint already inserted at the same address.
7147 (bkpt_remove_location): Handle the case of a single-step
7148 breakpoint still inserted at the same address.
7149 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7150 breakpoint already inserted at the same address.
7151 (deprecated_remove_raw_breakpoint): Handle the case of a
7152 non-raw breakpoint still inserted at the same address.
7153 (find_single_step_breakpoint): New function, extracted from
7154 single_step_breakpoint_inserted_here_p.
7155 (find_single_step_breakpoint): New function,
7156 factored out from single_step_breakpoint_inserted_here_p.
7157 (single_step_breakpoint_inserted_here_p): Reimplement.
7162 * source.c (show_substitute_path_command): Fix display of matching
7167 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7171 Add parameter support for Guile.
7172 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7173 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7174 (scm-param.o): New rule.
7175 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7176 (gdbscm_misc_error): Declare.
7177 (gdbscm_canonicalize_command_name): Declare.
7178 (gdbscm_scm_to_host_string): Declare.
7179 (gdbscm_scm_from_host_string): Declare.
7180 (gdbscm_initialize_parameters): Declare.
7181 * guile/guile.c (initialize_gdb_module): Call
7182 gdbscm_initialize_parameters.
7183 * guile/lib/gdb.scm: Export parameter symbols.
7184 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7185 cmdscm_canonicalize_name and made public. All callers updated.
7186 * guile/scm-exception.c (gdbscm_misc_error): New function.
7187 * guile/scm-param.c: New file.
7188 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7189 (gdbscm_scm_to_host_string): New function.
7190 (gdbscm_scm_from_host_string): New function.
7191 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7195 Add command support for Guile.
7196 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7197 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7198 (scm-cmd.o): New rule.
7199 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7200 (gdbscm_user_error_p): Declare.
7201 (gdbscm_parse_command_name): Declare.
7202 (gdbscm_valid_command_class_p): Declare.
7203 (gdbscm_initialize_commands): Declare.
7204 * guile/guile.c (initialize_gdb_module): Call
7205 gdbscm_initialize_commands.
7206 * guile/lib/gdb.scm: Export command symbols.
7207 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7208 (throw-user-error): New function.
7209 * guile/scm-cmd.c: New file.
7210 * guile/scm-exception.c (user_error_symbol): New static global.
7211 (gdbscm_user_error_p): New function.
7212 (gdbscm_initialize_exceptions): Set user_error_symbol.
7213 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7217 * top.c (command_loop): Handle comments here...
7218 (command_line_input): ... not here.
7222 Add progspace support for Guile.
7223 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7224 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7225 (scm-progspace.o): New rule.
7226 * guile/guile-internal.h (pspace_smob): New typedef.
7227 (psscm_pspace_smob_pretty_printers): Declare.
7228 (psscm_pspace_smob_from_pspace): Declare.
7229 (psscm_scm_from_pspace): Declare.
7230 * guile/guile.c (initialize_gdb_module): Call
7231 gdbscm_initialize_pspaces.
7232 * guile/lib/gdb.scm: Export progspace symbols.
7233 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7235 (append-pretty-printer!): Ditto.
7236 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7238 * guile/scm-progspace.c: New file.
7242 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7243 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7247 Add support for skeletonless type units.
7248 * dwarf2read.c (struct dwarf2_per_objfile): New member
7249 n_allocated_type_units.
7250 (struct dwarf2_per_objfile) <tu_stats>: New member
7251 nr_all_type_units_reallocs.
7252 (create_signatured_type_table_from_index): Initialize
7253 n_allocated_type_units
7254 (create_all_type_units): Ditto.
7255 (add_type_unit): Move up in file. New arg slot.
7256 All callers updated. Increase space for all_type_units more
7258 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7259 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7260 (lookup_dwp_signatured_type): Ditto.
7261 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7262 All callers updated.
7263 (build_type_psymtabs_1): Leave type_unit_groups as
7264 NULL if no TUs present.
7265 (print_tu_stats): New function.
7266 (process_skeletonless_type_unit): New function.
7267 (process_dwo_file_for_skeletonless_type_units): New
7269 (process_skeletonless_type_units): New function.
7270 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7271 Call print tu_stats if debugging enabled.
7275 * breakpoint.c (build_target_command_list): Don't build a command
7276 list if we have any duplicate location that isn't a dprintf.
7280 * breakpoint.c (dprintf_breakpoint_hit): New function.
7281 (initialize_breakpoint_ops): Install it as dprintf's
7282 breakpoint_hit method.
7286 * source.c (substitute_path_rule_matches): Simplify using
7287 filename_ncmp instead of FILENAME_CMP.
7291 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7295 * configure.ac: When Guile is available, check for the
7296 availability of 'scm_new_smob'.
7297 * configure, config.h.in: Regenerate.
7298 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7303 * frame.c (struct frame_info): Add stop_string field.
7304 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7305 (get_prev_frame_always): Old content moved into
7306 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7307 TRY_CATCH, handle MEMORY_ERROR exceptions.
7308 (frame_stop_reason_string): New function definition.
7309 * frame.h (unwind_stop_reason_to_string): Extend comment to
7310 mention frame_stop_reason_string.
7311 (frame_stop_reason_string): New function declaration.
7312 * stack.c (frame_info): Switch to frame_stop_reason_string.
7313 (backtrace_command_1): Switch to frame_stop_reason_string.
7314 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7315 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7316 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7320 * frame.c (frame_stop_reason_string): Rename to ...
7321 (unwind_stop_reason_to_string): this.
7322 * frame.h (frame_stop_reason_string): Rename to ...
7323 (unwind_stop_reason_to_string): this.
7324 * stack.c (frame_info): Update call to frame_stop_reason_string.
7325 (backtrace_command_1): Likewise.
7326 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7327 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7331 * frame.c (remove_prev_frame): New function.
7332 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7337 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7338 and make it const. When a single-step decays to a continue,
7339 clear 'step', not 'hw_step'. Pass whether the caller wanted
7340 to step to user_visible_resume_ptid, not what we ask the
7345 * infrun.c (process_event_stop_test, handle_step_into_function)
7346 (handle_step_into_function_backward): Adjust.
7347 Don't set the even thread's stop_step and call stop_waiting before
7348 calling end_stepping_range. Instead do that ...
7349 (end_stepping_range): ... here. Take an ecs pointer parameter.
7353 * infrun.c (stop_stepping): Rename to ...
7354 (stop_waiting): ... this.
7355 (proceed): Update comment.
7356 (process_event_stop_test, handle_inferior_event)
7357 (handle_signal_stop, handle_step_into_function)
7358 (handle_step_into_function_backward): Update.
7362 * infcall.c (run_inferior_call): Don't check whether the current
7363 thread is running after the proceed call.
7368 * NEWS: Mention "maint set target-async", "set mi-async", and that
7369 background execution commands are now always available.
7370 * target.h (target_async_permitted): Update comment.
7371 * target.c (target_async_permitted, target_async_permitted_1):
7373 (set_target_async_command): Rename to ...
7374 (maint_set_target_async_command): ... this.
7375 (show_target_async_command): Rename to ...
7376 (maint_show_target_async_command): ... this.
7377 (_initialize_target): Adjust.
7378 * infcmd.c (prepare_execution_command): Make extern.
7379 * inferior.h (prepare_execution_command): Declare.
7380 * infrun.c (set_observer_mode): Leave target async alone.
7381 * mi/mi-interp.c (mi_interpreter_init): Install
7382 mi_on_sync_execution_done as sync_execution_done observer.
7383 (mi_on_sync_execution_done): New function.
7384 (mi_execute_command_input_handler): Don't print the prompt if we
7385 just started a synchronous command with an async target.
7386 (mi_on_resume): Check sync_execution before printing prompt.
7387 * mi/mi-main.h (mi_async_p): Declare.
7388 * mi/mi-main.c: Include gdbcmd.h.
7389 (mi_async_p): New function.
7390 (mi_async, mi_async_1): New globals.
7391 (set_mi_async_command, show_mi_async_command, mi_async): New
7393 (exec_continue): Call prepare_execution_command.
7394 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7395 (mi_execute_async_cli_command): Use mi_async_p.
7396 (_initialize_mi_main): Install "set mi-async". Make
7397 "target-async" a deprecated alias.
7401 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7402 (_initialize_cli_interp): Adjust.
7403 * event-loop.c: Include "observer.h".
7404 (start_event_loop): Notify 'command_error' observers instead of
7405 calling display_gdb_prompt. Remove FIXME comment.
7406 * event-top.c (display_gdb_prompt): Remove call into the
7408 * inf-loop.c: Include "observer.h".
7409 (inferior_event_handler): Notify 'command_error' observers instead
7410 of calling display_gdb_prompt.
7411 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7412 observers instead of calling display_gdb_prompt.
7413 * interps.c (interp_set): Don't call display_gdb_prompt.
7414 (current_interp_display_prompt_p): Delete.
7415 * interps.h (interp_prompt_p): Delete declaration.
7416 (interp_prompt_p_ftype): Delete.
7417 (struct interp_procs) <prompt_proc_p>: Delete field.
7418 (current_interp_display_prompt_p): Delete declaration.
7419 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7420 (_initialize_mi_interp): Adjust.
7421 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7422 'command_error' observers.
7423 (tui_on_sync_execution_done, tui_on_command_error): New
7425 (tui_display_prompt_p): Delete.
7426 (_initialize_tui_interp): Adjust.
7431 * cli/cli-interp.c: Include infrun.h and observer.h.
7432 (cli_uiout, cli_interp): New globals.
7433 (cli_on_signal_received, cli_on_end_stepping_range)
7434 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7436 (cli_interpreter_init): Install them as 'end_stepping_range',
7437 'signal_received' 'signal_exited', 'exited' and 'no_history'
7439 (_initialize_cli_interp): Remove cli_interp local.
7440 * infrun.c (handle_inferior_event): Call the several stop reason
7441 observers instead of printing the stop reason directly.
7442 (end_stepping_range): New function.
7443 (print_end_stepping_range_reason, print_signal_exited_reason)
7444 (print_exited_reason, print_signal_received_reason)
7445 (print_no_history_reason): Make static, and add an uiout
7446 parameter. Print to that instead of to CURRENT_UIOUT.
7447 * infrun.h (print_end_stepping_range_reason)
7448 (print_signal_exited_reason, print_exited_reason)
7449 (print_signal_received_reason print_no_history_reason): New
7451 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7453 <cli_uiout>: New field.
7454 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7455 uiout for CLI output. Install 'signal_received',
7456 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7458 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7459 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7460 (mi_on_no_history): New functions.
7461 (ui_out_free_cleanup): Delete function.
7462 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7463 instead use the one already stored in the MI interpreter data.
7464 (mi_ui_out): Adjust.
7465 * tui/tui-interp.c: Include infrun.h and observer.h.
7466 (tui_interp): New global.
7467 (tui_on_signal_received, tui_on_end_stepping_range)
7468 (tui_on_signal_exited, tui_on_exited)
7469 (tui_on_no_history): New functions.
7470 (tui_init): Install them as 'end_stepping_range',
7471 'signal_received' 'signal_exited', 'exited' and 'no_history'
7473 (_initialize_tui_interp): Delete tui_interp local.
7478 * linux-nat.c (linux_nat_resume_callback): Rename the second
7479 parameter to 'except'. Skip LP if it points to EXCEPT.
7480 (linux_nat_resume): Don't mark the event lwp as not stopped
7481 before resuming sibling lwps. Instead ask
7482 linux_nat_resume_callback to skip the event lwp. Mark it as not
7483 stopped after actually resuming it.
7484 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7486 (wait_lwp): Mark the lwp as stopped here.
7487 (stop_wait_callback): Mark the lwp as not stopped right after
7488 resuming it. Don't mark lwps as stopped here.
7489 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7490 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7495 * infrun.c (resume): Determine how much to resume depending on
7496 whether the caller wanted a step, not whether we can hardware step
7497 the target. Mark all threads that we intend to run as running,
7498 unless we're calling an inferior function.
7499 (normal_stop): If the thread is running an infcall, don't finish
7501 * target.c (target_resume): Don't mark threads as running here.
7505 * serial.c (_initialize_serial): Remove support for
7506 the "set remotebaud" and "show remotebaud" commands.
7507 * NEWS: Add entry documenting the removal of that command.
7511 * charset.c: Fix typo in comments.
7515 * utils.c (internal_vproblem): Prompt for a bug report.
7519 * guile/scm-arch.c (arscm_mark_arch_smob):
7520 * guile/scm-block.c (bkscm_mark_block_smob)
7521 (bkscm_mark_block_syms_progress_smob):
7522 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7523 * guile/scm-exception.c (exscm_mark_exception_smob):
7524 * guile/scm-frame.c (frscm_mark_frame_smob):
7525 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7526 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7527 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7528 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7529 (ppscm_mark_pretty_printer_worker_smob):
7530 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7531 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7532 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7533 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7535 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7541 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7542 empty_base_class. All uses updated.
7543 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7544 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7546 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7547 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7548 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7549 (gdbscm_gsmob_has_property_p, add_property_name)
7550 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7551 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7552 (gdb-object-has-property?, gdb-object-properties): Remove.
7553 (gdb-object-kind): Renamed from gsmob-kind.
7557 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7558 * configure: Regenerate.
7562 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7566 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7567 (replay_memory_access_read_only, replay_memory_access_read_write)
7568 (replay_memory_access_types, replay_memory_access)
7569 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7570 (cmd_set_record_btrace, cmd_show_record_btrace)
7571 (cmd_show_replay_memory_access): New.
7572 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7573 (record_btrace_remove_breakpoint): Replace
7574 record_btrace_allow_memory_access with replay_memory_access.
7575 (_initialize_record_btrace): Add commands.
7576 * NEWS: Announce it.
7580 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7584 * MAINTAINERS (Write After Approval): Move self back from
7589 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7590 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7591 (disable_randomization, enum exec_direction_kind)
7592 (execution_direction, stop_registers, start_remote)
7593 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7594 (wait_for_inferior, normal_stop, get_last_target_status)
7595 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7596 (insert_step_resume_breakpoint_at_sal)
7597 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7598 (set_step_info, print_stop_event, signal_stop_state)
7599 (signal_print_state, signal_pass_state, signal_stop_update)
7600 (signal_print_update, signal_pass_update)
7601 (update_signals_program_target, clear_exit_convenience_vars)
7602 (displaced_step_dump_bytes, update_observer_mode)
7603 (signal_catch_update, gdb_signal_from_command): Move
7605 * infrun.h: ... to this new file.
7606 * amd64-tdep.c: Include infrun.h.
7607 * annotate.c: Include infrun.h.
7608 * arch-utils.c: Include infrun.h.
7609 * arm-linux-tdep.c: Include infrun.h.
7610 * arm-tdep.c: Include infrun.h.
7611 * break-catch-sig.c: Include infrun.h.
7612 * breakpoint.c: Include infrun.h.
7613 * common/agent.c: Include infrun.h instead of inferior.h.
7614 * corelow.c: Include infrun.h.
7615 * event-top.c: Include infrun.h.
7616 * go32-nat.c: Include infrun.h.
7617 * i386-tdep.c: Include infrun.h.
7618 * inf-loop.c: Include infrun.h.
7619 * infcall.c: Include infrun.h.
7620 * infcmd.c: Include infrun.h.
7621 * infrun.c: Include infrun.h.
7622 * linux-fork.c: Include infrun.h.
7623 * linux-nat.c: Include infrun.h.
7624 * linux-thread-db.c: Include infrun.h.
7625 * monitor.c: Include infrun.h.
7626 * nto-tdep.c: Include infrun.h.
7627 * procfs.c: Include infrun.h.
7628 * record-btrace.c: Include infrun.h.
7629 * record-full.c: Include infrun.h.
7630 * remote-m32r-sdi.c: Include infrun.h.
7631 * remote-mips.c: Include infrun.h.
7632 * remote-notif.c: Include infrun.h.
7633 * remote-sim.c: Include infrun.h.
7634 * remote.c: Include infrun.h.
7635 * reverse.c: Include infrun.h.
7636 * rs6000-tdep.c: Include infrun.h.
7637 * s390-linux-tdep.c: Include infrun.h.
7638 * solib-irix.c: Include infrun.h.
7639 * solib-osf.c: Include infrun.h.
7640 * solib-svr4.c: Include infrun.h.
7641 * target.c: Include infrun.h.
7642 * top.c: Include infrun.h.
7643 * windows-nat.c: Include infrun.h.
7644 * mi/mi-interp.c: Include infrun.h.
7645 * mi/mi-main.c: Include infrun.h.
7646 * python/py-threadevent.c: Include infrun.h.
7650 * infrun.c (handle_inferior_event): Store the exit code for
7651 --return-child-result here, instead of ...
7652 (print_exited_reason): ... here.
7657 * gdbthread.h (struct thread_control_state): New field
7659 * infrun.c (follow_fork): Copy the new thread control field to the
7661 (clear_proceed_status_thread): Clear the new thread control field.
7662 (proceed): Set the new thread control field.
7663 * interps.h (command_interp): Declare.
7664 * interps.c (command_interpreter): New global.
7665 (command_interp): New function.
7666 (interp_exec): Set `command_interpreter' while here.
7667 * cli-out.c (cli_uiout_dtor): New function.
7668 (cli_ui_out_impl): Install it.
7669 * mi/mi-interp.c: Include cli-out.h.
7670 (mi_cmd_interpreter_exec): Add comment.
7671 (restore_current_uiout_cleanup): New function.
7672 (ui_out_free_cleanup): New function.
7673 (mi_on_normal_stop): If finishing an execution command started by
7674 a CLI command, or any kind of breakpoint-like event triggered,
7675 print the stop event to the output (CLI) stream.
7676 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7680 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7681 current source line having changed.
7682 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7683 * infrun.c (normal_stop): Adjust call to
7684 set_current_sal_from_frame.
7685 * source.c (clear_lines_listed_range): New function.
7686 (set_current_source_symtab_and_line, identify_source_line): Clear
7687 the lines listed range.
7688 (line_info): Handle the first "info line" after the current source
7689 line having changed.
7690 * stack.c (print_stack_frame): Remove center handling.
7691 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7696 * inf-child.c (inf_child_mourn_inferior): New function.
7697 * inf-child.h (inf_child_mourn_inferior): New declaration.
7698 * darwin-nat.c (darwin_mourn_inferior): Use
7699 inf_child_mourn_inferior.
7700 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7701 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7702 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7703 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7704 * windows-nat.c (windows_mourn_inferior): Likewise.
7708 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7712 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7713 (gdbscm_out_of_range_error): Ditto.
7714 (gdbscm_memory_error): Ditto.
7715 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7716 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7717 (gdbscm_out_of_range_error): Update.
7718 (gdbscm_memory_error): Update.
7719 (gdbscm_scm_to_target_string_unsafe): Delete.
7723 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7725 (inf_child_open_target): New function.
7726 (inf_child_open): Use inf_child_open_target to push the target
7727 instead of erroring out.
7728 (inf_child_disconnect, inf_child_close)
7729 (inf_child_maybe_unpush_target): New functions.
7730 (inf_child_target): Install inf_child_disconnect and
7731 inf_child_close. Store a pointer to the returned object.
7732 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7734 * target.c (auto_connect_native_target): New global.
7735 (show_default_run_target): New function.
7736 (find_default_run_target): Return NULL if automatically connecting
7737 to the native target is disabled.
7738 (_initialize_target): Install set/show auto-connect-native-target.
7739 * NEWS: Mention "set auto-connect-native-target", and "target
7741 * linux-nat.c (super_close): New global.
7742 (linux_nat_close): Call super_close.
7743 (linux_nat_add_target): Store a pointer to the base class's
7745 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7746 inf_child_maybe_unpush.
7747 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7749 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7750 the inferior. Use inf_child_maybe_unpush_target.
7751 (inf_ttrace_attach): Don't push the target if it is already
7753 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7754 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7755 after mourning the inferior. Use inf_child_maybe_unpush_target.
7756 (darwin_attach_pid): Don't push the target if it is already
7758 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7759 mourning the inferior. Use inf_child_maybe_unpush_target.
7760 (gnu_detach): Use inf_child_maybe_unpush_target.
7761 * go32-nat.c (go32_create_inferior): Don't push the target if it
7763 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7764 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7765 (procfs_open): Rename to ...
7766 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7767 comments. Can target_preopen before changing node. Call
7768 inf_child_open_target to push the target explicitly.
7769 (procfs_attach): Don't push the target if it is already pushed.
7770 (procfs_detach): Use inf_child_maybe_unpush_target.
7771 (procfs_create_inferior): Don't push the target if it is already
7773 (nto_native_ops): New global.
7774 (procfs_open): Reimplement.
7775 (procfs_native_open): New function.
7776 (init_procfs_targets): Install procfs_native_open as to_open of
7777 "target native". Store a pointer to the "native" target in
7779 * procfs.c (procfs_attach): Don't push the target if it is already
7781 (procfs_detach): Use inf_child_maybe_unpush_target.
7782 (procfs_mourn_inferior): Only unpush the target after mourning the
7783 inferior. Use inf_child_maybe_unpush_target.
7784 (procfs_init_inferior): Don't push the target if it is already
7786 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7787 if it is already pushed.
7791 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7792 and "procfs" targets are now called "native" instead.
7796 * go32-nat.c (go32_open): Delete.
7797 (go32_target): Don't override the to_open method.
7801 * nto-procfs.c (procfs_can_run): New function.
7802 (nto_procfs_ops): New global.
7803 (init_procfs_targets): New, based on procfs_target. Install
7804 "target native" in addition to "target procfs".
7805 (_initialize_procfs): Call init_procfs_targets instead of adding
7810 * windows-nat.c (windows_target): Don't override to_shortname,
7811 to_longname or to_doc.
7815 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7820 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7821 to_shortname, to_longname or to_doc.
7825 * go32-nat.c (go32_target): Don't override to_shortname,
7826 to_longname or to_doc.
7830 * inf-child.c (inf_child_open): Remove mention of "child".
7831 (inf_child_target): Rename target to "native" instead of "child".
7835 * Makefile.in (SFILES): Delete "regset.c".
7836 (COMMON_OBS): Delete "regset.o".
7838 * regset.h (regset_alloc): Delete prototype.
7842 * sparc-linux-tdep.c (sparc32_linux_gregset)
7843 (sparc32_linux_fpregset): New static regset structures.
7844 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7845 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7847 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7848 (sparc64_linux_fpregset): New static regset structures.
7849 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7850 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7851 New static regset structures.
7852 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7853 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7854 New static regset structures.
7855 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7856 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7857 New static regset structures.
7858 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7859 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7860 New static regset structures.
7861 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7865 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7866 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7867 register maps ("regmaps") from "*regset" to "*regmap". Do this
7868 for all regmap types and variables.
7869 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7870 (sparc32_linux_supply_core_gregset)
7871 (sparc32_linux_collect_core_gregset)
7872 (sparc32_linux_supply_core_fpregset)
7873 (sparc32_linux_collect_core_fpregset): Likewise.
7874 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7875 (sparc_gregmap, sparc_fpregmap): ... these.
7876 (sparc_supply_gregset, sparc_collect_gregset)
7877 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7878 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7879 (_initialize_sparc_nat): Rename regmaps.
7880 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7881 (sparc_gregmap, sparc_fpregmap): ... these.
7882 (sparc_supply_gregset, sparc_collect_gregset)
7883 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7884 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7886 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7887 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7889 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7891 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7892 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7893 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7895 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7896 (sparc32_bsd_fpregset): Rename to...
7897 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7898 (sparc32_bsd_fpregmap): ... these.
7899 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7900 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7901 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7902 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7903 (struct sparc_gregmap, struct sparc_fpregmap)
7904 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7905 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7906 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7907 (sparc32_supply_regset, sparc32_collect_gregset)
7908 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7910 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7911 (sparc64_linux_ptrace_gregmap): ... this.
7912 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7913 (_initialize_sparc64_linux_nat): Rename regmaps.
7914 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7915 (sparc64_linux_core_gregmap): ... this.
7916 (sparc64_linux_supply_core_gregset)
7917 (sparc64_linux_collect_core_gregset)
7918 (sparc64_linux_supply_core_fpregset)
7919 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7920 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7921 (sparc64_sol2_fpregset): Rename to...
7922 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7923 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7924 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7926 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7927 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7928 (sparc64_bsd_fpregset): Rename to...
7929 (struct sparc_gregmap, sparc64_sol2_gregmap)
7930 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7931 (sparc64_bsd_fpregmap): ... these.
7932 (sparc64_supply_gregset, sparc64_collect_gregset)
7933 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7935 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7936 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7937 (sparc64fbsd_gregmap): ... this.
7938 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7939 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7941 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7942 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7943 (sparc64nbsd_collect_fpregset): Likewise.
7944 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7945 (sparc64nbsd_gregmap): ... this.
7946 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7948 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7949 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7950 (sparc64obsd_gregmap): ... this.
7951 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7953 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7954 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7955 (sparc32nbsd_gregmap): ... this.
7956 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7961 * score-tdep.c (score7_linux_gregset): New static regset
7963 (score7_linux_regset_from_core_section): Remove dynamic regset
7965 (score_gdbarch_init): Drop allocation of tdep structure.
7966 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7970 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7972 (am33_regset_from_core_section): Remove dynamic regset
7977 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7978 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7980 (mips_linux_regset_from_core_section): Remove dynamic regset
7982 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7983 'gregset64', 'fpregset', and 'fpregset64'.
7984 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7985 deleted tdep fields.
7989 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7991 (amd64_regset_from_core_section): Remove dynamic regset
7993 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7995 (amd64obsd_regset_from_core_section): Remove dynamic regset
7997 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7999 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
8000 x86-common regset supply function.
8001 * i386-tdep.c (i386_collect_gregset): Make static.
8002 (i386_gregset): New global regset structure.
8003 (i386_fpregset, i386_xstateregset): New static regset structures.
8004 (i386_regset_from_core_section): Remove dynamic regset
8006 (i386_gdbarch_init): Remove initialization of tdep fields
8007 'gregset', 'fpregset', and 'xstateregset'.
8008 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
8009 'fpregset', and 'xstateregset'.
8010 (i386_collect_gregset): Remove prototype.
8011 (i386_gregset): New declaration.
8012 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
8014 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
8019 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
8020 (arm_linux_vfpregset): New static regset structures.
8021 (arm_linux_regset_from_core_section): Remove dynamic allocation of
8023 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8024 and 'vfpregset' fields.
8028 * aarch64-linux-tdep.c (aarch64_linux_gregset)
8029 (aarch64_linux_fpregset): New static regset structures.
8030 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
8031 of regset structures.
8032 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
8037 * regset.h (struct regset): Remove gdbarch field.
8038 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8039 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8040 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8042 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8043 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8044 (ppc32_linux_vsxregset): Likewise.
8045 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8046 via the regcache instead of the regset.
8047 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8048 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8049 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8050 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8055 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8056 Constify structures.
8057 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8058 (alphanbsd_aout_gregset): Likewise.
8059 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8060 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8062 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8063 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8065 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8066 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8067 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8068 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8069 * m88k-tdep.c (m88k_gregset): Likewise.
8070 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8071 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8072 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8073 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8074 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8075 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8076 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8077 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8078 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8080 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8081 * sh-tdep.h (sh_corefile_gregset): Likewise.
8082 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8083 * vax-tdep.c (vax_gregset): Likewise.
8087 Fix TLS access for -static -pthread.
8088 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8089 (try_thread_db_load_1): Initialize it.
8090 (thread_db_get_thread_local_address): Call it if LM is zero.
8091 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8092 * target.h (struct target_ops) (to_get_thread_local_address): Add
8093 load_module_addr comment.
8097 * dcache.c (dcache_read_memory_partial): If reading the cache line
8098 fails, fallback to reading just the memory the caller wanted.
8102 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8103 instead of get_current_arch.
8107 * NEWS: Mention that compare-sections now works with all targets.
8109 * remote.c (PACKET_qCRC): New enum value.
8110 (remote_verify_memory): Don't send qCRC if the target has no
8111 execution. Use packet_support/packet_ok. If the target doesn't
8112 support the qCRC packet, fallback to a deep memory copy.
8113 (compare_sections_command): Say "target image" instead of "remote
8115 (_initialize_remote): Add PACKET_qCRC to the list of config
8116 packets that have no associated command. Extend comment.
8117 * target.c (simple_verify_memory, default_verify_memory): New
8119 * target.h (struct target_ops) <to_verify_memory>: Default to
8120 default_verify_memory.
8121 (simple_verify_memory): New declaration.
8122 * target-delegates.c: Regenerate.
8126 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8132 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8133 and change address of sp and pc.
8137 * gdbtypes.c (rank_function): Use XNEWVEC.
8138 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8142 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8143 build_type_unit_groups and moved closer to only caller. Remove
8144 arguments. All references updated. Remove outdated .gdb_index
8146 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8147 build_type_psymtabs_1.
8151 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8152 n_type_unit_groups, all_type_unit_groups. All uses removed.
8153 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8154 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8155 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8156 (add_type_unit_group_to_table): Delete.
8160 * eval.c (evaluate_subexp_standard): Add some comments.
8164 * progspace.c (remove_program_space): Delete, unused.
8165 * progspace.h (remove_program_space): Ditto.
8169 * inferior.c (prune_inferiors): Fix comment.
8170 (remove_inferior_command): Call prune_program_spaces.
8174 New command line option -D.
8176 * main.c (set_gdb_data_directory): New function.
8177 (captured_main): Recognize -D. Flag error for --data-directory "".
8178 Call set_gdb_data_directory.
8179 (print_gdb_help): Print --data-directory, -D.
8180 * main.h (set_gdb_data_directory): Declare.
8181 * top.c (staged_gdb_datadir): New static global.
8182 (set_gdb_datadir): Call set_gdb_data_directory
8183 (show_gdb_datadir): New function.
8184 (init_main): Update init of data-directory parameter.
8188 Import the "dirfd" gnulib module.
8189 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8190 * gnulib/aclocal.m4: Update.
8191 * gnulib/config.in: Update.
8192 * gnulib/configure: Update.
8193 * gnulib/import/Makefile.am: Update.
8194 * gnulib/import/Makefile.in: Update.
8195 * gnulib/import/dirfd.c: New.
8196 * gnulib/import/m4/dirfd.m4: New.
8197 * gnulib/import/m4/gnulib-cache.m4: Update.
8198 * gnulib/import/m4/gnulib-comp.m4: Update.
8203 * valprint.c (print_wchar): Move the code on checking whether
8204 W is a printable wide char to the default branch of switch
8205 statement below. Call wchar_printable instead of gdb_iswprint.
8209 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8210 ldr.w and ldrd instructions.
8214 * dwarf2read.c (read_structure_type): Delete outdated comments.
8218 * macrocmd.c (print_macro_definition): Reindent.
8222 * python/py-cmd.c (cmdpy_completer): Add comment.
8223 (completers): Make const.
8227 * infrun.c (resume): Remove should_resume (unused). Move up
8228 declaration of resume_ptid.
8232 * language.h (unop_type_check): Remove.
8233 (binop_type_check): Don't declare.
8237 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8238 call to regcache_raw_collect.
8242 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8243 mi_console->quote as the quoting character.
8247 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8251 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8252 "show debug varobj".
8257 * aarch64-tdep.c (aarch64_software_single_step): New function.
8258 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8259 with aarch64_software_single_step.
8267 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8268 variable or history value is successfully parsed.
8273 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8274 address of blocks that intersects the requested range. Trim
8275 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8277 * ctf.c (ctf_xfer_partial): Likewise.
8281 * printcmd.c (display_command): Remove the check to
8282 target_has_execution.
8286 * ppcobsd-nat.c: Include "obsd-nat.h".
8287 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8289 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8293 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8294 and 16-bit signed and unsigned arguments. Update comment.
8295 (stap_parse_probe_arguments): Extend code to handle such
8296 arguments. Use warning instead of complaint to notify about
8297 unrecognized bitness.
8301 PR breakpoints/16889
8302 * stap-probe.c (stap_parse_probe_arguments): Simplify
8303 check for non-prefixed probes (i.e., probes whose
8304 arguments do not start with "N@"). Always set the
8305 argument type to a sane value.
8309 * remote.c (compare_sections_command): Add -r option to compare
8310 all loadable read-only sections.
8314 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8315 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8317 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8318 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8319 Remove unused CORE_ADDR argument. Update all callers.
8323 * remote.c (struct packet_config) <detect>: Extend comment.
8324 (add_packet_config_cmd): Don't set the config's detect or support
8326 (init_all_packet_configs): Also initialize the config's 'detect'
8328 (reset_all_packet_configs_support): New function.
8329 (remote_open_1): Call reset_all_packet_configs_support instead of
8330 init_all_packet_configs.
8331 (_initialize_remote): Initialize all packet configs. Assert that
8332 all packets have an associated command, except a few known
8337 * dwarf2read.c (read_subrange_type): Handle dynamic
8338 DW_AT_lower_bound attributes.
8342 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8343 dynamic bounds before computing its upper bound.
8344 (ada_discrete_type_low_bound): Same as above with the lower bound.
8348 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8349 range types. Adjust the array handling implementation to
8350 take advantage of this change.
8351 (resolve_dynamic_range): New function, mostly extracted from
8352 resolve_dynamic_bounds.
8353 (resolve_dynamic_array): New function, mostly extracted from
8354 resolve_dynamic_bounds.
8355 (resolve_dynamic_bounds): Delete.
8356 (resolve_dynamic_type): Reimplement. Add handling of
8357 TYPE_CODE_RANGE types.
8361 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8362 handling of parallel ___XA types.
8366 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8367 unnecessary second call to static_unwrap_type.
8371 * stack.c (print_frame_info): Call do_gdb_disassembly with
8372 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8376 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8381 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8382 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8383 and newline from built string.
8384 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8385 (linux_ptrace_attach_fail_reason): ... this.
8386 * linux-nat.c (linux_nat_attach): Adjust to use
8387 linux_ptrace_attach_fail_reason.
8391 * remote.c (struct remote_state): Remove multi_process_aware,
8392 non_stop_aware, cond_tracepoints, cond_breakpoints,
8393 breakpoint_commands, fast_tracepoints, static_tracepoints,
8394 install_in_trace, disconnected_tracing,
8395 enable_disable_tracepoints, string_tracing, and
8396 augmented_libraries_svr4_read fields.
8397 (remote_multi_process_p): Move further below in the file.
8398 (struct packet_config): Add comments.
8399 (update_packet_config): Delete function.
8400 (show_packet_config_cmd): Use packet_config_support.
8401 (add_packet_config_cmd): Use NULL as set callback.
8402 (packet_ok): "set remote foo-packet"-style commands no longer
8403 change config->supported -- adjust.
8404 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8405 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8406 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8407 (PACKET_QNonStop, PACKET_multiprocess_feature)
8408 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8409 (PACKET_DisconnectedTracing_feature)
8410 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8411 (set_remote_protocol_packet_cmd): Delete function.
8412 (packet_config_support, packet_support): New functions.
8413 (set_remote_protocol_Z_packet_cmd): Don't call
8414 update_packet_config.
8415 (remote_query_attached, remote_pass_signals)
8416 (remote_program_signals, remote_threads_info)
8417 (remote_threads_extra_info, remote_start_remote): Use
8419 (remote_start_remote): Use packet_config_support and
8421 (init_all_packet_configs): Set all packets to unknown support,
8422 instead of calling update_packet_config.
8423 (remote_check_symbols): Use packet_support.
8424 (remote_supported_packet): Unconditionally set the packet config's
8426 (remote_multi_process_feature, remote_non_stop_feature)
8427 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8428 (remote_breakpoint_commands_feature)
8429 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8430 (remote_install_in_trace_feature)
8431 (remote_disconnected_tracing_feature)
8432 (remote_enable_disable_tracepoint_feature)
8433 (remote_string_tracing_feature)
8434 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8435 (remote_protocol_features): Adjust to use remote_supported_packet
8436 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8437 "ConditionalTracepoints", "ConditionalBreakpoints",
8438 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8439 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8440 "EnableDisableTracepoints", and "tracenz".
8441 (remote_query_supported): Use packet_support.
8442 (remote_open_1): Adjust.
8443 (extended_remote_attach_1): Use packet_support. Switch on the
8444 result of packet_ok instead of checking whether the packet ended
8446 (remote_vcont_resume): Use packet_support.
8447 (remote_resume, remote_stop_ns, fetch_register_using_p)
8448 (remote_prepare_to_store, store_register_using_P)
8449 (check_binary_download, remote_write_bytes): Use packet_support.
8450 (remote_vkill): Use packet_support. Switch on the result of
8451 packet_ok instead of checking whether the packet ended up
8453 (extended_remote_supports_disable_randomization): Use
8455 (extended_remote_run): Switch on the result of packet_ok instead
8456 of checking whether the packet ended up disabled.
8457 (remote_insert_breakpoint, remote_remove_breakpoint)
8458 (remote_insert_watchpoint, remote_remove_watchpoint)
8459 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8461 (remote_search_memory): Use packet_config_support.
8462 (remote_get_thread_local_address, remote_get_tib_address)
8463 (remote_hostio_send_command, remote_can_execute_reverse): Use
8465 (remote_supports_cond_tracepoints)
8466 (remote_supports_cond_breakpoints)
8467 (remote_supports_fast_tracepoints)
8468 (remote_supports_static_tracepoints)
8469 (remote_supports_install_in_trace)
8470 (remote_supports_enable_disable_tracepoint)
8471 (remote_supports_string_tracing)
8472 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8473 the packet config says the feature is enabled or disabled.
8474 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8475 (remote_get_trace_status): Use packet_support.
8476 (remote_set_disconnected_tracing): Adjust to check whether the
8477 feature is enabled with packet_support.
8478 (remote_set_trace_buffer_size, remote_use_agent)
8479 (remote_can_use_agent, remote_supports_btrace): Use
8481 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8482 Use packet_config_support.
8483 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8484 the packet config says the feature is enabled or disabled.
8485 (set_range_stepping): Use packet_support.
8489 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8494 * NEWS: Mention support for C99 variable length arrays.
8498 * ada-lang.c (standard_exc): Expand introductory comment.
8503 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8505 (amd64_linux_read_description): Add code to handle AVX512 xstate
8506 mask and return respective tdesc.
8507 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8508 and features/i386/x32-avx512-linux.c.
8509 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8510 (amd64_linux_core_read_description): Add code to handle AVX512
8511 xstate mask and return respective tdesc.
8512 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8513 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8515 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8516 (tdesc_amd64_avx512_linux): New prototype.
8517 (tdesc_x32_avx512_linux): Likewise.
8518 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8519 features/i386/x32-avx512.c.
8520 (amd64_ymm_avx512_names): New register names for pseudo
8522 (amd64_ymmh_avx512_names): New register names for raw registers
8524 (amd64_k_names): New register names for K registers.
8525 (amd64_zmmh_names): New register names for ZMM raw registers.
8526 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8527 (amd64_xmm_avx512_names): New register names for XMM16-31
8529 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8531 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8532 if feature is present.
8533 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8534 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8535 (AMD64_NUM_REGS): Adjust to new number of registers.
8536 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8537 registers supplied via XSTATE by AVX512 registers.
8538 (i386_linux_read_description): Add case for AVX512.
8539 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8540 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8541 (i386_linux_core_read_description): Add case for AVX512.
8542 (i386_linux_init_abi): Install supported register note section
8544 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8546 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8547 registers to be number of zmm7h + 1.
8548 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8549 * i386-tdep.c: Include features/i386/i386-avx512.c.
8550 (i386_zmm_names): Add ZMM pseudo register names array.
8551 (i386_zmmh_names): Add ZMM raw register names array.
8552 (i386_k_names): Add K raw register names array.
8553 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8554 registers. AVX512 has 16 more ZMM registers than there are YMM
8556 (i386_zmmh_regnum_p): Add function to look up register number of
8558 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8559 (i386_k_regnum_p): Likewise for K raw registers.
8560 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8561 registers added by AVX512.
8562 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8563 registers added by AVX512.
8564 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8566 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8567 (i386_pseudo_register_name): Add ZMM pseudo registers.
8568 (i386_zmm_type): Construct and return vector registers type for ZMM
8570 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8571 ZMM0-31 pseudo registers and K registers.
8572 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8573 and YMM16-31 registers from register cache.
8574 (i386_pseudo_register_write): Add code to write K, ZMM and
8576 (i386_register_reggroup_p): Add code to include/exclude AVX512
8577 registers in/from respective register groups.
8578 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8579 registers if feature is present in xcr0.
8580 (i386_gdbarch_init): Add code to initialize AVX512 feature
8581 variables in tdep structure, wire in pseudo registers and call
8582 initialize_tdesc_i386_avx512.
8583 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8585 (i386_regnum): Add AVX512 registers.
8586 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8587 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8588 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8589 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8591 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8592 (i386_ymm_avx512_regnum_p): Likewise.
8593 (i386_k_regnum_p): Likewise.
8594 (i386_zmm_regnum_p): Likewise.
8595 (i386_zmmh_regnum_p): Likewise.
8596 * i387-tdep.c : Update year in copyright notice.
8597 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8599 (XSAVE_YMM_AVX512_ADDR): New macro.
8600 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8602 (XSAVE_XMM_AVX512_ADDR): New macro.
8603 (xsave_avx512_k_offset): New table for K register offsets in
8605 (XSAVE_AVX512_K_ADDR): New macro.
8606 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8608 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8609 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8611 (i387_collect_xsave): Add code to collect AVX512 registers from
8613 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8614 of XMM16-31 registers.
8615 (I387_NUM_K_REGS): New define for number of K registers.
8616 (I387_K0_REGNUM): New define for K0 register number.
8617 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8618 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8619 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8621 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8622 (I387_XMM16_REGNUM): New define for XMM16 register number.
8623 (I387_YMM0_REGNUM): New define for YMM0 register number.
8624 (I387_KEND_REGNUM): New define for last K register number.
8625 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8626 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8628 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8630 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8632 * features/Makefile: Add AVX512 related files.
8633 * features/i386/32bit-avx512.xml: New file.
8634 * features/i386/64bit-avx512.xml: Likewise.
8635 * features/i386/amd64-avx512-linux.c: Likewise.
8636 * features/i386/amd64-avx512-linux.xml: Likewise.
8637 * features/i386/amd64-avx512.c: Likewise.
8638 * features/i386/amd64-avx512.xml: Likewise.
8639 * features/i386/i386-avx512-linux.c: Likewise.
8640 * features/i386/i386-avx512-linux.xml: Likewise.
8641 * features/i386/i386-avx512.c: Likewise.
8642 * features/i386/i386-avx512.xml: Likewise.
8643 * features/i386/x32-avx512-linux.c: Likewise.
8644 * features/i386/x32-avx512-linux.xml: Likewise.
8645 * features/i386/x32-avx512.c: Likewise.
8646 * features/i386/x32-avx512.xml: Likewise.
8647 * regformats/i386/amd64-avx512-linux.dat: New file.
8648 * regformats/i386/amd64-avx512.dat: Likewise.
8649 * regformats/i386/i386-avx512-linux.dat: Likewise.
8650 * regformats/i386/i386-avx512.dat: Likewise.
8651 * regformats/i386/x32-avx512-linux.dat: Likewise.
8652 * regformats/i386/x32-avx512.dat: Likewise.
8653 * NEWS: Add note about new support for AVX512.
8658 * breakpoint.c (insert_bp_location): Tolerate errors if the
8659 breakpoint is set in a user-loaded objfile.
8660 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8661 location is marked shlib_disabled. If the breakpoint is set in a
8662 user-loaded objfile is a GDB-side memory breakpoint, validate it
8663 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8664 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8666 * mem-break.c (memory_validate_breakpoint): New function.
8667 * objfiles.c (userloaded_objfile_contains_address_p): New
8669 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8670 * target.h (memory_validate_breakpoint): New declaration.
8674 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8675 the breakpoint is set in a shared library, only suppress
8676 errors for software breakpoints, not hardware breakpoints.
8680 * infrun.c (schedlock_applies): New function, factored out from
8681 find_thread_needs_step_over.
8682 (find_thread_needs_step_over): Use it.
8683 (switch_back_to_stepped_thread): Always clear trap_expected if the
8684 step over is finished. Return early if scheduler locking applies.
8685 Look for the stepping thread and a potential step-over thread with
8687 (currently_stepping_or_nexting_callback): Delete.
8691 * NEWS: Mention that ARM sim now supports tracing.
8695 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8697 * tracefile.c (tracefile_fetch_registers): ... it. New
8699 * tracefile.h (tracefile_fetch_registers): Declare.
8700 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8701 tracefile_fetch_registers.
8706 * windows-nat.c (thread_rec): Don't display a warning when
8707 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8708 fails for any reason, set th->suspended to -1, so that we don't
8709 try to resume such a thread. Also, don't return NULL in these
8710 cases, to avoid completely ruin the session due to "PC register is
8711 not available" error.
8712 (do_windows_fetch_inferior_registers): Check errors in
8713 GetThreadContext call.
8714 (windows_continue): Accept an additional argument KILLED; if not
8715 zero, ignore errors in the SetThreadContext call, since the
8716 inferior was killed and is shutting down.
8717 (windows_resume, get_windows_debug_event)
8718 (windows_create_inferior, windows_mourn_inferior)
8719 (windows_kill_inferior): All callers of windows_continue changed
8720 to adjust to its new calling sequence.
8724 * ctf.c (ctf_open): Call post_create_inferior.
8728 * ctf.c (handle_id): New static variable.
8729 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8730 value. Get the declaration of event "register" and get length
8731 of field "contents".
8735 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8739 * valops.c (oload_method_static): Remove unnecessary argument
8740 METHOD. Update all callers.
8746 * frame.c (get_prev_frame_1): Rename to ...
8747 (get_prev_frame_always): ... this, and make extern. Adjust.
8748 (skip_artificial_frames): Use get_prev_frame_always.
8749 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8750 (get_frame_unwind_stop_reason): Adjust to rename.
8751 * frame.h (get_prev_frame_always): Declare.
8752 * inline-frame.c: Include frame.h.
8753 (inline_frame_this_id): Use get_prev_frame_always.
8757 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8758 code by using bfd_mach_o_get_base_address.
8762 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8763 (spu_ax_pseudo_register_collect): New function.
8764 (spu_ax_pseudo_register_push_stack): Likewise.
8765 (spu_dwarf_reg_to_regnum): Likewise.
8766 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8770 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8771 Replace FRAME argument with FRAME_ID.
8772 * gdbarch.c, gdbarch.h: Regenerate.
8773 * findvar.c (default_value_from_register): Add GDBARCH argument;
8774 replace FRAME by FRAME_ID. No longer call get_frame_id.
8775 (value_from_register): Update call to gdbarch_value_from_register.
8776 * value.h (default_value_from_register): Update prototype.
8777 * s390-linux-tdep.c (s390_value_from_register): Update interface
8778 and call to default_value_from_register.
8779 * spu-tdep.c (spu_value_from_register): Likewise.
8781 * findvar.c (address_from_register): Remove TYPE argument.
8782 Do not call value_from_register; use gdbarch_value_from_register
8783 with null_frame_id instead.
8784 * value.h (address_from_register): Update prototype.
8785 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8786 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8787 address_from_register interface change.
8791 * gdbtypes.h: Update comments to link to types and macros'
8796 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8801 * dwarf2read.c (skip_one_die): Check that all relative-offset
8802 sibling DIEs fall within range of the current reader's buffer.
8803 (read_partial_die): Likewise.
8808 * cp-namespace.c (lookup_symbol_file): If the type name of
8809 `this' is NULL, return immediately.
8814 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8815 from symbol_matches_domain in symtab.c. All local callers
8816 of symbol_matches_domain updated.
8817 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8818 search STRUCT_DOMAIN.
8819 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8820 independently. standard_lookup will do that automatically.
8821 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8822 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8823 (cp_lookup_symbol_in_namespace): Likewise.
8824 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8825 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8826 may return a STRUCT_DOMAIN match.
8827 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8828 * cp-support.c: Include language.h.
8829 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8831 * psymtab.c (match_partial_symbol): Compare the requested
8832 domain with the symbol's domain directly.
8833 (lookup_partial_symbol): Likewise.
8834 * symtab.c (lookup_symbol_in_language): Explain when/why
8835 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8836 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8837 appropriate languages.
8838 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8839 and moved to ada-lang.c
8840 (lookup_block_symbol): Explain that this function only returns
8841 symbol matching the requested DOMAIN.
8842 Compare the requested domain with the symbol's domain directly.
8843 (iterate_over_symbols): Compare the requested domain with the
8844 symbol's domain directly.
8845 * symtab.h (symbol_matches_domain): Remove.
8850 * c-exp.y (type_aggregate_p): New function.
8851 (qualified_name, classify_inner_name): Use it.
8852 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8853 and TYPE_TARGET_TYPE of an enum type.
8854 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8856 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8857 handle TYPE_DECLARED_CLASS.
8858 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8860 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8861 * valops.c (enum_constant_from_type): New function.
8862 (value_aggregate_elt): Use it.
8863 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8868 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8869 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8871 * value.h (value_aggregate_elt): Update.
8875 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8879 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8880 (evaluate_subexp_standard): Pass noside argument.
8881 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8882 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8883 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8884 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8885 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8889 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8890 points to a constant blob.
8894 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8895 property and store it as the high bound and flag the range accordingly.
8896 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8897 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8898 * gdbtypes.h (enum range_flags): New enum.
8899 (struct range_bounds): Add flags member.
8903 * c-typeprint.c (c_type_print_varspec_suffix): Added
8904 check for not yet resolved high bound. If unresolved, print
8905 "variable length" string to the console instead of random
8910 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8912 (ada_template_to_fixed_record_type_1): Likewise.
8913 (ada_to_fixed_type_1): Likewise.
8914 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8915 (cp_print_value): Likewise.
8916 * d-valprint.c (dynamic_array_type): Likewise.
8917 * findvar.c (address_of_variable): Likewise.
8918 * jv-valprint.c (java_value_print): Likewise.
8919 * valops.c (value_ind): Likewise.
8920 * value.c (coerce_ref): Likewise.
8924 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8925 value and retrieve the dynamic type size.
8929 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8930 passed to sizeof is dynamic evaluate the argument to compute the length.
8935 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8936 (dwarf2_evaluate_property): New function.
8937 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8938 * dwarf2read.c (attr_to_dynamic_prop): New function.
8939 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8941 * gdbtypes.c: Include dwarf2loc.h.
8942 (is_dynamic_type): New function.
8943 (resolve_dynamic_type): New function.
8944 (resolve_dynamic_bounds): New function.
8945 (get_type_length): New function.
8946 (check_typedef): Use get_type_length to compute type length.
8947 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8948 (TYPE_LOW_BOUND_KIND): New macro.
8949 (is_dynamic_type): New function prototype.
8950 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8951 to resolve dynamic properties of the type. Update comment.
8952 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8956 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8961 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8962 dereference TYPE_CODE_REF values.
8966 Revert the following changes due to regressions:
8968 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8969 (dwarf2_evaluate_property): New function.
8970 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8971 * dwarf2read.c (attr_to_dynamic_prop): New function.
8972 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8974 * gdbtypes.c: Include dwarf2loc.h.
8975 (is_dynamic_type): New function.
8976 (resolve_dynamic_type): New function.
8977 (resolve_dynamic_bounds): New function.
8978 (get_type_length): New function.
8979 (check_typedef): Use get_type_length to compute type length.
8980 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8981 (TYPE_LOW_BOUND_KIND): New macro.
8982 (is_dynamic_type): New function prototype.
8983 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8984 to resolve dynamic properties of the type. Update comment.
8985 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8987 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8988 passed to sizeof is dynamic evaluate the argument to compute the length.
8990 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8991 value and retrieve the dynamic type size.
8993 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8994 (ada_template_to_fixed_record_type_1): Likewise.
8995 (ada_to_fixed_type_1): Likewise.
8996 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8997 (cp_print_value): Likewise.
8998 * d-valprint.c (dynamic_array_type): Likewise.
8999 * eval.c (evaluate_subexp_with_coercion): Likewise.
9000 * findvar.c (address_of_variable): Likewise.
9001 * jv-valprint.c (java_value_print): Likewise.
9002 * valops.c (value_ind): Likewise.
9003 * value.c (coerce_ref): Likewise.
9005 * c-typeprint.c (c_type_print_varspec_suffix): Added
9006 check for not yet resolved high bound. If unresolved, print
9007 "variable length" string to the console instead of random
9010 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9011 property and store it as the high bound and flag the range accordingly.
9012 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9013 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9014 * gdbtypes.h (enum range_flags): New enum.
9015 (struct range_bounds): Add flags member.
9017 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9018 points to a constant blob.
9020 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9021 (evaluate_subexp_standard): Pass noside argument.
9022 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9023 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9024 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9025 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9026 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9031 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
9032 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
9037 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
9038 (evaluate_subexp_standard): Pass noside argument.
9039 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9040 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9041 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9042 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9043 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9047 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9048 points to a constant blob.
9052 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9053 property and store it as the high bound and flag the range accordingly.
9054 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9055 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9056 * gdbtypes.h (enum range_flags): New enum.
9057 (struct range_bounds): Add flags member.
9061 * c-typeprint.c (c_type_print_varspec_suffix): Added
9062 check for not yet resolved high bound. If unresolved, print
9063 "variable length" string to the console instead of random
9068 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9069 (ada_template_to_fixed_record_type_1): Likewise.
9070 (ada_to_fixed_type_1): Likewise.
9071 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9072 (cp_print_value): Likewise.
9073 * d-valprint.c (dynamic_array_type): Likewise.
9074 * eval.c (evaluate_subexp_with_coercion): Likewise.
9075 * findvar.c (address_of_variable): Likewise.
9076 * jv-valprint.c (java_value_print): Likewise.
9077 * valops.c (value_ind): Likewise.
9078 * value.c (coerce_ref): Likewise.
9082 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9083 value and retrieve the dynamic type size.
9087 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9088 passed to sizeof is dynamic evaluate the argument to compute the length.
9092 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9093 (dwarf2_evaluate_property): New function.
9094 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9095 * dwarf2read.c (attr_to_dynamic_prop): New function.
9096 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9098 * gdbtypes.c: Include dwarf2loc.h.
9099 (is_dynamic_type): New function.
9100 (resolve_dynamic_type): New function.
9101 (resolve_dynamic_bounds): New function.
9102 (get_type_length): New function.
9103 (check_typedef): Use get_type_length to compute type length.
9104 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9105 (TYPE_LOW_BOUND_KIND): New macro.
9106 (is_dynamic_type): New function prototype.
9107 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9108 to resolve dynamic properties of the type. Update comment.
9109 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9113 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9114 declaring high/low bounds and change uses accordingly. Call
9115 create_range_type instead of create_static_range_type.
9116 * gdbtypes.c (create_range_type): New function.
9117 (create_range_type): Convert bounds into struct bound_prop and pass
9118 them to create_range_type.
9119 * gdbtypes.h (struct bound_prop): New struct.
9120 (create_range_type): New function prototype.
9121 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9122 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9123 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9125 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9129 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9130 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9131 * ada-lang.c: All uses of create_range_type updated.
9132 * coffread.c: All uses of create_range_type updated.
9133 * dwarf2read.c: All uses of create_range_type updated.
9134 * f-exp.y: All uses of create_range_type updated.
9135 * m2-valprint.c: All uses of create_range_type updated.
9136 * mdebugread.c: All uses of create_range_type updated.
9137 * stabsread.c: All uses of create_range_type updated.
9138 * valops.c: All uses of create_range_type updated.
9139 * valprint.c: All uses of create_range_type updated.
9143 * breakpoint.c (single_step_breakpoints)
9144 (single_step_gdbarch): Move up in the file.
9145 (one_breakpoint_xfer_memory): New function, factored out from ...
9146 (breakpoint_xfer_memory): ... here. Also process single-step
9151 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9153 (darwin_decode_exception_message): Free port only after use.
9157 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9158 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9159 when setting the size of call_length.
9163 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9164 dereference TYPE_CODE_REF values.
9168 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9169 end of warning message.
9173 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9174 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9178 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9179 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9180 (struct symbol_file_add_from_memory_args): Add size field.
9181 (find_vdso_size): New function.
9182 (add_vsyscall_page): Attempt to find vdso size.
9186 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9190 * darwin-nat.c (darwin_encode_reply): Add prototype.
9191 (darwin_decode_exception_message): Reply to unknown inferiors.
9192 (darwin_decode_message): Handle message by id. Ignore message
9193 to unknown inferior.
9194 (darwin_wait): Discard unknown messages, add debug trace.
9198 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9203 New option "set print symbol-loading".
9205 * solib.c (solib_read_symbols): Only print symbol loading messages
9207 (solib_add): If symbol loading is in "brief" mode, notify user
9208 symbols are being loaded.
9209 (reload_shared_libraries_1): Ditto.
9210 * symfile.c (print_symbol_loading_off): New static global.
9211 (print_symbol_loading_brief): New static global.
9212 (print_symbol_loading_full): New static global.
9213 (print_symbol_loading_enums): New static global.
9214 (print_symbol_loading): New static global.
9215 (print_symbol_loading_p): New function.
9216 (symbol_file_add_with_addrs): Only print symbol loading messages
9218 (_initialize_symfile): Register "print symbol-loading" set/show
9220 * symfile.h (print_symbol_loading_p): Declare.
9224 * infrun.c (set_last_target_status): New function.
9225 (handle_inferior_event): Call it.
9229 * inferior.h (enum stop_kind): Improve comment.
9233 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9234 a reference, strip the reference layer before calling
9235 the lang_ops value_has_mutated callback.
9239 Remove some globals from our parser.
9240 * language.c (unk_lang_parser): Add "struct parser_state"
9242 * language.h (struct language_defn) <la_parser>: Likewise.
9243 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9244 (initialize_expout): Add "struct parser_state" argument.
9245 Rewrite function to use the parser state.
9246 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9247 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9248 write_exp_elt_longcst, write_exp_elt_dblcst,
9249 write_exp_elt_decfloatcst, write_exp_elt_type,
9250 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9251 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9252 write_dollar_variable): Likewise.
9253 (parse_exp_in_context_1): Use parser state.
9254 (insert_type_address_space): Add "struct parser_state" argument.
9256 (increase_expout_size): New function.
9257 * parser-defs.h: Forward declare "struct language_defn" and
9258 "struct parser_state".
9259 (expout, expout_size, expout_ptr): Remove extern declarations.
9260 (parse_gdbarch, parse_language): Rewrite macro declarations to
9261 accept the parser state.
9262 (struct parser_state): New struct.
9263 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9264 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9265 write_exp_elt_decfloatcst, write_exp_elt_type,
9266 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9267 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9268 write_exp_msymbol, write_dollar_variable,
9269 mark_struct_expression, insert_type_address_space): Add "struct
9270 parser_state" argument.
9271 (increase_expout_size): New function.
9272 * utils.c (do_clear_parser_state): New function.
9273 (make_cleanup_clear_parser_state): Likewise.
9274 * utils.h (make_cleanup_clear_parser_state): New function
9276 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9277 Update calls to write_exp* in order to pass the parser state.
9278 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9279 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9280 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9281 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9282 * stap-probe.c (stap_parse_register_operand): Likewise.
9283 (stap_parse_single_operand): Likewise.
9284 (stap_parse_argument_1): Likewise.
9285 (stap_parse_argument): Use parser state.
9286 * stap-probe.h: Include "parser-defs.h".
9287 (struct stap_parse_info) <pstate>: New field.
9288 * c-exp.y (parse_type): Rewrite to use parser state.
9289 (yyparse): Redefine to c_parse_internal.
9290 (pstate): New global variable.
9291 (parse_number): Add "struct parser_state" argument.
9292 (write_destructor_name): Likewise.
9293 (type_exp): Update calls to write_exp* and similars in order to
9295 (exp1, exp, variable, qualified_name, space_identifier,
9296 typename, typebase): Likewise.
9297 (write_destructor_name, parse_number, lex_one_token,
9298 classify_name, classify_inner_name, c_parse): Add "struct
9299 parser_state" argument. Update function to use parser state.
9300 * c-lang.h: Forward declare "struct parser_state".
9301 (c_parse): Add "struct parser_state" argument.
9302 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9303 (yyparse): Redefine macro to ada_parse_internal.
9304 (pstate): New variable.
9305 (write_int, write_object_renaming, write_var_or_type,
9306 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9307 type_int, type_long, type_long_long, type_float, type_double,
9308 type_long_double, type_char, type_boolean, type_system_address):
9309 Add "struct parser_state" argument.
9310 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9311 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9312 var_or_type, aggregate, aggregate_component_list,
9313 positional_list, others, component_group,
9314 component_associations): Update calls to write_exp* and similar
9315 functions in order to use parser state.
9316 (ada_parse, write_var_from_sym, write_int,
9317 write_exp_op_with_string, write_object_renaming,
9318 find_primitive_type, write_selectors, write_ambiguous_var,
9319 write_var_or_type, write_name_assoc, type_int, type_long,
9320 type_long_long, type_float, type_double, type_long_double,
9321 type_char, type_boolean, type_system_address): Add "struct
9322 parser_state" argument. Adjust function to use parser state.
9323 * ada-lang.c (parse): Likewise.
9324 * ada-lang.h: Forward declare "struct parser_state".
9325 (ada_parse): Add "struct parser_state" argument.
9326 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9327 calls to both functions.
9328 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9330 (yyparse): Redefine macro to f_parse_internal.
9331 (pstate): New variable.
9332 (parse_number): Add "struct parser_state" argument.
9333 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9334 and similars in order to use parser state.
9335 (parse_number): Adjust code to use parser state.
9337 (f_parse): New function.
9338 * f-lang.h: Forward declare "struct parser_state".
9339 (f_parse): Add "struct parser_state" argument.
9340 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9342 (yyparse): Redefine macro for java_parse_internal.
9343 (pstate): New variable.
9344 (push_expression_name, push_expression_name, insert_exp): Add
9345 "struct parser_state" argument.
9346 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9347 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9348 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9349 PostIncrementExpression, PostDecrementExpression,
9350 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9351 UnaryExpressionNotPlusMinus, CastExpression,
9352 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9353 RelationalExpression, EqualityExpression, AndExpression,
9354 ExclusiveOrExpression, InclusiveOrExpression,
9355 ConditionalAndExpression, ConditionalOrExpression,
9356 ConditionalExpression, Assignment, LeftHandSide): Update
9357 calls to write_exp* and similars in order to use parser state.
9358 (parse_number): Ajust code to use parser state.
9360 (java_parse): New function.
9361 (push_variable): Add "struct parser_state" argument. Adjust
9362 code to user parser state.
9363 (push_fieldnames, push_qualified_expression_name,
9364 push_expression_name, insert_exp): Likewise.
9365 * jv-lang.h: Forward declare "struct parser_state".
9366 (java_parse): Add "struct parser_state" argument.
9367 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9369 (yyparse): Redefine macro to m2_parse_internal.
9370 (pstate): New variable.
9371 (type_exp, exp, fblock, variable, type): Update calls to
9372 write_exp* and similars to use parser state.
9374 (m2_parse): New function.
9375 * m2-lang.h: Forward declare "struct parser_state".
9376 (m2_parse): Add "struct parser_state" argument.
9377 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9378 * objc-lang.h: Forward declare "struct parser_state".
9379 (end_msglist): Add "struct parser_state" argument.
9380 * p-exp.y (parse_type): Rewrite macro to use parser state.
9381 (yyparse): Redefine macro to pascal_parse_internal.
9382 (pstate): New variable.
9383 (parse_number): Add "struct parser_state" argument.
9384 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9385 write_exp* and similars in order to use parser state.
9386 (parse_number, yylex): Adjust code to use parser state.
9387 (pascal_parse): New function.
9388 * p-lang.h: Forward declare "struct parser_state".
9389 (pascal_parse): Add "struct parser_state" argument.
9390 * go-exp.y (parse_type): Rewrite macro to use parser state.
9391 (yyparse): Redefine macro to go_parse_internal.
9392 (pstate): New variable.
9393 (parse_number): Add "struct parser_state" argument.
9394 (type_exp, exp1, exp, variable, type): Update calls to
9395 write_exp* and similars in order to use parser state.
9396 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9397 to use parser state.
9398 (go_parse): Likewise.
9399 * go-lang.h: Forward declare "struct parser_state".
9400 (go_parse): Add "struct parser_state" argument.
9404 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9408 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9409 Remove argument abbrev_section. All callers updated.
9413 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9414 addr_base, ranges_base.
9418 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9419 types, not VAR_DOMAIN.
9423 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9425 * features/nios2-linux.c: Regenerated.
9426 * features/nios2.c: Regenerated.
9430 * cli/cli-script.c (script_from_file): Force the interpreter to
9435 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9436 small stack allocation.
9440 * darwin-nat.c (exc_server): Remove unused prototype.
9441 (darwin_dump_message): Correctly display data on x86_64.
9442 (darwin_encode_reply): Fix style.
9443 Add comments and fix indentation.
9447 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9451 * infcmd.c: Whitespace fixes.
9452 (interrupt_command): Merge two function comments into one.
9456 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9461 * remote.c (target_read_live_memory): Remove.
9462 (memory_xfer_live_readonly_partial): Rename it to
9463 remote_xfer_live_readonly_partial. Remove argument 'object'.
9464 All callers updated. Call remote_read_bytes_1
9465 instead of target_read_live_memory.
9466 * tracepoint.c (set_traceframe_number): Remove.
9467 (make_cleanup_restore_traceframe_number): Likewise .
9468 * tracepoint.h (set_traceframe_number): Remove declaration.
9469 (make_cleanup_restore_traceframe_number): Likewise.
9473 * remote.c (remote_read_bytes): Move code on reading from the
9475 (remote_read_bytes_1): ... here. New function.
9479 * ctf.c (ctf_xfer_partial): Check the return value of
9480 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9481 return TARGET_XFER_UNAVAILABLE.
9482 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9483 * target.c (target_read_live_memory): Move it to remote.c.
9484 (memory_xfer_live_readonly_partial): Likewise.
9485 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9486 * remote.c (target_read_live_memory): Moved from target.c.
9487 (memory_xfer_live_readonly_partial): Likewise.
9488 (remote_read_bytes): Factored out from
9489 memory_xfer_partial_1.
9493 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9498 * infrun.c (normal_stop): Extend comment.
9503 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9505 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9506 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9507 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9511 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9512 `z' formatted output modifier.
9517 * probe.c (parse_probes): Turn assert into an ordinary error.
9518 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9519 exceptions when parsing probes. Rearrange the code for clarity.
9524 * top.c (execute_command): Only dispatch events if the command
9530 * infcall.c: Include event-top.h.
9531 (run_inferior_call): Call async_disable_stdin if needed.
9535 * infrun.c (prepare_to_proceed): Delete.
9536 (thread_still_needs_step_over): New function.
9537 (find_thread_needs_step_over): New function.
9538 (proceed): If the current thread needs a step-over, set its
9539 steping_over_breakpoint flag. Adjust to use
9540 find_thread_needs_step_over instead of prepare_to_proceed.
9541 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9542 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9544 (switch_back_to_stepped_thread): Step over breakpoints of all
9545 threads not the stepping thread, before switching back to the
9550 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9552 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9553 * infrun.c (saved_singlestep_ptid)
9554 (stepping_past_singlestep_breakpoint): Delete.
9555 (resume): Remove stepping_past_singlestep_breakpoint handling.
9556 (proceed): Store the prev_pc of the stepping thread too.
9557 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9559 (enum infwait_states): Delete infwait_thread_hop_state.
9560 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9562 (handle_inferior_event): Adjust.
9563 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9564 handling and the thread-hop code. Before removing single-step
9565 breakpoints, check whether the thread hit a single-step breakpoint
9566 of another thread. If it did, the trap is not a random signal.
9567 (switch_back_to_stepped_thread): If the event thread hit a
9568 single-step breakpoint, unblock it before switching to the
9569 stepping thread. Handle the case of the stepped thread having
9571 (keep_going): Handle the case of the current thread moving past a
9572 single-step breakpoint.
9577 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9578 are being stepped over.
9579 (breakpoint_address_match): Make extern.
9580 * breakpoint.h (breakpoint_address_match): New declaration.
9581 * inferior.h (stepping_past_instruction_at): New declaration.
9582 * infrun.c (struct step_over_info): New type.
9583 (step_over_info): New global.
9584 (set_step_over_info, clear_step_over_info)
9585 (stepping_past_instruction_at): New functions.
9586 (handle_inferior_event): Clear the step-over info when
9587 trap_expected is cleared.
9588 (resume): Remove now stale comment.
9589 (clear_proceed_status): Clear step-over info.
9590 (proceed): Adjust step-over handling to set or clear the step-over
9591 info instead of removing all breakpoints.
9592 (handle_signal_stop): When setting up a thread-hop, don't remove
9594 (stop_stepping): Clear step-over info.
9595 (keep_going): Adjust step-over handling to set or clear step-over
9596 info and then always inserting breakpoints, instead of removing
9597 all breakpoints when stepping over one.
9601 * infrun.c (previous_inferior_ptid): Adjust comment.
9602 (deferred_step_ptid): Delete.
9603 (infrun_thread_ptid_changed, prepare_to_proceed)
9604 (init_wait_for_inferior): Adjust.
9605 (handle_signal_stop): Delete deferred_step_ptid handling.
9610 * defs.h (sync_quit_force_run): New declaration.
9611 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9612 * event-top.c (async_sigterm_handler): New declaration.
9613 (async_sigterm_token): New variable.
9614 (async_init_signals): Create also async_sigterm_token.
9615 (async_sigterm_handler): New function.
9616 (sync_quit_force_run): New variable.
9617 (handle_sigterm): Replace quit_force call by other calls.
9618 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9622 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9623 offset into SPE pseudo registers.
9628 * inferior.h (print_stop_event): Declare.
9629 * infrun.c (print_stop_event): New, factored out from ...
9630 (normal_stop): ... this.
9631 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9632 of bpstat_print/print_stack_frame.
9636 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9640 * ada-lang.c (decode_constrained_packed_array): Perform a
9641 minimal coercion for reference with coerce_ref instead of
9646 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9647 (darwin_solib_create_inferior_hook): Emit a warning if version
9652 * python/py-value.c (get_field_flag): Cast flag_name argument to
9653 PyObject_GetAttrString to support Python 2.4.
9657 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9658 (Global Maintainers): Remove Jan Kratochvil.
9662 * inferior.h (terminal_ours_for_output): Rename to ...
9663 (child_terminal_ours_for_output): ... this.
9664 (terminal_save_ours): Rename to ...
9665 (child_terminal_save_ours): ... this.
9666 (terminal_ours): Rename to ...
9667 (child_terminal_ours): ... this.
9668 (terminal_inferior): Rename to ...
9669 (child_terminal_inferior): ... this.
9670 (terminal_init_inferior): Rename to ...
9671 (child_terminal_init_inferior): ... this.
9672 (terminal_init_inferior_with_pgrp): Rename to ...
9673 (child_terminal_init_inferior_with_pgrp): ... this.
9674 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9675 (child_terminal_init_with_pgrp): ... this.
9676 (terminal_save_ours): Rename to ...
9677 (child_terminal_save_ours): ... this.
9678 (terminal_init_inferior): Rename to ...
9679 (child_terminal_init): ... this. Adjust.
9680 (terminal_inferior): Rename to ...
9681 (child_terminal_inferior): ... this.
9682 (terminal_ours_for_output): Rename to ...
9683 (child_terminal_ours_for_output): ... this. Adjust.
9684 (terminal_ours): Rename to ...
9685 (child_terminal_ours): ... this.
9686 (terminal_ours_1): Rename to ...
9687 (child_terminal_ours_1): ... this. Adjust.
9688 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9689 * windows-nat.c (do_initial_windows_stuff): Adjust.
9690 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9691 (gnu_terminal_init): ... this. Adjust.
9692 (gnu_target): Adjust.
9693 * inf-child.c (inf_child_target): Adjust.
9698 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9703 * value.c (record_latest_value): Call release_value_or_incref
9704 instead of release_value.
9708 * procfs.c (procfs_target): Don't override to_shortname,
9709 to_longname or to_doc.
9713 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9714 Unix in user visible strings.
9718 * gdbtypes.h: Annotate comments for Doxygen, add a page
9719 block comment with some general info.
9723 * infcmd.c (prepare_execution_command): New function, factored out
9724 from several execution commands.
9725 (run_command_1, continue_command, step_1, jump_command)
9726 (signal_command, until_command, advance_command, finish_command)
9727 (attach_command): Use prepare_execution_command.
9731 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9734 (struct arm_linux_thread_points): Removed.
9735 (struct arm_linux_process_info): New.
9736 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9737 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9738 (arm_linux_find_breakpoints_by_tid): Removed.
9739 (struct arch_lwp_info): New.
9740 (arm_linux_find_process_pid): New functions.
9741 (arm_linux_add_process): New functions.
9742 (arm_linux_process_info_get): New functions.
9743 (arm_linux_forget_process): New function.
9744 (arm_linux_get_debug_reg_state): New function.
9745 (struct update_registers_data): New.
9746 (update_registers_callback): New function.
9747 (arm_linux_insert_hw_breakpoint1): Updated.
9748 (arm_linux_remove_hw_breakpoint1): Updated.
9749 (arm_linux_insert_hw_breakpoint): Updated.
9750 (arm_linux_remove_hw_breakpoint): Updated.
9751 (arm_linux_insert_watchpoint): Updated.
9752 (arm_linux_remove_watchpoint): Updated.
9753 (arm_linux_new_thread): Updated.
9754 (arm_linux_prepare_to_resume): New function.
9755 (arm_linux_new_fork): New function.
9756 (_initialize_arm_linux_nat): Updated.
9760 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9764 * inf-child.c (return_zero): New function.
9765 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9766 * aix-thread.c (aix_thread_inferior_created): New function.
9767 (aix_thread_attach): Remove.
9768 (init_aix_thread_ops): Don't set to_attach.
9769 (_initialize_aix_thread): Register inferior_created observer.
9770 * corelow.c (init_core_ops): Don't set to_attach or
9772 * exec.c (init_exec_ops): Don't set to_attach or
9774 * infcmd.c (run_command_1): Use find_run_target. Make direct
9776 (attach_command): Use find_attach_target. Make direct target
9778 * record-btrace.c (init_record_btrace_ops): Don't set
9780 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9782 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9783 set to_create_inferior.
9784 * target.c (complete_target_initialization): Add assertion.
9785 (target_create_inferior): Remove.
9786 (find_default_attach, find_default_create_inferior): Remove.
9787 (find_attach_target, find_run_target): New functions.
9788 (find_default_is_async_p, find_default_can_async_p)
9789 (target_supports_non_stop, target_attach): Remove.
9790 (init_dummy_target): Don't set to_create_inferior or
9791 to_supports_non_stop.
9792 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9793 TARGET_DEFAULT_FUNC.
9794 <to_create_inferior>: Add comment.
9795 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9796 TARGET_DEFAULT_RETURN.
9797 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9798 (find_attach_target, find_run_target): Declare.
9799 (target_create_inferior): Remove.
9800 (target_has_execution_1): Update comment.
9801 (target_supports_non_stop): Remove.
9802 * target-delegates.c: Rebuild.
9806 * inf-child.h: Update comment to not mention Unix.
9810 * inf-child.c: Update top comment to not mention Unix. Add
9811 generic comment describing how this target is meant to be used.
9812 (inf_child_post_attach, inf_child_post_startup_inferior)
9813 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9818 * nto-procfs.c: Include inf-child.h.
9819 (procfs_ops): Delete global.
9820 (procfs_can_run): Delete method.
9821 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9822 target pointer instead of referencing procfs_ops.
9823 (procfs_prepare_to_store): Delete.
9824 (init_procfs_ops): Delete function.
9825 (procfs_target): New function, based on init_procfs_ops, but
9826 inherit inf_child_target.
9827 (_initialize_procfs): Use procfs_target.
9831 * windows-nat.c: Include inf-child.h.
9832 (windows_ops): Delete global.
9833 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9835 (init_windows_ops): Delete function.
9836 (windows_target): New function, based on init_windows_ops, but
9837 inherit inf_child_target.
9838 (_initialize_windows_nat): Use windows_target. Install x86
9839 specific target methods here.
9843 * guile/guile.c (call_initialize_gdb_module): New function.
9844 (initialize_guile): Replace call to scm_init_guile with call to
9849 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9850 in call to TYPE_CODE macro.
9854 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9855 Resolve tagged types to full view.
9859 * target.h (target_insert_breakpoint): Remove "hardware" from its
9864 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9868 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9869 Remove unused local comp_dir_attr. Assert exactly one of
9870 stub_comp_unit_die, stub_comp_dir is non-NULL.
9874 * target.h (complete_target_initialization, add_target):
9879 * go32-nat.c: Include inf-child.h.
9880 (go32_ops): Delete global.
9881 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9883 (go32_create_inferior): Push the passed in target pointer instead
9884 of referencing go32_ops.
9885 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9886 (go32_target): New function, based on init_go32_ops, but inherit
9888 (_initialize_go32_nat): Use go32_target. Move parts of
9893 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9894 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9895 SYMBOL_VALUE_ADDRESS.
9896 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9900 * breakpoint.c (get_tracepoint_by_number): Remove argument
9901 optional_p. All callers updated. Adjust comments. Update
9903 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9907 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9908 early if get_number returns zero. Use 'p' instead of 'args'.
9912 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9917 PR breakpoints/16508
9918 * tracepoint.c (check_trace_running): New function.
9919 (trace_find_command): Move code to check_trace_running and
9920 call check_trace_running.
9921 (trace_find_pc_command): Likewise.
9922 (trace_find_tracepoint_command): Likewise.
9923 (trace_find_line_command): Likewise.
9924 (trace_find_range_command): Likewise.
9925 * tracepoint.h (check_trace_running): Likewise.
9926 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9930 * target.h (struct target_ops) <to_traceframe_info>: Use
9931 TARGET_DEFAULT_NORETURN (tcomplain ()).
9932 * target-delegates.c: Regenerated.
9937 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9938 void. Update comment.
9939 (dcache_xfer_memory): Delete.
9940 (dcache_read_memory_partial): New, based on the read bits of
9942 (dcache_update): Add status parameter. Use ULONGEST for len, and
9943 adjust. Discard cache lines if the reason for the update was
9945 * dcache.h (dcache_xfer_memory): Delete declaration.
9946 (dcache_read_memory_partial): New declaration.
9947 (dcache_update): Update prototype.
9948 * target.c (raw_memory_xfer_partial): Update the dcache here.
9949 (memory_xfer_partial_1): Don't handle dcache writes here.
9953 * remote-sim.c (gdbsim_load): Add const to prog.
9957 * elfread.c (probe_key): Change to bfd_data.
9958 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9959 now per-BFD, not per-objfile.
9960 * stap-probe.c (stap_probe_destroy): Update comment.
9961 (handle_stap_probe): Allocate on the per-BFD obstack.
9965 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9966 * breakpoint.c (create_longjmp_master_breakpoint): Use
9968 (add_location_to_breakpoint, bkpt_probe_insert_location)
9969 (bkpt_probe_remove_location): Update.
9970 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9971 * elfread.c (elf_symfile_relocate_probe): Remove.
9972 (elf_probe_fns): Update.
9973 (insert_exception_resume_breakpoint): Change type of "probe"
9974 parameter to bound_probe.
9975 (check_exception_resume): Update.
9976 * objfiles.c (objfile_relocate1): Don't relocate probes.
9977 * probe.c (bound_probe_s): New typedef.
9978 (parse_probes): Use get_probe_address. Set sal's objfile.
9979 (find_probe_by_pc): Return a bound_probe.
9980 (collect_probes): Return a VEC(bound_probe_s).
9981 (compare_probes): Update.
9982 (gen_ui_out_table_header_info): Change type of "probes"
9984 (info_probes_for_ops): Update.
9985 (get_probe_address): New function.
9986 (probe_safe_evaluate_at_pc): Update.
9987 * probe.h (struct probe_ops) <get_probe_address>: New field.
9988 <set_semaphore, clear_semaphore>: Add objfile parameter.
9989 (struct probe) <objfile>: Remove field.
9991 <address>: Update comment.
9992 (struct bound_probe): New.
9993 (find_probe_by_pc): Return a bound_probe.
9994 (get_probe_address): Declare.
9995 * solib-svr4.c (struct probe_and_action) <address>: New field.
9996 (hash_probe_and_action, equal_probe_and_action): Update.
9997 (register_solib_event_probe): Add address parameter.
9998 (solib_event_probe_at): Update.
9999 (svr4_create_probe_breakpoints): Add objfile parameter. Use
10001 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
10002 (stap_get_probe_address): New function.
10003 (stap_can_evaluate_probe_arguments, compute_probe_arg)
10004 (compile_probe_arg): Update.
10005 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
10007 (handle_stap_probe): Don't relocate the probe.
10008 (stap_relocate): Remove.
10009 (stap_gen_info_probes_table_values): Update.
10010 (stap_probe_ops): Remove stap_relocate.
10011 * symfile-debug.c (debug_sym_relocate_probe): Remove.
10012 (debug_sym_probe_fns): Update.
10013 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
10014 * symtab.c (init_sal): Use memset.
10015 * symtab.h (struct symtab_and_line) <objfile>: New field.
10016 * tracepoint.c (start_tracing, stop_tracing): Update.
10020 * probe.h (parse_probes, find_probe_by_pc)
10021 (find_probes_in_objfile): Fix comments.
10025 * infrun.c (handle_signal_stop): Replace test for
10026 TARGET_WAITKIND_STOPPED with an assert.
10030 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
10034 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
10038 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10042 * i386obsd-nat.c: Include "obsd-nat.h".
10043 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10045 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10049 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10053 * mips64obsd-nat.c: Include "obsd-nath".
10054 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10056 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10060 * amd64obsd-nat.c: Include "obsd-nat,h.
10061 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10063 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10067 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10068 (find_overload_match): Update call to find_oload_champ.
10069 (find_oload_champ_namespace_loop): Likewise
10073 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10075 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10076 * config/sparc/obsd64.mh: New file.
10077 * sparc64obsd-nat.c: New file.
10079 * obsd-nat.h: New file.
10080 * obsd-nat.c: New file.
10081 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10082 (ALLDEPFILES): Add obsd-nat.c.
10086 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10087 * cli-out.h (cli_ui_out_impl): Now const.
10088 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10089 * ui-out.c (struct ui_out) <impl>: Now const.
10090 (default_ui_out_impl): Now const.
10091 (ui_out_new): Make 'impl' parameter const.
10092 * ui-out.h (ui_out_new): Update.
10096 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10100 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10104 Additional PR 8882 fix.
10105 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10109 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10115 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10116 * nat/linux-waitpid.c: Include string.h.
10117 (status_to_str): Moved here and made extern.
10118 * nat/linux-waitpid.h (status_to_str): New declaration.
10123 * infrun.c (ptid_match): Move ...
10124 * common/ptid.c (ptid_match): ... here.
10125 * inferior.h (ptid_match): Move ...
10126 * common/ptid.h (ptid_match): ... here.
10130 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10131 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10136 * obsd-tdep.c (obsd_auxv_parse): New function.
10137 (obsd_init_abi): Set auxv_parse.
10139 * gdbarch.sh (auxv_parse): New.
10140 * gdbarch.h: Regenerated.
10141 * gdbarch.c: Regenerated.
10142 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10146 * guile/scm-value.c (gdbscm_history_append_x): New function.
10147 (value_functions): Add it.
10151 * dwarf2read.c (attr_value_as_address): New function.
10152 (dwarf2_find_base_address, read_call_site_scope): Use
10153 attr_value_as_address in place of DW_ADDR.
10154 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10155 the low and high addresses. Slight rework of the handling
10156 of the high pc being a constant form, and limit it to
10157 DWARF verson 4 or higher.
10158 (dwarf2_record_block_ranges): Likewise.
10159 (read_partial_die): Likewise.
10160 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10164 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10168 * elfread.c (elf_read_minimal_symbols): Return early if
10169 minimal symbols have already been read. Add "ei" parameter.
10170 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10171 * minsyms.c (prim_record_minimal_symbol_full): Update.
10172 * objfiles.h (struct objstats) <n_minsyms>: Move...
10173 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10174 * symmisc.c (print_objfile_statistics): Update.
10178 * elfread.c (elf_read_minimal_symbols): New function, from
10180 (elf_symfile_read): Call it.
10184 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10185 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10186 (lookup_minimal_symbol_solib_trampoline)
10187 (lookup_minimal_symbol_by_pc_section_1)
10188 (lookup_minimal_symbol_and_objfile): Update.
10189 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10190 Don't allocate a minimal symbol if minsyms have already been read.
10191 (build_minimal_symbol_hash_tables): Update.
10192 (install_minimal_symbols): Do nothing if minsyms already read.
10193 Use the per-BFD obstack.
10194 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10195 * objfiles.c (allocate_objfile): Call
10196 terminate_minimal_symbol_table later.
10197 (have_minimal_symbols): Update.
10198 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10199 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10200 Move from struct objfile.
10201 <minsyms_read>: New field.
10202 (struct objfile) <msymbols, minimal_symbol_count,
10203 msymbol_hash, msymbol_demangled_hash>: Move.
10204 (ALL_OBJFILE_MSYMBOLS): Update.
10205 * symfile.c (read_symbols): Set minsyms_read.
10206 (reread_symbols): Update.
10207 * symmisc.c (dump_objfile, dump_msymbols): Update.
10211 * minsyms.c (msymbols_sort): Remove.
10212 * minsyms.h (msymbols_sort): Remove.
10213 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10214 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10215 * elfread.c (elf_symtab_read): Don't add section offsets.
10216 * xcoffread.c (record_minimal_symbol): Don't add section offset
10217 to minimal symbol address.
10218 * somread.c (text_offset, data_offset): Remove.
10219 (som_symtab_read): Don't add section offsets to minimal symbol
10221 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10222 Don't add section offsets to minimal symbols.
10223 * coffread.c (coff_symtab_read): Don't add section offsets
10224 to minimal symbol addresses.
10225 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10226 to minimal symbol addresses.
10227 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10228 section offset to minimal symbol addresses.
10229 * mdebugread.c (parse_partial_symbols): Don't add section
10230 offset to minimal symbol addresses.
10231 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10232 offset to minimal symbol addresses.
10236 * ada-lang.c (ada_main_name): Update.
10237 (ada_add_standard_exceptions): Update.
10238 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10239 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10240 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10241 * auxv.c (ld_so_xfer_auxv): Update.
10242 * avr-tdep.c (avr_scan_prologue): Update.
10243 * ax-gdb.c (gen_var_ref): Update.
10244 * blockframe.c (get_pc_function_start)
10245 (find_pc_partial_function_gnu_ifunc): Update.
10246 * breakpoint.c (create_overlay_event_breakpoint)
10247 (create_longjmp_master_breakpoint)
10248 (create_std_terminate_master_breakpoint)
10249 (create_exception_master_breakpoint): Update.
10250 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10251 * c-valprint.c (c_val_print): Update.
10252 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10253 * common/agent.c (agent_look_up_symbols): Update.
10254 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10255 * dwarf2loc.c (call_site_to_target_addr): Update.
10256 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10257 * elfread.c (elf_gnu_ifunc_record_cache)
10258 (elf_gnu_ifunc_resolve_by_got): Update.
10259 * findvar.c (default_read_var_value): Update.
10260 * frame.c (inside_main_func): Update.
10261 * frv-tdep.c (frv_frame_this_id): Update.
10262 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10263 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10265 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10266 (hppa_hpux_find_dummy_bpaddr): Update.
10267 * hppa-tdep.c (hppa_symbol_address): Update.
10268 * infcmd.c (until_next_command): Update.
10269 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10271 * linespec.c (minsym_found, add_minsym): Update.
10272 * linux-nat.c (get_signo): Update.
10273 * linux-thread-db.c (inferior_has_bug): Update.
10274 * m32c-tdep.c (m32c_return_value)
10275 (m32c_m16c_address_to_pointer): Update.
10276 * m32r-tdep.c (m32r_frame_this_id): Update.
10277 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10278 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10279 * maint.c (maintenance_translate_address): Update.
10280 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10281 (frob_address): New function.
10282 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10283 frob_address. Rename parameter to "pc_in".
10284 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10286 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10288 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10289 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10290 * objc-lang.c (find_objc_msgsend): Update.
10291 * objfiles.c (objfile_relocate1): Update.
10292 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10293 * p-valprint.c (pascal_val_print): Update.
10294 * parse.c (write_exp_msymbol): Update.
10295 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10296 (ppc_elfv2_skip_entrypoint): Update.
10297 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10298 * printcmd.c (build_address_symbolic, msym_info)
10299 (address_info): Update.
10300 * proc-service.c (ps_pglobal_lookup): Update.
10301 * psymtab.c (find_pc_sect_psymtab_closer)
10302 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10303 Change msymbol parameter to bound_minimal_symbol.
10304 * ravenscar-thread.c (get_running_thread_id): Update.
10305 * remote.c (remote_check_symbols): Update.
10306 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10308 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10309 * solib-dsbt.c (lm_base): Update.
10310 * solib-frv.c (lm_base, main_got): Update.
10311 * solib-irix.c (locate_base): Update.
10312 * solib-som.c (som_solib_create_inferior_hook)
10313 (link_map_start): Update.
10314 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10315 * solib-svr4.c (elf_locate_base, enable_break): Update.
10316 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10317 (flush_ea_cache): Update.
10318 * stabsread.c (define_symbol, scan_file_globals): Update.
10319 * stack.c (find_frame_funname): Update.
10320 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10321 (debug_qf_find_pc_sect_symtab): Update.
10322 * symfile.c (simple_read_overlay_table)
10323 (simple_overlay_update): Update.
10324 * symfile.h (struct quick_symbol_functions)
10325 <find_pc_sect_symtab>: Change type of msymbol to
10326 bound_minimal_symbol.
10327 * symmisc.c (dump_msymbols): Update.
10328 * symtab.c (find_pc_sect_symtab_via_partial)
10329 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10330 (search_symbols, print_msymbol_info): Update.
10331 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10332 (MSYMBOL_VALUE_ADDRESS): Redefine.
10333 (BMSYMBOL_VALUE_ADDRESS): New macro.
10334 * tracepoint.c (scope_info): Update.
10335 * tui/tui-disasm.c (tui_find_disassembly_address)
10336 (tui_get_begin_asm_address): Update.
10337 * valops.c (find_function_in_inferior): Update.
10338 * value.c (value_static_field, value_fn_field): Update.
10342 * ada-lang.c (ada_update_initial_language): Update.
10343 (ada_main_name, ada_has_this_exception_support): Update.
10344 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10345 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10346 * arm-tdep.c (arm_skip_stub): Update.
10347 * auxv.c (ld_so_xfer_auxv): Update.
10348 * avr-tdep.c (avr_scan_prologue): Update.
10349 * ax-gdb.c (gen_var_ref): Update.
10350 * breakpoint.c (struct breakpoint_objfile_data)
10351 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10352 type to bound_minimal_symbol.
10353 (create_overlay_event_breakpoint)
10354 (create_longjmp_master_breakpoint)
10355 (create_std_terminate_master_breakpoint)
10356 (create_exception_master_breakpoint): Update.
10357 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10358 * c-exp.y (classify_name): Update.
10359 * coffread.c (coff_symfile_read): Update.
10360 * common/agent.c (agent_look_up_symbols): Update.
10361 * d-lang.c (d_main_name): Update.
10362 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10363 * dec-thread.c (enable_dec_thread): Update.
10364 * dwarf2loc.c (call_site_to_target_addr): Update.
10365 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10366 * eval.c (evaluate_subexp_standard): Update.
10367 * findvar.c (struct minsym_lookup_data) <result>: Change type
10368 to bound_minimal_symbol.
10370 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10371 * frame.c (inside_main_func): Update.
10372 * frv-tdep.c (frv_frame_this_id): Update.
10373 * gcore.c (call_target_sbrk): Update.
10374 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10375 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10377 * go-lang.c (go_main_name): Update.
10378 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10379 (hppa_hpux_find_import_stub_for_addr): Update.
10380 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10381 Update. Change return type.
10382 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10384 * jit.c (jit_breakpoint_re_set_internal): Update.
10385 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10387 * linux-nat.c (get_signo): Update.
10388 * linux-thread-db.c (inferior_has_bug): Update
10389 * m32c-tdep.c (m32c_return_value)
10390 (m32c_m16c_address_to_pointer): Update.
10391 * m32r-tdep.c (m32r_frame_this_id): Update.
10392 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10393 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10394 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10395 lookup_minimal_symbol. Change return type.
10396 (lookup_minimal_symbol): Remove.
10397 (lookup_bound_minimal_symbol): Update.
10398 (lookup_minimal_symbol_text): Change return type.
10399 (lookup_minimal_symbol_solib_trampoline): Change return type.
10400 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10401 (lookup_minimal_symbol_solib_trampoline): Change return type.
10402 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10403 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10404 (value_nsstring, find_imps): Update.
10405 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10406 * p-lang.c (pascal_main_name): Update.
10407 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10408 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10409 * proc-service.c (ps_pglobal_lookup): Update.
10410 * ravenscar-thread.c (get_running_thread_msymbol): Change
10412 (has_ravenscar_runtime, get_running_thread_id): Update.
10413 * remote.c (remote_check_symbols): Update.
10414 * sol-thread.c (ps_pglobal_lookup): Update.
10415 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10416 * solib-dsbt.c (lm_base): Update.
10417 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10419 * solib-irix.c (locate_base): Update.
10420 * solib-som.c (som_solib_create_inferior_hook)
10421 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10423 * solib-spu.c (spu_enable_break): Update.
10424 * solib-svr4.c (elf_locate_base, enable_break): Update.
10425 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10426 (flush_ea_cache): Update.
10427 * stabsread.c (define_symbol): Update.
10428 * symfile.c (simple_read_overlay_table): Update.
10429 * symtab.c (find_pc_sect_line): Update.
10430 * tracepoint.c (scope_info): Update.
10431 * tui-disasm.c (tui_get_begin_asm_address): Update.
10432 * value.c (value_static_field): Update.
10436 * minsyms.c (prim_record_minimal_symbol_full): Use
10437 SET_MSYMBOL_VALUE_ADDRESS.
10438 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10439 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10440 SET_MSYMBOL_VALUE_ADDRESS.
10441 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10442 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10446 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10447 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10448 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10449 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10450 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10451 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10452 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10453 * ada-lang.c (ada_main_name): Update.
10454 (ada_lookup_simple_minsym): Update.
10455 (ada_make_symbol_completion_list): Update.
10456 (ada_add_standard_exceptions): Update.
10457 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10458 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10459 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10460 * arm-tdep.c (skip_prologue_function): Update.
10461 (arm_skip_stack_protector, arm_skip_stub): Update.
10462 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10463 (arm_wince_skip_main_prologue): Update.
10464 * auxv.c (ld_so_xfer_auxv): Update.
10465 * avr-tdep.c (avr_scan_prologue): Update.
10466 * ax-gdb.c (gen_var_ref): Update.
10467 * block.c (call_site_for_pc): Update.
10468 * blockframe.c (get_pc_function_start): Update.
10469 (find_pc_partial_function_gnu_ifunc): Update.
10470 * breakpoint.c (create_overlay_event_breakpoint): Update.
10471 (create_longjmp_master_breakpoint): Update.
10472 (create_std_terminate_master_breakpoint): Update.
10473 (create_exception_master_breakpoint): Update.
10474 (resolve_sal_pc): Update.
10475 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10476 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10478 * c-valprint.c (c_val_print): Update.
10479 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10480 * coffread.c (coff_symfile_read): Update.
10481 * common/agent.c (agent_look_up_symbols): Update.
10482 * dbxread.c (find_stab_function_addr): Update.
10483 (end_psymtab): Update.
10484 * dwarf2loc.c (call_site_to_target_addr): Update.
10485 (func_verify_no_selftailcall): Update.
10486 (tailcall_dump): Update.
10487 (call_site_find_chain_1): Update.
10488 (dwarf_expr_reg_to_entry_parameter): Update.
10489 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10490 (elf_gnu_ifunc_resolve_by_got): Update.
10491 * f-valprint.c (info_common_command): Update.
10492 * findvar.c (read_var_value): Update.
10493 * frame.c (get_prev_frame_1): Update.
10494 (inside_main_func): Update.
10495 * frv-tdep.c (frv_skip_main_prologue): Update.
10496 (frv_frame_this_id): Update.
10497 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10498 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10499 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10500 (gnuv3_skip_trampoline): Update.
10501 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10502 (hppa64_hpux_in_solib_call_trampoline): Update.
10503 (hppa_hpux_skip_trampoline_code): Update.
10504 (hppa64_hpux_search_dummy_call_sequence): Update.
10505 (hppa_hpux_find_import_stub_for_addr): Update.
10506 (hppa_hpux_find_dummy_bpaddr): Update.
10507 * hppa-tdep.c (hppa_symbol_address)
10508 (hppa_lookup_stub_minimal_symbol): Update.
10509 * i386-tdep.c (i386_skip_main_prologue): Update.
10510 (i386_pe_skip_trampoline_code): Update.
10511 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10512 * infcall.c (get_function_name): Update.
10513 * infcmd.c (until_next_command): Update.
10514 * jit.c (jit_breakpoint_re_set_internal): Update.
10515 (jit_inferior_init): Update.
10516 * linespec.c (minsym_found): Update.
10517 (add_minsym): Update.
10518 * linux-fork.c (info_checkpoints_command): Update.
10519 * linux-nat.c (get_signo): Update.
10520 * linux-thread-db.c (inferior_has_bug): Update.
10521 * m32c-tdep.c (m32c_return_value): Update.
10522 (m32c_m16c_address_to_pointer): Update.
10523 (m32c_m16c_pointer_to_address): Update.
10524 * m32r-tdep.c (m32r_frame_this_id): Update.
10525 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10526 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10527 * maint.c (maintenance_translate_address): Update.
10528 * minsyms.c (add_minsym_to_hash_table): Update.
10529 (add_minsym_to_demangled_hash_table): Update.
10530 (msymbol_objfile): Update.
10531 (lookup_minimal_symbol): Update.
10532 (iterate_over_minimal_symbols): Update.
10533 (lookup_minimal_symbol_text): Update.
10534 (lookup_minimal_symbol_by_pc_name): Update.
10535 (lookup_minimal_symbol_solib_trampoline): Update.
10536 (lookup_minimal_symbol_by_pc_section_1): Update.
10537 (lookup_minimal_symbol_and_objfile): Update.
10538 (prim_record_minimal_symbol_full): Update.
10539 (compare_minimal_symbols): Update.
10540 (compact_minimal_symbols): Update.
10541 (build_minimal_symbol_hash_tables): Update.
10542 (install_minimal_symbols): Update.
10543 (terminate_minimal_symbol_table): Update.
10544 (find_solib_trampoline_target): Update.
10545 (minimal_symbol_upper_bound): Update.
10546 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10547 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10548 (mips_skip_pic_trampoline_code): Update.
10549 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10550 * objc-lang.c (selectors_info): Update.
10551 (classes_info): Update.
10552 (find_methods): Update.
10553 (find_imps): Update.
10554 (find_objc_msgsend): Update.
10555 * objfiles.c (objfile_relocate1): Update.
10556 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10557 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10558 * p-valprint.c (pascal_val_print): Update.
10559 * parse.c (write_exp_msymbol): Update.
10560 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10561 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10562 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10563 * printcmd.c (build_address_symbolic): Update.
10564 (sym_info): Update.
10565 (address_info): Update.
10566 * proc-service.c (ps_pglobal_lookup): Update.
10567 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10568 (find_pc_sect_psymtab): Update.
10569 * python/py-framefilter.c (py_print_frame): Update.
10570 * ravenscar-thread.c (get_running_thread_id): Update.
10571 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10573 * remote.c (remote_check_symbols): Update.
10574 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10575 (rs6000_skip_trampoline_code): Update.
10576 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10577 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10578 * solib-dsbt.c (lm_base): Update.
10579 * solib-frv.c (lm_base): Update.
10580 (main_got): Update.
10581 * solib-irix.c (locate_base): Update.
10582 * solib-som.c (som_solib_create_inferior_hook): Update.
10583 (som_solib_desire_dynamic_linker_symbols): Update.
10584 (link_map_start): Update.
10585 * solib-spu.c (spu_enable_break): Update.
10586 (ocl_enable_break): Update.
10587 * solib-svr4.c (elf_locate_base): Update.
10588 (enable_break): Update.
10589 * spu-tdep.c (spu_get_overlay_table): Update.
10590 (spu_catch_start): Update.
10591 (flush_ea_cache): Update.
10592 * stabsread.c (define_symbol): Update.
10593 (scan_file_globals): Update.
10594 * stack.c (find_frame_funname): Update.
10595 (frame_info): Update.
10596 * symfile.c (simple_read_overlay_table): Update.
10597 (simple_overlay_update): Update.
10598 * symmisc.c (dump_msymbols): Update.
10599 * symtab.c (fixup_section): Update.
10600 (find_pc_sect_line): Update.
10601 (skip_prologue_sal): Update.
10602 (search_symbols): Update.
10603 (print_msymbol_info): Update.
10604 (rbreak_command): Update.
10605 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10606 (completion_list_objc_symbol): Update.
10607 (default_make_symbol_completion_list_break_on): Update.
10608 * tracepoint.c (scope_info): Update.
10609 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10610 (tui_get_begin_asm_address): Update.
10611 * valops.c (find_function_in_inferior): Update.
10612 * value.c (value_static_field): Update.
10613 (value_fn_field): Update.
10617 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10618 bound minimal symbols. Move code that knows about minsym
10620 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10622 * minsyms.h (minimal_symbol_upper_bound): Declare.
10623 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10624 minimal_symbol_upper_bound.
10628 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10629 Use the type's name if its basic type does not have a tag.
10633 * dwarf2read.c (read_subrange_type): Add comment.
10637 * dwarf2read.c (update_enumeration_type_from_children): New
10638 function, mostly extracted from process_structure_scope.
10639 (read_enumeration_type): Call update_enumeration_type_from_children.
10640 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10641 and flag_flag_enum fields.
10645 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10646 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10647 to_xfer_partial method.
10651 * target.c (complete_target_initialization): Don't install
10652 default_xfer_partial as to_xfer_partial hook.
10653 (nomemory): Delete.
10654 (update_current_target): Don't INHERIT nor de_fault
10655 deprecated_xfer_memory. Delete de_fault macro.
10656 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10657 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10658 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10663 * go32-nat.c (my_write_child): New function.
10664 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10665 (go32_xfer_partial): New function.
10666 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10667 Instead install a to_xfer_partial hook.
10671 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10672 to_xfer_partial helper. Rewrite.
10673 (procfs_xfer_partial): New function.
10674 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10675 Install a to_xfer_partial hook.
10679 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10680 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10681 (m32r_xfer_partial): New function.
10682 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10683 Install a to_xfer_partial hook.
10687 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10689 (mips_xfer_partial): New function.
10690 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10691 hook. Install a to_xfer_partial hook.
10695 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10696 * gdbtypes.c (create_array_type_with_stride): New function,
10697 renaming create_array_type, but with an added parameter
10698 called "bit_stride".
10699 (create_array_type): Re-implement using
10700 create_array_type_with_stride.
10701 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10702 and DW_AT_bit_stride attributes.
10706 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10707 task-specific breakpoints.
10711 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10712 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10716 * defs.h: Annotate comments for Doxygen.
10720 * target.h (target_ignore): Don't declare.
10721 * target.c (target_ignore): Remove.
10726 * auto-load.c (auto_load_objfile_script_1): Change filename to
10731 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10732 documentation. Adjust prototype to match the target_ops
10733 to_xfer_partial method. Adjust implementation accordingly.
10737 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10738 to_traceframe_info.
10742 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10743 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10744 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10745 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10746 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10747 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10748 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10749 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10751 (rl78_register_type): Use a data pointer type for SP and
10752 new pseudo registers mentioned above. Use a 16 bit integer
10753 type for all other register pairs.
10754 (rl78_register_name, rl78_g10_register_name): Update for
10755 new pseudo registers.
10756 (rl78_pseudo_register_read): Likewise.
10757 (rl78_pseudo_register_write): Likewise.
10758 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10759 to the newly added pseudo registers.
10763 * value.c (record_latest_value): Fix comment.
10764 * printcmd.c (print_command_1): Remove code to handle -1 return from
10765 record_latest_value.
10769 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10770 deprecated_xfer_memory hook.
10771 (procfs_xfer_partial): Call procfs_xfer_memory instead
10772 of the deprecated_xfer_memory target hook.
10773 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10778 * windows-nat.c (windows_xfer_shared_libraries): Return
10779 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10780 requested object is TARGET_OBJECT_LIBRARIES.
10784 * target.h (enum target_xfer_status)
10785 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10786 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10788 * corefile.c (memory_error_message): User updated.
10789 * exec.c (section_table_read_available_memory): Likewise.
10790 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10791 * target.c (target_xfer_status_to_string): Likewise.
10792 (raw_memory_xfer_partial): Likewise.
10793 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10794 * valops.c (read_value_memory): Likewise.
10795 * exec.h: Update comments.
10799 * target.c (target_xfer_status_to_string): Rename argument err
10801 * target.h (target_xfer_status_to_string): Update declaration.
10802 Replace target_xfer_error_to_string with
10803 target_xfer_status_to_string in comment.
10807 * mips-linux-nat.c (super_close): Update its type.
10808 (mips_linux_close): Pass 'self' to super_close.
10812 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10813 * corefile.c (read_memory): Adjusted.
10814 * target.c (target_write_with_progress): Adjusted.
10818 Revert two patches:
10822 * remote.c (remote_traceframe_info): Return early if
10823 traceframe is not selected.
10827 * target.c (update_current_target): Change the default action
10828 of 'to_traceframe_info' from tcomplain to return_zero.
10829 * target.h (struct target_ops) <to_traceframe_info>: Add more
10834 * valops.c (read_value_memory): Rewrite it. Call
10835 target_xfer_partial in a loop.
10836 * exec.h (section_table_available_memory): Remove declaration.
10837 Move comments to ...
10838 * exec.c (section_table_available_memory): ... here. Make it
10843 * exec.c (section_table_read_available_memory): New function.
10844 * exec.h (section_table_read_available_memory): Declare.
10845 * ctf.c (ctf_xfer_partial): Call
10846 section_table_read_available_memory.
10847 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10851 * ctf.c (ctf_xfer_partial): Move code to ...
10852 * exec.c (exec_read_partial_read_only): ... it. New function.
10853 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10854 * tracefile.c: Include "exec.h".
10855 * exec.h (exec_read_partial_read_only): Declare.
10859 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10860 (tfile_has_memory): Remove.
10861 (init_tfile_ops): Don't set fields to_has_all_memory and
10862 to_has_memory of tfile_ops.
10863 * tracefile.c (tracefile_has_all_memory): New function.
10864 (tracefile_has_memory): New function.
10865 (init_tracefile_ops): Initialize fields to_has_all_memory and
10866 to_has_memory of 'ops'.
10870 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10871 (ctf_thread_alive, ctf_get_trace_status): Remove.
10872 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10873 init_tracefile_ops.
10874 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10875 (tfile_has_stack, tfile_has_registers): Remove.
10876 (tfile_thread_alive): Remove.
10877 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10878 init_tracefile_ops.
10879 * tracefile.c (tracefile_has_stack): New function.
10880 (tracefile_has_registers): New function.
10881 (tracefile_thread_alive): New function.
10882 (tracefile_get_trace_status): New function.
10883 (init_tracefile_ops): New function.
10884 * tracefile.h (init_tracefile_ops): Declare.
10888 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10889 (O_LARGEFILE): Likewise.
10890 (tfile_ops): Likewise.
10891 (TRACE_HEADER_SIZE): Likewise.
10892 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10893 (cur_data_size): Likewise.
10894 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10895 (tfile_close, tfile_files_info): Likewise.
10896 (tfile_get_trace_status): Likewise.
10897 (tfile_get_tracepoint_status): Likewise.
10898 (tfile_get_traceframe_address): Likewise.
10899 (tfile_trace_find, match_blocktype): Likewise.
10900 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10901 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10902 (tfile_get_trace_state_variable_value): Likewise.
10903 (tfile_has_all_memory, tfile_has_memory): Likewise.
10904 (tfile_has_stack, tfile_has_registers): Likewise.
10905 (tfile_thread_alive, build_traceframe_info): Likewise.
10906 (tfile_traceframe_info, init_tfile_ops): Likewise.
10907 (_initialize_tracepoint): Don't call init_tfile_ops
10908 and add_target_with_completer.
10909 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10910 exec.h, completer.h and filenames.h.
10911 (_initialize_tracefile_tfile): New function.
10915 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10917 (HFILES_NO_SRCDIR): Add tracefile.h.
10918 * ctf.c: Include "tracefile.h".
10919 * tracefile.h: New file.
10920 * tracefile.c: New file
10921 * tracefile-tfile.c: New file.
10922 * tracepoint.c: Include "tracefile.h".
10923 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10924 (stop_reason_names): Add const.
10925 (trace_file_writer_xfree): Move it to tracefile.c.
10926 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10927 (trace_save_ctf): Likewise.
10928 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10929 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10930 (tfile_write_header, tfile_write_regblock_type): Likewise.
10931 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10932 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10933 (tfile_write_raw_data, tfile_end): Likewise.
10934 (tfile_trace_file_writer_new): Likewise.
10935 (free_uploaded_tp): Make it extern.
10936 (free_uploaded_tsv): Make it extern.
10937 (_initialize_tracepoint): Move code to register command 'tsave'
10939 * tracepoint.h (stop_reason_names): Declare.
10940 (struct trace_frame_write_ops): Move it to tracefile.h.
10941 (struct trace_file_write_ops): Likewise.
10942 (struct trace_file_writer): Likewise.
10943 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10948 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10950 (get_cores_used_by_process): New parameter num_cores, use it.
10951 (linux_xfer_osdata_processes): Pass num_cores to it.
10952 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10957 * target.c (memory_xfer_partial): Fix length arg in call to
10958 breakpoint_xfer_memory.
10963 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10964 number comes after the + or - signs. Adjust length of register
10965 name to be extracted.
10969 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10970 (ada_varobj_ops): Mark "extern".
10974 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10978 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10979 All callers updated.
10980 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10981 All callers updated.
10982 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10983 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10990 * dwarf2read.c (struct die_info): New member in_process.
10991 (reset_die_in_process): New function.
10992 (process_die): Set it at the start, reset when returning.
10993 (inherit_abstract_dies): Only call process_die if origin_child_die
10994 not already being processed.
10998 * windows-nat.c (handle_unload_dll): Add function documentation.
10999 (do_initial_windows_stuff): Add comment explaining why we wait
11000 until after inferior initialization has finished before
11001 processing all DLLs.
11005 * windows-nat.c (get_module_name): Delete.
11006 (windows_get_exec_module_filename): New function, mostly
11007 inspired from get_module_name.
11008 (windows_pid_to_exec_file): Replace call to get_module_name
11009 by call to windows_get_exec_module_filename.
11013 * windows-nat.c (handle_load_dll): Rewrite this function's
11014 introductory comment. Remove code using get_module_name
11015 to get the DLL's name.
11019 * windows-nat.c (get_windows_debug_event): Ignore
11020 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
11021 if windows_initialization_done == 0.
11022 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
11023 Adjust implementation to always load all DLLs.
11024 (do_initial_windows_stuff): Replace call to
11025 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
11029 * windows-nat.c (_initialize_windows_nat): Deprecate the
11030 "dll-symbols" command. Turn the "add-shared-symbol-files"
11031 and "assf" aliases into commands, and deprecate them as well.
11032 * NEWS: Add entry explaining that "dll-symbols" and its two
11033 aliases are now deprecated.
11037 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
11038 new-line in debug string. Remove trailing spaces.
11042 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11046 * NEWS: Add entry for the new feature
11047 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11052 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11056 * common/ptid.h (struct ptid): Mention that process_stratum
11057 targets should prefer ptid.lwp.
11061 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11062 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11063 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11064 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11065 store remote thread ids rather than ptid.tid.
11066 (_initialize_remote): Adjust.
11070 * target.c (target_get_unwinder): Rewrite.
11071 (target_get_tailcall_unwinder): Rewrite.
11072 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11073 (record_btrace_to_get_tailcall_unwinder): New function.
11074 (init_record_btrace_ops): Update.
11075 * target.h (struct target_ops) <to_get_unwinder,
11076 to_get_tailcall_unwinder>: Now function pointers. Use
11077 TARGET_DEFAULT_RETURN.
11081 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11083 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11087 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11089 * target-delegates.c: Rebuild.
11090 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11091 TARGET_DEFAULT_FUNC.
11092 * target.c (default_target_decr_pc_after_break): Rename from
11093 forward_target_decr_pc_after_break. Simplify.
11094 (target_decr_pc_after_break): Rely on delegation.
11098 * target.c (update_current_target): Do not INHERIT to_doc or
11099 to_magic. Do not de_fault to_open or to_close.
11103 * gcore.h (objfile_find_memory_regions): Declare.
11104 * gcore.c (objfile_find_memory_regions): No longer static. Add
11106 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11107 * exec.c: Include gcore.h.
11108 (exec_set_find_memory_regions): Remove.
11109 (exec_find_memory_regions): Remove.
11110 (exec_do_find_memory_regions): Remove.
11111 (init_exec_ops): Update.
11112 * defs.h (exec_set_find_memory_regions): Remove.
11116 * target-delegates.c: Rebuild.
11117 * target.h (struct target_ops) <to_extra_thread_info,
11118 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11119 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11120 not 0, in TARGET_DEFAULT_RETURN.
11124 * target.c (complete_target_initialization): Remove casts. Use
11125 return_zero_has_execution.
11126 (return_zero): Add "ignore" argument.
11127 (return_zero_has_execution): New function.
11128 (init_dummy_target): Remove casts. Use
11129 return_zero_has_execution.
11133 * target.c (update_current_target): Update comments. Do not
11134 INHERIT to_stratum.
11138 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11140 * corelow.c (core_read_description): Delegate when needed.
11141 * remote.c (remote_read_description): Delegate when needed.
11142 * target-delegates.c: Rebuild.
11143 * target.c (target_read_description): Rewrite.
11144 * target.h (struct target_ops) <to_read_description>: Update
11145 comment. Use TARGET_DEFAULT_RETURN.
11149 * target-delegates.c: Rebuild.
11150 * target.c (update_current_target): Don't inherit or default
11152 (find_default_run_target): Check against delegate_can_run.
11153 * target.h (struct target_ops) <to_can_run>: Use
11154 TARGET_DEFAULT_RETURN.
11158 * target-delegates.c: Rebuild.
11159 * target.c (target_disconnect): Unconditionally delegate.
11160 * target.h (struct target_ops) <to_disconnect>: Use
11161 TARGET_DEFAULT_NORETURN.
11165 * record.c (record_stop): Unconditionally delegate.
11166 * target-delegates.c: Rebuild.
11167 * target.c (target_stop_recording): Unconditionally delegate.
11168 * target.h (struct target_ops) <to_stop_recording>: Use
11169 TARGET_DEFAULT_IGNORE.
11173 * target-delegates.c: Rebuild.
11174 * target.c (target_enable_btrace): Unconditionally delegate.
11175 * target.h (struct target_ops) <to_enable_btrace>: Use
11176 TARGET_DEFAULT_NORETURN.
11180 * target-delegates.c: Rebuild.
11181 * target.c (target_read_btrace): Unconditionally delegate.
11182 * target.h (struct target_ops) <to_read_btrace>: Use
11183 TARGET_DEFAULT_NORETURN.
11187 * target-delegates.c: Rebuild.
11188 * target.c (target_teardown_btrace): Unconditionally delegate.
11189 * target.h (struct target_ops) <to_teardown_btrace>: Use
11190 TARGET_DEFAULT_NORETURN.
11194 * target-delegates.c: Rebuild.
11195 * target.c (target_disable_btrace): Unconditionally delegate.
11196 * target.h (struct target_ops) <to_disable_btrace>: Use
11197 TARGET_DEFAULT_NORETURN.
11201 * target-delegates.c: Rebuild.
11202 * target.c (default_search_memory): New function.
11203 (simple_search_memory): Update comment.
11204 (target_search_memory): Unconditionally delegate.
11205 * target.h (struct target_ops) <to_search_memory>: Use
11206 TARGET_DEFAULT_FUNC.
11210 * auxv.c (default_auxv_parse): No longer static.
11211 (target_auxv_parse): Unconditionally delegate.
11212 * auxv.h (default_auxv_parse): Declare.
11213 * target-delegates.c: Rebuild.
11214 * target.c: Include auxv.h.
11215 * target.h (struct target_ops) <to_auxv_parse>: Use
11216 TARGET_DEFAULT_FUNC.
11220 * target-delegates.c: Rebuild.
11221 * target.c (target_memory_map): Unconditionally delegate.
11222 * target.h (struct target_ops) <to_memory_map>: Use
11223 TARGET_DEFAULT_RETURN.
11227 * target-delegates.c: Rebuild.
11228 * target.c (target_thread_alive): Unconditionally delegate.
11229 * target.h (struct target_ops) <to_thread_alive>: Use
11230 TARGET_DEFAULT_RETURN.
11234 * target-delegates.c: Rebuild.
11235 * target.c (target_save_record): Unconditionally delegate.
11236 * target.h (struct target_ops) <to_save_record>: Use
11237 TARGET_DEFAULT_NORETURN.
11241 * target-delegates.c: Rebuild.
11242 * target.c (target_delete_record): Unconditionally delegate.
11243 * target.h (struct target_ops) <to_delete_record>: Use
11244 TARGET_DEFAULT_NORETURN.
11248 * target-delegates.c: Rebuild.
11249 * target.c (target_record_is_replaying): Unconditionally
11251 * target.h (struct target_ops) <to_record_is_replaying>: Use
11252 TARGET_DEFAULT_RETURN.
11256 * target-delegates.c: Rebuild.
11257 * target.c (target_goto_record_begin): Unconditionally delegate.
11258 * target.h (struct target_ops) <to_goto_record_begin>: Use
11259 TARGET_DEFAULT_NORETURN.
11263 * target-delegates.c: Rebuild.
11264 * target.c (target_goto_record_end): Unconditionally delegate.
11265 * target.h (struct target_ops) <to_goto_record_end>: Use
11266 TARGET_DEFAULT_NORETURN.
11270 * target-delegates.c: Rebuild.
11271 * target.c (target_goto_record): Unconditionally delegate.
11272 * target.h (struct target_ops) <to_goto_record>: Use
11273 TARGET_DEFAULT_NORETURN.
11277 * target-delegates.c: Rebuild.
11278 * target.c (target_insn_history): Unconditionally delegate.
11279 * target.h (struct target_ops) <to_insn_history>: Use
11280 TARGET_DEFAULT_NORETURN.
11284 * target-delegates.c: Rebuild.
11285 * target.c (target_insn_history_from): Unconditionally delegate.
11286 * target.h (struct target_ops) <to_insn_history_from>: Use
11287 TARGET_DEFAULT_NORETURN.
11291 * target-delegates.c: Rebuild.
11292 * target.c (target_insn_history_range): Unconditionally delegate.
11293 * target.h (struct target_ops) <to_insn_history_range>: Use
11294 TARGET_DEFAULT_NORETURN.
11298 * target-delegates.c: Rebuild.
11299 * target.c (target_call_history): Unconditionally delegate.
11300 * target.h (struct target_ops) <to_call_history>: Use
11301 TARGET_DEFAULT_NORETURN.
11305 * target-delegates.c: Rebuild.
11306 * target.c (target_call_history_from): Unconditionally delegate.
11307 * target.h (struct target_ops) <to_call_history_from>: Use
11308 TARGET_DEFAULT_NORETURN.
11312 * target-delegates.c: Rebuild.
11313 * target.c (target_call_history_range): Unconditionally delegate.
11314 * target.h (struct target_ops) <to_call_history_range>: Use
11315 TARGET_DEFAULT_NORETURN.
11319 * target-delegates.c: Rebuild.
11320 * target.c (target_verify_memory): Unconditionally delegate.
11321 * target.h (struct target_ops) <to_verify_memory>: Use
11322 TARGET_DEFAULT_NORETURN.
11326 * target-delegates.c: Rebuild.
11327 * target.c (target_core_of_thread): Unconditionally delegate.
11328 * target.h (struct target_ops) <to_core_of_thread>: Use
11329 TARGET_DEFAULT_RETURN.
11333 * target-delegates.c: Rebuild.
11334 * target.c (target_flash_done): Unconditionally delegate.
11335 * target.h (struct target_ops) <to_flash_done>: Use
11336 TARGET_DEFAULT_NORETURN.
11340 * target-delegates.c: Rebuild.
11341 * target.c (target_flash_erase): Unconditionally delegate.
11342 * target.h (struct target_ops) <to_flash_erase>: Use
11343 TARGET_DEFAULT_NORETURN.
11347 * target-delegates.c: Rebuild.
11348 * target.c (target_get_section_table): Unconditionally delegate.
11349 * target.h (struct target_ops) <to_get_section_table>: Use
11350 TARGET_DEFAULT_RETURN.
11354 * target-delegates.c: Rebuild.
11355 * target.c (target_pid_to_str): Unconditionally delegate.
11356 (init_dummy_target): Don't initialize to_pid_to_str.
11357 (default_pid_to_str): Rename from dummy_pid_to_str.
11358 * target.h (struct target_ops) <to_pid_to_str>: Use
11359 TARGET_DEFAULT_FUNC.
11363 * target-delegates.c: Rebuild.
11364 * target.c (target_find_new_threads): Unconditionally delegate.
11365 * target.h (struct target_ops) <to_find_new_threads>: Use
11366 TARGET_DEFAULT_RETURN.
11370 * target-delegates.c: Rebuild.
11371 * target.c (target_program_signals): Unconditionally delegate.
11372 * target.h (struct target_ops) <to_program_signals>: Use
11373 TARGET_DEFAULT_IGNORE.
11377 * target-delegates.c: Rebuild.
11378 * target.c (target_pass_signals): Unconditionally delegate.
11379 * target.h (struct target_ops) <to_pass_signals>: Use
11380 TARGET_DEFAULT_IGNORE.
11384 * target-delegates.c: Rebuild.
11385 * target.c (default_mourn_inferior): New function.
11386 (target_mourn_inferior): Unconditionally delegate.
11387 * target.h (struct target_ops) <to_mourn_inferior>: Use
11388 TARGET_DEFAULT_FUNC.
11392 * target-delegates.c: Rebuild.
11393 * target.c (default_follow_fork): New function.
11394 (target_follow_fork): Unconditionally delegate.
11395 * target.h (struct target_ops) <to_follow_fork>: Use
11396 TARGET_DEFAULT_FUNC.
11400 * target-delegates.c: Rebuild.
11401 * target.c (target_kill): Unconditionally delegate.
11402 * target.h (struct target_ops) <to_kill>: Use
11403 TARGET_DEFAULT_NORETURN.
11407 * target-delegates.c: Rebuild.
11408 * target.c (target_masked_watch_num_registers): Unconditionally
11410 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11411 Use TARGET_DEFAULT_RETURN.
11415 * target-delegates.c: Rebuild.
11416 * target.c (target_remove_mask_watchpoint): Unconditionally
11418 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11419 TARGET_DEFAULT_RETURN.
11423 * target-delegates.c: Rebuild.
11424 * target.c (target_insert_mask_watchpoint): Unconditionally
11426 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11427 TARGET_DEFAULT_RETURN.
11431 * target-delegates.c: Rebuild.
11432 * target.c (target_ranged_break_num_registers): Unconditionally
11434 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11435 Use TARGET_DEFAULT_RETURN.
11439 * target-delegates.c: Rebuild.
11440 * target.c (target_fetch_registers): Unconditionally delegate.
11441 * target.h (struct target_ops) <to_fetch_registers>: Use
11442 TARGET_DEFAULT_NORETURN.
11446 * target-delegates.c: Rebuild.
11447 * target.c (update_current_target): Don't inherit or default
11449 * target.h (struct target_ops) <to_stop>: Use
11450 TARGET_DEFAULT_IGNORE.
11454 * target-delegates.c: Rebuild.
11455 * target.c (update_current_target): Don't inherit or default
11456 to_can_run_breakpoint_commands.
11457 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11458 Use TARGET_DEFAULT_RETURN.
11462 * target-delegates.c: Rebuild.
11463 * target.c (update_current_target): Don't inherit or default
11464 to_supports_evaluation_of_breakpoint_conditions.
11465 * target.h (struct target_ops)
11466 <to_supports_evaluation_of_breakpoint_conditions>: Use
11467 TARGET_DEFAULT_RETURN.
11471 * target-delegates.c: Rebuild.
11472 * target.c (update_current_target): Don't inherit or default
11473 to_augmented_libraries_svr4_read.
11474 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11475 Use TARGET_DEFAULT_RETURN.
11479 * target-delegates.c: Rebuild.
11480 * target.c (update_current_target): Don't inherit or default
11482 * target.h (struct target_ops) <to_can_use_agent>: Use
11483 TARGET_DEFAULT_RETURN.
11487 * target-delegates.c: Rebuild.
11488 * target.c (update_current_target): Don't inherit or default
11490 * target.h (struct target_ops) <to_use_agent>: Use
11491 TARGET_DEFAULT_NORETURN.
11495 * target-delegates.c: Rebuild.
11496 * target.c (update_current_target): Don't inherit or default
11497 to_traceframe_info.
11498 (return_null): Remove.
11499 * target.h (struct target_ops) <to_traceframe_info>: Use
11500 TARGET_DEFAULT_RETURN.
11504 * target-delegates.c: Rebuild.
11505 * target.c (update_current_target): Don't inherit or default
11506 to_static_tracepoint_markers_by_strid.
11507 * target.h (struct target_ops)
11508 <to_static_tracepoint_markers_by_strid>: Use
11509 TARGET_DEFAULT_NORETURN.
11513 * target-delegates.c: Rebuild.
11514 * target.c (update_current_target): Don't inherit or default
11515 to_static_tracepoint_marker_at.
11516 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11517 Use TARGET_DEFAULT_RETURN.
11521 * target-delegates.c: Rebuild.
11522 * target.c (update_current_target): Don't inherit or default
11523 to_set_permissions.
11524 * target.h (struct target_ops) <to_set_permissions>: Use
11525 TARGET_DEFAULT_IGNORE.
11529 * target-delegates.c: Rebuild.
11530 * target.c (update_current_target): Don't inherit or default
11531 to_get_tib_address.
11532 * target.h (struct target_ops) <to_get_tib_address>: Use
11533 TARGET_DEFAULT_NORETURN.
11537 * target-delegates.c: Rebuild.
11538 * target.c (update_current_target): Don't inherit or default
11539 to_set_trace_notes.
11540 * target.h (struct target_ops) <to_set_trace_notes>: Use
11541 TARGET_DEFAULT_RETURN.
11545 * target-delegates.c: Rebuild.
11546 * target.c (update_current_target): Don't initialize
11547 to_set_trace_buffer_size.
11548 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11549 TARGET_DEFAULT_IGNORE.
11553 * target-delegates.c: Rebuild.
11554 * target.c (update_current_target): Don't inherit or default
11555 to_set_circular_trace_buffer.
11556 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11557 TARGET_DEFAULT_IGNORE.
11561 * target-delegates.c: Rebuild.
11562 * target.c (update_current_target): Don't inherit or default
11563 to_set_disconnected_tracing.
11564 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11565 TARGET_DEFAULT_IGNORE.
11569 * target-delegates.c: Rebuild.
11570 * target.c (update_current_target): Don't inherit or default
11571 to_get_min_fast_tracepoint_insn_len.
11572 (return_minus_one): Remove.
11573 * target.h (struct target_ops)
11574 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11578 * target-delegates.c: Rebuild.
11579 * target.c (update_current_target): Don't inherit or default
11580 to_get_raw_trace_data.
11581 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11582 TARGET_DEFAULT_NORETURN.
11586 * target-delegates.c: Rebuild.
11587 * target.c (update_current_target): Don't inherit or default
11588 to_upload_trace_state_variables.
11589 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11590 Use TARGET_DEFAULT_RETURN.
11594 * target-delegates.c: Rebuild.
11595 * target.c (update_current_target): Don't inherit or default
11596 to_upload_tracepoints.
11597 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11598 TARGET_DEFAULT_RETURN.
11602 * target-delegates.c: Rebuild.
11603 * target.c (update_current_target): Don't inherit or default
11604 to_save_trace_data.
11605 * target.h (struct target_ops) <to_save_trace_data>: Use
11606 TARGET_DEFAULT_NORETURN.
11610 * target-delegates.c: Rebuild.
11611 * target.c (update_current_target): Don't inherit or default
11612 to_get_trace_state_variable_value.
11613 * target.h (struct target_ops)
11614 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11618 * target-delegates.c: Rebuild.
11619 * target.c (update_current_target): Don't inherit or default
11621 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11625 * target-delegates.c: Rebuild.
11626 * target.c (update_current_target): Don't inherit or default
11628 * target.h (struct target_ops) <to_trace_stop>: Use
11629 TARGET_DEFAULT_NORETURN.
11633 * target-delegates.c: Rebuild.
11634 * target.c (update_current_target): Don't inherit or default
11635 to_get_tracepoint_status.
11636 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11637 TARGET_DEFAULT_NORETURN.
11641 * target-delegates.c: Rebuild.
11642 * target.c (update_current_target): Don't inherit or default
11643 to_get_trace_status.
11644 * target.h (struct target_ops) <to_get_trace_status>: Use
11645 TARGET_DEFAULT_RETURN.
11649 * target-delegates.c: Rebuild.
11650 * target.c (update_current_target): Don't inherit or default
11652 * target.h (struct target_ops) <to_trace_start>: Use
11653 TARGET_DEFAULT_NORETURN.
11657 * target-delegates.c: Rebuild.
11658 * target.c (update_current_target): Don't inherit or default
11659 to_trace_set_readonly_regions.
11660 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11661 Use TARGET_DEFAULT_NORETURN.
11665 * target-delegates.c: Rebuild.
11666 * target.c (update_current_target): Don't inherit or default
11667 to_disable_tracepoint.
11668 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11669 TARGET_DEFAULT_NORETURN.
11673 * target-delegates.c: Rebuild.
11674 * target.c (update_current_target): Don't inherit or default
11675 to_enable_tracepoint.
11676 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11677 TARGET_DEFAULT_NORETURN.
11681 * target-delegates.c: Rebuild.
11682 * target.c (update_current_target): Don't inherit or default
11683 to_download_trace_state_variable.
11684 * target.h (struct target_ops) <to_download_trace_state_variable>:
11685 Use TARGET_DEFAULT_NORETURN.
11689 * target-delegates.c: Rebuild.
11690 * target.c (update_current_target): Don't inherit or default
11691 to_can_download_tracepoint.
11692 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11693 TARGET_DEFAULT_RETURN.
11697 * target-delegates.c: Rebuild.
11698 * target.c (update_current_target): Don't inherit or default
11699 to_download_tracepoint.
11700 * target.h (struct target_ops) <to_download_tracepoint>: Use
11701 TARGET_DEFAULT_NORETURN.
11705 * target-delegates.c: Rebuild.
11706 * target.c (update_current_target): Don't inherit or default
11708 * target.h (struct target_ops) <to_trace_init>: Use
11709 TARGET_DEFAULT_RETURN.
11713 * target-delegates.c: Rebuild.
11714 * target.c (update_current_target): Don't inherit or default
11715 to_supports_string_tracing.
11716 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11717 TARGET_DEFAULT_RETURN.
11721 * target-delegates.c: Rebuild.
11722 * target.c (update_current_target): Don't inherit or default
11723 to_supports_enable_disable_tracepoint.
11724 * target.h (struct target_ops)
11725 <to_supports_enable_disable_tracepoint>: Use
11726 TARGET_DEFAULT_RETURN.
11730 * target-delegates.c: Rebuild.
11731 * target.c (update_current_target): Don't inherit or default
11732 to_supports_multi_process.
11733 * target.h (struct target_ops) <to_supports_multi_process>: Use
11734 TARGET_DEFAULT_RETURN.
11738 * target-delegates.c: Rebuild.
11739 * target.c (update_current_target): Don't inherit or default
11740 to_get_ada_task_ptid.
11741 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11742 TARGET_DEFAULT_FUNC.
11746 * target-delegates.c: Rebuild.
11747 * target.c (update_current_target): Don't inherit or default
11748 to_thread_architecture.
11749 * target.h (struct target_ops) <to_thread_architecture>: Use
11750 TARGET_DEFAULT_FUNC.
11754 * target-delegates.c: Rebuild.
11755 * target.c (update_current_target): Don't inherit or default
11756 to_execution_direction.
11757 * target.h (struct target_ops) <to_execution_direction>: Use
11758 TARGET_DEFAULT_FUNC.
11762 * target-delegates.c: Rebuild.
11763 * target.c (update_current_target): Don't inherit or default
11764 to_can_execute_reverse.
11765 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11766 TARGET_DEFAULT_RETURN.
11767 (target_can_execute_reverse): Unconditionally delegate.
11771 * target-delegates.c: Rebuild.
11772 * target.c (update_current_target): Don't inherit or default
11774 (dummy_goto_bookmark): Remove.
11775 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11776 * target.h (struct target_ops) <to_goto_bookmark>: Use
11777 TARGET_DEFAULT_NORETURN.
11781 * target-delegates.c: Rebuild.
11782 * target.c (update_current_target): Don't inherit or default
11784 (dummy_get_bookmark): Remove.
11785 (init_dummy_target): Don't inherit or default to_get_bookmark.
11786 * target.h (struct target_ops) <to_get_bookmark>: Use
11787 TARGET_DEFAULT_NORETURN
11791 * target-delegates.c: Rebuild.
11792 * target.c (update_current_target): Don't inherit or default
11793 to_make_corefile_notes.
11794 (init_dummy_target): Don't initialize to_make_corefile_notes.
11795 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11796 TARGET_DEFAULT_FUNC.
11800 * target-delegates.c: Rebuild.
11801 * target.c (update_current_target): Don't inherit or default
11802 to_find_memory_regions.
11803 (init_dummy_target): Don't initialize to_find_memory_regions.
11804 * target.h (struct target_ops) <to_find_memory_regions>: Use
11805 TARGET_DEFAULT_FUNC.
11809 * target-delegates.c: Rebuild.
11810 * target.c (update_current_target): Don't inherit or default
11812 * target.h (struct target_ops) <to_log_command>: Use
11813 TARGET_DEFAULT_IGNORE.
11814 (target_log_command): Unconditionally delegate.
11818 * target-delegates.c: Rebuild.
11819 * target.c (update_current_target): Don't inherit or default
11820 to_pid_to_exec_file.
11821 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11822 TARGET_DEFAULT_RETURN.
11826 * target-delegates.c: Rebuild.
11827 * target.c (update_current_target): Don't inherit or default
11829 (target_thread_name): Unconditionally delegate.
11830 * target.h (struct target_ops) <to_thread_name>: Use
11831 TARGET_DEFAULT_RETURN.
11835 * target-delegates.c: Rebuild.
11836 * target.c (update_current_target): Don't inherit or default
11837 to_extra_thread_info.
11838 * target.h (struct target_ops) <to_extra_thread_info>: Use
11839 TARGET_DEFAULT_RETURN.
11843 * target-delegates.c: Rebuild.
11844 * target.c (update_current_target): Don't inherit or default
11846 * target.h (struct target_ops) <to_has_exited>: Use
11847 TARGET_DEFAULT_RETURN..
11851 * target-delegates.c: Rebuild.
11852 * target.c (update_current_target): Don't inherit or default
11853 to_set_syscall_catchpoint.
11854 (return_one): Remove.
11855 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11856 TARGET_DEFAULT_RETURN.
11860 * target-delegates.c: Rebuild.
11861 * target.c (update_current_target): Don't inherit or default
11862 to_insert_exec_catchpoint.
11863 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11864 TARGET_DEFAULT_RETURN.
11868 * target-delegates.c: Rebuild.
11869 * target.c (update_current_target): Don't inherit or default
11870 to_insert_exec_catchpoint.
11871 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11872 TARGET_DEFAULT_RETURN.
11876 * target-delegates.c: Rebuild.
11877 * target.c (update_current_target): Don't inherit or default
11878 to_remove_vfork_catchpoint.
11879 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11880 TARGET_DEFAULT_RETURN.
11884 * target-delegates.c: Rebuild.
11885 * target.c (update_current_target): Don't inherit or default
11886 to_insert_vfork_catchpoint.
11887 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11888 TARGET_DEFAULT_RETURN.
11892 * target-delegates.c: Rebuild.
11893 * target.c (update_current_target): Don't inherit or default
11894 to_remove_fork_catchpoint.
11895 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11896 TARGET_DEFAULT_RETURN.
11900 * target-delegates.c: Rebuild.
11901 * target.c (update_current_target): Don't inherit or default
11902 to_insert_fork_catchpoint.
11903 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11904 TARGET_DEFAULT_RETURN.
11908 * target-delegates.c: Rebuild.
11909 * target.c (update_current_target): Don't inherit or default
11910 to_post_startup_inferior.
11911 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11912 TARGET_DEFAULT_IGNORE.
11916 * target-delegates.c: Rebuild.
11917 * target.c (update_current_target): Don't inherit or default
11919 * target.h (struct target_ops) <to_load>: Use
11920 TARGET_DEFAULT_NORETURN.
11924 * target-delegates.c: Rebuild.
11925 * target.c (update_current_target): Don't inherit or default
11927 * target.h (struct target_ops) <to_terminal_info>: Use
11928 TARGET_DEFAULT_FUNC.
11932 * target-delegates.c: Rebuild.
11933 * target.c (update_current_target): Don't inherit or default
11934 to_terminal_save_ours.
11935 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11936 TARGET_DEFAULT_IGNORE.
11940 * target-delegates.c: Rebuild.
11941 * target.c (update_current_target): Don't inherit or default
11943 * target.h (struct target_ops) <to_terminal_ours>: Use
11944 TARGET_DEFAULT_IGNORE.
11948 * target-delegates.c: Rebuild.
11949 * target.c (update_current_target): Don't inherit or default
11950 to_terminal_ours_for_output.
11951 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11952 TARGET_DEFAULT_IGNORE.
11956 * target-delegates.c: Rebuild.
11957 * target.c (update_current_target): Don't inherit or default
11958 to_terminal_inferior.
11959 * target.h (struct target_ops) <to_terminal_inferior>: Use
11960 TARGET_DEFAULT_IGNORE.
11964 * target-delegates.c: Rebuild.
11965 * target.c (update_current_target): Don't inherit or default
11967 * target.h (struct target_ops) <to_terminal_init>: Use
11968 TARGET_DEFAULT_IGNORE.
11972 * target-delegates.c: Rebuild.
11973 * target.c (update_current_target): Don't inherit or default
11974 to_can_accel_watchpoint_condition.
11975 * target.h (struct target_ops)
11976 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11980 * target-delegates.c: Rebuild.
11981 * target.c (update_current_target): Don't inherit or default
11982 to_region_ok_for_hw_watchpoint.
11983 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11984 Use TARGET_DEFAULT_FUNC.
11988 * target-delegates.c: Rebuild.
11989 * target.c (update_current_target): Don't inherit or default
11990 to_watchpoint_addr_within_range.
11991 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11992 Use TARGET_DEFAULT_FUNC.
11996 * target-delegates.c: Rebuild.
11997 * target.c (update_current_target): Don't inherit or default
11998 to_remove_watchpoint.
11999 * target.h (struct target_ops) <to_remove_watchpoint>: Use
12000 TARGET_DEFAULT_NORETURN.
12004 * target-delegates.c: Rebuild.
12005 * target.c (update_current_target): Don't inherit or default
12006 to_insert_watchpoint.
12007 * target.h (struct target_ops) <to_insert_watchpoint>: Use
12008 TARGET_DEFAULT_RETURN.
12012 * target-delegates.c: Rebuild.
12013 * target.c (update_current_target): Don't inherit or default
12014 to_remove_hw_breakpoint.
12015 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
12016 TARGET_DEFAULT_RETURN.
12020 * target-delegates.c: Rebuild.
12021 * target.c (update_current_target): Don't inherit or default
12022 to_insert_hw_breakpoint.
12023 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
12024 TARGET_DEFAULT_RETURN.
12028 * target-delegates.c: Rebuild.
12029 * target.c (update_current_target): Don't inherit or default
12030 to_can_use_hw_breakpoint.
12031 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
12032 TARGET_DEFAULT_RETURN.
12036 * target-delegates.c: Rebuild.
12037 * target.c (update_current_target): Don't inherit or default
12039 * target.h (struct target_ops) <to_files_info>: Use
12040 TARGET_DEFAULT_IGNORE.
12044 * target-delegates.c: Rebuild.
12045 * target.c (update_current_target): Don't inherit or default
12047 * target.h (struct target_ops) <to_store>: Use
12048 TARGET_DEFAULT_NORETURN.
12052 * target-delegates.c: Rebuild.
12053 * target.c (update_current_target): Don't inherit or default
12055 * target.h (struct target_ops) <to_post_attach>: Use
12056 TARGET_DEFAULT_IGNORE.
12060 * target-delegates.c: Rebuild.
12061 * target.c (update_current_target): Don't inherit or default
12063 (default_rcmd): New function.
12064 (do_monitor_command): Unconditionally delegate.
12065 * target.h (struct target_ops) <to_rmcd>: Use
12066 TARGET_DEFAULT_FUNC.
12070 * target-delegates.c: Rebuild.
12071 * target.c (init_dummy_target): Don't initialize to_attach.
12072 (target_attach): Unconditionally delegate.
12073 * target.h (struct target_ops) <to_attach>: Use
12074 TARGET_DEFAULT_FUNC.
12078 * target-delegates.c: Rebuild.
12079 * target.c (target_detach): Unconditionally delegate.
12080 (init_dummy_target): Don't initialize to_detach.
12081 * target.h (struct target_ops) <to_detach>: Use
12082 TARGET_DEFAULT_IGNORE.
12086 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12088 (target_augmented_libraries_svr4_read): Add argument.
12089 * target.c (update_current_target): Update.
12090 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12095 * target.h (struct target_ops) <to_call_history_range>: Add
12097 * target.c (target_call_history_range): Add argument.
12098 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12100 (record_btrace_call_history_from): Update.
12104 * target.h (struct target_ops) <to_call_history_from>: Add
12106 * target.c (target_call_history_from): Add argument.
12107 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12112 * target.h (struct target_ops) <to_call_history>: Add argument.
12113 * target.c (target_call_history): Add argument.
12114 * record-btrace.c (record_btrace_call_history): Add 'self'
12119 * target.h (struct target_ops) <to_insn_history_range>: Add
12121 * target.c (target_insn_history_range): Add argument.
12122 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12124 (record_btrace_insn_history_from): Update.
12128 * target.h (struct target_ops) <to_insn_history_from>: Add
12130 * target.c (target_insn_history_from): Add argument.
12131 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12136 * target.h (struct target_ops) <to_insn_history>: Add argument.
12137 * target.c (target_insn_history): Add argument.
12138 * record-btrace.c (record_btrace_insn_history): Add 'self'
12143 * target.h (struct target_ops) <to_goto_record>: Add argument.
12144 * target.c (target_goto_record): Add argument.
12145 * record-full.c (record_full_goto): Add 'self' argument.
12146 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12150 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12151 * target.c (target_goto_record_end): Add argument.
12152 * record-full.c (record_full_goto_end): Add 'self' argument.
12153 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12157 * target.h (struct target_ops) <to_goto_record_begin>: Add
12159 * target.c (target_goto_record_begin): Add argument.
12160 * record-full.c (record_full_goto_begin): Add 'self' argument.
12161 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12166 * target.h (struct target_ops) <to_record_is_replaying>: Add
12168 * target.c (target_record_is_replaying): Add argument.
12169 * record-full.c (record_full_is_replaying): Add 'self' argument.
12170 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12172 (record_btrace_xfer_partial, record_btrace_store_registers)
12173 (record_btrace_prepare_to_store, record_btrace_resume)
12174 (record_btrace_wait, record_btrace_decr_pc_after_break)
12175 (record_btrace_find_new_threads, record_btrace_thread_alive):
12180 * target.h (struct target_ops) <to_delete_record>: Add argument.
12181 * target.c (target_delete_record): Add argument.
12182 * record-full.c (record_full_delete): Add 'self' argument.
12186 * target.h (struct target_ops) <to_save_record>: Add argument.
12187 * target.c (target_save_record): Add argument.
12188 * record-full.c (record_full_save): Add 'self' argument.
12189 (record_full_save): Add 'self' argument.
12193 * target.h (struct target_ops) <to_info_record>: Add argument.
12194 * target.c (target_info_record): Add argument.
12195 * record.c (info_record_command): Add argument.
12196 * record-full.c (record_full_info): Add 'self' argument.
12197 * record-btrace.c (record_btrace_info): Add 'self' argument.
12201 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12202 * target.c (target_stop_recording): Add argument.
12203 * record.c (record_stop): Add argument.
12204 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12209 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12210 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12211 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12213 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12214 (_initialize_amd64_linux_nat): Use it.
12215 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12216 (_initialize_i386_linux_nat): Use it.
12220 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12221 * target.c (target_teardown_btrace): Add argument.
12222 * remote.c (remote_teardown_btrace): Add 'self' argument.
12223 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12225 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12230 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12231 * target.c (target_disable_btrace): Add argument.
12232 * remote.c (remote_disable_btrace): Add 'self' argument.
12233 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12235 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12240 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12241 * target.c (target_enable_btrace): Add argument.
12242 * remote.c (remote_enable_btrace): Add 'self' argument.
12243 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12245 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12250 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12251 (target_can_use_agent): Add argument.
12252 * target.c (update_current_target): Update.
12253 * remote.c (remote_can_use_agent): Add 'self' argument.
12254 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12258 * target.h (struct target_ops) <to_use_agent>: Add argument.
12259 (target_use_agent): Add argument.
12260 * target.c (update_current_target): Update.
12261 * remote.c (remote_use_agent): Add 'self' argument.
12262 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12266 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12267 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12268 (target_traceframe_info): Add argument.
12269 * target.c (update_current_target): Update.
12270 * remote.c (remote_traceframe_info): Add 'self' argument.
12271 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12275 * target.h (target_static_tracepoint_markers_by_strid): Add
12277 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12279 * target.c (update_current_target): Update.
12280 * remote.c (struct target_ops)
12281 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12282 * linux-nat.c (struct target_ops)
12283 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12287 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12289 (target_static_tracepoint_marker_at): Add argument.
12290 * target.c (update_current_target): Update.
12291 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12296 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12297 (target_set_permissions): Add argument.
12298 * target.c (update_current_target): Update.
12299 * remote.c (remote_set_permissions): Add 'self' argument.
12300 (remote_start_remote): Update.
12304 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12305 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12306 (target_get_tib_address): Add argument.
12307 * target.c (update_current_target): Update.
12308 * remote.c (remote_get_tib_address): Add 'self' argument.
12312 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12313 (target_set_trace_notes): Add argument.
12314 * target.c (update_current_target): Update.
12315 * remote.c (remote_set_trace_notes): Add 'self' argument.
12319 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12321 (target_set_trace_buffer_size): Add argument.
12322 * target.c (update_current_target): Update.
12323 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12327 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12329 (target_set_circular_trace_buffer): Add argument.
12330 * target.c (update_current_target): Update.
12331 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12336 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12338 (target_set_disconnected_tracing): Add argument.
12339 * target.c (update_current_target): Update.
12340 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12344 * target.h (struct target_ops)
12345 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12346 (target_get_min_fast_tracepoint_insn_len): Add argument.
12347 * target.c (update_current_target): Update.
12348 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12353 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12355 (target_get_raw_trace_data): Add argument.
12356 * target.c (update_current_target): Update.
12357 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12361 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12363 (target_upload_trace_state_variables): Add argument.
12364 * target.c (update_current_target): Update.
12365 * remote.c (remote_upload_trace_state_variables): Add 'self'
12367 (remote_start_remote): Update.
12371 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12373 (target_upload_tracepoints): Add argument.
12374 * target.c (update_current_target): Update.
12375 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12376 (remote_start_remote): Update.
12380 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12381 (target_save_trace_data): Add argument.
12382 * target.c (update_current_target): Update.
12383 * remote.c (remote_save_trace_data): Add 'self' argument.
12387 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12389 * target.h (struct target_ops)
12390 <to_get_trace_state_variable_value>: Add argument.
12391 (target_get_trace_state_variable_value): Add argument.
12392 * target.c (update_current_target): Update.
12393 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12395 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12399 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12400 * target.h (struct target_ops) <to_trace_find>: Add argument.
12401 (target_trace_find): Add argument.
12402 * target.c (update_current_target): Update.
12403 * remote.c (remote_trace_find): Add 'self' argument.
12404 * ctf.c (ctf_trace_find): Add 'self' argument.
12408 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12409 (target_trace_stop): Add argument.
12410 * target.c (update_current_target): Update.
12411 * remote.c (remote_trace_stop): Add 'self' argument.
12415 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12416 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12418 (target_get_tracepoint_status): Add argument.
12419 * target.c (update_current_target): Update.
12420 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12424 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12425 * target.h (struct target_ops) <to_get_trace_status>: Add
12427 (target_get_trace_status): Add argument.
12428 * target.c (update_current_target): Update.
12429 * remote.c (remote_get_trace_status): Add 'self' argument.
12430 (remote_start_remote, remote_can_download_tracepoint): Update.
12431 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12435 * target.h (struct target_ops) <to_trace_start>: Add argument.
12436 (target_trace_start): Add argument.
12437 * target.c (update_current_target): Update.
12438 * remote.c (remote_trace_start): Add 'self' argument.
12442 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12444 (target_trace_set_readonly_regions): Add argument.
12445 * target.c (update_current_target): Update.
12446 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12451 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12453 (target_disable_tracepoint): Add argument.
12454 * target.c (update_current_target): Update.
12455 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12459 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12461 (target_enable_tracepoint): Add argument.
12462 * target.c (update_current_target): Update.
12463 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12467 * target.h (struct target_ops) <to_download_trace_state_variable>:
12469 (target_download_trace_state_variable): Add argument.
12470 * target.c (update_current_target): Update.
12471 * remote.c (remote_download_trace_state_variable): Add 'self'
12476 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12478 (target_can_download_tracepoint): Add argument.
12479 * target.c (update_current_target): Update.
12480 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12484 * target.h (struct target_ops) <to_download_tracepoint>: Add
12486 (target_download_tracepoint): Add argument.
12487 * target.c (update_current_target): Update.
12488 * remote.c (remote_download_tracepoint): Add 'self' argument.
12492 * target.h (struct target_ops) <to_trace_init>: Add argument.
12493 (target_trace_init): Add argument.
12494 * target.c (update_current_target): Update.
12495 * remote.c (remote_trace_init): Add 'self' argument.
12499 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12500 * target.c (target_fileio_readlink): Add argument.
12501 * remote.c (remote_hostio_readlink): Add 'self' argument.
12502 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12506 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12507 * target.c (target_fileio_unlink): Add argument.
12508 * remote.c (remote_hostio_unlink): Add 'self' argument.
12509 (remote_file_delete): Update.
12510 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12514 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12515 * target.c (target_fileio_close): Add argument.
12516 * remote.c (remote_hostio_close): Add 'self' argument.
12517 (remote_hostio_close_cleanup): Update.
12518 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12520 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12524 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12525 * target.c (target_fileio_pread): Add argument.
12526 * remote.c (remote_hostio_pread): Add 'self' argument.
12527 (remote_bfd_iovec_pread, remote_file_get): Update.
12528 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12532 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12533 * target.c (target_fileio_pwrite): Add argument.
12534 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12535 (remote_file_put): Update.
12536 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12540 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12541 * target.c (target_fileio_open): Add argument.
12542 * remote.c (remote_hostio_open): Add 'self' argument.
12543 (remote_bfd_iovec_open): Add 'self' argument.
12544 (remote_file_put): Add 'self' argument.
12545 (remote_file_get): Add 'self' argument.
12546 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12550 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12552 (target_can_run_breakpoint_commands): Add argument.
12553 * target.c (update_current_target): Update.
12554 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12556 (remote_insert_breakpoint): Add 'self' argument.
12557 (remote_insert_hw_breakpoint): Add 'self' argument.
12558 (remote_can_run_breakpoint_commands): Add 'self' argument.
12562 * target.h (struct target_ops)
12563 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12564 (target_supports_evaluation_of_breakpoint_conditions): Add
12566 * target.c (update_current_target): Update.
12567 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12569 (remote_insert_breakpoint): Add 'self' argument.
12570 (remote_insert_hw_breakpoint): Add 'self' argument.
12571 (remote_supports_cond_breakpoints): Add 'self' argument.
12575 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12577 (target_supports_string_tracing): Add argument.
12578 * target.c (update_current_target): Update.
12579 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12583 * target.h (struct target_ops)
12584 <to_supports_disable_randomization>: Add argument.
12585 * target.c (find_default_supports_disable_randomization): Add
12587 (target_supports_disable_randomization): Add argument.
12588 (find_default_supports_disable_randomization): Add 'self'
12590 * remote.c (extended_remote_supports_disable_randomization): Add
12592 (remote_supports_disable_randomization): Add 'self' argument.
12593 (extended_remote_create_inferior): Update.
12594 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12599 * target.h (struct target_ops)
12600 <to_supports_enable_disable_tracepoint>: Add argument.
12601 (target_supports_enable_disable_tracepoint): Add argument.
12602 * target.c (update_current_target): Update.
12603 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12608 * target.h (struct target_ops) <to_supports_multi_process>: Add
12610 (target_supports_multi_process): Add argument.
12611 * target.c (update_current_target): Update.
12612 * remote.c (remote_supports_multi_process): Add 'self' argument.
12613 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12615 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12620 * target.h (struct target_ops) <to_execution_direction>: Add
12622 (target_execution_direction): Add argument.
12623 * target.c (default_execution_direction): Add 'self' argument.
12624 * record-full.c (record_full_execution_direction): Add 'self'
12629 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12631 (target_can_execute_reverse): Add argument.
12632 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12633 * record-full.c (record_full_can_execute_reverse): Add 'self'
12635 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12640 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12641 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12643 (target_get_ada_task_ptid): Add argument.
12644 * target.c (update_current_target): Update.
12645 (default_get_ada_task_ptid): Add 'self' argument.
12646 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12647 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12648 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12650 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12652 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12654 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12656 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12657 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12662 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12663 (target_goto_bookmark): Add argument.
12664 * target.c (dummy_goto_bookmark): Add 'self' argument.
12665 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12669 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12670 (target_get_bookmark): Add argument.
12671 * target.c (dummy_get_bookmark): Add 'self' argument.
12672 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12676 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12678 (target_make_corefile_notes): Add argument.
12679 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12680 * procfs.c (procfs_make_note_section): Add 'self' argument.
12681 (procfs_make_note_section): Add 'self' argument.
12682 (procfs_make_note_section): Add 'self' argument.
12683 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12685 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12686 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12687 * exec.c (exec_make_note_section): Add 'self' argument.
12688 (exec_make_note_section): Add 'self' argument.
12692 * target.h (struct target_ops) <to_find_memory_regions>: Add
12694 (target_find_memory_regions): Add argument.
12695 * target.c (dummy_find_memory_regions): Add 'self' argument.
12696 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12697 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12698 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12699 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12700 * exec. (exec_do_find_memory_regions): New global.
12701 (exec_set_find_memory_regions): Rewrite.
12702 (exec_find_memory_regions): New function.
12703 (init_exec_ops): Use exec_find_memory_regions.
12707 * target.h (struct target_ops) <to_supports_non_stop>: Add
12709 * target.c (find_default_supports_non_stop): Add argument.
12710 (target_supports_non_stop): Add argument.
12711 (find_default_supports_non_stop): Add 'self' argument.
12712 * remote.c (remote_supports_non_stop): Add 'self' argument.
12713 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12717 * target.h (struct target_ops) <to_log_command>: Add argument.
12718 (target_log_command): Add argument.
12719 * serial.h (serial_log_command): Add 'self' argument.
12720 * serial.c (serial_log_command): Add 'self' argument.
12724 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12725 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12727 (target_pid_to_exec_file): Add argument.
12728 * target.c (debug_to_pid_to_exec_file): Add argument.
12729 (update_current_target): Update.
12730 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12731 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12732 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12733 (linux_handle_extended_wait): Update.
12734 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12735 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12736 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12737 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12741 * target.h (struct target_ops) <to_rcmd>: Add argument.
12742 (target_rcmd): Add argument.
12743 * target.c (debug_to_rcmd): Add argument.
12744 (update_current_target, do_monitor_command): Update.
12745 * remote.c (remote_rcmd): Add 'self' argument.
12746 * monitor.c (monitor_rcmd): Add 'self' argument.
12750 * windows-nat.c (windows_stop): Add 'self' argument.
12751 * target.h (struct target_ops) <to_stop>: Add argument.
12752 * target.c (target_stop): Add argument.
12753 (debug_to_stop): Add argument.
12754 (update_current_target): Update.
12755 * remote.c (remote_stop): Add 'self' argument.
12756 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12757 (gdbsim_cntrl_c): Update.
12758 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12759 * procfs.c (procfs_stop): Add 'self' argument.
12760 * nto-procfs.c (procfs_stop): Add 'self' argument.
12761 * monitor.c (monitor_stop): Add 'self' argument.
12762 (monitor_open): Update.
12763 * linux-nat.c (linux_nat_stop): Add argument.
12764 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12765 * gnu-nat.c (gnu_stop): Add 'self' argument.
12766 * darwin-nat.c (darwin_stop): Add 'self' argument.
12770 * target.h (struct target_ops) <to_thread_name>: Add argument.
12771 * target.c (target_thread_name): Add argument.
12772 (update_current_target): Update.
12773 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12777 * target.h (struct target_ops) <to_extra_thread_info>: Add
12779 (target_extra_thread_info): Add argument.
12780 * target.c (update_current_target): Update.
12781 * remote.c (remote_threads_extra_info): Add 'self' argument.
12782 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12784 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12785 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12786 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12788 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12790 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12792 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12797 * target.h (struct target_ops) <to_program_signals>: Add argument.
12798 * target.c (target_program_signals): Add argument.
12799 * remote.c (remote_program_signals): Add 'self' argument.
12803 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12804 * target.c (target_pass_signals): Add argument.
12805 * remote.c (remote_pass_signals): Add 'self' argument.
12806 (remote_start_remote): Update.
12807 * procfs.c (procfs_pass_signals): Add 'self' argument.
12808 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12809 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12810 (linux_nat_create_inferior, linux_nat_attach): Update.
12814 * windows-nat.c (windows_can_run): Add 'self' argument.
12815 * target.h (struct target_ops) <to_can_run>: Add argument.
12816 (target_can_run): Add argument.
12817 * target.c (debug_to_can_run): Add argument.
12818 (update_current_target): Update.
12819 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12820 * inf-child.c (inf_child_can_run): Add 'self' argument.
12821 * go32-nat.c (go32_can_run): Add 'self' argument.
12825 * target.h (struct target_ops) <to_has_exited>: Add argument.
12826 (target_has_exited): Add argument.
12827 * target.c (debug_to_has_exited): Add argument.
12828 (update_current_target): Update.
12832 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12834 (target_set_syscall_catchpoint): Add argument.
12835 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12837 * target.c (update_current_target): Update.
12841 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12843 (target_remove_exec_catchpoint): Add argument.
12844 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12845 (update_current_target): Update.
12846 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12851 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12853 (target_insert_exec_catchpoint): Add argument.
12854 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12855 (update_current_target): Update.
12856 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12861 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12863 (target_remove_vfork_catchpoint): Add argument.
12864 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12865 (update_current_target): Update.
12866 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12871 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12873 (target_insert_vfork_catchpoint): Add argument.
12874 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12875 (update_current_target): Update.
12876 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12881 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12883 (target_remove_fork_catchpoint): Add argument.
12884 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12885 (update_current_target): Update.
12886 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12891 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12893 (target_insert_fork_catchpoint): Add argument.
12894 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12895 (update_current_target): Update.
12896 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12901 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12903 (target_post_startup_inferior): Add argument.
12904 * target.c (debug_to_post_startup_inferior): Add argument.
12905 (update_current_target): Update.
12906 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12908 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12910 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12912 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12914 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12916 (super_post_startup_inferior): Likewise.
12917 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12919 (super_post_startup_inferior): Likewise.
12920 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12921 Add 'self' argument.
12922 (super_post_startup_inferior): Likewise.
12926 * target.h (struct target_ops) <to_load>: Add argument.
12927 * target.c (target_load): Add argument.
12928 (debug_to_load): Add argument.
12929 (update_current_target): Update.
12930 * remote.c (remote_load): Add 'self' argument.
12931 * remote-sim.c (gdbsim_load): Add 'self' argument.
12932 * remote-mips.c (mips_load): Add 'self' argument.
12933 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12934 * monitor.c (monitor_load): Add 'self' argument.
12935 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12939 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12940 (target_terminal_info): Add argument.
12941 * target.c (debug_to_terminal_info): Add argument.
12942 (default_terminal_info): Likewise.
12943 * inflow.c (child_terminal_info): Add 'self' argument.
12944 * inferior.h (child_terminal_info): Add 'self' argument.
12945 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12949 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12951 (target_terminal_save_ours): Add argument.
12952 * target.c (debug_to_terminal_save_ours): Add argument.
12953 (update_current_target): Update.
12954 * inflow.c (terminal_save_ours): Add 'self' argument.
12955 * inferior.h (terminal_save_ours): Add 'self' argument.
12959 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12960 (target_terminal_ours): Add argument.
12961 * target.c (debug_to_terminal_ours): Add argument.
12962 (update_current_target): Update.
12963 * remote.c (remote_terminal_ours): Add 'self' argument.
12964 (remote_close): Update.
12965 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12966 * inflow.c (terminal_ours): Add 'self' argument.
12967 * inferior.h (terminal_ours): Add 'self' argument.
12968 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12973 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12975 (target_terminal_ours_for_output): Add argument.
12976 * target.c (debug_to_terminal_ours_for_output): Add argument.
12977 (update_current_target): Update.
12978 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12979 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12980 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12984 * target.h (struct target_ops) <to_terminal_inferior>: Add
12986 * target.c (target_terminal_inferior): Add argument.
12987 (update_current_target): Update.
12988 * remote.c (remote_terminal_inferior): Add 'self' argument.
12989 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12990 * inflow.c (terminal_inferior): Add 'self' argument.
12991 * inferior.h (terminal_inferior): Add 'self' argument.
12992 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12993 (go32_terminal_inferior): Add 'self' argument.
12997 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12998 (target_terminal_init): Add argument.
12999 * target.c (debug_to_terminal_init): Add argument.
13000 (update_current_target): Update.
13001 * inflow.c (terminal_init_inferior): Add 'self' argument.
13002 * inferior.h (terminal_init_inferior): Add 'self' argument.
13003 * go32-nat.c (go32_terminal_init): Add 'self' argument.
13004 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
13008 * target.h (struct target_ops)
13009 <to_can_accel_watchpoint_condition>: Add argument.
13010 (target_can_accel_watchpoint_condition): Add argument.
13011 * target.c (debug_to_can_accel_watchpoint_condition): Add
13013 (update_current_target): Update.
13014 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
13019 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
13021 (target_region_ok_for_hw_watchpoint): Add argument.
13022 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
13023 (default_region_ok_for_hw_watchpoint): Add argument.
13024 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
13025 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
13027 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
13029 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
13031 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
13033 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
13035 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
13037 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
13038 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13040 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13041 Add 'self' argument.
13045 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13047 (target_insert_watchpoint): Add argument.
13048 * target.c (debug_to_insert_watchpoint): Add argument.
13049 (update_current_target): Update.
13050 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13051 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13052 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13053 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13054 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13055 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13057 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13058 (procfs_insert_hw_watchpoint): Add 'self' argument.
13059 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13061 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13063 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13065 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13066 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13068 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13073 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13075 (target_remove_watchpoint): Add argument.
13076 * target.c (debug_to_remove_watchpoint): Add argument.
13077 (update_current_target): Update.
13078 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13079 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13080 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13081 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13082 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13083 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13085 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13086 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13088 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13090 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13092 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13093 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13095 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13100 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13102 (target_remove_hw_breakpoint): Add argument.
13103 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13104 (update_current_target): Update.
13105 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13106 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13108 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13109 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13111 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13116 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13118 (target_insert_hw_breakpoint): Add argument.
13119 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13120 (update_current_target): Update.
13121 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13122 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13124 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13125 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13126 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13128 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13133 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13135 (target_can_use_hardware_watchpoint): Add argument.
13136 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13137 (update_current_target): Update.
13138 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13140 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13142 * remote.c (remote_check_watch_resources): Add 'self' argument.
13143 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13144 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13146 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13147 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13149 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13151 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13153 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13155 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13157 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13159 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13160 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13162 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13167 * target.h (struct target_ops) <to_post_attach>: Add argument.
13168 (target_post_attach): Add argument.
13169 * target.c (debug_to_post_attach): Add argument.
13170 (update_current_target): Update.
13171 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13172 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13173 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13174 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13175 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13179 * windows-nat.c (windows_close): Add 'self' argument.
13180 * tracepoint.c (tfile_close): Add 'self' argument.
13181 * target.h (struct target_ops) <to_close>: Add argument.
13182 * target.c (target_close): Add argument.
13183 (update_current_target): Update.
13184 * remote.c (remote_close): Add 'self' argument.
13185 * remote-sim.c (gdbsim_close): Add 'self' argument.
13186 * remote-mips.c (mips_close): Add 'self' argument.
13187 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13188 * record-full.c (record_full_close): Add 'self' argument.
13189 * record-btrace.c (record_btrace_close): Add 'self' argument.
13190 * monitor.h (monitor_close): Add 'self' argument.
13191 * monitor.c (monitor_close): Add 'self' argument.
13192 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13193 * linux-nat.c (linux_nat_close): Add argument.
13194 * go32-nat.c (go32_close): Add 'self' argument.
13195 * exec.c (exec_close_1): Add 'self' argument.
13196 * ctf.c (ctf_close): Add 'self' argument.
13197 * corelow.c (core_close): Add 'self' argument.
13198 (core_close_cleanup): Update.
13199 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13200 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13204 * remote.c (remote_load): New function.
13205 (init_remote_ops): Use it.
13209 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13211 * common/linux-btrace.h (linux_supports_btrace): Update.
13212 * remote.c (remote_supports_btrace): Add "self" argument.
13213 * target-delegates.c: Rebuild.
13214 * target.c (target_supports_btrace): Remove.
13215 * target.h (struct target_ops) <to_supports_btrace>: Add
13216 target_ops argument.
13217 (target_supports_btrace): New define.
13221 * record-full.c (record_full_beneath_to_resume_ops)
13222 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13223 (record_full_beneath_to_wait)
13224 (record_full_beneath_to_store_registers_ops)
13225 (record_full_beneath_to_store_registers)
13226 (record_full_beneath_to_xfer_partial_ops)
13227 (record_full_beneath_to_xfer_partial)
13228 (record_full_beneath_to_insert_breakpoint_ops)
13229 (record_full_beneath_to_insert_breakpoint)
13230 (record_full_beneath_to_remove_breakpoint_ops)
13231 (record_full_beneath_to_remove_breakpoint)
13232 (record_full_beneath_to_stopped_by_watchpoint)
13233 (record_full_beneath_to_stopped_data_address)
13234 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13235 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13236 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13237 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13238 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13239 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13240 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13241 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13242 (record_full_resume, record_full_wait_1)
13243 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13244 (record_full_store_registers, record_full_xfer_partial)
13245 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13246 (record_full_async, record_full_core_xfer_partial): Use target
13248 * target-delegates.c: Rebuild.
13249 * target.c (current_xfer_partial): Remove.
13250 (update_current_target): Do not INHERIT or de_fault
13251 to_insert_breakpoint, to_remove_breakpoint,
13252 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13253 to_is_async_p, to_async. Do not set to_xfer_partial field.
13254 (default_xfer_partial): Simplify.
13255 (current_xfer_partial): Remove.
13256 (target_wait, target_resume): Simplify.
13257 (find_default_can_async_p, find_default_is_async_p): Update.
13258 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13259 to_xfer_partial, to_stopped_by_watchpoint,
13260 to_stopped_data_address.
13261 (target_store_registers): Simplify.
13262 (forward_target_remove_breakpoint)
13263 (forward_target_insert_breakpoint): Remove.
13264 (target_remove_breakpoint, target_insert_breakpoint)
13265 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13266 * target.h (struct target_ops) <to_resume, to_wait,
13267 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13268 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13269 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13271 (forward_target_remove_breakpoint)
13272 (forward_target_insert_breakpoint): Remove.
13273 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13275 (record_btrace_insert_breakpoint): Delegate directly.
13280 * target-delegates.c: New file.
13281 * target.c: Include target-delegates.c.
13282 (init_dummy_target): Call install_dummy_methods.
13283 (complete_target_initialization): Call install_delegators.
13284 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13285 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13286 * make-target-delegates: New file.
13290 * record.c (find_record_target): Use find_target_at.
13291 * target.c (find_target_at): New function.
13292 * target.h (find_target_at): Declare.
13296 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13297 Add 'ops' argument.
13298 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13300 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13301 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13303 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13305 * linux-nat.c (save_sigtrap): Update.
13306 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13307 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13308 (linux_nat_close): Update.
13309 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13311 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13313 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13314 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13315 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13316 (tmp_to_async): Add 'ops' argument.
13317 (record_full_stopped_by_watchpoint, record_full_async)
13318 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13320 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13321 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13322 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13323 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13324 (remote_is_async_p, remote_async): Add 'ops' argument.
13325 (remote_stopped_data_address): Update.
13326 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13327 * target.c (update_current_target)
13328 (find_default_can_async_p, find_default_is_async_p): Update.
13329 (init_dummy_target): Update.
13330 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13331 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13332 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13333 (target_can_async_p, target_is_async_p, target_async)
13334 (target_stopped_by_watchpoint): Update.
13339 * gdbarch.sh: Remove startup_gdbarch.
13340 * gdbarch.c: Regenerated.
13341 * gdbarch.h: Likewise.
13345 * rl78-tdep.c (rl78_g10_register_name): New function.
13346 (rl78_return_value): Add g10 support.
13347 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13352 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13353 (SUBDIR_GUILE_SRCS): Ditto.
13354 (scm-gsmob.o): Ditto.
13358 * gnu-nat.c (ILL_RPC): Declare defined function.
13362 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13363 mach_msg_type_number_t.
13364 (gnu_write_inferior): Likewise.
13368 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13370 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13371 (inf_validate_procs, inf_signal): Likewise.
13372 (S_exception_raise_request): Likewise.
13373 (do_mach_notify_dead_name): Likewise.
13374 (steal_exc_port): Likewise.
13375 (gnu_read_inferior): Change 'copy_count''s type to
13376 mach_msg_type_number_t.
13377 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13382 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13383 flag. Adjust all users; in particular...
13384 (gnu_wait): ..., don't decrement its value in here...
13385 (gnu_create_inferior): ..., and instead set the flag in here,
13386 around the startup_inferior call, and call that one with
13387 START_INFERIOR_TRAPS_EXPECTED.
13389 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13390 (ILL_RPC): ... new macro.
13391 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13392 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13393 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13394 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13395 functions with ILL_RPC macro.
13396 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13397 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13398 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13399 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13400 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13401 (S_proc_getlogin_reply, S_proc_getsid_reply)
13402 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13403 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13404 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13405 (S_proc_getnports_reply, S_proc_is_important_reply)
13406 (S_proc_get_code_reply): New stub functions, generated with
13409 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13410 collected the type check structures.
13412 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13416 * target.c (target_write_partial): Fix result type.
13420 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13421 the proper offsets to access fpregset_t.
13425 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13426 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13427 * h8300-tdep.c (setmachinelist): Remove global.
13428 * hppa-tdep.c (hppa_sigtramp): Remove global.
13429 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13430 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13431 * ravenscar-thread.c (update_target_observer): Remove global.
13432 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13436 * common/rsp-low.c: Update comments.
13437 * common/rsp-low.h: Update comments.
13441 * common/rsp-low.c (convert_ascii_to_int): Remove.
13442 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13446 * common/rsp-low.h (unhexify): Don't declare.
13447 * common/rsp-low.c (unhexify): Remove.
13451 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13452 * common/rsp-low.c (convert_int_to_ascii): Remove.
13456 * common/rsp-low.h (hexify): Don't declare.
13457 * common/rsp-low.c (hexify): Remove.
13461 * common/rsp-low.c (hexify): Never take strlen of argument.
13465 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13466 * remote.c (extended_remote_run, remote_rcmd)
13467 (remote_download_trace_state_variable, remote_save_trace_data)
13468 (remote_set_trace_notes): Update.
13469 * tracepoint.c (encode_source_string, tfile_write_status)
13470 (tfile_write_uploaded_tsv): Update.
13474 * tracepoint.c: Include rsp-low.h.
13475 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13476 * remote.c: Include rsp-low.h.
13477 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13478 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13479 (remote_unescape_input): Move to common/rsp-low.c.
13480 * common/rsp-low.h: New file.
13481 * common/rsp-low.c: New file.
13482 * Makefile.in (SFILES): Add common/rsp-low.c.
13483 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13484 (COMMON_OBS): Add rsp-low.o.
13485 (rsp-low.o): New target.
13489 * utils.h: Include print-utils.h.
13490 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13491 (int_string, core_addr_to_string, core_addr_to_string_nz)
13492 (hex_string, hex_string_custom): Don't declare.
13493 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13494 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13495 (hex_string_custom, int_string, core_addr_to_string)
13496 (core_addr_to_string_nz, host_address_to_string): Move to
13497 common/print-utils.c.
13498 * common/print-utils.h: New file.
13499 * common/print-utils.c: New file
13500 * Makefile.in (SFILES): Add common/print-utils.c.
13501 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13502 (COMMON_OBS): Add print-utils.o.
13503 (print-utils.o): New target.
13507 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13511 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13515 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13516 if a PT_IO ptrace request returns sucessfully but indicates that 0
13517 bytes were transferred.
13522 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13523 TYPE_INSTANCE_FLAG_CODE_SPACE.
13527 * h8300-tdep.c (pseudo_from_raw_register)
13528 (raw_from_pseudo_register): New functions.
13529 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13534 * h8300-tdep.c (h8300_register_sim_regno): New function.
13535 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13536 gdbarch_register_sim_regno hook.
13540 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13544 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13548 * obsd-tdep.h (obsd_init_abi): New prototype.
13549 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13550 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13551 (obsd_init_abi): New functions.
13552 * i386obsd-tdep.c: Include "obsd-tdep.h".
13553 (i386obsd_init_abi): Call obsd_init_abi.
13554 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13555 (amd64obsd_init_abi): Call obsd_init_abi.
13556 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13557 obsd-tdep.c to gdb_target_obs.
13561 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13562 double float arguments to 16-byte in the argument slots.
13566 * configure.ac: Don't crash if pkg-config is not found and guile
13567 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13569 * configure: Regenerate.
13573 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13574 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13575 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13576 * gnu-nat.c (gnu_xfer_memory): Likewise.
13577 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13578 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13579 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13580 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13584 * target.h (enum target_xfer_error): Rename to ...
13585 (enum target_xfer_status): ... it. New. All users updated.
13586 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13588 (TARGET_XFER_STATUS_ERROR_P): New macro.
13589 (target_xfer_error_to_string): Remove declaration.
13590 (target_xfer_status_to_string): Declare.
13591 (target_xfer_partial_ftype): Adjust it.
13592 (struct target_ops) <to_xfer_partial>: Return
13593 target_xfer_status. Add argument xfered_len. Update
13595 * target.c (target_xfer_error_to_string): Rename to ...
13596 (target_xfer_status_to_string): ... it. New. All callers
13598 (target_read_live_memory): Likewise. Call target_xfer_partial
13599 instead of target_read.
13600 (memory_xfer_live_readonly_partial): Return
13601 target_xfer_status. Add argument xfered_len.
13602 (raw_memory_xfer_partial): Likewise.
13603 (memory_xfer_partial_1): Likewise.
13604 (memory_xfer_partial): Likewise.
13605 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13606 properly. Update debug message.
13607 (default_xfer_partial, current_xfer_partial): Likewise.
13608 (target_write_partial): Likewise.
13609 (target_read_partial): Likewise. All callers updated.
13610 (read_whatever_is_readable): Likewise.
13611 (target_write_with_progress): Likewise.
13612 (target_read_alloc_1): Likewise.
13614 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13615 * auxv.c (procfs_xfer_auxv): Likewise.
13616 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13617 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13618 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13619 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13620 * corefile.c (read_memory): Adjust.
13621 * corelow.c (core_xfer_partial): Likewise.
13622 * ctf.c (ctf_xfer_partial): Likewise.
13623 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13625 (darwin_xfer_partial): Likewise.
13626 * exec.c (section_table_xfer_memory_partial): Likewise. All
13628 (exec_xfer_partial): Likewise.
13629 * exec.h (section_table_xfer_memory_partial): Update
13631 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13633 (gnu_xfer_partial): Likewise.
13634 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13635 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13636 (ia64_hpux_xfer_solib_got): Likewise.
13637 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13638 type of 'partial_len' to ULONGEST.
13639 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13640 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13641 (linux_nat_xfer_partial): Likewise.
13642 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13643 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13644 * monitor.c (monitor_xfer_memory): Likewise.
13645 (monitor_xfer_partial): Likewise.
13646 * procfs.c (procfs_xfer_partial): Likewise.
13647 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13648 * record-full.c (record_full_xfer_partial): Likewise.
13649 (record_full_core_xfer_partial): Likewise.
13650 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13651 (gdbsim_xfer_partial): Likewise.
13652 * remote.c (remote_write_bytes_aux): Likewise. All callers
13654 (remote_write_bytes, remote_read_bytes): Likewise. All
13656 (remote_flash_erase): Likewise. All callers updated.
13657 (remote_write_qxfer): Likewise. All callers updated.
13658 (remote_read_qxfer): Likewise. All callers updated.
13659 (remote_xfer_partial): Likewise.
13660 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13661 (rs6000_xfer_shared_libraries): Likewise.
13662 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13663 (sol_thread_xfer_partial): Likewise.
13664 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13665 (sparc_xfer_partial): Likewise.
13666 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13668 (spu_xfer_partial): Likewise.
13669 * spu-multiarch.c (spu_xfer_partial): Likewise.
13670 * tracepoint.c (tfile_xfer_partial): Likewise.
13671 * windows-nat.c (windows_xfer_memory): Likewise.
13672 (windows_xfer_shared_libraries): Likewise.
13673 (windows_xfer_partial): Likewise.
13674 * valprint.c: Replace 'target_xfer_error' with
13675 'target_xfer_status' in comments.
13680 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13684 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13685 function parameters.
13689 * elfread.c (elf_rel_plt_read): Look for a .got section if
13690 looking up .got.plt fails.
13691 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13692 on address passed to elf_gnu_ifunc_record_cache.
13693 (elf_gnu_ifunc_resolve_addr): Likewise.
13694 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13698 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13699 (X_RETTURN): New macro.
13700 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13702 * sparc64-tdep.c (sparc64_init_abi): Hook
13703 sparc_in_function_epilogue_p.
13707 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13708 Rename name_matcher to symbol_matcher.
13712 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13713 Use expand_symtabs_file_matcher_ftype and
13714 expand_symtabs_symbol_matcher_ftype.
13718 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13719 (struct ada_symbol_cache): New.
13720 (ada_free_symbol_cache): Forward declare.
13721 (struct ada_pspace_data): New.
13722 (ada_pspace_data_handle): New static global.
13723 (get_ada_pspace_data, ada_pspace_data_cleanup)
13724 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13725 (cache_space, cache): Delete, now folded inside struct
13727 (ada_get_symbol_cache): New function.
13728 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13730 (_initialize_ada_language): Remove initialization of cache_space.
13731 Move call to observer_attach_inferior_exit up, grouping it
13732 with the other observer registrations inside this function.
13733 Rename command to be more general. Add call to
13734 register_program_space_data_with_cleanup.
13738 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13739 ada_new_objfile_observer.
13740 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13741 (_initialize_tasks): Update uses of ada_new_objfile_observer
13742 and ada_tasks_normal_stop_observer.
13746 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13747 returned by the 'Length attribute to integer.
13751 * ada-lang.c (_initialize_ada_language): Initialize
13752 cache_space obstack.
13756 * ada-lang.c (HASH_SIZE): New macro.
13757 (struct cache_entry): New type.
13758 (cache_space, cache): New static globals.
13759 (ada_clear_symbol_cache, find_entry): New functions.
13760 (lookup_cached_symbol, cache_symbol): Implement.
13761 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13762 (_initialize_ada_language): Attach ada_new_objfile_observer
13763 and ada_free_objfile_observer.
13767 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13768 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13769 struct block * parameter.
13770 (ada_lookup_symbol_list_worker): Constify local variable "block".
13771 Remove cast which is no longer necessary.
13775 Add Guile as an extension language.
13776 * NEWS: Mention Guile scripting.
13777 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13778 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13779 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13780 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13781 (CLIBS): Add GUILE_LIBS.
13782 (install-guile): New rule.
13783 (guile.o): New rule.
13784 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13785 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13786 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13787 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13788 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13789 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13790 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13791 * configure.ac: New option --with-guile.
13792 * configure: Regenerate.
13793 * config.in: Regenerate.
13794 * auto-load.c: Remove #include "python/python.h". Add #include
13795 "gdb/section-scripts.h".
13796 (source_section_scripts): Handle Guile scripts.
13797 (_initialize_auto_load): Add name of Guile objfile script to
13798 scripts-directory help text.
13799 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13800 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13801 (struct breakpoint): New member scm_bp_object.
13802 * defs.h (enum command_control_type): New value guile_control.
13803 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13805 (show_user): Update comment.
13806 (_initialize_cli_cmds): Update help text for "show user". Update help
13807 text for max-user-call-depth.
13808 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13810 (multi_line_command_p): Add guile_control.
13811 (print_command_lines): Handle guile_control.
13812 (execute_control_command, recurse_read_control_structure): Ditto.
13813 (process_next_line): Recognize "guile" commands.
13814 * disasm.c (gdb_disassemble_info): Make non-static.
13815 * disasm.h: #include "dis-asm.h".
13816 (struct gdbarch): Add forward decl.
13817 (gdb_disassemble_info): Declare.
13818 * extension.c: #include "guile/guile.h".
13819 (extension_languages): Add guile.
13820 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13821 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13822 * gdbtypes.c (get_unsigned_type_max): New function.
13823 (get_signed_type_minmax): New function.
13824 * gdbtypes.h (get_unsigned_type_max): Declare.
13825 (get_signed_type_minmax): Declare.
13826 * guile/README: New file.
13827 * guile/guile-internal.h: New file.
13828 * guile/guile.c: New file.
13829 * guile/guile.h: New file.
13830 * guile/scm-arch.c: New file.
13831 * guile/scm-auto-load.c: New file.
13832 * guile/scm-block.c: New file.
13833 * guile/scm-breakpoint.c: New file.
13834 * guile/scm-disasm.c: New file.
13835 * guile/scm-exception.c: New file.
13836 * guile/scm-frame.c: New file.
13837 * guile/scm-gsmob.c: New file.
13838 * guile/scm-iterator.c: New file.
13839 * guile/scm-lazy-string.c: New file.
13840 * guile/scm-math.c: New file.
13841 * guile/scm-objfile.c: New file.
13842 * guile/scm-ports.c: New file.
13843 * guile/scm-pretty-print.c: New file.
13844 * guile/scm-safe-call.c: New file.
13845 * guile/scm-string.c: New file.
13846 * guile/scm-symbol.c: New file.
13847 * guile/scm-symtab.c: New file.
13848 * guile/scm-type.c: New file.
13849 * guile/scm-utils.c: New file.
13850 * guile/scm-value.c: New file.
13851 * guile/lib/gdb.scm: New file.
13852 * guile/lib/gdb/boot.scm: New file.
13853 * guile/lib/gdb/experimental.scm: New file.
13854 * guile/lib/gdb/init.scm: New file.
13855 * guile/lib/gdb/iterator.scm: New file.
13856 * guile/lib/gdb/printing.scm: New file.
13857 * guile/lib/gdb/types.scm: New file.
13858 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13859 (VPATH): Add $(GUILE_SRCDIR).
13860 (GUILE_DIR): New variable.
13861 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13862 (all): Add stamp-guile dependency.
13863 (stamp-guile): New rule.
13864 (clean-guile, install-guile, uninstall-guile): New rules.
13865 (install-only): Add install-guile dependency.
13866 (uninstall): Add uninstall-guile dependency.
13867 (clean): Add clean-guile dependency.
13871 Revert this patch (which I approved, mea culpa).
13875 * Makefile.in (all-lib): Remove.
13876 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13880 Fix Python stack corruption.
13881 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13886 * Makefile.in (all-lib): Remove.
13887 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13891 * extension-priv.h (extension_language_script_ops): Add comment.
13892 (extension_language_ops): Add comment.
13893 (active_ext_lang_state): Fix typo in comment.
13897 PR breakpoints/16292
13898 * infrun.c (handle_signal_stop) <signal arrives while stepping
13899 over a breakpoint>: Switch back to the stepping thread.
13903 * target.c (target_xfer_partial): Return zero if LEN is zero.
13907 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13908 (ld_so_xfer_auxv): Likewise.
13909 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13910 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13911 * corelow.c (core_xfer_partial): Likewise.
13912 * ctf.c (ctf_xfer_partial): Likewise.
13913 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13914 (darwin_xfer_partial): Likewise.
13915 * exec.c (exec_xfer_partial): Likewise.
13916 * gnu-nat.c (gnu_xfer_partial): Likewise.
13917 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13918 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13919 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13920 * linux-nat.c (linux_xfer_siginfo): Likewise.
13921 (linux_proc_xfer_spu): Likewise.
13922 * procfs.c (procfs_xfer_partial): Likewise.
13923 * record-full.c (record_full_xfer_partial): Likewise.
13924 (record_full_core_xfer_partial): Likewise.
13925 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13926 * remote.c (remote_write_qxfer): Likewise.
13927 (remote_write_qxfer, remote_read_qxfer): Likewise.
13928 (remote_xfer_partial): Likewise.
13929 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13930 (rs6000_xfer_shared_libraries): Likewise.
13931 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13932 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13933 (spu_xfer_partial): Likewise.
13934 * target.c (memory_xfer_partial_1): Likewise.
13935 * tracepoint.c (tfile_xfer_partial): Likewise.
13936 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13937 (windows_xfer_partial): Likewise.
13941 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13943 (core_xfer_shared_libraries_aix): Likewise.
13944 * gdbarch.c, gdbarch.h: Regenerated.
13945 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13946 ULONGEST. Change 'len_avail' type to ULONGEST.
13947 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13948 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13950 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13954 * corefile.c (memory_error): Get 'exception' from ERR and pass
13955 'exception' to throw_error.
13959 * configure.ac (libpython checking): Remove all but python.o from
13960 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13961 * configure: Regenerate.
13963 * Makefile.in (SFILES): Add extension.c.
13964 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13965 (COMMON_OBS): Add extension.o.
13966 * extension.h: New file.
13967 * extension-priv.h: New file.
13968 * extension.c: New file.
13970 * python/python-internal.h: #include "extension.h".
13971 (gdbpy_auto_load_enabled): Declare.
13972 (gdbpy_apply_val_pretty_printer): Declare.
13973 (gdbpy_apply_frame_filter): Declare.
13974 (gdbpy_preserve_values): Declare.
13975 (gdbpy_breakpoint_cond_says_stop): Declare.
13976 (gdbpy_breakpoint_has_cond): Declare.
13977 (void source_python_script_for_objfile): Delete.
13978 * python/python.c: #include "extension-priv.h".
13979 Delete inclusion of "observer.h".
13980 (extension_language_python): Moved here and renamed from
13981 script_language_python in py-auto-load.c.
13982 Redefined to be of type extension_language_defn.
13983 (python_extension_script_ops): New global.
13984 (python_extension_ops): New global.
13985 (struct python_env): New member previous_active.
13986 (restore_python_env): Call restore_active_ext_lang.
13987 (ensure_python_env): Call set_active_ext_lang.
13988 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13990 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13992 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13994 (gdbpy_eval_from_control_command): Renamed from
13995 eval_python_from_control_command, made static. New arg extlang.
13996 (gdbpy_source_script) Renamed from source_python_script, made static.
13998 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13999 result to int. New arg extlang.
14000 (gdbpy_source_objfile_script): Renamed from
14001 source_python_script_for_objfile, made static. New arg extlang.
14002 (gdbpy_start_type_printers): Renamed from start_type_printers, made
14003 static. New args extlang, extlang_printers. Change result type to
14005 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
14006 static. New arg extlang. Rename arg printers to extlang_printers
14007 and change type to ext_lang_type_printers *.
14008 (gdbpy_free_type_printers): Renamed from free_type_printers, made
14009 static. Replace argument arg with extlang, extlang_printers.
14010 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
14011 (!HAVE_PYTHON, source_python_script): Delete.
14012 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
14013 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
14014 (!HAVE_PYTHON, start_type_printers): Delete.
14015 (!HAVE_PYTHON, apply_type_printers): Delete.
14016 (!HAVE_PYTHON, free_type_printers): Delete.
14017 (_initialize_python): Delete call to observer_attach_before_prompt.
14018 (finalize_python): Set/restore active extension language.
14019 (gdbpy_finish_initialization) Renamed from
14020 finish_python_initialization, made static. New arg extlang.
14021 (gdbpy_initialized): New function.
14022 * python/python.h: #include "extension.h". Delete #include
14023 "value.h", "mi/mi-cmds.h".
14024 (extension_language_python): Declare.
14025 (GDBPY_AUTO_FILE_NAME): Delete.
14026 (enum py_bt_status): Moved to extension.h and renamed to
14027 ext_lang_bt_status.
14028 (enum frame_filter_flags): Moved to extension.h.
14029 (enum py_frame_args): Moved to extension.h and renamed to
14030 ext_lang_frame_args.
14031 (finish_python_initialization): Delete.
14032 (eval_python_from_control_command): Delete.
14033 (source_python_script): Delete.
14034 (apply_val_pretty_printer): Delete.
14035 (apply_frame_filter): Delete.
14036 (preserve_python_values): Delete.
14037 (gdbpy_script_language_defn): Delete.
14038 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14039 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14041 * auto-load.c: #include "extension.h".
14042 (GDB_AUTO_FILE_NAME): Delete.
14043 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14044 (script_language_gdb): Delete, moved to extension.c and renamed to
14045 extension_language_gdb.
14046 (source_gdb_script_for_objfile): Delete.
14047 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14048 (loaded_script): Change type of language member to
14049 struct extension_language_defn *.
14050 (init_loaded_scripts_info): Initialize
14051 unsupported_script_warning_printed.
14052 (maybe_add_script): Make static. Change type of language arg to
14053 struct extension_language_defn *.
14054 (clear_section_scripts): Reset unsupported_script_warning_printed.
14055 (auto_load_objfile_script_1): Rewrite to use extension language API.
14056 (auto_load_objfile_script): Make public. Remove support-compiled-in
14057 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14058 (source_section_scripts): Rewrite to use extension language API.
14059 (load_auto_scripts_for_objfile): Rewrite to use
14060 auto_load_scripts_for_objfile.
14061 (collect_matching_scripts_data): Change type of language member to
14062 struct extension_language_defn *.
14063 (auto_load_info_scripts): Change type of language arg to
14064 struct extension_language_defn *.
14065 (unsupported_script_warning_print): New function.
14066 (script_not_found_warning_print): Make static.
14067 (_initialize_auto_load): Rewrite construction of scripts-directory
14069 * auto-load.h (struct objfile): Add forward decl.
14070 (struct script_language): Delete.
14071 (struct auto_load_pspace_info): Add forward decl.
14072 (struct extension_language_defn): Add forward decl.
14073 (maybe_add_script): Delete.
14074 (auto_load_objfile_script): Declare.
14075 (script_not_found_warning_print): Delete.
14076 (auto_load_info_scripts): Update prototype.
14077 (auto_load_gdb_scripts_enabled): Declare.
14078 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14079 auto_load_python_scripts_enabled and made public.
14080 (script_language_python): Delete, moved to python.c.
14081 (gdbpy_script_language_defn): Delete.
14082 (info_auto_load_python_scripts): Update to use
14083 extension_language_python.
14085 * breakpoint.c (condition_command): Replace call to
14086 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14087 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14088 with call to breakpoint_ext_lang_cond_says_stop.
14089 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14090 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14091 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14092 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14094 (local_setattro): Print name of extension language with existing
14097 * valprint.c (val_print, value_print): Update to call
14098 apply_ext_lang_val_pretty_printer.
14099 * cp-valprint.c (cp_print_value): Update call to
14100 apply_ext_lang_val_pretty_printer.
14101 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14102 (gdbpy_apply_val_pretty_printer): Renamed from
14103 apply_val_pretty_printer. New arg extlang.
14104 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14106 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14107 extension language API.
14108 * cli/cli-script.c (execute_control_command): Update to call
14109 eval_ext_lang_from_control_command.
14111 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14112 enum ext_lang_bt_status values. Update call to
14113 apply_ext_lang_frame_filter.
14114 (mi_cmd_stack_list_locals): Ditto.
14115 (mi_cmd_stack_list_args): Ditto.
14116 (mi_cmd_stack_list_variables): Ditto.
14117 * mi/mi-main.c: Delete #include "python/python-internal.h".
14118 Add #include "extension.h".
14119 (mi_cmd_list_features): Replace reference to python internal variable
14120 gdb_python_initialized with call to ext_lang_initialized_p.
14122 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14123 Update to use enum ext_lang_frame_args. Update to call
14124 apply_ext_lang_frame_filter.
14125 * python/py-framefilter.c (extract_sym): Update to use enum
14126 ext_lang_bt_status.
14127 (extract_value, py_print_type, py_print_value): Ditto.
14128 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14129 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14130 (py_print_frame): Ditto.
14131 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14132 New arg extlang. Update to use enum ext_lang_bt_status.
14134 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14135 finish_python_initialization. Replace with call to
14136 finish_ext_lang_initialization.
14138 * typeprint.c (do_free_global_table): Update to call
14139 free_ext_lang_type_printers.
14140 (create_global_typedef_table): Update to call
14141 start_ext_lang_type_printers.
14142 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14143 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14144 (type_print_options): Change type of global_printers from "void *"
14145 to "struct ext_lang_type_printers *".
14147 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14148 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14149 (gdbpy_preserve_values): Renamed from preserve_python_values.
14151 (!HAVE_PYTHON, preserve_python_values): Delete.
14153 * utils.c (quit_flag): Delete, moved to extension.c.
14154 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14157 * eval.c: Delete #include "python/python.h".
14158 * main.c: Delete #include "python/python.h".
14160 * defs.h: Update comment.
14168 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14173 * remote.c (remote_pass_signals): Remove local 'buf' and use
14175 (remote_program_signals): Likewise.
14179 * ctf.c: Include "inferior.h" and "gdbthread.h".
14180 (CTF_PID): A new macro.
14181 (ctf_open): Call inferior_appeared and add_thread_silent.
14182 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14183 (ctf_thread_alive): New function.
14184 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14192 * tracepoint.c (TFILE_PID): Remove.
14193 (tfile_open): Don't add thread and inferior.
14194 (tfile_close): Don't set 'inferior_ptid'. Don't call
14195 exit_inferior_silent.
14196 (tfile_thread_alive): Remove.
14197 (init_tfile_ops): Don't set field 'to_thread_alive' of
14202 * remote.c (remote_start_remote): Call remote_check_symbols even
14203 if only symbol-file (not file) has been given.
14207 * gdbarch.sh (skip_entrypoint): New callback.
14208 * gdbarch.c, gdbarch.h: Regenerate.
14209 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14210 * infrun.c (fill_in_stop_func): Likewise.
14211 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14212 (ppc_elfv2_elf_make_msymbol_special): New function.
14213 (ppc_elfv2_skip_entrypoint): Likewise.
14214 (ppc_linux_init_abi): Install them for ELFv2.
14218 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14219 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14220 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14221 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14222 structures returned in GPRs.
14226 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14227 offset to the stack parameter list for the ELFv2 ABI.
14231 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14232 set_gdbarch_convert_from_func_ptr_addr and
14233 set_gdbarch_elf_make_msymbol_special for ELFv1.
14234 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14235 function descriptors on ELFv1.
14236 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14237 set up r12 at function entry.
14241 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14242 (struct gdbarch_tdep): New member elf_abi.
14244 * rs6000-tdep.c: Include "elf/ppc64.h".
14245 (rs6000_gdbarch_init): Detect ELF ABI version.
14249 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14250 within a register pair holding a DFP 128-bit value on little-endian.
14251 (ppc64_sysv_abi_return_value_base): Likewise.
14252 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14253 (dfp_pseudo_register_write): Likewise.
14257 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14258 offset on little-endian when passing _Decimal32.
14259 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14263 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14264 of the overlapped FP register within the VSX register on little-
14266 (efpr_pseudo_register_write): Likewise.
14270 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14271 offset on little-endian when passing small structures.
14275 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14276 (struct ppc64_sysv_argpos): New data structure.
14277 (ppc64_sysv_abi_push_float): Remove.
14278 (ppc64_sysv_abi_push_val): New function.
14279 (ppc64_sysv_abi_push_integer): Likewise.
14280 (ppc64_sysv_abi_push_freg): Likewise.
14281 (ppc64_sysv_abi_push_vreg): Likewise.
14282 (ppc64_sysv_abi_push_param): Likewise.
14283 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14284 (ppc64_sysv_abi_return_value_base): New function.
14285 (ppc64_sysv_abi_return_value): Refactor to use it.
14289 * NEWS: Document new target powerpc64le-*-linux*.
14293 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14294 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14296 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14297 register set used in ELF core dumps. Add floating-point register set.
14301 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14302 dwarf2_to_gdb[] table using symbolic constants. Adjust
14303 penultimate entry from number representing the PC register
14304 to symbolic constant representing the MDR register. Add
14305 constant for the PC register to the end of the table.
14309 * bsd-kvm.c: Include <sys/param.h>
14313 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14317 * ada-lang.h (clear_ada_sym_cache): Delete.
14321 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14325 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14326 the sigreturn register save area only if the syscall is
14331 * valops.c (value_slice): Minor reformatting.
14335 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14339 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14340 New static globals.
14341 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14342 (ada_ignore_descriptive_types_p): New static global.
14343 (find_parallel_type_by_descriptive_type): Return immediately
14344 if ada_ignore_descriptive_types_p is set.
14345 (_initialize_ada_language): Register new commands "maintenance
14346 set ada", "maintenance show ada", "maintenance set ada
14347 ignore-descriptive-types" and "maintenance show ada
14348 ignore-descriptive-types".
14349 * NEWS: Add entry for new "maint ada set/show
14350 ignore-descriptive-types" commands.
14354 * record-btrace.c (record_btrace_close): Call btrace_teardown
14359 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14364 * ada-typeprint (type_is_full_subrange_of_target_type):
14366 (print_range): Add parameter bounds_prefered_p. If not set,
14367 try printing range types using the name of their base type.
14368 (print_range_type): Add parameter bounds_prefered_p.
14369 Use it in call to print_range.
14370 (print_array_type, ada_print_type): Update calls to print_range
14371 and print_range_type.
14375 * ada-typeprint.c (print_array_type, print_choices, print_range)
14376 (print_range_bound, print_dynamic_range_bound, print_range_type):
14377 Remove declaration.
14381 * ada-typeprint.c (print_range): Add missing empty line
14382 after local declaration.
14386 * ada-valprint.c (print_optional_low_bound): Get index_type's
14387 target type for as long as it is a TYPE_CODE_RANGE.
14391 * procfs.c (procfs_make_note_section): Remove assertion and
14392 associated comment.
14396 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14397 * corelow.c (get_core_siginfo): Likewise.
14401 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14402 ULONGEST. Don't check 'len' is negative.
14403 (remote_write_bytes): Change type of 'len' to ULONGEST.
14408 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14409 Handle exception from frame.block.
14410 (FrameVars.fetch_frame_locals): Likewise.
14415 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14416 on a NULL pointer. Move "goto error" to correct place.
14421 * python/py-framefilter.c (apply_frame_filter): Call
14422 ensure_python_env after computing gdbarch.
14426 * target.c (raw_memory_xfer_partial): Change argument type
14427 from void * to gdb_byte *.
14428 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14432 New gdbserver option --debug-format=timestamp.
14433 * NEWS: Mention it.
14437 * syscalls/s390x-linux.xml: New file.
14438 * syscalls/s390-linux.xml: New file.
14439 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14440 (XML_SYSCALL_FILENAME_S390X): Likewise.
14441 (op_svc): New enum value for SVC opcode.
14442 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14443 (s390_linux_get_syscall_number): New function.
14444 (s390_gdbarch_init): Register '*get_syscall_number' and the
14445 syscall xml file name.
14446 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14447 "s390-linux.xml" and "s390x-linux.xml".
14448 * NEWS: Announce new feature.
14452 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14456 * xtensa-config.c: Include defs.h.
14460 * common/common-utils.h: Add "ARI:" comment beside __func__
14465 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14466 documentation a bit.
14470 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14471 * configure: Regenerate.
14472 * aclocal.m4: Regenerate.
14473 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14474 New substituted variables.
14475 (install-strip): New target.
14476 (INSTALL_SCRIPT): New substituted variable.
14477 (FLAGS_TO_PASS): Add it.
14478 (install-only): Use $(INSTALL_SCRIPT) rather than
14479 $(INSTALL_PROGRAM) for gcore.
14483 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14488 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14489 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14490 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14491 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14492 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14493 (struct cmd_list_element) <flags>: Remove.
14494 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14495 doc_allocated>: New fields.
14496 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14498 * maint.c (maintenance_do_deprecate): Update.
14499 * top.c (execute_command): Update.
14503 * xtensa-linux-nat.c: Include asm/ptrace.h.
14507 * Makefile.in (SFILES): Add d-support.c.
14508 (COMMON_OBS): Add d-support.o.
14509 * d-lang.h (d_parse_symbol): Add comment, now defined in
14511 * d-lang.c (parse_call_convention)
14512 (parse_attributes, parse_function_types)
14513 (parse_function_args, parse_type, parse_identifier)
14514 (call_convention_p, d_parse_symbol): Move functions to ...
14515 * d-support.c: ... New file.
14519 * d-lang.h (d_parse_symbol): Add declaration.
14520 * d-lang.c (extract_identifiers)
14521 (extract_type_info): Remove functions.
14522 (parse_call_convention, parse_attributes)
14523 (parse_function_types, parse_function_args)
14524 (parse_type, parse_identifier, call_convention_p)
14525 (d_parse_symbol): New functions.
14526 (d_demangle): Use d_parse_symbol to demangle D symbols.
14530 * d-lang.h (struct builtin_d_type): New data type.
14531 (builtin_d_type): Add declaration.
14532 * d-lang.c (d_language_arch_info, build_d_types)
14533 (builtin_d_type): New functions.
14534 (enum d_primitive_types): New data type.
14535 (d_language_defn): Change c_language_arch_info to
14536 d_language_arch_info.
14537 (d_type_data): New static variable.
14538 (_initialize_d_language): Initialize d_type_data.
14542 * d-lang.h (d_main_name): Add declaration.
14543 * d-lang.c (d_main_name): New function.
14544 * symtab.c (find_main_name): Add call to d_main_name.
14548 * d-lang.c (d_language_defn): Change macro_expansion_c to
14549 macro_expansion_no.
14553 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14557 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14558 gdb_exception" declaration.
14559 * remote.c (getpkt_or_notif_sane): Likewise.
14563 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14564 function, contents of dirnames_to_char_ptr_vec_append moved here.
14565 (delim_string_to_char_ptr_vec): New function.
14566 (dirnames_to_char_ptr_vec_append): Rewrite.
14567 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14571 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14573 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14574 #include "common-utils.h".
14575 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14576 * common/vec.h (VEC_ASSERT_PASS): Update.
14577 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14578 (MACH_CHECK_ERROR): Update.
14582 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14584 * gdbarch.h: Regenerate.
14588 * value.c (struct value) <regnum>: Move earlier.
14592 * remote.c (extended_remote_create_inferior): Rename from
14593 extended_remote_create_inferior_1. Add "ops" argument. Remove
14594 old implementation.
14598 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14599 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14604 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14608 * btrace.h (btrace_thread_flag): New.
14609 (struct btrace_thread_info) <flags>: New.
14610 * record-btrace.c (record_btrace_resume_thread)
14611 (record_btrace_find_thread_to_move, btrace_step_no_history)
14612 (btrace_step_stopped, record_btrace_start_replaying)
14613 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14614 (record_btrace_find_resume_thread): New.
14615 (record_btrace_resume, record_btrace_wait): Extend.
14616 (record_btrace_can_execute_reverse): New.
14617 (record_btrace_open): Fail in non-stop mode.
14618 (record_btrace_set_replay): Split into this, ...
14619 (record_btrace_stop_replaying): ... this, ...
14620 (record_btrace_clear_histories): ... and this.
14621 (init_record_btrace_ops): Init to_can_execute_reverse.
14622 * NEWS: Announce it.
14626 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14627 (forward_target_decr_pc_after_break)
14628 (target_decr_pc_after_break): New.
14629 * target.c (forward_target_decr_pc_after_break)
14630 (target_decr_pc_after_break): New.
14631 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14632 instead of gdbarch_decr_pc_after_break.
14633 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14634 instead of gdbarch_decr_pc_after_break.
14635 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14636 instead of gdbarch_decr_pc_after_break.
14637 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14638 instead of gdbarch_decr_pc_after_break.
14639 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14640 instead of gdbarch_decr_pc_after_break.
14641 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14642 instead of gdbarch_decr_pc_after_break.
14646 * btrace.c: Include regcache.h.
14647 (btrace_add_pc): New.
14648 (btrace_enable): Call btrace_add_pc.
14649 (btrace_is_empty): New.
14650 * btrace.h (btrace_is_empty): New.
14651 * record-btrace.c (require_btrace, record_btrace_info): Call
14656 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14657 Support delta reads.
14658 (linux_disable_btrace): Change return type.
14659 * common/linux-btrace.h (linux_read_btrace): Change parameters
14660 and return type to allow error reporting. Update users.
14661 (linux_disable_btrace): Change return type. Update users.
14662 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14664 (btrace_error): New.
14665 (btrace_block) <begin>: Comment on BEGIN == 0.
14666 * btrace.c (btrace_compute_ftrace): Start from the end of
14668 (btrace_stitch_trace, btrace_clear_history): New.
14669 (btrace_fetch): Read delta trace, return if replaying.
14670 (btrace_clear): Move clear history code to btrace_clear_history.
14671 (parse_xml_btrace): Throw an error if parsing failed.
14672 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14673 and return type to allow error reporting.
14674 (target_read_btrace): Change parameters and return type to allow
14676 * target.c (target_read_btrace): Update.
14677 * remote.c (remote_read_btrace): Support delta reads. Pass
14679 * NEWS: Announce it.
14683 * record.h (record_btrace_frame_unwind)
14684 (record_btrace_tailcall_frame_unwind): New declarations.
14685 * dwarf2-frame: Include record.h
14686 (dwarf2_frame_cfa): Throw an error for btrace frames.
14687 * record-btrace.c: Include hashtab.h.
14688 (btrace_get_bfun_name): New.
14689 (btrace_call_history): Call btrace_get_bfun_name.
14690 (struct btrace_frame_cache): New.
14692 (bfcache_hash, bfcache_eq, bfcache_new): New.
14693 (btrace_get_frame_function): New.
14694 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14695 (record_btrace_frame_this_id): Compute own id.
14696 (record_btrace_frame_prev_register): Provide PC, throw_error
14697 for all other registers.
14698 (record_btrace_frame_sniffer): Detect btrace frames.
14699 (record_btrace_tailcall_frame_sniffer): New.
14700 (record_btrace_frame_dealloc_cache): New.
14701 (record_btrace_frame_unwind): Add new functions.
14702 (record_btrace_tailcall_frame_unwind): New.
14703 (_initialize_record_btrace): Allocate cache.
14704 * btrace.c (btrace_clear): Call reinit_frame_cache.
14705 * NEWS: Announce it.
14709 * record-btrace.c (record_btrace_set_replay)
14710 (record_btrace_goto_begin, record_btrace_goto_end)
14711 (record_btrace_goto): New.
14712 (init_record_btrace_ops): Initialize them.
14713 * NEWS: Announce it.
14717 * record-btrace.c (record_btrace_find_new_threads)
14718 (record_btrace_thread_alive): New.
14719 (init_record_btrace_ops): Initialize to_find_new_threads and
14724 * record-btrace.c (record_btrace_resume): New.
14725 (record_btrace_wait): New.
14726 (init_record_btrace_ops): Initialize to_wait and to_resume.
14730 * record-btrace.c (record_btrace_xfer_partial)
14731 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14732 (record_btrace_allow_memory_access): New.
14733 (init_record_btrace_ops): Initialize new methods.
14734 * target.c (raw_memory_xfer_partial): Bail out if target reports
14735 that this memory is not available.
14739 * target.h (target_ops) <to_insert_breakpoint>
14740 <to_remove_breakpoint>: Add target_ops parameter.
14741 (forward_target_insert_breakpoint): New.
14742 (forward_target_remove_breakpoint): New.
14743 (memory_remove_breakpoint, memory_insert_breakpoint):
14744 Add target_ops parameter.
14745 * target.c (target_insert_breakpoint): Split into this and ...
14746 (forward_target_insert_breakpoint): ... this.
14747 (target_remove_breakpoint): Split into this and ...
14748 (forward_target_remove_breakpoint): ... this.
14749 (debug_to_insert_breakpoint): Add target_ops parameter.
14750 Call forward_target_insert_breakpoint.
14751 (debug_to_remove_breakpoint): Add target_ops parameter.
14752 Call forward_target_remove_breakpoint.
14753 (update_current_target): Do not inherit or default to_insert_breakpoint
14754 and to_remove_breakpoint.
14755 * corelow.c (ignore): Add target_ops parameter.
14756 * exec.c (ignore): Add target_ops parameter.
14757 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14758 Add target_ops parameter.
14759 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14760 Add target_ops parameter.
14761 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14762 Add target_ops parameter.
14763 * record-full.c (record_full_beneath_to_insert_breakpoint)
14764 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14765 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14766 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14767 (record_full_core_remove_breakpoint): Add target_ops parameter.
14769 (record_full_beneath_to_insert_breakpoint_ops)
14770 (record_full_beneath_to_remove_breakpoint_ops)
14771 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14772 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14773 tmp_to_remove_breakpoint_ops,
14774 record_full_beneath_to_insert_breakpoint_ops, and
14775 record_full_beneath_to_remove_breakpoint_ops.
14776 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14777 (m32r_remove_breakpoint): Add target_ops parameter.
14778 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14779 Add target_ops parameter.
14780 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14781 Add target_ops parameter.
14786 * record-btrace.c: Include frame-unwind.h.
14787 (record_btrace_frame_unwind_stop_reason)
14788 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14789 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14791 (init_record_btrace_ops): Install it.
14795 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14800 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14805 * frame-unwind.c: Include target.h.
14806 (frame_unwind_try_unwinder): New function with code from ...
14807 (frame_unwind_find_by_frame): ... here. New variable
14808 unwinder_from_target, call also target_get_unwinder)
14809 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14810 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14811 * target.h (struct target_ops): New fields to_get_unwinder and
14812 to_get_tailcall_unwinder.
14813 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14817 * record-btrace.c (record_btrace_fetch_registers)
14818 (record_btrace_store_registers)
14819 (record_btrace_to_prepare_to_store): New.
14820 (init_record_btrace_ops): Add the above.
14824 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14825 * target.h (struct target_ops) <to_prepare_to_store>: Add
14827 (target_prepare_to_store): Add argument.
14828 * target.c (debug_to_prepare_to_store): Add argument.
14829 (update_current_target): Update.
14830 * remote.c (remote_prepare_to_store): Add 'self' argument.
14831 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14832 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14833 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14834 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14836 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14837 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14838 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14839 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14840 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14844 * btrace.h (replay) <replay>: New.
14845 (btrace_is_replaying): New.
14846 * btrace.c (btrace_clear): Free replay iterator.
14847 (btrace_is_replaying): New.
14848 * record-btrace.c (record_btrace_is_replaying): New.
14849 (record_btrace_info): Print insn number if replaying.
14850 (record_btrace_insn_history): Start at replay position.
14851 (record_btrace_call_history): Start at replay position.
14852 (init_record_btrace_ops): Init to_record_is_replaying.
14856 * record-btrace.c (record_btrace_insn_history_range): Include
14858 (record_btrace_insn_history_from): Adjust range.
14859 (record_btrace_call_history_range): Include
14861 (record_btrace_call_history_from): Adjust range.
14862 * NEWS: Announce changes.
14866 * record.h (enum record_print_flag)
14867 <record_print_indent_calls>: New.
14868 * record.c (get_call_history_modifiers): Recognize /c modifier.
14869 (_initialize_record): Document /c modifier.
14870 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14871 Reorder fields. Optionally indent the function name. Update
14873 * NEWS: Announce changes.
14877 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14881 * btrace.c (ftrace_new_function): Start counting at one.
14882 * record-btrace.c (record_btrace_info): Adjust number of calls
14884 * NEWS: Announce it.
14888 * record-btrace.c (btrace_call_history_insn_range): Print
14889 insn range as [begin, end].
14893 * btrace.h (struct btrace_func_link): New.
14894 (enum btrace_function_flag): New.
14895 (struct btrace_inst): Rename to ...
14896 (struct btrace_insn): ...this. Update all users.
14897 (struct btrace_func) <ibegin, iend>: Remove.
14898 (struct btrace_func_link): New.
14899 (struct btrace_func): Rename to ...
14900 (struct btrace_function): ...this. Update all users.
14901 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14902 (number, level, flags>: New.
14903 (struct btrace_insn_iterator): Rename to ...
14904 (struct btrace_insn_history): ...this.
14906 (struct btrace_insn_iterator, btrace_call_iterator): New.
14907 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14908 (struct btrace_target_info) <begin, end, level>
14909 <insn_history, call_history>: New.
14910 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14911 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14912 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14913 (btrace_call_number, btrace_call_begin, btrace_call_end)
14914 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14915 (btrace_find_function_by_number, btrace_set_insn_history)
14916 (btrace_set_call_history): New.
14917 * btrace.c (btrace_init_insn_iterator)
14918 (btrace_init_func_iterator, compute_itrace): Remove.
14919 (ftrace_print_function_name, ftrace_print_filename)
14920 (ftrace_skip_file): Change
14921 parameter to const.
14922 (ftrace_init_func): Remove.
14923 (ftrace_debug): Use new btrace_function fields.
14924 (ftrace_function_switched): Also consider gaining and
14925 losing symbol information).
14926 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14927 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14928 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14930 (ftrace_new_function): Move. Remove debug print.
14931 (ftrace_update_lines, ftrace_update_insns): New.
14932 (ftrace_update_function): Check for call, ret, and jump.
14933 (compute_ftrace): Renamed to ...
14934 (btrace_compute_ftrace): ...this. Rewritten to compute call
14936 (btrace_fetch, btrace_clear): Updated.
14937 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14938 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14939 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14940 (btrace_call_number, btrace_call_begin, btrace_call_end)
14941 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14942 (btrace_find_function_by_number, btrace_set_insn_history)
14943 (btrace_set_call_history): New.
14944 * record-btrace.c (require_btrace): Use new btrace thread
14946 (record_btrace_info, btrace_insn_history)
14947 (record_btrace_insn_history, record_btrace_insn_history_range):
14948 Use new btrace thread info fields and new iterator.
14949 (btrace_func_history_src_line): Rename to ...
14950 (btrace_call_history_src_line): ...this. Use new btrace
14951 thread info fields.
14952 (btrace_func_history): Rename to ...
14953 (btrace_call_history): ...this. Use new btrace thread info
14954 fields and new iterator.
14955 (record_btrace_call_history, record_btrace_call_history_range):
14956 Use new btrace thread info fields and new iterator.
14960 * frame.h (frame_id_build_unavailable_stack_special): New.
14961 * frame.c (frame_id_build_unavailable_stack_special): New.
14965 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14966 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14967 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14969 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14970 (i386_insn_is_jump, i386_jmp_p): New.
14971 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14972 insn_is_jump to gdbarch.
14973 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14974 * gdbarch.h: Regenerated.
14975 * gdbarch.c: Regenerated.
14976 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14977 (default_insn_is_jump): New.
14978 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14979 (default_insn_is_jump): New.
14983 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14985 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14986 (btrace_read_type) <btrace_read_new>: Change to ...
14987 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14991 * common/linux-btrace.c (linux_read_btrace): Free trace from
14992 previous iteration.
14996 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
15001 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
15002 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
15003 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
15004 (set_objfile_main_name): New function.
15005 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
15006 language_of_main>: New fields.
15007 (set_objfile_main_name): Declare.
15008 * symtab.c (find_main_name): Loop over objfiles to find the main
15010 (set_main_name): Now static.
15011 (get_main_info): Add comment.
15012 * symtab.h (set_main_name): Don't declare.
15016 * symtab.c (main_progspace_key): New global.
15017 (struct main_info): New.
15018 (name_of_main, language_of_main): Remove.
15019 (get_main_info, main_info_cleanup): New function.
15020 (set_main_name, main_name, main_language): Use get_main_info.
15021 (_initialize_symtab): Initialize main_progspace_key.
15025 * dbxread.c (process_one_symbol): Update.
15026 * dwarf2read.c (read_partial_die): Update.
15027 * symfile.c (set_initial_language): Call main_language.
15028 * symtab.c (language_of_main): Now static.
15029 (set_main_name): Add 'lang' parameter.
15030 (find_main_name): Update.
15031 (main_language): New function.
15032 (symtab_observer_executable_changed): Update.
15033 * symtab.h (set_main_name): Update.
15034 (language_of_main): Remove.
15035 (main_language): Declare.
15039 * symfile.c (init_entry_point_info): Use new "initialized" field.
15041 * objfiles.h (struct entry_point) <initialized>: New field.
15042 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15043 (struct objfile) <ei>: ...here. Remove.
15044 * objfiles.c (entry_point_address_query): Update.
15048 * objfiles.c (entry_point_address_query): Relocate entry point
15050 (objfile_relocate1): Do not relocate entry point address.
15051 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15052 <the_bfd_section_index>: New field.
15053 * symfile.c (init_entry_point_info): Find the entry point's
15058 * solib-frv.c (enable_break): Use entry_point_address_query.
15062 * NEWS: Add note on improved process record-replay on
15063 arm*-linux* targets.
15067 * arm-tdep.c (enum arm_record_result): New enum.
15068 (arm_record_unsupported_insn): New function.
15069 (arm_record_coproc_data_proc): Removed.
15070 (thumb2_record_ld_st_multiple): New function.
15071 (thumb2_record_ld_st_dual_ex_tbb): New function.
15072 (thumb2_record_data_proc_sreg_mimm): New function.
15073 (thumb2_record_ps_dest_generic): New function.
15074 (thumb2_record_branch_misc_cntrl): New function.
15075 (thumb2_record_str_single_data): New function.
15076 (thumb2_record_ld_mem_hints): New function.
15077 (thumb2_record_ld_word): New function.
15078 (thumb2_record_lmul_lmla_div): New function.
15079 (thumb2_record_decode_insn_handler): New function.
15080 (decode_insn): Add thumb32 instruction handlers.
15084 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15085 (struct arm_linux_record_tdep): Declare.
15086 (arm_canonicalize_syscall): New function.
15087 (arm_all_but_pc_registers_record): New function.
15088 (arm_linux_syscall_record): New function.
15089 (arm_linux_init_abi): Add syscall recording constructs.
15090 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15091 decoding. (arm_record_coproc_data_proc): Update arm syscall
15093 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15094 <arm_syscall_record>: New field.
15095 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15100 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15101 register for push instruction recording.
15105 * arm-tdep.c (thumb_record_misc): Update to correct logical
15106 error while recording ldm, ldmia and pop instructions.
15110 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15114 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15115 (go32_resume, go32_fetch_registers, store_register)
15116 (go32_store_registers, go32_prepare_to_store)
15117 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15118 (go32_create_inferior, go32_can_run, go32_terminal_init)
15119 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15124 * target.h (async_callback_ftype): New typedef.
15125 (struct target_ops) <to_async>: Use it.
15129 * python/py-value.c (get_field_type): Remove unnecessary curly
15130 braces for single-statement if block.
15134 * python/py-type.c (convert_field): Add missing empty line
15135 after declarations.
15139 * symfile.h (expand_symtabs_matching): Renamed from
15140 expand_partial_symbol_names. Update prototype.
15141 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15142 * symfile.c (expand_symtabs_matching): Renamed from
15143 expand_partial_symbol_names. New args file_matcher, kind.
15144 Rename arg fun to symbol_matcher.
15145 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15146 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15147 ada_expand_partial_symbol_name.
15148 (ada_make_symbol_completion_list): Update to call
15149 expand_symtabs_matching.
15150 (ada_add_global_exceptions): Call expand_symtabs_matching.
15151 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15152 call map_symbol_filenames.
15153 * symtab.c (sources_info): Update to call map_symbol_filenames.
15154 (search_symbols): Call expand_symtabs_matching.
15155 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15156 (default_make_symbol_completion_list_break_on): Update to call
15157 expand_symtabs_matching.
15158 (make_source_files_completion_list): Update to call
15159 map_symbol_filenames.
15163 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15164 (expand_symtabs_symbol_matcher_ftype): New typedef.
15165 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15166 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15167 * symfile.c (expand_partial_symbol_names): Update to use
15168 expand_symtabs_symbol_matcher_ftype.
15169 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15170 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15171 Arg name_matcher renamed to symbol_matcher.
15172 * psymtab.c (recursively_search_psymtabs): Update to use
15173 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15175 (expand_symtabs_matching_via_partial): Update to use
15176 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15177 Arg name_matcher renamed to symbol_matcher.
15181 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15182 (map_partial_symbol_filenames): Ditto.
15183 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15184 (map_partial_symbol_filenames): Ditto.
15185 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15186 (map_partial_symbol_filenames): Ditto.
15187 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15188 (map_partial_symbol_filenames): Ditto.
15189 * symtab.c: Delete #include "psymtab.h".
15194 * infrun.c (use_displaced_stepping): Use find_record_target
15195 instead of RECORD_IS_USED.
15196 (adjust_pc_after_break): Use record_full_is_used instead of
15198 * record-btrace.c (record_btrace_open): Call record_preopen
15199 instead of checking RECORD_IS_USED.
15200 * record-full.c (record_full_shortname)
15201 (record_full_core_shortname): New globals.
15202 (record_full_is_used): New function.
15203 (find_full_open): Call record_preopen instead of checking
15205 (init_record_full_ops): Set the target's shortname to
15206 record_full_shortname.
15207 (init_record_full_core_ops): Set the target's shortname to
15208 record_full_core_shortname.
15209 * record-full.h (record_full_is_used): Declare.
15210 * record.c (find_record_target): Make extern.
15211 (record_preopen): New function.
15212 * record.h (RECORD_IS_USED): Delete macro.
15213 (find_record_target, record_preopen): Declare functions.
15217 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15218 'len''s type to ULONGEST.
15219 (core_xfer_shared_libraries_aix): Likewise.
15220 * gdbarch.c, gdbarch.h: Regenerated.
15221 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15222 Change type of 'len' to ULONGEST.
15223 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15224 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15228 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15229 type of 'len' to ULONGEST.
15230 (linux_xfer_osdata_processgroups): Likewise.
15231 (linux_xfer_osdata_threads): Likewise.
15232 (linux_xfer_osdata_fds): Likewise.
15233 (linux_xfer_osdata_isockets): Likewise.
15234 (linux_xfer_osdata_shm): Likewise.
15235 (linux_xfer_osdata_sem): Likewise.
15236 (linux_xfer_osdata_msg): Likewise.
15237 (linux_common_xfer_osdata): Likewise.
15238 (struct osdata_type) <getter>: Likewise.
15239 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15244 * target.h (target_xfer_partial_ftype): Update.
15245 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15247 * aix-thread.c (aix_thread_xfer_partial): Change type of
15248 argument 'len' to ULONGEST.
15249 * auxv.c (procfs_xfer_auxv): Likewise.
15250 (ld_so_xfer_auxv): Likewise.
15251 (memory_xfer_auxv): Likewise.
15252 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15253 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15254 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15255 * corelow.c (core_xfer_partial): Likewise.
15256 * ctf.c (ctf_xfer_partial): Likewise.
15257 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15259 (darwin_read_dyld_info): Likewise.
15260 (darwin_xfer_partial): Likewise.
15261 * exec.c (section_table_xfer_memory_partial): Likewise.
15262 (exec_xfer_partial): Likewise.
15263 * exec.h (section_table_xfer_memory_partial): Update
15265 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15266 instead of plongest.
15267 (gnu_xfer_partial): Likewise.
15268 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15269 (ia64_hpux_xfer_solib_got): Likewise.
15270 (ia64_hpux_xfer_partial): Likewise.
15271 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15272 * inf-ptrace.c (inf_ptrace_xfer_partial):
15273 * inf-ttrace.c (inf_ttrace_xfer_partial):
15274 * linux-nat.c (linux_xfer_siginfo): Likewise.
15275 (linux_nat_xfer_partial): Likewise.
15276 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15277 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15278 * monitor.c (monitor_xfer_memory): Likewise.
15279 (monitor_xfer_partial): Likewise.
15280 * procfs.c (procfs_xfer_partial): Likewise.
15281 * record-full.c (record_full_xfer_partial): Likewise.
15282 (record_full_core_xfer_partial): Likewise.
15283 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15284 instead of plongest.
15285 (gdbsim_xfer_partial): Likewise.
15286 * remote.c (remote_xfer_partial): Likewise.
15287 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15288 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15290 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15291 (rs6000_xfer_shared_libraries): Likewise.
15292 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15293 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15294 (sparc_xfer_partial): Likewise.
15295 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15296 (spu_xfer_partial): Likewise.
15297 * spu-multiarch.c (spu_xfer_partial): Likewise.
15298 * target.c (target_read_live_memory): Likewise.
15299 (memory_xfer_live_readonly_partial): Likewise.
15300 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15301 (target_xfer_partial, default_xfer_partial): Likewise.
15302 (current_xfer_partial): Likewise.
15303 * tracepoint.c (tfile_xfer_partial): Likewise.
15304 * windows-nat.c (windows_xfer_memory): Likewise. Call
15305 pulongest instead of plongest.
15306 (windows_xfer_partial): Likewise.
15307 (windows_xfer_shared_libraries): Likewise.
15311 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15312 target_xfer_partial_ftype.
15318 * valops.c (value_struct_elt_bitpos): New function
15319 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15320 object to 'None' if the field name is an empty string ("").
15321 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15322 attribute to look for a field when 'name' is 'None'.
15323 (get_field_type): New function
15328 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15329 (try_open_dwop_file): Ditto.
15330 * gdb_bfd.c: #include "vec.h".
15331 (bfdp): New typedef.
15332 (struct gdb_bfd_data): New member included_bfds.
15333 (gdb_bfd_unref): Unref all included bfds.
15334 (gdb_bfd_record_inclusion): New function.
15335 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15339 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15343 * defs.h (use_windows): Remove.
15344 * gdb.c (main): Update.
15345 * main.c (captured_main, gdb_main): Update.
15346 * main.h (struct captured_main_args) <use_windows>: Remove.
15347 * top.c (use_windows): Remove.
15351 * defs.h (deprecated_flush_hook): Remove.
15356 * linux-thread-db.c (try_thread_db_load): Add parameter
15357 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15358 (try_thread_db_load_from_pdir_1): Move it there from here.
15359 (try_thread_db_load_from_sdir): Update caller.
15360 (try_thread_db_load_from_dir): Move it there from here.
15364 * regformats/regdat.sh: Always rewrite the register file.
15368 * Makefile.in (CHECK_HEADERS): New variable.
15369 (check-headers:): New rule.
15373 * cli/cli-setshow.c (do_set_command): Update.
15374 * defs.h (deprecated_set_hook): Remove.
15375 * top.c (deprecated_set_hook): Remove.
15379 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15380 the tracepoint if the PC is a pseudo-register.
15384 * defs.h (XCALLOC): Remove.
15385 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15386 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15387 * dwarf2loc.c (allocate_piece_closure): Likewise.
15388 * elfread.c (elf_symfile_segments): Likewise.
15389 (elf_symfile_segments): Likewise.
15390 * gdbtypes.c (copy_type_recursive): Likewise.
15391 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15392 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15393 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15395 * mt-tdep.c (mt_gdbarch_init): Likewise.
15396 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15398 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15399 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15400 * registry.c (registry_alloc_data): Likewise.
15401 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15402 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15403 * serial.c (serial_fdopen_ops): Likewise.
15404 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15406 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15407 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15412 * defs.h (XMALLOC): Remove.
15413 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15414 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15415 * cli-out.c (struct ui_out *): Likewise.
15416 * cli/cli-dump.c (add_dump_command): Likewise.
15417 (add_dump_command): Likewise.
15418 * complaints.c (get_complaints): Likewise.
15419 (find_complaint): Likewise.
15420 * dwarf2-frame.c (execute_cfa_program): Likewise.
15421 * dwarf2read.c (abbrev_table_read_table): Likewise.
15422 * gdbarch.sh: Likewise.
15423 * gdbarch.c: Rebuild.
15424 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15425 * interps.c (interp_new): Likewise.
15426 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15427 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15428 * mi/mi-console.c (mi_console_file_new): Likewise.
15429 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15430 * mi/mi-out.c (mi_out_new): Likewise.
15431 * mi/mi-parse.c (mi_parse): Likewise.
15432 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15433 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15434 * observer.c (xalloc_observer_list_node): Likewise.
15435 * regcache.c (regcache_xmalloc_1): Likewise.
15436 * reggroups.c (reggroup_new): Likewise.
15437 (_initialize_reggroup): Likewise.
15438 * registry.c (register_data_with_cleanup): Likewise.
15439 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15440 * ser-base.c (serial_ttystate): Likewise.
15441 * ser-mingw.c (make_pipe_state): Likewise.
15442 * ser-pipe.c (pipe_open): Likewise.
15443 * serial.c (serial_open): Likewise.
15444 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15445 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15446 (tui_alloc_win_info): Likewise.
15447 (tui_add_content_elements): Likewise.
15448 * tui/tui-file.c (tui_file_new): Likewise.
15449 * tui/tui-out.c (tui_out_new): Likewise.
15450 * ui-file.c (mem_file_new): Likewise.
15451 * ui-out.c (push_level): Likewise.
15452 (make_cleanup_ui_out_end): Likewise.
15453 (append_header_to_list): Likewise.
15454 (ui_out_new): Likewise.
15455 * user-regs.c (user_reg_add_builtin): Likewise.
15459 * defs.h (XZALLOC): Remove.
15460 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15461 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15462 (get_ada_tasks_inferior_data): Likewise.
15463 * auto-load.c (get_auto_load_pspace_data): Likewise.
15464 * auxv.c (get_auxv_inferior_data): Likewise.
15465 * bfd-target.c (target_bfd_reopen): Likewise.
15466 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15467 (deprecated_insert_raw_breakpoint): Likewise.
15468 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15469 * corelow.c (core_open): Likewise.
15470 * darwin-nat.c (darwin_check_new_threads): Likewise.
15471 (darwin_attach_pid): Likewise.
15472 * dummy-frame.c (dummy_frame_push): Likewise.
15473 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15474 * dwarf2loc.c (allocate_piece_closure): Likewise.
15475 * elfread.c (elf_symfile_segments): Likewise.
15476 * eval.c (ptrmath_type_p): Likewise.
15477 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15478 * gdbtypes.c (alloc_type_arch): Likewise.
15479 (alloc_type_instance): Likewise.
15480 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15481 * inf-child.c (inf_child_can_use_agent): Likewise.
15482 * inflow.c (get_inflow_inferior_data): Likewise.
15483 * infrun.c (save_infcall_suspend_state): Likewise.
15484 * jit.c (jit_reader_load): Likewise.
15485 (get_jit_objfile_data): Likewise.
15486 (get_jit_program_space_data): Likewise.
15487 (jit_object_open_impl): Likewise.
15488 (jit_symtab_open_impl): Likewise.
15489 (jit_block_open_impl): Likewise.
15490 (jit_frame_sniffer): Likewise.
15491 * linux-fork.c (add_fork): Likewise.
15492 * maint.c (make_command_stats_cleanup): Likewise.
15493 * objfiles.c (get_objfile_pspace_data): Likewise.
15494 * opencl-lang.c (struct lval_closure): Likewise.
15495 * osdata.c (osdata_start_osdata): Likewise.
15496 * progspace.c (new_address_space): Likewise.
15497 (add_program_space): Likewise.
15498 * remote-sim.c (get_sim_inferior_data): Likewise.
15499 * sh-tdep.c (sh_gdbarch_init): Likewise.
15500 * skip.c (Ignore): Likewise.
15501 (skip_delete_command): Likewise.
15502 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15503 (library_list_start_library): Likewise.
15504 (solib_aix_current_sos): Likewise.
15505 * solib-darwin.c (get_darwin_info): Likewise.
15506 (darwin_current_sos): Likewise.
15507 * solib-dsbt.c (get_dsbt_info): Likewise.
15508 * solib-ia64-hpux.c (new_so_list): Likewise.
15509 (ia64_hpux_get_solib_linkage_addr): Likewise.
15510 * solib-spu.c (append_ocl_sos): Likewise.
15511 (spu_current_sos): Likewise.
15512 * solib-svr4.c (get_svr4_info): Likewise.
15513 (svr4_keep_data_in_core): Likewise.
15514 (library_list_start_library): Likewise.
15515 (svr4_default_sos): Likewise.
15516 (svr4_read_so_list): Likewise.
15517 * solib-target.c (library_list_start_library): Likewise.
15518 (solib_target_current_sos): Likewise.
15519 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15520 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15521 * symfile.c (default_symfile_segments): Likewise.
15522 * target-descriptions.c (tdesc_data_init): Likewise.
15523 (tdesc_create_reg): Likewise.
15524 (struct tdesc_type *): Likewise.
15525 (tdesc_create_vector): Likewise.
15526 (tdesc_set_struct_size): Likewise.
15527 (struct tdesc_type *): Likewise.
15528 (tdesc_free_feature): Likewise.
15529 (tdesc_create_feature): Likewise.
15530 * windows-nat.c (windows_add_thread): Likewise.
15531 (windows_make_so): Likewise.
15532 * xml-support.c (gdb_xml_body_text): Likewise.
15533 (gdb_xml_create_parser_and_cleanup): Likewise.
15534 (xml_process_xincludes): Likewise.
15535 * xml-syscall.c (allocate_syscalls_info): Likewise.
15536 (syscall_create_syscall_desc): Likewise.
15540 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15541 function, with code from i386_stap_parse_special_token.
15542 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15543 (i386_stap_parse_special_token): Move code to the two functions
15544 above; simplify it.
15550 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15551 bp_err_string. Don't mark the location shlib_disabled if the
15552 error thrown wasn't a generic or memory error. Catch errors
15553 thrown while inserting breakpoints in overlayed code. Output
15554 error message of software breakpoints.
15555 * remote.c (remote_insert_breakpoint): If this breakpoint has
15556 target-side commands but this stub doesn't support Z0 packets,
15557 throw NOT_SUPPORTED_ERROR error.
15558 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15559 * target.h (target_insert_breakpoint): Extend comment.
15560 (target_insert_hw_breakpoint): Add comment.
15564 * remote.c (remote_add_thread): Add threads silently if starting
15566 (remote_notice_new_inferior): If in all-stop, and starting up,
15567 don't call notice_new_inferior.
15568 (get_current_thread): New function, factored out from ...
15569 (add_current_inferior_and_thread): ... this. Adjust.
15570 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15571 found any thread, then select the remote's current thread as GDB's
15572 current thread too.
15576 * NEWS: Create a new section for the next release branch.
15577 Rename the section of the current branch, now that it has
15582 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15583 * version.in: Bump version to 7.7.50.DATE-cvs.
15587 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15588 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15589 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15593 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15594 return value of bfd_get_filename to symbol_file_add_from_bfd.
15599 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15600 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15601 to prim_record_mininal_symbol_and_info.
15602 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15603 in call to prim_record_minimal_symbol_and_info.
15604 (read_pe_exported_syms): Set index field of section_data.
15608 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15609 * features/aarch64.c: Regenerate.
15613 * target.c (return_null): Define.
15614 (update_current_target): Use it instead of return_zero for
15615 functions that return a pointer.
15619 * source.c (add_path): Fix check for duplicated paths in the previously
15624 * ada-lang.c: Remove duplicated include statements.
15625 * alphabsd-nat.c: Ditto.
15626 * amd64-darwin-tdep.c: Ditto.
15627 * amd64fbsd-nat.c: Ditto.
15628 * auto-load.c: Ditto.
15630 * breakpoint.c: Ditto.
15631 * dbxread.c: Ditto.
15632 * fork-child.c: Ditto.
15633 * gdb_usleep.c: Ditto.
15634 * i386-darwin-tdep.c: Ditto.
15635 * i386fbsd-nat.c: Ditto.
15637 * inferior.c: Ditto.
15638 * jv-lang.c: Ditto.
15639 * linux-nat.c: Ditto.
15640 * linux-tdep.c: Ditto.
15641 * m68kbsd-nat.c: Ditto.
15642 * m68klinux-nat.c: Ditto.
15643 * microblaze-tdep.c: Ditto.
15644 * mips-linux-tdep.c: Ditto.
15645 * mn10300-tdep.c: Ditto.
15646 * nto-tdep.c: Ditto.
15647 * opencl-lang.c: Ditto.
15649 * printcmd.c: Ditto.
15650 * regcache.c: Ditto.
15651 * remote-m32r-sdi.c: Ditto.
15653 * symfile.c: Ditto.
15655 * tilegx-linux-nat.c: Ditto.
15656 * tilegx-tdep.c: Ditto.
15657 * tracepoint.c: Ditto.
15659 * vaxbsd-nat.c: Ditto.
15660 * windows-nat.c: Ditto.
15661 * xtensa-tdep.c: Ditto.
15665 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15670 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15671 (pdc_write_regs): Likewise.
15672 (fetch_regs_kernel_thread): Likewise.
15673 (store_regs_kernel_thread): Likewise.
15677 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15678 tagged type objects to their actual type.
15682 * ada-valprint.c (print_field_values): Add "language" parameter.
15683 Update calls to print_field_values and print_variant_part.
15684 Pass new parameter "language" in call to val_print instead
15685 of "current_language". Replace call to ada_val_print by call
15687 (print_variant_part): Add "language" parameter.
15688 (ada_val_print_struct_union): Update call to print_field_values.
15692 * ada-valprint.c (ui_memcpy): Delete.
15693 (ada_print_floating): Update documentation. Add empty line
15694 between between function documentation and implementation.
15695 Delete variable "buffer". Use ui_file_xstrdup in place of
15696 ui_file_put. Minor adjustments following this change.
15700 * ada-valprint.c (ada_val_print_string): New function,
15701 extracted from ada_val_print_array.
15702 (ada_val_print_array): Replace extracted code by call
15703 to ada_val_print_string followed by a return. Move
15704 "else" branch to the function's top block.
15708 * ada-valprint.c (ada_val_print_array): Move implementation
15709 down. Rename parameter "offset" and "val" into "offset_aligned"
15710 and "original_value" respectively. Add parameter "offset".
15714 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15715 re-organizing the code. Change the "???" message printed
15716 when target type is a TYPE_CODE_UNDEF into
15717 "<ref to undefined type>".
15721 * ada-valprint.c (print_record): Delete, implementation inlined...
15722 (ada_val_print_struct_union): ... here. Remove call to
15723 ada_check_typedef in inlined implementation.
15727 * ada-valprint.c (ada_val_print_gnat_array): New function,
15728 extracted from ada_val_print_1;
15729 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15730 (ada_val_print_flt, ada_val_print_struct_union)
15731 (ada_val_print_ref): Likewise.
15732 (ada_val_print_1): Delete variables i and elttype.
15733 Replace extracted-out code by call to corresponding
15738 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15742 * ada-valprint.c (ada_val_print_1): Replace calls to
15743 ada_val_print_1 by calls to val_print.
15747 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15748 Update calls to self accordingly. Replace calls to c_val_print
15749 by calls to val_print.
15753 * ada-valprint.c (print_record): Delete declaration.
15754 (adjust_type_signedness, ada_val_print_1): Likewise.
15755 (ada_val_print): Move function implementation down.
15756 (print_variant_part, print_field_values, print_record):
15757 Move function implementation up.
15761 * python/py-type.c (typy_get_name): New function.
15762 (type_object_getset): Add entry for attribute "name".
15763 * NEWS: Add entry mentioning this new attribute.
15767 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15772 * gnu-nat.c (info_port_rights): Add qualifier const to
15777 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15781 * gnu-nat.c (make_inf) Update declaration.
15782 (make_inf): Make it static.
15783 (inf_set_traced): Likewise.
15784 (inf_port_to_thread, inf_task_died_status): Likewise.
15788 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15792 * gnu-nat.c (_initialize_gnu_nat): Declare.
15796 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15798 (struct gdbarch_info) <byte_order>: Change type to
15800 <byte_order_for_code>: Likewise.
15801 * gdbarch.c, gdbarch.h: Regenerated.
15805 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15809 * doublest.c (convert_doublest_to_floatformat): Use const, not
15811 * somread.c (som_symtab_read): Likewise.
15815 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15816 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15817 (gdb_bfd_fopen): Ditto.
15818 (gdb_bfd_openr): Ditto.
15819 (gdb_bfd_openw): Ditto.
15820 (gdb_bfd_openr_iovec): Ditto.
15821 (gdb_bfd_fdopenr): Ditto.
15822 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15823 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15825 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15827 * symfile-mem.c (symbol_file_add_from_memory): Removed
15828 gdb_bfd_stash_filename.
15832 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15837 Update year range in copyright notice of all files.
15841 * top.c (print_gdb_version): Set copyright year to 2014.
15845 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15847 For older changes see ChangeLog-2013.
15853 version-control: never