3 * block.c (block_lookup_symbol_primary): New function.
4 * block.h (block_lookup_symbol_primary): New declaration.
5 * symtab.c (lookup_symbol_in_objfile_symtabs): Assert BLOCK_INDEX.
6 Call block_lookup_symbol_primary.
10 * tramp-frame.h (tramp_frame): Add `validate' member.
11 * tramp-frame.c (tramp_frame_start): Validate trampoline before
13 * mips-linux-tdep.c (MICROMIPS_INST_LI_V0): New macro.
14 (MICROMIPS_INST_POOL32A, MICROMIPS_INST_SYSCALL): Likewise.
15 (mips_linux_o32_sigframe): Initialize `validate' member.
16 (mips_linux_o32_rt_sigframe): Likewise.
17 (mips_linux_n32_rt_sigframe): Likewise.
18 (mips_linux_n64_rt_sigframe): Likewise.
19 (micromips_linux_o32_sigframe): New variable.
20 (micromips_linux_o32_rt_sigframe): Likewise.
21 (micromips_linux_n32_rt_sigframe): Likewise.
22 (micromips_linux_n64_rt_sigframe): Likewise.
23 (mips_linux_o32_sigframe_init): Handle microMIPS trampolines.
24 (mips_linux_n32n64_sigframe_init): Likewise.
25 (mips_linux_sigframe_validate): New function.
26 (micromips_linux_sigframe_validate): Likewise.
27 (mips_linux_init_abi): Install microMIPS trampoline unwinders.
31 * config/sparc/sol2.mh (NATDEPFILES): Remove core-regset.o.
32 * sparc-sol2-tdep.c: Include "regset.h".
33 (sparc32_sol2_supply_core_gregset): New function.
34 (sparc32_sol2_collect_core_gregset): Likewise.
35 (sparc32_sol2_supply_core_fpregset): Likewise.
36 (sparc32_sol2_collect_core_fpregset): Likewise.
37 (sparc32_sol2_gregset, sparc32_sol2_fpregset): New variables.
38 (sparc32_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
39 tdep->fpregset/sizeof_fpregset.
40 * sparc64-sol2-tdep.c: Include "regset.h".
41 (sparc64_sol2_supply_core_gregset): New function.
42 (sparc64_sol2_collect_core_gregset): Likewise.
43 (sparc64_sol2_supply_core_fpregset): Likewise.
44 (sparc64_sol2_collect_core_fpregset): Likewise.
45 (sparc64_sol2_gregset, sparc64_sol2_fpregset): New variables.
46 (sparc64_sol2_init_abi): Set tdep->gregset/sizeof_gregset and
47 tdep->fpregset/sizeof_fpregset.
51 * common/cleanups.c (make_cleanup_dtor): Use typedef for dtor
56 * symtab.c (symbol_init_cplus_specific): Delete.
57 (symbol_set_demangled_name): Remove special c++ support.
58 (symbol_get_demangled_name, symbol_set_language): Ditto.
59 * symtab.h (struct cplus_specific): Delete.
60 (struct general_symbol_info) <language_specific>: Remove
66 * linespec.c (iterate_name_matcher): Fix arguments to symbol_name_cmp.
71 * dwarf2read.c (find_slot_in_mapped_hash): Use cp_remove_params
76 * dwarf2read.c (peek_die_abbrev): Improve error message text.
80 * valops.c (do_search_struct_field): Remove remnant of Chill support.
81 Ref: commit 4c2260aa5c261f7bfb26dcf3aa7c67876720b17e
85 * common/cleanups.c (make_cleanup_dtor): Fix comment typo.
89 * NEWS: Mention new Python events.
90 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-infevents.o.
91 (SUBDIR_PYTHON_SRCS): Add py-infevents.c.
92 (py-infevents.o): New rule.
93 * doc/observer.texi (inferior_call_pre, inferior_call_post)
94 (memory_changed, register_changed): New observers.
95 * infcall.c (call_function_by_hand): Notify observer before and
97 * python/py-event.h (inferior_call_kind): New enum.
98 (emit_inferior_call_event): New prototype.
99 (emit_register_changed_event): New prototype.
100 (emit_memory_changed_event): New prototype.
101 * python/py-events.h (events_object): New registries
102 inferior_call, memory_changed and register_changed.
103 * python/py-evts.c (gdbpy_initialize_py_events): Add the
104 inferior_call, memory_changed and register_changed registries.
105 * python/py-infevents.c: New.
106 * python/py-inferior.c (python_on_inferior_call_pre)
107 (python_on_inferior_call_post, python_on_register_change)
108 (python_on_memory_change): New functions.
109 (gdbpy_initialize_inferior): Attach python handler to new
111 * python/py-infthread.c(gdbpy_create_ptid_object): New.
112 (thpy_get_ptid) Use gdbpy_create_ptid_object.
113 * python/python-internal.h:
114 (gdbpy_create_ptid_object)
115 (gdbpy_initialize_inferior_call_pre_event)
116 (gdbpy_initialize_inferior_call_post_event)
117 (gdbpy_initialize_register_changed_event)
118 (gdbpy_initialize_memory_changed_event): New prototypes.
119 * python/python.c (_initialize_python): Initialize new events.
120 * valops.c (value_assign): Notify register_changed observer.
124 * python/py-infthread.c: Whitespace fixes.
128 * features/Makefile (s390-te-linux64-expedite): Replace
129 non-existant r14 and r15 by r14l and r15l, respectively.
130 * regformats/s390-te-linux64.dat: Regenerate.
134 * objfiles.c (allocate_objfile): Remove duplicate comment.
138 * config/i386/i386gnu.mh (NATDEPFILES): Remove core-regset.o.
139 * i386gnu-nat.c: Do not include <sys/procfs.h> or "gregset.h".
140 (CREG_OFFSET, creg_offset, CREG_ADDR): Remove.
141 (supply_gregset, supply_fpregset): Remove.
142 * i386gnu-tdep.c (i386gnu_gregset_reg_offset): New variable.
143 (i386gnu_init_abi): Set tdep->gregset_reg_offset, gregset_num_regs,
148 Add add-auto-load-scripts-directory.
149 * NEWS (Changes since GDB 7.8): Add add-auto-load-scripts-directory.
150 * auto-load.c (add_auto_load_dir): New function.
151 (_initialize_auto_load): Install it.
156 * frame.c (frame_id_eq): Fix the check for FID_STACK_INVALID.
160 * eval.c (evaluate_subexp): Check that the thread stack temporaries
161 are not already enabled before enabling them.
165 * arm-tdep.c (arm_analyze_prologue): Move local variables
166 'framereg' and 'framesize' to inner block. Move code to
171 * eval.c: Include gdbthread.h.
172 (evaluate_subexp): Enable thread stack temporaries before
173 evaluating a complete expression and clean them up after the
174 evaluation is complete.
175 * gdbthread.h: Include common/vec.h.
176 (value_ptr): New typedef.
177 (VEC (value_ptr)): New vector type.
178 (value_vec): New typedef.
179 (struct thread_info): Add new fields stack_temporaries_enabled
180 and stack_temporaries.
181 (enable_thread_stack_temporaries)
182 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
183 (get_last_thread_stack_temporary)
184 (value_in_thread_stack_temporaries): Declare.
185 * gdbtypes.c (class_or_union_p): New function.
186 * gdbtypes.h (class_or_union_p): Declare.
187 * infcall.c (call_function_by_hand): Store return values of class
188 type as temporaries on stack.
189 * thread.c (enable_thread_stack_temporaries): New function.
190 (thread_stack_temporaries_enabled_p, push_thread_stack_temporary)
191 (get_last_thread_stack_temporary): Likewise.
192 (value_in_thread_stack_temporaries): Likewise.
193 * value.c (value_force_lval): New function.
194 * value.h (value_force_lval): Declare.
199 * amd64-tdep.c (amd64_dwarf_regmap array): Add missing MMX
204 * config/ia64/linux.mh (NATDEPFILES): Remove core-regset.o.
205 * config/sparc/linux.mh (NATDEPFILES): Likewise.
206 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
207 * m68klinux-nat.c (fetch_core_registers): Remove.
208 (linux_elf_core_fns): Remove.
209 (_initialize_m68k_linux_nat): Do not call deprecated_add_core_fns.
213 * utils.c (gdb_realpath): Rework comment about handling on
218 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
220 * gnulib/aclocal.m4: Re-generated.
221 * gnulib/config.in: Re-generated.
222 * gnulib/configure: Re-generated.
223 * gnulib/import/Makefile.am: Re-generated.
224 * gnulib/import/Makefile.in: Re-generated.
225 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
226 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
227 * import/basename-lgpl.c: New file.
228 * import/dirname-lgpl.c: New file.
229 * import/dirname.h: New file.
230 * import/m4/dirname.m4: New file.
231 * import/m4/malloc.m4: New file.
232 * import/m4/rename.m4: New file.
233 * import/m4/rmdir.m4: New file.
234 * import/m4/stdio_h.m4: New file.
235 * import/malloc.c: New file.
236 * import/rename.c: New file.
237 * import/rmdir.c: New file.
238 * import/same-inode.h: New file.
239 * import/stdio.c: New file.
240 * import/stdio.in.h: New file.
241 * import/stripslash.c: New file.
245 * configure.ac (AC_CHECK_FUNCS): Remove canonicalize_file_name
247 * config.in: Re-generated.
248 * configure: Re-generated.
249 * utils.c (gdb_realpath): Remove code calling realpath,
250 canonicalize_file_name and pathconf.
251 [!_WIN32]: Call canonicalize_file_name.
255 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
257 * aclocal.m4: Re-generated.
258 * config.in: Re-generated.
259 * configure: Re-generated.
260 * import/Makefile.am: Re-generated.
261 * import/Makefile.in: Re-generated.
262 * import/m4/gnulib-cache.m4: Re-generated.
263 * import/m4/gnulib-comp.m4: Re-generated.
264 * import/canonicalize-lgpl.c: New file.
265 * import/extra/snippet/_Noreturn.h: New file.
266 * import/m4/canonicalize.m4: New file.
267 * import/m4/double-slash-root.m4: New file.
268 * import/m4/eealloc.m4: New file.
269 * import/m4/malloca.m4: New file.
270 * import/m4/nocrash.m4: New file.
271 * import/m4/stdlib_h.m4: New file.
272 * import/malloca.c: New file.
273 * import/malloca.h: New file.
274 * import/malloca.valgrind: New file.
278 * configure.ac (AC_CHECK_FUNCS): Remove lstat.
279 * config.in, configure: Regenerate.
280 * symfile.c (find_separate_debug_file_by_debuglink): Remove
281 code checking HAVE_LSTAT is defined.
285 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
287 * gnulib/aclocal.m4: Re-generated.
288 * gnulib/config.in: Re-generated.
289 * gnulib/configure: Re-generated.
290 * gnulib/import/Makefile.am: Re-generated.
291 * gnulib/import/Makefile.in: Re-generated.
292 * gnulib/import/m4/gnulib-cache.m4: Re-generated.
293 * gnulib/import/m4/gnulib-comp.m4: Re-generated.
294 * gnulib/import/lstat.c: New file.
295 * gnulib/import/m4/lstat.m4: New file.
299 * configure.ac (AC_CHECK_FUNCS): Remove readlink.
300 * config.in, configure: Re-generate.
301 * inf-child.c (inf_child_fileio_readlink): Don't check
302 HAVE_READLINK is defined.
306 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add readlink.
307 * gnulib/aclocal.m4: Re-generated.
308 * gnulib/config.in: Likewise.
309 * gnulib/configure: Likewise.
310 * gnulib/import/Makefile.am: Likewise.
311 * gnulib/import/Makefile.in: Likewise.
312 * gnulib/import/m4/gnulib-cache.m4: Likewise.
313 * gnulib/import/m4/gnulib-comp.m4: Likewise.
314 * gnulib/import/dosname.h: New file
315 * gnulib/import/m4/largefile.m4: New file.
316 * gnulib/import/m4/readlink.m4: New file.
317 * gnulib/import/m4/stat.m4: New file.
318 * gnulib/import/readlink.c: New file.
319 * gnulib/import/stat.c: New file.
323 * dwarf2read.c (set_cu_language): Recognize DW_LANG_C11,
324 DW_LANG_C_plus_plus_11, DW_LANG_C_plus_plus_14.
328 * nios2-tdep.c (nios2_analyze_prologue): Replace restriction
329 that there can be only one stack adjustment in the prologue
330 with tests to detect specific disallowed stack adjustments.
334 * nios2-tdep.c (nios2_in_epilogue_p): Handle multiple stack
339 * nios2-tdep.c (nios2_fetch_insn): Move up in file. Disassemble
340 the instruction as well as reading it from memory.
341 (nios2_match_add): New.
342 (nios2_match_sub): New.
343 (nios2_match_addi): New.
344 (nios2_match_orhi): New.
345 (nios2_match_stw): New.
346 (nios2_match_ldw): New.
347 (nios2_match_rdctl): New.
348 (enum branch_condition): New.
349 (nios2_match_branch): New.
350 (nios2_match_jmpi): New.
351 (nios2_match_calli): New.
352 (nios2_match_jmpr): New.
353 (nios2_match_callr): New.
354 (nios2_match_break): New.
355 (nios2_match_trap): New.
356 (nios2_in_epilogue_p): Rewrite to use new functions.
357 (nios2_analyze_prologue): Likewise.
358 (nios2_skip_prologue): Delete unused local limit_pc.
359 (nios2_breakpoint_from_pc): Make R1-specific encodings explicit.
360 (nios2_get_next_pc): Rewrite to use new functions.
364 * gdbtypes.c (resolve_dynamic_type_internal): Reindent the code.
369 * gdb/gnu-nat.c (inf_validate_procinfo): Multiply the number of
370 elements pi_len by the size of the elements before calling
372 (inf_validate_task_sc): Likewise, and properly deallocate the
377 * gdbtypes.c (print_args): Renamed from print_arg_types. Print arg
378 number and name if present. All callers updated.
379 (dump_fn_fieldlists): Fix indentation of args.
383 * MAINTAINERS (Write After Approval): Add myself.
387 * breakpoint.c (bp_loc_is_permanent): Return 0 if LOC corresponds
388 to a bp_call_dummy breakpoint type.
392 * tui/tui-win.c (tui_initialize_win): Specify SA_RESTART when
393 registering the signal handler.
397 * event-top.h (call_stdin_event_handler_again_p): Declare.
398 * event-top.c (call_stdin_event_handler_again_p): Define.
399 (stdin_event_handler): Use it.
400 * tui/tui-io.c (tui_getc): Prepare to call the stdin event
401 handler again if there is pending input following a
407 * linux-fork.c (checkpoint_command): Print index of new
408 checkpoint in response message.
412 * valprint.c (read_string): Move local variables 'found_nul',
413 'chunksize' and 'limit' to inner scope. Update comments.
417 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): Improve
419 (search_symbols): Fix comments and whitespace.
423 * cp-namespace.c (cp_lookup_symbol_nonlocal): Fix comment.
427 * psymtab.c (psymtab_search_name): Fix whitespace.
431 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
433 * gnulib/import/Makefile.am: Re-generated.
434 * gnulib/import/Makefile.in: Likewise.
435 * gnulib/import/m4/gnulib-cache.m4: Likewise.
439 * gdb_wchar.h: Include wchar.h and wctype.h.
440 [HAVE_ICONV && HAVE_BTOWC]: Don't check HAVE_WCHAR_T and don't
441 include wchar.h and wctype.h.
442 Don't check HAVE_WCHAR_H.
446 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add wchar
448 * gnulib/import/Makefile.am: Re-generated.
449 * gnulib/import/Makefile.in: Likewise.
450 * gnulib/import/m4/gnulib-cache.m4: Likewise.
454 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add
456 * gnulib/import/Makefile.am: Re-generated.
457 * gnulib/import/Makefile.in: Likewise.
458 * gnulib/import/m4/gnulib-cache.m4: Likewise.
462 * common/common-defs.h: Include alloca.h
463 * configure.ac: Don't invoke AC_FUNC_ALLOCA.
464 * configure: Re-generated.
465 * defs.h: Remove code handling alloca.
466 * utils.c (gdb_realpath): Don't check HAVE_ALLOCA is defined
471 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULE): Add
473 * gnulib/import/Makefile.am: Re-generated.
474 * gnulib/import/Makefile.in: Likewise..
475 * gnulib/import/m4/gnulib-cache.m4: Likewise.
479 * gnulib/update-gnulib.sh: Make IMPORTED_GNULIB_MODULES in
484 * gdbtypes.c (create_range_type): Unset RESULT_TYPE's
485 flag_unsigned if HIGH_BOUND is constant and negative.
490 * xml-syscall.c (set_xml_syscall_file_name): Remove "const"
491 modifier from "struct gdbarch" when compiling without Expat (XML)
493 (get_syscall_by_number): Likewise.
494 (get_syscall_by_name): Likewise.
495 (get_syscall_names): Likewise.
500 * amd64-linux-tdep.c (amd64_linux_init_abi_common): Adjust call to
501 set_xml_syscall_file_name to provide gdbarch.
502 * arm-linux-tdep.c (arm_linux_init_abi): Likewise.
503 * bfin-linux-tdep.c (bfin_linux_init_abi): Likewise.
504 * breakpoint.c (print_it_catch_syscall): Adjust call to
505 get_syscall_by_number to provide gdbarch.
506 (print_one_catch_syscall): Likewise.
507 (print_mention_catch_syscall): Likewise.
508 (print_recreate_catch_syscall): Likewise.
509 (catch_syscall_split_args): Adjust calls to get_syscall_by_number
510 and get_syscall_by_name to provide gdbarch.
511 (catch_syscall_completer): Adjust call to get_syscall_names to
513 * gdbarch.c: Regenerate.
514 * gdbarch.h: Likewise.
515 * gdbarch.sh: Forward declare "struct syscalls_info".
516 (xml_syscall_file): New variable.
517 (syscalls_info): Likewise.
518 * i386-linux-tdep.c (i386_linux_init_abi): Adjust call to
519 set_xml_syscall_file_name to provide gdbarch.
520 * mips-linux-tdep.c (mips_linux_init_abi): Likewise.
521 * ppc-linux-tdep.c (ppc_linux_init_abi): Likewise.
522 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
523 * sparc-linux-tdep.c (sparc32_linux_init_abi): Likewise.
524 * sparc64-linux-tdep.c (sparc64_linux_init_abi): Likewise.
525 * xml-syscall.c: Include gdbarch.h.
526 (set_xml_syscall_file_name): Accept gdbarch parameter.
527 (get_syscall_by_number): Likewise.
528 (get_syscall_by_name): Likewise.
529 (get_syscall_names): Likewise.
530 (my_gdb_datadir): Delete global variable.
531 (struct syscalls_info) <my_gdb_datadir>: New variable.
532 (struct syscalls_info) <sysinfo>: Rename variable to
534 (sysinfo): Delete global variable.
535 (have_initialized_sysinfo): Likewise.
536 (xml_syscall_file): Likewise.
537 (sysinfo_free_syscalls_desc): Rename to...
538 (syscalls_info_free_syscalls_desc): ... this.
539 (free_syscalls_info): Rename "sysinfo" to "syscalls_info". Adjust
540 code to the new layout of "struct syscalls_info".
541 (make_cleanup_free_syscalls_info): Rename parameter "sysinfo" to
543 (syscall_create_syscall_desc): Likewise.
544 (syscall_start_syscall): Likewise.
545 (syscall_parse_xml): Likewise.
546 (xml_init_syscalls_info): Likewise. Drop "const" from return value.
547 (init_sysinfo): Rename to...
548 (init_syscalls_info): ...this. Add gdbarch as a parameter.
549 Adjust function to deal with gdbarch.
550 (xml_get_syscall_number): Delete parameter sysinfo. Accept
551 gdbarch as a parameter. Adjust code.
552 (xml_get_syscall_name): Likewise.
553 (xml_list_of_syscalls): Likewise.
554 (set_xml_syscall_file_name): Accept gdbarch as parameter.
555 (get_syscall_by_number): Likewise.
556 (get_syscall_by_name): Likewise.
557 (get_syscall_names): Likewise.
558 * xml-syscall.h (set_xml_syscall_file_name): Likewise.
559 (get_syscall_by_number): Likewise.
560 (get_syscall_by_name): Likewise.
561 (get_syscall_names): Likewise.
565 Split struct symtab into two: struct symtab and compunit_symtab.
566 * amd64-tdep.c (amd64_skip_xmm_prologue): Fetch producer from compunit.
567 * block.c (blockvector_for_pc_sect): Change "struct symtab *" argument
568 to "struct compunit_symtab *". All callers updated.
569 (set_block_compunit_symtab): Renamed from set_block_symtab. Change
570 "struct symtab *" argument to "struct compunit_symtab *".
572 (get_block_compunit_symtab): Renamed from get_block_symtab. Change
573 result to "struct compunit_symtab *". All callers updated.
574 (find_iterator_compunit_symtab): Renamed from find_iterator_symtab.
575 Change result to "struct compunit_symtab *". All callers updated.
576 * block.h (struct global_block) <compunit_symtab>: Renamed from symtab.
577 hange type to "struct compunit_symtab *". All uses updated.
578 (struct block_iterator) <d.compunit_symtab>: Renamed from "d.symtab".
579 Change type to "struct compunit_symtab *". All uses updated.
580 * buildsym.c (struct buildsym_compunit): New struct.
581 (subfiles, buildsym_compdir, buildsym_objfile, main_subfile): Delete.
582 (buildsym_compunit): New static global.
583 (finish_block_internal): Update to fetch objfile from
585 (make_blockvector): Delete objfile argument.
586 (start_subfile): Rewrite to use buildsym_compunit. Don't initialize
587 debugformat, producer.
588 (start_buildsym_compunit): New function.
589 (free_buildsym_compunit): Renamed from free_subfiles_list.
591 (patch_subfile_names): Rewrite to use buildsym_compunit.
592 (get_compunit_symtab): New function.
593 (get_macro_table): Delete argument comp_dir. All callers updated.
594 (start_symtab): Change result to "struct compunit_symtab *".
595 All callers updated. Create the subfile of the main source file.
596 (watch_main_source_file_lossage): Rewrite to use buildsym_compunit.
597 (reset_symtab_globals): Update.
598 (end_symtab_get_static_block): Update to use buildsym_compunit.
599 (end_symtab_without_blockvector): Rewrite.
600 (end_symtab_with_blockvector): Change result to
601 "struct compunit_symtab *". All callers updated.
602 Update to use buildsym_compunit. Don't set symtab->dirname,
603 instead set it in the compunit.
604 Explicitly make sure main symtab is first in its list.
605 Set debugformat, producer, blockvector, block_line_section, and
606 macrotable in the compunit.
607 (end_symtab_from_static_block): Change result to
608 "struct compunit_symtab *". All callers updated.
609 (end_symtab, end_expandable_symtab): Ditto.
610 (set_missing_symtab): Change symtab argument to
611 "struct compunit_symtab *". All callers updated.
612 (augment_type_symtab): Ditto.
613 (record_debugformat): Update to use buildsym_compunit.
614 (record_producer): Update to use buildsym_compunit.
615 * buildsym.h (struct subfile) <dirname>: Delete.
616 <producer, debugformat>: Delete.
617 <buildsym_compunit>: New member.
618 (get_compunit_symtab): Declare.
619 * dwarf2read.c (struct type_unit_group) <compunit_symtab>: Renamed
620 from primary_symtab. Change type to "struct compunit_symtab *".
622 (dwarf2_start_symtab): Change result to "struct compunit_symtab *".
624 (dwarf_decode_macros): Delete comp_dir argument. All callers updated.
625 (struct dwarf2_per_cu_quick_data) <compunit_symtab>: Renamed from
626 symtab. Change type to "struct compunit_symtab *". All uses updated.
627 (dw2_instantiate_symtab): Change result to "struct compunit_symtab *".
629 (dw2_find_last_source_symtab): Ditto.
630 (dw2_lookup_symbol): Ditto.
631 (recursively_find_pc_sect_compunit_symtab): Renamed from
632 recursively_find_pc_sect_symtab. Change result to
633 "struct compunit_symtab *". All callers updated.
634 (dw2_find_pc_sect_compunit_symtab): Renamed from
635 dw2_find_pc_sect_symtab. Change result to
636 "struct compunit_symtab *". All callers updated.
637 (get_compunit_symtab): Renamed from get_symtab. Change result to
638 "struct compunit_symtab *". All callers updated.
639 (recursively_compute_inclusions): Change type of immediate_parent
640 argument to "struct compunit_symtab *". All callers updated.
641 (compute_compunit_symtab_includes): Renamed from
642 compute_symtab_includes. All callers updated. Rewrite to compute
643 includes of compunit_symtabs and not symtabs.
644 (process_full_comp_unit): Update to work with struct compunit_symtab.
645 (process_full_type_unit): Ditto.
646 (dwarf_decode_lines_1): Delete argument comp_dir. All callers updated.
647 (dwarf_decode_lines): Remove special case handling of main subfile.
648 (macro_start_file): Delete argument comp_dir. All callers updated.
649 (dwarf_decode_macro_bytes): Ditto.
650 * guile/scm-block.c (bkscm_print_block_syms_progress_smob): Update to
651 use struct compunit_symtab.
652 * i386-tdep.c (i386_skip_prologue): Fetch producer from compunit.
653 * jit.c (finalize_symtab): Build compunit_symtab.
654 * jv-lang.c (get_java_class_symtab): Change result to
655 "struct compunit_symtab *". All callers updated.
656 * macroscope.c (sal_macro_scope): Fetch macro table from compunit.
657 * macrotab.c (struct macro_table) <compunit_symtab>: Renamed from
658 comp_dir. Change type to "struct compunit_symtab *".
660 (new_macro_table): Change comp_dir argument to cust,
661 "struct compunit_symtab *". All callers updated.
662 * maint.c (struct cmd_stats) <nr_compunit_symtabs>: Renamed from
663 nr_primary_symtabs. All uses updated.
664 (count_symtabs_and_blocks): Update to handle compunits.
665 (report_command_stats): Update output, "primary symtabs" renamed to
667 * mdebugread.c (new_symtab): Change result to
668 "struct compunit_symtab *". All callers updated.
669 (parse_procedure): Change type of search_symtab argument to
670 "struct compunit_symtab *". All callers updated.
671 * objfiles.c (objfile_relocate1): Loop over blockvectors in a
673 * objfiles.h (struct objfile) <compunit_symtabs>: Renamed from
674 symtabs. Change type to "struct compunit_symtab *". All uses updated.
675 (ALL_OBJFILE_FILETABS): Renamed from ALL_OBJFILE_SYMTABS.
677 (ALL_OBJFILE_COMPUNITS): Renamed from ALL_OBJFILE_PRIMARY_SYMTABS.
679 (ALL_FILETABS): Renamed from ALL_SYMTABS. All uses updated.
680 (ALL_COMPUNITS): Renamed from ALL_PRIMARY_SYMTABS. All uses updated.
681 * psympriv.h (struct partial_symtab) <compunit_symtab>: Renamed from
682 symtab. Change type to "struct compunit_symtab *". All uses updated.
683 * psymtab.c (psymtab_to_symtab): Change result type to
684 "struct compunit_symtab *". All callers updated.
685 (find_pc_sect_compunit_symtab_from_partial): Renamed from
686 find_pc_sect_symtab_from_partial. Change result type to
687 "struct compunit_symtab *". All callers updated.
688 (lookup_symbol_aux_psymtabs): Change result type to
689 "struct compunit_symtab *". All callers updated.
690 (find_last_source_symtab_from_partial): Ditto.
691 * python/py-symtab.c (stpy_get_producer): Fetch producer from compunit.
692 * source.c (forget_cached_source_info_for_objfile): Fetch debugformat
693 and macro_table from compunit.
694 * symfile-debug.c (debug_qf_find_last_source_symtab): Change result
695 type to "struct compunit_symtab *". All callers updated.
696 (debug_qf_lookup_symbol): Ditto.
697 (debug_qf_find_pc_sect_compunit_symtab): Renamed from
698 debug_qf_find_pc_sect_symtab, change result type to
699 "struct compunit_symtab *". All callers updated.
700 * symfile.c (allocate_symtab): Delete objfile argument.
702 (allocate_compunit_symtab): New function.
703 (add_compunit_symtab_to_objfile): New function.
704 * symfile.h (struct quick_symbol_functions) <lookup_symbol>:
705 Change result type to "struct compunit_symtab *". All uses updated.
706 <find_pc_sect_compunit_symtab>: Renamed from find_pc_sect_symtab.
707 Change result type to "struct compunit_symtab *". All uses updated.
708 * symmisc.c (print_objfile_statistics): Compute blockvector count in
710 (dump_symtab_1): Update test for primary source symtab.
711 (maintenance_info_symtabs): Update to handle compunit symtabs.
712 (maintenance_check_symtabs): Ditto.
713 * symtab.c (set_primary_symtab): Delete.
714 (compunit_primary_filetab): New function.
715 (compunit_language): New function.
716 (iterate_over_some_symtabs): Change type of arguments "first",
717 "after_last" to "struct compunit_symtab *". All callers updated.
718 Update to loop over symtabs in each compunit.
719 (error_in_psymtab_expansion): Rename symtab argument to cust,
720 and change type to "struct compunit_symtab *". All callers updated.
721 (find_pc_sect_compunit_symtab): Renamed from find_pc_sect_symtab.
722 Change result type to "struct compunit_symtab *". All callers updated.
723 (find_pc_compunit_symtab): Renamed from find_pc_symtab.
724 Change result type to "struct compunit_symtab *". All callers updated.
725 (find_pc_sect_line): Only loop over symtabs within selected compunit
726 instead of all symtabs in the objfile.
727 * symtab.h (struct symtab) <blockvector>: Moved to compunit_symtab.
728 <compunit_symtab> New member.
729 <block_line_section>: Moved to compunit_symtab.
730 <locations_valid>: Ditto.
731 <epilogue_unwind_valid>: Ditto.
732 <macro_table>: Ditto.
734 <debugformat>: Ditto.
737 <call_site_htab>: Ditto.
741 (SYMTAB_COMPUNIT): New macro.
742 (SYMTAB_BLOCKVECTOR): Update definition.
743 (SYMTAB_OBJFILE): Update definition.
744 (SYMTAB_DIRNAME): Update definition.
745 (struct compunit_symtab): New type. Common members among all source
746 symtabs within a compilation unit moved here. All uses updated.
747 (COMPUNIT_OBJFILE): New macro.
748 (COMPUNIT_FILETABS): New macro.
749 (COMPUNIT_DEBUGFORMAT): New macro.
750 (COMPUNIT_PRODUCER): New macro.
751 (COMPUNIT_DIRNAME): New macro.
752 (COMPUNIT_BLOCKVECTOR): New macro.
753 (COMPUNIT_BLOCK_LINE_SECTION): New macro.
754 (COMPUNIT_LOCATIONS_VALID): New macro.
755 (COMPUNIT_EPILOGUE_UNWIND_VALID): New macro.
756 (COMPUNIT_CALL_SITE_HTAB): New macro.
757 (COMPUNIT_MACRO_TABLE): New macro.
758 (ALL_COMPUNIT_FILETABS): New macro.
759 (compunit_symtab_ptr): New typedef.
760 (DEF_VEC_P (compunit_symtab_ptr)): New vector type.
764 * ada-lang.c (ada_is_redundant_range_encoding): Return 0
765 if the TYPE_CODE of range_type's base type does not match
766 the TYPE_CODE of encoding_type's base type.
770 * ada-lang.c (ada_unqualified_name): Return DECODED_NAME if
775 * ada-lang.c (ada_is_redundant_range_encoding): New function.
776 (ada_is_redundant_index_type_desc): New function.
777 (to_fixed_array_type): Ignore parallel XA type if redundant.
781 * ada-lang.c (constrained_packed_array_type): Set the length
782 of the return array as if both bounds where zero if that
783 returned array's index type is dynamic.
787 * config/i386/go32.mh (CC): Remove.
791 * symtab.h (SYMTAB_BLOCKVECTOR): Renamed from BLOCKVECTOR. All uses
796 * buildsym.c (buildsym_objfile): New static global.
797 (buildsym_comp_dir): New static global.
798 (finish_block_internal): Delete arg objfile. All callers updated.
799 (finish_block): Delete arg objfile. All callers updated.
800 (start_subfile): Delete arg dirname. All callers updated.
801 (patch_subfile_names): Update buildsym_comp_dir.
802 (get_macro_table): Delete arg objfile. All callers updated.
803 (start_symtab): New arg objfile. All callers updated.
804 Rename arg dirname to comp_dir.
805 (reset_symtab_globals): Initialize buildsym_objfile, buildsym_comp_dir.
806 (end_symtab_get_static_block): Delete arg objfile. All callers
808 (end_symtab_without_blockvector): Ditto.
809 (end_symtab_with_blockvector): Ditto.
810 (end_symtab_from_static_block): Ditto.
812 (end_expandable_symtab): Ditto.
813 (augment_type_symtab): Ditto.
814 * coffread.c (coff_start_symtab): New arg objfile. All callers
819 * symtab.h (SYMTAB_LINETABLE): Renamed from LINETABLE. All uses
824 * symtab.h (SYMTAB_DIRNAME): New macro. All uses of member
825 symtab.dirname updated to use it.
829 * symtab.h (SYMTAB_OBJFILE): New macro. All uses of member
830 symtab.objfile updated to use it.
834 * buildsym.c (watch_main_source_file_lossage): Fix memory leak.
838 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
840 * findvar.c (default_read_var_value): Ditto.
841 * jv-lang.c (add_class_symtab_symbol): Ditto.
842 * parse.c (operator_check_standard): Ditto.
843 * printcmd.c (address_info): Ditto.
844 * symtab.c (fixup_symbol_section): Ditto.
845 (skip_prologue_sal): Ditto.
846 * tracepoint.c (scope_info): Ditto.
847 * valops.c (find_function_in_inferior): Ditto.
848 * guile/scm-symbol.c (syscm_eq_symbol_smob): Ditto.
849 * python/py-symbol.c (set_symbol): Ditto.
853 * buildsym.c (main_subfile): New static global.
854 (free_subfiles_list): New function.
855 (start_symtab): Set main_subfile.
856 (restart_symtab): Replace init of subfiles, current_subfile with
857 call to free_subfiles_list.
858 (watch_main_source_file_lossage): Use main_subfile.
859 (reset_symtab_globals): Replace init of current_subfile with call
860 to free_subfiles_list.
861 (end_symtab_without_blockvector, end_symtab_with_blockvector): New
862 functions, split out from ...
863 (end_symtab_from_static_block): ... here. Rewrite to call them.
867 The result of symtab expansion is always a primary symtab.
868 * dwarf2read.c (dw2_instantiate_symtab): Add assert.
869 (dw2_lookup_symbol): Remove unnecessary test for primary symbol table.
870 * psymtab.c (lookup_symbol_aux_psymtabs): Ditto.
871 (psymtab_to_symtab): Add comment and assert.
872 (map_matching_symbols_psymtab): Remove unnecessary test for
878 * symtab.c (find_pc_line_symtab): New function.
879 * symtab.h (find_pc_line_symtab): Declare.
880 * disasm.c (gdb_disassembly): Call find_pc_line_symtab instead of
882 * tui/tui-disasm.c (tui_set_disassem_content): Ditto.
883 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Ditto.
884 * tui/tui-source.c (tui_vertical_source_scroll): Ditto.
885 * tui/tui-win.c (make_visible_with_new_height): Ditto.
886 * tui/tui-winsource.c (tui_horizontal_source_scroll): Ditto.
887 (tui_display_main): Call find_pc_line_symtab instead of find_pc_line.
891 * symtab.c (expand_symtab_containing_pc): Renamed from
892 find_pc_sect_symtab_via_partial. All callers updated.
896 * go32-nat.c (go32_create_inferior): Add missing parenthesis.
900 * common/common-defs.h: Move <stdarg.h> #include ahead of
905 * charset.c [PHONY_ICONV && !EILSEQ] (EILSEQ): Don't define.
906 [!PHONY_ICONV] (gdb_iconv): New function.
907 [!PHONY_ICONV] (iconv): Redefine to gdb_iconv.
912 * dwarf2read.c (find_slot_in_mapped_hash): Handle
913 "(anonymous namespace)".
917 * dwarf2read.c (update_enumeration_type_from_children): Avoid
922 * NEWS (maint set target-async): Fix typo.
926 * infrun.c (enum infwait_states, infwait_state): Delete.
930 * infrun.c (resume): Clear the thread's 'stepped_breakpoint' flag.
931 Rewrite stepping over a permanent breakpoint.
932 (thread_still_needs_step_over, proceed): Don't set
933 stepping_over_breakpoint for permanent breakpoints.
934 (handle_signal_stop): Don't clear stepped_breakpoint. Also pull
935 single-step breakpoints out of the target on hardware step
937 (process_event_stop_test): If stepping a permanent breakpoint
938 doesn't hit the step-resume breakpoint, delete the step-resume
940 (switch_back_to_stepped_thread): Also check if the stepped thread
941 has advanced already on hardware step targets.
942 (currently_stepping): Return true if the thread stepped a
947 Mark locations as permanent, not the whole breakpoint.
948 * breakpoint.c (remove_breakpoint_1, remove_breakpoint): Adjust.
949 (mark_breakpoints_out): Don't mark permanent breakpoints as
951 (breakpoint_init_inferior): Use mark_breakpoints_out.
952 (breakpoint_here_p): Adjust.
953 (bpstat_stop_status, describe_other_breakpoints): Remove handling
954 of permanent breakpoints.
955 (make_breakpoint_permanent): Mark each location as permanent,
956 instead of marking the breakpoint.
957 (add_location_to_breakpoint): If the location is permanent, mark
958 it as such, and as inserted.
959 (init_breakpoint_sal): Don't make the breakpoint permanent here.
960 (bp_location_compare, update_global_location_list): Adjust.
961 (update_breakpoint_locations): Don't make the breakpoint permanent
963 (disable_breakpoint, enable_breakpoint_disp): Don't skip permanent
965 * breakpoint.h (enum enable_state) <bp_permanent>: Delete field.
966 (struct bp_location) <permanent>: New field.
967 * guile/scm-breakpoint.c (bpscm_enable_state_to_string): Remove
968 reference to bp_permanent.
972 * arch-utils.c (default_skip_permanent_breakpoint): New function.
973 * arch-utils.h (default_skip_permanent_breakpoint): New
975 * gdbarch.sh (skip_permanent_breakpoint): Now an 'f' function.
976 Install default_skip_permanent_breakpoint as default method.
977 * i386-tdep.c (i386_skip_permanent_breakpoint): Delete function.
978 (i386_gdbarch_init): Don't install it.
979 * infrun.c (resume): Assume there's always a
980 gdbarch_skip_permanent_breakpoint implementation.
981 * gdbarch.h, gdbarch.c: Regenerate.
985 Warn about cross-PID-namespace debugging.
986 * nat/linux-procfs.h (linux_proc_pid_get_ns): New prototype.
987 * nat/linux-procfs.c (linux_proc_pid_get_ns): New function.
988 * linux-thread-db.c (check_pid_namespace_match): New function.
989 (thread_db_inferior_created): Call it.
993 * symmisc.c (print_objfile_statistics): Remove trailing whitespace.
994 (maintenance_info_symtabs, maintenance_check_symtabs): Ditto.
998 * source.c (select_source_symtab): Rewrite to use ALL_SYMTABS.
1003 * symtab.c (lookup_symbol_in_all_objfiles): Delete.
1004 (lookup_static_symbol): Move definition to new location and rewrite.
1005 (lookup_symbol_in_objfile): New function.
1006 (lookup_symbol_global_iterator_cb): Call it.
1010 * eval.c (evaluate_subexp_standard): Work around GCC bug 63748.
1014 * infrun.c (process_event_stop_test) <subroutine check>: Don't
1015 check if we did a "nexti" inside a prologue.
1016 * symtab.c (in_prologue): Delete function.
1017 * symtab.h (in_prologue): Delete declaration.
1021 * symtab.h (lookup_global_symbol): Improve function comment.
1025 * symtab.c (lookup_global_symbol): Renamed from lookup_symbol_global.
1026 All callers updated.
1027 * symtab.h (lookup_global_symbol): Update decl.
1028 (lookup_static_symbol): Move decl to better location.
1032 * symtab.c (basic_lookup_symbol_nonlocal): Add comment.
1036 * symtab.c (lookup_local_symbol): Renamed from lookup_symbol_aux_local.
1037 All callers updated.
1038 (lookup_symbol_in_all_objfiles): Renamed from
1039 lookup_symbol_aux_symtabs. All callers updated.
1040 (lookup_symbol_via_quick_fns): Renamed from lookup_symbol_aux_quick.
1041 All callers updated.
1042 (lookup_symbol_in_objfile_symtabs): Renamed from
1043 lookup_symbol_aux_objfile. All callers updated.
1047 * symtab.c (lookup_symbol_in_block): Renamed from
1048 lookup_symbol_aux_block. All callers updated.
1052 * symtab.c (lookup_static_symbol): Renamed from
1053 lookup_static_symbol_aux. All callers updated.
1054 (lookup_symbol_in_static_block): Renamed from lookup_symbol_static.
1055 All callers updated.
1059 * block.h (ALL_BLOCK_SYMBOLS_WITH_NAME): New macro.
1060 * block.c (block_lookup_symbol): Use it.
1061 * cp-support.c (make_symbol_overload_list_block): Use it.
1062 * symtab.c (iterate_over_symbols): Use it.
1066 * symtab.c (lookup_block_symbol): Moved to ...
1067 * block.c (block_lookup_symbol): ... here and renamed.
1068 All callers updated.
1069 * block.h (block_lookup_symbol): Declare.
1070 * symtab.h (lookup_block_symbol): Delete.
1074 * ada-lang.c (ada_make_symbol_completion_list): Use
1075 ALL_PRIMARY_SYMTABS instead of ALL_SYMTABS.
1076 * symtab.c (lookup_objfile_from_block): Ditto.
1080 * gdbtypes.h (TYPE_CODE_CLASS): Delete. All uses changed to use
1085 * objfiles.c (get_objfile_arch): Constify.
1086 * objfiles.h (get_objfile_arch): Update prototype.
1087 * solib.c (solib_global_lookup): Fetch arch from objfile,
1092 * nios2-tdep.c (wild_insn): Delete.
1093 (profiler_insn, irqentry_insn): Delete.
1094 (nios2_match_sequence): Delete.
1095 (nios2_analyze_prologue): Update comments. Remove matching
1096 of obsolete profiler_insn and irqentry_insn sequences.
1100 * charset.c (convert_between_encodings): Shrink obstack using
1102 * minsyms.c (install_minimal_symbols): Likewise.
1103 * cp-valprint.c (cp_print_value_fields): Cast obstack_next_free
1104 to char* before doing pointer arithmetic.
1108 * tui/tui.c (tui_enable): Pass stdout and stdin to newterm.
1112 * breakpoint.c (breakpoint_thread_match): Delete function.
1113 * breakpoint.h (breakpoint_thread_match): Delete declaration.
1118 * eval.c (evaluate_subexp_standard): Evaluate the "object" and
1119 the method args also under EVAL_SKIP when evaluating method
1120 calls under EVAL_SKIP.
1124 * dwarf2loc.c (read_pieced_value): Do big endian
1125 processing only if gdb_regnum is not -1.
1126 (write_pieced_value): Ditto.
1130 * arm-linux-tdep.c (arm_linux_init_abi): Use
1131 info.byte_order_for_code to choose endianity of breakpoint
1132 instructions snippets.
1136 * arm-tdep.c (extract_arm_insn): Use
1137 gdbarch_byte_order_for_code to read arm instruction.
1141 * mdebugread.c (parse_procedure): Delete unnecessary forward decl.
1145 * xcoffread.c (process_linenos): Delete unnecessary zeroing of
1146 main_subfile before returning.
1150 * objfiles.h (ALL_PSPACE_OBJFILES_SAFE): Delete, unused.
1151 (ALL_PSPACE_SYMTABS, ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
1155 * valops.c (value_cast_pointers): Fix whitespace.
1156 (typecmp, search_struct_method, value_struct_elt, find_oload_champ):
1161 * NEWS: Mention ability add attributes to gdb.Objfile and
1162 gdb.Progspace objects.
1163 * python/py-objfile.c (objfile_object): New member dict.
1164 (objfpy_dealloc): Py_XDECREF dict.
1165 (objfpy_initialize): Initialize dict.
1166 (objfile_getset): Add __dict__.
1167 (objfile_object_type): Set tp_dictoffset member.
1168 * python/py-progspace.c (progspace_object): New member dict.
1169 (pspy_dealloc): Py_XDECREF dict.
1170 (pspy_initialize): Initialize dict.
1171 (pspace_getset): Add __dict__.
1172 (pspace_object_type): Set tp_dictoffset member.
1176 * python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
1177 replace '\\' with '\\\\'.
1186 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
1187 instead of assuming a thread with a stepping range is always
1193 * event-top.c (change_line_handler): Call
1194 gdb_rl_callback_handler_remove instead of
1195 rl_callback_handler_remove.
1196 (callback_handler_installed): New global.
1197 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
1198 (gdb_rl_callback_handler_reinstall): New functions.
1199 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
1200 gdb_rl_callback_handler_install instead of
1201 rl_callback_handler_remove and rl_callback_handler_install.
1202 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
1203 instead of rl_callback_handler_remove.
1204 * event-top.h (gdb_rl_callback_handler_remove)
1205 (gdb_rl_callback_handler_install)
1206 (gdb_rl_callback_handler_reinstall): New declarations.
1207 * infrun.c (reinstall_readline_callback_handler_cleanup): New
1209 (fetch_inferior_event): Install it.
1210 * top.c (gdb_readline_wrapper_line) Call
1211 gdb_rl_callback_handler_remove instead of
1212 rl_callback_handler_remove.
1213 (gdb_readline_wrapper_cleanup): Don't call
1214 rl_callback_handler_install.
1218 * event-top.c (command_line_handler): Clear the first byte of
1219 linebuffer, when it is first allocated.
1223 * tui/tui.c (tui_rl_switch_mode): Wrap tui_enable/tui_disable in
1230 * tui/tui-interp.c (tui_is_toplevel): Delete global.
1231 (tui_allowed_p): Delete function.
1232 * tui/tui.c: Include "interps.h".
1233 (tui_enable): Don't use tui_allowed_p. Error out here with
1234 detailed error messages if the TUI is the top level interpreter,
1235 or if output is not a terminal. Use newterm instead of initscr,
1236 and error out if initializing the terminal fails. Also error out if
1237 the terminal doesn't support cursor addressing.
1238 * tui/tui.h (tui_allowed_p): Delete declaration.
1242 * arm-tdep.c (arm_skip_stack_protector): Return early if
1243 address loaded by first "ldr" instruction does not have
1244 a corresponding minimal symbol. Update comment.
1248 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Compute the
1249 loaded address correctly of ldr instruction.
1254 * gdbthread.h (struct thread_info) <stepped_breakpoint>: New
1256 * infrun.c (resume) <stepping breakpoint instruction>: Set the
1257 thread's stepped_breakpoint field. Skip if reverse debugging.
1259 (init_thread_stepping_state, handle_signal_stop): Clear the
1260 thread's stepped_breakpoint field.
1264 * remote.c (remote_thread_alive): New, factored out from ...
1265 (remote_thread_alive): ... this.
1266 (remote_update_thread_list): Bail out before deleting threads if
1267 the target returned an empty list, and, the current thread has a
1272 * infrun.c (handle_signal_stop): Also skip handlers when a random
1273 signal arrives while handling a "stepi" or a "nexti". Set the
1274 thread's 'step_after_step_resume_breakpoint' flag.
1278 * arm-tdep.c (INSN_S_L_BIT_NUM): Document.
1279 (arm_record_ld_st_imm_offset): Reimplement to cover all
1280 load/store cases for ARM opcode 010.
1281 (arm_record_ld_st_multiple): Reimplement to cover all
1282 load/store cases for ARM opcode 100.
1286 * symtab.c (lookup_symbol_aux_local): Fix typo in comment.
1290 * symfile.h (struct quick_symbol_functions) <lookup_symbol>: Rename
1291 parameter "kind" to "block_index".
1292 * symtab.c (error_in_psymtab_expansion): Rename parameter "kind" to
1294 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Ditto.
1298 * block.h (ALL_BLOCK_SYMBOLS): Fix comment.
1302 * block.c (allocate_block): Use OBSTACK_ZALLOC instead of
1307 * parser-defs.h (block_found): Move decl from here ...
1308 * symtab.h (block_found): ... to here.
1312 * symtab.h (struct field_of_this_result): Fix typo in comment.
1313 (lookup_symbol_in_language): Move function comment here.
1314 (lookup_symbol): Improve function comment.
1315 (basic_lookup_symbol_nonlocal): Ditto.
1316 (lookup_symbol_static, lookup_symbol_global): Ditto.
1317 (lookup_symbol_aux_block): Ditto.
1318 (lookup_language_this): Add function comment.
1319 (lookup_static_symbol_aux): Explicitly mark as extern. Improve
1321 (lookup_block_symbol): Improve function comment.
1322 (lookup_struct): Fix capitalization in function comment.
1323 (lookup_transparent_type): Add function comment.
1324 (lookup_global_symbol_from_objfile): Explicitly mark as extern.
1325 Improve function comment.
1326 (lookup_objfile_from_block): Add function comment.
1327 * symtab.c (lookup_symbol_in_language): Update function comment.
1328 (lookup_symbol, lookup_language_this): Ditto.
1329 (lookup_static_symbol_aux, lookup_objfile_from_block): Ditto.
1330 (lookup_symbol_aux_block, lookup_global_symbol_from_objfile): Ditto.
1331 (basic_lookup_symbol_nonlocal): Ditto.
1332 (lookup_symbol_static, lookup_symbol_global): Ditto.
1333 (lookup_transparent_type, lookup_block_symbol): Ditto.
1337 * symtab.c (types_info): Delete forward decl.
1338 (functions_info, variables_info, sources_info): Ditto.
1339 (_initialize_symtab): Rewrite forward decl to use
1340 initialize_file_ftype.
1344 * symtab.c (lookup_symbol_aux_quick): Set block_found upon success.
1348 * dwarf2read.c (process_structure_scope): Remove second (nested) copy
1349 of local var child_die.
1353 * infrun.c (follow_fork_inferior): Update fork message printing
1354 to use target_terminal_ours_for_output instead of
1355 target_terminal_ours, to use _() for all format strings, to print
1356 "vfork" instead of "fork" for vforks, and to add a detach message.
1357 (handle_vfork_child_exec_or_exit): Update message printing to use
1358 target_terminal_ours_for_output instead of target_terminal_ours, to
1359 use _() for all format strings, and to fix some formatting.
1363 * Makefile.in (ALLDEPFILES): Remove vax-nat.c.
1364 * NEWS (Removed targets): Add VAX BSD and VAX Ultrix.
1365 * config/vax/vax.mh: Delete.
1366 * configure.host: Move vax-*-bsd* and vax-*-ultrix* to the
1367 obsolete configurations section.
1368 * configure.tgt (vax-*-*): Don't mention 4.2BSD nor Ultrix.
1369 * vax-nat.c: Delete file.
1373 * NEWS (Removed targets): Add OS/arch column.
1377 * gnu-v3-abi.c (gnuv3_pass_by_reference): Call TYPE_TARGET_TYPE
1378 on the arg type of a constructor only if it is of reference type.
1382 * nios2-tdep.c (nios2_analyze_prologue): Use new instruction field
1383 accessors and constants from nios2 opcodes update.
1384 (nios2_get_next_pc): Likewise.
1388 * gdbthread.h (set_running): Fix comment.
1389 (set_executing, finish_thread_state): Fix comment.
1393 * linux-nat.c (linux_nat_wait_1): Make local prev_mask non-static.
1397 * NEWS: Mention new event gdb.clear_objfiles.
1398 * python/py-event.h (emit_clear_objfiles_event): Clear
1399 * python/py-events.h (events_object): New member clear_objfiles.
1400 * python/py-evts.c (gdbpy_initialize_py_events): Add clear_objfiles
1402 * python/py-inferior.c (python_new_objfile): If objfile is NULL,
1403 emit clear_objfiles event.
1404 * python/py-newobjfileevent.c (create_clear_objfiles_event_object): New
1406 (emit_clear_objfiles_event): New function.
1407 (clear_objfiles): New event.
1408 * python/python-internal.h (gdbpy_initialize_clear_objfiles_event):
1410 * python/python.c (_initialize_python): Call
1411 gdbpy_initialize_clear_objfiles_event.
1415 * NEWS: Mention new gdb.Objfile.progspace attribute.
1416 * python/py-objfile.c (objfpy_get_progspace): New function.
1417 (objfile_getset): New entry for "progspace".
1422 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
1423 returns a copy of the input.
1424 (run_command_1, continue_command, step_1, jump_command)
1425 (signal_command, until_command, advance_command, finish_command)
1426 (attach_command): Adjust and install a cleanup to free the
1432 * infcmd.c (continue_1): If continuing all threads in the
1433 foreground, make sure the inferior's terminal settings are put in
1439 * annotate.c (annotate_breakpoints_invalid): Use
1440 target_terminal_our_for_output instead of target_terminal_ours.
1441 Give back the terminal to the target.
1442 (annotate_frames_invalid): Likewise.
1446 * target.c (enum terminal_state): New enum.
1447 (terminal_state): New global.
1448 (target_terminal_init): New function.
1449 (target_terminal_inferior): Skip if inferior already owns the
1451 (target_terminal_ours, target_terminal_ours_for_output): New
1453 * target.h (target_terminal_init): Convert to function prototype.
1454 (target_terminal_ours_for_output): Convert to function prototype
1456 (target_terminal_ours): Convert to function prototype and tweak
1458 * windows-nat.c (do_initial_windows_stuff): Call
1459 target_terminal_init instead of child_terminal_init_with_pgrp.
1463 * Makefile.in (ALL_64_TARGET_OBS): Remove alpha-osf1-tdep.o.
1464 (HFILES_NO_SRCDIR): Remove config/alpha/nm-osf3.h.
1465 (ALLDEPFILES): Remove alpha-nat.c, alpha-osf1-tdep.c and
1467 * NEWS: Mention that support for alpha*-*-osf* has been removed.
1468 * ada-lang.h [__alpha__ && __osf__]
1469 (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Delete.
1470 * alpha-nat.c, alpha-osf1-tdep.c: Delete files.
1471 * alpha-tdep.c (alpha_gdbarch_init): Remove reference to
1473 * config/alpha/alpha-osf3.mh, config/alpha/nm-osf3.h: Delete
1475 * config/djgpp/fnchange.lst (config/alpha/alpha-osf1.mh)
1476 (config/alpha/alpha-osf2.mh, config/alpha/alpha-osf3.mh): Delete.
1477 * configure: Regenerate.
1478 * configure.ac: Remove references to osf.
1479 * configure.host: Handle alpha*-*-osf* in the obsolete hosts
1480 section. Remove all other references to osf.
1481 * configure.tgt: Add alpha*-*-osf* to the obsolete targets section.
1482 Remove all other references to osf.
1483 * dec-thread.c: Delete file.
1484 * defs.h (GDB_OSABI_OSF1): Delete.
1485 * inferior.h (START_INFERIOR_TRAPS_EXPECTED): New unconditionally
1487 * osabi.c (gdb_osabi_names): Delete "OSF/1".
1488 * procfs.c (procfs_debug_inferior) [PROCFS_DONT_TRACE_FAULTS]:
1490 (unconditionally_kill_inferior)
1491 [PROCFS_NEED_CLEAR_CURSIG_FOR_KILL]: Delete code.
1492 * solib-osf.c: Delete file.
1496 * remote.c (clear_threads_listing_context): Move higher up, out of
1497 the HAVE_LIBEXPAT guard.
1501 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers)
1502 (i386_darwin_store_inferior_registers): Sanitize gs and fs values
1507 * dec-thread.c (dec_thread_count_gdb_threads)
1508 (dec_thread_add_gdb_thread): Delete.
1509 (dec_thread_update_thread_list): Delete.
1510 (dec_thread_find_new_threads): Rename to ...
1511 (dec_thread_update_thread_list): ... this. Delete GDB-size
1512 threads that are no longer found in dec_thread_list.
1513 (resync_thread_list): Delete.
1514 (dec_thread_wait): Call dec_thread_update_thread_list instead of
1519 * gdbthread.h (ALL_NON_EXITED_THREADS_SAFE): New macro.
1520 * remote.c (remote_update_thread_list): Skip calling prune_threads
1521 if any thread listing method is supported, and instead walk over
1522 the set of remote threads listed, deleting those that are not
1523 found in GDB's thread list.
1527 * ada-tasks.c (print_ada_task_info, task_command_1): Adjust.
1528 * bsd-uthread.c (bsd_uthread_find_new_threads): Rename to ...
1529 (bsd_uthread_update_thread_list): ... this. Call prune_threads.
1530 (bsd_uthread_target): Adjust.
1531 * corelow.c (core_open): Adjust.
1532 * dec-thread.c (dec_thread_find_new_threads): Update comment.
1533 (dec_thread_update_thread_list): New function.
1534 (init_dec_thread_ops): Adjust.
1535 * gdbthread.h (prune_threads): New declaration.
1536 * linux-thread-db.c (thread_db_find_new_threads): Rename to ...
1537 (thread_db_update_thread_list): ... this. Call prune_threads.
1538 (init_thread_db_ops): Adjust.
1539 * nto-procfs.c (procfs_find_new_threads): Rename to ...
1540 (procfs_update_thread_list): ... this. Call prune_threads.
1541 (procfs_attach, procfs_create_inferior, init_procfs_targets):
1543 * obsd-nat.c (obsd_find_new_threads): Rename to ...
1544 (obsd_update_thread_list): ... this. Call prune_threads.
1545 (obsd_add_target): Adjust.
1546 * procfs.c (procfs_target): Adjust.
1547 (procfs_notice_thread): Update comment.
1548 (procfs_find_new_threads): Rename to ...
1549 (procfs_update_thread_list): ... this. Call prune_threads.
1550 * ravenscar-thread.c (ravenscar_update_inferior_ptid): Update
1552 (ravenscar_wait): Adjust.
1553 (ravenscar_find_new_threads): Rename to ...
1554 (ravenscar_update_thread_list): ... this. Call prune_threads.
1555 (init_ravenscar_thread_ops): Adjust.
1556 * record-btrace.c (record_btrace_find_new_threads): Rename to ...
1557 (record_btrace_update_thread_list): ... this. Adjust comment.
1558 (init_record_btrace_ops): Adjust.
1559 * remote.c (remote_threads_info): Rename to ...
1560 (remote_update_thread_list): ... this. Call prune_threads.
1561 (remote_start_remote, extended_remote_attach_1, init_remote_ops):
1563 * sol-thread.c (check_for_thread_db): Adjust.
1564 (sol_find_new_threads_callback): Rename to ...
1565 (sol_update_thread_list_callback): ... this.
1566 (sol_find_new_threads): Rename to ...
1567 (sol_update_thread_list): ... this. Call prune_threads. Adjust.
1568 (sol_get_ada_task_ptid, init_sol_thread_ops): Adjust.
1569 * target-delegates.c: Regenerate.
1570 * target.c (target_find_new_threads): Rename to ...
1571 (target_update_thread_list): ... this.
1572 * target.h (struct target_ops): Rename to_find_new_threads field
1573 to to_update_thread_list.
1574 (target_find_new_threads): Rename to ...
1575 (target_update_thread_list): ... this.
1576 * thread.c (prune_threads): Make extern.
1577 (update_thread_list): Adjust.
1581 * remote.c (remote_get_threadlist, remote_threadlist_iterator):
1582 Add describing comment. Return -1 if the qL packet is not
1584 (struct thread_item, thread_item_t): Move higher up in
1585 the file. Add comments.
1586 (struct threads_parsing_context): Move higher up in
1587 the file, add comments, and remote to ...
1588 (struct threads_listing_context): ... this.
1589 (remote_newthread_step): Don't add the thread to GDB's thread
1590 database here. Instead push it to the thread_listing_context
1592 (remote_find_new_threads): Rename to ...
1593 (remote_get_threads_with_ql): ... this. Add target_ops and
1594 targets_listing_context parameters. Pass down context.
1595 (start_thread): Adjust.
1596 (clear_threads_parsing_context): Rename to ...
1597 (clear_threads_listing_context): ... this.
1598 (remote_get_threads_with_qxfer): New, with parts salvaged from old
1599 remote_threads_info.
1600 (remote_get_threads_with_qthreadinfo): Ditto.
1601 (remote_threads_info): Reimplement.
1605 * infrun.c (resume): Don't force displaced-stepping for all
1606 single-steps on software single-stepping archs.
1610 * breakpoint.c (single_step_breakpoints): Delete global.
1611 (insert_single_step_breakpoint): Adjust to store the breakpoint
1612 pointer in the current thread.
1613 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1614 (cancel_single_step_breakpoints): Delete functions.
1615 (breakpoint_has_location_inserted_here): Make extern.
1616 (single_step_breakpoint_inserted_here_p): Adjust to walk the
1618 * breakpoint.h (breakpoint_has_location_inserted_here): New
1620 (single_step_breakpoints_inserted, remove_single_step_breakpoints)
1621 (cancel_single_step_breakpoints): Remove declarations.
1622 * gdbthread.h (struct thread_control_state)
1623 <single_step_breakpoints>: New field.
1624 (delete_single_step_breakpoints)
1625 (thread_has_single_step_breakpoints_set)
1626 (thread_has_single_step_breakpoint_here): New declarations.
1627 * infrun.c (follow_exec): Also clear the single-step breakpoints.
1628 (singlestep_breakpoints_inserted_p, singlestep_ptid)
1629 (singlestep_pc): Delete globals.
1630 (infrun_thread_ptid_changed): Remove references to removed
1632 (resume_cleanups): Delete the current thread's single-step
1634 (maybe_software_singlestep): Remove references to removed globals.
1635 (resume): Adjust to use thread_has_single_step_breakpoints_set and
1636 delete_single_step_breakpoints.
1637 (init_wait_for_inferior): Remove references to removed globals.
1638 (delete_thread_infrun_breakpoints): Delete the thread's
1639 single-step breakpoints too.
1640 (delete_just_stopped_threads_infrun_breakpoints): Don't delete
1641 single-step breakpoints here.
1642 (delete_stopped_threads_single_step_breakpoints): New function.
1643 (adjust_pc_after_break): Adjust to use
1644 thread_has_single_step_breakpoints_set.
1645 (handle_inferior_event): Remove references to removed globals.
1646 Use delete_stopped_threads_single_step_breakpoints.
1647 (handle_signal_stop): Adjust to per-thread single-step
1648 breakpoints. Swap test order to do cheaper tests first.
1649 (switch_back_to_stepped_thread): Extend debug output. Remove
1650 references to removed globals.
1651 * record-full.c (record_full_wait_1): Adjust to per-thread
1652 single-step breakpoints.
1653 * thread.c (delete_single_step_breakpoints)
1654 (thread_has_single_step_breakpoints_set)
1655 (thread_has_single_step_breakpoint_here): New functions.
1656 (clear_thread_inferior_resources): Also delete the thread's
1657 single-step breakpoints.
1661 * thread.c (delete_thread_breakpoint): New function.
1662 (delete_step_resume_breakpoint)
1663 (delete_exception_resume_breakpoint): Use it.
1664 (delete_at_next_stop): New function.
1665 (clear_thread_inferior_resources): Use delete_at_next_stop.
1669 * breakpoint.c (regular_breakpoint_inserted_here_p): Inline ...
1670 (breakpoint_inserted_here_p): ... here. Remove special case for
1671 software single-step breakpoints.
1672 (find_non_raw_software_breakpoint_inserted_here): Inline ...
1673 (software_breakpoint_inserted_here_p): ... here. Remove special
1674 case for software single-step breakpoints.
1675 (bp_target_info_copy_insertion_state)
1676 (deprecated_insert_raw_breakpoint)
1677 (deprecated_remove_raw_breakpoint): Delete functions.
1678 * breakpoint.h (deprecated_insert_raw_breakpoint)
1679 (deprecated_remove_raw_breakpoint): Remove declarations.
1684 * breakpoint.c (single_step_breakpoints, single_step_gdbarch):
1685 Delete array globals.
1686 (single_step_breakpoints): New global.
1687 (breakpoint_xfer_memory): Remove special handling for single-step
1689 (update_breakpoints_after_exec): Delete bp_single_step
1691 (detach_breakpoints): Remove special handling for single-step
1693 (breakpoint_init_inferior): Delete bp_single_step breakpoints.
1694 (bpstat_stop_status): Add comment.
1695 (bpstat_what, bptype_string, print_one_breakpoint_location)
1696 (adjust_breakpoint_address, init_bp_location): Handle
1698 (new_single_step_breakpoint): New function.
1699 (set_momentary_breakpoint, bkpt_remove_location): Remove special
1700 handling for single-step breakpoints.
1701 (insert_single_step_breakpoint, single_step_breakpoints_inserted)
1702 (remove_single_step_breakpoints, cancel_single_step_breakpoints):
1704 (detach_single_step_breakpoints, find_single_step_breakpoint):
1706 (breakpoint_has_location_inserted_here): New function.
1707 (single_step_breakpoint_inserted_here_p): Rewrite.
1708 * breakpoint.h: Remove FIXME.
1709 (enum bptype) <bp_single_step>: New enum value.
1710 (insert_single_step_breakpoint): Update comment.
1711 * infrun.c (resume_cleanups)
1712 (delete_step_thread_step_resume_breakpoint): Remove single-step
1714 (fetch_inferior_event): Install a cleanup that removes infrun
1716 (switch_back_to_stepped_thread) <expect thread advanced also>:
1717 Clear step-over info.
1721 * infrun.c (delete_step_resume_breakpoint_callback): Delete.
1722 (delete_thread_infrun_breakpoints): New function, with parts
1723 salvaged from delete_step_resume_breakpoint_callback.
1724 (delete_step_thread_step_resume_breakpoint): Delete.
1725 (for_each_just_stopped_thread_callback_func): New typedef.
1726 (for_each_just_stopped_thread): New function.
1727 (delete_just_stopped_threads_infrun_breakpoints): New function.
1728 (delete_step_thread_step_resume_breakpoint_cleanup): Rename to ...
1729 (delete_just_stopped_threads_infrun_breakpoints_cleanup):
1731 (wait_for_inferior, fetch_inferior_event): Adjust to renames.
1735 * breakpoint.c (should_be_inserted): Don't insert watchpoints if
1736 trying to step past a non-steppable watchpoint.
1737 * gdbthread.h (struct thread_info) <stepping_over_watchpoint>: New
1739 * infrun.c (struct step_over_info): Add new field
1740 'nonsteppable_watchpoint_p' and adjust comments.
1741 (set_step_over_info): New 'nonsteppable_watchpoint_p' parameter.
1743 (clear_step_over_info): Clear nonsteppable_watchpoint_p as well.
1744 (stepping_past_nonsteppable_watchpoint): New function.
1745 (step_over_info_valid_p): Also return true if stepping past a
1746 nonsteppable watchpoint.
1747 (proceed): Adjust call to set_step_over_info. Remove reference to
1749 (init_wait_for_inferior): Remove reference to init_infwait_state.
1750 (waiton_ptid): Delete global.
1751 (struct execution_control_state)
1752 <stepped_after_stopped_by_watchpoint>: Delete field.
1753 (wait_for_inferior, fetch_inferior_event): Always pass
1754 minus_one_ptid to target_wait.
1755 (init_thread_stepping_state): Clear 'stepping_over_watchpoint'
1757 (init_infwait_state): Delete function.
1758 (handle_inferior_event): Remove infwait_state handling.
1759 (handle_signal_stop) <watchpoints handling>: Adjust after
1760 stepped_after_stopped_by_watchpoint removal. Don't remove
1761 breakpoints here nor set infwait_state. Set the thread's
1762 stepping_over_watchpoint flag, and call keep_going instead.
1763 (keep_going): Handle stepping_over_watchpoint. Adjust
1764 set_step_over_info calls.
1765 * infrun.h (stepping_past_nonsteppable_watchpoint): Declare
1770 * infrun.c (step_over_info_valid_p): New function.
1771 (resume): Use step_over_info_valid_p instead of checking the
1772 threads's trap_expected flag.
1778 * python/lib/gdb/__init__.py (packages): Add "printer".
1779 * python/lib/gdb/command/bound_registers.py: Moved to ...
1780 * python/lib/gdb/printer/bound_registers.py: ... here.
1781 Add printer to global set of builtin printers. Rename printer from
1782 "bound" to "mpx_bound128".
1783 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
1784 registered as global "builtin" printer.
1785 (add_builtin_pretty_printer): New function.
1786 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
1787 gdb/printer/__init__.py.
1791 * Makefile.in (SFILES): Remove d-support.c.
1792 (COMMON_OBS): Remove d-support.o.
1793 * d-lang.h (d_parse_symbol): Remove declaration.
1794 * d-lang.c (d_demangle): Use gdb_demangle to demangle D symbols.
1795 * d-support.c: Remove file.
1799 * gdb/infrun.c (process_event_stop_test): Apply
1800 gdbarch_addr_bits_remove to longjmp resume address.
1804 * regformats/microblaze.dat: Delete file.
1808 * features/Makefile (microblaze-expedite): Replace pc with rpc.
1809 * regformats/microblaze-with-stack-protect.dat: Regenerate.
1813 * gnu-v3-abi.c (gnuv3_pass_by_reference): Treat dynamic classes
1820 * gnu-v3-abi.c (gnuv3_pass_by_reference): Lookup copy constructors
1821 with qualified args.
1825 * ada-lang.c (ada_evaluate_subexp) <BINOP_ADD>: Add handling
1826 of the case where the second operand is a pointer.
1827 <BINOP_SUB>: Likewise.
1831 * breakpoint.c (bkpt_probe_insert_location): Call set_semaphore
1832 only if it is not NULL.
1833 (bkpt_probe_remove_location): Likewise, for clear_semaphore.
1834 * probe.h (struct probe_ops) <set_semaphore>: Update comment.
1835 (struct probe_ops) <clear_semaphore>: Likewise.
1836 * tracepoint.c (start_tracing): Call set_semaphore only if it is
1838 (stop_tracing): Likewise, for clear_semaphore.
1842 * stap-probe.c (stap_parse_argument): Initialize expout explicitly
1843 using language_c, instead of current_language.
1847 * python/py-objfile.c (objfpy_initialize): New function.
1848 (objfpy_new, objfile_to_objfile_object): Call it.
1849 * python/py-progspace.c (pspy_initialize): New function.
1850 (pspy_new, pspace_to_pspace_object): Call it.
1855 Fix "save breakpoints" for "catch" command.
1856 * break-catch-sig.c (signal_catchpoint_print_recreate): Add trailing
1861 Fix "save breakpoints" for "disable $bpnum" command.
1862 * breakpoint.c (save_breakpoints): Add $bpnum for disable.
1866 * Makefile.in (ALL_TARGET_OBS): Remove mips-irix-tdep.o and solib-irix.o.
1867 (ALLDEPFILES): Remove mips-irix-tdep.c and solib-irix.c.
1868 (HFILES_NO_SRCDIR): Remove solib-irix.h.
1869 * NEWS: Mention that support for mips-sgi-irix5* mips-sgi-irix6*
1871 * config/mips/irix5.mh, config/mips/irix6.mh: Delete files.
1872 * configure.ac: Remove references to IRIX.
1873 * configure.host: Add *-*-irix* to the obsolete hosts section.
1874 Remove all other references to irix.
1875 * irix5-nat.c, mips-irix-tdep.c, solib-irix.c, solib-irix.h:
1880 * microblaze-tdep.c (microblaze_gdbarch_init): If the description
1881 isn't valid, release the tdesc arch data and return NULL.
1885 * linux-tdep.c: Include observer.h.
1886 (linux_inferior_data): New global.
1887 (struct linux_info): New structure.
1888 (invalidate_linux_cache_inf, linux_inferior_data_cleanup)
1889 (get_linux_inferior_data): New functions.
1890 (linux_vsyscall_range): Rename to ...
1891 (linux_vsyscall_range_raw): ... this.
1892 (linux_vsyscall_range): New function; handles caching.
1893 (_initialize_linux_tdep): Register linux_inferior_data. Install
1894 inferior_exit and inferior_appeared observers.
1900 * solib-svr4.c (svr4_read_so_list): Rename to ...
1901 (svr4_current_sos_1): ... this and change the function comment.
1902 (svr4_current_sos): New function.
1906 * arch-utils.c (default_vsyscall_range): New function.
1907 * arch-utils.h (default_vsyscall_range): New declaration.
1908 * gdbarch.sh (vsyscall_range): New hook.
1909 * gdbarch.h, gdbarch.c: Regenerate.
1910 * linux-tdep.c (linux_vsyscall_range): New function.
1911 (linux_init_abi): Install linux_vsyscall_range as
1912 vsyscall_range gdbarch hook.
1913 * memrange.c (address_in_mem_range): New function.
1914 * memrange.h (address_in_mem_range): New declaration.
1915 * symfile-mem.c (find_vdso_size): Delete function.
1916 (add_vsyscall_page): Use gdbarch_vsyscall_range.
1920 * infrun.c (normal_stop): Fix typo in comment.
1925 * xstorxstormy16-tdep.c (xstormy16_analyze_prologue): Fix possible
1926 typo when using logical AND to determine instruction type.
1930 * infrun.c (handle_signal_stop): Remove local variable
1935 * MAINTAINERS (GLOBAL MAINTAINERS): Add Yao Qi.
1939 * fbsd-tdep.c: Do not include string.h or gdb_assert.h.
1943 * common/common-defs.h: Include common-exceptions.h.
1944 * exceptions.h: Do not include common-exceptions.h.
1948 * common/common-defs.h: Include cleanups.h.
1949 * common/common-exceptions.c: Do not include cleanups.h.
1950 * utils.h: Likewise.
1954 * ada-lang.c: Do not include exceptions.h.
1955 * ada-valprint.c: Likewise.
1956 * amd64-tdep.c: Likewise.
1957 * auto-load.c: Likewise.
1958 * block.c: Likewise.
1959 * break-catch-throw.c: Likewise.
1960 * breakpoint.c: Likewise.
1961 * btrace.c: Likewise.
1962 * c-lang.c: Likewise.
1963 * cli/cli-cmds.c: Likewise.
1964 * cli/cli-interp.c: Likewise.
1965 * cli/cli-script.c: Likewise.
1966 * completer.c: Likewise.
1967 * corefile.c: Likewise.
1968 * corelow.c: Likewise.
1969 * cp-abi.c: Likewise.
1970 * cp-support.c: Likewise.
1971 * cp-valprint.c: Likewise.
1972 * darwin-nat.c: Likewise.
1973 * dwarf2-frame-tailcall.c: Likewise.
1974 * dwarf2-frame.c: Likewise.
1975 * dwarf2loc.c: Likewise.
1976 * dwarf2read.c: Likewise.
1978 * event-loop.c: Likewise.
1979 * event-top.c: Likewise.
1980 * f-valprint.c: Likewise.
1981 * frame-unwind.c: Likewise.
1982 * frame.c: Likewise.
1983 * gdbtypes.c: Likewise.
1984 * gnu-v2-abi.c: Likewise.
1985 * gnu-v3-abi.c: Likewise.
1986 * guile/scm-auto-load.c: Likewise.
1987 * guile/scm-breakpoint.c: Likewise.
1988 * guile/scm-cmd.c: Likewise.
1989 * guile/scm-frame.c: Likewise.
1990 * guile/scm-lazy-string.c: Likewise.
1991 * guile/scm-param.c: Likewise.
1992 * guile/scm-symbol.c: Likewise.
1993 * guile/scm-type.c: Likewise.
1994 * hppa-hpux-tdep.c: Likewise.
1995 * i386-tdep.c: Likewise.
1996 * inf-loop.c: Likewise.
1997 * infcall.c: Likewise.
1998 * infcmd.c: Likewise.
1999 * infrun.c: Likewise.
2000 * interps.c: Likewise.
2001 * interps.h: Likewise.
2003 * linespec.c: Likewise.
2004 * linux-nat.c: Likewise.
2005 * linux-thread-db.c: Likewise.
2006 * m32r-rom.c: Likewise.
2008 * memory-map.c: Likewise.
2009 * mi/mi-cmd-break.c: Likewise.
2010 * mi/mi-cmd-stack.c: Likewise.
2011 * mi/mi-interp.c: Likewise.
2012 * mi/mi-main.c: Likewise.
2013 * monitor.c: Likewise.
2014 * nto-procfs.c: Likewise.
2015 * objc-lang.c: Likewise.
2016 * p-valprint.c: Likewise.
2017 * parse.c: Likewise.
2018 * ppc-linux-tdep.c: Likewise.
2019 * printcmd.c: Likewise.
2020 * probe.c: Likewise.
2021 * python/py-auto-load.c: Likewise.
2022 * python/py-breakpoint.c: Likewise.
2023 * python/py-cmd.c: Likewise.
2024 * python/py-finishbreakpoint.c: Likewise.
2025 * python/py-frame.c: Likewise.
2026 * python/py-framefilter.c: Likewise.
2027 * python/py-function.c: Likewise.
2028 * python/py-gdb-readline.c: Likewise.
2029 * python/py-inferior.c: Likewise.
2030 * python/py-infthread.c: Likewise.
2031 * python/py-lazy-string.c: Likewise.
2032 * python/py-linetable.c: Likewise.
2033 * python/py-param.c: Likewise.
2034 * python/py-prettyprint.c: Likewise.
2035 * python/py-symbol.c: Likewise.
2036 * python/py-type.c: Likewise.
2037 * python/py-value.c: Likewise.
2038 * python/python-internal.h: Likewise.
2039 * python/python.c: Likewise.
2040 * record-btrace.c: Likewise.
2041 * record-full.c: Likewise.
2042 * regcache.c: Likewise.
2043 * remote-fileio.c: Likewise.
2044 * remote-mips.c: Likewise.
2045 * remote.c: Likewise.
2046 * rs6000-aix-tdep.c: Likewise.
2047 * rs6000-nat.c: Likewise.
2049 * solib-darwin.c: Likewise.
2050 * solib-dsbt.c: Likewise.
2051 * solib-frv.c: Likewise.
2052 * solib-ia64-hpux.c: Likewise.
2053 * solib-spu.c: Likewise.
2054 * solib-svr4.c: Likewise.
2055 * solib.c: Likewise.
2056 * spu-tdep.c: Likewise.
2057 * stack.c: Likewise.
2058 * stap-probe.c: Likewise.
2059 * symfile-mem.c: Likewise.
2060 * symmisc.c: Likewise.
2061 * target.c: Likewise.
2062 * thread.c: Likewise.
2064 * tracepoint.c: Likewise.
2065 * tui/tui-interp.c: Likewise.
2066 * typeprint.c: Likewise.
2067 * utils.c: Likewise.
2068 * valarith.c: Likewise.
2069 * valops.c: Likewise.
2070 * valprint.c: Likewise.
2071 * value.c: Likewise.
2072 * varobj.c: Likewise.
2073 * windows-nat.c: Likewise.
2074 * xml-support.c: Likewise.
2078 * mips-tdep.c (add_offset_16): Rewrite to implement what the
2080 (extended_mips16_next_pc): Update accordingly.
2084 * mips-tdep.c (mips16_instruction_is_compact_branch): New
2086 (micromips_instruction_is_compact_branch): Likewise.
2087 (mips16_scan_prologue): Terminate scanning upon seeing a branch
2088 or a compact jump, reaching a jump delay slot, or seeing a
2089 second non-prologue instruction.
2090 (micromips_scan_prologue): Also terminate scanning upon seeing a
2091 compact branch or jump, or reaching a branch or jump delay slot.
2092 (mips32_scan_prologue): Terminate scanning upon reaching a branch
2093 or jump delay slot, or seeing a second non-prologue instruction.
2094 (mips32_instruction_has_delay_slot): Retain instruction
2095 examination code only, update arguments accordingly and move
2096 instruction fetch pieces to...
2097 (mips32_insn_at_pc_has_delay_slot): ... this new function.
2098 (micromips_instruction_has_delay_slot): Likewise and to...
2099 (micromips_insn_at_pc_has_delay_slot): ... this new function.
2100 (mips16_instruction_has_delay_slot): Likewise and to...
2101 (mips16_insn_at_pc_has_delay_slot): ... this new function.
2102 (mips_single_step_through_delay): Update accordingly.
2103 (mips_adjust_breakpoint_address): Likewise.
2107 * mips-tdep.c (micromips_instruction_has_delay_slot): When
2108 !mustbe32 also return 1 for 32-bit instructions.
2109 (mips16_instruction_has_delay_slot): Likewise. Add an
2110 explanatory comment.
2114 * elfread.c (elf_symtab_read): Also mark solib trampoline minimal
2119 * breakpoint.h (bp_target_info): Add `reqstd_address' member,
2121 * breakpoint.c (one_breakpoint_xfer_memory): Use `reqstd_address'
2122 for the breakpoint's address. Don't preinitialize `placed_size'.
2123 (insert_bp_location): Set `reqstd_address' rather than
2125 (bp_target_info_copy_insertion_state): Also copy `placed_address'.
2126 (bkpt_insert_location): Use `reqstd_address' for the breakpoint's
2128 (bkpt_remove_location): Likewise.
2129 (deprecated_insert_raw_breakpoint): Likewise.
2130 (deprecated_remove_raw_breakpoint): Likewise.
2131 (find_single_step_breakpoint): Likewise.
2132 * mem-break.c (default_memory_insert_breakpoint): Use
2133 `reqstd_address' for the breakpoint's address. Don't set
2134 `placed_address' or `placed_size' if breakpoint contents couldn't
2135 have been determined.
2136 * remote.c (remote_insert_breakpoint): Use `reqstd_address' for
2137 the breakpoint's address.
2138 (remote_insert_hw_breakpoint): Likewise. Don't set
2139 `placed_address' or `placed_size' if breakpoint couldn't have been
2141 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Use
2142 `reqstd_address' for the breakpoint's address.
2143 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Likewise.
2144 * ia64-tdep.c (ia64_memory_insert_breakpoint): Likewise.
2145 * m32r-tdep.c (m32r_memory_insert_breakpoint): Likewise.
2146 * microblaze-linux-tdep.c
2147 (microblaze_linux_memory_remove_breakpoint): Likewise.
2148 * monitor.c (monitor_insert_breakpoint): Likewise.
2149 * nto-procfs.c (procfs_insert_breakpoint): Likewise.
2150 (procfs_insert_hw_breakpoint): Likewise.
2151 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Likewise.
2152 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
2153 * remote-m32r-sdi.c (m32r_insert_breakpoint): Likewise.
2154 * remote-mips.c (mips_insert_breakpoint): Likewise.
2155 * x86-nat.c (x86_insert_hw_breakpoint): Likewise.
2159 * valops.c (value_assign): Check for bit field assignments
2160 before calling architecture-specific register value
2161 conversion functions.
2165 * dbxread.c (read_dbx_symtab): Also ignore N_BNSYM/N_ENSYM.
2169 * breakpoint.c (breakpoints_should_be_inserted_now): Use
2170 threads_are_executing.
2171 * breakpoint.h (breakpoints_should_be_inserted_now): Add
2173 * gdbthread.h (threads_are_executing): Declare.
2174 (handle_signal_stop) <random signals>: Don't print about the
2175 signal here if stopping.
2176 (end_stepping_range): Don't notify observers here.
2177 (normal_stop): Update the thread list. If stopped by a random
2178 signal or a stepping range ended, notify observers.
2179 * thread.c (threads_executing): New global.
2180 (init_thread_list): Clear 'threads_executing'.
2181 (set_executing): Set or clear 'threads_executing'.
2182 (threads_are_executing): New function.
2183 (update_threads_executing): New function.
2184 (update_thread_list): Use it.
2188 PR breakpoints/17431
2189 * breakpoint.c (update_breakpoints_after_exec): Don't create
2190 overlay, longjmp, std terminate nor exception breakpoints here.
2194 * gdbthread.h (any_thread_of_process, any_live_thread_of_process):
2196 * inferior.c (find_inferior_for_program_space): Give preference to
2197 the current inferior.
2198 * inferior.h (find_inferior_for_program_space): Update comment.
2199 * progspace.c (switch_to_program_space_and_thread): Prefer the
2200 current inferior if it's bound to the program space requested. If
2201 the inferior found doesn't have a PID yet, don't bother looking up
2203 * progspace.h (switch_to_program_space_and_thread): Adjust
2205 * thread.c (any_thread_of_process, any_live_thread_of_process):
2206 Give preference to the current thread.
2210 * breakpoint.c (insert_bp_location): Error out if inserting a
2211 software breakpoint at a read-only address.
2212 * target.c (memory_xfer_check_region): New function, factored out
2214 (memory_xfer_partial_1): ... this. Make the 'reg_len' local a
2216 (target_xfer_partial) <TARGET_OBJECT_RAW_MEMORY>: Check the access
2217 against the memory region attributes.
2221 * NEWS: Announce new exit-code field in -list-thread-groups
2223 * inferior.c (exit_inferior_1): Don't clear exit code.
2224 (inferior_appeared): Clear exit code.
2225 * mi/mi-main.c (print_one_inferior): Add printing of the exit
2230 * features/Makefile ($(outdir)/%.dat): Output "THIS FILE IS
2231 GENERATED" along with emacs/vi read-only markers.
2232 * regformats/aarch64.dat: Regenerate.
2233 * regformats/arm-with-iwmmxt.dat: Regenerate.
2234 * regformats/arm-with-neon.dat: Regenerate.
2235 * regformats/arm-with-vfpv2.dat: Regenerate.
2236 * regformats/arm-with-vfpv3.dat: Regenerate.
2237 * regformats/i386/amd64-avx-linux.dat: Regenerate.
2238 * regformats/i386/amd64-avx.dat: Regenerate.
2239 * regformats/i386/amd64-avx512-linux.dat: Regenerate.
2240 * regformats/i386/amd64-avx512.dat: Regenerate.
2241 * regformats/i386/amd64-linux.dat: Regenerate.
2242 * regformats/i386/amd64-mpx-linux.dat: Regenerate.
2243 * regformats/i386/amd64-mpx.dat: Regenerate.
2244 * regformats/i386/amd64.dat: Regenerate.
2245 * regformats/i386/i386-avx-linux.dat: Regenerate.
2246 * regformats/i386/i386-avx.dat: Regenerate.
2247 * regformats/i386/i386-avx512-linux.dat: Regenerate.
2248 * regformats/i386/i386-avx512.dat: Regenerate.
2249 * regformats/i386/i386-linux.dat: Regenerate.
2250 * regformats/i386/i386-mmx-linux.dat: Regenerate.
2251 * regformats/i386/i386-mmx.dat: Regenerate.
2252 * regformats/i386/i386-mpx-linux.dat: Regenerate.
2253 * regformats/i386/i386-mpx.dat: Regenerate.
2254 * regformats/i386/i386.dat: Regenerate.
2255 * regformats/i386/x32-avx-linux.dat: Regenerate.
2256 * regformats/i386/x32-avx.dat: Regenerate.
2257 * regformats/i386/x32-avx512-linux.dat: Regenerate.
2258 * regformats/i386/x32-avx512.dat: Regenerate.
2259 * regformats/i386/x32-linux.dat: Regenerate.
2260 * regformats/i386/x32.dat: Regenerate.
2261 * regformats/microblaze-with-stack-protect.dat: Regenerate.
2262 * regformats/mips-dsp-linux.dat: Regenerate.
2263 * regformats/mips-linux.dat: Regenerate.
2264 * regformats/mips64-dsp-linux.dat: Regenerate.
2265 * regformats/mips64-linux.dat: Regenerate.
2266 * regformats/nios2-linux.dat: Regenerate.
2267 * regformats/rs6000/powerpc-32.dat: Regenerate.
2268 * regformats/rs6000/powerpc-32l.dat: Regenerate.
2269 * regformats/rs6000/powerpc-64l.dat: Regenerate.
2270 * regformats/rs6000/powerpc-altivec32l.dat: Regenerate.
2271 * regformats/rs6000/powerpc-altivec64l.dat: Regenerate.
2272 * regformats/rs6000/powerpc-cell32l.dat: Regenerate.
2273 * regformats/rs6000/powerpc-cell64l.dat: Regenerate.
2274 * regformats/rs6000/powerpc-e500l.dat: Regenerate.
2275 * regformats/rs6000/powerpc-vsx32l.dat: Regenerate.
2276 * regformats/rs6000/powerpc-vsx64l.dat: Regenerate.
2277 * regformats/s390-linux32.dat: Regenerate.
2278 * regformats/s390-linux32v1.dat: Regenerate.
2279 * regformats/s390-linux32v2.dat: Regenerate.
2280 * regformats/s390-linux64.dat: Regenerate.
2281 * regformats/s390-linux64v1.dat: Regenerate.
2282 * regformats/s390-linux64v2.dat: Regenerate.
2283 * regformats/s390-te-linux64.dat: Regenerate.
2284 * regformats/s390x-linux64.dat: Regenerate.
2285 * regformats/s390x-linux64v1.dat: Regenerate.
2286 * regformats/s390x-linux64v2.dat: Regenerate.
2287 * regformats/s390x-te-linux64.dat: Regenerate.
2288 * regformats/tic6x-c62x-linux.dat: Regenerate.
2289 * regformats/tic6x-c62x.dat: Regenerate.
2290 * regformats/tic6x-c64x-linux.dat: Regenerate.
2291 * regformats/tic6x-c64x.dat: Regenerate.
2292 * regformats/tic6x-c64xp-linux.dat: Regenerate.
2293 * regformats/tic6x-c64xp.dat: Regenerate.
2297 * features/Makefile: Update comments.
2298 (XMLTOC): List all xml files we build C files from.
2299 (clean-cfiles): New rule.
2303 * features/i386/amd64-avx512-linux.c: Regenerate.
2304 * features/i386/amd64-avx512.c: Regenerate.
2305 * features/i386/x32-avx512-linux.c: Regenerate.
2306 * features/i386/x32-avx512.c: Regenerate.
2310 * features/Makefile (WHICH): Remove arm-with-m,
2311 arm-with-m-fpa-layout and arm-with-m-vfp-d16.
2315 * features/Makefile (clean): New rule.
2319 * features/i386/64bit-avx512.xml (zmm10h, zmm11h, zmm12h, zmm13h)
2320 (zmm14h): Add missing end quotes.
2324 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
2325 * features/aarch64.c: Regenerate.
2329 * inf-ptrace.c (inf_ptrace_follow_fork): Remove target-independent
2330 code so as to work with follow_fork_inferior.
2331 * inf-ttrace.c (inf_ttrace_follow_fork): Ditto.
2332 (inf_ttrace_create_inferior): Remove reference to
2333 inf_ttrace_vfork_ppid.
2334 (inf_ttrace_attach): Ditto.
2335 (inf_ttrace_detach): Ditto.
2336 (inf_ttrace_kill): Use current_inferior instead of
2337 inf_ttrace_vfork_ppid.
2338 (inf_ttrace_wait): Eliminate use of inf_ttrace_vfork_ppid, report
2339 TARGET_WAITKIND_VFORK_DONE event, delete HACK that switched the
2340 inferior away from the parent.
2341 * infrun.c (follow_fork): Call follow_fork_inferior instead of
2343 (follow_fork_inferior): New function.
2344 (follow_inferior_reset_breakpoints): Make function static.
2345 * infrun.h (follow_inferior_reset_breakpoints): Remove declaration.
2346 * linux-nat.c (linux_child_follow_fork): Move target-independent
2347 code to infrun.c:follow_fork_inferior.
2351 * gdbarch.sh (regset_from_core_section): Remove gdbarch method.
2352 * gdbarch.c: Regenerate.
2353 * gdbarch.h: Likewise.
2354 * corelow.c (sniff_core_bfd): Drop presence check for deleted
2355 gdbarch method 'regset_from_core_section'.
2356 (get_core_register_section): Remove handling for the case that
2357 regset == NULL and regset_from_core_section is defined.
2358 (get_core_registers): Drop check for deleted method.
2359 * procfs.c (procfs_do_thread_registers): Adjust comment.
2363 * linux-nat.c (linux_nat_collect_thread_registers): Remove.
2364 (linux_nat_make_corefile_notes): Remove.
2365 (linux_target_install_ops): Do not set target method
2366 'make_corefile_notes'.
2367 * linux-tdep.c (struct linux_corefile_thread_data)<collect>:
2369 (linux_corefile_thread_callback): Instead of args->collect, call
2370 linux_collect_thread_registers.
2371 (linux_make_corefile_notes): Remove 'collect' parameter. Return
2372 NULL unless there is a regset iterator.
2373 (linux_make_corefile_notes_1): Remove.
2374 (linux_init_abi): Replace reference to linux_make_corefile_notes_1
2375 by linux_make_corefile_notes.
2376 * linux-tdep.h (linux_make_corefile_notes): Remove prototype.
2380 * fbsd-nat.c (find_signalled_thread, find_stop_signal)
2381 (fbsd_collect_regset_section_cb, fbsd_make_corefile_notes):
2383 * fbsd-nat.h (fbsd_make_corefile_notes): Remove prototype.
2387 * xtensa-tdep.c (xtensa_regset_from_core_section): Remove.
2388 (xtensa_iterate_over_regset_sections): New.
2389 (xtensa_gdbarch_init): Adjust gdbarch initialization.
2393 * vax-tdep.c (vax_regset_from_core_section): Remove.
2394 (vax_iterate_over_regset_sections): New.
2395 (vax_gdbarch_init): Adjust gdbarch initialization.
2399 * tilegx-linux-tdep.c (TILEGX_LINUX_SIZEOF_GREGSET): New macro.
2400 (tilegx_regset_from_core_section): Remove.
2401 (tilegx_iterate_over_regset_sections): New.
2402 (tilegx_linux_init_abi): Adjust gdbarch initialization.
2406 * sparc-tdep.c (sparc_regset_from_core_section): Remove.
2407 (sparc_iterate_over_regset_sections): New.
2408 (sparc32_gdbarch_init): Adjust gdbarch initialization.
2409 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for SPARC FreeBSD
2411 * sparc64fbsd-tdep.c (fbsd-tdep.h): Include.
2412 (sparc64fbsd_init_abi): Call fbsd_init_abi.
2413 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Do not set
2414 target method 'make_corefile_notes'.
2418 * sh-linux-tdep.c (sh_linux_init_abi): Set tdep fields
2419 'sizeof_gregset' and 'sizeof_fpregset'.
2420 * sh-tdep.c (sh_regset_from_core_section): Remove.
2421 (sh_iterate_over_regset_sections): New.
2422 (sh_gdbarch_init): Adjust gdbarch initialization.
2423 * sh-tdep.h (struct gdbarch_tdep): New fields sizeof_gregset and
2425 * shnbsd-tdep.c (shnbsd_init_abi): Set tdep field
2430 * score-tdep.c (score7_linux_regset_from_core_section): Remove.
2431 (score7_linux_iterate_over_regset_sections): New.
2432 (score_gdbarch_init): Adjust gdbarch initialization.
2436 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for PowerPC
2438 * ppcfbsd-nat.c (_initialize_ppcfbsd_nat): Do not set target
2439 method 'make_corefile_notes'.
2440 * ppcfbsd-tdep.c (fbsd-tdep.h): Include.
2441 (ppcfbsd_regset_from_core_section): Remove.
2442 (ppcfbsd_iterate_over_regset_sections): New.
2443 (ppcfbsd_init_abi): Call fbsd_init_abi. Adjust gdbarch
2445 * ppcnbsd-tdep.c (ppcnbsd_regset_from_core_section): Remove.
2446 (ppcnbsd_iterate_over_regset_sections): New.
2447 (ppcnbsd_init_abi): Adjust.
2448 * ppcobsd-tdep.c (ppcobsd_regset_from_core_section): Remove.
2449 (ppcobsd_iterate_over_regset_sections): New.
2450 (ppcobsd_init_abi): Adjust.
2451 * rs6000-aix-tdep.c (rs6000_aix_regset_from_core_section): Remove.
2452 (rs6000_aix_iterate_over_regset_sections): New.
2453 (rs6000_aix_init_osabi): Adjust.
2457 * nios2-linux-tdep.c (NIOS2_GREGS_SIZE): New macro.
2458 (nios2_regset_from_core_section): Remove.
2459 (nios2_iterate_over_regset_sections): New.
2460 (nios2_linux_init_abi): Adjust gdbarch initialization.
2464 * mn10300-linux-tdep.c (am33_regset_from_core_section): Remove.
2465 (am33_iterate_over_regset_sections): New.
2466 (am33_linux_init_osabi): Adjust gdbarch initialization.
2470 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Remove.
2471 (mips_linux_iterate_over_regset_sections): New.
2472 (mips_linux_init_abi): Adjust gdbarch initialization.
2473 * mips64obsd-tdep.c (mips64obsd_regset_from_core_section): Remove.
2474 (mips64obsd_iterate_over_regset_sections): New.
2475 (mips64obsd_init_abi): Adjust.
2476 * mipsnbsd-tdep.c (mipsnbsd_regset_from_core_section): Remove.
2477 (mipsnbsd_iterate_over_regset_sections): New.
2478 (mipsnbsd_init_abi): Adjust.
2482 * m88k-tdep.c (m88k_regset_from_core_section): Remove.
2483 (m88k_iterate_over_regset_sections): New.
2484 (m88k_gdbarch_init): Adjust gdbarch initialization.
2488 * ia64-linux-tdep.c (ia64_linux_regset_from_core_section): Remove.
2489 (ia64_linux_iterate_over_regset_sections): New.
2490 (ia64_linux_init_abi): Adjust gdbarch initialization.
2494 * m68kbsd-tdep.c (m68kbsd_regset_from_core_section): Remove.
2495 (m68kbsd_iterate_over_regset_sections): New.
2496 (m68kbsd_init_abi): Adjust gdbarch initialization.
2497 * m68klinux-tdep.c (m68k_linux_regset_from_core_section): Remove.
2498 (m68k_linux_iterate_over_regset_sections): New.
2499 (m68k_linux_init_abi): Adjust gdbarch initialization.
2503 * m32r-linux-tdep.c (M32R_LINUX_GREGS_SIZE): New macro.
2504 (m32r_linux_regset_from_core_section): Remove.
2505 (m32r_linux_iterate_over_regset_sections): New.
2506 (m32r_linux_init_abi): Adjust gdbarch initialization.
2510 * amd64obsd-tdep.c (amd64obsd_regset_from_core_section): Remove.
2511 (amd64obsd_iterate_over_regset_sections): New.
2512 (amd64obsd_core_init_abi): Adjust gdbarch initialization.
2513 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
2515 (i386_cygwin_init_abi): Clear tdep->sizeof_fpregset. Drop
2516 regset_from_core_section initialization.
2517 * i386-tdep.c (i386_regset_from_core_section): Remove.
2518 (i386_iterate_over_regset_sections): New.
2519 (i386_gdbarch_init): Adjust gdbarch initialization.
2520 * i386-tdep.h (i386_regset_from_core_section): Remove prototype.
2521 (i386_iterate_over_regset_sections): New prototype.
2522 * i386obsd-tdep.c (i386obsd_aout_regset_from_core_section):
2524 (i386obsd_aout_iterate_over_regset_sections): New.
2525 (i386obsd_aout_init_abi): Adjust gdbarch initialization.
2526 * configure.tgt (gdb_target_obs): Add fbsd-tdep.o for all x86 FreeBSD
2528 * amd64fbsd-tdep.c (fbsd-tdep.h): Include.
2529 (amd64fbsd_init_abi): Call fbsd_init_abi.
2530 * i386fbsd-tdep.c (fbsd-tdep.h): Include.
2531 (i386fbsd4_init_abi): Call fbsd_init_abi.
2532 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): No longer set
2533 target method 'make_corefile_notes'.
2534 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Likewise.
2538 * hppa-hpux-tdep.c (hppa_hpux_regset_from_core_section): Remove.
2539 (hppa_hpux_iterate_over_regset_sections): New.
2540 (hppa_hpux_init_abi): Adjust gdbarch initialization.
2541 * hppa-linux-tdep.c (hppa_linux_regset_from_core_section): Remove.
2542 (hppa_linux_iterate_over_regset_sections): New.
2543 (hppa_linux_init_abi): Adjust.
2544 * hppanbsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2545 (hppanbsd_iterate_over_regset_sections): New.
2546 (hppanbsd_init_abi): Adjust.
2547 * hppaobsd-tdep.c (hppaobsd_regset_from_core_section): Remove.
2548 (hppaobsd_iterate_over_regset_sections): New.
2549 (hppaobsd_init_abi): Adjust.
2553 * frv-linux-tdep.c (frv_linux_regset_from_core_section): Remove.
2554 (frv_linux_iterate_over_regset_sections): New.
2555 (frv_linux_init_abi): Adjust gdbarch initialization.
2559 * arm-tdep.h (armbsd_regset_from_core_section): Remove prototype.
2560 (armbsd_iterate_over_regset_sections): New prototype.
2561 * armbsd-tdep.c (armbsd_regset_from_core_section): Remove.
2562 (armbsd_iterate_over_regset_sections): New.
2563 * armobsd-tdep.c (armobsd_init_abi): Adjust gdbarch
2568 * alpha-linux-tdep.c (alpha_linux_regset_from_core_section): Remove.
2569 (alpha_linux_iterate_over_regset_sections): New.
2570 (alpha_linux_init_abi): Adjust gdbarch initialization.
2571 * alphabsd-tdep.h (alphanbsd_regset_from_core_section): Remove
2573 (alphanbsd_iterate_over_regset_sections): New prototype.
2577 * aarch64-linux-tdep.c (aarch64_linux_regset_from_core_section):
2579 (aarch64_linux_iterate_over_regset_sections): New.
2580 (aarch64_linux_init_abi): Adjust gdbarch initialization.
2584 * fbsd-tdep.c: New file.
2585 * fbsd-tdep.h: New file.
2586 * Makefile.in (ALL_TARGET_OBS): Add fbsd-tdep.o.
2587 (HFILES_NO_SRCDIR): Add fbsd-tdep.h.
2588 (ALLDEPFILES): Add fbsd-tdep.c.
2592 * gdbarch.sh (iterate_over_regset_sections_cb): Add regset
2594 * gdbarch.h: Regenerate.
2595 * corelow.c (sniff_core_bfd): Don't sniff if gdbarch has a regset
2597 (get_core_register_section): Add parameter 'regset' and use it, if
2598 set. Add parameter 'min_size' and verify the bfd section size
2600 (get_core_registers_cb): Add parameter 'regset' and pass it to
2601 get_core_register section. For the "standard" register sections
2602 ".reg" and ".reg2", set an appropriate default for human_name.
2603 (get_core_registers): Don't abort when the gdbarch has an iterator
2604 but no regset_from_core_section. Add NULL/0 for parameters
2605 'regset'/'min_size' in calls to get_core_register_section.
2606 * linux-tdep.c (linux_collect_regset_section_cb): Add parameter
2607 'regset' and use it instead of calling the
2608 regset_from_core_section gdbarch method.
2609 * i386-tdep.h (struct gdbarch_tdep): Add field 'fpregset'.
2610 * i386-tdep.c (i386_supply_xstateregset)
2611 (i386_collect_xstateregset, i386_xstateregset): Moved to
2613 (i386_regset_from_core_section): Drop handling for .reg-xfp and
2615 (i386_gdbarch_init): Set tdep field 'fpregset'. Enable generic
2616 core file support only if the regset iterator hasn't been set.
2617 * i386-linux-tdep.c (i386_linux_supply_xstateregset)
2618 (i386_linux_collect_xstateregset, i386_linux_xstateregset): New.
2619 Moved from i386-tdep.c and renamed to *_linux*.
2620 (i386_linux_iterate_over_regset_sections): Add regset parameter to
2621 each callback invocation. Allow any .reg-xstate size when reading
2623 * amd64-tdep.c (amd64_supply_xstateregset)
2624 (amd64_collect_xstateregset, amd64_xstateregset): Moved to
2626 (amd64_regset_from_core_section): Remove.
2627 (amd64_init_abi): Set new tdep field 'fpregset'. No longer
2628 install an amd64-specific regset_from_core_section gdbarch method.
2629 * amd64-linux-tdep.c (amd64_linux_supply_xstateregset)
2630 (amd64_linux_collect_xstateregset, amd64_linux_xstateregset): New.
2631 Moved from amd64-tdep.c and renamed to *_linux*.
2632 (amd64_linux_iterate_over_regset_sections): Add regset parameter
2633 to each callback invocation. Allow any .reg-xstate size when
2634 reading from a core file.
2635 * arm-linux-tdep.c (arm_linux_regset_from_core_section): Remove.
2636 (arm_linux_iterate_over_regset_sections): Add regset parameter to
2637 each callback invocation.
2638 (arm_linux_init_abi): No longer set the regset_from_core_section
2640 * ppc-linux-tdep.c (ppc_linux_regset_from_core_section): Remove.
2641 (ppc_linux_iterate_over_regset_sections): Add regset parameter to
2642 each callback invocation.
2643 (ppc_linux_init_abi): No longer set the regset_from_core_section
2645 * s390-linux-tdep.c (struct gdbarch_tdep): Remove the fields
2646 gregset, sizeof_gregset, fpregset, and sizeof_fpregset.
2647 (s390_regset_from_core_section): Remove.
2648 (s390_iterate_over_regset_sections): Add regset parameter to each
2649 callback invocation.
2650 (s390_gdbarch_init): No longer set the regset_from_core_section
2651 gdbarch method. Drop initialization of deleted tdep fields.
2655 * amd64-linux-tdep.c (amd64_linux_regset_sections): Remove.
2656 (amd64_linux_iterate_over_regset_sections): New.
2657 (amd64_linux_init_abi_common): Don't install the regset section
2658 list, but the new iterator in gdbarch.
2659 * arm-linux-tdep.c (arm_linux_fpa_regset_sections)
2660 (arm_linux_vfp_regset_sections): Remove. Move combined logic...
2661 (arm_linux_iterate_over_regset_sections): ...here. New function.
2662 (arm_linux_init_abi): Set iterator instead of section list.
2663 * corelow.c (get_core_registers_cb): New function, logic moved
2665 (get_core_registers): ...loop body here. Use new iterator method
2666 instead of walking through the regset section list.
2667 * gdbarch.sh: Remove 'core_regset_sections'. New method
2668 'iterate_over_regset_sections'. New typedef
2669 'iterate_over_regset_sections_cb'.
2670 * gdbarch.c: Regenerate.
2671 * gdbarch.h: Likewise.
2672 * i386-linux-tdep.c (i386_linux_regset_sections)
2673 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
2675 (i386_linux_iterate_over_regset_sections): New.
2676 (i386_linux_init_abi): Don't choose a regset section list, but
2677 install new iterator in gdbarch.
2678 * linux-tdep.c (struct linux_collect_regset_section_cb_data): New.
2679 (linux_collect_regset_section_cb): New function, logic moved
2681 (linux_collect_thread_registers): ...loop body here. Use iterator
2682 method instead of walking through list.
2683 (linux_make_corefile_notes_1): Check for presence of iterator
2684 method instead of regset section list.
2685 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections)
2686 (ppc_linux_vmx_regset_sections, ppc_linux_fp_regset_sections)
2687 (ppc64_linux_vsx_regset_sections, ppc64_linux_vmx_regset_sections)
2688 (ppc64_linux_fp_regset_sections): Remove. Move combined logic...
2689 (ppc_linux_iterate_over_regset_sections): ...here. New function.
2690 (ppc_linux_init_abi): Don't choose from above regset section
2691 lists, but install new iterator in gdbarch.
2692 * regset.h (struct core_regset_section): Remove.
2693 * s390-linux-tdep.c (struct gdbarch_tdep): Add new fields
2694 have_linux_v1, have_linux_v2, and have_tdb.
2695 (s390_linux32_regset_sections, s390_linux32v1_regset_sections)
2696 (s390_linux32v2_regset_sections, s390_linux64_regset_sections)
2697 (s390_linux64v1_regset_sections, s390_linux64v2_regset_sections)
2698 (s390x_linux64_regset_sections, s390x_linux64v1_regset_sections)
2699 (s390x_linux64v2_regset_sections): Remove. Move combined logic...
2700 (s390_iterate_over_regset_sections): ...here. New function. Use
2702 (s390_gdbarch_init): Set new tdep fields. Don't choose from above
2703 regset section lists, but install new iterator.
2707 * solib-svr4.c (svr4_parse_libraries): Use "library-list-svr4.dtd".
2711 * progspace.c (print_program_space): Don't prune program spaces
2712 before printing them.
2716 * infrun.c (user_visible_resume_ptid): Don't check
2717 singlestep_breakpoints_inserted_p.
2721 * breakpoint.c (should_be_inserted): Add debug output.
2725 * infrun.c (stepping_past_instruction_at)
2726 (clear_exit_convenience_vars): Point at infrun.h instead of
2728 (handle_signal_stop): Fix typo.
2732 * arm-tdep.c (thumb_in_function_epilogue_p): Fix typo in the
2737 * target.c (target_stop): Updated comment.
2741 * target/target.h (target_stop_ptid): Renamed as...
2742 (target_stop_and_wait): New function. Updated comment.
2744 (target_continue_ptid): Renamed as...
2745 (target_continue_no_signal): New function. Updated comment.
2750 * NEWS: Mention merge of "breakpoint always-inserted" modes "off"
2752 * breakpoint.c (enum ugll_insert_mode): New enum.
2753 (always_inserted_mode): Now a plain boolean.
2754 (show_always_inserted_mode): No longer handle AUTO_BOOLEAN_AUTO.
2755 (breakpoints_always_inserted_mode): Delete.
2756 (breakpoints_should_be_inserted_now): New function.
2757 (insert_breakpoints): Pass UGLL_INSERT to
2758 update_global_location_list instead of calling
2759 insert_breakpoint_locations manually.
2760 (create_solib_event_breakpoint_1): New, factored out from ...
2761 (create_solib_event_breakpoint): ... this.
2762 (create_and_insert_solib_event_breakpoint): Use
2763 create_solib_event_breakpoint_1 instead of calling
2764 insert_breakpoint_locations manually.
2765 (update_global_location_list): Change parameter type from boolean
2766 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2767 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2768 (update_global_location_list_nothrow): Change parameter type from
2769 boolean to enum ugll_insert_mode.
2770 (_initialize_breakpoint): "breakpoint always-inserted" option is
2771 now a boolean command. Update help text.
2772 * breakpoint.h (breakpoints_always_inserted_mode): Delete declaration.
2773 (breakpoints_should_be_inserted_now): New declaration.
2774 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
2775 Remove breakpoints_always_inserted_mode check.
2776 (normal_stop): Adjust to use breakpoints_should_be_inserted_now.
2777 * remote.c (remote_start_remote): Likewise.
2781 * breakpoint.c (enum ugll_insert_mode): Add UGLL_INSERT.
2782 (insert_breakpoints): Don't call insert_breakpoint_locations here.
2783 Instead, pass UGLL_INSERT to update_global_location_list.
2784 (update_global_location_list): Change parameter type from boolean
2785 to enum ugll_insert_mode. All callers adjusted. Adjust to use
2786 breakpoints_should_be_inserted_now and handle UGLL_INSERT.
2787 (create_solib_event_breakpoint_1): New, factored out from ...
2788 (create_solib_event_breakpoint): ... this.
2789 (create_and_insert_solib_event_breakpoint): Use
2790 create_solib_event_breakpoint_1 instead of calling
2791 insert_breakpoint_locations manually.
2792 (update_global_location_list): Handle UGLL_INSERT.
2796 * breakpoint.c (enum ugll_insert_mode): New enum.
2797 (update_global_location_list)
2798 (update_global_location_list_nothrow): Change parameter type from
2799 boolean to enum ugll_insert_mode. All callers adjusted.
2803 * MAINTAINERS: Add Sergio Durigan Junior as maintainer of
2804 SystemTap support in GDB.
2808 * linux-nat.c (linux_handle_extended_wait): Call
2809 linux_ptrace_get_extended_event.
2810 (wait_lwp): Call linux_is_extended_waitstatus.
2811 (linux_nat_filter_event): Call linux_ptrace_get_extended_event
2812 and linux_is_extended_waitstatus.
2813 * nat/linux-ptrace.c (linux_test_for_tracefork): Call
2814 linux_ptrace_get_extended_event.
2815 (linux_ptrace_get_extended_event): New function.
2816 (linux_is_extended_waitstatus): New function.
2817 * nat/linux-ptrace.h (linux_ptrace_get_extended_event)
2818 (linux_is_extended_waitstatus): New declarations.
2822 * dwarf2read.c (dwarf_decode_lines): Update declaration.
2823 (handle_DW_AT_stmt_list): Add argument 'lowpc'. Update
2824 comments. Callers update.
2825 (dwarf_decode_lines): Likewise.
2826 (dwarf_decode_lines_1): Add argument 'lowpc'. Update
2827 comments. Skip the line table if 'lowpc' is greater than
2828 'address'. Don't check
2829 dwarf2_per_objfile->has_section_at_zero.
2833 * NEWS: Mention new "producer" attribute of gdb.Symtab.
2834 * python/py-symtab.c (stpy_get_producer): New function.
2835 (symtab_object_getset): Add "producer" attribute.
2840 * corefile.c (struct captured_read_memory_integer_arguments): Remove.
2841 (do_captured_read_memory_integer): Remove.
2842 (safe_read_memory_integer): Use target_read_memory directly instead
2843 of catching errors in do_captured_read_memory_integer.
2847 * CONTRIBUTE (Coding Standards): For internals refer to wiki,
2852 * objc-lang.c (find_implementation_from_class): Remove dead code.
2857 * linux-nat.c (linux_nat_wait_1): Replace "fprintf (stderr..." by
2858 "fprintf_unfiltered (gdb_stdlog...)".
2862 PR breakpoints/12526
2863 * breakpoint.h (struct watchpoint): New fields val_bitpos and
2865 * breakpoint.c (watch_command_1): Use these fields to retain
2866 bitfield information.
2867 (extract_bitfield_from_watchpoint_value): New function.
2868 (watchpoint_check): Use it.
2869 (update_watchpoint): Use it. Optimize the address and length of a
2870 HW watchpoint pointing to a bitfield.
2871 * value.h (unpack_value_bitfield): New prototype.
2872 * value.c (unpack_value_bitfield): Make extern.
2876 * config/i386/i386gnu.mh (NATDEPFILES): Add x86-nat.o and
2878 * gnu-nat.c (inf_threads): New function.
2879 * gnu-nat.h (inf_threads_ftype): New typedef.
2880 (inf_threads): New declaration.
2881 * i386gnu-nat.c: Include "x86-nat.h" and "inf-child.h".
2882 [i386_DEBUG_STATE] (i386_gnu_dr_get, i386_gnu_dr_set)
2883 (i386_gnu_dr_set_control_one, i386_gnu_dr_set_control)
2884 (i386_gnu_dr_set_addr_one, i386_gnu_dr_set_addr)
2885 (i386_gnu_dr_get_reg, i386_gnu_dr_get_addr, 386_gnu_dr_get_status)
2886 (i386_gnu_dr_get_control): New functions.
2887 (reg_addr): New structure.
2888 (_initialize_i386gnu_nat) [i386_DEBUG_STATE]: Initialize hardware
2889 i386 debugging register hooks.
2890 * NEWS: Mention this.
2894 * arm-tdep.c (arm_record_vdata_transfer_insn): Added record handler for
2895 vector data transfer instructions.
2896 (arm_record_coproc_data_proc): Updated.
2900 * arm-tdep.c (arm_record_asimd_vfp_coproc): Replace stub handler with
2901 arm_record_exreg_ld_st_insn.
2902 (arm_record_exreg_ld_st_insn): Add record handler for ex-register
2907 * arm-tdep.c (arm_record_coproc_data_proc): Updated.
2908 (arm_record_vfp_data_proc_insn): Added record handler for VFP data
2909 processing instructions.
2913 * arm-tdep.c (thumb2_record_asimd_struct_ld_st): Add record handler
2914 for advance SIMD struct ld/st insn.
2915 (thumb2_record_decode_insn_handler): Replace stub handler with
2916 thumb2_record_asimd_struct_ld_st.
2920 * arm-tdep.c (arm_record_coproc_data_proc): Add record handler stubs
2921 for asimd, vfp and coprocessor insns.
2922 (arm_record_asimd_vfp_coproc): Add record handler for asimd, vfp
2923 and coprocessor insns.
2924 (thumb2_record_coproc_insn): New function.
2925 (thumb2_record_decode_insn_handler): Update coprocessor insns record
2927 (decode_insn): Install arm_record_asimd_vfp_coproc as handler for
2932 * NEWS: Mention new "queue-signal" command.
2933 * infcmd.c (queue_signal_command): New function.
2934 (_initialize_infcmd): Add new queue-signal command.
2938 * linux-nat.c (wait_lwp): Add debugging printf.
2939 (linux_nat_wait_1): Ditto.
2943 * breakpoint.c (remove_solib_event_breakpoints_at_next_stop)
2944 (create_and_insert_solib_event_breakpoint): New functions.
2945 * breakpoint.h (create_and_insert_solib_event_breakpoint)
2946 (remove_solib_event_breakpoints_at_next_stop): New declarations.
2947 * procfs.c (dbx_link_bpt_addr, dbx_link_bpt): Delete globals.
2948 (remove_dbx_link_breakpoint): Delete function.
2949 (insert_dbx_link_bpt_in_file): Use
2950 create_and_insert_solib_event_breakpoint instead of
2951 deprecated_insert_raw_breakpoint.
2952 (procfs_wait): Don't check whether we hit __dbx_link here.
2953 (procfs_mourn_inferior): Don't delete the __dbx_link breakpoint
2955 * solib-irix.c (base_breakpoint): Delete global.
2956 (disable_break): Delete function.
2957 (enable_break): Use create_solib_event_breakpoint
2958 instead of deprecated_insert_raw_breakpoint.
2959 (irix_solib_handle_event): New function.
2960 (irix_solib_create_inferior_hook): Don't run the target or disable
2961 the mapping-complete breakpoint here.
2962 (_initialize_irix_solib): Install irix_solib_handle_event as
2963 so_ops->handle_event hook.
2969 * rs6000-tdep.c (rs6000_frame_cache): Use safe_read_memory_integer
2970 instead of read_memory_unsigned_integer.
2974 * nat/linux-waitpid.c: Include common-defs.h.
2975 [GDBSERVER]: Add FIXME comment.
2976 [!GDBSERVER]: Don't include defs.h or signal.h.
2977 (linux_debug) [!GDBSERVER]: Remove empty block.
2981 * nat/x86-dregs.c: Include common-defs.h and break-common.h.
2982 Don't include defs.h or server.h.
2986 * nat/linux-btrace.c: Include common-defs.h.
2987 Don't include defs.h, server.h or gdbthread.h.
2988 * nat/linux-btrace.h (struct target_ops): New forward declaration.
2992 * common/agent.c: Include common-defs.h.
2993 Don't include defs.h or server.h.
2994 * common/buffer.c: Likewise.
2995 * common/common-debug.c: Likewise.
2996 * common/common-utils.c: Likewise.
2997 * common/errors.c: Likewise.
2998 * common/filestuff.c: Likewise.
2999 * common/format.c: Likewise.
3000 * common/gdb_vecs.c: Likewise.
3001 * common/print-utils.c: Likewise.
3002 * common/ptid.c: Likewise.
3003 * common/rsp-low.c: Likewise.
3004 * common/signals.c: Likewise.
3005 * common/vec.c: Likewise.
3006 * common/xml-utils.c: Likewise.
3007 * nat/linux-osdata.c: Likewise.
3008 * nat/linux-procfs.c: Likewise.
3009 * nat/linux-ptrace.c: Likewise.
3010 * nat/mips-linux-watch.c: Likewise.
3011 * target/waitstatus.c: Likewise.
3016 * common/common-regcache.h: New file.
3017 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-regcache.h.
3018 * regcache.h: Include common-regcache.h.
3019 (regcache_read_pc): Don't declare.
3020 * regcache.c (get_thread_regcache_for_ptid): New function.
3021 * nat/linux-btrace.c: Don't include regcache.h.
3022 Include common-regcache.h.
3023 (perf_event_read_bts): Use get_thread_regcache_for_ptid.
3027 * regcache.h (struct regset): Declare.
3032 * main.c: Include "infrun.h".
3033 (catch_command_errors, catch_command_errors_const): Wait for the
3034 foreground command to complete.
3035 * top.c (maybe_wait_sync_command_done): New function, factored out
3037 (maybe_wait_sync_command_done): ... here.
3038 * top.h (maybe_wait_sync_command_done): New declaration.
3043 * common/symbol.h: New file.
3044 * Makefile.in (HFILES_NO_SRCDIR): Add common/symbol.h.
3045 * minsyms.c (find_minimal_symbol_address): New function.
3046 * common/agent.c: Include common/symbol.h.
3047 [!GDBSERVER]: Don't include objfiles.h.
3048 (agent_look_up_symbols): Use find_minimal_symbol_address.
3052 * target/target.h (target_stop_ptid, target_continue_ptid):
3054 * target.c (target_stop_ptid, target_continue_ptid): New
3056 * common/agent.c [!GDBSERVER]: Don't include infrun.h.
3057 (agent_run_command): Always use target_stop_ptid and
3058 target_continue_ptid.
3063 * target/target.h: New file.
3064 * Makefile.in (HFILES_NO_SRCDIR): Add target/target.h.
3065 * target.h: Include target/target.h.
3066 (target_read_memory, target_write_memory): Don't declare.
3067 * target.c (target_read_uint32): New function.
3068 * common/agent.c: Include target/target.h.
3069 [!GDBSERVER]: Don't include target.h.
3070 (helper_thread_id): Type changed to uint32_t.
3071 (agent_get_helper_thread_id): Use target_read_uint32.
3072 (agent_run_command): Always use target_read_memory and
3073 target_write_memory.
3074 (agent_capability): Type changed to uint32_t.
3075 (agent_capability_check): Use target_read_uint32.
3079 * common/common-debug.h (show_debug_regs): Declare.
3080 * common/common-debug.c (show_debug_regs): Define.
3081 * aarch64-linux-nat.c (debug_hw_points): Don't define. Replace
3082 all uses with show_debug_regs. Replace all uses that considered
3083 debug_hw_points as a multi-value integer with straight boolean
3085 * x86-nat.c (debug_hw_points): Don't define. Replace all uses
3086 with show_debug_regs.
3087 * nat/x86-dregs.c (debug_hw_points): Don't declare. Replace
3088 all uses with show_debug_regs.
3089 * mips-linux-nat.c (maint_show_dr): Don't define. Replace all
3090 uses with show_debug_regs.
3094 * findvar.c (address_from_register): Handle targets requiring
3095 a special conversion routine even for plain pointer types.
3099 * rs6000-nat.c (exec_one_dummy_insn): Remove.
3100 (store_register): Do not call exec_one_dummy_insn.
3104 * ada-lang.c (ada_array_bound): If ARR is a TYPE_CODE_PTR,
3105 dereference it first. Use value_enclosing_type instead of
3107 (ada_array_length): Likewise.
3111 * ada-lang.c (ada_value_ptr_subscript): Remove parameter "type".
3112 Adjust function implementation and documentation accordingly.
3113 (ada_evaluate_subexp) <OP_FUNCALL>: Only assign "type" if
3114 NOSIDE is EVAL_AVOID_SIDE_EFFECTS.
3115 Update call to ada_value_ptr_subscript.
3119 * ada-valprint.c (ada_value_print): Use VAL's enclosing type
3120 instead of VAL's type.
3124 * amd64-linux-nat.c: Add <sys/uio.h> #include.
3129 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
3130 last parameter to pkg-config, not first.
3131 * configure.ac: Pass --with-guile provided pkg-config path to
3132 GDB_GUILE_PROGRAM_NAMES.
3133 * configure: Regenerate.
3137 * MAINTAINERS (Write After Approval): Add "Gabriel Krisman
3142 * mips-irix-tdep.c (mips_irix_elf_osabi_sniff_abi_tag_sections):
3143 Exclude `.MIPS.abiflags', `.MIPS.options' and `.MIPS.stubs' from
3144 the list of sections determining GDB_OSABI_IRIX.
3148 * MAINTAINERS (Write After Approval): Add "James Hogan".
3152 * trad-frame.h (trad_frame_set_reg_unknown): Remove declaration.
3156 * i386-linux-nat.c, x86-linux-nat.c: Add <sys/uio.h> #include.
3161 * guile.c: #include <signal.h>.
3162 (_initialize_guile): Block SIGCHLD while initializing Guile.
3164 Replaces the following, which is reverted.
3169 * configure.ac: Add check for header gc/gc.h.
3170 Add check for function setenv.
3171 * configure: Regenerate.
3172 * config.in: Regenerate.
3173 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
3177 * guile/scm-cmd.c (gdbscm_parse_command_name): Replace magic number
3178 with named constant. Fix style of pointer comparison.
3179 * python/py-cmd.c (gdbpy_parse_command_name): Ditto.
3184 * cli/cli-cmds.c (show_user): Use cli_user_command_p to
3185 decide whether we display the command on "show user".
3186 * cli/cli-script.c (show_user_1): Only verify cmdlines after
3187 printing command name.
3188 * cli/cli-decode.h (cli_user_command_p): Declare new function.
3189 * cli/cli-decode.c (cli_user_command_p): Create helper function
3190 to verify whether cmd_list_element is a user-defined command.
3195 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
3196 Fix goto out of TRY_CATCH.
3202 * NEWS: Mention $_caller_is, $_caller_matches, $_any_caller_is,
3203 $_any_caller_matches.
3204 * data-directory/Makefile.in (PYTHON_FILE_LIST): Add caller_is.py.
3205 * python/lib/gdb/function/caller_is.py: New file.
3209 * infcmd.c (program_info): Fix typo.
3214 * stap-probe.c (stap_parse_single_operand): Delete unused variable
3215 'number'. New variable 'has_digit'. Rewrite code to deal with
3216 subexpressions on SDT probes.
3220 * c-exp.y (parse_number): Skip handling base-switching prefixes if
3221 the input is only one character long.
3226 * f-valprint.c (f_val_print): Specify the correct print option to
3227 use when printing integer values.
3231 * x86-linux-nat.c (x86_linux_dr_get, x86_linux_dr_set):
3232 Remove code to cope with LWPs wrapped as PIDs.
3233 Add assertions to ensure no wrapped LWPs are passed.
3237 * value.c (value_ranges_copy_adjusted): New function, factored out
3239 (value_contents_copy_raw): ... here.
3240 (unpack_value_bits_as_long_1): Rename back to ...
3241 (unpack_bits_as_long): ... this. Remove 'original_value' and
3242 'result' parameters. Change return type to LONGEST.
3243 (unpack_value_bits_as_long): Delete.
3244 (unpack_value_field_as_long_1): Delete.
3245 (unpack_value_field_as_long, unpack_field_as_long): Reimplement.
3246 (unpack_value_bitfield): New function.
3247 (value_field_bitfield): Reimplement using unpack_value_bitfield.
3248 (value_fetch_lazy): Use unpack_value_bitfield.
3249 * value.h (unpack_value_bits_as_long): Delete declaration.
3253 * python/py-frame.c (frapy_read_register): New function.
3257 * mips-linux-nat.c (mips_linux_read_description): Reset errno to 0
3258 prior to reading DSP_CONTROL with PTRACE_PEEKUSER ptrace call.
3263 * cli/cli-decode.c (set_cmd_completer_handle_brkchars): New
3265 (add_cmd): Set "completer_handle_brkchars" to NULL.
3266 * cli/cli-decode.h (struct cmd_list_element)
3267 <completer_handle_brkchars>: New field.
3268 * command.h (completer_ftype_void): New typedef.
3269 (set_cmd_completer_handle_brkchars): New prototype.
3270 * completer.c (set_gdb_completion_word_break_characters): New
3272 (complete_line_internal): Call "completer_handle_brkchars"
3273 callback from command.
3274 * completer.h: Include "command.h".
3275 (set_gdb_completion_word_break_characters): New prototype.
3276 * python/py-cmd.c (cmdpy_completer_helper): New function.
3277 (cmdpy_completer_handle_brkchars): New function.
3278 (cmdpy_completer): Adjust to use cmdpy_completer_helper.
3279 (cmdpy_init): Set completer_handle_brkchars to
3280 cmdpy_completer_handle_brkchars.
3284 * nat/x86-dregs.h (ALL_DEBUG_REGISTERS): Renamed as...
3285 (ALL_DEBUG_ADDRESS_REGISTERS): New macro. All uses updated.
3286 Loop conditions changed to equivalent form.
3287 (struct x86_debug_reg_state): Updated dr_ref_count comment.
3288 * x86-linux-nat.c (x86_linux_prepare_to_resume): Use
3289 ALL_DEBUG_ADDRESS_REGISTERS.
3293 * dwarf2loc.h (dwarf2_evaluate_property): Minor function
3298 * typeprint.c (find_global_typedef): Fix comment.
3302 * i386-nat.h: Renamed as...
3303 * x86-nat.h: New file. All type, function and variable name
3304 prefixes changed from "i386_" to "x86_". All references updated.
3305 * i386-nat.c: Renamed as...
3306 * x86-nat.c: New file. All type, function and variable name
3307 prefixes changed from "i386_" to "x86_". All references updated.
3308 * common/i386-xstate.h: Renamed as...
3309 * common/x86-xstate.h: New file. All type, function and variable
3310 name prefixes changed from "i386_" to "x86_". All references
3312 * nat/i386-cpuid.h: Renamed as...
3313 * nat/x86-cpuid.h: New file. All type, function and variable name
3314 prefixes changed from "i386_" to "x86_". All references updated.
3315 * nat/i386-gcc-cpuid.h: Renamed as...
3316 * nat/x86-gcc-cpuid.h: New file. All type, function and variable
3317 name prefixes changed from "i386_" to "x86_". All references
3319 * nat/i386-dregs.h: Renamed as...
3320 * nat/x86-dregs.h: New file. All type, function and variable name
3321 prefixes changed from "i386_" to "x86_". All references updated.
3322 * nat/i386-dregs.c: Renamed as...
3323 * nat/x86-dregs.c: New file. All type, function and variable name
3324 prefixes changed from "i386_" to "x86_". All references updated.
3328 * varobj.c (_initialize_varobj): Move to the end of file.
3332 * common/common-exceptions.h: New file.
3333 * common/common-exceptions.c: Likewise.
3334 * Makefile.in (SFILES): Add common/common-exceptions.c.
3335 (HFILES_NO_SRCDIR): Add common/common-exceptions.h.
3336 (COMMON_OBS): Add common-exceptions.o.
3337 (common-exceptions.o): New rule.
3338 * exceptions.h (common-exceptions.h): Include.
3339 (gdb_setjmp.h): Do not include.
3340 (return_reason): Moved to common-exceptions.h.
3341 (enum return_reason): Likewise.
3342 (RETURN_MASK): Likewise.
3343 (typedef return_mask): Likewise.
3344 (enum errors): Likewise.
3345 (struct gdb_exception): Likewise.
3346 (exceptions_state_mc_init): Likewise.
3347 (exceptions_state_mc_action_iter): Likewise.
3348 (exceptions_state_mc_action_iter_1): Likewise.
3349 (TRY_CATCH): Likewise.
3350 (throw_exception): Likewise.
3351 (throw_verror): Likewise.
3352 (throw_vquit): Likewise.
3353 (throw_error): Likewise.
3354 (throw_quit): Likewise.
3355 * exceptions.c (enum catcher_state): Moved to common-exceptions.c.
3356 (enum catcher_action): Likewise.
3357 (struct catcher): Likewise.
3358 (current_catcher): Likewise.
3359 (catcher_list_size): Likewise.
3360 (exceptions_state_mc_init): Likewise.
3361 (catcher_pop): Likewise.
3362 (exceptions_state_mc): Likewise.
3363 (exceptions_state_mc_action_iter): Likewise.
3364 (exceptions_state_mc_action_iter_1): Likewise.
3365 (throw_exception): Likewise.
3366 (exception_messages): Likewise.
3367 (exception_messages_size): Likewise.
3368 (throw_it): Likewise.
3369 (throw_verror): Likewise.
3370 (throw_vquit): Likewise.
3371 (throw_error): Likewise.
3372 (throw_quit): Likewise.
3373 (prepare_to_throw_exception): New function.
3377 * common/gdb_setjmp.h: New file.
3378 * Makefile.in (HFILES_NO_SRCDIR): Add common/gdb_setjmp.h.
3379 * configure.ac: Move sigsetjmp check...
3380 * common/common.m4: ...here.
3381 * configure: Regenerate.
3382 * cp-support.c (SIGJMP_BUF): Delete.
3383 (SIGSETJMP): Likewise.
3384 (SIGLONGJMP): Likewise.
3385 * exceptions.h (gdb_setjmp.h): Include.
3386 (setjmp.h): Do not include.
3387 (EXCEPTIONS_SIGJMP_BUF): Delete.
3388 (EXCEPTIONS_SIGSETJMP): Likewise.
3389 (EXCEPTIONS_SIGLONGJMP): Likewise.
3390 Replace all uses of EXCEPTIONS_SIG* macros with SIG* macros
3392 * exceptions.c: Likewise.
3396 * cleanups.h: Moved to...
3397 * common/cleanups.h: New file.
3398 * cleanups.c: Moved to...
3399 * common/cleanups.c: New file. Include common-defs.h and
3400 cleanups.h. Do not include defs.h.
3401 * Makefile.in (SFILES): Replace cleanups.c with common/cleanups.c.
3402 (HFILES_NO_SRCDIR): Replace cleanups.h with common/cleanups.h.
3403 (cleanups.o): New rule.
3407 * common/errors.h (internal_warning): New declaration.
3408 (internal_vwarning): Likewise.
3409 * common/errors.c (internal_warning): New function.
3410 * utils.h (internal_warning): Don't declare.
3411 (internal_vwarning): Likewise.
3412 * utils.c (internal_warning): Removed.
3416 * main.c (captured_main): Use warning during startup.
3417 Prefix startup warning messages with command name.
3421 * main.c (captured_main): Handle usage errors with error.
3425 * go32-nat.c (go32_create_inferior): Replace a fprintf/
3426 exit pair with a call to error. Wrap the message with _().
3430 * main.c (captured_main): Replace a fprintf/exit
3431 pair with a call to error. Wrap the message with _().
3435 * tui/tui-io.c (tui_initialize_io): Replace two fprintf/exit
3436 pairs with calls to error. Wrap the message with _().
3440 * utils.c (vwarning): Protect calls to target_terminal_ours
3445 * exceptions.c (print_flush): Protect calls to
3446 target_terminal_ours and wrap_here.
3450 * utils.h (filtered_printing_initialized): New declaration.
3451 * utils.c (abort_with_message): New function.
3452 (internal_vproblem): Use abort_with_message for first level
3453 recursive internal problems, and if gdb_stderr is not set up.
3454 Protect calls to target_terminal_ours, begin_line and query.
3458 * symtab.c (in_prologue): Move definition to better spot.
3459 (skip_prologue_using_sal): Ditto.
3463 * symtab.c (find_function_start_sal): Move definition to better spot.
3467 * arm-tdep.c (thumb_in_function_epilogue_p): Don't set
3468 found_stack_adjust in forward scan. Remove condition check
3469 on found_stack_adjust which is always true. Indent the code.
3473 * dwarf2read.c (dwarf_decode_lines): Update declaration.
3474 (handle_DW_AT_stmt_list): Remove comment about WANT_LINE_INFO.
3475 (dwarf_decode_lines): Remove argument
3476 want_line_info. Remove condition check on want_line_info.
3481 * dwarf2read.c (dwarf_record_line): Fix typo.
3485 * target.h (struct target_ops::to_terminal_save_ours): Remove
3487 (target_terminal_save_ours): Remove macro.
3488 * target-delegates.c: Regenerate.
3489 * inf-child.c (inf_child_target): Don't set the nonexistent
3490 field to_terminal_save_ours.
3491 * inferior.h (child_terminal_save_ours): Remove declaration.
3492 * terminal.h (gdb_save_tty_state): New declaration.
3493 * inflow.c (child_terminal_save_ours): Rename to ...
3494 (gdb_save_tty_state): ... this.
3495 * tui/tui.c: Include terminal.h.
3496 (tui_enable): Use gdb_save_tty_state instead of
3497 target_terminal_save_ours.
3498 (tui_disable): Likewise.
3502 * linux-nat.c (linux_nat_close): Don't pass NULL for "this".
3503 Pass NULL instead of 0 for context pointer.
3507 * dwarf2read.c: Fix grammatical error.
3511 * dwarf2read.c (scan_partial_symbols): Update comments.
3512 Rename argument 'need_pc' with 'set_addrmap'.
3513 (add_partial_namespace): Rename argument 'need_pc' with
3515 (add_partial_module): Likewise.
3516 (add_partial_subprogram): Likewise. Update comments.
3517 (dwarf2_name): Fix typo.
3522 * dwarf2read.c (dwarf_record_line_p): New function.
3523 (dwarf_decode_lines_1): Ignore subsequent line number entries
3524 for the same line if any entry had a non-zero discriminator.
3528 * buildsym.h (record_line_ftype): New typedef.
3529 (record_line): Use it.
3530 * dwarf2read.c (dwarf_record_line, dwarf_finish_line): New functions.
3531 (dwarf_decode_lines_1): Call them.
3535 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
3536 (ctf_end): Remove code.
3540 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
3541 (linux_make_corefile_notes): call update_thread_list, protected against
3546 * infcmd.c (attach_command): Remove comment.
3550 * aarch64-linux-nat.c (dr_changed_t): Change the type from
3551 unsigned LONGEST to ULONGEST.
3555 * Makefile.in (check-read1): New rule.
3559 * value.c (value_from_contents_and_address): Strip resolved_type's
3560 typedef layers before checking its TYPE_DATA_LOCATION.
3564 * value.c (value_contents_bits_eq): Initialize l,h for gcc -Wall.
3568 * amd64-tdep.c (amd64_classify): Add a blank line after the
3569 example. Move "*/" to a new line.
3570 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Likewise.
3571 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Likewise.
3572 * dwarf2read.c (psymtab_include_file_name): Likewise.
3579 * ada-lang.c (coerce_unspec_val_to_type): Use
3580 value_contents_copy_raw.
3581 * ada-valprint.c (val_print_packed_array_elements): Adjust.
3582 * c-valprint.c (c_val_print): Use value_bits_any_optimized_out.
3583 * cp-valprint.c (cp_print_value_fields): Let the common printing
3584 code handle optimized out values.
3585 (cp_print_value_fields_rtti): Use value_bits_any_optimized_out.
3586 * d-valprint.c (dynamic_array_type): Use
3587 value_bits_any_optimized_out.
3588 * dwarf2loc.c (entry_data_value_funcs): Remove check_validity and
3589 check_any_valid fields.
3590 (check_pieced_value_bits): Delete and inline ...
3591 (check_pieced_synthetic_pointer): ... here.
3592 (check_pieced_value_validity): Delete.
3593 (check_pieced_value_invalid): Delete.
3594 (pieced_value_funcs): Remove check_validity and check_any_valid
3596 (read_pieced_value): Use mark_value_bits_optimized_out.
3597 (write_pieced_value): Switch to use
3598 mark_value_bytes_optimized_out.
3599 (dwarf2_evaluate_loc_desc_full): Copy the value contents instead
3600 of assuming the whole value is optimized out.
3601 * findvar.c (read_frame_register_value): Remove special handling
3602 of optimized out registers.
3603 (value_from_register): Use mark_value_bytes_optimized_out.
3604 * frame-unwind.c (frame_unwind_got_optimized): Use
3605 mark_value_bytes_optimized_out.
3606 * jv-valprint.c (java_value_print): Adjust.
3607 (java_print_value_fields): Let the common printing code handle
3608 optimized out values.
3609 * mips-tdep.c (mips_print_register): Remove special handling of
3610 optimized out registers.
3611 * opencl-lang.c (lval_func_check_validity): Delete.
3612 (lval_func_check_any_valid): Delete.
3613 (opencl_value_funcs): Remove check_validity and check_any_valid
3615 * p-valprint.c (pascal_object_print_value_fields): Let the common
3616 printing code handle optimized out values.
3617 * stack.c (read_frame_arg): Remove special handling of optimized
3618 out values. Fetch both VAL and ENTRYVAL before comparing
3619 contents. Adjust to value_available_contents_eq rename.
3620 * valprint.c (valprint_check_validity)
3621 (val_print_scalar_formatted): Use value_bits_any_optimized_out.
3622 (val_print_array_elements): Adjust.
3623 * value.c (struct value) <optimized_out>: Now a VEC(range_s).
3624 (value_bits_any_optimized_out): New function.
3625 (value_entirely_covered_by_range_vector): New function, factored
3626 out from value_entirely_unavailable.
3627 (value_entirely_unavailable): Reimplement.
3628 (value_entirely_optimized_out): New function.
3629 (insert_into_bit_range_vector): New function, factored out from
3630 mark_value_bits_unavailable.
3631 (mark_value_bits_unavailable): Reimplement.
3632 (struct ranges_and_idx): New struct.
3633 (find_first_range_overlap_and_match): New function, factored out
3634 from value_available_contents_bits_eq.
3635 (value_available_contents_bits_eq): Rename to ...
3636 (value_contents_bits_eq): ... this. Check both unavailable
3637 contents and optimized out contents.
3638 (value_available_contents_eq): Rename to ...
3639 (value_contents_eq): ... this.
3640 (allocate_value_lazy): Remove reference to the old optimized_out
3642 (allocate_optimized_out_value): Use
3643 mark_value_bytes_optimized_out.
3644 (require_not_optimized_out): Adjust to check whether the
3645 optimized_out vec is empty.
3646 (ranges_copy_adjusted): New function, factored out from
3647 value_contents_copy_raw.
3648 (value_contents_copy_raw): Also copy the optimized out ranges.
3649 Assert the destination ranges aren't optimized out.
3650 (value_contents_copy): Update comment, remove call to
3651 require_not_optimized_out.
3652 (value_contents_equal): Adjust to check whether the optimized_out
3654 (set_value_optimized_out, value_optimized_out_const): Delete.
3655 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3657 (value_entirely_optimized_out, value_bits_valid): Delete.
3658 (value_copy): Take a VEC copy of the 'optimized_out' field.
3659 (value_primitive_field): Remove special handling of optimized out.
3660 (value_fetch_lazy): Assert that lazy values have no unavailable
3661 regions. Use value_bits_any_optimized_out. Remove some special
3662 handling for optimized out values.
3663 * value.h: Add intro comment about <optimized out> and
3665 (struct lval_funcs): Remove check_validity and check_any_valid
3667 (set_value_optimized_out, value_optimized_out_const): Remove.
3668 (mark_value_bytes_optimized_out, mark_value_bits_optimized_out):
3670 (value_bits_any_optimized_out): New declaration.
3671 (value_bits_valid): Delete declaration.
3672 (value_available_contents_eq): Rename to ...
3673 (value_contents_eq): ... this, and extend comments.
3677 Fix -fsanitize=address on unreadable inferior strings.
3678 * valprint.c (val_print_string): Fix access before BUFFER.
3682 * target.c (target_struct_size): Remove.
3683 (target_struct_allocsize): Remove.
3684 (DEFAULT_ALLOCSIZE): Remove.
3685 (target_ops_p): New typedef.
3686 (DEF_VEC_P (target_ops_p)): New vector type.
3687 (target_structs): Change type to VEC (target_ops_p).
3688 (add_target_with_completer): Replace "push" code by VEC_safe_push.
3689 (find_default_run_target): Rewrite for loop following changes to
3694 * value.c (value_from_pointer): Remove use of resolve_dynamic_type.
3695 Adjust code accordingly. Adjust function description comment.
3699 * arm-tdep.c (arm_vfp_cprc_sub_candidate): Handle _Complex
3704 * acinclude.m4 (GDB_AC_CHECK_BFD): Don't add -ldl.
3705 * config.in: Regenerate.
3706 * configure: Regenerate.
3711 * common/common-debug.h: New file.
3712 * common/common-debug.c: Likewise.
3713 * debug.c: Likewise.
3714 * Makefile.in (SFILES): Add common/common-debug.c.
3715 (HFILES_NO_SRCDIR): Add common/common-debug.h.
3716 (COMMON_OBS): Add common-debug.o and debug.o.
3717 (common-debug.o): New rule.
3718 * common/common-defs.h: Include common-debug.h.
3719 * common/agent.c (debug_agent_printf): New function.
3720 (DEBUG_AGENT): Redefine.
3721 * nat/i386-dregs.c (debug_printf): Undefine.
3725 * common/common-defs.h: Include print-utils.h.
3726 * utils.h: Do not include print-utils.h.
3731 * common/common-types.h: New file.
3732 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-types.h.
3733 * common/common-defs.h: Include common-types.h.
3734 * defs.h (gdb_byte, CORE_ADDR, CORE_ADDR_MAX, LONGEST)
3740 * common/errors.h: New file.
3741 * common/errors.c: Likewise.
3742 * Makefile.in (SFILES): Add common/errors.c.
3743 (HFILES_NO_SRCDIR): Add common/errors.h.
3744 (COMMON_OBS): Add errors.o.
3745 (errors.o): New rule.
3746 * common/common-defs.h: Include errors.h.
3747 * utils.h (perror_with_name, error, verror, warning, vwarning):
3749 * common/common-utils.h: (malloc_failure, internal_error):
3754 * utils.c (internal_vproblem): Always print the message.
3758 * ada-typeprint.c (print_range): Initialize lo,hi for gcc -Wall.
3762 * ada-typeprint.c (type_is_full_subrange_of_target_type):
3763 Return 0 if TYPE is dynamic.
3764 (print_range): Add handling of dynamic ranges.
3769 * gdbtypes.h (struct main_type): Add field "data_location".
3770 (TYPE_DATA_LOCATION, TYPE_DATA_LOCATION_BATON)
3771 (TYPE_DATA_LOCATION_ADDR, TYPE_DATA_LOCATION_KIND): New macros.
3772 * gdbtypes.c (is_dynamic_type): Return 1 if the type has
3773 a dynamic data location.
3774 (resolve_dynamic_type): Add DW_AT_data_location handling.
3775 (copy_recursive, copy_type): Copy the data_location information
3777 * dwarf2read.c (set_die_type): Add DW_AT_data_location handling.
3778 * value.c (value_from_contents_and_address): Add
3779 DW_AT_data_location handling.
3784 * dwarf2expr.h (struct dwarf_expr_context_funcs): Uncomment
3785 field "get_object_address".
3786 * dwarf2expr.c (execute_stack_op): Add handling for
3787 DW_OP_push_object_address.
3788 * dwarf2loc.h (dwarf2_evaluate_property): Add "address" field.
3789 * dwarf2loc.c (struct dwarf_expr_baton): Add field "obj_address".
3790 (dwarf_expr_push_dwarf_reg_entry_value): Set baton_local.obj_address.
3791 (dwarf_expr_get_obj_addr): New function.
3792 (dwarf_expr_ctx_funcs): Add get_object_address field.
3793 (dwarf2_evaluate_loc_desc_full): Set baton.obj_address.
3794 (dwarf2_locexpr_baton_eval): Add parameter "addr". Use it.
3795 (dwarf2_evaluate_property): Add parameter "address". Use it.
3796 (needs_get_obj_addr): New function.
3797 (needs_frame_ctx_funcs): Add get_object_address field.
3798 (dwarf2_compile_expr_to_ax): Add DW_OP_push_object_address handling.
3799 * gdbtypes.c (resolve_dynamic_range): Add "addr" field. Use it.
3800 (resolve_dynamic_array): Likewise.
3804 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>:
3805 When noside is EVAL_AVOID_SIDE_EFFECTS, only return a statically
3806 fixed value for records and unions for which some GNAT encodings
3811 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Slight code
3812 rewrite to avoid "else if" and "else" constructs. Should be
3813 a no-op in practice.
3817 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Fix identation
3823 * eval.c: Update all calls to find_overload_match.
3824 * valarith.c: Likewise.
3825 (value_user_defined_cpp_op, value_user_defined_op): New
3826 argument NOSIDE. Update all callers.
3827 * valops.c (find_overload_match): New argument NOSIDE.
3828 * value.h (find_overload_match): Update signature.
3832 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
3833 'items' methods instead of 'iteritems' method on dictionaries.
3837 * dwarf2read.c (dwarf_decode_lines_1): Move definition of adj_opcode
3842 * dwarf2read.c (dwarf_decode_lines_1): Add comment.
3846 * dwarf2read.c (dwarf_decode_lines_1): Delete local "column", unused.
3850 * dwarf2read.c (dwarf_decode_lines_1): Delete local basic_block,
3855 * dcache.h: Include target.h, to avoid compile time warnings.
3859 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
3860 frame_info" partial declaration.
3861 * gdbarch.h: Regenerate.
3865 * dwarf2read.c (dwarf_decode_lines_1): Remove parameter 'pst'.
3866 Add parameter 'decode_for_pst_p'. Callers update.
3871 * configure.ac: Use local variable 'pos'.
3872 * configure: Regenerated.
3876 * solib.c (solib_read_symbols): Delete "Loaded symbols for ..."
3877 message, it is redundant with "Reading symbols from ..." message.
3881 * linux-nat.c (linux_nat_thread_address_space): Delete dead code.
3886 * remote.c (remote_xfer_partial): Remove dead code.
3890 * ia64-linux-tdep.c: Include "regset.h".
3891 (ia64_linux_gregmap, ia64_linux_fpregmap): New register maps.
3892 (IA64_LINUX_GREGS_SIZE, IA64_LINUX_FPREGS_SIZE): New macros.
3893 (ia64_linux_supply_fpregset): New function.
3894 (ia64_linux_gregset, ia64_linux_fpregset): New regsets.
3895 (ia64_linux_regset_from_core_section): New function.
3896 (ia64_linux_init_abi): Set regset_from_core_section gdbarch
3901 * m68klinux-tdep.c: Include "regset.h".
3902 (m68k_linux_gregmap, m68k_linux_fpregmap): New register maps.
3903 (M68K_LINUX_GREGS_SIZE, M68K_LINUX_FPREGS_SIZE): New macros.
3904 (m68k_linux_gregset, m68k_linux_fpregset): New regsets.
3905 (m68k_linux_regset_from_core_section): New function.
3906 (m68k_linux_init_abi): Set regset_from_core_section gdbarch
3911 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Delete
3912 function. Move logic to...
3913 (tilegx_linux_regmap): ... this new register map.
3914 (tilegx_linux_regset): Refer to register map, replace supply
3915 method by regcache_supply_regset, and add collect method.
3916 * tilegx-tdep.h (enum tilegx_regnum): New enum value
3917 TILEGX_FIRST_EASY_REGNUM.
3921 * score-tdep.c (score7_linux_supply_gregset): Reduce to small stub
3922 that calls regcache_supply_regset and handles the EPC register
3923 separately. Move main logic to...
3924 (score7_linux_gregmap): ... this new register map.
3925 (SCORE7_LINUX_SIZEOF_GREGSET, SCORE7_LINUX_EPC_OFFSET): New macros.
3926 (score7_linux_gregset): Refer to register map. Add collect method.
3927 (score7_linux_regset_from_core_section): Replace
3928 sizeof elf_gregset_t by SCORE7_LINUX_SIZEOF_GREGSET.
3929 * score-tdep.h (enum gdb_regnum): New enum value SCORE_EPC_REGNUM.
3930 (struct regset): Delete unused forward declaraction.
3931 (struct pt_regs): Delete structure definition.
3932 (elf_gregset_t): Delete typedef.
3936 * nios2-linux-tdep.c (nios2_collect_gregset): New function.
3937 (nios2_core_regset): Add collect method.
3941 * m32r-linux-tdep.c (m32r_linux_supply_gregset): Make
3942 platform-independent and don't write to read-only input buffer.
3943 (m32r_linux_collect_gregset): New function.
3944 (m32r_linux_gregset): Add collect method.
3948 * hppa-linux-tdep.c (greg_map): Rename to...
3949 (hppa_linux_gregmap): ... this. Also convert to
3950 regcache_map_entry format.
3951 (hppa_linux_supply_regset): Delete function.
3952 (hppa_linux_supply_fpregset): Delete function. Move logic to...
3953 (hppa_linux_fpregmap): ... this new register map.
3954 (hppa_linux_regset, hppa_linux_fpregset): Refer to appropriate
3955 register map, replace supply method by regcache_supply_regset, and
3956 add collect method regcache_collect_regset.
3960 * frv-linux-tdep.c (FRV_PT_PSR, FRV_PT_ISR, FRV_PT_CCR)
3961 (FRV_PT_CCCR, FRV_PT_LR, FRV_PT_LCR, FRV_PT_PC, FRV_PT_GNER0)
3962 (FRV_PT_GNER1, FRV_PT_IACC0H, FRV_PT_IACC0L, FRV_PT_GR)
3963 (FRV_PT_TBR, FRV_PT_GR, FRV_PT_EXEC_FDPIC_LOADMAP)
3964 (FRV_PT_INTERP_FDPIC_LOADMAP): Delete macros.
3965 (frv_linux_gregmap, frv_linux_fpregmap): New register maps.
3966 (frv_linux_supply_gregset): Replace main logic by call to
3967 regcache_supply_regset, but keep clearing gr32-gr63.
3968 (frv_linux_supply_fpregset): Delete function.
3969 (frv_linux_gregset): Refer to appropriate register map and add
3970 regcache_collect_regset as the collect method.
3971 (frv_linux_fpregset): Likewise. Also exchange the supply method
3972 by regcache_supply_regset.
3976 * alpha-linux-tdep.c (alpha_linux_supply_gregset): Replace logic
3977 by call to alpha_supply_int_regs.
3978 (alpha_linux_collect_gregset): New function.
3979 (alpha_linux_supply_fpregset): Replace logic by call to
3980 alpha_supply_fp_regs.
3981 (alpha_linux_collect_fpregset): New function.
3982 (alpha_linux_gregset, alpha_linux_fpregset): Add collect method.
3986 * aarch64-linux-nat.c (fill_gregset, fill_fpregset): Replace logic
3987 by call to regcache_collect_regset.
3988 (supply_gregset, supply_fpregset): Call regcache_supply_regset
3989 instead of aarch64_linux_supply_gregset/_fpregset.
3990 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET)
3991 (AARCH64_LINUX_SIZEOF_FPREGSET): Delete macros here, move to
3992 header file instead.
3993 (aarch64_linux_supply_gregset, supply_gregset_from_core)
3994 (aarch64_linux_suply_fpregset, supply_fpregset_from_core): Delete
3995 functions. Move logic to ...
3996 (aarch64_linux_gregmap, aarch64_linux_fpregmap): ... these new
3998 (aarch64_linux_gregset, aarch64_linux_fpregset): Make global,
3999 refer to new register maps, replace *_regset_from_core by
4000 regcache_supply_regset, and also use regcache_collect_regset.
4001 * aarch64-linux-tdep.h: Include "regset.h".
4002 (aarch64_linux_supply_gregset, aarch64_linux_supply_fpregset):
4004 (AARCH64_LINUX_SIZEOF_GREGSET, AARCH64_LINUX_SIZEOF_FPREGSET): New
4005 macros, moved from C source file.
4006 (aarch64_linux_gregset, aarch64_linux_fpregset): New global
4007 variable declarations.
4011 * s390-linux-nat.c: Include "regset.h".
4012 (regmap_gregset): Delete macro.
4013 (s390_64_regmap_gregset): New register map for
4014 regcache_supply/_collect_regset.
4015 (s390_64_gregset): New regset.
4016 (S390_PSWM_OFFSET, S390_PSWA_OFFSET): New macros.
4017 (regmap_fpregset): Delete macro.
4018 (s390_native_supply, s390_native_collect): Delete functions.
4019 (supply_gregset, fill_gregset): Replace s390-specific regmap
4020 handling by a call to regcache_supply/_collect_regset.
4021 (supply_fpregset, fill_fpregset): Call regcache_supply/
4022 _collect_regset instead of s390_native_supply/_collect.
4023 (fetch_regset, store_regset): Likewise. Also change the last
4024 parameter to a regset instead of a regmap.
4025 (s390_linux_fetch_inferior_registers)
4026 (390_linux_store_inferior_registers): Adjust last parameter in
4027 calls to fetch_regset and store_regset.
4028 * s390-linux-tdep.c (s390_regmap_gregset): Rename to...
4029 (s390_gregmap): ... this. Also make static const and convert to
4030 regcache_map_entry format.
4031 (s390x_regmap_gregset): Delete.
4032 (s390_regmap_fpregset): Rename to...
4033 (s390_fpregmap): ... this. Make static const and convert to
4034 regcache_map_entry format.
4035 (s390_regmap_upper, s390_regmap_last_break)
4036 (s390x_regmap_last_break, s390_regmap_system_call)
4037 (s390_regmap_tdb): Likewise.
4038 (s390_supply_regset, s390_collect_regset): Remove functions.
4039 (s390_supply_tdb_regset): Call regcache_supply_regset instead of
4041 (s390_gregset, s390_fpregset, s390_upper_regset)
4042 (s390_last_break_regset, s390x_last_break_regset)
4043 (s390_system_call_regset, s390_tdb_regset): Make global and
4044 replace s390_supply/_collect_regset by regcache_supply/
4046 (s390x_gregset): Delete.
4047 (s390_gdbarch_init): Replace s390x_gregset by s390_gregset.
4048 * s390-linux-tdep.h (s390_regmap_gregset, s390x_regmap_gregset)
4049 (s390_regmap_fpregset, s390_regmap_last_break)
4050 (s390x_regmap_last_break, s390_regmap_system_call)
4051 (s390_regmap_tdb): Delete global variable declarations.
4052 (s390_gregset, s390_fpregset, s390_last_break_regset)
4053 (s390x_last_break_regset, s390_system_call_regset)
4054 (s390_tdb_regset): New global variable declarations.
4058 * regcache.c: Include "regset.h".
4059 (regcache_transfer_regset): New local function.
4060 (regcache_supply_regset, regcache_collect_regset): New functions.
4061 * regcache.h (struct regcache_map_entry): New structure.
4062 (REGCACHE_MAP_SKIP): New enum value.
4063 (regcache_supply_regset, regcache_collect_regset): New prototypes.
4067 * regset.h (struct regset): Rename 'descr' field to 'regmap'.
4068 * ppc-linux-tdep.c (ppc_linux_supply_gregset)
4069 (ppc_linux_collect_gregset ): Likewise.
4070 * rs6000-tdep.c (ppc_supply_gregset, ppc_supply_fpregset)
4071 (ppc_supply_vrregset, ppc_collect_gregset, ppc_collect_fpregset)
4072 (ppc_collect_vrregset): Likewise.
4073 * s390-linux-tdep.c (s390_supply_regset, s390_collect_regset):
4078 * corelow.c (core_xfer_partial): Replace 0 with TARGET_XFER_EOF.
4079 * remote-m32r-sdi.c (m32r_xfer_memory): Likewise.
4080 * remote.c (remote_read_bytes): Likewise.
4084 * dwarf2read.c (struct dwarf2_per_cu_data) <u>: Tweak comments.
4089 * remote-mips.c (mips_xfer_memory): Set *xfered_len and return
4090 TARGET_XFER_OK instead of 0.
4094 * common/common-defs.h: Include errno.h.
4095 * defs.h: Do not include errno.h.
4096 * ada-typeprint.c: Likewise.
4097 * c-typeprint.c: Likewise.
4098 * core-regset.c: Likewise.
4099 * corefile.c: Likewise.
4100 * corelow.c: Likewise.
4101 * event-loop.c: Likewise.
4102 * f-typeprint.c: Likewise.
4103 * gnu-nat.c: Likewise.
4104 * go32-nat.c: Likewise.
4105 * i386gnu-nat.c: Likewise.
4106 * m2-typeprint.c: Likewise.
4107 * nat/linux-btrace.c: Likewise.
4108 * p-typeprint.c: Likewise.
4109 * procfs.c: Likewise.
4110 * remote-sim.c: Likewise.
4111 * rs6000-nat.c: Likewise.
4112 * target.c: Likewise.
4113 * typeprint.c: Likewise.
4114 * ui-file.c: Likewise.
4115 * valops.c: Likewise.
4116 * valprint.c: Likewise.
4120 * common/common-defs.h: Include string.h.
4121 * aarch64-tdep.c: Do not include string.h.
4122 * ada-exp.y: Likewise.
4123 * ada-lang.c: Likewise.
4124 * ada-lex.l: Likewise.
4125 * ada-typeprint.c: Likewise.
4126 * ada-valprint.c: Likewise.
4127 * aix-thread.c: Likewise.
4128 * alpha-linux-tdep.c: Likewise.
4129 * alpha-mdebug-tdep.c: Likewise.
4130 * alpha-nat.c: Likewise.
4131 * alpha-osf1-tdep.c: Likewise.
4132 * alpha-tdep.c: Likewise.
4133 * alphanbsd-tdep.c: Likewise.
4134 * amd64-dicos-tdep.c: Likewise.
4135 * amd64-linux-tdep.c: Likewise.
4136 * amd64-nat.c: Likewise.
4137 * amd64-sol2-tdep.c: Likewise.
4138 * amd64fbsd-tdep.c: Likewise.
4139 * amd64obsd-tdep.c: Likewise.
4140 * arch-utils.c: Likewise.
4141 * arm-linux-nat.c: Likewise.
4142 * arm-linux-tdep.c: Likewise.
4143 * arm-tdep.c: Likewise.
4144 * arm-wince-tdep.c: Likewise.
4145 * armbsd-tdep.c: Likewise.
4146 * armnbsd-nat.c: Likewise.
4147 * armnbsd-tdep.c: Likewise.
4148 * armobsd-tdep.c: Likewise.
4149 * avr-tdep.c: Likewise.
4150 * ax-gdb.c: Likewise.
4151 * ax-general.c: Likewise.
4152 * bcache.c: Likewise.
4153 * bfin-tdep.c: Likewise.
4154 * breakpoint.c: Likewise.
4155 * build-id.c: Likewise.
4156 * buildsym.c: Likewise.
4157 * c-exp.y: Likewise.
4158 * c-lang.c: Likewise.
4159 * c-typeprint.c: Likewise.
4160 * c-valprint.c: Likewise.
4161 * charset.c: Likewise.
4162 * cli-out.c: Likewise.
4163 * cli/cli-cmds.c: Likewise.
4164 * cli/cli-decode.c: Likewise.
4165 * cli/cli-dump.c: Likewise.
4166 * cli/cli-interp.c: Likewise.
4167 * cli/cli-logging.c: Likewise.
4168 * cli/cli-script.c: Likewise.
4169 * cli/cli-setshow.c: Likewise.
4170 * cli/cli-utils.c: Likewise.
4171 * coffread.c: Likewise.
4172 * common/agent.c: Likewise.
4173 * common/buffer.c: Likewise.
4174 * common/buffer.h: Likewise.
4175 * common/common-utils.c: Likewise.
4176 * common/filestuff.c: Likewise.
4177 * common/filestuff.c: Likewise.
4178 * common/format.c: Likewise.
4179 * common/print-utils.c: Likewise.
4180 * common/rsp-low.c: Likewise.
4181 * common/signals.c: Likewise.
4182 * common/vec.h: Likewise.
4183 * common/xml-utils.c: Likewise.
4184 * core-regset.c: Likewise.
4185 * corefile.c: Likewise.
4186 * corelow.c: Likewise.
4187 * cp-abi.c: Likewise.
4188 * cp-name-parser.y: Likewise.
4189 * cp-support.c: Likewise.
4190 * cp-valprint.c: Likewise.
4191 * cris-tdep.c: Likewise.
4192 * d-exp.y: Likewise.
4193 * darwin-nat.c: Likewise.
4194 * dbxread.c: Likewise.
4195 * dcache.c: Likewise.
4196 * demangle.c: Likewise.
4197 * dicos-tdep.c: Likewise.
4198 * disasm.c: Likewise.
4199 * doublest.c: Likewise.
4200 * dsrec.c: Likewise.
4201 * dummy-frame.c: Likewise.
4202 * dwarf2-frame.c: Likewise.
4203 * dwarf2loc.c: Likewise.
4204 * dwarf2read.c: Likewise.
4205 * elfread.c: Likewise.
4206 * environ.c: Likewise.
4208 * event-loop.c: Likewise.
4209 * exceptions.c: Likewise.
4211 * expprint.c: Likewise.
4212 * f-exp.y: Likewise.
4213 * f-lang.c: Likewise.
4214 * f-typeprint.c: Likewise.
4215 * f-valprint.c: Likewise.
4216 * fbsd-nat.c: Likewise.
4217 * findcmd.c: Likewise.
4218 * findvar.c: Likewise.
4219 * fork-child.c: Likewise.
4220 * frame.c: Likewise.
4221 * frv-linux-tdep.c: Likewise.
4222 * frv-tdep.c: Likewise.
4224 * gdb_bfd.c: Likewise.
4225 * gdbarch.c: Likewise.
4226 * gdbarch.sh: Likewise.
4227 * gdbtypes.c: Likewise.
4228 * gnu-nat.c: Likewise.
4229 * gnu-v2-abi.c: Likewise.
4230 * gnu-v3-abi.c: Likewise.
4231 * go-exp.y: Likewise.
4232 * go-lang.c: Likewise.
4233 * go32-nat.c: Likewise.
4234 * guile/guile.c: Likewise.
4235 * guile/scm-auto-load.c: Likewise.
4236 * hppa-hpux-tdep.c: Likewise.
4237 * hppa-linux-nat.c: Likewise.
4238 * hppanbsd-tdep.c: Likewise.
4239 * hppaobsd-tdep.c: Likewise.
4240 * i386-cygwin-tdep.c: Likewise.
4241 * i386-dicos-tdep.c: Likewise.
4242 * i386-linux-tdep.c: Likewise.
4243 * i386-nto-tdep.c: Likewise.
4244 * i386-sol2-tdep.c: Likewise.
4245 * i386-tdep.c: Likewise.
4246 * i386bsd-tdep.c: Likewise.
4247 * i386gnu-nat.c: Likewise.
4248 * i386nbsd-tdep.c: Likewise.
4249 * i386obsd-tdep.c: Likewise.
4250 * i387-tdep.c: Likewise.
4251 * ia64-libunwind-tdep.c: Likewise.
4252 * ia64-linux-nat.c: Likewise.
4253 * inf-child.c: Likewise.
4254 * inf-ptrace.c: Likewise.
4255 * inf-ttrace.c: Likewise.
4256 * infcall.c: Likewise.
4257 * infcmd.c: Likewise.
4258 * inflow.c: Likewise.
4259 * infrun.c: Likewise.
4260 * interps.c: Likewise.
4261 * iq2000-tdep.c: Likewise.
4262 * irix5-nat.c: Likewise.
4263 * jv-exp.y: Likewise.
4264 * jv-lang.c: Likewise.
4265 * jv-typeprint.c: Likewise.
4266 * jv-valprint.c: Likewise.
4267 * language.c: Likewise.
4268 * linux-fork.c: Likewise.
4269 * linux-nat.c: Likewise.
4270 * lm32-tdep.c: Likewise.
4271 * m2-exp.y: Likewise.
4272 * m2-typeprint.c: Likewise.
4273 * m32c-tdep.c: Likewise.
4274 * m32r-linux-nat.c: Likewise.
4275 * m32r-linux-tdep.c: Likewise.
4276 * m32r-rom.c: Likewise.
4277 * m32r-tdep.c: Likewise.
4278 * m68hc11-tdep.c: Likewise.
4279 * m68k-tdep.c: Likewise.
4280 * m68kbsd-tdep.c: Likewise.
4281 * m68klinux-nat.c: Likewise.
4282 * m68klinux-tdep.c: Likewise.
4283 * m88k-tdep.c: Likewise.
4284 * machoread.c: Likewise.
4285 * macrocmd.c: Likewise.
4287 * mdebugread.c: Likewise.
4288 * mem-break.c: Likewise.
4289 * memattr.c: Likewise.
4290 * memory-map.c: Likewise.
4291 * mep-tdep.c: Likewise.
4292 * mi/mi-cmd-break.c: Likewise.
4293 * mi/mi-cmd-disas.c: Likewise.
4294 * mi/mi-cmd-env.c: Likewise.
4295 * mi/mi-cmd-stack.c: Likewise.
4296 * mi/mi-cmd-var.c: Likewise.
4297 * mi/mi-cmds.c: Likewise.
4298 * mi/mi-console.c: Likewise.
4299 * mi/mi-getopt.c: Likewise.
4300 * mi/mi-interp.c: Likewise.
4301 * mi/mi-main.c: Likewise.
4302 * mi/mi-parse.c: Likewise.
4303 * microblaze-rom.c: Likewise.
4304 * microblaze-tdep.c: Likewise.
4305 * mingw-hdep.c: Likewise.
4306 * minidebug.c: Likewise.
4307 * minsyms.c: Likewise.
4308 * mips-irix-tdep.c: Likewise.
4309 * mips-linux-tdep.c: Likewise.
4310 * mips-tdep.c: Likewise.
4311 * mips64obsd-tdep.c: Likewise.
4312 * mipsnbsd-tdep.c: Likewise.
4313 * mipsread.c: Likewise.
4314 * mn10300-linux-tdep.c: Likewise.
4315 * mn10300-tdep.c: Likewise.
4316 * monitor.c: Likewise.
4317 * moxie-tdep.c: Likewise.
4318 * mt-tdep.c: Likewise.
4319 * nat/linux-btrace.c: Likewise.
4320 * nat/linux-osdata.c: Likewise.
4321 * nat/linux-procfs.c: Likewise.
4322 * nat/linux-ptrace.c: Likewise.
4323 * nat/linux-waitpid.c: Likewise.
4324 * nbsd-tdep.c: Likewise.
4325 * nios2-linux-tdep.c: Likewise.
4326 * nto-procfs.c: Likewise.
4327 * nto-tdep.c: Likewise.
4328 * objc-lang.c: Likewise.
4329 * objfiles.c: Likewise.
4330 * opencl-lang.c: Likewise.
4331 * osabi.c: Likewise.
4332 * osdata.c: Likewise.
4333 * p-exp.y: Likewise.
4334 * p-lang.c: Likewise.
4335 * p-typeprint.c: Likewise.
4336 * parse.c: Likewise.
4337 * posix-hdep.c: Likewise.
4338 * ppc-linux-nat.c: Likewise.
4339 * ppc-sysv-tdep.c: Likewise.
4340 * ppcfbsd-tdep.c: Likewise.
4341 * ppcnbsd-tdep.c: Likewise.
4342 * ppcobsd-tdep.c: Likewise.
4343 * printcmd.c: Likewise.
4344 * procfs.c: Likewise.
4345 * prologue-value.c: Likewise.
4346 * python/py-auto-load.c: Likewise.
4347 * python/py-gdb-readline.c: Likewise.
4348 * ravenscar-thread.c: Likewise.
4349 * regcache.c: Likewise.
4350 * registry.c: Likewise.
4351 * remote-fileio.c: Likewise.
4352 * remote-m32r-sdi.c: Likewise.
4353 * remote-mips.c: Likewise.
4354 * remote-notif.c: Likewise.
4355 * remote-sim.c: Likewise.
4356 * remote.c: Likewise.
4357 * reverse.c: Likewise.
4358 * rs6000-aix-tdep.c: Likewise.
4359 * ser-base.c: Likewise.
4360 * ser-go32.c: Likewise.
4361 * ser-mingw.c: Likewise.
4362 * ser-pipe.c: Likewise.
4363 * ser-tcp.c: Likewise.
4364 * ser-unix.c: Likewise.
4365 * serial.c: Likewise.
4366 * sh-tdep.c: Likewise.
4367 * sh64-tdep.c: Likewise.
4368 * shnbsd-tdep.c: Likewise.
4370 * sol-thread.c: Likewise.
4371 * solib-dsbt.c: Likewise.
4372 * solib-frv.c: Likewise.
4373 * solib-osf.c: Likewise.
4374 * solib-som.c: Likewise.
4375 * solib-spu.c: Likewise.
4376 * solib-target.c: Likewise.
4377 * solib.c: Likewise.
4378 * somread.c: Likewise.
4379 * source.c: Likewise.
4380 * sparc-nat.c: Likewise.
4381 * sparc-sol2-tdep.c: Likewise.
4382 * sparc-tdep.c: Likewise.
4383 * sparc64-tdep.c: Likewise.
4384 * sparc64fbsd-tdep.c: Likewise.
4385 * sparc64nbsd-tdep.c: Likewise.
4386 * sparcnbsd-tdep.c: Likewise.
4387 * spu-linux-nat.c: Likewise.
4388 * spu-multiarch.c: Likewise.
4389 * spu-tdep.c: Likewise.
4390 * stabsread.c: Likewise.
4391 * stack.c: Likewise.
4392 * std-regs.c: Likewise.
4393 * symfile.c: Likewise.
4394 * symmisc.c: Likewise.
4395 * symtab.c: Likewise.
4396 * target.c: Likewise.
4397 * thread.c: Likewise.
4398 * tilegx-linux-nat.c: Likewise.
4399 * tilegx-tdep.c: Likewise.
4401 * tracepoint.c: Likewise.
4402 * tui/tui-command.c: Likewise.
4403 * tui/tui-data.c: Likewise.
4404 * tui/tui-disasm.c: Likewise.
4405 * tui/tui-file.c: Likewise.
4406 * tui/tui-layout.c: Likewise.
4407 * tui/tui-out.c: Likewise.
4408 * tui/tui-regs.c: Likewise.
4409 * tui/tui-source.c: Likewise.
4410 * tui/tui-stack.c: Likewise.
4411 * tui/tui-win.c: Likewise.
4412 * tui/tui-windata.c: Likewise.
4413 * tui/tui-winsource.c: Likewise.
4414 * typeprint.c: Likewise.
4415 * ui-file.c: Likewise.
4416 * ui-out.c: Likewise.
4417 * user-regs.c: Likewise.
4418 * utils.c: Likewise.
4419 * v850-tdep.c: Likewise.
4420 * valarith.c: Likewise.
4421 * valops.c: Likewise.
4422 * valprint.c: Likewise.
4423 * value.c: Likewise.
4424 * varobj.c: Likewise.
4425 * vax-tdep.c: Likewise.
4426 * vaxnbsd-tdep.c: Likewise.
4427 * vaxobsd-tdep.c: Likewise.
4428 * windows-nat.c: Likewise.
4429 * xcoffread.c: Likewise.
4430 * xml-support.c: Likewise.
4431 * xstormy16-tdep.c: Likewise.
4432 * xtensa-linux-nat.c: Likewise.
4436 * common/common-defs.h: Include gdb_assert.h.
4437 * aarch64-tdep.c: Do not include gdb_assert.h.
4438 * addrmap.c: Likewise.
4439 * aix-thread.c: Likewise.
4440 * alpha-linux-tdep.c: Likewise.
4441 * alpha-mdebug-tdep.c: Likewise.
4442 * alphanbsd-tdep.c: Likewise.
4443 * amd64-nat.c: Likewise.
4444 * amd64-tdep.c: Likewise.
4445 * amd64bsd-nat.c: Likewise.
4446 * amd64fbsd-nat.c: Likewise.
4447 * amd64fbsd-tdep.c: Likewise.
4448 * amd64nbsd-nat.c: Likewise.
4449 * amd64nbsd-tdep.c: Likewise.
4450 * amd64obsd-nat.c: Likewise.
4451 * amd64obsd-tdep.c: Likewise.
4452 * arch-utils.c: Likewise.
4453 * arm-tdep.c: Likewise.
4454 * armbsd-tdep.c: Likewise.
4456 * bcache.c: Likewise.
4457 * bfin-tdep.c: Likewise.
4458 * blockframe.c: Likewise.
4459 * breakpoint.c: Likewise.
4460 * bsd-kvm.c: Likewise.
4461 * bsd-uthread.c: Likewise.
4462 * buildsym.c: Likewise.
4463 * c-exp.y: Likewise.
4464 * c-lang.c: Likewise.
4465 * charset.c: Likewise.
4466 * cleanups.c: Likewise.
4467 * cli-out.c: Likewise.
4468 * cli/cli-decode.c: Likewise.
4469 * cli/cli-dump.c: Likewise.
4470 * cli/cli-logging.c: Likewise.
4471 * cli/cli-script.c: Likewise.
4472 * cli/cli-utils.c: Likewise.
4473 * coffread.c: Likewise.
4474 * common/common-utils.c: Likewise.
4475 * common/queue.h: Likewise.
4476 * common/signals.c: Likewise.
4477 * common/vec.h: Likewise.
4478 * complaints.c: Likewise.
4479 * completer.c: Likewise.
4480 * corelow.c: Likewise.
4481 * cp-abi.c: Likewise.
4482 * cp-name-parser.y: Likewise.
4483 * cp-namespace.c: Likewise.
4484 * cp-support.c: Likewise.
4485 * cris-tdep.c: Likewise.
4486 * dbxread.c: Likewise.
4487 * dictionary.c: Likewise.
4488 * doublest.c: Likewise.
4489 * dsrec.c: Likewise.
4490 * dummy-frame.c: Likewise.
4491 * dwarf2-frame-tailcall.c: Likewise.
4492 * dwarf2-frame.c: Likewise.
4493 * dwarf2expr.c: Likewise.
4494 * dwarf2loc.c: Likewise.
4495 * dwarf2read.c: Likewise.
4497 * event-loop.c: Likewise.
4498 * exceptions.c: Likewise.
4499 * expprint.c: Likewise.
4500 * f-valprint.c: Likewise.
4501 * fbsd-nat.c: Likewise.
4502 * findvar.c: Likewise.
4503 * frame-unwind.c: Likewise.
4504 * frame.c: Likewise.
4505 * frv-tdep.c: Likewise.
4506 * gcore.c: Likewise.
4507 * gdb-dlfcn.c: Likewise.
4508 * gdb_bfd.c: Likewise.
4509 * gdbarch.c: Likewise.
4510 * gdbarch.sh: Likewise.
4511 * gdbtypes.c: Likewise.
4512 * gnu-nat.c: Likewise.
4513 * gnu-v3-abi.c: Likewise.
4514 * go-lang.c: Likewise.
4515 * guile/scm-exception.c: Likewise.
4516 * guile/scm-gsmob.c: Likewise.
4517 * guile/scm-lazy-string.c: Likewise.
4518 * guile/scm-math.c: Likewise.
4519 * guile/scm-pretty-print.c: Likewise.
4520 * guile/scm-safe-call.c: Likewise.
4521 * guile/scm-utils.c: Likewise.
4522 * guile/scm-value.c: Likewise.
4523 * h8300-tdep.c: Likewise.
4524 * hppa-hpux-nat.c: Likewise.
4525 * hppa-tdep.c: Likewise.
4526 * hppanbsd-tdep.c: Likewise.
4527 * hppaobsd-tdep.c: Likewise.
4528 * i386-darwin-nat.c: Likewise.
4529 * i386-darwin-tdep.c: Likewise.
4530 * i386-nto-tdep.c: Likewise.
4531 * i386-tdep.c: Likewise.
4532 * i386bsd-nat.c: Likewise.
4533 * i386fbsd-tdep.c: Likewise.
4534 * i386gnu-nat.c: Likewise.
4535 * i386nbsd-tdep.c: Likewise.
4536 * i386obsd-tdep.c: Likewise.
4537 * i387-tdep.c: Likewise.
4538 * ia64-libunwind-tdep.c: Likewise.
4539 * ia64-tdep.c: Likewise.
4540 * inf-ptrace.c: Likewise.
4541 * inf-ttrace.c: Likewise.
4542 * infcall.c: Likewise.
4543 * infcmd.c: Likewise.
4544 * infrun.c: Likewise.
4545 * inline-frame.c: Likewise.
4546 * interps.c: Likewise.
4547 * jv-lang.c: Likewise.
4548 * jv-typeprint.c: Likewise.
4549 * linux-fork.c: Likewise.
4550 * linux-nat.c: Likewise.
4551 * linux-thread-db.c: Likewise.
4552 * m32c-tdep.c: Likewise.
4553 * m32r-linux-nat.c: Likewise.
4554 * m32r-tdep.c: Likewise.
4555 * m68k-tdep.c: Likewise.
4556 * m68kbsd-nat.c: Likewise.
4557 * m68kbsd-tdep.c: Likewise.
4558 * m88k-tdep.c: Likewise.
4559 * machoread.c: Likewise.
4560 * macroexp.c: Likewise.
4561 * macrotab.c: Likewise.
4562 * maint.c: Likewise.
4563 * mdebugread.c: Likewise.
4564 * memory-map.c: Likewise.
4565 * mep-tdep.c: Likewise.
4566 * mi/mi-common.c: Likewise.
4567 * microblaze-tdep.c: Likewise.
4568 * mingw-hdep.c: Likewise.
4569 * mips-linux-nat.c: Likewise.
4570 * mips-linux-tdep.c: Likewise.
4571 * mips-tdep.c: Likewise.
4572 * mips64obsd-tdep.c: Likewise.
4573 * mipsnbsd-tdep.c: Likewise.
4574 * mn10300-linux-tdep.c: Likewise.
4575 * mn10300-tdep.c: Likewise.
4576 * moxie-tdep.c: Likewise.
4577 * mt-tdep.c: Likewise.
4578 * nat/linux-btrace.c: Likewise.
4579 * nat/linux-osdata.c: Likewise.
4580 * nat/linux-ptrace.c: Likewise.
4581 * nat/mips-linux-watch.c: Likewise.
4582 * nios2-linux-tdep.c: Likewise.
4583 * nios2-tdep.c: Likewise.
4584 * objc-lang.c: Likewise.
4585 * objfiles.c: Likewise.
4586 * obsd-nat.c: Likewise.
4587 * opencl-lang.c: Likewise.
4588 * osabi.c: Likewise.
4589 * parse.c: Likewise.
4590 * ppc-linux-nat.c: Likewise.
4591 * ppc-sysv-tdep.c: Likewise.
4592 * ppcfbsd-nat.c: Likewise.
4593 * ppcfbsd-tdep.c: Likewise.
4594 * ppcnbsd-nat.c: Likewise.
4595 * ppcnbsd-tdep.c: Likewise.
4596 * ppcobsd-nat.c: Likewise.
4597 * ppcobsd-tdep.c: Likewise.
4598 * printcmd.c: Likewise.
4599 * procfs.c: Likewise.
4600 * prologue-value.c: Likewise.
4601 * psymtab.c: Likewise.
4602 * python/py-lazy-string.c: Likewise.
4603 * python/py-value.c: Likewise.
4604 * regcache.c: Likewise.
4605 * reggroups.c: Likewise.
4606 * registry.c: Likewise.
4607 * remote-sim.c: Likewise.
4608 * remote.c: Likewise.
4609 * rs6000-aix-tdep.c: Likewise.
4610 * rs6000-tdep.c: Likewise.
4611 * s390-linux-tdep.c: Likewise.
4612 * score-tdep.c: Likewise.
4613 * ser-base.c: Likewise.
4614 * ser-mingw.c: Likewise.
4615 * sh-tdep.c: Likewise.
4616 * sh64-tdep.c: Likewise.
4617 * solib-darwin.c: Likewise.
4618 * solib-spu.c: Likewise.
4619 * solib-svr4.c: Likewise.
4620 * source.c: Likewise.
4621 * sparc-nat.c: Likewise.
4622 * sparc-sol2-tdep.c: Likewise.
4623 * sparc-tdep.c: Likewise.
4624 * sparc64-sol2-tdep.c: Likewise.
4625 * sparc64-tdep.c: Likewise.
4626 * sparc64fbsd-tdep.c: Likewise.
4627 * sparc64nbsd-tdep.c: Likewise.
4628 * sparc64obsd-tdep.c: Likewise.
4629 * sparcnbsd-tdep.c: Likewise.
4630 * sparcobsd-tdep.c: Likewise.
4631 * spu-multiarch.c: Likewise.
4632 * spu-tdep.c: Likewise.
4633 * stabsread.c: Likewise.
4634 * stack.c: Likewise.
4635 * symfile.c: Likewise.
4636 * symtab.c: Likewise.
4637 * target-descriptions.c: Likewise.
4638 * target-memory.c: Likewise.
4639 * target.c: Likewise.
4640 * tic6x-linux-tdep.c: Likewise.
4641 * tic6x-tdep.c: Likewise.
4642 * tilegx-linux-nat.c: Likewise.
4643 * tilegx-tdep.c: Likewise.
4645 * tramp-frame.c: Likewise.
4646 * tui/tui-out.c: Likewise.
4647 * tui/tui-winsource.c: Likewise.
4648 * ui-out.c: Likewise.
4649 * user-regs.c: Likewise.
4650 * utils.c: Likewise.
4651 * v850-tdep.c: Likewise.
4652 * valops.c: Likewise.
4653 * value.c: Likewise.
4654 * varobj.c: Likewise.
4655 * vax-nat.c: Likewise.
4656 * xml-syscall.c: Likewise.
4657 * xml-tdesc.c: Likewise.
4658 * xstormy16-tdep.c: Likewise.
4659 * xtensa-linux-nat.c: Likewise.
4660 * xtensa-tdep.c: Likewise.
4664 * common/common-defs.h: Include common-utils.h.
4665 * defs.h: Do not include common-utils.h.
4666 * common/gdb_assert.h: Likewise.
4667 * darwin-nat.h: Likewise.
4668 * nat/linux-btrace.c: Likewise.
4669 * target/waitstatus.h: Likewise.
4673 * common/common-defs.h: Include ptid.h.
4674 * defs.h: Do not include ptid.h.
4675 * inferior.h: Likewise.
4676 * infrun.h: Likewise.
4677 * nat/linux-btrace.h: Likewise.
4678 * nat/linux-osdata.h: Likewise.
4679 * target/waitstatus.h: Likewise.
4683 * common/common-defs.h: Include gdb_locale.h.
4684 * defs.h: Do not include gdb_locale.h.
4688 * common/common-defs.h: Include gdb/signals.h.
4689 * defs.h: Do not include gdb/signals.h.
4693 * common/common-defs.h: Include pathmax.h.
4694 * defs.h: Do not include pathmax.h.
4698 * common/common-defs.h: Include libiberty.h.
4699 * defs.h: Do not include libiberty.h.
4700 * common/queue.h: Likewise.
4701 * cp-name-parser.y: Likewise.
4702 * mi/mi-cmd-catch.c: Likewise.
4703 * python/python.c: Likewise.
4707 * common/common-defs.h: Include ansidecl.h.
4708 * defs.h: Do not include ansidecl.h.
4709 * common/buffer.h: Likewise.
4710 * common/common-utils.h: Likewise.
4714 * common/common-defs.h: Include stddef.h.
4715 * defs.h: Do not include stddef.h.
4716 * common/common-utils.h: Likewise.
4717 * amd64fbsd-nat.c: Likewise.
4718 * bcache.c: Likewise.
4719 * charset.c: Likewise.
4720 * common/buffer.h: Likewise.
4721 * common/vec.h: Likewise.
4722 * i386bsd-nat.c: Likewise.
4723 * nat/linux-btrace.h: Likewise.
4724 * ppcfbsd-nat.c: Likewise.
4725 * ppcnbsd-tdep.h: Likewise.
4726 * ppcobsd-nat.c: Likewise.
4727 * ppcobsd-tdep.h: Likewise.
4728 * python/py-gdb-readline.c: Likewise.
4732 * common/common-defs.h: Include stdarg.h.
4733 * defs.h: Do not include stdarg.h.
4734 * ada-lang.c: Likewise.
4735 * common/common-utils.h: Likewise.
4736 * guile/scm-string.c: Likewise.
4737 * guile/scm-utils.c: Likewise.
4738 * m32c-tdep.c: Likewise.
4742 * common/common-defs.h: Include stdlib.h.
4743 * defs.h: Do not include stdlib.h.
4744 * addrmap.c: Likewise.
4745 * bcache.c: Likewise.
4746 * common/buffer.c: Likewise.
4747 * common/common-utils.c: Likewise.
4748 * cp-name-parser.y: Likewise.
4749 * go32-nat.c: Likewise.
4750 * mn10300-linux-tdep.c: Likewise.
4751 * nat/linux-osdata.c: Likewise.
4752 * tui/tui.c: Likewise.
4753 * windows-nat.c: Likewise.
4757 * common/common-defs.h: Include stdio.h.
4758 * defs.h: Do not include stdio.h.
4759 * ada-lang.c: Likewise.
4760 * common/buffer.c: Likewise.
4761 * common/common-utils.c: Likewise.
4762 * cp-name-parser.y: Likewise.
4763 * gnu-nat.c: Likewise.
4764 * go32-nat.c: Likewise.
4765 * i386gnu-nat.c: Likewise.
4766 * proc-api.c: Likewise.
4767 * proc-events.c: Likewise.
4768 * proc-flags.c: Likewise.
4769 * proc-why.c: Likewise.
4770 * python/python-internal.h: Likewise.
4771 * target-memory.c: Likewise.
4772 * tui/tui-io.c: Likewise.
4773 * tui/tui.c: Likewise.
4777 * solib-svr4.c (scan_dyntag): Rename dyntag and dyn_tag variables.
4778 (scan_dyntag_auxv): Same.
4782 * amd64-linux-nat.c: Remove duplicated include
4784 * i386-linux-nat.c: Likewise.
4788 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
4789 operand" with "Special opcode" in comments.
4793 * interps.c (initialize_interps): Remove prototype.
4794 (interpreter_initialized): Remove static global.
4795 (interp_add): Do not call initialize_interps.
4796 (initialize_interps): Remove function.
4800 * utils.c (vwarning): Remove spurious va_end.
4804 * charset.c (convert_between_encodings): Cast result of obstack_base.
4805 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
4806 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
4807 (read_unwind_info): Use size_t for some locals.
4808 * jit.c (finalize_symtab): Likewise.
4809 * utils.c (hashtab_obstack_allocate): Likewise.
4810 * symmisc.c (print_objfile_statistics): Update format strings.
4814 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
4815 (Changes in GDB 7.8): ... here.
4819 * target.c (set_targetdebug): New function.
4820 (initialize_targets): Pass set_targetdebug when creating "set
4825 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
4826 if detecting a variable-sized field that is not the last field.
4827 Fix struct type length computation.
4831 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4836 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
4837 Remove "+ 8" offset in computation of CHAIN_VMA.
4841 * inflow.c (child_terminal_inferior): Add comment.
4842 (child_terminal_ours_for_output): Add comment.
4843 (child_terminal_ours): Add comment.
4844 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
4845 (linux_nat_terminal_ours): Add comment.
4849 * common/btrace-common.h: Do not include defs.h or server.h.
4850 * nat/mips-linux-watch.h: Likewise.
4851 * gdb-dlfcn.h: Do not include defs.h.
4852 * tracefile.h: Likewise.
4856 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
4860 * bsd-kvm.c (bsd_kvm_open): Constify.
4861 * corelow.c (core_open): Constify.
4862 * ctf.c (ctf_open): Constify.
4863 * dbug-rom.c (dbug_open): Constify.
4864 * exec.c (exec_open): Constify.
4865 * m32r-rom.c (m32r_open, mon2000_open): Constify.
4866 * microblaze-rom.c (picobug_open): Constify.
4867 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
4869 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
4870 * record-btrace.c (record_btrace_open): Constify.
4871 * record-full.c (record_full_core_open_1, record_full_open_1)
4872 (record_full_open): Constify.
4873 * remote-m32r-sdi.c (m32r_open): Constify.
4874 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
4875 (rockhopper_open, lsi_open): Constify.
4876 * remote-sim.c (gdbsim_open): Constify.
4877 * remote.c (remote_open, extended_remote_open, remote_open_1):
4879 * target.h (struct target_ops) <to_open>: Make "arg" const.
4880 * tracefile-tfile.c (tfile_open): Constify.
4884 * breakpoint.c (map_breakpoint_numbers): Update.
4885 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
4886 (get_number_const): New function.
4887 (get_number): Rewrite using get_number_const.
4888 (init_number_or_range): Make "string" const.
4889 (number_is_in_list): Make "list" const.
4890 * cli/cli-utils.h (get_number_const): Declare.
4891 (struct get_number_or_range_state) <string, end_ptr>: Now const.
4892 (init_number_or_range, number_is_in_list): Update.
4893 * printcmd.c (map_display_numbers): Update.
4894 * value.c (value_from_history_ref): Constify.
4895 * value.h (value_from_history_ref): Update.
4899 * corefile.c (hook_type, call_extra_exec_file_hooks)
4900 (specify_exec_file_hook): Constify.
4901 * exec.c (exec_file_attach): Make "filename" const.
4902 * gdbcore.h (deprecated_exec_file_display_hook)
4903 (specify_exec_file_hook, exec_file_attach): Constify.
4904 * main.c (captured_main): Use catch_command_errors_const.
4908 * target.c (open_target): New function.
4909 (add_target_with_completer, add_deprecated_target_alias): Use
4910 set_cmd_sfunc, set_cmd_context.
4911 (debug_to_open): Remove.
4912 (setup_target_debug): Update.
4916 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
4918 * parse.c (exp_iterate): Update comments.
4922 * common/common-defs.h: New file.
4923 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
4924 * defs.h: Include common-defs.h.
4925 Do not include config.h or build-gnulib/config.h.
4929 * common/common-utils.h: Do not include config.h.
4930 * nat/linux-btrace.h: Likewise.
4934 * btrace.c: Include defs.h.
4935 * common/ptid.c: Include defs.h or server.h as appropriate.
4936 * nat/mips-linux-watch.c: Likewise.
4940 * target.c (target_is_pushed): Simplify.
4949 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
4954 * guile/scm-param.c (pascm_parameter_defined_p): New function.
4955 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
4960 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
4961 (THUMB2_SET_R7_SIGRETURN2): Likewise.
4962 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
4963 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
4964 (THUMB2_EABI_SYSCALL): Likewise.
4965 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
4967 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
4968 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
4972 * guile/scm-param.c (pascm_print_param_smob): Fix output.
4976 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
4982 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
4983 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
4984 * configure.ac: Try to use guild to compile an scm file, if it fails
4985 then disable guile support.
4986 * configure: Regenerate.
4987 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
4989 (GUILE_COMPILED_FILES): New variable.
4990 (GUILE_FILES) Update.
4991 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
4992 (stamp-guile): Compile scm files.
4993 * guile/guile.c (boot_guile_support): New function.
4994 (standard_throw_args_p): New function.
4995 (print_standard_throw_error, print_throw_error): New functions.
4996 (handle_boot_error): New function.
4997 (initialize_scheme_side): Rewrite to call boot_guile_support.
4998 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
4999 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
5005 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
5006 * guile/lib/gdb/support.scm: New file.
5007 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
5008 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
5010 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
5012 (%assert-type): Ditto, and renamed to assert-type.
5013 (%exception-print-style): Delete.
5018 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
5019 * configure: Regenerate.
5020 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
5022 (PYTHON_FILES): New variable.
5023 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
5024 (GUILE_FILES): New variable.
5025 (stamp-python, install-python, uninstall-python): Handle empty
5027 (stamp-guile, install-guile, uninstall-guile): Ditto.
5032 * guile/lib/gdb.scm (pretty-printers): Export.
5033 (set-pretty-printers!): Export.
5034 * guile/lib/gdb/printing.scm (gdb module): Update.
5035 (prepend-pretty-printer!, append-pretty-printer!): Update.
5036 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
5037 (pretty_printer_list_var): Delete.
5038 (pretty_printer_list): New static global.
5039 (gdbscm_pretty_printers): New function.
5040 (gdbscm_set_pretty_printers_x): New function.
5041 (ppscm_find_pretty_printer_from_gdb): Update.
5042 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
5043 (gdbscm_initialize_pretty_printers): Update.
5048 * configure.ac: Add check for header gc/gc.h.
5049 Add check for function setenv.
5050 * configure: Regenerate.
5051 * config.in: Regenerate.
5052 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
5056 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
5057 variation in gdbarch matching.
5061 * exec.c (using_exec_ops): Remove.
5062 (exec_close_1): Update. Remove extraneous block, reindent.
5063 (add_target_sections): Use target_is_pushed.
5067 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
5068 * monitor.c (monitor_create_inferior): Likewise.
5069 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
5070 * remote-sim.c (gdbsim_create_inferior): Likewise.
5071 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
5072 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
5073 * windows-nat.c (do_initial_windows_stuff): Likewise.
5077 * NEWS: Mention signal passing and "signal" command changes.
5078 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
5080 * breakpoint.c (until_break_command): Adjust clear_proceed_status
5082 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
5083 * infcmd.c (proceed_thread_callback, continue_1, step_once)
5084 (jump_command): Adjust clear_proceed_status call.
5085 (signal_command): Warn if other thread that are resumed have
5086 signals that will be delivered. Adjust clear_proceed_status call.
5087 (until_next_command, finish_command)
5088 (proceed_after_attach_callback, attach_command_post_wait)
5089 (attach_command): Adjust clear_proceed_status call.
5090 * infrun.c (proceed_after_vfork_done): Likewise.
5091 (proceed_after_attach_callback): Adjust comment.
5092 (clear_proceed_status_thread): Clear stop_signal if not in pass
5094 (clear_proceed_status_callback): Delete.
5095 (clear_proceed_status): New 'step' parameter. Only clear the
5096 proceed status of threads the command being prepared is about to
5098 (proceed): If passed in an explicit signal, override stop_signal
5099 with it. Don't pass the last stop signal to the thread we're
5101 (init_wait_for_inferior): Adjust clear_proceed_status call.
5102 (switch_back_to_stepped_thread): Clear the signal if it should not
5104 * infrun.h (clear_proceed_status): New 'step' parameter.
5105 (user_visible_resume_ptid): Add comment.
5106 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
5107 signal is in pass state.
5108 * remote.c (append_pending_thread_resumptions): Likewise.
5109 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
5113 * target.h (target_stopped_data_address)
5114 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
5119 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
5121 (avr_pointer_to_address): Likewise.
5125 * monitor.c (compile_pattern): Update.
5126 * target.h (struct target_ops) <to_shortname, to_longname,
5131 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
5132 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
5133 (add_info_alias, add_com): Make "doc" const.
5134 (print_doc_line): Make "str" const.
5135 (delete_cmd): Update.
5136 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
5137 (print_doc_line): Update.
5138 * cli/cli-script.c (document_command): Update.
5139 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
5140 (add_com, add_info, add_info_alias): Update.
5141 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5142 * python/py-cmd.c (cmdpy_destroyer): Update.
5146 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
5147 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
5148 (help_cmd_list): Constify.
5149 (lookup_cmd): Update.
5150 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
5152 (help_cmd_list, apropos_cmd): Update.
5153 * cli/cli-script.c (show_user): Update.
5154 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
5155 * cli/cli-setshow.h (cmd_show_list): Update.
5156 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
5157 (cmd_show_list): Update.
5158 * guile/scm-cmd.c (cmdscm_destroyer): Update.
5159 * python/py-cmd.c (cmdpy_destroyer): Update.
5163 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
5164 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
5166 * command.h (deprecate_cmd): Update.
5167 * maint.c (maintenance_do_deprecate): Add casts.
5171 * cli/cli-decode.c (help_cmd): Make parameter "const".
5172 * cli/cli-decode.h (help_cmd): Update.
5176 * stack.c (up_silently_base, down_silently_base): Make argument
5181 * solib.c (solib_add): Make "pattern" const.
5182 * solib.h (solib_add): Update.
5186 * remote.c (remote_serial_open, print_packet, putpkt)
5187 (putpkt_binary): Constify.
5188 * remote.h (putpkt): Update.
5192 * monitor.c (monitor_open): Make "args" const.
5193 * monitor.h (monitor_open): Update.
5197 * maint.c (match_bfd_flags): Make "string" const.
5198 (print_bfd_section_info): Remove casts.
5199 (print_objfile_section_info): Make "string" const.
5203 * inf-child.c (inf_child_open_target): Make "arg" const.
5204 * inf-child.h (inf_child_open_target): Update.
5208 * environ.c (unset_in_environ): Make "var" const.
5209 * environ.h (unset_in_environ): Update.
5213 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
5215 (scan_filename_with_cleanup): Likewise.
5216 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
5217 Make arguments const.
5218 (restore_command): Update.
5222 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
5227 * nat/linux-ptrace.c (additional_flags): New global.
5228 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
5229 additional_flags; don't check GDBSERVER.
5230 (linux_ptrace_set_additional_flags): New function.
5231 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
5233 * linux-nat.c (_initialize_linux_nat): Call
5234 linux_ptrace_set_additional_flags.
5238 * make-target-delegates (munge_type, write_debugmethod): New
5240 (debug_names): New global.
5241 ($TARGET_DEBUG_PRINTER): New global.
5242 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
5244 Write debug methods. Generate init_debug_target.
5245 * target-debug.h: New file.
5246 * target-delegates.c: Rebuild.
5247 * target.c: Include target-debug.h.
5248 (debug_target): Hoist definition.
5249 (target_kill, target_get_section_table, target_memory_map)
5250 (target_flash_erase, target_flash_done, target_detach)
5251 (target_disconnect, target_wait, target_resume)
5252 (target_pass_signals, target_program_signals, target_follow_fork)
5253 (target_mourn_inferior, target_search_memory)
5254 (target_thread_address_space, target_close)
5255 (target_find_new_threads, target_core_of_thread)
5256 (target_verify_memory, target_insert_mask_watchpoint)
5257 (target_remove_mask_watchpoint): Remove targetdebug code.
5258 (debug_to_post_attach, debug_to_prepare_to_store)
5259 (debug_to_files_info, debug_to_insert_breakpoint)
5260 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
5261 (debug_to_region_ok_for_hw_watchpoint)
5262 (debug_to_can_accel_watchpoint_condition)
5263 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
5264 (debug_to_watchpoint_addr_within_range)
5265 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
5266 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
5267 (debug_to_terminal_init, debug_to_terminal_inferior)
5268 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
5269 (debug_to_terminal_save_ours, debug_to_terminal_info)
5270 (debug_to_load, debug_to_post_startup_inferior)
5271 (debug_to_insert_fork_catchpoint)
5272 (debug_to_remove_fork_catchpoint)
5273 (debug_to_insert_vfork_catchpoint)
5274 (debug_to_remove_vfork_catchpoint)
5275 (debug_to_insert_exec_catchpoint)
5276 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
5277 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
5278 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
5279 (setup_target_debug): Call init_debug_target.
5280 * target.h (TARGET_DEBUG_PRINTER): New macro.
5281 (struct target_ops) <to_resume, to_wait, to_pass_signals,
5282 to_program_signals>: Use TARGET_DEBUG_PRINTER.
5286 * exceptions.h (throw_vfatal): Renamed to...
5287 (throw_vquit): New declaration.
5288 (throw_quit): Likewise.
5289 * exceptions.c (throw_vfatal): Renamed to...
5290 (throw_vquit): New function.
5291 (throw_quit): Likewise.
5292 (throw_error): Call throw_verror rather than throw_it.
5293 * utils.h (vfatal): Removed.
5295 * utils.c (vfatal): Removed.
5297 (internal_verror): Replaced call to fatal with call to throw_quit.
5298 (quit): Replaced calls to fatal with calls to throw_quit.
5302 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
5307 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
5308 less than zero in conditional expression.
5312 * make-target-delegates ($ARGS_PART): Match trailing close paren.
5313 ($INTRO_PART): Don't match whitespace.
5314 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
5316 ($METHOD): Add $METHOD_TRAILER.
5318 (scan_target_h): New sub.
5319 Change main loop not to collect state.
5320 * target-delegates.c: Rebuild.
5324 * cp-support.c (gdb_demangle): Fix build on systems without
5329 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
5330 for reference entry value target data value.
5334 * stack.c (read_frame_arg): Verify value_optimized_out before calling
5335 value_available_contents_eq.
5339 * value.c (allocate_optimized_out_value): Don't mark value as
5344 * MAINTAINERS (Write After Approval): Update my email address.
5349 * remote.c (putpkt_binary): Add text to error message.
5353 * eval.c: Remove "Chill" from comments.
5354 * gdbtypes.h: Likewise.
5355 * symtab.h: Likewise.
5359 * std-operator.def: Update comments to TERNOP_SLICE.
5363 * std-operator.def: Remove BINOP_RANGE.
5364 * breakpoint.c (watchpoint_exp_is_const): Update.
5365 * expprint.c (dump_subexp_body_standard): Likewise.
5366 * eval.c (init_array_element): Remove dead code.
5367 (evaluate_subexp_standard): Likewise.
5371 * std-operator.def: Remove BINOP_IN.
5372 * breakpoint.c (watchpoint_exp_is_const): Update.
5373 * eval.c (evaluate_subexp_standard): Likewise.
5374 * expprint.c (dump_subexp_body_standard): Likewise.
5378 * microblaze-tdep.c (microblaze_register_names): Add
5379 the rshr and rslr register names.
5380 (microblaze_gdbarch_init): Use of tdesc_has_registers.
5381 Use of tdesc_find_feature. Use of tdesc_data_alloc.
5382 Use of tdesc_numbered_register. Use of
5383 microblaze_register_g_packet_guesses. Use of
5384 tdesc_use_registers. Use of set_gdbarch_register_type.
5385 (microblaze_register_g_packet_guesses): New.
5386 * microblaze-tdep.h (microblaze_reg_num): Add
5387 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
5388 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
5389 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
5390 * features/microblaze-core.xml: New file.
5391 * features/microblaze-stack-protect.xml: New file.
5392 * features/microblaze-with-stack-protect.c: New file.
5393 * features/microblaze-with-stack-protect.xml: New file.
5394 * features/microblaze.xml: New file.
5395 * features/microblaze.c: New file.
5396 * features/Makefile (microblaze-with-stack-protect): Add
5397 microblaze-with-stack-protect microblaze and microblaze-expedite.
5398 * regformats/microblaze-with-stack-protect.dat: New file.
5399 * regformats/microblaze.dat: New file.
5400 * doc/gdb.texinfo (MicroBlaze Features): Added.
5404 * exec.c (exec_ops): Now static.
5405 * exec.h (exec_ops): Don't declare.
5409 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
5410 to find_target_beneath.
5411 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
5412 find_target_beneath.
5413 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
5418 * utils.c (quit): Use target_supports_terminal_ours.
5419 * target.h (target_supports_terminal_ours): Declare.
5420 * target.c (target_supports_delete_record): Don't check
5421 to_delete_record against NULL.
5422 (target_supports_terminal_ours): New function.
5427 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
5428 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
5429 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
5430 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
5431 * windows-nat.c (windows_xfer_partial): Always delegate.
5432 * record-btrace.c (record_btrace_xfer_partial): Simplify
5434 (record_btrace_fetch_registers, record_btrace_store_registers)
5435 (record_btrace_prepare_to_store, record_btrace_resume)
5436 (record_btrace_wait, record_btrace_find_new_threads)
5437 (record_btrace_thread_alive): Likewise.
5438 * procfs.c (procfs_xfer_partial): Always delegate.
5439 * corelow.c (core_xfer_partial): Always delegate.
5440 * sol-thread.c (sol_find_new_threads): Simplify delegation.
5444 * exec.c (exec_make_note_section): Move earlier.
5449 * maint.c (count_symtabs_and_blocks): Handle NULL
5450 current_program_space.
5451 (report_command_stats): Check global enabled flag in addition to
5452 recorded enabled flag.
5453 (make_command_stats_cleanup): Handle msg_type == 0, startup.
5457 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
5461 * target.h (struct target_ops) <to_delete_record>: Reformat
5466 * target-delegates.c: Rebuild.
5470 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
5471 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
5472 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
5473 (avr_pointer_to_address): Likewise.
5474 (avr_address_class_type_flags): New function.
5475 (avr_address_class_type_flags_to_name): Likewise.
5476 (avr_address_class_name_to_type_flags): Likewise.
5477 (avr_gdbarch_init): Set address_class_type_flags,
5478 address_class_type_flags_to_name and
5479 address_class_name_to_type_flags.
5483 * linux-nat.c (kill_callback): Save errno and work with saved
5488 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
5492 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
5493 breakpoint support correctly.
5497 * utils.c (prompt_for_continue): Call target_terminal_ours.
5501 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
5502 catch_errors. Don't re-enable stdin or notify observers where,
5504 (fetch_inferior_event_wrapper): Delete.
5509 * top.c: Include "inf-loop.h".
5510 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
5512 (gdb_readline_wrapper_cleanup): Make the target async again, if it
5514 (gdb_readline_wrapper): Store whether the target is async, and
5520 * top.c (gdb_readline_wrapper_line): Tweak comment.
5521 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
5522 the input handler callback.
5527 * main.c: Include event-top.h.
5528 (handle_command_errors): New function.
5529 (catch_command_errors, catch_command_errors_const): Use it.
5533 * exceptions.c (catch_command_errors, catch_command_errors_const):
5535 * exceptions.h (catch_command_errors_ftype)
5536 (catch_command_errors_const_ftype): Moved to main.c.
5537 (catch_command_errors, catch_command_errors_const): Delete
5539 * main.c (catch_command_errors_ftype)
5540 (catch_command_errors_const_ftype): Moved here from exceptions.h.
5541 (catch_command_errors, catch_command_errors_const)): Moved here
5542 from exceptions.c and make static.
5546 * exceptions.c (print_any_exception): Delete.
5547 (catch_exceptions_with_msg): Use exception_print instead of
5548 print_any_exception.
5549 (catch_errors): Use exception_fprintf instead of
5550 print_any_exception.
5551 (catch_command_errors, catch_command_errors_const): Use
5552 exception_print instead of print_any_exception.
5556 * infcall.c (run_inferior_call): Set 'sync_execution' while
5557 running the inferior call.
5561 * value.c (value_contents_equal): Delete function.
5562 * value.h (value_contents_equal): Delete declaration.
5567 * gdbtypes.c (is_dynamic_type_internal): New function, from
5569 (is_dynamic_type): Rewrite.
5570 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
5571 (resolve_dynamic_struct): Likewise.
5572 (resolve_dynamic_type_internal): New function, from
5573 resolve_dynamic_type.
5574 (resolve_dynamic_type): Rewrite.
5578 * target.c (target_require_runnable): Also check record_stratum.
5583 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
5584 thumb_instruction_restores_sp return true.
5588 * arm-tdep.c (thumb_instruction_restores_sp): New function.
5589 (thumb_in_function_epilogue_p): Call
5590 thumb_instruction_restores_sp.
5594 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
5596 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
5600 * amd64-linux-nat.c (gdbcore.h): Remove include.
5601 (regset.h): Likewise.
5602 (nat/linux-btrace.h): Likewise.
5603 (btrace.h): Likewise.
5604 (gdb_assert.h): Likewise.
5605 (string.h): Likewise.
5606 (sys/uio.h): Likewise.
5607 (sys/debugreg.h): Likewise.
5608 (sys/syscall.h): Likewise.
5609 (sys/procfs.h): Likewise.
5610 (sys/user.h): Likewise.
5611 (asm/ptrace.h): Likewise.
5612 (i386-nat.h): Likewise.
5613 * i386-linux-nat.c (i386-nat.h): Likewise.
5614 (regset.h): Likewise.
5615 (target.h): Likewise.
5616 (linux-nat.h): Likewise.
5617 (nat/linux-btrace.h): Likewise.
5618 (btrace.h): Likewise.
5619 (gdb_assert.h): Likewise.
5620 (string.h): Likewise.
5621 (sys/uio.h): Likewise.
5622 (sys/user.h): Likewise.
5623 (sys/procfs.h): Likewise.
5624 (sys/reg.h): Likewise.
5625 (sys/debugreg.h): Likewise.
5626 (ORIG_EAX): Remove definition.
5630 * i386-linux-nat.h: New file.
5631 * x86-linux-nat.h: Likewise.
5632 * x86-linux-nat.c: Likewise.
5633 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
5634 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
5635 * config/i386/linux64.mh (NATDEPFILES): Likewise.
5636 * amd64-linux-nat.c (x86-linux-nat.h): New include.
5637 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5638 (PTRACE_SETREGSET): Likewise.
5639 (arch_lwp_info): Now in x86-linux-nat.c.
5640 (have_ptrace_getregset): Now in x86-linux-nat.h.
5641 (x86_linux_dr_get): Now in x86-linux-nat.c.
5642 (x86_linux_dr_set): Likewise.
5643 (x86_linux_dr_get_addr): Likewise.
5644 (x86_linux_dr_get_control): Likewise.
5645 (x86_linux_dr_get_status): Likewise.
5646 (update_debug_registers_callback): Likewise.
5647 (x86_linux_dr_set_control): Likewise.
5648 (x86_linux_dr_set_addr): Likewise.
5649 (x86_linux_prepare_to_resume): Likewise.
5650 (x86_linux_new_thread): Likewise.
5651 (x86_linux_new_fork): Likewise.
5652 (x86_linux_get_thread_area): Likewise.
5653 (super_post_startup_inferior): Likewise.
5654 (x86_linux_child_post_startup_inferior): Likewise.
5655 (AMD64_LINUX_USER64_CS): Likewise.
5656 (AMD64_LINUX_X32_DS): Likewise.
5657 (x86_linux_read_description): Likewise.
5658 (x86_linux_enable_btrace): Likewise.
5659 (x86_linux_disable_btrace): Likewise.
5660 (x86_linux_teardown_btrace): Likewise.
5661 (x86_linux_read_btrace): Likewise.
5662 (x86_linux_create_target): Likewise.
5663 (x86_linux_add_target): Likewise.
5664 * i386-linux-nat.c (x86-linux-nat.h): New include.
5665 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
5666 (PTRACE_SETREGSET): Likewise.
5667 (arch_lwp_info): Now in x86-linux-nat.c.
5668 (have_ptrace_getregset): Now in x86-linux-nat.h.
5669 (x86_linux_dr_get): Now in x86-linux-nat.c.
5670 (x86_linux_dr_set): Likewise.
5671 (x86_linux_dr_get_addr): Likewise.
5672 (x86_linux_dr_get_control): Likewise.
5673 (x86_linux_dr_get_status): Likewise.
5674 (update_debug_registers_callback): Likewise.
5675 (x86_linux_dr_set_control): Likewise.
5676 (x86_linux_dr_set_addr): Likewise.
5677 (x86_linux_prepare_to_resume): Likewise.
5678 (x86_linux_new_thread): Likewise.
5679 (x86_linux_new_fork): Likewise.
5680 (x86_linux_get_thread_area): Likewise.
5681 (super_post_startup_inferior): Likewise.
5682 (x86_linux_child_post_startup_inferior): Likewise.
5683 (AMD64_LINUX_USER64_CS): Likewise.
5684 (AMD64_LINUX_X32_DS): Likewise.
5685 (x86_linux_read_description): Likewise.
5686 (x86_linux_enable_btrace): Likewise.
5687 (x86_linux_disable_btrace): Likewise.
5688 (x86_linux_teardown_btrace): Likewise.
5689 (x86_linux_read_btrace): Likewise.
5690 (x86_linux_create_target): Likewise.
5691 (x86_linux_add_target): Likewise.
5695 * amd64-linux-nat.c: Comment and whitespace changes.
5696 * i386-linux-nat.c: Comment and whitespace changes.
5700 * amd64-linux-nat.c (x86_linux_create_target): New function.
5701 (x86_linux_add_target): Likewise.
5702 (_initialize_amd64_linux_nat): Delegate to the above new functions.
5703 * i386-linux-nat.c (x86_linux_create_target): New function.
5704 (x86_linux_add_target): Likewise.
5705 (_initialize_i386_linux_nat): Delegate to the above new functions.
5709 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
5710 (ps_get_thread_area): Delegate to the above in 32-bit mode.
5711 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
5712 (ps_get_thread_area): Delegate to the above.
5716 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
5717 x86_linux_read_description. All uses updated. amd64-specific
5718 code conditionalized. Conditionalized i386-specific code added.
5719 Redundant cast removed.
5720 * i386-linux-nat.c (i386_linux_read_description): Renamed to
5721 x86_linux_read_description. All uses updated. i386-specific
5722 code conditionalized. Conditionalized amd64-specific code added.
5723 One sizeof replaced with the actual type it is describing.
5727 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
5728 x86_linux_dr_get. All uses updated.
5729 (amd64_linux_dr_set): Renamed to
5730 x86_linux_dr_set. All uses updated.
5731 (amd64_linux_dr_get_addr): Renamed to
5732 x86_linux_dr_get_addr. All uses updated.
5733 (amd64_linux_dr_get_control): Renamed to
5734 x86_linux_dr_get_control. All uses updated.
5735 (amd64_linux_dr_get_status): Renamed to
5736 x86_linux_dr_get_status. All uses updated.
5737 (amd64_linux_dr_set_control): Renamed to
5738 x86_linux_dr_set_control. All uses updated.
5739 (amd64_linux_dr_set_addr): Renamed to
5740 x86_linux_dr_set_addr. All uses updated.
5741 (amd64_linux_prepare_to_resume): Renamed to
5742 x86_linux_prepare_to_resume. All uses updated.
5743 (amd64_linux_new_thread): Renamed to
5744 x86_linux_new_thread. All uses updated.
5745 (amd64_linux_new_fork): Renamed to
5746 x86_linux_new_fork. All uses updated.
5747 (amd64_linux_child_post_startup_inferior): Renamed to
5748 x86_linux_child_post_startup_inferior. All uses updated.
5749 (amd64_linux_enable_btrace): Renamed to
5750 x86_linux_enable_btrace. All uses updated.
5751 (amd64_linux_disable_btrace): Renamed to
5752 x86_linux_disable_btrace. All uses updated.
5753 (amd64_linux_teardown_btrace): Renamed to
5754 x86_linux_teardown_btrace. All uses updated.
5755 (amd64_linux_read_btrace): Renamed to
5756 x86_linux_read_btrace. All uses updated.
5757 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
5758 x86_linux_dr_get. All uses updated.
5759 (i386_linux_dr_set): Renamed to
5760 x86_linux_dr_set. All uses updated.
5761 (i386_linux_dr_get_addr): Renamed to
5762 x86_linux_dr_get_addr. All uses updated.
5763 (i386_linux_dr_get_control): Renamed to
5764 x86_linux_dr_get_control. All uses updated.
5765 (i386_linux_dr_get_status): Renamed to
5766 x86_linux_dr_get_status. All uses updated.
5767 (i386_linux_dr_set_control): Renamed to
5768 x86_linux_dr_set_control. All uses updated.
5769 (i386_linux_dr_set_addr): Renamed to
5770 x86_linux_dr_set_addr. All uses updated.
5771 (i386_linux_prepare_to_resume): Renamed to
5772 x86_linux_prepare_to_resume. All uses updated.
5773 (i386_linux_new_thread): Renamed to
5774 x86_linux_new_thread. All uses updated.
5775 (i386_linux_new_fork): Renamed to
5776 x86_linux_new_fork. All uses updated.
5777 (i386_linux_child_post_startup_inferior): Renamed to
5778 x86_linux_child_post_startup_inferior. All uses updated.
5779 (i386_linux_enable_btrace): Renamed to
5780 x86_linux_enable_btrace. All uses updated.
5781 (i386_linux_disable_btrace): Renamed to
5782 x86_linux_disable_btrace. All uses updated.
5783 (i386_linux_teardown_btrace): Renamed to
5784 x86_linux_teardown_btrace. All uses updated.
5785 (i386_linux_read_btrace): Renamed to
5786 x86_linux_read_btrace. All uses updated.
5790 * remote.c (extended_remote_post_attach): New function.
5791 (init_extended_remote_ops): Install it as to_post_attach method.
5795 * infcmd.c (attach_command_post_wait): Don't call
5796 target_terminal_inferior here.
5797 (attach_command): Call it here instead.
5801 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
5803 * c-varobj.c (c_is_path_expr_parent): New function, moved core
5804 from varobj.c, with additional checks.
5805 (c_varobj_ops): Fill in is_path_expr_parent field.
5806 (cplus_varobj_ops): Fill in is_path_expr_parent field.
5807 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
5809 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
5811 (varobj_default_is_path_expr_parent): New function.
5812 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
5813 (varobj_default_is_path_expr_parent): Declare new function.
5817 * infcmd.c (finish_backward): Turn internal error into normal error.
5822 * remote.c (async_handle_remote_sigint)
5823 (async_handle_remote_sigint_twice): Call
5824 gdb_call_async_signal_handler instead of
5825 mark_async_signal_handler.
5829 * target-delegates.c: Rebuild.
5830 * target.c (target_info_record): Remove.
5831 * record.c (info_record_command): Unconditionally call
5833 * target.h (struct target_ops) <to_info_record>: Use
5834 TARGET_DEFAULT_IGNORE.
5835 (target_info_record): Remove.
5839 * target.h (struct target_ops) <to_get_thread_local_address>: Use
5840 TARGET_DEFAULT_NORETURN.
5841 * target.c (generic_tls_error): New function.
5842 (target_translate_tls_address): Don't search target stack.
5843 * target-delegates.c: Rebuild.
5844 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
5846 * linux-thread-db.c (thread_db_get_thread_local_address):
5847 Unconditionally call beneath target.
5851 * cli/cli-logging.c (pop_output_files): Assign targerr to
5856 * MAINTAINERS (Write After Approval): Update my email address.
5860 * proc-service.c (ps_xfer_memory): Update comment.
5861 (ps_pstop): Remove unused function.
5862 (ps_pcontinue): Likewise.
5863 (ps_lstop): Likewise.
5864 (ps_lcontinue): Likewise.
5865 (ps_lgetxregsize): Likewise.
5866 (ps_lgetxregs): Likewise.
5867 (ps_lsetxregs): Likewise.
5868 (ps_plog): Likewise.
5869 (ps_ptread): Likewise.
5870 (ps_ptwrite): Likewise.
5874 * dwarf2read.c (add_array_cv_type): New function.
5875 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
5876 (read_tag_volatile_type): Likewise.
5880 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
5881 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
5882 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
5883 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
5884 * command.h (cmd_cfunc_ftype): Move earlier.
5885 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
5886 (add_com, add_info): Use cmd_cfunc_ftype.
5890 * symtab.c (operator_chars): Make parameters and return type
5892 (file_matches): Make "files" const.
5893 (struct search_symbols_data) <files>: Now const.
5894 (search_symbols): Make "regexp" and "files" parameters const.
5896 (symtab_symbol_info): Remove cast.
5897 (rbreak_command): Update.
5898 * symtab.h (search_symbols): Update.
5902 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
5903 Change parameter type to 'struct thread_info *'. Caller
5905 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
5907 * dummy-frame.c (struct dummy_frame_id): New.
5908 (dummy_frame_id_eq): New function.
5909 (struct dummy_frame) <id>: Change its type to 'struct
5911 (dummy_frame_push): Add parameter ptid and save it in
5913 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
5915 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
5917 (lookup_dummy_frame): Change parameter type to 'struct
5918 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
5919 instead of frame_id_eq.
5920 (dummy_frame_pop): Add parameter ptid. Callers updated.
5921 Update comments. Compose dummy_frame_id and pass it to
5923 (dummy_frame_discard): Add parameter ptid.
5924 (dummy_frame_sniffer): Compose dummy_frame_id and call
5925 dummy_frame_id_eq instead of frame_id_eq.
5926 (fprint_dummy_frames): Print ptid.
5927 * dummy-frame.h: Remove comments.
5928 (dummy_frame_push): Add ptid in declaration.
5929 (dummy_frame_pop, dummy_frame_discard): Likewise.
5933 * cli/cli-cmds.c (error_no_arg): Make "why" const.
5934 * command.h (error_no_arg): Update.
5938 * cli/cli-setshow.c (do_set_command): Make "arg" const.
5939 (do_show_command): Make "arg" const.
5940 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
5944 * record-full.c (record_full_get_bookmark): Make "args" const.
5945 (record_full_goto_bookmark): Make "raw_bookmark" const.
5946 * record.c (record_goto): New function.
5947 (cmd_record_goto): Use it. Now static.
5948 * record.h (record_goto): Declare.
5949 (cmd_record_goto): Remove declaration.
5950 * target-delegates.c: Rebuild.
5951 * target.h (struct target_ops) <to_get_bookmark,
5952 to_goto_bookmark>: Make parameter const.
5956 * defs.h (generic_load): Update.
5957 * m32r-rom.c (m32r_load_gen): Make "filename" const.
5958 * monitor.c (monitor_load): Make "args" const.
5959 * remote-m32r-sdi.c (m32r_load): Make "args" const.
5960 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
5962 (mips_load): Make "file" const.
5963 * remote-sim.c (gdbsim_load): Make "args" const.
5964 * remote.c (remote_load): Make "name" const.
5965 * symfile.c (generic_load): Make "args" const.
5966 * target-delegates.c: Rebuild.
5967 * target.c (target_load): Make "arg" const.
5968 (debug_to_load): Make "args" const.
5969 * target.h (struct target_ops) <to_load>: Make parameter const.
5970 (target_load): Update.
5975 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
5976 (dwarf2_physname, read_partial_die)
5977 (guess_partial_die_structure_name, fixup_partial_die)
5978 (guess_full_die_structure_name, anonymous_struct_prefix)
5979 (dwarf2_name): Use per-BFD obstack.
5983 * dummy-frame.c (dummy_frame_sniffer): Move local variables
5984 dummyframe and this_id into inner block below.
5988 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
5989 with "signal_pass[0]" in the initialization of signal_pass.
5993 * record-btrace.c (record_btrace_generating_corefile)
5994 (record_btrace_prepare_to_generate_core)
5995 (record_btrace_done_generating_core): New.
5996 (record_btrace_xfer_partial, record_btrace_fetch_registers)
5997 (record_btrace_store_registers, record_btrace_prepare_to_store):
5998 Forward request when generating a core file.
5999 (record_btrace_open): Set record_btrace_generating_corefile to zero.
6000 (init_record_btrace_ops): Set to_prepare_to_generate_core and
6001 to_done_generating_core.
6005 * target.h (target_ops) <to_prepare_to_generate_core>
6006 <to_done_generating_core>: New.
6007 (target_prepare_to_generate_core, target_done_generating_core): New.
6008 * target.c (target_prepare_to_generate_core)
6009 (target_done_generating_core): New.
6010 * target-delegates.c: Regenerate.
6011 * gcore.c: (write_gcore_file): Rename to ...
6012 (write_gcore_file_1): ...this.
6013 (write_gcore_file): Call target_prepare_to_generate_core
6014 and target_done_generating_core.
6018 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
6019 * gcore.c (write_gcore_file): Free memory returned from
6020 make_corefile_notes.
6021 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
6022 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
6026 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
6027 (arm_linux_init_abi): Set skip_trampoline_code with
6028 gdbarch_skip_trampoline_code instead of
6029 find_solib_trampoline_target.
6033 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
6034 arm_skip_bx_reg returns non-zero.
6038 * arm-tdep.c (arm_skip_bx_reg): New function.
6039 (arm_skip_stub): Call arm_skip_bx_reg.
6043 * MAINTAINERS: Add myself as write-after-approval maintainer.
6047 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
6048 DR_CONTROL before setting DR0..DR3.
6049 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
6050 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
6051 bits of DR_CONTROL related to the debug register slot being
6052 disabled. If all slots are vacant, clear local slowdown as well,
6053 and assert DR_CONTROL is 0.
6057 * python/lib/gdb/command/xmethods.py
6058 (get_method_matchers_in_loci): Lookup xmethod matchers in the
6059 current progspace only if the string "progspace" matches LOCUS_RE.
6063 Fix --with-system-readline with readline-6.3 patch 5.
6064 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
6065 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
6070 * dwarf2read.c (dw2_get_real_path): Use correct type in
6072 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
6076 * common/gdb_thread_db.h: Moved to nat. All includes updated.
6077 * common/glibc_thread_db.h: Likewise.
6078 * common/i386-cpuid.h: Likewise.
6079 * common/i386-gcc-cpuid.h: Likewise.
6080 * common/linux-btrace.h: Likewise.
6081 * common/linux-osdata.h: Likewise.
6082 * common/linux-procfs.h: Likewise.
6083 * common/linux-ptrace.h: Likewise.
6084 * common/mips-linux-watch.h: Likewise.
6085 * common/linux-btrace.c: Moved to nat.
6086 * common/linux-osdata.c: Likewise.
6087 * common/linux-procfs.c: Likewise.
6088 * common/linux-ptrace.c: Likewise.
6089 * common/mips-linux-watch.c: Likewise.
6090 * nat/gdb_thread_db.h: Moved from common.
6091 * nat/glibc_thread_db.h: Likewise.
6092 * nat/i386-cpuid.h: Likewise.
6093 * nat/i386-gcc-cpuid.h: Likewise.
6094 * nat/linux-btrace.c: Likewise.
6095 * nat/linux-btrace.h: Likewise.
6096 * nat/linux-osdata.c: Likewise.
6097 * nat/linux-osdata.h: Likewise.
6098 * nat/linux-procfs.c: Likewise.
6099 * nat/linux-procfs.h: Likewise.
6100 * nat/linux-ptrace.c: Likewise.
6101 * nat/linux-ptrace.h: Likewise.
6102 * nat/mips-linux-watch.c: Likewise.
6103 * nat/mips-linux-watch.h: Likewise.
6104 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
6105 (object file files): Reordered.
6106 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
6107 of glibc_thread_db.h.
6111 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
6112 (i386_dr_low_type): Moved to nat/i386-dregs.h.
6113 (i386_dr_low): Likewise.
6114 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
6115 (i386_dr_low_set_addr): Likewise.
6116 (i386_dr_low_get_addr): Likewise.
6117 (i386_dr_low_can_set_control): Likewise.
6118 (i386_dr_low_set_control): Likewise.
6119 (i386_dr_low_get_control): Likewise.
6120 (i386_dr_low_get_status): Likewise.
6121 (i386_get_debug_register_length): Likewise.
6122 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
6123 (i386_dr_low): Likewise.
6124 * nat/i386-dregs.c (i386-low.h): Remove include.
6125 (i386-nat.h): Likewise.
6126 (nat/i386-dregs.h): New include.
6127 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
6128 (i386_dr_low_set_addr): Likewise.
6129 (i386_dr_low_get_addr): Likewise.
6130 (i386_dr_low_can_set_control): Likewise.
6131 (i386_dr_low_set_control): Likewise.
6132 (i386_dr_low_get_control): Likewise.
6133 (i386_dr_low_get_status): Likewise.
6134 (i386_get_debug_register_length): Likewise.
6135 (debug_hw_points): Likewise.
6139 * Makefile.in (SFILES): Add d-exp.y.
6140 (YYFILES): Add d-exp.c.
6141 (YYOBJ): Add d-exp.o.
6142 (local-maintainer-clean): Delete d-exp.c.
6143 * d-exp.y: New file.
6144 * d-lang.h (d_parse): New declaration.
6145 (d_error): New declaration.
6146 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
6147 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
6148 PREC_ORDER operators.
6149 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
6153 * gdbthread.h (any_running): Remove the declaration.
6154 * thread.c (any_running): Remove.
6158 * gdbthread.h (struct thread_info) <state>: Change its type to
6159 'enum thread_state'. Update comments.
6163 * gdbthread.h (ALL_THREADS): Delete.
6164 (ALL_NON_EXITED_THREADS): New macro.
6165 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
6166 instead of ALL_THREADS.
6167 * infrun.c (find_thread_needs_step_over)
6168 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
6169 instead of ALL_THREADS.
6170 * record-btrace.c (record_btrace_open)
6171 (record_btrace_stop_recording, record_btrace_close)
6172 (record_btrace_is_replaying, record_btrace_resume)
6173 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
6174 * remote.c (append_pending_thread_resumptions): Likewise.
6175 * thread.c (thread_apply_all_command): Likewise.
6179 * i386-nat.c (i386_stopped_by_watchpoint):
6180 Use i386_dr_stopped_by_watchpoint.
6181 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
6182 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
6186 * nat/i386-dregs.c: New file.
6187 * Makefile.in (i386-dregs.o): New rule.
6188 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
6189 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
6190 * config/i386/darwin.mh (NATDEPFILES): Likewise.
6191 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
6192 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
6193 * config/i386/go32.mh (NATDEPFILES): Likewise.
6194 * config/i386/linux.mh (NATDEPFILES): Likewise.
6195 * config/i386/linux64.mh (NATDEPFILES): Likewise.
6196 * config/i386/mingw.mh (NATDEPFILES): Likewise.
6197 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
6198 * i386-nat.h (debug_hw_points): New declaration.
6199 * i386-nat.c (breakpoint.h): Remove include.
6200 (command.h): Likewise.
6201 (target.h): Likewise.
6202 (gdb_assert.h): Likewise.
6203 (debug_hw_points): Made nonstatic.
6204 (debug_printf): Now in i386-dregs.c.
6205 (TARGET_HAS_DR_LEN_8): Likewise.
6206 (DR_CONTROL_SHIFT): Likewise.
6207 (DR_CONTROL_SIZE): Likewise.
6208 (DR_RW_EXECUTE): Likewise.
6209 (DR_RW_WRITE): Likewise.
6210 (DR_RW_READ): Likewise.
6211 (DR_RW_IORW): Likewise.
6212 (DR_LEN_1): Likewise.
6213 (DR_LEN_2): Likewise.
6214 (DR_LEN_4): Likewise.
6215 (DR_LEN_8): Likewise.
6216 (DR_LOCAL_ENABLE_SHIFT): Likewise.
6217 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
6218 (DR_ENABLE_SIZE): Likewise.
6219 (DR_LOCAL_SLOWDOWN): Likewise.
6220 (DR_GLOBAL_SLOWDOWN): Likewise.
6221 (DR_CONTROL_RESERVED): Likewise.
6222 (I386_DR_CONTROL_MASK): Likewise.
6223 (I386_DR_VACANT): Likewise.
6224 (I386_DR_LOCAL_ENABLE): Likewise.
6225 (I386_DR_GLOBAL_ENABLE): Likewise.
6226 (I386_DR_DISABLE): Likewise.
6227 (I386_DR_SET_RW_LEN): Likewise.
6228 (I386_DR_GET_RW_LEN): Likewise.
6229 (I386_DR_WATCH_HIT): Likewise.
6230 (i386_wp_op_t): Likewise.
6231 (i386_show_dr): Likewise.
6232 (i386_length_and_rw_bits): Likewise.
6233 (i386_insert_aligned_watchpoint): Likewise.
6234 (i386_remove_aligned_watchpoint): Likewise.
6235 (i386_handle_nonaligned_watchpoint): Likewise.
6236 (i386_update_inferior_debug_regs): Likewise.
6237 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
6238 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
6239 (i386_region_ok_for_watchpoint):
6240 Use i386_dr_region_ok_for_watchpoint.
6241 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
6245 * i386-nat.c (i386_insert_hw_breakpoint): Use
6246 i386_insert_watchpoint.
6247 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
6251 * i386-nat.c (i386_dr_show): Renamed to
6252 i386_show_dr and made static. All uses updated.
6253 (i386_dr_length_and_rw_bits): Renamed to
6254 i386_length_and_rw_bits and made static.
6256 (i386_dr_insert_aligned_watchpoint): Renamed to
6257 i386_insert_aligned_watchpoint and made static.
6259 (i386_dr_remove_aligned_watchpoint): Renamed to
6260 i386_remove_aligned_watchpoint and made static.
6262 (i386_dr_update_inferior_debug_regs): Renamed to
6263 i386_update_inferior_debug_regs and made static.
6265 * nat/i386-dregs.h (i386_dr_show): Removed.
6266 (i386_dr_length_and_rw_bits): Likewise.
6267 (i386_dr_insert_aligned_watchpoint): Likewise.
6268 (i386_dr_remove_aligned_watchpoint): Likewise.
6269 (i386_dr_update_inferior_debug_regs): Likewise.
6273 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
6274 * configure: Regenerate.
6275 * config.in: Likewise.
6276 * main.c (signal.h): New include.
6277 (setup_alternate_signal_stack): New function.
6278 (captured_main): Call the above.
6279 * cp-support.c (signal.h): New include.
6280 (catch_demangler_crashes): New flag.
6281 (SIGJMP_BUF): New define.
6282 (SIGSETJMP): Likewise.
6283 (SIGLONGJMP): Likewise.
6284 (gdb_demangle_jmp_buf): New static global.
6285 (gdb_demangle_attempt_core_dump): Likewise.
6286 (gdb_demangle_signal_handler): New function.
6287 (gdb_demangle): If catch_demangler_crashes is set, install the
6288 above signal handler before calling bfd_demangle, and restore
6289 the original signal handler afterwards. Display the offending
6290 symbol and call demangler_warning the first time a segmentation
6292 (_initialize_cp_support): New maint set/show command.
6296 * utils.h (resource_limit_kind): New enum.
6297 (can_dump_core): New declaration.
6298 (warn_cant_dump_core): Likewise.
6299 (dump_core): Likewise.
6300 * utils.c (dump_core): Made nonstatic. Added new
6301 parameter "limit_kind".
6302 (can_dump_core): Made nonstatic. Moved printing code to...
6303 (warn_cant_dump_core): New function.
6304 (can_dump_core_warn): Likewise.
6305 (internal_vproblem): Replace calls to can_dump_core with
6306 calls to can_dump_core_warn. Supply new argument to each.
6310 * utils.h (demangler_vwarning): New declaration.
6311 (demangler_warning): Likewise.
6312 * utils.c (struct internal_problem)
6313 <user_settable_should_quit>: New field.
6314 <user_settable_should_dump_core>: Likewise
6315 (internal_error_problem): Add values for above new fields.
6316 (internal_warning_problem): Likewise.
6317 (demangler_warning_problem): New static global.
6318 (demangler_vwarning): New function.
6319 (demangler_warning): Likewise.
6320 (add_internal_problem_command): Selectively add commands.
6321 (_initialize_utils): New internal problem command.
6322 * maint.c (maintenance_demangler_warning): New function.
6323 (_initialize_maint_cmds): New command.
6327 * f-valprint.c (info_common_command_for_block): Update.
6328 * symtab.h (struct general_symbol_info) <common_block>: Now
6333 * symtab.h (struct symtab) <blockvector>: Now const.
6334 * ada-lang.c (ada_add_global_exceptions): Update.
6335 * buildsym.c (augment_type_symtab): Update.
6336 * dwarf2read.c (dw2_lookup_symbol): Update.
6337 * jit.c (finalize_symtab): Update.
6338 * jv-lang.c (add_class_symtab_symbol): Update.
6339 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
6341 * objfiles.c (objfile_relocate1): Update.
6342 * psymtab.c (lookup_symbol_aux_psymtabs)
6343 (maintenance_check_psymtabs): Update.
6344 * python/py-symtab.c (stpy_global_block, stpy_static_block):
6346 * spu-tdep.c (spu_catch_start): Update.
6347 * symmisc.c (dump_symtab_1): Update.
6348 * symtab.c (lookup_global_symbol_from_objfile)
6349 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
6350 (basic_lookup_transparent_type_quick)
6351 (basic_lookup_transparent_type, find_pc_sect_symtab)
6352 (find_pc_sect_line, search_symbols): Update.
6353 * block.c (find_block_in_blockvector): Make "bl" const.
6354 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
6356 (blockvector_contains_pc): Make "bv" const.
6357 (block_for_pc_sect): Update.
6358 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6359 (blockvector_contains_pc): Update.
6360 * breakpoint.c (resolve_sal_pc): Update.
6361 * inline-frame.c (block_starting_point_at): Update.
6365 * completer.c (complete_line): Make "line_buffer" const.
6366 * completer.h (complete_line): Update.
6370 * symtab.c (add_macro_name): Remove unneeded cast.
6374 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
6375 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
6379 * probe.c (info_probes_for_ops): Make "arg" const.
6380 * probe.h (info_probes_for_ops): Update.
6384 * varobj.c (varobj_create): Update.
6385 * valops.c (value_of_this): Update.
6386 * tracepoint.c (add_local_symbols, scope_info): Update.
6387 * symtab.h (struct general_symbol_info) <block>: Now const.
6388 * symtab.c (skip_prologue_sal)
6389 (default_make_symbol_completion_list_break_on)
6390 (skip_prologue_using_sal): Update.
6391 * stack.h (iterate_over_block_locals)
6392 (iterate_over_block_local_vars): Update.
6393 * stack.c (print_frame_args): Update.
6394 (iterate_over_block_locals, iterate_over_block_local_vars): Make
6396 (get_selected_block): Make return type const.
6397 * python/py-frame.c (frapy_block): Update.
6398 * python/py-block.c (gdbpy_block_for_pc): Update.
6399 * p-exp.y (%union) <bval>: Now const.
6400 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6401 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
6402 * m2-exp.y (%union) <bval>: Now const.
6403 * linespec.c (get_current_search_block): Make return type const.
6404 (create_sals_line_offset, find_label_symbols): Update.
6405 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
6407 (block_starting_point_at): Make "block" const.
6408 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
6409 (check_exception_resume): Update.
6410 * guile/scm-frame.c (gdbscm_frame_block): Update.
6411 * guile/scm-block.c (gdbscm_lookup_block): Update.
6412 * frame.h (get_frame_block): Update.
6413 (get_selected_block): Make return type const.
6414 * frame.c (frame_id_inner): Update.
6415 * f-valprint.c (info_common_command_for_block)
6416 (info_common_command): Update.
6417 * dwarf2loc.c (dwarf2_find_location_expression)
6418 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
6419 (locexpr_describe_location_piece): Update.
6420 * c-exp.y (%union) <bval>: Now const.
6421 * breakpoint.c (resolve_sal_pc): Update.
6422 * blockframe.c (get_frame_block):Make return type const.
6423 (get_pc_function_start, get_frame_function, find_pc_sect_function)
6424 (block_innermost_frame): Update.
6425 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
6426 (block_for_pc, block_for_pc_sect): Update.
6427 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
6429 (block_for_pc_sect, block_for_pc): Make return type const.
6430 * ax-gdb.c (gen_expr): Update.
6431 * alpha-mdebug-tdep.c (find_proc_desc): Update.
6432 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
6433 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
6434 (ada_read_var_value): Update.
6435 * ada-exp.y (struct name_info) <block>: Now const.
6437 (block_lookup): Constify.
6441 * nat/i386-dregs.h: New file.
6442 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
6443 * i386-nat.h (i386-dregs.h): New include.
6444 (DR_FIRSTADDR): Now in i386-dregs.h.
6445 (DR_LASTADDR): Likewise.
6446 (DR_NADDR): Likewise.
6447 (DR_STATUS): Likewise.
6448 (DR_CONTROL): Likewise.
6449 (i386_debug_reg_state): Likewise.
6450 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
6454 * breakpoint.c (set_longjmp_breakpoint): Call
6455 momentary_breakpoint_from_master with additional argument.
6456 (set_longjmp_breakpoint_for_call_dummy): Call
6457 momentary_breakpoint_from_master with additional argument.
6458 (set_std_terminate_breakpoint): Call
6459 momentary_breakpoint_from_master with additional argument.
6460 (momentary_breakpoint_from_master): Add argument to function
6461 definition and use it to initialize structure member flag.
6462 (clone_momentary_breakpoint): Call
6463 momentary_breakpoint_from_master with additional argument.
6464 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
6465 member flags set in momentary_breakpoint_from_master.
6469 * i386-nat.c (i386_show_dr): Renamed to
6470 i386_dr_show and made nonstatic. All uses updated.
6471 (i386_length_and_rw_bits): Renamed to
6472 i386_dr_length_and_rw_bits and made nonstatic.
6474 (i386_insert_aligned_watchpoint): Renamed to
6475 i386_dr_insert_aligned_watchpoint and made nonstatic.
6477 (i386_remove_aligned_watchpoint): Renamed to
6478 i386_dr_remove_aligned_watchpoint and made nonstatic.
6480 (i386_update_inferior_debug_regs): Renamed to
6481 i386_dr_update_inferior_debug_regs and made nonstatic.
6486 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
6487 (i386_dr_low_can_set_control): Likewise.
6488 (i386_dr_low_set_addr): Likewise.
6489 (i386_dr_low_set_control): Likewise.
6490 (i386_dr_low_get_addr): Likewise.
6491 (i386_dr_low_get_status): Likewise.
6492 (i386_dr_low_get_control): Likewise.
6493 (i386_insert_aligned_watchpoint): Use new macros.
6494 (i386_update_inferior_debug_regs): Likewise.
6495 (i386_stopped_data_address): Likewise.
6499 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
6500 New parameter. All uses updated.
6504 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
6509 * i386-nat.c (debug_printf): New macro.
6510 (i386_get_debug_register_length): Likewise.
6511 (TARGET_HAS_DR_LEN_8): Use above macro.
6512 (i386_show_dr): Use debug_printf instead of puts_unfiltered
6513 and printf_unfiltered. Use phex to format values.
6517 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
6522 * i386-nat.c: Comment changes.
6526 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
6530 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
6531 (i386_insert_aligned_watchpoint): Likewise.
6532 (i386_remove_aligned_watchpoint): Likewise.
6533 (i386_handle_nonaligned_watchpoint): Likewise.
6537 * i386-nat.c: Whitespace changes.
6541 * MAINTAINERS: Update Roland McGrath's email address.
6542 Thanks to Sergio Durigan Junior for pointing out that he left
6543 Red Hat a while ago, and giving me a current address.
6547 * utils.h (savestring): Remove declaration.
6551 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
6556 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
6557 to update the varobj if inferior_ptid is null_ptid.
6561 * target.h (struct target_ops) <to_info_proc>: Make parameter
6563 (target_info_proc): Update.
6564 * target.c (target_info_proc): Make "args" const.
6565 * procfs.c (procfs_info_proc): Update.
6566 * linux-tdep.c (linux_info_proc): Update.
6567 (linux_core_info_proc_mappings): Make "args" const.
6568 (linux_core_info_proc): Update.
6569 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
6570 * gdbarch.c: Rebuild.
6571 * gdbarch.h: Rebuild.
6572 * corelow.c (core_info_proc): Update.
6576 * target.h (struct target_ops) <to_disconnect>: Make parameter
6578 (target_disconnect): Update.
6579 * target.c (target_disconnect): Make "args" const.
6580 * target-delegates.c: Rebuild.
6581 * remote.c (remote_disconnect): Update.
6582 * record.h (record_disconnect): Update.
6583 * record.c (record_disconnect): Update.
6584 * inf-child.c (inf_child_disconnect): Update.
6588 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
6589 * target.c (debug_to_rcmd, default_rcmd): Update.
6590 * target-delegates.c: Rebuild.
6591 * remote.c (remote_rcmd): Update.
6592 * monitor.c (monitor_rcmd): Update.
6596 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
6597 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
6598 have OBJF_SHARED set.
6599 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
6600 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
6601 instead of OBJF_USERLOADED.
6602 * objfiles.h (OBJF_SHARED): Update comment.
6603 (userloaded_objfile_contains_address_p): Rename to ...
6604 (shared_objfile_contains_address_p): ... this, and update
6606 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
6608 (remove_symbol_file_command): Skip objfiles that don't have
6613 * minsyms.h (prim_record_minimal_symbol)
6614 (prim_record_minimal_symbol_and_info): Update comments.
6618 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
6619 or --without-guile, according to how GDB was built.
6623 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
6625 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
6627 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
6629 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
6630 help_list.Pass all_commands, not -1, to help_list.
6631 * cli/cli-dump.c (dump_command, append_command)
6632 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
6633 (binary_dump_command, binary_append_command): Pass all_commands,
6634 not -1, to help_list.
6635 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
6637 * valprint.c (set_print, set_print_raw): Pass all_commands, not
6639 * typeprint.c (set_print_type): Pass all_commands, not -1, to
6641 * top.c (set_history): Pass all_commands, not -1, to help_list.
6642 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
6643 all_commands, not -1, to help_list.
6644 * symfile.c (overlay_command): Pass all_commands, not -1, to
6646 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
6648 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
6650 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
6652 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
6653 not -1, to help_list.
6654 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
6655 not -1, to help_list.
6656 * maint.c (maintenance_command, maintenance_info_command)
6657 (maintenance_print_command, maintenance_set_cmd): Pass
6658 all_commands, not -1, to help_list.
6659 * macrocmd.c (macro_command): Pass all_commands, not -1, to
6661 * language.c (set_check): Pass all_commands, not -1, to help_list.
6662 * infcmd.c (unset_command): Pass all_commands, not -1, to
6664 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
6666 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
6668 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
6670 * breakpoint.c (save_command): Pass all_commands, not -1, to
6672 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
6673 all_commands, not -1, to help_list.
6677 * regcache.c (struct register_to_invalidate): New structure.
6678 (do_register_invalidate, make_cleanup_regcache_invalidate): New
6680 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
6684 * varobj.c (varobj_get_num_children): Call
6685 varobj_is_dynamic_p.
6686 (varobj_list_children): Likewise.
6687 (varobj_update): Likewise. Update comments.
6691 * varobj.c (varobj_pretty_printed_p): Rename to ...
6692 (varobj_is_dynamic_p): ... this. New function.
6693 * varobj.h (varobj_pretty_printed_p): Remove declaration.
6694 (varobj_is_dynamic_p): Declare.
6695 * mi/mi-cmd-var.c (print_varobj): All callers updated.
6696 (mi_print_value_p, varobj_update_one): Likewise.
6701 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
6702 (varobj_get_iterator): Wrap up code for pretty-printer by
6703 "#if HAVE_PYTHON" and "#endif".
6704 (update_dynamic_varobj_children): Likewise.
6709 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
6710 gdb_python_initialized is false. Move some code from varobj.c.
6711 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
6712 * varobj.c: Move "varobj-iter.h" inclusion earlier.
6713 (struct varobj_item): Moved to varobj-iter.h".
6714 (varobj_clear_saved_item): New function.
6715 (update_dynamic_varobj_children): Move python-related code to
6717 (free_variable): Call varobj_clear_saved_item and
6723 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
6724 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
6725 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
6726 (py-varobj.o): New rule.
6727 * python/py-varobj.c: New file.
6728 * python/python-internal.h (py_varobj_get_iterator): Declare.
6729 * varobj-iter.h: New file.
6730 * varobj.c: Include "varobj-iter.h"
6731 (struct varobj) <child_iter>: Change its type from "PyObject *"
6732 to "struct varobj_iter *".
6733 <saved_item>: Likewise.
6734 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
6735 [HAVE_PYTHON] (varobj_get_iterator): New function.
6736 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
6737 python-specific code to python/py-varobj.c.
6738 (install_visualizer): Call varobj_iter_delete instead of
6740 * varobj.h (varobj_ensure_python_env): Declare.
6744 * varobj.c (struct varobj_item): New structure.
6745 (create_child_with_value): Update declaration.
6746 (varobj_add_child): Replace arguments 'name' and 'value' with
6747 'item'. All callers updated.
6748 (install_dynamic_child): Likewise.
6749 (update_dynamic_varobj_children): Likewise.
6750 (varobj_add_child): Likewise.
6751 (create_child_with_value): Likewise.
6755 * NEWS: Create a new section for the next release branch.
6756 Rename the section of the current branch, now that it has
6761 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
6762 * version.in: Bump version to 7.8.50.DATE-cvs.
6767 * ser-mingw.c (net_windows_socket_check_pending): New function.
6768 (net_windows_select_thread): Ignore spurious wakeups. Use
6769 net_windows_socket_check_pending.
6770 (net_windows_wait_handle): Check for pending events with
6771 ioctlsocket, through net_windows_socket_check_pending, instead of
6772 checking the socket's event.
6776 * python/python-internal.h (gdb_PyObject_GetAttrString)
6777 (gdb_PyObject_HasAttrString): New inline function definitions.
6778 * py-value.c (get_field_flag): Remove the now unnecessary cast to
6779 char * of the second argument to PyObject_GetAttrString.
6783 * serial.c (serial_write): Fix index of character to be printed
6784 in call to serial_logchar when serial debug traces are enabled.
6788 * gdbtypes (resolve_dynamic_range): Add function description.
6792 * linux-nat.c (linux_child_follow_fork): Initialize status with
6793 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
6794 inner block. Only pass the signal to PTRACE_DETACH if in pass
6799 * common/signals.c (gdb_signal_from_host): Reorder to separate
6800 the always-available ANSI-standard signals from the signals that
6802 (do_gdb_signal_to_host): Likewise.
6803 * proc-events.c (signal_table): Likewise.
6807 * common/linux-ptrace.c (linux_disable_event_reporting): New
6809 * common/linux-ptrace.h (linux_disable_event_reporting): New
6811 * linux-nat.c (linux_child_follow_fork): Do a single step before
6818 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
6819 from symbol_matches_domain in symtab.c. All local callers
6820 of symbol_matches_domain updated.
6821 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
6822 search STRUCT_DOMAIN.
6823 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
6824 independently. standard_lookup will do that automatically.
6825 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
6826 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6827 (cp_lookup_symbol_in_namespace): Likewise.
6828 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
6829 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
6830 may return a STRUCT_DOMAIN match.
6831 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
6832 * cp-support.c: Include language.h.
6833 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
6835 * psymtab.c (match_partial_symbol): Compare the requested
6836 domain with the symbol's domain directly.
6837 (lookup_partial_symbol): Likewise.
6838 * symtab.c (lookup_symbol_in_language): Explain when/why
6839 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
6840 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
6841 appropriate languages.
6842 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
6843 and moved to ada-lang.c
6844 (lookup_block_symbol): Explain that this function only returns
6845 symbol matching the requested DOMAIN.
6846 Compare the requested domain with the symbol's domain directly.
6847 (iterate_over_symbols): Compare the requested domain with the
6848 symbol's domain directly.
6849 * symtab.h (symbol_matches_domain): Remove.
6853 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
6854 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
6855 (gdbscm_guile_version_is_at_least): Declare.
6856 (gdbscm_scm_string_to_int): Declare.
6857 * guile/guile.c (gdbscm_guile_major_version): New global.
6858 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
6859 (guile_datadir): New static global.
6860 (gdbscm_guile_data_directory): New function.
6861 (initialize_scheme_side): Update.
6862 (misc_guile_functions): Add guile-data-directory.
6863 (initialize_gdb_module): Fetch guile version number.
6864 * guile/lib/gdb.scm: Remove call to add-to-load-path.
6865 * guile/lib/gdb/init.scm (%initialize!): Ditto.
6866 * guile/lib/gdb/boot.scm: Use guile-data-directory.
6867 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
6869 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
6870 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
6871 * guile/scm-value.c (gdbscm_value_to_string): Only call
6872 scm_port_conversion_strategy if Guile version >= 2.0.6.
6876 * main.c (print_gdb_help): Add -q and --silent.
6880 * common/signals.c: Remove preprocessor conditionals for
6881 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
6882 SIGSEGV and SIGTERM.
6883 * proc-events.c: Likewise.
6887 * symfile.c (symfile_free_objfile): Remove restriction to
6889 * symfile-mem.c (symbol_file_add_from_memory): Call
6890 add_target_sections_of_objfile.
6894 * guile/scm-value.c (gdbscm_history_append_x): Use
6895 'vlscm_get_value_smob_arg_unsafe' instead of
6896 'vlscm_scm_to_value'.
6901 * utils.c (printchar): Don't escape at all if quoter is NUL.
6902 Update function documentation to clarify effect of parameter
6904 * remote.c (escape_buffer): Pass '\\' as the quoter to
6905 fputstrn_unfiltered.
6906 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
6907 generate the output.
6908 (mi_solib_unloaded): Same.
6912 * development.sh: Delete.
6913 * Makefile.in (config.status): Adjust dependency on development.sh.
6914 * configure.ac: Adjust development.sh source call.
6915 * configure: Regenerate.
6919 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
6920 is_scheme_bkpt, spec.
6921 (bpscm_make_breakpoint_smob): Initialize new members.
6922 (gdbscm_create_breakpoint_x): Split into two ...
6923 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
6924 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
6925 (scheme_function breakpoint_functions): Update.
6926 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
6927 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
6928 register-breakpoint!.
6933 * mem-break.c (z_type_supported): Return zero if
6934 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
6938 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
6939 value_from_contents_and_address_unresolved.
6940 (ada_template_to_fixed_record_type_1): Likewise.
6941 (ada_which_variant_applies): Likewise.
6942 * value.h (value_from_contents_and_address_unresolved): Declare.
6943 * value.c (value_from_contents_and_address_unresolved): New
6945 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
6946 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
6947 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
6951 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
6955 * procfs.c (procfs_attach): Make "args" const.
6956 * windows-nat.c (windows_attach): Make "args" const.
6957 * nto-procfs.c (procfs_attach): Make "args" const.
6958 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
6959 * go32-nat.c (go32_attach): Make "args" const.
6960 * gnu-nat.c (gnu_attach): Make "args" const.
6961 * darwin-nat.c (darwin_attach): Make "args" const.
6962 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
6963 * linux-nat.c (linux_nat_attach): Make "args" const.
6964 * remote.c (extended_remote_attach_1, extended_remote_attach):
6966 * target.h (struct target_ops) <to_attach>: Make "args" const.
6967 (find_default_attach): Likewise.
6968 * utils.c (parse_pid_to_attach): Make "args" const.
6969 * utils.h (parse_pid_to_attach): Update.
6973 * target-delegates.c: Rebuild.
6974 * target.c (default_thread_address_space): New function.
6975 (target_thread_address_space): Simplify.
6976 * target.h (struct target_ops) <to_thread_address_space>: Add
6977 TARGET_DEFAULT_FUNC.
6981 * guile/scm-type.c (type_smob): Remove duplicate typedef.
6985 * record-btrace.c: Include event-loop.h and inf-loop.h.
6986 (record_btrace_resume_exec_dir)
6987 (record_btrace_async_inferior_event_handler)
6988 (record_btrace_handle_async_inferior_event): New.
6989 (record_btrace_open): Create async event handler.
6990 (record_btrace_close): Delete async event handler.
6991 (record_btrace_resume): Set record_btrace_resume_exec_dir,
6992 Mark async event handler.
6993 (record_btrace_execution_direction): New.
6994 (init_record_btrace_ops): Initialize to_execution_direction.
6998 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
6999 (gdbscm_make_parameter): Ditto.
7003 * exec.c (exec_close_1): Call clear_section_table instead of
7004 resize_section_table.
7005 (clear_section_table): New function.
7006 (resize_section_table): Make static. Rename arg num_added to
7008 * exec.h (clear_section_table): Declare.
7009 (resize_section_table): Delete.
7010 * progspace.c (release_program_space): Call clear_section_table
7011 instead of resize_section_table.
7015 * NEWS (Python Scripting): Add entry about the new xmethods
7020 * python/py-xmethods.c: New file.
7021 * python/py-objfile.c (objfile_object): New field 'xmethods'.
7022 (objfpy_dealloc): XDECREF on the new xmethods field.
7023 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
7025 (objfpy_get_xmethods): New function.
7026 (objfile_getset): New entry 'xmethods'.
7027 * python/py-progspace.c (pspace_object): New field 'xmethods'.
7028 (pspy_dealloc): XDECREF on the new xmethods field.
7029 (pspy_new, pspace_to_pspace_object): Initialize xmethods
7031 (pspy_get_xmethods): New function.
7032 (pspace_getset): New entry 'xmethods'.
7033 * python/python-internal.h: Add declarations for new functions.
7034 * python/python.c (_initialize_python): Invoke
7035 gdbpy_initialize_xmethods.
7036 * python/lib/gdb/__init__.py (xmethods): New
7038 * python/lib/gdb/xmethod.py: New file.
7039 * python/lib/gdb/command/xmethods.py: New file.
7043 * eval.c (evaluate_subexp_standard): Call the xmethod if the
7044 best match method returned by find_overload_match is an xmethod.
7045 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
7046 the best matching operator returned by find_overload_match is an
7048 * valops.c: #include "extension.h".
7049 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
7050 Return void. The list of matching source methods is returned in
7051 "fn_list" and a vector of matching debug method workers is
7052 returned in "xm_worker_vec". Update all callers.
7053 (value_find_oload_method_list): Likewise.
7054 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
7055 non-NULL, then the index of the best matching method in this
7056 vector is returned. Update all callers.
7057 (find_overload_match): Include xmethods while performing overload
7062 * defs.h (enum lval_type): New enumerator "lval_xcallable".
7063 * extension-priv.h (struct extension_language_ops): Add the
7065 * extension.c (new_xmethod_worker, clone_xmethod_worker,
7066 get_matching_xmethod_workers, get_xmethod_argtypes,
7067 invoke_xmethod, free_xmethod_worker,
7068 free_xmethod_worker_vec): New functions.
7069 * extension.h: #include "common/vec.h".
7070 New function declarations.
7071 (struct xmethod_worker): New struct.
7072 (VEC (xmethod_worker_ptr)): New vector type.
7073 (xmethod_worker_ptr): New typedef.
7074 (xmethod_worker_vec): Likewise.
7075 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
7077 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
7078 (struct builtin_type): New field "xmethod".
7079 * valarith.c (value_ptradd): Assert that the value argument is not
7081 * valops.c (value_must_coerce_to_target): Return 0 for
7082 lval_xcallable values.
7083 * value.c (struct value): New field XM_WORKER in the field
7085 (value_address, value_raw_address): Return 0 for lval_xcallable
7087 (set_value_address): Assert that the value is not an
7089 (value_free): Free the associated xmethod worker when freeing
7090 lval_xcallable values.
7091 (set_value_component_location): Assert that the WHOLE value is not
7093 (value_of_xmethod, call_xmethod): New functions.
7094 * value.h: Declare "struct xmethod_worker".
7095 Declare new functions value_of_xmethod, call_xmethod.
7100 PR breakpoints/17000
7101 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
7102 New function, extracted from software_breakpoint_inserted_here_p.
7103 (software_breakpoint_inserted_here_p): Replace factored out code
7104 by call to find_non_raw_software_breakpoint_inserted_here.
7105 (bp_target_info_copy_insertion_state): New function.
7106 (bkpt_insert_location): Handle the case of a single-step
7107 breakpoint already inserted at the same address.
7108 (bkpt_remove_location): Handle the case of a single-step
7109 breakpoint still inserted at the same address.
7110 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
7111 breakpoint already inserted at the same address.
7112 (deprecated_remove_raw_breakpoint): Handle the case of a
7113 non-raw breakpoint still inserted at the same address.
7114 (find_single_step_breakpoint): New function, extracted from
7115 single_step_breakpoint_inserted_here_p.
7116 (find_single_step_breakpoint): New function,
7117 factored out from single_step_breakpoint_inserted_here_p.
7118 (single_step_breakpoint_inserted_here_p): Reimplement.
7123 * source.c (show_substitute_path_command): Fix display of matching
7128 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
7132 Add parameter support for Guile.
7133 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
7134 (SUBDIR_GUILE_SRCS): Add scm-param.c.
7135 (scm-param.o): New rule.
7136 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
7137 (gdbscm_misc_error): Declare.
7138 (gdbscm_canonicalize_command_name): Declare.
7139 (gdbscm_scm_to_host_string): Declare.
7140 (gdbscm_scm_from_host_string): Declare.
7141 (gdbscm_initialize_parameters): Declare.
7142 * guile/guile.c (initialize_gdb_module): Call
7143 gdbscm_initialize_parameters.
7144 * guile/lib/gdb.scm: Export parameter symbols.
7145 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
7146 cmdscm_canonicalize_name and made public. All callers updated.
7147 * guile/scm-exception.c (gdbscm_misc_error): New function.
7148 * guile/scm-param.c: New file.
7149 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
7150 (gdbscm_scm_to_host_string): New function.
7151 (gdbscm_scm_from_host_string): New function.
7152 * scm-utils.c (gdbscm_gc_dup_argv): New function.
7156 Add command support for Guile.
7157 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
7158 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
7159 (scm-cmd.o): New rule.
7160 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
7161 (gdbscm_user_error_p): Declare.
7162 (gdbscm_parse_command_name): Declare.
7163 (gdbscm_valid_command_class_p): Declare.
7164 (gdbscm_initialize_commands): Declare.
7165 * guile/guile.c (initialize_gdb_module): Call
7166 gdbscm_initialize_commands.
7167 * guile/lib/gdb.scm: Export command symbols.
7168 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
7169 (throw-user-error): New function.
7170 * guile/scm-cmd.c: New file.
7171 * guile/scm-exception.c (user_error_symbol): New static global.
7172 (gdbscm_user_error_p): New function.
7173 (gdbscm_initialize_exceptions): Set user_error_symbol.
7174 * scm-utils.c (gdbscm_gc_xstrdup): New function.
7178 * top.c (command_loop): Handle comments here...
7179 (command_line_input): ... not here.
7183 Add progspace support for Guile.
7184 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
7185 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
7186 (scm-progspace.o): New rule.
7187 * guile/guile-internal.h (pspace_smob): New typedef.
7188 (psscm_pspace_smob_pretty_printers): Declare.
7189 (psscm_pspace_smob_from_pspace): Declare.
7190 (psscm_scm_from_pspace): Declare.
7191 * guile/guile.c (initialize_gdb_module): Call
7192 gdbscm_initialize_pspaces.
7193 * guile/lib/gdb.scm: Export progspace symbols.
7194 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
7196 (append-pretty-printer!): Ditto.
7197 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
7199 * guile/scm-progspace.c: New file.
7203 * ppc64-tdep.c (ppc64_standard_linkage8): New.
7204 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
7208 Add support for skeletonless type units.
7209 * dwarf2read.c (struct dwarf2_per_objfile): New member
7210 n_allocated_type_units.
7211 (struct dwarf2_per_objfile) <tu_stats>: New member
7212 nr_all_type_units_reallocs.
7213 (create_signatured_type_table_from_index): Initialize
7214 n_allocated_type_units
7215 (create_all_type_units): Ditto.
7216 (add_type_unit): Move up in file. New arg slot.
7217 All callers updated. Increase space for all_type_units more
7219 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
7220 (lookup_dwo_signatured_type): Handle skeletonless TUs.
7221 (lookup_dwp_signatured_type): Ditto.
7222 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
7223 All callers updated.
7224 (build_type_psymtabs_1): Leave type_unit_groups as
7225 NULL if no TUs present.
7226 (print_tu_stats): New function.
7227 (process_skeletonless_type_unit): New function.
7228 (process_dwo_file_for_skeletonless_type_units): New
7230 (process_skeletonless_type_units): New function.
7231 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
7232 Call print tu_stats if debugging enabled.
7236 * breakpoint.c (build_target_command_list): Don't build a command
7237 list if we have any duplicate location that isn't a dprintf.
7241 * breakpoint.c (dprintf_breakpoint_hit): New function.
7242 (initialize_breakpoint_ops): Install it as dprintf's
7243 breakpoint_hit method.
7247 * source.c (substitute_path_rule_matches): Simplify using
7248 filename_ncmp instead of FILENAME_CMP.
7252 * source.c (substitute_path_rule_matches): Remove trailing spaces.
7256 * configure.ac: When Guile is available, check for the
7257 availability of 'scm_new_smob'.
7258 * configure, config.h.in: Regenerate.
7259 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
7264 * frame.c (struct frame_info): Add stop_string field.
7265 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
7266 (get_prev_frame_always): Old content moved into
7267 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
7268 TRY_CATCH, handle MEMORY_ERROR exceptions.
7269 (frame_stop_reason_string): New function definition.
7270 * frame.h (unwind_stop_reason_to_string): Extend comment to
7271 mention frame_stop_reason_string.
7272 (frame_stop_reason_string): New function declaration.
7273 * stack.c (frame_info): Switch to frame_stop_reason_string.
7274 (backtrace_command_1): Switch to frame_stop_reason_string.
7275 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
7276 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
7277 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
7281 * frame.c (frame_stop_reason_string): Rename to ...
7282 (unwind_stop_reason_to_string): this.
7283 * frame.h (frame_stop_reason_string): Rename to ...
7284 (unwind_stop_reason_to_string): this.
7285 * stack.c (frame_info): Update call to frame_stop_reason_string.
7286 (backtrace_command_1): Likewise.
7287 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
7288 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
7292 * frame.c (remove_prev_frame): New function.
7293 (get_prev_frame_if_no_cycle): Create / discard cleanup using
7298 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
7299 and make it const. When a single-step decays to a continue,
7300 clear 'step', not 'hw_step'. Pass whether the caller wanted
7301 to step to user_visible_resume_ptid, not what we ask the
7306 * infrun.c (process_event_stop_test, handle_step_into_function)
7307 (handle_step_into_function_backward): Adjust.
7308 Don't set the even thread's stop_step and call stop_waiting before
7309 calling end_stepping_range. Instead do that ...
7310 (end_stepping_range): ... here. Take an ecs pointer parameter.
7314 * infrun.c (stop_stepping): Rename to ...
7315 (stop_waiting): ... this.
7316 (proceed): Update comment.
7317 (process_event_stop_test, handle_inferior_event)
7318 (handle_signal_stop, handle_step_into_function)
7319 (handle_step_into_function_backward): Update.
7323 * infcall.c (run_inferior_call): Don't check whether the current
7324 thread is running after the proceed call.
7329 * NEWS: Mention "maint set target-async", "set mi-async", and that
7330 background execution commands are now always available.
7331 * target.h (target_async_permitted): Update comment.
7332 * target.c (target_async_permitted, target_async_permitted_1):
7334 (set_target_async_command): Rename to ...
7335 (maint_set_target_async_command): ... this.
7336 (show_target_async_command): Rename to ...
7337 (maint_show_target_async_command): ... this.
7338 (_initialize_target): Adjust.
7339 * infcmd.c (prepare_execution_command): Make extern.
7340 * inferior.h (prepare_execution_command): Declare.
7341 * infrun.c (set_observer_mode): Leave target async alone.
7342 * mi/mi-interp.c (mi_interpreter_init): Install
7343 mi_on_sync_execution_done as sync_execution_done observer.
7344 (mi_on_sync_execution_done): New function.
7345 (mi_execute_command_input_handler): Don't print the prompt if we
7346 just started a synchronous command with an async target.
7347 (mi_on_resume): Check sync_execution before printing prompt.
7348 * mi/mi-main.h (mi_async_p): Declare.
7349 * mi/mi-main.c: Include gdbcmd.h.
7350 (mi_async_p): New function.
7351 (mi_async, mi_async_1): New globals.
7352 (set_mi_async_command, show_mi_async_command, mi_async): New
7354 (exec_continue): Call prepare_execution_command.
7355 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
7356 (mi_execute_async_cli_command): Use mi_async_p.
7357 (_initialize_mi_main): Install "set mi-async". Make
7358 "target-async" a deprecated alias.
7362 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
7363 (_initialize_cli_interp): Adjust.
7364 * event-loop.c: Include "observer.h".
7365 (start_event_loop): Notify 'command_error' observers instead of
7366 calling display_gdb_prompt. Remove FIXME comment.
7367 * event-top.c (display_gdb_prompt): Remove call into the
7369 * inf-loop.c: Include "observer.h".
7370 (inferior_event_handler): Notify 'command_error' observers instead
7371 of calling display_gdb_prompt.
7372 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
7373 observers instead of calling display_gdb_prompt.
7374 * interps.c (interp_set): Don't call display_gdb_prompt.
7375 (current_interp_display_prompt_p): Delete.
7376 * interps.h (interp_prompt_p): Delete declaration.
7377 (interp_prompt_p_ftype): Delete.
7378 (struct interp_procs) <prompt_proc_p>: Delete field.
7379 (current_interp_display_prompt_p): Delete declaration.
7380 * mi-interp.c (mi_interpreter_prompt_p): Delete.
7381 (_initialize_mi_interp): Adjust.
7382 * tui-interp.c (tui_init): Install 'sync_execution_done' and
7383 'command_error' observers.
7384 (tui_on_sync_execution_done, tui_on_command_error): New
7386 (tui_display_prompt_p): Delete.
7387 (_initialize_tui_interp): Adjust.
7392 * cli/cli-interp.c: Include infrun.h and observer.h.
7393 (cli_uiout, cli_interp): New globals.
7394 (cli_on_signal_received, cli_on_end_stepping_range)
7395 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
7397 (cli_interpreter_init): Install them as 'end_stepping_range',
7398 'signal_received' 'signal_exited', 'exited' and 'no_history'
7400 (_initialize_cli_interp): Remove cli_interp local.
7401 * infrun.c (handle_inferior_event): Call the several stop reason
7402 observers instead of printing the stop reason directly.
7403 (end_stepping_range): New function.
7404 (print_end_stepping_range_reason, print_signal_exited_reason)
7405 (print_exited_reason, print_signal_received_reason)
7406 (print_no_history_reason): Make static, and add an uiout
7407 parameter. Print to that instead of to CURRENT_UIOUT.
7408 * infrun.h (print_end_stepping_range_reason)
7409 (print_signal_exited_reason, print_exited_reason)
7410 (print_signal_received_reason print_no_history_reason): New
7412 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
7414 <cli_uiout>: New field.
7415 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
7416 uiout for CLI output. Install 'signal_received',
7417 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
7419 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
7420 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
7421 (mi_on_no_history): New functions.
7422 (ui_out_free_cleanup): Delete function.
7423 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
7424 instead use the one already stored in the MI interpreter data.
7425 (mi_ui_out): Adjust.
7426 * tui/tui-interp.c: Include infrun.h and observer.h.
7427 (tui_interp): New global.
7428 (tui_on_signal_received, tui_on_end_stepping_range)
7429 (tui_on_signal_exited, tui_on_exited)
7430 (tui_on_no_history): New functions.
7431 (tui_init): Install them as 'end_stepping_range',
7432 'signal_received' 'signal_exited', 'exited' and 'no_history'
7434 (_initialize_tui_interp): Delete tui_interp local.
7439 * linux-nat.c (linux_nat_resume_callback): Rename the second
7440 parameter to 'except'. Skip LP if it points to EXCEPT.
7441 (linux_nat_resume): Don't mark the event lwp as not stopped
7442 before resuming sibling lwps. Instead ask
7443 linux_nat_resume_callback to skip the event lwp. Mark it as not
7444 stopped after actually resuming it.
7445 (linux_handle_syscall_trap): Mark the lwp as not stopped after
7447 (wait_lwp): Mark the lwp as stopped here.
7448 (stop_wait_callback): Mark the lwp as not stopped right after
7449 resuming it. Don't mark lwps as stopped here.
7450 (linux_nat_filter_event): Mark the lwp as stopped earlier.
7451 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
7456 * infrun.c (resume): Determine how much to resume depending on
7457 whether the caller wanted a step, not whether we can hardware step
7458 the target. Mark all threads that we intend to run as running,
7459 unless we're calling an inferior function.
7460 (normal_stop): If the thread is running an infcall, don't finish
7462 * target.c (target_resume): Don't mark threads as running here.
7466 * serial.c (_initialize_serial): Remove support for
7467 the "set remotebaud" and "show remotebaud" commands.
7468 * NEWS: Add entry documenting the removal of that command.
7472 * charset.c: Fix typo in comments.
7476 * utils.c (internal_vproblem): Prompt for a bug report.
7480 * guile/scm-arch.c (arscm_mark_arch_smob):
7481 * guile/scm-block.c (bkscm_mark_block_smob)
7482 (bkscm_mark_block_syms_progress_smob):
7483 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
7484 * guile/scm-exception.c (exscm_mark_exception_smob):
7485 * guile/scm-frame.c (frscm_mark_frame_smob):
7486 * guile/scm-iterator.c (itscm_mark_iterator_smob):
7487 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
7488 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
7489 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
7490 (ppscm_mark_pretty_printer_worker_smob):
7491 * guile/scm-symbol.c (syscm_mark_symbol_smob):
7492 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
7493 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
7494 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
7496 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
7502 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
7503 empty_base_class. All uses updated.
7504 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
7505 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
7507 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
7508 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
7509 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
7510 (gdbscm_gsmob_has_property_p, add_property_name)
7511 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
7512 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
7513 (gdb-object-has-property?, gdb-object-properties): Remove.
7514 (gdb-object-kind): Renamed from gsmob-kind.
7518 * configure.ac (try_guile_versions): Allow building with guile 2.2.
7519 * configure: Regenerate.
7523 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
7527 * record-btrace.c (record_btrace_allow_memory_access): Remove.
7528 (replay_memory_access_read_only, replay_memory_access_read_write)
7529 (replay_memory_access_types, replay_memory_access)
7530 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
7531 (cmd_set_record_btrace, cmd_show_record_btrace)
7532 (cmd_show_replay_memory_access): New.
7533 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
7534 (record_btrace_remove_breakpoint): Replace
7535 record_btrace_allow_memory_access with replay_memory_access.
7536 (_initialize_record_btrace): Add commands.
7537 * NEWS: Announce it.
7541 * aarch64-linux-nat.c (asm/ptrace.h): Include.
7545 * MAINTAINERS (Write After Approval): Move self back from
7550 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
7551 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
7552 (disable_randomization, enum exec_direction_kind)
7553 (execution_direction, stop_registers, start_remote)
7554 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
7555 (wait_for_inferior, normal_stop, get_last_target_status)
7556 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
7557 (insert_step_resume_breakpoint_at_sal)
7558 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
7559 (set_step_info, print_stop_event, signal_stop_state)
7560 (signal_print_state, signal_pass_state, signal_stop_update)
7561 (signal_print_update, signal_pass_update)
7562 (update_signals_program_target, clear_exit_convenience_vars)
7563 (displaced_step_dump_bytes, update_observer_mode)
7564 (signal_catch_update, gdb_signal_from_command): Move
7566 * infrun.h: ... to this new file.
7567 * amd64-tdep.c: Include infrun.h.
7568 * annotate.c: Include infrun.h.
7569 * arch-utils.c: Include infrun.h.
7570 * arm-linux-tdep.c: Include infrun.h.
7571 * arm-tdep.c: Include infrun.h.
7572 * break-catch-sig.c: Include infrun.h.
7573 * breakpoint.c: Include infrun.h.
7574 * common/agent.c: Include infrun.h instead of inferior.h.
7575 * corelow.c: Include infrun.h.
7576 * event-top.c: Include infrun.h.
7577 * go32-nat.c: Include infrun.h.
7578 * i386-tdep.c: Include infrun.h.
7579 * inf-loop.c: Include infrun.h.
7580 * infcall.c: Include infrun.h.
7581 * infcmd.c: Include infrun.h.
7582 * infrun.c: Include infrun.h.
7583 * linux-fork.c: Include infrun.h.
7584 * linux-nat.c: Include infrun.h.
7585 * linux-thread-db.c: Include infrun.h.
7586 * monitor.c: Include infrun.h.
7587 * nto-tdep.c: Include infrun.h.
7588 * procfs.c: Include infrun.h.
7589 * record-btrace.c: Include infrun.h.
7590 * record-full.c: Include infrun.h.
7591 * remote-m32r-sdi.c: Include infrun.h.
7592 * remote-mips.c: Include infrun.h.
7593 * remote-notif.c: Include infrun.h.
7594 * remote-sim.c: Include infrun.h.
7595 * remote.c: Include infrun.h.
7596 * reverse.c: Include infrun.h.
7597 * rs6000-tdep.c: Include infrun.h.
7598 * s390-linux-tdep.c: Include infrun.h.
7599 * solib-irix.c: Include infrun.h.
7600 * solib-osf.c: Include infrun.h.
7601 * solib-svr4.c: Include infrun.h.
7602 * target.c: Include infrun.h.
7603 * top.c: Include infrun.h.
7604 * windows-nat.c: Include infrun.h.
7605 * mi/mi-interp.c: Include infrun.h.
7606 * mi/mi-main.c: Include infrun.h.
7607 * python/py-threadevent.c: Include infrun.h.
7611 * infrun.c (handle_inferior_event): Store the exit code for
7612 --return-child-result here, instead of ...
7613 (print_exited_reason): ... here.
7618 * gdbthread.h (struct thread_control_state): New field
7620 * infrun.c (follow_fork): Copy the new thread control field to the
7622 (clear_proceed_status_thread): Clear the new thread control field.
7623 (proceed): Set the new thread control field.
7624 * interps.h (command_interp): Declare.
7625 * interps.c (command_interpreter): New global.
7626 (command_interp): New function.
7627 (interp_exec): Set `command_interpreter' while here.
7628 * cli-out.c (cli_uiout_dtor): New function.
7629 (cli_ui_out_impl): Install it.
7630 * mi/mi-interp.c: Include cli-out.h.
7631 (mi_cmd_interpreter_exec): Add comment.
7632 (restore_current_uiout_cleanup): New function.
7633 (ui_out_free_cleanup): New function.
7634 (mi_on_normal_stop): If finishing an execution command started by
7635 a CLI command, or any kind of breakpoint-like event triggered,
7636 print the stop event to the output (CLI) stream.
7637 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
7641 * cli/cli-cmds.c (list_command): Handle the first "list" after the
7642 current source line having changed.
7643 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
7644 * infrun.c (normal_stop): Adjust call to
7645 set_current_sal_from_frame.
7646 * source.c (clear_lines_listed_range): New function.
7647 (set_current_source_symtab_and_line, identify_source_line): Clear
7648 the lines listed range.
7649 (line_info): Handle the first "info line" after the current source
7650 line having changed.
7651 * stack.c (print_stack_frame): Remove center handling.
7652 (set_current_sal_from_frame): Remove 'center' parameter. Don't
7657 * inf-child.c (inf_child_mourn_inferior): New function.
7658 * inf-child.h (inf_child_mourn_inferior): New declaration.
7659 * darwin-nat.c (darwin_mourn_inferior): Use
7660 inf_child_mourn_inferior.
7661 * gnu-nat.c (gnu_mourn_inferior): Likewise.
7662 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
7663 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
7664 * nto-procfs.c (procfs_mourn_inferior): Likewise.
7665 * windows-nat.c (windows_mourn_inferior): Likewise.
7669 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
7673 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
7674 (gdbscm_out_of_range_error): Ditto.
7675 (gdbscm_memory_error): Ditto.
7676 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
7677 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
7678 (gdbscm_out_of_range_error): Update.
7679 (gdbscm_memory_error): Update.
7680 (gdbscm_scm_to_target_string_unsafe): Delete.
7684 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
7686 (inf_child_open_target): New function.
7687 (inf_child_open): Use inf_child_open_target to push the target
7688 instead of erroring out.
7689 (inf_child_disconnect, inf_child_close)
7690 (inf_child_maybe_unpush_target): New functions.
7691 (inf_child_target): Install inf_child_disconnect and
7692 inf_child_close. Store a pointer to the returned object.
7693 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
7695 * target.c (auto_connect_native_target): New global.
7696 (show_default_run_target): New function.
7697 (find_default_run_target): Return NULL if automatically connecting
7698 to the native target is disabled.
7699 (_initialize_target): Install set/show auto-connect-native-target.
7700 * NEWS: Mention "set auto-connect-native-target", and "target
7702 * linux-nat.c (super_close): New global.
7703 (linux_nat_close): Call super_close.
7704 (linux_nat_add_target): Store a pointer to the base class's
7706 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
7707 inf_child_maybe_unpush.
7708 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
7710 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
7711 the inferior. Use inf_child_maybe_unpush_target.
7712 (inf_ttrace_attach): Don't push the target if it is already
7714 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
7715 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
7716 after mourning the inferior. Use inf_child_maybe_unpush_target.
7717 (darwin_attach_pid): Don't push the target if it is already
7719 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
7720 mourning the inferior. Use inf_child_maybe_unpush_target.
7721 (gnu_detach): Use inf_child_maybe_unpush_target.
7722 * go32-nat.c (go32_create_inferior): Don't push the target if it
7724 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
7725 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
7726 (procfs_open): Rename to ...
7727 (procfs_open_1): ... this. Add target_ops parameter. Adjust
7728 comments. Can target_preopen before changing node. Call
7729 inf_child_open_target to push the target explicitly.
7730 (procfs_attach): Don't push the target if it is already pushed.
7731 (procfs_detach): Use inf_child_maybe_unpush_target.
7732 (procfs_create_inferior): Don't push the target if it is already
7734 (nto_native_ops): New global.
7735 (procfs_open): Reimplement.
7736 (procfs_native_open): New function.
7737 (init_procfs_targets): Install procfs_native_open as to_open of
7738 "target native". Store a pointer to the "native" target in
7740 * procfs.c (procfs_attach): Don't push the target if it is already
7742 (procfs_detach): Use inf_child_maybe_unpush_target.
7743 (procfs_mourn_inferior): Only unpush the target after mourning the
7744 inferior. Use inf_child_maybe_unpush_target.
7745 (procfs_init_inferior): Don't push the target if it is already
7747 * windows-nat.c (do_initial_windows_stuff): Don't push the target
7748 if it is already pushed.
7752 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
7753 and "procfs" targets are now called "native" instead.
7757 * go32-nat.c (go32_open): Delete.
7758 (go32_target): Don't override the to_open method.
7762 * nto-procfs.c (procfs_can_run): New function.
7763 (nto_procfs_ops): New global.
7764 (init_procfs_targets): New, based on procfs_target. Install
7765 "target native" in addition to "target procfs".
7766 (_initialize_procfs): Call init_procfs_targets instead of adding
7771 * windows-nat.c (windows_target): Don't override to_shortname,
7772 to_longname or to_doc.
7776 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
7781 * darwin-nat.c (_initialize_darwin_inferior): Don't override
7782 to_shortname, to_longname or to_doc.
7786 * go32-nat.c (go32_target): Don't override to_shortname,
7787 to_longname or to_doc.
7791 * inf-child.c (inf_child_open): Remove mention of "child".
7792 (inf_child_target): Rename target to "native" instead of "child".
7796 * Makefile.in (SFILES): Delete "regset.c".
7797 (COMMON_OBS): Delete "regset.o".
7799 * regset.h (regset_alloc): Delete prototype.
7803 * sparc-linux-tdep.c (sparc32_linux_gregset)
7804 (sparc32_linux_fpregset): New static regset structures.
7805 (sparc32_linux_init_abi): Drop dynamic regset allocations.
7806 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
7808 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
7809 (sparc64_linux_fpregset): New static regset structures.
7810 (sparc64_linux_init_abi): Drop dynamic regset allocations.
7811 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
7812 New static regset structures.
7813 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
7814 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
7815 New static regset structures.
7816 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
7817 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
7818 New static regset structures.
7819 (sparc64obsd_init_abi): Drop dynamic regset allocations.
7820 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
7821 New static regset structures.
7822 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
7826 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
7827 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
7828 register maps ("regmaps") from "*regset" to "*regmap". Do this
7829 for all regmap types and variables.
7830 * sparc-linux-tdep.c (sparc32_linux_step_trap)
7831 (sparc32_linux_supply_core_gregset)
7832 (sparc32_linux_collect_core_gregset)
7833 (sparc32_linux_supply_core_fpregset)
7834 (sparc32_linux_collect_core_fpregset): Likewise.
7835 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
7836 (sparc_gregmap, sparc_fpregmap): ... these.
7837 (sparc_supply_gregset, sparc_collect_gregset)
7838 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7839 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
7840 (_initialize_sparc_nat): Rename regmaps.
7841 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
7842 (sparc_gregmap, sparc_fpregmap): ... these.
7843 (sparc_supply_gregset, sparc_collect_gregset)
7844 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
7845 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
7847 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
7848 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
7850 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
7852 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
7853 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
7854 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
7856 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7857 (sparc32_bsd_fpregset): Rename to...
7858 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7859 (sparc32_bsd_fpregmap): ... these.
7860 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
7861 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
7862 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
7863 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
7864 (struct sparc_gregmap, struct sparc_fpregmap)
7865 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
7866 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
7867 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
7868 (sparc32_supply_regset, sparc32_collect_gregset)
7869 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
7871 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
7872 (sparc64_linux_ptrace_gregmap): ... this.
7873 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
7874 (_initialize_sparc64_linux_nat): Rename regmaps.
7875 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
7876 (sparc64_linux_core_gregmap): ... this.
7877 (sparc64_linux_supply_core_gregset)
7878 (sparc64_linux_collect_core_gregset)
7879 (sparc64_linux_supply_core_fpregset)
7880 (sparc64_linux_collect_core_fpregset): Rename regmaps.
7881 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
7882 (sparc64_sol2_fpregset): Rename to...
7883 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
7884 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
7885 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
7887 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
7888 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
7889 (sparc64_bsd_fpregset): Rename to...
7890 (struct sparc_gregmap, sparc64_sol2_gregmap)
7891 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
7892 (sparc64_bsd_fpregmap): ... these.
7893 (sparc64_supply_gregset, sparc64_collect_gregset)
7894 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
7896 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
7897 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
7898 (sparc64fbsd_gregmap): ... this.
7899 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
7900 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
7902 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
7903 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
7904 (sparc64nbsd_collect_fpregset): Likewise.
7905 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
7906 (sparc64nbsd_gregmap): ... this.
7907 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
7909 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
7910 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
7911 (sparc64obsd_gregmap): ... this.
7912 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
7914 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
7915 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
7916 (sparc32nbsd_gregmap): ... this.
7917 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
7922 * score-tdep.c (score7_linux_gregset): New static regset
7924 (score7_linux_regset_from_core_section): Remove dynamic regset
7926 (score_gdbarch_init): Drop allocation of tdep structure.
7927 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
7931 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
7933 (am33_regset_from_core_section): Remove dynamic regset
7938 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
7939 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
7941 (mips_linux_regset_from_core_section): Remove dynamic regset
7943 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7944 'gregset64', 'fpregset', and 'fpregset64'.
7945 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
7946 deleted tdep fields.
7950 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
7952 (amd64_regset_from_core_section): Remove dynamic regset
7954 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
7956 (amd64obsd_regset_from_core_section): Remove dynamic regset
7958 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
7960 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
7961 x86-common regset supply function.
7962 * i386-tdep.c (i386_collect_gregset): Make static.
7963 (i386_gregset): New global regset structure.
7964 (i386_fpregset, i386_xstateregset): New static regset structures.
7965 (i386_regset_from_core_section): Remove dynamic regset
7967 (i386_gdbarch_init): Remove initialization of tdep fields
7968 'gregset', 'fpregset', and 'xstateregset'.
7969 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
7970 'fpregset', and 'xstateregset'.
7971 (i386_collect_gregset): Remove prototype.
7972 (i386_gregset): New declaration.
7973 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
7975 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
7980 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
7981 (arm_linux_vfpregset): New static regset structures.
7982 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7984 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
7985 and 'vfpregset' fields.
7989 * aarch64-linux-tdep.c (aarch64_linux_gregset)
7990 (aarch64_linux_fpregset): New static regset structures.
7991 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
7992 of regset structures.
7993 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
7998 * regset.h (struct regset): Remove gdbarch field.
7999 * regset.c (regset_alloc): Drop initialization of gdbarch field.
8000 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8001 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
8003 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
8004 (ppc32_linux_fpregset, ppc32_linux_vrregset)
8005 (ppc32_linux_vsxregset): Likewise.
8006 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
8007 via the regcache instead of the regset.
8008 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
8009 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
8010 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
8011 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
8016 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
8017 Constify structures.
8018 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
8019 (alphanbsd_aout_gregset): Likewise.
8020 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8021 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
8023 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
8024 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
8026 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
8027 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
8028 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
8029 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
8030 * m88k-tdep.c (m88k_gregset): Likewise.
8031 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
8032 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
8033 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
8034 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
8035 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8036 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
8037 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8038 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
8039 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
8041 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
8042 * sh-tdep.h (sh_corefile_gregset): Likewise.
8043 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
8044 * vax-tdep.c (vax_gregset): Likewise.
8048 Fix TLS access for -static -pthread.
8049 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
8050 (try_thread_db_load_1): Initialize it.
8051 (thread_db_get_thread_local_address): Call it if LM is zero.
8052 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
8053 * target.h (struct target_ops) (to_get_thread_local_address): Add
8054 load_module_addr comment.
8058 * dcache.c (dcache_read_memory_partial): If reading the cache line
8059 fails, fallback to reading just the memory the caller wanted.
8063 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
8064 instead of get_current_arch.
8068 * NEWS: Mention that compare-sections now works with all targets.
8070 * remote.c (PACKET_qCRC): New enum value.
8071 (remote_verify_memory): Don't send qCRC if the target has no
8072 execution. Use packet_support/packet_ok. If the target doesn't
8073 support the qCRC packet, fallback to a deep memory copy.
8074 (compare_sections_command): Say "target image" instead of "remote
8076 (_initialize_remote): Add PACKET_qCRC to the list of config
8077 packets that have no associated command. Extend comment.
8078 * target.c (simple_verify_memory, default_verify_memory): New
8080 * target.h (struct target_ops) <to_verify_memory>: Default to
8081 default_verify_memory.
8082 (simple_verify_memory): New declaration.
8083 * target-delegates.c: Regenerate.
8087 * record-btrace.c (record_btrace_step_thread): Check for empty history.
8093 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
8094 and change address of sp and pc.
8098 * gdbtypes.c (rank_function): Use XNEWVEC.
8099 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
8103 * dwarf2read.c (build_type_psymtabs_1): Renamed from
8104 build_type_unit_groups and moved closer to only caller. Remove
8105 arguments. All references updated. Remove outdated .gdb_index
8107 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
8108 build_type_psymtabs_1.
8112 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
8113 n_type_unit_groups, all_type_unit_groups. All uses removed.
8114 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
8115 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
8116 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
8117 (add_type_unit_group_to_table): Delete.
8121 * eval.c (evaluate_subexp_standard): Add some comments.
8125 * progspace.c (remove_program_space): Delete, unused.
8126 * progspace.h (remove_program_space): Ditto.
8130 * inferior.c (prune_inferiors): Fix comment.
8131 (remove_inferior_command): Call prune_program_spaces.
8135 New command line option -D.
8137 * main.c (set_gdb_data_directory): New function.
8138 (captured_main): Recognize -D. Flag error for --data-directory "".
8139 Call set_gdb_data_directory.
8140 (print_gdb_help): Print --data-directory, -D.
8141 * main.h (set_gdb_data_directory): Declare.
8142 * top.c (staged_gdb_datadir): New static global.
8143 (set_gdb_datadir): Call set_gdb_data_directory
8144 (show_gdb_datadir): New function.
8145 (init_main): Update init of data-directory parameter.
8149 Import the "dirfd" gnulib module.
8150 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
8151 * gnulib/aclocal.m4: Update.
8152 * gnulib/config.in: Update.
8153 * gnulib/configure: Update.
8154 * gnulib/import/Makefile.am: Update.
8155 * gnulib/import/Makefile.in: Update.
8156 * gnulib/import/dirfd.c: New.
8157 * gnulib/import/m4/dirfd.m4: New.
8158 * gnulib/import/m4/gnulib-cache.m4: Update.
8159 * gnulib/import/m4/gnulib-comp.m4: Update.
8164 * valprint.c (print_wchar): Move the code on checking whether
8165 W is a printable wide char to the default branch of switch
8166 statement below. Call wchar_printable instead of gdb_iswprint.
8170 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
8171 ldr.w and ldrd instructions.
8175 * dwarf2read.c (read_structure_type): Delete outdated comments.
8179 * macrocmd.c (print_macro_definition): Reindent.
8183 * python/py-cmd.c (cmdpy_completer): Add comment.
8184 (completers): Make const.
8188 * infrun.c (resume): Remove should_resume (unused). Move up
8189 declaration of resume_ptid.
8193 * language.h (unop_type_check): Remove.
8194 (binop_type_check): Don't declare.
8198 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
8199 call to regcache_raw_collect.
8203 * mi/mi-console.c (mi_console_raw_packet): Use the value from
8204 mi_console->quote as the quoting character.
8208 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
8212 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
8213 "show debug varobj".
8218 * aarch64-tdep.c (aarch64_software_single_step): New function.
8219 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
8220 with aarch64_software_single_step.
8228 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
8229 variable or history value is successfully parsed.
8234 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
8235 address of blocks that intersects the requested range. Trim
8236 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
8238 * ctf.c (ctf_xfer_partial): Likewise.
8242 * printcmd.c (display_command): Remove the check to
8243 target_has_execution.
8247 * ppcobsd-nat.c: Include "obsd-nat.h".
8248 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
8250 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
8254 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
8255 and 16-bit signed and unsigned arguments. Update comment.
8256 (stap_parse_probe_arguments): Extend code to handle such
8257 arguments. Use warning instead of complaint to notify about
8258 unrecognized bitness.
8262 PR breakpoints/16889
8263 * stap-probe.c (stap_parse_probe_arguments): Simplify
8264 check for non-prefixed probes (i.e., probes whose
8265 arguments do not start with "N@"). Always set the
8266 argument type to a sane value.
8270 * remote.c (compare_sections_command): Add -r option to compare
8271 all loadable read-only sections.
8275 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
8276 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
8278 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
8279 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
8280 Remove unused CORE_ADDR argument. Update all callers.
8284 * remote.c (struct packet_config) <detect>: Extend comment.
8285 (add_packet_config_cmd): Don't set the config's detect or support
8287 (init_all_packet_configs): Also initialize the config's 'detect'
8289 (reset_all_packet_configs_support): New function.
8290 (remote_open_1): Call reset_all_packet_configs_support instead of
8291 init_all_packet_configs.
8292 (_initialize_remote): Initialize all packet configs. Assert that
8293 all packets have an associated command, except a few known
8298 * dwarf2read.c (read_subrange_type): Handle dynamic
8299 DW_AT_lower_bound attributes.
8303 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
8304 dynamic bounds before computing its upper bound.
8305 (ada_discrete_type_low_bound): Same as above with the lower bound.
8309 * dwarf2read.c (is_dynamic_type): Return true for dynamic
8310 range types. Adjust the array handling implementation to
8311 take advantage of this change.
8312 (resolve_dynamic_range): New function, mostly extracted from
8313 resolve_dynamic_bounds.
8314 (resolve_dynamic_array): New function, mostly extracted from
8315 resolve_dynamic_bounds.
8316 (resolve_dynamic_bounds): Delete.
8317 (resolve_dynamic_type): Reimplement. Add handling of
8318 TYPE_CODE_RANGE types.
8322 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
8323 handling of parallel ___XA types.
8327 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
8328 unnecessary second call to static_unwrap_type.
8332 * stack.c (print_frame_info): Call do_gdb_disassembly with
8333 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
8337 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
8342 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
8343 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
8344 and newline from built string.
8345 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
8346 (linux_ptrace_attach_fail_reason): ... this.
8347 * linux-nat.c (linux_nat_attach): Adjust to use
8348 linux_ptrace_attach_fail_reason.
8352 * remote.c (struct remote_state): Remove multi_process_aware,
8353 non_stop_aware, cond_tracepoints, cond_breakpoints,
8354 breakpoint_commands, fast_tracepoints, static_tracepoints,
8355 install_in_trace, disconnected_tracing,
8356 enable_disable_tracepoints, string_tracing, and
8357 augmented_libraries_svr4_read fields.
8358 (remote_multi_process_p): Move further below in the file.
8359 (struct packet_config): Add comments.
8360 (update_packet_config): Delete function.
8361 (show_packet_config_cmd): Use packet_config_support.
8362 (add_packet_config_cmd): Use NULL as set callback.
8363 (packet_ok): "set remote foo-packet"-style commands no longer
8364 change config->supported -- adjust.
8365 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
8366 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
8367 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
8368 (PACKET_QNonStop, PACKET_multiprocess_feature)
8369 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
8370 (PACKET_DisconnectedTracing_feature)
8371 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
8372 (set_remote_protocol_packet_cmd): Delete function.
8373 (packet_config_support, packet_support): New functions.
8374 (set_remote_protocol_Z_packet_cmd): Don't call
8375 update_packet_config.
8376 (remote_query_attached, remote_pass_signals)
8377 (remote_program_signals, remote_threads_info)
8378 (remote_threads_extra_info, remote_start_remote): Use
8380 (remote_start_remote): Use packet_config_support and
8382 (init_all_packet_configs): Set all packets to unknown support,
8383 instead of calling update_packet_config.
8384 (remote_check_symbols): Use packet_support.
8385 (remote_supported_packet): Unconditionally set the packet config's
8387 (remote_multi_process_feature, remote_non_stop_feature)
8388 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
8389 (remote_breakpoint_commands_feature)
8390 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
8391 (remote_install_in_trace_feature)
8392 (remote_disconnected_tracing_feature)
8393 (remote_enable_disable_tracepoint_feature)
8394 (remote_string_tracing_feature)
8395 (remote_augmented_libraries_svr4_read_feature): Delete functions.
8396 (remote_protocol_features): Adjust to use remote_supported_packet
8397 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
8398 "ConditionalTracepoints", "ConditionalBreakpoints",
8399 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
8400 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
8401 "EnableDisableTracepoints", and "tracenz".
8402 (remote_query_supported): Use packet_support.
8403 (remote_open_1): Adjust.
8404 (extended_remote_attach_1): Use packet_support. Switch on the
8405 result of packet_ok instead of checking whether the packet ended
8407 (remote_vcont_resume): Use packet_support.
8408 (remote_resume, remote_stop_ns, fetch_register_using_p)
8409 (remote_prepare_to_store, store_register_using_P)
8410 (check_binary_download, remote_write_bytes): Use packet_support.
8411 (remote_vkill): Use packet_support. Switch on the result of
8412 packet_ok instead of checking whether the packet ended up
8414 (extended_remote_supports_disable_randomization): Use
8416 (extended_remote_run): Switch on the result of packet_ok instead
8417 of checking whether the packet ended up disabled.
8418 (remote_insert_breakpoint, remote_remove_breakpoint)
8419 (remote_insert_watchpoint, remote_remove_watchpoint)
8420 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
8422 (remote_search_memory): Use packet_config_support.
8423 (remote_get_thread_local_address, remote_get_tib_address)
8424 (remote_hostio_send_command, remote_can_execute_reverse): Use
8426 (remote_supports_cond_tracepoints)
8427 (remote_supports_cond_breakpoints)
8428 (remote_supports_fast_tracepoints)
8429 (remote_supports_static_tracepoints)
8430 (remote_supports_install_in_trace)
8431 (remote_supports_enable_disable_tracepoint)
8432 (remote_supports_string_tracing)
8433 (remote_can_run_breakpoint_commands): Rewrite, checking whether
8434 the packet config says the feature is enabled or disabled.
8435 (remote_download_tracepoint, remote_trace_set_readonly_regions)
8436 (remote_get_trace_status): Use packet_support.
8437 (remote_set_disconnected_tracing): Adjust to check whether the
8438 feature is enabled with packet_support.
8439 (remote_set_trace_buffer_size, remote_use_agent)
8440 (remote_can_use_agent, remote_supports_btrace): Use
8442 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
8443 Use packet_config_support.
8444 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
8445 the packet config says the feature is enabled or disabled.
8446 (set_range_stepping): Use packet_support.
8450 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
8455 * NEWS: Mention support for C99 variable length arrays.
8459 * ada-lang.c (standard_exc): Expand introductory comment.
8464 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
8466 (amd64_linux_read_description): Add code to handle AVX512 xstate
8467 mask and return respective tdesc.
8468 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
8469 and features/i386/x32-avx512-linux.c.
8470 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
8471 (amd64_linux_core_read_description): Add code to handle AVX512
8472 xstate mask and return respective tdesc.
8473 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
8474 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
8476 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
8477 (tdesc_amd64_avx512_linux): New prototype.
8478 (tdesc_x32_avx512_linux): Likewise.
8479 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
8480 features/i386/x32-avx512.c.
8481 (amd64_ymm_avx512_names): New register names for pseudo
8483 (amd64_ymmh_avx512_names): New register names for raw registers
8485 (amd64_k_names): New register names for K registers.
8486 (amd64_zmmh_names): New register names for ZMM raw registers.
8487 (amd64_zmm_names): New registers names for ZMM pseudo registers.
8488 (amd64_xmm_avx512_names): New register names for XMM16-31
8490 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
8492 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
8493 if feature is present.
8494 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
8495 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
8496 (AMD64_NUM_REGS): Adjust to new number of registers.
8497 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
8498 registers supplied via XSTATE by AVX512 registers.
8499 (i386_linux_read_description): Add case for AVX512.
8500 * i386-linux-tdep.c: Include i386-avx512-linux.c.
8501 (i386_linux_gregset_reg_offset): Add AVX512 registers.
8502 (i386_linux_core_read_description): Add case for AVX512.
8503 (i386_linux_init_abi): Install supported register note section
8505 (_initialize_i386_linux_tdep): Add call to tdesc init function for
8507 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
8508 registers to be number of zmm7h + 1.
8509 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
8510 * i386-tdep.c: Include features/i386/i386-avx512.c.
8511 (i386_zmm_names): Add ZMM pseudo register names array.
8512 (i386_zmmh_names): Add ZMM raw register names array.
8513 (i386_k_names): Add K raw register names array.
8514 (num_lower_zmm_regs): Add constant for the number of lower ZMM
8515 registers. AVX512 has 16 more ZMM registers than there are YMM
8517 (i386_zmmh_regnum_p): Add function to look up register number of
8519 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
8520 (i386_k_regnum_p): Likewise for K raw registers.
8521 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
8522 registers added by AVX512.
8523 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
8524 registers added by AVX512.
8525 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
8527 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
8528 (i386_pseudo_register_name): Add ZMM pseudo registers.
8529 (i386_zmm_type): Construct and return vector registers type for ZMM
8531 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
8532 ZMM0-31 pseudo registers and K registers.
8533 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
8534 and YMM16-31 registers from register cache.
8535 (i386_pseudo_register_write): Add code to write K, ZMM and
8537 (i386_register_reggroup_p): Add code to include/exclude AVX512
8538 registers in/from respective register groups.
8539 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
8540 registers if feature is present in xcr0.
8541 (i386_gdbarch_init): Add code to initialize AVX512 feature
8542 variables in tdep structure, wire in pseudo registers and call
8543 initialize_tdesc_i386_avx512.
8544 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
8546 (i386_regnum): Add AVX512 registers.
8547 (I386_SSE_NUM_REGS): New define for number of SSE registers.
8548 (I386_AVX_NUM_REGS): Likewise for AVX registers.
8549 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
8550 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
8552 (i386_xmm_avx512_regnum_p): New prototype for register look up.
8553 (i386_ymm_avx512_regnum_p): Likewise.
8554 (i386_k_regnum_p): Likewise.
8555 (i386_zmm_regnum_p): Likewise.
8556 (i386_zmmh_regnum_p): Likewise.
8557 * i387-tdep.c : Update year in copyright notice.
8558 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
8560 (XSAVE_YMM_AVX512_ADDR): New macro.
8561 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
8563 (XSAVE_XMM_AVX512_ADDR): New macro.
8564 (xsave_avx512_k_offset): New table for K register offsets in
8566 (XSAVE_AVX512_K_ADDR): New macro.
8567 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
8569 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
8570 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
8572 (i387_collect_xsave): Add code to collect AVX512 registers from
8574 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
8575 of XMM16-31 registers.
8576 (I387_NUM_K_REGS): New define for number of K registers.
8577 (I387_K0_REGNUM): New define for K0 register number.
8578 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
8579 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
8580 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
8582 (I387_YMM16H_REGNUM): New define for YMM16H register number.
8583 (I387_XMM16_REGNUM): New define for XMM16 register number.
8584 (I387_YMM0_REGNUM): New define for YMM0 register number.
8585 (I387_KEND_REGNUM): New define for last K register number.
8586 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
8587 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
8589 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
8591 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
8593 * features/Makefile: Add AVX512 related files.
8594 * features/i386/32bit-avx512.xml: New file.
8595 * features/i386/64bit-avx512.xml: Likewise.
8596 * features/i386/amd64-avx512-linux.c: Likewise.
8597 * features/i386/amd64-avx512-linux.xml: Likewise.
8598 * features/i386/amd64-avx512.c: Likewise.
8599 * features/i386/amd64-avx512.xml: Likewise.
8600 * features/i386/i386-avx512-linux.c: Likewise.
8601 * features/i386/i386-avx512-linux.xml: Likewise.
8602 * features/i386/i386-avx512.c: Likewise.
8603 * features/i386/i386-avx512.xml: Likewise.
8604 * features/i386/x32-avx512-linux.c: Likewise.
8605 * features/i386/x32-avx512-linux.xml: Likewise.
8606 * features/i386/x32-avx512.c: Likewise.
8607 * features/i386/x32-avx512.xml: Likewise.
8608 * regformats/i386/amd64-avx512-linux.dat: New file.
8609 * regformats/i386/amd64-avx512.dat: Likewise.
8610 * regformats/i386/i386-avx512-linux.dat: Likewise.
8611 * regformats/i386/i386-avx512.dat: Likewise.
8612 * regformats/i386/x32-avx512-linux.dat: Likewise.
8613 * regformats/i386/x32-avx512.dat: Likewise.
8614 * NEWS: Add note about new support for AVX512.
8619 * breakpoint.c (insert_bp_location): Tolerate errors if the
8620 breakpoint is set in a user-loaded objfile.
8621 (remove_breakpoint_1): Likewise. Also tolerate errors if the
8622 location is marked shlib_disabled. If the breakpoint is set in a
8623 user-loaded objfile is a GDB-side memory breakpoint, validate it
8624 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
8625 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
8627 * mem-break.c (memory_validate_breakpoint): New function.
8628 * objfiles.c (userloaded_objfile_contains_address_p): New
8630 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
8631 * target.h (memory_validate_breakpoint): New declaration.
8635 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
8636 the breakpoint is set in a shared library, only suppress
8637 errors for software breakpoints, not hardware breakpoints.
8641 * infrun.c (schedlock_applies): New function, factored out from
8642 find_thread_needs_step_over.
8643 (find_thread_needs_step_over): Use it.
8644 (switch_back_to_stepped_thread): Always clear trap_expected if the
8645 step over is finished. Return early if scheduler locking applies.
8646 Look for the stepping thread and a potential step-over thread with
8648 (currently_stepping_or_nexting_callback): Delete.
8652 * NEWS: Mention that ARM sim now supports tracing.
8656 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
8658 * tracefile.c (tracefile_fetch_registers): ... it. New
8660 * tracefile.h (tracefile_fetch_registers): Declare.
8661 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
8662 tracefile_fetch_registers.
8667 * windows-nat.c (thread_rec): Don't display a warning when
8668 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
8669 fails for any reason, set th->suspended to -1, so that we don't
8670 try to resume such a thread. Also, don't return NULL in these
8671 cases, to avoid completely ruin the session due to "PC register is
8672 not available" error.
8673 (do_windows_fetch_inferior_registers): Check errors in
8674 GetThreadContext call.
8675 (windows_continue): Accept an additional argument KILLED; if not
8676 zero, ignore errors in the SetThreadContext call, since the
8677 inferior was killed and is shutting down.
8678 (windows_resume, get_windows_debug_event)
8679 (windows_create_inferior, windows_mourn_inferior)
8680 (windows_kill_inferior): All callers of windows_continue changed
8681 to adjust to its new calling sequence.
8685 * ctf.c (ctf_open): Call post_create_inferior.
8689 * ctf.c (handle_id): New static variable.
8690 (ctf_open_dir): Get handle_id from bt_context_add_trace return
8691 value. Get the declaration of event "register" and get length
8692 of field "contents".
8696 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
8700 * valops.c (oload_method_static): Remove unnecessary argument
8701 METHOD. Update all callers.
8707 * frame.c (get_prev_frame_1): Rename to ...
8708 (get_prev_frame_always): ... this, and make extern. Adjust.
8709 (skip_artificial_frames): Use get_prev_frame_always.
8710 (frame_unwind_caller_id, frame_pop, get_prev_frame)
8711 (get_frame_unwind_stop_reason): Adjust to rename.
8712 * frame.h (get_prev_frame_always): Declare.
8713 * inline-frame.c: Include frame.h.
8714 (inline_frame_this_id): Use get_prev_frame_always.
8718 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
8719 code by using bfd_mach_o_get_base_address.
8723 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
8724 (spu_ax_pseudo_register_collect): New function.
8725 (spu_ax_pseudo_register_push_stack): Likewise.
8726 (spu_dwarf_reg_to_regnum): Likewise.
8727 (spu_gdbarch_init): Install them. Append DWARF unwinders.
8731 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
8732 Replace FRAME argument with FRAME_ID.
8733 * gdbarch.c, gdbarch.h: Regenerate.
8734 * findvar.c (default_value_from_register): Add GDBARCH argument;
8735 replace FRAME by FRAME_ID. No longer call get_frame_id.
8736 (value_from_register): Update call to gdbarch_value_from_register.
8737 * value.h (default_value_from_register): Update prototype.
8738 * s390-linux-tdep.c (s390_value_from_register): Update interface
8739 and call to default_value_from_register.
8740 * spu-tdep.c (spu_value_from_register): Likewise.
8742 * findvar.c (address_from_register): Remove TYPE argument.
8743 Do not call value_from_register; use gdbarch_value_from_register
8744 with null_frame_id instead.
8745 * value.h (address_from_register): Update prototype.
8746 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
8747 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
8748 address_from_register interface change.
8752 * gdbtypes.h: Update comments to link to types and macros'
8757 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
8762 * dwarf2read.c (skip_one_die): Check that all relative-offset
8763 sibling DIEs fall within range of the current reader's buffer.
8764 (read_partial_die): Likewise.
8769 * cp-namespace.c (lookup_symbol_file): If the type name of
8770 `this' is NULL, return immediately.
8775 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
8776 from symbol_matches_domain in symtab.c. All local callers
8777 of symbol_matches_domain updated.
8778 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
8779 search STRUCT_DOMAIN.
8780 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
8781 independently. standard_lookup will do that automatically.
8782 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
8783 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8784 (cp_lookup_symbol_in_namespace): Likewise.
8785 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
8786 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
8787 may return a STRUCT_DOMAIN match.
8788 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
8789 * cp-support.c: Include language.h.
8790 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
8792 * psymtab.c (match_partial_symbol): Compare the requested
8793 domain with the symbol's domain directly.
8794 (lookup_partial_symbol): Likewise.
8795 * symtab.c (lookup_symbol_in_language): Explain when/why
8796 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
8797 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
8798 appropriate languages.
8799 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
8800 and moved to ada-lang.c
8801 (lookup_block_symbol): Explain that this function only returns
8802 symbol matching the requested DOMAIN.
8803 Compare the requested domain with the symbol's domain directly.
8804 (iterate_over_symbols): Compare the requested domain with the
8805 symbol's domain directly.
8806 * symtab.h (symbol_matches_domain): Remove.
8811 * c-exp.y (type_aggregate_p): New function.
8812 (qualified_name, classify_inner_name): Use it.
8813 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
8814 and TYPE_TARGET_TYPE of an enum type.
8815 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
8817 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
8818 handle TYPE_DECLARED_CLASS.
8819 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
8821 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
8822 * valops.c (enum_constant_from_type): New function.
8823 (value_aggregate_elt): Use it.
8824 * cp-namespace.c (cp_lookup_nested_symbol): Handle
8829 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
8830 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
8832 * value.h (value_aggregate_elt): Update.
8836 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
8840 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8841 (evaluate_subexp_standard): Pass noside argument.
8842 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8843 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8844 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8845 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8846 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8850 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8851 points to a constant blob.
8855 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8856 property and store it as the high bound and flag the range accordingly.
8857 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8858 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8859 * gdbtypes.h (enum range_flags): New enum.
8860 (struct range_bounds): Add flags member.
8864 * c-typeprint.c (c_type_print_varspec_suffix): Added
8865 check for not yet resolved high bound. If unresolved, print
8866 "variable length" string to the console instead of random
8871 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
8873 (ada_template_to_fixed_record_type_1): Likewise.
8874 (ada_to_fixed_type_1): Likewise.
8875 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8876 (cp_print_value): Likewise.
8877 * d-valprint.c (dynamic_array_type): Likewise.
8878 * findvar.c (address_of_variable): Likewise.
8879 * jv-valprint.c (java_value_print): Likewise.
8880 * valops.c (value_ind): Likewise.
8881 * value.c (coerce_ref): Likewise.
8885 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8886 value and retrieve the dynamic type size.
8890 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8891 passed to sizeof is dynamic evaluate the argument to compute the length.
8896 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8897 (dwarf2_evaluate_property): New function.
8898 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8899 * dwarf2read.c (attr_to_dynamic_prop): New function.
8900 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8902 * gdbtypes.c: Include dwarf2loc.h.
8903 (is_dynamic_type): New function.
8904 (resolve_dynamic_type): New function.
8905 (resolve_dynamic_bounds): New function.
8906 (get_type_length): New function.
8907 (check_typedef): Use get_type_length to compute type length.
8908 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8909 (TYPE_LOW_BOUND_KIND): New macro.
8910 (is_dynamic_type): New function prototype.
8911 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8912 to resolve dynamic properties of the type. Update comment.
8913 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8917 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
8922 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
8923 dereference TYPE_CODE_REF values.
8927 Revert the following changes due to regressions:
8929 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
8930 (dwarf2_evaluate_property): New function.
8931 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
8932 * dwarf2read.c (attr_to_dynamic_prop): New function.
8933 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
8935 * gdbtypes.c: Include dwarf2loc.h.
8936 (is_dynamic_type): New function.
8937 (resolve_dynamic_type): New function.
8938 (resolve_dynamic_bounds): New function.
8939 (get_type_length): New function.
8940 (check_typedef): Use get_type_length to compute type length.
8941 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
8942 (TYPE_LOW_BOUND_KIND): New macro.
8943 (is_dynamic_type): New function prototype.
8944 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
8945 to resolve dynamic properties of the type. Update comment.
8946 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
8948 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
8949 passed to sizeof is dynamic evaluate the argument to compute the length.
8951 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
8952 value and retrieve the dynamic type size.
8954 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
8955 (ada_template_to_fixed_record_type_1): Likewise.
8956 (ada_to_fixed_type_1): Likewise.
8957 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
8958 (cp_print_value): Likewise.
8959 * d-valprint.c (dynamic_array_type): Likewise.
8960 * eval.c (evaluate_subexp_with_coercion): Likewise.
8961 * findvar.c (address_of_variable): Likewise.
8962 * jv-valprint.c (java_value_print): Likewise.
8963 * valops.c (value_ind): Likewise.
8964 * value.c (coerce_ref): Likewise.
8966 * c-typeprint.c (c_type_print_varspec_suffix): Added
8967 check for not yet resolved high bound. If unresolved, print
8968 "variable length" string to the console instead of random
8971 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
8972 property and store it as the high bound and flag the range accordingly.
8973 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
8974 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
8975 * gdbtypes.h (enum range_flags): New enum.
8976 (struct range_bounds): Add flags member.
8978 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
8979 points to a constant blob.
8981 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8982 (evaluate_subexp_standard): Pass noside argument.
8983 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
8984 if noside equals EVAL_NORMAL. If the subscript yields a vla type
8985 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
8986 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
8987 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
8992 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
8993 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
8998 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
8999 (evaluate_subexp_standard): Pass noside argument.
9000 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
9001 if noside equals EVAL_NORMAL. If the subscript yields a vla type
9002 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
9003 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
9004 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
9008 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
9009 points to a constant blob.
9013 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
9014 property and store it as the high bound and flag the range accordingly.
9015 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
9016 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
9017 * gdbtypes.h (enum range_flags): New enum.
9018 (struct range_bounds): Add flags member.
9022 * c-typeprint.c (c_type_print_varspec_suffix): Added
9023 check for not yet resolved high bound. If unresolved, print
9024 "variable length" string to the console instead of random
9029 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
9030 (ada_template_to_fixed_record_type_1): Likewise.
9031 (ada_to_fixed_type_1): Likewise.
9032 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
9033 (cp_print_value): Likewise.
9034 * d-valprint.c (dynamic_array_type): Likewise.
9035 * eval.c (evaluate_subexp_with_coercion): Likewise.
9036 * findvar.c (address_of_variable): Likewise.
9037 * jv-valprint.c (java_value_print): Likewise.
9038 * valops.c (value_ind): Likewise.
9039 * value.c (coerce_ref): Likewise.
9043 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
9044 value and retrieve the dynamic type size.
9048 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
9049 passed to sizeof is dynamic evaluate the argument to compute the length.
9053 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
9054 (dwarf2_evaluate_property): New function.
9055 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
9056 * dwarf2read.c (attr_to_dynamic_prop): New function.
9057 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
9059 * gdbtypes.c: Include dwarf2loc.h.
9060 (is_dynamic_type): New function.
9061 (resolve_dynamic_type): New function.
9062 (resolve_dynamic_bounds): New function.
9063 (get_type_length): New function.
9064 (check_typedef): Use get_type_length to compute type length.
9065 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
9066 (TYPE_LOW_BOUND_KIND): New macro.
9067 (is_dynamic_type): New function prototype.
9068 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
9069 to resolve dynamic properties of the type. Update comment.
9070 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
9074 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
9075 declaring high/low bounds and change uses accordingly. Call
9076 create_range_type instead of create_static_range_type.
9077 * gdbtypes.c (create_range_type): New function.
9078 (create_range_type): Convert bounds into struct bound_prop and pass
9079 them to create_range_type.
9080 * gdbtypes.h (struct bound_prop): New struct.
9081 (create_range_type): New function prototype.
9082 (struct range_bounds): Use struct bound_prop instead of LONGEST for
9083 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
9084 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
9086 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
9090 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
9091 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
9092 * ada-lang.c: All uses of create_range_type updated.
9093 * coffread.c: All uses of create_range_type updated.
9094 * dwarf2read.c: All uses of create_range_type updated.
9095 * f-exp.y: All uses of create_range_type updated.
9096 * m2-valprint.c: All uses of create_range_type updated.
9097 * mdebugread.c: All uses of create_range_type updated.
9098 * stabsread.c: All uses of create_range_type updated.
9099 * valops.c: All uses of create_range_type updated.
9100 * valprint.c: All uses of create_range_type updated.
9104 * breakpoint.c (single_step_breakpoints)
9105 (single_step_gdbarch): Move up in the file.
9106 (one_breakpoint_xfer_memory): New function, factored out from ...
9107 (breakpoint_xfer_memory): ... here. Also process single-step
9112 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
9114 (darwin_decode_exception_message): Free port only after use.
9118 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
9119 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
9120 when setting the size of call_length.
9124 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
9125 dereference TYPE_CODE_REF values.
9129 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
9130 end of warning message.
9134 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
9135 of stub_comp_unit_die, stub_comp_dir is non-NULL.
9139 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
9140 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
9141 (struct symbol_file_add_from_memory_args): Add size field.
9142 (find_vdso_size): New function.
9143 (add_vsyscall_page): Attempt to find vdso size.
9147 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
9151 * darwin-nat.c (darwin_encode_reply): Add prototype.
9152 (darwin_decode_exception_message): Reply to unknown inferiors.
9153 (darwin_decode_message): Handle message by id. Ignore message
9154 to unknown inferior.
9155 (darwin_wait): Discard unknown messages, add debug trace.
9159 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
9164 New option "set print symbol-loading".
9166 * solib.c (solib_read_symbols): Only print symbol loading messages
9168 (solib_add): If symbol loading is in "brief" mode, notify user
9169 symbols are being loaded.
9170 (reload_shared_libraries_1): Ditto.
9171 * symfile.c (print_symbol_loading_off): New static global.
9172 (print_symbol_loading_brief): New static global.
9173 (print_symbol_loading_full): New static global.
9174 (print_symbol_loading_enums): New static global.
9175 (print_symbol_loading): New static global.
9176 (print_symbol_loading_p): New function.
9177 (symbol_file_add_with_addrs): Only print symbol loading messages
9179 (_initialize_symfile): Register "print symbol-loading" set/show
9181 * symfile.h (print_symbol_loading_p): Declare.
9185 * infrun.c (set_last_target_status): New function.
9186 (handle_inferior_event): Call it.
9190 * inferior.h (enum stop_kind): Improve comment.
9194 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
9195 a reference, strip the reference layer before calling
9196 the lang_ops value_has_mutated callback.
9200 Remove some globals from our parser.
9201 * language.c (unk_lang_parser): Add "struct parser_state"
9203 * language.h (struct language_defn) <la_parser>: Likewise.
9204 * parse.c (expout, expout_size, expout_ptr): Remove variables.
9205 (initialize_expout): Add "struct parser_state" argument.
9206 Rewrite function to use the parser state.
9207 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
9208 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
9209 write_exp_elt_longcst, write_exp_elt_dblcst,
9210 write_exp_elt_decfloatcst, write_exp_elt_type,
9211 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9212 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
9213 write_dollar_variable): Likewise.
9214 (parse_exp_in_context_1): Use parser state.
9215 (insert_type_address_space): Add "struct parser_state" argument.
9217 (increase_expout_size): New function.
9218 * parser-defs.h: Forward declare "struct language_defn" and
9219 "struct parser_state".
9220 (expout, expout_size, expout_ptr): Remove extern declarations.
9221 (parse_gdbarch, parse_language): Rewrite macro declarations to
9222 accept the parser state.
9223 (struct parser_state): New struct.
9224 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
9225 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
9226 write_exp_elt_decfloatcst, write_exp_elt_type,
9227 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
9228 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
9229 write_exp_msymbol, write_dollar_variable,
9230 mark_struct_expression, insert_type_address_space): Add "struct
9231 parser_state" argument.
9232 (increase_expout_size): New function.
9233 * utils.c (do_clear_parser_state): New function.
9234 (make_cleanup_clear_parser_state): Likewise.
9235 * utils.h (make_cleanup_clear_parser_state): New function
9237 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
9238 Update calls to write_exp* in order to pass the parser state.
9239 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
9240 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
9241 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9242 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
9243 * stap-probe.c (stap_parse_register_operand): Likewise.
9244 (stap_parse_single_operand): Likewise.
9245 (stap_parse_argument_1): Likewise.
9246 (stap_parse_argument): Use parser state.
9247 * stap-probe.h: Include "parser-defs.h".
9248 (struct stap_parse_info) <pstate>: New field.
9249 * c-exp.y (parse_type): Rewrite to use parser state.
9250 (yyparse): Redefine to c_parse_internal.
9251 (pstate): New global variable.
9252 (parse_number): Add "struct parser_state" argument.
9253 (write_destructor_name): Likewise.
9254 (type_exp): Update calls to write_exp* and similars in order to
9256 (exp1, exp, variable, qualified_name, space_identifier,
9257 typename, typebase): Likewise.
9258 (write_destructor_name, parse_number, lex_one_token,
9259 classify_name, classify_inner_name, c_parse): Add "struct
9260 parser_state" argument. Update function to use parser state.
9261 * c-lang.h: Forward declare "struct parser_state".
9262 (c_parse): Add "struct parser_state" argument.
9263 * ada-exp.y (parse_type): Rewrite macro to use parser state.
9264 (yyparse): Redefine macro to ada_parse_internal.
9265 (pstate): New variable.
9266 (write_int, write_object_renaming, write_var_or_type,
9267 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
9268 type_int, type_long, type_long_long, type_float, type_double,
9269 type_long_double, type_char, type_boolean, type_system_address):
9270 Add "struct parser_state" argument.
9271 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
9272 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
9273 var_or_type, aggregate, aggregate_component_list,
9274 positional_list, others, component_group,
9275 component_associations): Update calls to write_exp* and similar
9276 functions in order to use parser state.
9277 (ada_parse, write_var_from_sym, write_int,
9278 write_exp_op_with_string, write_object_renaming,
9279 find_primitive_type, write_selectors, write_ambiguous_var,
9280 write_var_or_type, write_name_assoc, type_int, type_long,
9281 type_long_long, type_float, type_double, type_long_double,
9282 type_char, type_boolean, type_system_address): Add "struct
9283 parser_state" argument. Adjust function to use parser state.
9284 * ada-lang.c (parse): Likewise.
9285 * ada-lang.h: Forward declare "struct parser_state".
9286 (ada_parse): Add "struct parser_state" argument.
9287 * ada-lex.l (processInt, processReal): Likewise. Adjust all
9288 calls to both functions.
9289 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
9291 (yyparse): Redefine macro to f_parse_internal.
9292 (pstate): New variable.
9293 (parse_number): Add "struct parser_state" argument.
9294 (type_exp, exp, subrange, typebase): Update calls to write_exp*
9295 and similars in order to use parser state.
9296 (parse_number): Adjust code to use parser state.
9298 (f_parse): New function.
9299 * f-lang.h: Forward declare "struct parser_state".
9300 (f_parse): Add "struct parser_state" argument.
9301 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
9303 (yyparse): Redefine macro for java_parse_internal.
9304 (pstate): New variable.
9305 (push_expression_name, push_expression_name, insert_exp): Add
9306 "struct parser_state" argument.
9307 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
9308 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
9309 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
9310 PostIncrementExpression, PostDecrementExpression,
9311 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
9312 UnaryExpressionNotPlusMinus, CastExpression,
9313 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
9314 RelationalExpression, EqualityExpression, AndExpression,
9315 ExclusiveOrExpression, InclusiveOrExpression,
9316 ConditionalAndExpression, ConditionalOrExpression,
9317 ConditionalExpression, Assignment, LeftHandSide): Update
9318 calls to write_exp* and similars in order to use parser state.
9319 (parse_number): Ajust code to use parser state.
9321 (java_parse): New function.
9322 (push_variable): Add "struct parser_state" argument. Adjust
9323 code to user parser state.
9324 (push_fieldnames, push_qualified_expression_name,
9325 push_expression_name, insert_exp): Likewise.
9326 * jv-lang.h: Forward declare "struct parser_state".
9327 (java_parse): Add "struct parser_state" argument.
9328 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
9330 (yyparse): Redefine macro to m2_parse_internal.
9331 (pstate): New variable.
9332 (type_exp, exp, fblock, variable, type): Update calls to
9333 write_exp* and similars to use parser state.
9335 (m2_parse): New function.
9336 * m2-lang.h: Forward declare "struct parser_state".
9337 (m2_parse): Add "struct parser_state" argument.
9338 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
9339 * objc-lang.h: Forward declare "struct parser_state".
9340 (end_msglist): Add "struct parser_state" argument.
9341 * p-exp.y (parse_type): Rewrite macro to use parser state.
9342 (yyparse): Redefine macro to pascal_parse_internal.
9343 (pstate): New variable.
9344 (parse_number): Add "struct parser_state" argument.
9345 (type_exp, exp1, exp, qualified_name, variable): Update calls to
9346 write_exp* and similars in order to use parser state.
9347 (parse_number, yylex): Adjust code to use parser state.
9348 (pascal_parse): New function.
9349 * p-lang.h: Forward declare "struct parser_state".
9350 (pascal_parse): Add "struct parser_state" argument.
9351 * go-exp.y (parse_type): Rewrite macro to use parser state.
9352 (yyparse): Redefine macro to go_parse_internal.
9353 (pstate): New variable.
9354 (parse_number): Add "struct parser_state" argument.
9355 (type_exp, exp1, exp, variable, type): Update calls to
9356 write_exp* and similars in order to use parser state.
9357 (parse_number, lex_one_token, classify_name, yylex): Adjust code
9358 to use parser state.
9359 (go_parse): Likewise.
9360 * go-lang.h: Forward declare "struct parser_state".
9361 (go_parse): Add "struct parser_state" argument.
9365 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
9369 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
9370 Remove argument abbrev_section. All callers updated.
9374 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
9375 addr_base, ranges_base.
9379 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
9380 types, not VAR_DOMAIN.
9384 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
9386 * features/nios2-linux.c: Regenerated.
9387 * features/nios2.c: Regenerated.
9391 * cli/cli-script.c (script_from_file): Force the interpreter to
9396 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
9397 small stack allocation.
9401 * darwin-nat.c (exc_server): Remove unused prototype.
9402 (darwin_dump_message): Correctly display data on x86_64.
9403 (darwin_encode_reply): Fix style.
9404 Add comments and fix indentation.
9408 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
9412 * infcmd.c: Whitespace fixes.
9413 (interrupt_command): Merge two function comments into one.
9417 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
9422 * remote.c (target_read_live_memory): Remove.
9423 (memory_xfer_live_readonly_partial): Rename it to
9424 remote_xfer_live_readonly_partial. Remove argument 'object'.
9425 All callers updated. Call remote_read_bytes_1
9426 instead of target_read_live_memory.
9427 * tracepoint.c (set_traceframe_number): Remove.
9428 (make_cleanup_restore_traceframe_number): Likewise .
9429 * tracepoint.h (set_traceframe_number): Remove declaration.
9430 (make_cleanup_restore_traceframe_number): Likewise.
9434 * remote.c (remote_read_bytes): Move code on reading from the
9436 (remote_read_bytes_1): ... here. New function.
9440 * ctf.c (ctf_xfer_partial): Check the return value of
9441 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
9442 return TARGET_XFER_UNAVAILABLE.
9443 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
9444 * target.c (target_read_live_memory): Move it to remote.c.
9445 (memory_xfer_live_readonly_partial): Likewise.
9446 (memory_xfer_partial_1): Move some code to remote_read_bytes.
9447 * remote.c (target_read_live_memory): Moved from target.c.
9448 (memory_xfer_live_readonly_partial): Likewise.
9449 (remote_read_bytes): Factored out from
9450 memory_xfer_partial_1.
9454 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
9459 * infrun.c (normal_stop): Extend comment.
9464 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
9466 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
9467 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
9468 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
9472 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
9473 `z' formatted output modifier.
9478 * probe.c (parse_probes): Turn assert into an ordinary error.
9479 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
9480 exceptions when parsing probes. Rearrange the code for clarity.
9485 * top.c (execute_command): Only dispatch events if the command
9491 * infcall.c: Include event-top.h.
9492 (run_inferior_call): Call async_disable_stdin if needed.
9496 * infrun.c (prepare_to_proceed): Delete.
9497 (thread_still_needs_step_over): New function.
9498 (find_thread_needs_step_over): New function.
9499 (proceed): If the current thread needs a step-over, set its
9500 steping_over_breakpoint flag. Adjust to use
9501 find_thread_needs_step_over instead of prepare_to_proceed.
9502 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
9503 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
9505 (switch_back_to_stepped_thread): Step over breakpoints of all
9506 threads not the stepping thread, before switching back to the
9511 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
9513 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
9514 * infrun.c (saved_singlestep_ptid)
9515 (stepping_past_singlestep_breakpoint): Delete.
9516 (resume): Remove stepping_past_singlestep_breakpoint handling.
9517 (proceed): Store the prev_pc of the stepping thread too.
9518 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
9520 (enum infwait_states): Delete infwait_thread_hop_state.
9521 (struct execution_control_state) <hit_singlestep_breakpoint>: New
9523 (handle_inferior_event): Adjust.
9524 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
9525 handling and the thread-hop code. Before removing single-step
9526 breakpoints, check whether the thread hit a single-step breakpoint
9527 of another thread. If it did, the trap is not a random signal.
9528 (switch_back_to_stepped_thread): If the event thread hit a
9529 single-step breakpoint, unblock it before switching to the
9530 stepping thread. Handle the case of the stepped thread having
9532 (keep_going): Handle the case of the current thread moving past a
9533 single-step breakpoint.
9538 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
9539 are being stepped over.
9540 (breakpoint_address_match): Make extern.
9541 * breakpoint.h (breakpoint_address_match): New declaration.
9542 * inferior.h (stepping_past_instruction_at): New declaration.
9543 * infrun.c (struct step_over_info): New type.
9544 (step_over_info): New global.
9545 (set_step_over_info, clear_step_over_info)
9546 (stepping_past_instruction_at): New functions.
9547 (handle_inferior_event): Clear the step-over info when
9548 trap_expected is cleared.
9549 (resume): Remove now stale comment.
9550 (clear_proceed_status): Clear step-over info.
9551 (proceed): Adjust step-over handling to set or clear the step-over
9552 info instead of removing all breakpoints.
9553 (handle_signal_stop): When setting up a thread-hop, don't remove
9555 (stop_stepping): Clear step-over info.
9556 (keep_going): Adjust step-over handling to set or clear step-over
9557 info and then always inserting breakpoints, instead of removing
9558 all breakpoints when stepping over one.
9562 * infrun.c (previous_inferior_ptid): Adjust comment.
9563 (deferred_step_ptid): Delete.
9564 (infrun_thread_ptid_changed, prepare_to_proceed)
9565 (init_wait_for_inferior): Adjust.
9566 (handle_signal_stop): Delete deferred_step_ptid handling.
9571 * defs.h (sync_quit_force_run): New declaration.
9572 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
9573 * event-top.c (async_sigterm_handler): New declaration.
9574 (async_sigterm_token): New variable.
9575 (async_init_signals): Create also async_sigterm_token.
9576 (async_sigterm_handler): New function.
9577 (sync_quit_force_run): New variable.
9578 (handle_sigterm): Replace quit_force call by other calls.
9579 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
9583 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
9584 offset into SPE pseudo registers.
9589 * inferior.h (print_stop_event): Declare.
9590 * infrun.c (print_stop_event): New, factored out from ...
9591 (normal_stop): ... this.
9592 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
9593 of bpstat_print/print_stack_frame.
9597 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
9601 * ada-lang.c (decode_constrained_packed_array): Perform a
9602 minimal coercion for reference with coerce_ref instead of
9607 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
9608 (darwin_solib_create_inferior_hook): Emit a warning if version
9613 * python/py-value.c (get_field_flag): Cast flag_name argument to
9614 PyObject_GetAttrString to support Python 2.4.
9618 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
9619 (Global Maintainers): Remove Jan Kratochvil.
9623 * inferior.h (terminal_ours_for_output): Rename to ...
9624 (child_terminal_ours_for_output): ... this.
9625 (terminal_save_ours): Rename to ...
9626 (child_terminal_save_ours): ... this.
9627 (terminal_ours): Rename to ...
9628 (child_terminal_ours): ... this.
9629 (terminal_inferior): Rename to ...
9630 (child_terminal_inferior): ... this.
9631 (terminal_init_inferior): Rename to ...
9632 (child_terminal_init_inferior): ... this.
9633 (terminal_init_inferior_with_pgrp): Rename to ...
9634 (child_terminal_init_inferior_with_pgrp): ... this.
9635 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
9636 (child_terminal_init_with_pgrp): ... this.
9637 (terminal_save_ours): Rename to ...
9638 (child_terminal_save_ours): ... this.
9639 (terminal_init_inferior): Rename to ...
9640 (child_terminal_init): ... this. Adjust.
9641 (terminal_inferior): Rename to ...
9642 (child_terminal_inferior): ... this.
9643 (terminal_ours_for_output): Rename to ...
9644 (child_terminal_ours_for_output): ... this. Adjust.
9645 (terminal_ours): Rename to ...
9646 (child_terminal_ours): ... this.
9647 (terminal_ours_1): Rename to ...
9648 (child_terminal_ours_1): ... this. Adjust.
9649 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
9650 * windows-nat.c (do_initial_windows_stuff): Adjust.
9651 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
9652 (gnu_terminal_init): ... this. Adjust.
9653 (gnu_target): Adjust.
9654 * inf-child.c (inf_child_target): Adjust.
9659 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
9664 * value.c (record_latest_value): Call release_value_or_incref
9665 instead of release_value.
9669 * procfs.c (procfs_target): Don't override to_shortname,
9670 to_longname or to_doc.
9674 * inf-child.c (inf_child_open, inf_child_target): Don't mention
9675 Unix in user visible strings.
9679 * gdbtypes.h: Annotate comments for Doxygen, add a page
9680 block comment with some general info.
9684 * infcmd.c (prepare_execution_command): New function, factored out
9685 from several execution commands.
9686 (run_command_1, continue_command, step_1, jump_command)
9687 (signal_command, until_command, advance_command, finish_command)
9688 (attach_command): Use prepare_execution_command.
9692 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
9695 (struct arm_linux_thread_points): Removed.
9696 (struct arm_linux_process_info): New.
9697 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
9698 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
9699 (arm_linux_find_breakpoints_by_tid): Removed.
9700 (struct arch_lwp_info): New.
9701 (arm_linux_find_process_pid): New functions.
9702 (arm_linux_add_process): New functions.
9703 (arm_linux_process_info_get): New functions.
9704 (arm_linux_forget_process): New function.
9705 (arm_linux_get_debug_reg_state): New function.
9706 (struct update_registers_data): New.
9707 (update_registers_callback): New function.
9708 (arm_linux_insert_hw_breakpoint1): Updated.
9709 (arm_linux_remove_hw_breakpoint1): Updated.
9710 (arm_linux_insert_hw_breakpoint): Updated.
9711 (arm_linux_remove_hw_breakpoint): Updated.
9712 (arm_linux_insert_watchpoint): Updated.
9713 (arm_linux_remove_watchpoint): Updated.
9714 (arm_linux_new_thread): Updated.
9715 (arm_linux_prepare_to_resume): New function.
9716 (arm_linux_new_fork): New function.
9717 (_initialize_arm_linux_nat): Updated.
9721 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
9725 * inf-child.c (return_zero): New function.
9726 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
9727 * aix-thread.c (aix_thread_inferior_created): New function.
9728 (aix_thread_attach): Remove.
9729 (init_aix_thread_ops): Don't set to_attach.
9730 (_initialize_aix_thread): Register inferior_created observer.
9731 * corelow.c (init_core_ops): Don't set to_attach or
9733 * exec.c (init_exec_ops): Don't set to_attach or
9735 * infcmd.c (run_command_1): Use find_run_target. Make direct
9737 (attach_command): Use find_attach_target. Make direct target
9739 * record-btrace.c (init_record_btrace_ops): Don't set
9741 * record-full.c (record_full_can_async_p, record_full_is_async_p):
9743 (init_record_full_ops, init_record_full_core_ops): Update. Don't
9744 set to_create_inferior.
9745 * target.c (complete_target_initialization): Add assertion.
9746 (target_create_inferior): Remove.
9747 (find_default_attach, find_default_create_inferior): Remove.
9748 (find_attach_target, find_run_target): New functions.
9749 (find_default_is_async_p, find_default_can_async_p)
9750 (target_supports_non_stop, target_attach): Remove.
9751 (init_dummy_target): Don't set to_create_inferior or
9752 to_supports_non_stop.
9753 * target.h (struct target_ops) <to_attach>: Add comment. Remove
9754 TARGET_DEFAULT_FUNC.
9755 <to_create_inferior>: Add comment.
9756 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
9757 TARGET_DEFAULT_RETURN.
9758 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
9759 (find_attach_target, find_run_target): Declare.
9760 (target_create_inferior): Remove.
9761 (target_has_execution_1): Update comment.
9762 (target_supports_non_stop): Remove.
9763 * target-delegates.c: Rebuild.
9767 * inf-child.h: Update comment to not mention Unix.
9771 * inf-child.c: Update top comment to not mention Unix. Add
9772 generic comment describing how this target is meant to be used.
9773 (inf_child_post_attach, inf_child_post_startup_inferior)
9774 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
9779 * nto-procfs.c: Include inf-child.h.
9780 (procfs_ops): Delete global.
9781 (procfs_can_run): Delete method.
9782 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
9783 target pointer instead of referencing procfs_ops.
9784 (procfs_prepare_to_store): Delete.
9785 (init_procfs_ops): Delete function.
9786 (procfs_target): New function, based on init_procfs_ops, but
9787 inherit inf_child_target.
9788 (_initialize_procfs): Use procfs_target.
9792 * windows-nat.c: Include inf-child.h.
9793 (windows_ops): Delete global.
9794 (windows_open, windows_prepare_to_store, windows_can_run): Delete
9796 (init_windows_ops): Delete function.
9797 (windows_target): New function, based on init_windows_ops, but
9798 inherit inf_child_target.
9799 (_initialize_windows_nat): Use windows_target. Install x86
9800 specific target methods here.
9804 * guile/guile.c (call_initialize_gdb_module): New function.
9805 (initialize_guile): Replace call to scm_init_guile with call to
9810 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
9811 in call to TYPE_CODE macro.
9815 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
9816 Resolve tagged types to full view.
9820 * target.h (target_insert_breakpoint): Remove "hardware" from its
9825 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
9829 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
9830 Remove unused local comp_dir_attr. Assert exactly one of
9831 stub_comp_unit_die, stub_comp_dir is non-NULL.
9835 * target.h (complete_target_initialization, add_target):
9840 * go32-nat.c: Include inf-child.h.
9841 (go32_ops): Delete global.
9842 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
9844 (go32_create_inferior): Push the passed in target pointer instead
9845 of referencing go32_ops.
9846 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
9847 (go32_target): New function, based on init_go32_ops, but inherit
9849 (_initialize_go32_nat): Use go32_target. Move parts of
9854 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
9855 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
9856 SYMBOL_VALUE_ADDRESS.
9857 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
9861 * breakpoint.c (get_tracepoint_by_number): Remove argument
9862 optional_p. All callers updated. Adjust comments. Update
9864 * breakpoint.h (get_tracepoint_by_number): Update declaration.
9868 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
9869 early if get_number returns zero. Use 'p' instead of 'args'.
9873 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
9878 PR breakpoints/16508
9879 * tracepoint.c (check_trace_running): New function.
9880 (trace_find_command): Move code to check_trace_running and
9881 call check_trace_running.
9882 (trace_find_pc_command): Likewise.
9883 (trace_find_tracepoint_command): Likewise.
9884 (trace_find_line_command): Likewise.
9885 (trace_find_range_command): Likewise.
9886 * tracepoint.h (check_trace_running): Likewise.
9887 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
9891 * target.h (struct target_ops) <to_traceframe_info>: Use
9892 TARGET_DEFAULT_NORETURN (tcomplain ()).
9893 * target-delegates.c: Regenerated.
9898 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
9899 void. Update comment.
9900 (dcache_xfer_memory): Delete.
9901 (dcache_read_memory_partial): New, based on the read bits of
9903 (dcache_update): Add status parameter. Use ULONGEST for len, and
9904 adjust. Discard cache lines if the reason for the update was
9906 * dcache.h (dcache_xfer_memory): Delete declaration.
9907 (dcache_read_memory_partial): New declaration.
9908 (dcache_update): Update prototype.
9909 * target.c (raw_memory_xfer_partial): Update the dcache here.
9910 (memory_xfer_partial_1): Don't handle dcache writes here.
9914 * remote-sim.c (gdbsim_load): Add const to prog.
9918 * elfread.c (probe_key): Change to bfd_data.
9919 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
9920 now per-BFD, not per-objfile.
9921 * stap-probe.c (stap_probe_destroy): Update comment.
9922 (handle_stap_probe): Allocate on the per-BFD obstack.
9926 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
9927 * breakpoint.c (create_longjmp_master_breakpoint): Use
9929 (add_location_to_breakpoint, bkpt_probe_insert_location)
9930 (bkpt_probe_remove_location): Update.
9931 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
9932 * elfread.c (elf_symfile_relocate_probe): Remove.
9933 (elf_probe_fns): Update.
9934 (insert_exception_resume_breakpoint): Change type of "probe"
9935 parameter to bound_probe.
9936 (check_exception_resume): Update.
9937 * objfiles.c (objfile_relocate1): Don't relocate probes.
9938 * probe.c (bound_probe_s): New typedef.
9939 (parse_probes): Use get_probe_address. Set sal's objfile.
9940 (find_probe_by_pc): Return a bound_probe.
9941 (collect_probes): Return a VEC(bound_probe_s).
9942 (compare_probes): Update.
9943 (gen_ui_out_table_header_info): Change type of "probes"
9945 (info_probes_for_ops): Update.
9946 (get_probe_address): New function.
9947 (probe_safe_evaluate_at_pc): Update.
9948 * probe.h (struct probe_ops) <get_probe_address>: New field.
9949 <set_semaphore, clear_semaphore>: Add objfile parameter.
9950 (struct probe) <objfile>: Remove field.
9952 <address>: Update comment.
9953 (struct bound_probe): New.
9954 (find_probe_by_pc): Return a bound_probe.
9955 (get_probe_address): Declare.
9956 * solib-svr4.c (struct probe_and_action) <address>: New field.
9957 (hash_probe_and_action, equal_probe_and_action): Update.
9958 (register_solib_event_probe): Add address parameter.
9959 (solib_event_probe_at): Update.
9960 (svr4_create_probe_breakpoints): Add objfile parameter. Use
9962 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
9963 (stap_get_probe_address): New function.
9964 (stap_can_evaluate_probe_arguments, compute_probe_arg)
9965 (compile_probe_arg): Update.
9966 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
9968 (handle_stap_probe): Don't relocate the probe.
9969 (stap_relocate): Remove.
9970 (stap_gen_info_probes_table_values): Update.
9971 (stap_probe_ops): Remove stap_relocate.
9972 * symfile-debug.c (debug_sym_relocate_probe): Remove.
9973 (debug_sym_probe_fns): Update.
9974 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
9975 * symtab.c (init_sal): Use memset.
9976 * symtab.h (struct symtab_and_line) <objfile>: New field.
9977 * tracepoint.c (start_tracing, stop_tracing): Update.
9981 * probe.h (parse_probes, find_probe_by_pc)
9982 (find_probes_in_objfile): Fix comments.
9986 * infrun.c (handle_signal_stop): Replace test for
9987 TARGET_WAITKIND_STOPPED with an assert.
9991 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
9995 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
9999 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
10003 * i386obsd-nat.c: Include "obsd-nat.h".
10004 (_initialize_i386obsd_nat): Call obsd_add_target instead of
10006 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
10010 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
10014 * mips64obsd-nat.c: Include "obsd-nath".
10015 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
10017 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10021 * amd64obsd-nat.c: Include "obsd-nat,h.
10022 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
10024 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
10028 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
10029 (find_overload_match): Update call to find_oload_champ.
10030 (find_oload_champ_namespace_loop): Likewise
10034 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
10036 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
10037 * config/sparc/obsd64.mh: New file.
10038 * sparc64obsd-nat.c: New file.
10040 * obsd-nat.h: New file.
10041 * obsd-nat.c: New file.
10042 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
10043 (ALLDEPFILES): Add obsd-nat.c.
10047 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
10048 * cli-out.h (cli_ui_out_impl): Now const.
10049 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
10050 * ui-out.c (struct ui_out) <impl>: Now const.
10051 (default_ui_out_impl): Now const.
10052 (ui_out_new): Make 'impl' parameter const.
10053 * ui-out.h (ui_out_new): Update.
10057 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
10061 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
10065 Additional PR 8882 fix.
10066 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
10070 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
10076 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
10077 * nat/linux-waitpid.c: Include string.h.
10078 (status_to_str): Moved here and made extern.
10079 * nat/linux-waitpid.h (status_to_str): New declaration.
10084 * infrun.c (ptid_match): Move ...
10085 * common/ptid.c (ptid_match): ... here.
10086 * inferior.h (ptid_match): Move ...
10087 * common/ptid.h (ptid_match): ... here.
10091 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
10092 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
10097 * obsd-tdep.c (obsd_auxv_parse): New function.
10098 (obsd_init_abi): Set auxv_parse.
10100 * gdbarch.sh (auxv_parse): New.
10101 * gdbarch.h: Regenerated.
10102 * gdbarch.c: Regenerated.
10103 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
10107 * guile/scm-value.c (gdbscm_history_append_x): New function.
10108 (value_functions): Add it.
10112 * dwarf2read.c (attr_value_as_address): New function.
10113 (dwarf2_find_base_address, read_call_site_scope): Use
10114 attr_value_as_address in place of DW_ADDR.
10115 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
10116 the low and high addresses. Slight rework of the handling
10117 of the high pc being a constant form, and limit it to
10118 DWARF verson 4 or higher.
10119 (dwarf2_record_block_ranges): Likewise.
10120 (read_partial_die): Likewise.
10121 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
10125 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
10129 * elfread.c (elf_read_minimal_symbols): Return early if
10130 minimal symbols have already been read. Add "ei" parameter.
10131 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
10132 * minsyms.c (prim_record_minimal_symbol_full): Update.
10133 * objfiles.h (struct objstats) <n_minsyms>: Move...
10134 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
10135 * symmisc.c (print_objfile_statistics): Update.
10139 * elfread.c (elf_read_minimal_symbols): New function, from
10141 (elf_symfile_read): Call it.
10145 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
10146 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
10147 (lookup_minimal_symbol_solib_trampoline)
10148 (lookup_minimal_symbol_by_pc_section_1)
10149 (lookup_minimal_symbol_and_objfile): Update.
10150 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
10151 Don't allocate a minimal symbol if minsyms have already been read.
10152 (build_minimal_symbol_hash_tables): Update.
10153 (install_minimal_symbols): Do nothing if minsyms already read.
10154 Use the per-BFD obstack.
10155 (terminate_minimal_symbol_table): Use the per-BFD obstack.
10156 * objfiles.c (allocate_objfile): Call
10157 terminate_minimal_symbol_table later.
10158 (have_minimal_symbols): Update.
10159 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
10160 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
10161 Move from struct objfile.
10162 <minsyms_read>: New field.
10163 (struct objfile) <msymbols, minimal_symbol_count,
10164 msymbol_hash, msymbol_demangled_hash>: Move.
10165 (ALL_OBJFILE_MSYMBOLS): Update.
10166 * symfile.c (read_symbols): Set minsyms_read.
10167 (reread_symbols): Update.
10168 * symmisc.c (dump_objfile, dump_msymbols): Update.
10172 * minsyms.c (msymbols_sort): Remove.
10173 * minsyms.h (msymbols_sort): Remove.
10174 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
10175 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
10176 * elfread.c (elf_symtab_read): Don't add section offsets.
10177 * xcoffread.c (record_minimal_symbol): Don't add section offset
10178 to minimal symbol address.
10179 * somread.c (text_offset, data_offset): Remove.
10180 (som_symtab_read): Don't add section offsets to minimal symbol
10182 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
10183 Don't add section offsets to minimal symbols.
10184 * coffread.c (coff_symtab_read): Don't add section offsets
10185 to minimal symbol addresses.
10186 * machoread.c (macho_symtab_add_minsym): Don't add section offset
10187 to minimal symbol addresses.
10188 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
10189 section offset to minimal symbol addresses.
10190 * mdebugread.c (parse_partial_symbols): Don't add section
10191 offset to minimal symbol addresses.
10192 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
10193 offset to minimal symbol addresses.
10197 * ada-lang.c (ada_main_name): Update.
10198 (ada_add_standard_exceptions): Update.
10199 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10200 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10201 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
10202 * auxv.c (ld_so_xfer_auxv): Update.
10203 * avr-tdep.c (avr_scan_prologue): Update.
10204 * ax-gdb.c (gen_var_ref): Update.
10205 * blockframe.c (get_pc_function_start)
10206 (find_pc_partial_function_gnu_ifunc): Update.
10207 * breakpoint.c (create_overlay_event_breakpoint)
10208 (create_longjmp_master_breakpoint)
10209 (create_std_terminate_master_breakpoint)
10210 (create_exception_master_breakpoint): Update.
10211 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10212 * c-valprint.c (c_val_print): Update.
10213 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10214 * common/agent.c (agent_look_up_symbols): Update.
10215 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10216 * dwarf2loc.c (call_site_to_target_addr): Update.
10217 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
10218 * elfread.c (elf_gnu_ifunc_record_cache)
10219 (elf_gnu_ifunc_resolve_by_got): Update.
10220 * findvar.c (default_read_var_value): Update.
10221 * frame.c (inside_main_func): Update.
10222 * frv-tdep.c (frv_frame_this_id): Update.
10223 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10224 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10226 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
10227 (hppa_hpux_find_dummy_bpaddr): Update.
10228 * hppa-tdep.c (hppa_symbol_address): Update.
10229 * infcmd.c (until_next_command): Update.
10230 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
10232 * linespec.c (minsym_found, add_minsym): Update.
10233 * linux-nat.c (get_signo): Update.
10234 * linux-thread-db.c (inferior_has_bug): Update.
10235 * m32c-tdep.c (m32c_return_value)
10236 (m32c_m16c_address_to_pointer): Update.
10237 * m32r-tdep.c (m32r_frame_this_id): Update.
10238 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10239 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10240 * maint.c (maintenance_translate_address): Update.
10241 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
10242 (frob_address): New function.
10243 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
10244 frob_address. Rename parameter to "pc_in".
10245 (compare_minimal_symbols, compact_minimal_symbols): Use raw
10247 (find_solib_trampoline_target, minimal_symbol_upper_bound):
10249 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10250 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
10251 * objc-lang.c (find_objc_msgsend): Update.
10252 * objfiles.c (objfile_relocate1): Update.
10253 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10254 * p-valprint.c (pascal_val_print): Update.
10255 * parse.c (write_exp_msymbol): Update.
10256 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
10257 (ppc_elfv2_skip_entrypoint): Update.
10258 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10259 * printcmd.c (build_address_symbolic, msym_info)
10260 (address_info): Update.
10261 * proc-service.c (ps_pglobal_lookup): Update.
10262 * psymtab.c (find_pc_sect_psymtab_closer)
10263 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
10264 Change msymbol parameter to bound_minimal_symbol.
10265 * ravenscar-thread.c (get_running_thread_id): Update.
10266 * remote.c (remote_check_symbols): Update.
10267 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
10269 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10270 * solib-dsbt.c (lm_base): Update.
10271 * solib-frv.c (lm_base, main_got): Update.
10272 * solib-irix.c (locate_base): Update.
10273 * solib-som.c (som_solib_create_inferior_hook)
10274 (link_map_start): Update.
10275 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
10276 * solib-svr4.c (elf_locate_base, enable_break): Update.
10277 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10278 (flush_ea_cache): Update.
10279 * stabsread.c (define_symbol, scan_file_globals): Update.
10280 * stack.c (find_frame_funname): Update.
10281 * symfile-debug.c (debug_qf_expand_symtabs_matching)
10282 (debug_qf_find_pc_sect_symtab): Update.
10283 * symfile.c (simple_read_overlay_table)
10284 (simple_overlay_update): Update.
10285 * symfile.h (struct quick_symbol_functions)
10286 <find_pc_sect_symtab>: Change type of msymbol to
10287 bound_minimal_symbol.
10288 * symmisc.c (dump_msymbols): Update.
10289 * symtab.c (find_pc_sect_symtab_via_partial)
10290 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
10291 (search_symbols, print_msymbol_info): Update.
10292 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
10293 (MSYMBOL_VALUE_ADDRESS): Redefine.
10294 (BMSYMBOL_VALUE_ADDRESS): New macro.
10295 * tracepoint.c (scope_info): Update.
10296 * tui/tui-disasm.c (tui_find_disassembly_address)
10297 (tui_get_begin_asm_address): Update.
10298 * valops.c (find_function_in_inferior): Update.
10299 * value.c (value_static_field, value_fn_field): Update.
10303 * ada-lang.c (ada_update_initial_language): Update.
10304 (ada_main_name, ada_has_this_exception_support): Update.
10305 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
10306 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10307 * arm-tdep.c (arm_skip_stub): Update.
10308 * auxv.c (ld_so_xfer_auxv): Update.
10309 * avr-tdep.c (avr_scan_prologue): Update.
10310 * ax-gdb.c (gen_var_ref): Update.
10311 * breakpoint.c (struct breakpoint_objfile_data)
10312 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
10313 type to bound_minimal_symbol.
10314 (create_overlay_event_breakpoint)
10315 (create_longjmp_master_breakpoint)
10316 (create_std_terminate_master_breakpoint)
10317 (create_exception_master_breakpoint): Update.
10318 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10319 * c-exp.y (classify_name): Update.
10320 * coffread.c (coff_symfile_read): Update.
10321 * common/agent.c (agent_look_up_symbols): Update.
10322 * d-lang.c (d_main_name): Update.
10323 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
10324 * dec-thread.c (enable_dec_thread): Update.
10325 * dwarf2loc.c (call_site_to_target_addr): Update.
10326 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
10327 * eval.c (evaluate_subexp_standard): Update.
10328 * findvar.c (struct minsym_lookup_data) <result>: Change type
10329 to bound_minimal_symbol.
10331 (minsym_lookup_iterator_cb, default_read_var_value): Update.
10332 * frame.c (inside_main_func): Update.
10333 * frv-tdep.c (frv_frame_this_id): Update.
10334 * gcore.c (call_target_sbrk): Update.
10335 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10336 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
10338 * go-lang.c (go_main_name): Update.
10339 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
10340 (hppa_hpux_find_import_stub_for_addr): Update.
10341 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
10342 Update. Change return type.
10343 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
10345 * jit.c (jit_breakpoint_re_set_internal): Update.
10346 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
10348 * linux-nat.c (get_signo): Update.
10349 * linux-thread-db.c (inferior_has_bug): Update
10350 * m32c-tdep.c (m32c_return_value)
10351 (m32c_m16c_address_to_pointer): Update.
10352 * m32r-tdep.c (m32r_frame_this_id): Update.
10353 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10354 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10355 * minsyms.c (lookup_minimal_symbol_internal): Rename to
10356 lookup_minimal_symbol. Change return type.
10357 (lookup_minimal_symbol): Remove.
10358 (lookup_bound_minimal_symbol): Update.
10359 (lookup_minimal_symbol_text): Change return type.
10360 (lookup_minimal_symbol_solib_trampoline): Change return type.
10361 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
10362 (lookup_minimal_symbol_solib_trampoline): Change return type.
10363 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10364 * objc-lang.c (lookup_objc_class, lookup_child_selector)
10365 (value_nsstring, find_imps): Update.
10366 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10367 * p-lang.c (pascal_main_name): Update.
10368 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
10369 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10370 * proc-service.c (ps_pglobal_lookup): Update.
10371 * ravenscar-thread.c (get_running_thread_msymbol): Change
10373 (has_ravenscar_runtime, get_running_thread_id): Update.
10374 * remote.c (remote_check_symbols): Update.
10375 * sol-thread.c (ps_pglobal_lookup): Update.
10376 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10377 * solib-dsbt.c (lm_base): Update.
10378 * solib-frv.c (lm_base, frv_relocate_section_addresses):
10380 * solib-irix.c (locate_base): Update.
10381 * solib-som.c (som_solib_create_inferior_hook)
10382 (som_solib_desire_dynamic_linker_symbols, link_map_start):
10384 * solib-spu.c (spu_enable_break): Update.
10385 * solib-svr4.c (elf_locate_base, enable_break): Update.
10386 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
10387 (flush_ea_cache): Update.
10388 * stabsread.c (define_symbol): Update.
10389 * symfile.c (simple_read_overlay_table): Update.
10390 * symtab.c (find_pc_sect_line): Update.
10391 * tracepoint.c (scope_info): Update.
10392 * tui-disasm.c (tui_get_begin_asm_address): Update.
10393 * value.c (value_static_field): Update.
10397 * minsyms.c (prim_record_minimal_symbol_full): Use
10398 SET_MSYMBOL_VALUE_ADDRESS.
10399 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
10400 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
10401 SET_MSYMBOL_VALUE_ADDRESS.
10402 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
10403 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
10407 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
10408 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
10409 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
10410 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
10411 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
10412 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
10413 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
10414 * ada-lang.c (ada_main_name): Update.
10415 (ada_lookup_simple_minsym): Update.
10416 (ada_make_symbol_completion_list): Update.
10417 (ada_add_standard_exceptions): Update.
10418 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
10419 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
10420 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
10421 * arm-tdep.c (skip_prologue_function): Update.
10422 (arm_skip_stack_protector, arm_skip_stub): Update.
10423 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
10424 (arm_wince_skip_main_prologue): Update.
10425 * auxv.c (ld_so_xfer_auxv): Update.
10426 * avr-tdep.c (avr_scan_prologue): Update.
10427 * ax-gdb.c (gen_var_ref): Update.
10428 * block.c (call_site_for_pc): Update.
10429 * blockframe.c (get_pc_function_start): Update.
10430 (find_pc_partial_function_gnu_ifunc): Update.
10431 * breakpoint.c (create_overlay_event_breakpoint): Update.
10432 (create_longjmp_master_breakpoint): Update.
10433 (create_std_terminate_master_breakpoint): Update.
10434 (create_exception_master_breakpoint): Update.
10435 (resolve_sal_pc): Update.
10436 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
10437 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
10439 * c-valprint.c (c_val_print): Update.
10440 * coff-pe-read.c (add_pe_forwarded_sym): Update.
10441 * coffread.c (coff_symfile_read): Update.
10442 * common/agent.c (agent_look_up_symbols): Update.
10443 * dbxread.c (find_stab_function_addr): Update.
10444 (end_psymtab): Update.
10445 * dwarf2loc.c (call_site_to_target_addr): Update.
10446 (func_verify_no_selftailcall): Update.
10447 (tailcall_dump): Update.
10448 (call_site_find_chain_1): Update.
10449 (dwarf_expr_reg_to_entry_parameter): Update.
10450 * elfread.c (elf_gnu_ifunc_record_cache): Update.
10451 (elf_gnu_ifunc_resolve_by_got): Update.
10452 * f-valprint.c (info_common_command): Update.
10453 * findvar.c (read_var_value): Update.
10454 * frame.c (get_prev_frame_1): Update.
10455 (inside_main_func): Update.
10456 * frv-tdep.c (frv_skip_main_prologue): Update.
10457 (frv_frame_this_id): Update.
10458 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
10459 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
10460 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
10461 (gnuv3_skip_trampoline): Update.
10462 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
10463 (hppa64_hpux_in_solib_call_trampoline): Update.
10464 (hppa_hpux_skip_trampoline_code): Update.
10465 (hppa64_hpux_search_dummy_call_sequence): Update.
10466 (hppa_hpux_find_import_stub_for_addr): Update.
10467 (hppa_hpux_find_dummy_bpaddr): Update.
10468 * hppa-tdep.c (hppa_symbol_address)
10469 (hppa_lookup_stub_minimal_symbol): Update.
10470 * i386-tdep.c (i386_skip_main_prologue): Update.
10471 (i386_pe_skip_trampoline_code): Update.
10472 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
10473 * infcall.c (get_function_name): Update.
10474 * infcmd.c (until_next_command): Update.
10475 * jit.c (jit_breakpoint_re_set_internal): Update.
10476 (jit_inferior_init): Update.
10477 * linespec.c (minsym_found): Update.
10478 (add_minsym): Update.
10479 * linux-fork.c (info_checkpoints_command): Update.
10480 * linux-nat.c (get_signo): Update.
10481 * linux-thread-db.c (inferior_has_bug): Update.
10482 * m32c-tdep.c (m32c_return_value): Update.
10483 (m32c_m16c_address_to_pointer): Update.
10484 (m32c_m16c_pointer_to_address): Update.
10485 * m32r-tdep.c (m32r_frame_this_id): Update.
10486 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
10487 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
10488 * maint.c (maintenance_translate_address): Update.
10489 * minsyms.c (add_minsym_to_hash_table): Update.
10490 (add_minsym_to_demangled_hash_table): Update.
10491 (msymbol_objfile): Update.
10492 (lookup_minimal_symbol): Update.
10493 (iterate_over_minimal_symbols): Update.
10494 (lookup_minimal_symbol_text): Update.
10495 (lookup_minimal_symbol_by_pc_name): Update.
10496 (lookup_minimal_symbol_solib_trampoline): Update.
10497 (lookup_minimal_symbol_by_pc_section_1): Update.
10498 (lookup_minimal_symbol_and_objfile): Update.
10499 (prim_record_minimal_symbol_full): Update.
10500 (compare_minimal_symbols): Update.
10501 (compact_minimal_symbols): Update.
10502 (build_minimal_symbol_hash_tables): Update.
10503 (install_minimal_symbols): Update.
10504 (terminate_minimal_symbol_table): Update.
10505 (find_solib_trampoline_target): Update.
10506 (minimal_symbol_upper_bound): Update.
10507 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
10508 * mips-tdep.c (mips_stub_frame_sniffer): Update.
10509 (mips_skip_pic_trampoline_code): Update.
10510 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
10511 * objc-lang.c (selectors_info): Update.
10512 (classes_info): Update.
10513 (find_methods): Update.
10514 (find_imps): Update.
10515 (find_objc_msgsend): Update.
10516 * objfiles.c (objfile_relocate1): Update.
10517 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
10518 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
10519 * p-valprint.c (pascal_val_print): Update.
10520 * parse.c (write_exp_msymbol): Update.
10521 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
10522 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
10523 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
10524 * printcmd.c (build_address_symbolic): Update.
10525 (sym_info): Update.
10526 (address_info): Update.
10527 * proc-service.c (ps_pglobal_lookup): Update.
10528 * psymtab.c (find_pc_sect_psymtab_closer): Update.
10529 (find_pc_sect_psymtab): Update.
10530 * python/py-framefilter.c (py_print_frame): Update.
10531 * ravenscar-thread.c (get_running_thread_id): Update.
10532 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
10534 * remote.c (remote_check_symbols): Update.
10535 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
10536 (rs6000_skip_trampoline_code): Update.
10537 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
10538 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
10539 * solib-dsbt.c (lm_base): Update.
10540 * solib-frv.c (lm_base): Update.
10541 (main_got): Update.
10542 * solib-irix.c (locate_base): Update.
10543 * solib-som.c (som_solib_create_inferior_hook): Update.
10544 (som_solib_desire_dynamic_linker_symbols): Update.
10545 (link_map_start): Update.
10546 * solib-spu.c (spu_enable_break): Update.
10547 (ocl_enable_break): Update.
10548 * solib-svr4.c (elf_locate_base): Update.
10549 (enable_break): Update.
10550 * spu-tdep.c (spu_get_overlay_table): Update.
10551 (spu_catch_start): Update.
10552 (flush_ea_cache): Update.
10553 * stabsread.c (define_symbol): Update.
10554 (scan_file_globals): Update.
10555 * stack.c (find_frame_funname): Update.
10556 (frame_info): Update.
10557 * symfile.c (simple_read_overlay_table): Update.
10558 (simple_overlay_update): Update.
10559 * symmisc.c (dump_msymbols): Update.
10560 * symtab.c (fixup_section): Update.
10561 (find_pc_sect_line): Update.
10562 (skip_prologue_sal): Update.
10563 (search_symbols): Update.
10564 (print_msymbol_info): Update.
10565 (rbreak_command): Update.
10566 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
10567 (completion_list_objc_symbol): Update.
10568 (default_make_symbol_completion_list_break_on): Update.
10569 * tracepoint.c (scope_info): Update.
10570 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
10571 (tui_get_begin_asm_address): Update.
10572 * valops.c (find_function_in_inferior): Update.
10573 * value.c (value_static_field): Update.
10574 (value_fn_field): Update.
10578 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
10579 bound minimal symbols. Move code that knows about minsym
10581 * minsyms.c (minimal_symbol_upper_bound): ... here. New
10583 * minsyms.h (minimal_symbol_upper_bound): Declare.
10584 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
10585 minimal_symbol_upper_bound.
10589 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
10590 Use the type's name if its basic type does not have a tag.
10594 * dwarf2read.c (read_subrange_type): Add comment.
10598 * dwarf2read.c (update_enumeration_type_from_children): New
10599 function, mostly extracted from process_structure_scope.
10600 (read_enumeration_type): Call update_enumeration_type_from_children.
10601 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
10602 and flag_flag_enum fields.
10606 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
10607 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
10608 to_xfer_partial method.
10612 * target.c (complete_target_initialization): Don't install
10613 default_xfer_partial as to_xfer_partial hook.
10614 (nomemory): Delete.
10615 (update_current_target): Don't INHERIT nor de_fault
10616 deprecated_xfer_memory. Delete de_fault macro.
10617 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
10618 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
10619 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
10624 * go32-nat.c (my_write_child): New function.
10625 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
10626 (go32_xfer_partial): New function.
10627 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
10628 Instead install a to_xfer_partial hook.
10632 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
10633 to_xfer_partial helper. Rewrite.
10634 (procfs_xfer_partial): New function.
10635 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
10636 Install a to_xfer_partial hook.
10640 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
10641 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
10642 (m32r_xfer_partial): New function.
10643 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
10644 Install a to_xfer_partial hook.
10648 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
10650 (mips_xfer_partial): New function.
10651 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
10652 hook. Install a to_xfer_partial hook.
10656 * gdbtypes.h (create_array_type_with_stride): Add declaration.
10657 * gdbtypes.c (create_array_type_with_stride): New function,
10658 renaming create_array_type, but with an added parameter
10659 called "bit_stride".
10660 (create_array_type): Re-implement using
10661 create_array_type_with_stride.
10662 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
10663 and DW_AT_bit_stride attributes.
10667 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
10668 task-specific breakpoints.
10672 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
10673 handling of object == TARGET_OBJECT_UNWIND_TABLE.
10677 * defs.h: Annotate comments for Doxygen.
10681 * target.h (target_ignore): Don't declare.
10682 * target.c (target_ignore): Remove.
10687 * auto-load.c (auto_load_objfile_script_1): Change filename to
10692 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
10693 documentation. Adjust prototype to match the target_ops
10694 to_xfer_partial method. Adjust implementation accordingly.
10698 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
10699 to_traceframe_info.
10703 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
10704 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
10705 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
10706 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
10707 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
10708 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
10709 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
10710 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
10712 (rl78_register_type): Use a data pointer type for SP and
10713 new pseudo registers mentioned above. Use a 16 bit integer
10714 type for all other register pairs.
10715 (rl78_register_name, rl78_g10_register_name): Update for
10716 new pseudo registers.
10717 (rl78_pseudo_register_read): Likewise.
10718 (rl78_pseudo_register_write): Likewise.
10719 (rl78_dwarf_reg_to_regnum): Return register numbers representing
10720 to the newly added pseudo registers.
10724 * value.c (record_latest_value): Fix comment.
10725 * printcmd.c (print_command_1): Remove code to handle -1 return from
10726 record_latest_value.
10730 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
10731 deprecated_xfer_memory hook.
10732 (procfs_xfer_partial): Call procfs_xfer_memory instead
10733 of the deprecated_xfer_memory target hook.
10734 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
10739 * windows-nat.c (windows_xfer_shared_libraries): Return
10740 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
10741 requested object is TARGET_OBJECT_LIBRARIES.
10745 * target.h (enum target_xfer_status)
10746 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
10747 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
10749 * corefile.c (memory_error_message): User updated.
10750 * exec.c (section_table_read_available_memory): Likewise.
10751 * record-btrace.c (record_btrace_xfer_partial): Likewise.
10752 * target.c (target_xfer_status_to_string): Likewise.
10753 (raw_memory_xfer_partial): Likewise.
10754 (memory_xfer_partial_1, target_xfer_partial): Likewise.
10755 * valops.c (read_value_memory): Likewise.
10756 * exec.h: Update comments.
10760 * target.c (target_xfer_status_to_string): Rename argument err
10762 * target.h (target_xfer_status_to_string): Update declaration.
10763 Replace target_xfer_error_to_string with
10764 target_xfer_status_to_string in comment.
10768 * mips-linux-nat.c (super_close): Update its type.
10769 (mips_linux_close): Pass 'self' to super_close.
10773 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
10774 * corefile.c (read_memory): Adjusted.
10775 * target.c (target_write_with_progress): Adjusted.
10779 Revert two patches:
10783 * remote.c (remote_traceframe_info): Return early if
10784 traceframe is not selected.
10788 * target.c (update_current_target): Change the default action
10789 of 'to_traceframe_info' from tcomplain to return_zero.
10790 * target.h (struct target_ops) <to_traceframe_info>: Add more
10795 * valops.c (read_value_memory): Rewrite it. Call
10796 target_xfer_partial in a loop.
10797 * exec.h (section_table_available_memory): Remove declaration.
10798 Move comments to ...
10799 * exec.c (section_table_available_memory): ... here. Make it
10804 * exec.c (section_table_read_available_memory): New function.
10805 * exec.h (section_table_read_available_memory): Declare.
10806 * ctf.c (ctf_xfer_partial): Call
10807 section_table_read_available_memory.
10808 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10812 * ctf.c (ctf_xfer_partial): Move code to ...
10813 * exec.c (exec_read_partial_read_only): ... it. New function.
10814 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
10815 * tracefile.c: Include "exec.h".
10816 * exec.h (exec_read_partial_read_only): Declare.
10820 * tracefile-tfile.c (tfile_has_all_memory): Remove.
10821 (tfile_has_memory): Remove.
10822 (init_tfile_ops): Don't set fields to_has_all_memory and
10823 to_has_memory of tfile_ops.
10824 * tracefile.c (tracefile_has_all_memory): New function.
10825 (tracefile_has_memory): New function.
10826 (init_tracefile_ops): Initialize fields to_has_all_memory and
10827 to_has_memory of 'ops'.
10831 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
10832 (ctf_thread_alive, ctf_get_trace_status): Remove.
10833 (init_ctf_ops): Don't set some fields of ctf_ops. Call
10834 init_tracefile_ops.
10835 * tracefile-tfile.c (tfile_get_trace_status): Remove.
10836 (tfile_has_stack, tfile_has_registers): Remove.
10837 (tfile_thread_alive): Remove.
10838 (init_tfile_ops): Don't set some fields of tfile_ops. Call
10839 init_tracefile_ops.
10840 * tracefile.c (tracefile_has_stack): New function.
10841 (tracefile_has_registers): New function.
10842 (tracefile_thread_alive): New function.
10843 (tracefile_get_trace_status): New function.
10844 (init_tracefile_ops): New function.
10845 * tracefile.h (init_tracefile_ops): Declare.
10849 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
10850 (O_LARGEFILE): Likewise.
10851 (tfile_ops): Likewise.
10852 (TRACE_HEADER_SIZE): Likewise.
10853 (trace_fd, trace_frames_offset, cur_offset): Likewise.
10854 (cur_data_size): Likewise.
10855 (tfile_read, tfile_open, tfile_interp_line): Likewise.
10856 (tfile_close, tfile_files_info): Likewise.
10857 (tfile_get_trace_status): Likewise.
10858 (tfile_get_tracepoint_status): Likewise.
10859 (tfile_get_traceframe_address): Likewise.
10860 (tfile_trace_find, match_blocktype): Likewise.
10861 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
10862 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
10863 (tfile_get_trace_state_variable_value): Likewise.
10864 (tfile_has_all_memory, tfile_has_memory): Likewise.
10865 (tfile_has_stack, tfile_has_registers): Likewise.
10866 (tfile_thread_alive, build_traceframe_info): Likewise.
10867 (tfile_traceframe_info, init_tfile_ops): Likewise.
10868 (_initialize_tracepoint): Don't call init_tfile_ops
10869 and add_target_with_completer.
10870 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
10871 exec.h, completer.h and filenames.h.
10872 (_initialize_tracefile_tfile): New function.
10876 * Makefile.in (REMOTE_OBS): Append tracefile.o and
10878 (HFILES_NO_SRCDIR): Add tracefile.h.
10879 * ctf.c: Include "tracefile.h".
10880 * tracefile.h: New file.
10881 * tracefile.c: New file
10882 * tracefile-tfile.c: New file.
10883 * tracepoint.c: Include "tracefile.h".
10884 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
10885 (stop_reason_names): Add const.
10886 (trace_file_writer_xfree): Move it to tracefile.c.
10887 (trace_save, trace_save_command, trace_save_tfile): Likewise.
10888 (trace_save_ctf): Likewise.
10889 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
10890 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
10891 (tfile_write_header, tfile_write_regblock_type): Likewise.
10892 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
10893 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
10894 (tfile_write_raw_data, tfile_end): Likewise.
10895 (tfile_trace_file_writer_new): Likewise.
10896 (free_uploaded_tp): Make it extern.
10897 (free_uploaded_tsv): Make it extern.
10898 (_initialize_tracepoint): Move code to register command 'tsave'
10900 * tracepoint.h (stop_reason_names): Declare.
10901 (struct trace_frame_write_ops): Move it to tracefile.h.
10902 (struct trace_file_write_ops): Likewise.
10903 (struct trace_file_writer): Likewise.
10904 (free_uploaded_tsvs, free_uploaded_tps): Declare.
10909 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
10911 (get_cores_used_by_process): New parameter num_cores, use it.
10912 (linux_xfer_osdata_processes): Pass num_cores to it.
10913 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
10918 * target.c (memory_xfer_partial): Fix length arg in call to
10919 breakpoint_xfer_memory.
10924 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
10925 number comes after the + or - signs. Adjust length of register
10926 name to be extracted.
10930 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
10931 (ada_varobj_ops): Mark "extern".
10935 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
10939 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
10940 All callers updated.
10941 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
10942 All callers updated.
10943 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
10944 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
10951 * dwarf2read.c (struct die_info): New member in_process.
10952 (reset_die_in_process): New function.
10953 (process_die): Set it at the start, reset when returning.
10954 (inherit_abstract_dies): Only call process_die if origin_child_die
10955 not already being processed.
10959 * windows-nat.c (handle_unload_dll): Add function documentation.
10960 (do_initial_windows_stuff): Add comment explaining why we wait
10961 until after inferior initialization has finished before
10962 processing all DLLs.
10966 * windows-nat.c (get_module_name): Delete.
10967 (windows_get_exec_module_filename): New function, mostly
10968 inspired from get_module_name.
10969 (windows_pid_to_exec_file): Replace call to get_module_name
10970 by call to windows_get_exec_module_filename.
10974 * windows-nat.c (handle_load_dll): Rewrite this function's
10975 introductory comment. Remove code using get_module_name
10976 to get the DLL's name.
10980 * windows-nat.c (get_windows_debug_event): Ignore
10981 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
10982 if windows_initialization_done == 0.
10983 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
10984 Adjust implementation to always load all DLLs.
10985 (do_initial_windows_stuff): Replace call to
10986 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
10990 * windows-nat.c (_initialize_windows_nat): Deprecate the
10991 "dll-symbols" command. Turn the "add-shared-symbol-files"
10992 and "assf" aliases into commands, and deprecate them as well.
10993 * NEWS: Add entry explaining that "dll-symbols" and its two
10994 aliases are now deprecated.
10998 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
10999 new-line in debug string. Remove trailing spaces.
11003 * darwin-nat.c (darwin_xfer_partial): Fix return type.
11007 * NEWS: Add entry for the new feature
11008 * python/py-value.c (valpy_binop): Call value_x_binop for struct
11013 * MAINTAINERS: List Yao Qi as nios2 maintainer.
11017 * common/ptid.h (struct ptid): Mention that process_stratum
11018 targets should prefer ptid.lwp.
11022 * remote.c (remote_thread_alive, write_ptid, read_ptid)
11023 (read_ptid, remote_newthread_step, remote_threads_extra_info)
11024 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
11025 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
11026 store remote thread ids rather than ptid.tid.
11027 (_initialize_remote): Adjust.
11031 * target.c (target_get_unwinder): Rewrite.
11032 (target_get_tailcall_unwinder): Rewrite.
11033 * record-btrace.c (record_btrace_to_get_unwinder): New function.
11034 (record_btrace_to_get_tailcall_unwinder): New function.
11035 (init_record_btrace_ops): Update.
11036 * target.h (struct target_ops) <to_get_unwinder,
11037 to_get_tailcall_unwinder>: Now function pointers. Use
11038 TARGET_DEFAULT_RETURN.
11042 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
11044 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
11048 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
11050 * target-delegates.c: Rebuild.
11051 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
11052 TARGET_DEFAULT_FUNC.
11053 * target.c (default_target_decr_pc_after_break): Rename from
11054 forward_target_decr_pc_after_break. Simplify.
11055 (target_decr_pc_after_break): Rely on delegation.
11059 * target.c (update_current_target): Do not INHERIT to_doc or
11060 to_magic. Do not de_fault to_open or to_close.
11064 * gcore.h (objfile_find_memory_regions): Declare.
11065 * gcore.c (objfile_find_memory_regions): No longer static. Add
11067 (_initialize_gcore): Don't call exec_set_find_memory_regions.
11068 * exec.c: Include gcore.h.
11069 (exec_set_find_memory_regions): Remove.
11070 (exec_find_memory_regions): Remove.
11071 (exec_do_find_memory_regions): Remove.
11072 (init_exec_ops): Update.
11073 * defs.h (exec_set_find_memory_regions): Remove.
11077 * target-delegates.c: Rebuild.
11078 * target.h (struct target_ops) <to_extra_thread_info,
11079 to_thread_name, to_pid_to_exec_file, to_get_section_table,
11080 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
11081 not 0, in TARGET_DEFAULT_RETURN.
11085 * target.c (complete_target_initialization): Remove casts. Use
11086 return_zero_has_execution.
11087 (return_zero): Add "ignore" argument.
11088 (return_zero_has_execution): New function.
11089 (init_dummy_target): Remove casts. Use
11090 return_zero_has_execution.
11094 * target.c (update_current_target): Update comments. Do not
11095 INHERIT to_stratum.
11099 * arm-linux-nat.c (arm_linux_read_description): Delegate when
11101 * corelow.c (core_read_description): Delegate when needed.
11102 * remote.c (remote_read_description): Delegate when needed.
11103 * target-delegates.c: Rebuild.
11104 * target.c (target_read_description): Rewrite.
11105 * target.h (struct target_ops) <to_read_description>: Update
11106 comment. Use TARGET_DEFAULT_RETURN.
11110 * target-delegates.c: Rebuild.
11111 * target.c (update_current_target): Don't inherit or default
11113 (find_default_run_target): Check against delegate_can_run.
11114 * target.h (struct target_ops) <to_can_run>: Use
11115 TARGET_DEFAULT_RETURN.
11119 * target-delegates.c: Rebuild.
11120 * target.c (target_disconnect): Unconditionally delegate.
11121 * target.h (struct target_ops) <to_disconnect>: Use
11122 TARGET_DEFAULT_NORETURN.
11126 * record.c (record_stop): Unconditionally delegate.
11127 * target-delegates.c: Rebuild.
11128 * target.c (target_stop_recording): Unconditionally delegate.
11129 * target.h (struct target_ops) <to_stop_recording>: Use
11130 TARGET_DEFAULT_IGNORE.
11134 * target-delegates.c: Rebuild.
11135 * target.c (target_enable_btrace): Unconditionally delegate.
11136 * target.h (struct target_ops) <to_enable_btrace>: Use
11137 TARGET_DEFAULT_NORETURN.
11141 * target-delegates.c: Rebuild.
11142 * target.c (target_read_btrace): Unconditionally delegate.
11143 * target.h (struct target_ops) <to_read_btrace>: Use
11144 TARGET_DEFAULT_NORETURN.
11148 * target-delegates.c: Rebuild.
11149 * target.c (target_teardown_btrace): Unconditionally delegate.
11150 * target.h (struct target_ops) <to_teardown_btrace>: Use
11151 TARGET_DEFAULT_NORETURN.
11155 * target-delegates.c: Rebuild.
11156 * target.c (target_disable_btrace): Unconditionally delegate.
11157 * target.h (struct target_ops) <to_disable_btrace>: Use
11158 TARGET_DEFAULT_NORETURN.
11162 * target-delegates.c: Rebuild.
11163 * target.c (default_search_memory): New function.
11164 (simple_search_memory): Update comment.
11165 (target_search_memory): Unconditionally delegate.
11166 * target.h (struct target_ops) <to_search_memory>: Use
11167 TARGET_DEFAULT_FUNC.
11171 * auxv.c (default_auxv_parse): No longer static.
11172 (target_auxv_parse): Unconditionally delegate.
11173 * auxv.h (default_auxv_parse): Declare.
11174 * target-delegates.c: Rebuild.
11175 * target.c: Include auxv.h.
11176 * target.h (struct target_ops) <to_auxv_parse>: Use
11177 TARGET_DEFAULT_FUNC.
11181 * target-delegates.c: Rebuild.
11182 * target.c (target_memory_map): Unconditionally delegate.
11183 * target.h (struct target_ops) <to_memory_map>: Use
11184 TARGET_DEFAULT_RETURN.
11188 * target-delegates.c: Rebuild.
11189 * target.c (target_thread_alive): Unconditionally delegate.
11190 * target.h (struct target_ops) <to_thread_alive>: Use
11191 TARGET_DEFAULT_RETURN.
11195 * target-delegates.c: Rebuild.
11196 * target.c (target_save_record): Unconditionally delegate.
11197 * target.h (struct target_ops) <to_save_record>: Use
11198 TARGET_DEFAULT_NORETURN.
11202 * target-delegates.c: Rebuild.
11203 * target.c (target_delete_record): Unconditionally delegate.
11204 * target.h (struct target_ops) <to_delete_record>: Use
11205 TARGET_DEFAULT_NORETURN.
11209 * target-delegates.c: Rebuild.
11210 * target.c (target_record_is_replaying): Unconditionally
11212 * target.h (struct target_ops) <to_record_is_replaying>: Use
11213 TARGET_DEFAULT_RETURN.
11217 * target-delegates.c: Rebuild.
11218 * target.c (target_goto_record_begin): Unconditionally delegate.
11219 * target.h (struct target_ops) <to_goto_record_begin>: Use
11220 TARGET_DEFAULT_NORETURN.
11224 * target-delegates.c: Rebuild.
11225 * target.c (target_goto_record_end): Unconditionally delegate.
11226 * target.h (struct target_ops) <to_goto_record_end>: Use
11227 TARGET_DEFAULT_NORETURN.
11231 * target-delegates.c: Rebuild.
11232 * target.c (target_goto_record): Unconditionally delegate.
11233 * target.h (struct target_ops) <to_goto_record>: Use
11234 TARGET_DEFAULT_NORETURN.
11238 * target-delegates.c: Rebuild.
11239 * target.c (target_insn_history): Unconditionally delegate.
11240 * target.h (struct target_ops) <to_insn_history>: Use
11241 TARGET_DEFAULT_NORETURN.
11245 * target-delegates.c: Rebuild.
11246 * target.c (target_insn_history_from): Unconditionally delegate.
11247 * target.h (struct target_ops) <to_insn_history_from>: Use
11248 TARGET_DEFAULT_NORETURN.
11252 * target-delegates.c: Rebuild.
11253 * target.c (target_insn_history_range): Unconditionally delegate.
11254 * target.h (struct target_ops) <to_insn_history_range>: Use
11255 TARGET_DEFAULT_NORETURN.
11259 * target-delegates.c: Rebuild.
11260 * target.c (target_call_history): Unconditionally delegate.
11261 * target.h (struct target_ops) <to_call_history>: Use
11262 TARGET_DEFAULT_NORETURN.
11266 * target-delegates.c: Rebuild.
11267 * target.c (target_call_history_from): Unconditionally delegate.
11268 * target.h (struct target_ops) <to_call_history_from>: Use
11269 TARGET_DEFAULT_NORETURN.
11273 * target-delegates.c: Rebuild.
11274 * target.c (target_call_history_range): Unconditionally delegate.
11275 * target.h (struct target_ops) <to_call_history_range>: Use
11276 TARGET_DEFAULT_NORETURN.
11280 * target-delegates.c: Rebuild.
11281 * target.c (target_verify_memory): Unconditionally delegate.
11282 * target.h (struct target_ops) <to_verify_memory>: Use
11283 TARGET_DEFAULT_NORETURN.
11287 * target-delegates.c: Rebuild.
11288 * target.c (target_core_of_thread): Unconditionally delegate.
11289 * target.h (struct target_ops) <to_core_of_thread>: Use
11290 TARGET_DEFAULT_RETURN.
11294 * target-delegates.c: Rebuild.
11295 * target.c (target_flash_done): Unconditionally delegate.
11296 * target.h (struct target_ops) <to_flash_done>: Use
11297 TARGET_DEFAULT_NORETURN.
11301 * target-delegates.c: Rebuild.
11302 * target.c (target_flash_erase): Unconditionally delegate.
11303 * target.h (struct target_ops) <to_flash_erase>: Use
11304 TARGET_DEFAULT_NORETURN.
11308 * target-delegates.c: Rebuild.
11309 * target.c (target_get_section_table): Unconditionally delegate.
11310 * target.h (struct target_ops) <to_get_section_table>: Use
11311 TARGET_DEFAULT_RETURN.
11315 * target-delegates.c: Rebuild.
11316 * target.c (target_pid_to_str): Unconditionally delegate.
11317 (init_dummy_target): Don't initialize to_pid_to_str.
11318 (default_pid_to_str): Rename from dummy_pid_to_str.
11319 * target.h (struct target_ops) <to_pid_to_str>: Use
11320 TARGET_DEFAULT_FUNC.
11324 * target-delegates.c: Rebuild.
11325 * target.c (target_find_new_threads): Unconditionally delegate.
11326 * target.h (struct target_ops) <to_find_new_threads>: Use
11327 TARGET_DEFAULT_RETURN.
11331 * target-delegates.c: Rebuild.
11332 * target.c (target_program_signals): Unconditionally delegate.
11333 * target.h (struct target_ops) <to_program_signals>: Use
11334 TARGET_DEFAULT_IGNORE.
11338 * target-delegates.c: Rebuild.
11339 * target.c (target_pass_signals): Unconditionally delegate.
11340 * target.h (struct target_ops) <to_pass_signals>: Use
11341 TARGET_DEFAULT_IGNORE.
11345 * target-delegates.c: Rebuild.
11346 * target.c (default_mourn_inferior): New function.
11347 (target_mourn_inferior): Unconditionally delegate.
11348 * target.h (struct target_ops) <to_mourn_inferior>: Use
11349 TARGET_DEFAULT_FUNC.
11353 * target-delegates.c: Rebuild.
11354 * target.c (default_follow_fork): New function.
11355 (target_follow_fork): Unconditionally delegate.
11356 * target.h (struct target_ops) <to_follow_fork>: Use
11357 TARGET_DEFAULT_FUNC.
11361 * target-delegates.c: Rebuild.
11362 * target.c (target_kill): Unconditionally delegate.
11363 * target.h (struct target_ops) <to_kill>: Use
11364 TARGET_DEFAULT_NORETURN.
11368 * target-delegates.c: Rebuild.
11369 * target.c (target_masked_watch_num_registers): Unconditionally
11371 * target.h (struct target_ops) <to_masked_watch_num_registers>:
11372 Use TARGET_DEFAULT_RETURN.
11376 * target-delegates.c: Rebuild.
11377 * target.c (target_remove_mask_watchpoint): Unconditionally
11379 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
11380 TARGET_DEFAULT_RETURN.
11384 * target-delegates.c: Rebuild.
11385 * target.c (target_insert_mask_watchpoint): Unconditionally
11387 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
11388 TARGET_DEFAULT_RETURN.
11392 * target-delegates.c: Rebuild.
11393 * target.c (target_ranged_break_num_registers): Unconditionally
11395 * target.h (struct target_ops) <to_ranged_break_num_registers>:
11396 Use TARGET_DEFAULT_RETURN.
11400 * target-delegates.c: Rebuild.
11401 * target.c (target_fetch_registers): Unconditionally delegate.
11402 * target.h (struct target_ops) <to_fetch_registers>: Use
11403 TARGET_DEFAULT_NORETURN.
11407 * target-delegates.c: Rebuild.
11408 * target.c (update_current_target): Don't inherit or default
11410 * target.h (struct target_ops) <to_stop>: Use
11411 TARGET_DEFAULT_IGNORE.
11415 * target-delegates.c: Rebuild.
11416 * target.c (update_current_target): Don't inherit or default
11417 to_can_run_breakpoint_commands.
11418 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
11419 Use TARGET_DEFAULT_RETURN.
11423 * target-delegates.c: Rebuild.
11424 * target.c (update_current_target): Don't inherit or default
11425 to_supports_evaluation_of_breakpoint_conditions.
11426 * target.h (struct target_ops)
11427 <to_supports_evaluation_of_breakpoint_conditions>: Use
11428 TARGET_DEFAULT_RETURN.
11432 * target-delegates.c: Rebuild.
11433 * target.c (update_current_target): Don't inherit or default
11434 to_augmented_libraries_svr4_read.
11435 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
11436 Use TARGET_DEFAULT_RETURN.
11440 * target-delegates.c: Rebuild.
11441 * target.c (update_current_target): Don't inherit or default
11443 * target.h (struct target_ops) <to_can_use_agent>: Use
11444 TARGET_DEFAULT_RETURN.
11448 * target-delegates.c: Rebuild.
11449 * target.c (update_current_target): Don't inherit or default
11451 * target.h (struct target_ops) <to_use_agent>: Use
11452 TARGET_DEFAULT_NORETURN.
11456 * target-delegates.c: Rebuild.
11457 * target.c (update_current_target): Don't inherit or default
11458 to_traceframe_info.
11459 (return_null): Remove.
11460 * target.h (struct target_ops) <to_traceframe_info>: Use
11461 TARGET_DEFAULT_RETURN.
11465 * target-delegates.c: Rebuild.
11466 * target.c (update_current_target): Don't inherit or default
11467 to_static_tracepoint_markers_by_strid.
11468 * target.h (struct target_ops)
11469 <to_static_tracepoint_markers_by_strid>: Use
11470 TARGET_DEFAULT_NORETURN.
11474 * target-delegates.c: Rebuild.
11475 * target.c (update_current_target): Don't inherit or default
11476 to_static_tracepoint_marker_at.
11477 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
11478 Use TARGET_DEFAULT_RETURN.
11482 * target-delegates.c: Rebuild.
11483 * target.c (update_current_target): Don't inherit or default
11484 to_set_permissions.
11485 * target.h (struct target_ops) <to_set_permissions>: Use
11486 TARGET_DEFAULT_IGNORE.
11490 * target-delegates.c: Rebuild.
11491 * target.c (update_current_target): Don't inherit or default
11492 to_get_tib_address.
11493 * target.h (struct target_ops) <to_get_tib_address>: Use
11494 TARGET_DEFAULT_NORETURN.
11498 * target-delegates.c: Rebuild.
11499 * target.c (update_current_target): Don't inherit or default
11500 to_set_trace_notes.
11501 * target.h (struct target_ops) <to_set_trace_notes>: Use
11502 TARGET_DEFAULT_RETURN.
11506 * target-delegates.c: Rebuild.
11507 * target.c (update_current_target): Don't initialize
11508 to_set_trace_buffer_size.
11509 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
11510 TARGET_DEFAULT_IGNORE.
11514 * target-delegates.c: Rebuild.
11515 * target.c (update_current_target): Don't inherit or default
11516 to_set_circular_trace_buffer.
11517 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
11518 TARGET_DEFAULT_IGNORE.
11522 * target-delegates.c: Rebuild.
11523 * target.c (update_current_target): Don't inherit or default
11524 to_set_disconnected_tracing.
11525 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
11526 TARGET_DEFAULT_IGNORE.
11530 * target-delegates.c: Rebuild.
11531 * target.c (update_current_target): Don't inherit or default
11532 to_get_min_fast_tracepoint_insn_len.
11533 (return_minus_one): Remove.
11534 * target.h (struct target_ops)
11535 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
11539 * target-delegates.c: Rebuild.
11540 * target.c (update_current_target): Don't inherit or default
11541 to_get_raw_trace_data.
11542 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
11543 TARGET_DEFAULT_NORETURN.
11547 * target-delegates.c: Rebuild.
11548 * target.c (update_current_target): Don't inherit or default
11549 to_upload_trace_state_variables.
11550 * target.h (struct target_ops) <to_upload_trace_state_variables>:
11551 Use TARGET_DEFAULT_RETURN.
11555 * target-delegates.c: Rebuild.
11556 * target.c (update_current_target): Don't inherit or default
11557 to_upload_tracepoints.
11558 * target.h (struct target_ops) <to_upload_tracepoints>: Use
11559 TARGET_DEFAULT_RETURN.
11563 * target-delegates.c: Rebuild.
11564 * target.c (update_current_target): Don't inherit or default
11565 to_save_trace_data.
11566 * target.h (struct target_ops) <to_save_trace_data>: Use
11567 TARGET_DEFAULT_NORETURN.
11571 * target-delegates.c: Rebuild.
11572 * target.c (update_current_target): Don't inherit or default
11573 to_get_trace_state_variable_value.
11574 * target.h (struct target_ops)
11575 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
11579 * target-delegates.c: Rebuild.
11580 * target.c (update_current_target): Don't inherit or default
11582 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
11586 * target-delegates.c: Rebuild.
11587 * target.c (update_current_target): Don't inherit or default
11589 * target.h (struct target_ops) <to_trace_stop>: Use
11590 TARGET_DEFAULT_NORETURN.
11594 * target-delegates.c: Rebuild.
11595 * target.c (update_current_target): Don't inherit or default
11596 to_get_tracepoint_status.
11597 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
11598 TARGET_DEFAULT_NORETURN.
11602 * target-delegates.c: Rebuild.
11603 * target.c (update_current_target): Don't inherit or default
11604 to_get_trace_status.
11605 * target.h (struct target_ops) <to_get_trace_status>: Use
11606 TARGET_DEFAULT_RETURN.
11610 * target-delegates.c: Rebuild.
11611 * target.c (update_current_target): Don't inherit or default
11613 * target.h (struct target_ops) <to_trace_start>: Use
11614 TARGET_DEFAULT_NORETURN.
11618 * target-delegates.c: Rebuild.
11619 * target.c (update_current_target): Don't inherit or default
11620 to_trace_set_readonly_regions.
11621 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
11622 Use TARGET_DEFAULT_NORETURN.
11626 * target-delegates.c: Rebuild.
11627 * target.c (update_current_target): Don't inherit or default
11628 to_disable_tracepoint.
11629 * target.h (struct target_ops) <to_disable_tracepoint>: Use
11630 TARGET_DEFAULT_NORETURN.
11634 * target-delegates.c: Rebuild.
11635 * target.c (update_current_target): Don't inherit or default
11636 to_enable_tracepoint.
11637 * target.h (struct target_ops) <to_enable_tracepoint>: Use
11638 TARGET_DEFAULT_NORETURN.
11642 * target-delegates.c: Rebuild.
11643 * target.c (update_current_target): Don't inherit or default
11644 to_download_trace_state_variable.
11645 * target.h (struct target_ops) <to_download_trace_state_variable>:
11646 Use TARGET_DEFAULT_NORETURN.
11650 * target-delegates.c: Rebuild.
11651 * target.c (update_current_target): Don't inherit or default
11652 to_can_download_tracepoint.
11653 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
11654 TARGET_DEFAULT_RETURN.
11658 * target-delegates.c: Rebuild.
11659 * target.c (update_current_target): Don't inherit or default
11660 to_download_tracepoint.
11661 * target.h (struct target_ops) <to_download_tracepoint>: Use
11662 TARGET_DEFAULT_NORETURN.
11666 * target-delegates.c: Rebuild.
11667 * target.c (update_current_target): Don't inherit or default
11669 * target.h (struct target_ops) <to_trace_init>: Use
11670 TARGET_DEFAULT_RETURN.
11674 * target-delegates.c: Rebuild.
11675 * target.c (update_current_target): Don't inherit or default
11676 to_supports_string_tracing.
11677 * target.h (struct target_ops) <to_supports_string_tracing>: Use
11678 TARGET_DEFAULT_RETURN.
11682 * target-delegates.c: Rebuild.
11683 * target.c (update_current_target): Don't inherit or default
11684 to_supports_enable_disable_tracepoint.
11685 * target.h (struct target_ops)
11686 <to_supports_enable_disable_tracepoint>: Use
11687 TARGET_DEFAULT_RETURN.
11691 * target-delegates.c: Rebuild.
11692 * target.c (update_current_target): Don't inherit or default
11693 to_supports_multi_process.
11694 * target.h (struct target_ops) <to_supports_multi_process>: Use
11695 TARGET_DEFAULT_RETURN.
11699 * target-delegates.c: Rebuild.
11700 * target.c (update_current_target): Don't inherit or default
11701 to_get_ada_task_ptid.
11702 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
11703 TARGET_DEFAULT_FUNC.
11707 * target-delegates.c: Rebuild.
11708 * target.c (update_current_target): Don't inherit or default
11709 to_thread_architecture.
11710 * target.h (struct target_ops) <to_thread_architecture>: Use
11711 TARGET_DEFAULT_FUNC.
11715 * target-delegates.c: Rebuild.
11716 * target.c (update_current_target): Don't inherit or default
11717 to_execution_direction.
11718 * target.h (struct target_ops) <to_execution_direction>: Use
11719 TARGET_DEFAULT_FUNC.
11723 * target-delegates.c: Rebuild.
11724 * target.c (update_current_target): Don't inherit or default
11725 to_can_execute_reverse.
11726 * target.h (struct target_ops) <to_can_execute_reverse>: Use
11727 TARGET_DEFAULT_RETURN.
11728 (target_can_execute_reverse): Unconditionally delegate.
11732 * target-delegates.c: Rebuild.
11733 * target.c (update_current_target): Don't inherit or default
11735 (dummy_goto_bookmark): Remove.
11736 (init_dummy_target): Don't inherit or default to_goto_bookmark.
11737 * target.h (struct target_ops) <to_goto_bookmark>: Use
11738 TARGET_DEFAULT_NORETURN.
11742 * target-delegates.c: Rebuild.
11743 * target.c (update_current_target): Don't inherit or default
11745 (dummy_get_bookmark): Remove.
11746 (init_dummy_target): Don't inherit or default to_get_bookmark.
11747 * target.h (struct target_ops) <to_get_bookmark>: Use
11748 TARGET_DEFAULT_NORETURN
11752 * target-delegates.c: Rebuild.
11753 * target.c (update_current_target): Don't inherit or default
11754 to_make_corefile_notes.
11755 (init_dummy_target): Don't initialize to_make_corefile_notes.
11756 * target.h (struct target_ops) <to_make_corefile_notes>: Use
11757 TARGET_DEFAULT_FUNC.
11761 * target-delegates.c: Rebuild.
11762 * target.c (update_current_target): Don't inherit or default
11763 to_find_memory_regions.
11764 (init_dummy_target): Don't initialize to_find_memory_regions.
11765 * target.h (struct target_ops) <to_find_memory_regions>: Use
11766 TARGET_DEFAULT_FUNC.
11770 * target-delegates.c: Rebuild.
11771 * target.c (update_current_target): Don't inherit or default
11773 * target.h (struct target_ops) <to_log_command>: Use
11774 TARGET_DEFAULT_IGNORE.
11775 (target_log_command): Unconditionally delegate.
11779 * target-delegates.c: Rebuild.
11780 * target.c (update_current_target): Don't inherit or default
11781 to_pid_to_exec_file.
11782 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
11783 TARGET_DEFAULT_RETURN.
11787 * target-delegates.c: Rebuild.
11788 * target.c (update_current_target): Don't inherit or default
11790 (target_thread_name): Unconditionally delegate.
11791 * target.h (struct target_ops) <to_thread_name>: Use
11792 TARGET_DEFAULT_RETURN.
11796 * target-delegates.c: Rebuild.
11797 * target.c (update_current_target): Don't inherit or default
11798 to_extra_thread_info.
11799 * target.h (struct target_ops) <to_extra_thread_info>: Use
11800 TARGET_DEFAULT_RETURN.
11804 * target-delegates.c: Rebuild.
11805 * target.c (update_current_target): Don't inherit or default
11807 * target.h (struct target_ops) <to_has_exited>: Use
11808 TARGET_DEFAULT_RETURN..
11812 * target-delegates.c: Rebuild.
11813 * target.c (update_current_target): Don't inherit or default
11814 to_set_syscall_catchpoint.
11815 (return_one): Remove.
11816 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
11817 TARGET_DEFAULT_RETURN.
11821 * target-delegates.c: Rebuild.
11822 * target.c (update_current_target): Don't inherit or default
11823 to_insert_exec_catchpoint.
11824 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11825 TARGET_DEFAULT_RETURN.
11829 * target-delegates.c: Rebuild.
11830 * target.c (update_current_target): Don't inherit or default
11831 to_insert_exec_catchpoint.
11832 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
11833 TARGET_DEFAULT_RETURN.
11837 * target-delegates.c: Rebuild.
11838 * target.c (update_current_target): Don't inherit or default
11839 to_remove_vfork_catchpoint.
11840 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
11841 TARGET_DEFAULT_RETURN.
11845 * target-delegates.c: Rebuild.
11846 * target.c (update_current_target): Don't inherit or default
11847 to_insert_vfork_catchpoint.
11848 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
11849 TARGET_DEFAULT_RETURN.
11853 * target-delegates.c: Rebuild.
11854 * target.c (update_current_target): Don't inherit or default
11855 to_remove_fork_catchpoint.
11856 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
11857 TARGET_DEFAULT_RETURN.
11861 * target-delegates.c: Rebuild.
11862 * target.c (update_current_target): Don't inherit or default
11863 to_insert_fork_catchpoint.
11864 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
11865 TARGET_DEFAULT_RETURN.
11869 * target-delegates.c: Rebuild.
11870 * target.c (update_current_target): Don't inherit or default
11871 to_post_startup_inferior.
11872 * target.h (struct target_ops) <to_post_startup_inferior>: Use
11873 TARGET_DEFAULT_IGNORE.
11877 * target-delegates.c: Rebuild.
11878 * target.c (update_current_target): Don't inherit or default
11880 * target.h (struct target_ops) <to_load>: Use
11881 TARGET_DEFAULT_NORETURN.
11885 * target-delegates.c: Rebuild.
11886 * target.c (update_current_target): Don't inherit or default
11888 * target.h (struct target_ops) <to_terminal_info>: Use
11889 TARGET_DEFAULT_FUNC.
11893 * target-delegates.c: Rebuild.
11894 * target.c (update_current_target): Don't inherit or default
11895 to_terminal_save_ours.
11896 * target.h (struct target_ops) <to_terminal_save_ours>: Use
11897 TARGET_DEFAULT_IGNORE.
11901 * target-delegates.c: Rebuild.
11902 * target.c (update_current_target): Don't inherit or default
11904 * target.h (struct target_ops) <to_terminal_ours>: Use
11905 TARGET_DEFAULT_IGNORE.
11909 * target-delegates.c: Rebuild.
11910 * target.c (update_current_target): Don't inherit or default
11911 to_terminal_ours_for_output.
11912 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
11913 TARGET_DEFAULT_IGNORE.
11917 * target-delegates.c: Rebuild.
11918 * target.c (update_current_target): Don't inherit or default
11919 to_terminal_inferior.
11920 * target.h (struct target_ops) <to_terminal_inferior>: Use
11921 TARGET_DEFAULT_IGNORE.
11925 * target-delegates.c: Rebuild.
11926 * target.c (update_current_target): Don't inherit or default
11928 * target.h (struct target_ops) <to_terminal_init>: Use
11929 TARGET_DEFAULT_IGNORE.
11933 * target-delegates.c: Rebuild.
11934 * target.c (update_current_target): Don't inherit or default
11935 to_can_accel_watchpoint_condition.
11936 * target.h (struct target_ops)
11937 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
11941 * target-delegates.c: Rebuild.
11942 * target.c (update_current_target): Don't inherit or default
11943 to_region_ok_for_hw_watchpoint.
11944 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11945 Use TARGET_DEFAULT_FUNC.
11949 * target-delegates.c: Rebuild.
11950 * target.c (update_current_target): Don't inherit or default
11951 to_watchpoint_addr_within_range.
11952 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
11953 Use TARGET_DEFAULT_FUNC.
11957 * target-delegates.c: Rebuild.
11958 * target.c (update_current_target): Don't inherit or default
11959 to_remove_watchpoint.
11960 * target.h (struct target_ops) <to_remove_watchpoint>: Use
11961 TARGET_DEFAULT_NORETURN.
11965 * target-delegates.c: Rebuild.
11966 * target.c (update_current_target): Don't inherit or default
11967 to_insert_watchpoint.
11968 * target.h (struct target_ops) <to_insert_watchpoint>: Use
11969 TARGET_DEFAULT_RETURN.
11973 * target-delegates.c: Rebuild.
11974 * target.c (update_current_target): Don't inherit or default
11975 to_remove_hw_breakpoint.
11976 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
11977 TARGET_DEFAULT_RETURN.
11981 * target-delegates.c: Rebuild.
11982 * target.c (update_current_target): Don't inherit or default
11983 to_insert_hw_breakpoint.
11984 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
11985 TARGET_DEFAULT_RETURN.
11989 * target-delegates.c: Rebuild.
11990 * target.c (update_current_target): Don't inherit or default
11991 to_can_use_hw_breakpoint.
11992 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
11993 TARGET_DEFAULT_RETURN.
11997 * target-delegates.c: Rebuild.
11998 * target.c (update_current_target): Don't inherit or default
12000 * target.h (struct target_ops) <to_files_info>: Use
12001 TARGET_DEFAULT_IGNORE.
12005 * target-delegates.c: Rebuild.
12006 * target.c (update_current_target): Don't inherit or default
12008 * target.h (struct target_ops) <to_store>: Use
12009 TARGET_DEFAULT_NORETURN.
12013 * target-delegates.c: Rebuild.
12014 * target.c (update_current_target): Don't inherit or default
12016 * target.h (struct target_ops) <to_post_attach>: Use
12017 TARGET_DEFAULT_IGNORE.
12021 * target-delegates.c: Rebuild.
12022 * target.c (update_current_target): Don't inherit or default
12024 (default_rcmd): New function.
12025 (do_monitor_command): Unconditionally delegate.
12026 * target.h (struct target_ops) <to_rmcd>: Use
12027 TARGET_DEFAULT_FUNC.
12031 * target-delegates.c: Rebuild.
12032 * target.c (init_dummy_target): Don't initialize to_attach.
12033 (target_attach): Unconditionally delegate.
12034 * target.h (struct target_ops) <to_attach>: Use
12035 TARGET_DEFAULT_FUNC.
12039 * target-delegates.c: Rebuild.
12040 * target.c (target_detach): Unconditionally delegate.
12041 (init_dummy_target): Don't initialize to_detach.
12042 * target.h (struct target_ops) <to_detach>: Use
12043 TARGET_DEFAULT_IGNORE.
12047 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
12049 (target_augmented_libraries_svr4_read): Add argument.
12050 * target.c (update_current_target): Update.
12051 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
12056 * target.h (struct target_ops) <to_call_history_range>: Add
12058 * target.c (target_call_history_range): Add argument.
12059 * record-btrace.c (record_btrace_call_history_range): Add 'self'
12061 (record_btrace_call_history_from): Update.
12065 * target.h (struct target_ops) <to_call_history_from>: Add
12067 * target.c (target_call_history_from): Add argument.
12068 * record-btrace.c (record_btrace_call_history_from): Add 'self'
12073 * target.h (struct target_ops) <to_call_history>: Add argument.
12074 * target.c (target_call_history): Add argument.
12075 * record-btrace.c (record_btrace_call_history): Add 'self'
12080 * target.h (struct target_ops) <to_insn_history_range>: Add
12082 * target.c (target_insn_history_range): Add argument.
12083 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
12085 (record_btrace_insn_history_from): Update.
12089 * target.h (struct target_ops) <to_insn_history_from>: Add
12091 * target.c (target_insn_history_from): Add argument.
12092 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
12097 * target.h (struct target_ops) <to_insn_history>: Add argument.
12098 * target.c (target_insn_history): Add argument.
12099 * record-btrace.c (record_btrace_insn_history): Add 'self'
12104 * target.h (struct target_ops) <to_goto_record>: Add argument.
12105 * target.c (target_goto_record): Add argument.
12106 * record-full.c (record_full_goto): Add 'self' argument.
12107 * record-btrace.c (record_btrace_goto): Add 'self' argument.
12111 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
12112 * target.c (target_goto_record_end): Add argument.
12113 * record-full.c (record_full_goto_end): Add 'self' argument.
12114 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
12118 * target.h (struct target_ops) <to_goto_record_begin>: Add
12120 * target.c (target_goto_record_begin): Add argument.
12121 * record-full.c (record_full_goto_begin): Add 'self' argument.
12122 * record-btrace.c (record_btrace_goto_begin): Add 'self'
12127 * target.h (struct target_ops) <to_record_is_replaying>: Add
12129 * target.c (target_record_is_replaying): Add argument.
12130 * record-full.c (record_full_is_replaying): Add 'self' argument.
12131 * record-btrace.c (record_btrace_is_replaying): Add 'self'
12133 (record_btrace_xfer_partial, record_btrace_store_registers)
12134 (record_btrace_prepare_to_store, record_btrace_resume)
12135 (record_btrace_wait, record_btrace_decr_pc_after_break)
12136 (record_btrace_find_new_threads, record_btrace_thread_alive):
12141 * target.h (struct target_ops) <to_delete_record>: Add argument.
12142 * target.c (target_delete_record): Add argument.
12143 * record-full.c (record_full_delete): Add 'self' argument.
12147 * target.h (struct target_ops) <to_save_record>: Add argument.
12148 * target.c (target_save_record): Add argument.
12149 * record-full.c (record_full_save): Add 'self' argument.
12150 (record_full_save): Add 'self' argument.
12154 * target.h (struct target_ops) <to_info_record>: Add argument.
12155 * target.c (target_info_record): Add argument.
12156 * record.c (info_record_command): Add argument.
12157 * record-full.c (record_full_info): Add 'self' argument.
12158 * record-btrace.c (record_btrace_info): Add 'self' argument.
12162 * target.h (struct target_ops) <to_stop_recording>: Add argument.
12163 * target.c (target_stop_recording): Add argument.
12164 * record.c (record_stop): Add argument.
12165 * record-btrace.c (record_btrace_stop_recording): Add 'self'
12170 * target.h (struct target_ops) <to_read_btrace>: Add argument.
12171 * target.c (struct target_ops) <to_read_btrace>: Add argument.
12172 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
12174 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
12175 (_initialize_amd64_linux_nat): Use it.
12176 * i386-linux-nat.c (i386_linux_read_btrace): New function.
12177 (_initialize_i386_linux_nat): Use it.
12181 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
12182 * target.c (target_teardown_btrace): Add argument.
12183 * remote.c (remote_teardown_btrace): Add 'self' argument.
12184 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
12186 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
12191 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
12192 * target.c (target_disable_btrace): Add argument.
12193 * remote.c (remote_disable_btrace): Add 'self' argument.
12194 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
12196 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
12201 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
12202 * target.c (target_enable_btrace): Add argument.
12203 * remote.c (remote_enable_btrace): Add 'self' argument.
12204 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
12206 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
12211 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
12212 (target_can_use_agent): Add argument.
12213 * target.c (update_current_target): Update.
12214 * remote.c (remote_can_use_agent): Add 'self' argument.
12215 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
12219 * target.h (struct target_ops) <to_use_agent>: Add argument.
12220 (target_use_agent): Add argument.
12221 * target.c (update_current_target): Update.
12222 * remote.c (remote_use_agent): Add 'self' argument.
12223 * inf-child.c (inf_child_use_agent): Add 'self' argument.
12227 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
12228 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
12229 (target_traceframe_info): Add argument.
12230 * target.c (update_current_target): Update.
12231 * remote.c (remote_traceframe_info): Add 'self' argument.
12232 * ctf.c (ctf_traceframe_info): Add 'self' argument.
12236 * target.h (target_static_tracepoint_markers_by_strid): Add
12238 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
12240 * target.c (update_current_target): Update.
12241 * remote.c (struct target_ops)
12242 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12243 * linux-nat.c (struct target_ops)
12244 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
12248 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
12250 (target_static_tracepoint_marker_at): Add argument.
12251 * target.c (update_current_target): Update.
12252 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
12257 * target.h (struct target_ops) <to_set_permissions>: Add argument.
12258 (target_set_permissions): Add argument.
12259 * target.c (update_current_target): Update.
12260 * remote.c (remote_set_permissions): Add 'self' argument.
12261 (remote_start_remote): Update.
12265 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
12266 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
12267 (target_get_tib_address): Add argument.
12268 * target.c (update_current_target): Update.
12269 * remote.c (remote_get_tib_address): Add 'self' argument.
12273 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
12274 (target_set_trace_notes): Add argument.
12275 * target.c (update_current_target): Update.
12276 * remote.c (remote_set_trace_notes): Add 'self' argument.
12280 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
12282 (target_set_trace_buffer_size): Add argument.
12283 * target.c (update_current_target): Update.
12284 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
12288 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
12290 (target_set_circular_trace_buffer): Add argument.
12291 * target.c (update_current_target): Update.
12292 * remote.c (remote_set_circular_trace_buffer): Add 'self'
12297 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
12299 (target_set_disconnected_tracing): Add argument.
12300 * target.c (update_current_target): Update.
12301 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
12305 * target.h (struct target_ops)
12306 <to_get_min_fast_tracepoint_insn_len>: Add argument.
12307 (target_get_min_fast_tracepoint_insn_len): Add argument.
12308 * target.c (update_current_target): Update.
12309 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
12314 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
12316 (target_get_raw_trace_data): Add argument.
12317 * target.c (update_current_target): Update.
12318 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
12322 * target.h (struct target_ops) <to_upload_trace_state_variables>:
12324 (target_upload_trace_state_variables): Add argument.
12325 * target.c (update_current_target): Update.
12326 * remote.c (remote_upload_trace_state_variables): Add 'self'
12328 (remote_start_remote): Update.
12332 * target.h (struct target_ops) <to_upload_tracepoints>: Add
12334 (target_upload_tracepoints): Add argument.
12335 * target.c (update_current_target): Update.
12336 * remote.c (remote_upload_tracepoints): Add 'self' argument.
12337 (remote_start_remote): Update.
12341 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
12342 (target_save_trace_data): Add argument.
12343 * target.c (update_current_target): Update.
12344 * remote.c (remote_save_trace_data): Add 'self' argument.
12348 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
12350 * target.h (struct target_ops)
12351 <to_get_trace_state_variable_value>: Add argument.
12352 (target_get_trace_state_variable_value): Add argument.
12353 * target.c (update_current_target): Update.
12354 * remote.c (remote_get_trace_state_variable_value): Add 'self'
12356 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
12360 * tracepoint.c (tfile_trace_find): Add 'self' argument.
12361 * target.h (struct target_ops) <to_trace_find>: Add argument.
12362 (target_trace_find): Add argument.
12363 * target.c (update_current_target): Update.
12364 * remote.c (remote_trace_find): Add 'self' argument.
12365 * ctf.c (ctf_trace_find): Add 'self' argument.
12369 * target.h (struct target_ops) <to_trace_stop>: Add argument.
12370 (target_trace_stop): Add argument.
12371 * target.c (update_current_target): Update.
12372 * remote.c (remote_trace_stop): Add 'self' argument.
12376 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
12377 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
12379 (target_get_tracepoint_status): Add argument.
12380 * target.c (update_current_target): Update.
12381 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
12385 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
12386 * target.h (struct target_ops) <to_get_trace_status>: Add
12388 (target_get_trace_status): Add argument.
12389 * target.c (update_current_target): Update.
12390 * remote.c (remote_get_trace_status): Add 'self' argument.
12391 (remote_start_remote, remote_can_download_tracepoint): Update.
12392 * ctf.c (ctf_get_trace_status): Add 'self' argument.
12396 * target.h (struct target_ops) <to_trace_start>: Add argument.
12397 (target_trace_start): Add argument.
12398 * target.c (update_current_target): Update.
12399 * remote.c (remote_trace_start): Add 'self' argument.
12403 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
12405 (target_trace_set_readonly_regions): Add argument.
12406 * target.c (update_current_target): Update.
12407 * remote.c (remote_trace_set_readonly_regions): Add 'self'
12412 * target.h (struct target_ops) <to_disable_tracepoint>: Add
12414 (target_disable_tracepoint): Add argument.
12415 * target.c (update_current_target): Update.
12416 * remote.c (remote_disable_tracepoint): Add 'self' argument.
12420 * target.h (struct target_ops) <to_enable_tracepoint>: Add
12422 (target_enable_tracepoint): Add argument.
12423 * target.c (update_current_target): Update.
12424 * remote.c (remote_enable_tracepoint): Add 'self' argument.
12428 * target.h (struct target_ops) <to_download_trace_state_variable>:
12430 (target_download_trace_state_variable): Add argument.
12431 * target.c (update_current_target): Update.
12432 * remote.c (remote_download_trace_state_variable): Add 'self'
12437 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
12439 (target_can_download_tracepoint): Add argument.
12440 * target.c (update_current_target): Update.
12441 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
12445 * target.h (struct target_ops) <to_download_tracepoint>: Add
12447 (target_download_tracepoint): Add argument.
12448 * target.c (update_current_target): Update.
12449 * remote.c (remote_download_tracepoint): Add 'self' argument.
12453 * target.h (struct target_ops) <to_trace_init>: Add argument.
12454 (target_trace_init): Add argument.
12455 * target.c (update_current_target): Update.
12456 * remote.c (remote_trace_init): Add 'self' argument.
12460 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
12461 * target.c (target_fileio_readlink): Add argument.
12462 * remote.c (remote_hostio_readlink): Add 'self' argument.
12463 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
12467 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
12468 * target.c (target_fileio_unlink): Add argument.
12469 * remote.c (remote_hostio_unlink): Add 'self' argument.
12470 (remote_file_delete): Update.
12471 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
12475 * target.h (struct target_ops) <to_fileio_close>: Add argument.
12476 * target.c (target_fileio_close): Add argument.
12477 * remote.c (remote_hostio_close): Add 'self' argument.
12478 (remote_hostio_close_cleanup): Update.
12479 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
12481 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
12485 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
12486 * target.c (target_fileio_pread): Add argument.
12487 * remote.c (remote_hostio_pread): Add 'self' argument.
12488 (remote_bfd_iovec_pread, remote_file_get): Update.
12489 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
12493 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
12494 * target.c (target_fileio_pwrite): Add argument.
12495 * remote.c (remote_hostio_pwrite): Add 'self' argument.
12496 (remote_file_put): Update.
12497 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
12501 * target.h (struct target_ops) <to_fileio_open>: Add argument.
12502 * target.c (target_fileio_open): Add argument.
12503 * remote.c (remote_hostio_open): Add 'self' argument.
12504 (remote_bfd_iovec_open): Add 'self' argument.
12505 (remote_file_put): Add 'self' argument.
12506 (remote_file_get): Add 'self' argument.
12507 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
12511 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
12513 (target_can_run_breakpoint_commands): Add argument.
12514 * target.c (update_current_target): Update.
12515 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
12517 (remote_insert_breakpoint): Add 'self' argument.
12518 (remote_insert_hw_breakpoint): Add 'self' argument.
12519 (remote_can_run_breakpoint_commands): Add 'self' argument.
12523 * target.h (struct target_ops)
12524 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
12525 (target_supports_evaluation_of_breakpoint_conditions): Add
12527 * target.c (update_current_target): Update.
12528 * remote.c (remote_supports_cond_breakpoints): Add 'self'
12530 (remote_insert_breakpoint): Add 'self' argument.
12531 (remote_insert_hw_breakpoint): Add 'self' argument.
12532 (remote_supports_cond_breakpoints): Add 'self' argument.
12536 * target.h (struct target_ops) <to_supports_string_tracing>: Add
12538 (target_supports_string_tracing): Add argument.
12539 * target.c (update_current_target): Update.
12540 * remote.c (remote_supports_string_tracing): Add 'self' argument.
12544 * target.h (struct target_ops)
12545 <to_supports_disable_randomization>: Add argument.
12546 * target.c (find_default_supports_disable_randomization): Add
12548 (target_supports_disable_randomization): Add argument.
12549 (find_default_supports_disable_randomization): Add 'self'
12551 * remote.c (extended_remote_supports_disable_randomization): Add
12553 (remote_supports_disable_randomization): Add 'self' argument.
12554 (extended_remote_create_inferior): Update.
12555 * linux-nat.c (linux_nat_supports_disable_randomization): Add
12560 * target.h (struct target_ops)
12561 <to_supports_enable_disable_tracepoint>: Add argument.
12562 (target_supports_enable_disable_tracepoint): Add argument.
12563 * target.c (update_current_target): Update.
12564 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
12569 * target.h (struct target_ops) <to_supports_multi_process>: Add
12571 (target_supports_multi_process): Add argument.
12572 * target.c (update_current_target): Update.
12573 * remote.c (remote_supports_multi_process): Add 'self' argument.
12574 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
12576 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
12581 * target.h (struct target_ops) <to_execution_direction>: Add
12583 (target_execution_direction): Add argument.
12584 * target.c (default_execution_direction): Add 'self' argument.
12585 * record-full.c (record_full_execution_direction): Add 'self'
12590 * target.h (struct target_ops) <to_can_execute_reverse>: Add
12592 (target_can_execute_reverse): Add argument.
12593 * remote.c (remote_can_execute_reverse): Add 'self' argument.
12594 * record-full.c (record_full_can_execute_reverse): Add 'self'
12596 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
12601 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
12602 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
12604 (target_get_ada_task_ptid): Add argument.
12605 * target.c (update_current_target): Update.
12606 (default_get_ada_task_ptid): Add 'self' argument.
12607 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
12608 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
12609 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
12611 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
12613 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
12615 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
12617 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
12618 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
12623 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
12624 (target_goto_bookmark): Add argument.
12625 * target.c (dummy_goto_bookmark): Add 'self' argument.
12626 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
12630 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
12631 (target_get_bookmark): Add argument.
12632 * target.c (dummy_get_bookmark): Add 'self' argument.
12633 * record-full.c (record_full_get_bookmark): Add 'self' argument.
12637 * target.h (struct target_ops) <to_make_corefile_notes>: Add
12639 (target_make_corefile_notes): Add argument.
12640 * target.c (dummy_make_corefile_notes): Add 'self' argument.
12641 * procfs.c (procfs_make_note_section): Add 'self' argument.
12642 (procfs_make_note_section): Add 'self' argument.
12643 (procfs_make_note_section): Add 'self' argument.
12644 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
12646 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
12647 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
12648 * exec.c (exec_make_note_section): Add 'self' argument.
12649 (exec_make_note_section): Add 'self' argument.
12653 * target.h (struct target_ops) <to_find_memory_regions>: Add
12655 (target_find_memory_regions): Add argument.
12656 * target.c (dummy_find_memory_regions): Add 'self' argument.
12657 * procfs.c (proc_find_memory_regions): Add 'self' argument.
12658 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
12659 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
12660 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
12661 * exec. (exec_do_find_memory_regions): New global.
12662 (exec_set_find_memory_regions): Rewrite.
12663 (exec_find_memory_regions): New function.
12664 (init_exec_ops): Use exec_find_memory_regions.
12668 * target.h (struct target_ops) <to_supports_non_stop>: Add
12670 * target.c (find_default_supports_non_stop): Add argument.
12671 (target_supports_non_stop): Add argument.
12672 (find_default_supports_non_stop): Add 'self' argument.
12673 * remote.c (remote_supports_non_stop): Add 'self' argument.
12674 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
12678 * target.h (struct target_ops) <to_log_command>: Add argument.
12679 (target_log_command): Add argument.
12680 * serial.h (serial_log_command): Add 'self' argument.
12681 * serial.c (serial_log_command): Add 'self' argument.
12685 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
12686 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
12688 (target_pid_to_exec_file): Add argument.
12689 * target.c (debug_to_pid_to_exec_file): Add argument.
12690 (update_current_target): Update.
12691 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
12692 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
12693 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
12694 (linux_handle_extended_wait): Update.
12695 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
12696 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
12697 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
12698 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
12702 * target.h (struct target_ops) <to_rcmd>: Add argument.
12703 (target_rcmd): Add argument.
12704 * target.c (debug_to_rcmd): Add argument.
12705 (update_current_target, do_monitor_command): Update.
12706 * remote.c (remote_rcmd): Add 'self' argument.
12707 * monitor.c (monitor_rcmd): Add 'self' argument.
12711 * windows-nat.c (windows_stop): Add 'self' argument.
12712 * target.h (struct target_ops) <to_stop>: Add argument.
12713 * target.c (target_stop): Add argument.
12714 (debug_to_stop): Add argument.
12715 (update_current_target): Update.
12716 * remote.c (remote_stop): Add 'self' argument.
12717 * remote-sim.c (gdbsim_stop): Add 'self' argument.
12718 (gdbsim_cntrl_c): Update.
12719 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
12720 * procfs.c (procfs_stop): Add 'self' argument.
12721 * nto-procfs.c (procfs_stop): Add 'self' argument.
12722 * monitor.c (monitor_stop): Add 'self' argument.
12723 (monitor_open): Update.
12724 * linux-nat.c (linux_nat_stop): Add argument.
12725 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
12726 * gnu-nat.c (gnu_stop): Add 'self' argument.
12727 * darwin-nat.c (darwin_stop): Add 'self' argument.
12731 * target.h (struct target_ops) <to_thread_name>: Add argument.
12732 * target.c (target_thread_name): Add argument.
12733 (update_current_target): Update.
12734 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
12738 * target.h (struct target_ops) <to_extra_thread_info>: Add
12740 (target_extra_thread_info): Add argument.
12741 * target.c (update_current_target): Update.
12742 * remote.c (remote_threads_extra_info): Add 'self' argument.
12743 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
12745 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
12746 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
12747 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
12749 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
12751 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
12753 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
12758 * target.h (struct target_ops) <to_program_signals>: Add argument.
12759 * target.c (target_program_signals): Add argument.
12760 * remote.c (remote_program_signals): Add 'self' argument.
12764 * target.h (struct target_ops) <to_pass_signals>: Add argument.
12765 * target.c (target_pass_signals): Add argument.
12766 * remote.c (remote_pass_signals): Add 'self' argument.
12767 (remote_start_remote): Update.
12768 * procfs.c (procfs_pass_signals): Add 'self' argument.
12769 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
12770 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
12771 (linux_nat_create_inferior, linux_nat_attach): Update.
12775 * windows-nat.c (windows_can_run): Add 'self' argument.
12776 * target.h (struct target_ops) <to_can_run>: Add argument.
12777 (target_can_run): Add argument.
12778 * target.c (debug_to_can_run): Add argument.
12779 (update_current_target): Update.
12780 * nto-procfs.c (procfs_can_run): Add 'self' argument.
12781 * inf-child.c (inf_child_can_run): Add 'self' argument.
12782 * go32-nat.c (go32_can_run): Add 'self' argument.
12786 * target.h (struct target_ops) <to_has_exited>: Add argument.
12787 (target_has_exited): Add argument.
12788 * target.c (debug_to_has_exited): Add argument.
12789 (update_current_target): Update.
12793 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
12795 (target_set_syscall_catchpoint): Add argument.
12796 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
12798 * target.c (update_current_target): Update.
12802 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
12804 (target_remove_exec_catchpoint): Add argument.
12805 * target.c (debug_to_remove_exec_catchpoint): Add argument.
12806 (update_current_target): Update.
12807 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
12812 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
12814 (target_insert_exec_catchpoint): Add argument.
12815 * target.c (debug_to_insert_exec_catchpoint): Add argument.
12816 (update_current_target): Update.
12817 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
12822 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
12824 (target_remove_vfork_catchpoint): Add argument.
12825 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
12826 (update_current_target): Update.
12827 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
12832 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
12834 (target_insert_vfork_catchpoint): Add argument.
12835 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
12836 (update_current_target): Update.
12837 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
12842 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
12844 (target_remove_fork_catchpoint): Add argument.
12845 * target.c (debug_to_remove_fork_catchpoint): Add argument.
12846 (update_current_target): Update.
12847 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
12852 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
12854 (target_insert_fork_catchpoint): Add argument.
12855 * target.c (debug_to_insert_fork_catchpoint): Add argument.
12856 (update_current_target): Update.
12857 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
12862 * target.h (struct target_ops) <to_post_startup_inferior>: Add
12864 (target_post_startup_inferior): Add argument.
12865 * target.c (debug_to_post_startup_inferior): Add argument.
12866 (update_current_target): Update.
12867 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
12869 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
12871 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
12873 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
12875 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
12877 (super_post_startup_inferior): Likewise.
12878 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
12880 (super_post_startup_inferior): Likewise.
12881 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
12882 Add 'self' argument.
12883 (super_post_startup_inferior): Likewise.
12887 * target.h (struct target_ops) <to_load>: Add argument.
12888 * target.c (target_load): Add argument.
12889 (debug_to_load): Add argument.
12890 (update_current_target): Update.
12891 * remote.c (remote_load): Add 'self' argument.
12892 * remote-sim.c (gdbsim_load): Add 'self' argument.
12893 * remote-mips.c (mips_load): Add 'self' argument.
12894 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
12895 * monitor.c (monitor_load): Add 'self' argument.
12896 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
12900 * target.h (struct target_ops) <to_terminal_info>: Add argument.
12901 (target_terminal_info): Add argument.
12902 * target.c (debug_to_terminal_info): Add argument.
12903 (default_terminal_info): Likewise.
12904 * inflow.c (child_terminal_info): Add 'self' argument.
12905 * inferior.h (child_terminal_info): Add 'self' argument.
12906 * go32-nat.c (go32_terminal_info): Add 'self' argument.
12910 * target.h (struct target_ops) <to_terminal_save_ours>: Add
12912 (target_terminal_save_ours): Add argument.
12913 * target.c (debug_to_terminal_save_ours): Add argument.
12914 (update_current_target): Update.
12915 * inflow.c (terminal_save_ours): Add 'self' argument.
12916 * inferior.h (terminal_save_ours): Add 'self' argument.
12920 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
12921 (target_terminal_ours): Add argument.
12922 * target.c (debug_to_terminal_ours): Add argument.
12923 (update_current_target): Update.
12924 * remote.c (remote_terminal_ours): Add 'self' argument.
12925 (remote_close): Update.
12926 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
12927 * inflow.c (terminal_ours): Add 'self' argument.
12928 * inferior.h (terminal_ours): Add 'self' argument.
12929 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12934 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
12936 (target_terminal_ours_for_output): Add argument.
12937 * target.c (debug_to_terminal_ours_for_output): Add argument.
12938 (update_current_target): Update.
12939 * inflow.c (terminal_ours_for_output): Add 'self' argument.
12940 * inferior.h (terminal_ours_for_output): Add 'self' argument.
12941 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
12945 * target.h (struct target_ops) <to_terminal_inferior>: Add
12947 * target.c (target_terminal_inferior): Add argument.
12948 (update_current_target): Update.
12949 * remote.c (remote_terminal_inferior): Add 'self' argument.
12950 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
12951 * inflow.c (terminal_inferior): Add 'self' argument.
12952 * inferior.h (terminal_inferior): Add 'self' argument.
12953 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
12954 (go32_terminal_inferior): Add 'self' argument.
12958 * target.h (struct target_ops) <to_terminal_init>: Add argument.
12959 (target_terminal_init): Add argument.
12960 * target.c (debug_to_terminal_init): Add argument.
12961 (update_current_target): Update.
12962 * inflow.c (terminal_init_inferior): Add 'self' argument.
12963 * inferior.h (terminal_init_inferior): Add 'self' argument.
12964 * go32-nat.c (go32_terminal_init): Add 'self' argument.
12965 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
12969 * target.h (struct target_ops)
12970 <to_can_accel_watchpoint_condition>: Add argument.
12971 (target_can_accel_watchpoint_condition): Add argument.
12972 * target.c (debug_to_can_accel_watchpoint_condition): Add
12974 (update_current_target): Update.
12975 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
12980 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
12982 (target_region_ok_for_hw_watchpoint): Add argument.
12983 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
12984 (default_region_ok_for_hw_watchpoint): Add argument.
12985 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
12986 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
12988 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
12990 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
12992 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
12994 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
12996 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
12998 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
12999 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
13001 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
13002 Add 'self' argument.
13006 * target.h (struct target_ops) <to_insert_watchpoint>: Add
13008 (target_insert_watchpoint): Add argument.
13009 * target.c (debug_to_insert_watchpoint): Add argument.
13010 (update_current_target): Update.
13011 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
13012 * remote.c (remote_insert_watchpoint): Add 'self' argument.
13013 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
13014 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
13015 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
13016 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
13018 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
13019 (procfs_insert_hw_watchpoint): Add 'self' argument.
13020 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
13022 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
13024 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
13026 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
13027 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
13029 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
13034 * target.h (struct target_ops) <to_remove_watchpoint>: Add
13036 (target_remove_watchpoint): Add argument.
13037 * target.c (debug_to_remove_watchpoint): Add argument.
13038 (update_current_target): Update.
13039 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
13040 * remote.c (remote_remove_watchpoint): Add 'self' argument.
13041 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
13042 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
13043 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
13044 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
13046 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
13047 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
13049 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
13051 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
13053 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
13054 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
13056 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
13061 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
13063 (target_remove_hw_breakpoint): Add argument.
13064 * target.c (debug_to_remove_hw_breakpoint): Add argument.
13065 (update_current_target): Update.
13066 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
13067 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
13069 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
13070 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
13072 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
13077 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
13079 (target_insert_hw_breakpoint): Add argument.
13080 * target.c (debug_to_insert_hw_breakpoint): Add argument.
13081 (update_current_target): Update.
13082 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
13083 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
13085 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
13086 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
13087 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
13089 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
13094 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
13096 (target_can_use_hardware_watchpoint): Add argument.
13097 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
13098 (update_current_target): Update.
13099 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
13101 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
13103 * remote.c (remote_check_watch_resources): Add 'self' argument.
13104 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
13105 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
13107 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
13108 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
13110 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
13112 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
13114 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
13116 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
13118 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
13120 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
13121 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
13123 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
13128 * target.h (struct target_ops) <to_post_attach>: Add argument.
13129 (target_post_attach): Add argument.
13130 * target.c (debug_to_post_attach): Add argument.
13131 (update_current_target): Update.
13132 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
13133 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
13134 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
13135 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
13136 * inf-child.c (inf_child_post_attach): Add 'self' argument.
13140 * windows-nat.c (windows_close): Add 'self' argument.
13141 * tracepoint.c (tfile_close): Add 'self' argument.
13142 * target.h (struct target_ops) <to_close>: Add argument.
13143 * target.c (target_close): Add argument.
13144 (update_current_target): Update.
13145 * remote.c (remote_close): Add 'self' argument.
13146 * remote-sim.c (gdbsim_close): Add 'self' argument.
13147 * remote-mips.c (mips_close): Add 'self' argument.
13148 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
13149 * record-full.c (record_full_close): Add 'self' argument.
13150 * record-btrace.c (record_btrace_close): Add 'self' argument.
13151 * monitor.h (monitor_close): Add 'self' argument.
13152 * monitor.c (monitor_close): Add 'self' argument.
13153 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
13154 * linux-nat.c (linux_nat_close): Add argument.
13155 * go32-nat.c (go32_close): Add 'self' argument.
13156 * exec.c (exec_close_1): Add 'self' argument.
13157 * ctf.c (ctf_close): Add 'self' argument.
13158 * corelow.c (core_close): Add 'self' argument.
13159 (core_close_cleanup): Update.
13160 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
13161 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
13165 * remote.c (remote_load): New function.
13166 (init_remote_ops): Use it.
13170 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
13172 * common/linux-btrace.h (linux_supports_btrace): Update.
13173 * remote.c (remote_supports_btrace): Add "self" argument.
13174 * target-delegates.c: Rebuild.
13175 * target.c (target_supports_btrace): Remove.
13176 * target.h (struct target_ops) <to_supports_btrace>: Add
13177 target_ops argument.
13178 (target_supports_btrace): New define.
13182 * record-full.c (record_full_beneath_to_resume_ops)
13183 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
13184 (record_full_beneath_to_wait)
13185 (record_full_beneath_to_store_registers_ops)
13186 (record_full_beneath_to_store_registers)
13187 (record_full_beneath_to_xfer_partial_ops)
13188 (record_full_beneath_to_xfer_partial)
13189 (record_full_beneath_to_insert_breakpoint_ops)
13190 (record_full_beneath_to_insert_breakpoint)
13191 (record_full_beneath_to_remove_breakpoint_ops)
13192 (record_full_beneath_to_remove_breakpoint)
13193 (record_full_beneath_to_stopped_by_watchpoint)
13194 (record_full_beneath_to_stopped_data_address)
13195 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
13196 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
13197 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
13198 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
13199 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
13200 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
13201 (tmp_to_stopped_data_address, tmp_to_async): Remove.
13202 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
13203 (record_full_resume, record_full_wait_1)
13204 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
13205 (record_full_store_registers, record_full_xfer_partial)
13206 (record_full_insert_breakpoint, record_full_remove_breakpoint)
13207 (record_full_async, record_full_core_xfer_partial): Use target
13209 * target-delegates.c: Rebuild.
13210 * target.c (current_xfer_partial): Remove.
13211 (update_current_target): Do not INHERIT or de_fault
13212 to_insert_breakpoint, to_remove_breakpoint,
13213 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
13214 to_is_async_p, to_async. Do not set to_xfer_partial field.
13215 (default_xfer_partial): Simplify.
13216 (current_xfer_partial): Remove.
13217 (target_wait, target_resume): Simplify.
13218 (find_default_can_async_p, find_default_is_async_p): Update.
13219 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
13220 to_xfer_partial, to_stopped_by_watchpoint,
13221 to_stopped_data_address.
13222 (target_store_registers): Simplify.
13223 (forward_target_remove_breakpoint)
13224 (forward_target_insert_breakpoint): Remove.
13225 (target_remove_breakpoint, target_insert_breakpoint)
13226 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
13227 * target.h (struct target_ops) <to_resume, to_wait,
13228 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
13229 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
13230 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
13232 (forward_target_remove_breakpoint)
13233 (forward_target_insert_breakpoint): Remove.
13234 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
13236 (record_btrace_insert_breakpoint): Delegate directly.
13241 * target-delegates.c: New file.
13242 * target.c: Include target-delegates.c.
13243 (init_dummy_target): Call install_dummy_methods.
13244 (complete_target_initialization): Call install_delegators.
13245 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
13246 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
13247 * make-target-delegates: New file.
13251 * record.c (find_record_target): Use find_target_at.
13252 * target.c (find_target_at): New function.
13253 * target.h (find_target_at): Declare.
13257 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
13258 Add 'ops' argument.
13259 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
13261 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
13262 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
13264 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
13266 * linux-nat.c (save_sigtrap): Update.
13267 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
13268 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
13269 (linux_nat_close): Update.
13270 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
13272 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
13274 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
13275 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
13276 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
13277 (tmp_to_async): Add 'ops' argument.
13278 (record_full_stopped_by_watchpoint, record_full_async)
13279 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
13281 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
13282 (m32r_stopped_by_watchpoint): Add 'ops' argument.
13283 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
13284 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
13285 (remote_is_async_p, remote_async): Add 'ops' argument.
13286 (remote_stopped_data_address): Update.
13287 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
13288 * target.c (update_current_target)
13289 (find_default_can_async_p, find_default_is_async_p): Update.
13290 (init_dummy_target): Update.
13291 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
13292 * target.h (struct target_ops) <to_stopped_by_watchpoint,
13293 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
13294 (target_can_async_p, target_is_async_p, target_async)
13295 (target_stopped_by_watchpoint): Update.
13300 * gdbarch.sh: Remove startup_gdbarch.
13301 * gdbarch.c: Regenerated.
13302 * gdbarch.h: Likewise.
13306 * rl78-tdep.c (rl78_g10_register_name): New function.
13307 (rl78_return_value): Add g10 support.
13308 (rl78_gdbarch_init): Register rl78_g10_register_name for the
13313 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
13314 (SUBDIR_GUILE_SRCS): Ditto.
13315 (scm-gsmob.o): Ditto.
13319 * gnu-nat.c (ILL_RPC): Declare defined function.
13323 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
13324 mach_msg_type_number_t.
13325 (gnu_write_inferior): Likewise.
13329 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
13331 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
13332 (inf_validate_procs, inf_signal): Likewise.
13333 (S_exception_raise_request): Likewise.
13334 (do_mach_notify_dead_name): Likewise.
13335 (steal_exc_port): Likewise.
13336 (gnu_read_inferior): Change 'copy_count''s type to
13337 mach_msg_type_number_t.
13338 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
13343 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
13344 flag. Adjust all users; in particular...
13345 (gnu_wait): ..., don't decrement its value in here...
13346 (gnu_create_inferior): ..., and instead set the flag in here,
13347 around the startup_inferior call, and call that one with
13348 START_INFERIOR_TRAPS_EXPECTED.
13350 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
13351 (ILL_RPC): ... new macro.
13352 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
13353 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
13354 (do_mach_notify_send_once, S_proc_setmsgport_reply)
13355 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
13356 functions with ILL_RPC macro.
13357 (S_proc_pid2task_reply, S_proc_task2pid_reply)
13358 (S_proc_task2proc_reply, S_proc_proc2task_reply)
13359 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
13360 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
13361 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
13362 (S_proc_getlogin_reply, S_proc_getsid_reply)
13363 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
13364 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
13365 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
13366 (S_proc_getnports_reply, S_proc_is_important_reply)
13367 (S_proc_get_code_reply): New stub functions, generated with
13370 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
13371 collected the type check structures.
13373 * reply_mig_hack.awk: Don't expect to see the auto keyword.
13377 * target.c (target_write_partial): Fix result type.
13381 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
13382 the proper offsets to access fpregset_t.
13386 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
13387 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
13388 * h8300-tdep.c (setmachinelist): Remove global.
13389 * hppa-tdep.c (hppa_sigtramp): Remove global.
13390 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
13391 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
13392 * ravenscar-thread.c (update_target_observer): Remove global.
13393 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
13397 * common/rsp-low.c: Update comments.
13398 * common/rsp-low.h: Update comments.
13402 * common/rsp-low.c (convert_ascii_to_int): Remove.
13403 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
13407 * common/rsp-low.h (unhexify): Don't declare.
13408 * common/rsp-low.c (unhexify): Remove.
13412 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
13413 * common/rsp-low.c (convert_int_to_ascii): Remove.
13417 * common/rsp-low.h (hexify): Don't declare.
13418 * common/rsp-low.c (hexify): Remove.
13422 * common/rsp-low.c (hexify): Never take strlen of argument.
13426 * common/rsp-low.c (bin2hex): Never take strlen of argument.
13427 * remote.c (extended_remote_run, remote_rcmd)
13428 (remote_download_trace_state_variable, remote_save_trace_data)
13429 (remote_set_trace_notes): Update.
13430 * tracepoint.c (encode_source_string, tfile_write_status)
13431 (tfile_write_uploaded_tsv): Update.
13435 * tracepoint.c: Include rsp-low.h.
13436 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
13437 * remote.c: Include rsp-low.h.
13438 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
13439 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
13440 (remote_unescape_input): Move to common/rsp-low.c.
13441 * common/rsp-low.h: New file.
13442 * common/rsp-low.c: New file.
13443 * Makefile.in (SFILES): Add common/rsp-low.c.
13444 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
13445 (COMMON_OBS): Add rsp-low.o.
13446 (rsp-low.o): New target.
13450 * utils.h: Include print-utils.h.
13451 (host_address_to_string, plongest, pulongest, phex, phex_nz)
13452 (int_string, core_addr_to_string, core_addr_to_string_nz)
13453 (hex_string, hex_string_custom): Don't declare.
13454 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
13455 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
13456 (hex_string_custom, int_string, core_addr_to_string)
13457 (core_addr_to_string_nz, host_address_to_string): Move to
13458 common/print-utils.c.
13459 * common/print-utils.h: New file.
13460 * common/print-utils.c: New file
13461 * Makefile.in (SFILES): Add common/print-utils.c.
13462 (HFILES_NO_SRCDIR): Add common/print-utils.h.
13463 (COMMON_OBS): Add print-utils.o.
13464 (print-utils.o): New target.
13468 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
13472 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
13476 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
13477 if a PT_IO ptrace request returns sucessfully but indicates that 0
13478 bytes were transferred.
13483 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
13484 TYPE_INSTANCE_FLAG_CODE_SPACE.
13488 * h8300-tdep.c (pseudo_from_raw_register)
13489 (raw_from_pseudo_register): New functions.
13490 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
13495 * h8300-tdep.c (h8300_register_sim_regno): New function.
13496 (h8300_gdbarch_init): Install h8300_register_sim_regno as
13497 gdbarch_register_sim_regno hook.
13501 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
13505 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
13509 * obsd-tdep.h (obsd_init_abi): New prototype.
13510 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
13511 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
13512 (obsd_init_abi): New functions.
13513 * i386obsd-tdep.c: Include "obsd-tdep.h".
13514 (i386obsd_init_abi): Call obsd_init_abi.
13515 * amd64obsd-tdep.c: Include "obsd-tdep.h".
13516 (amd64obsd_init_abi): Call obsd_init_abi.
13517 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
13518 obsd-tdep.c to gdb_target_obs.
13522 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
13523 double float arguments to 16-byte in the argument slots.
13527 * configure.ac: Don't crash if pkg-config is not found and guile
13528 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
13530 * configure: Regenerate.
13534 * aix-thread.c (aix_thread_xfer_partial): Update comments.
13535 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
13536 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
13537 * gnu-nat.c (gnu_xfer_memory): Likewise.
13538 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13539 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13540 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13541 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13545 * target.h (enum target_xfer_error): Rename to ...
13546 (enum target_xfer_status): ... it. New. All users updated.
13547 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
13549 (TARGET_XFER_STATUS_ERROR_P): New macro.
13550 (target_xfer_error_to_string): Remove declaration.
13551 (target_xfer_status_to_string): Declare.
13552 (target_xfer_partial_ftype): Adjust it.
13553 (struct target_ops) <to_xfer_partial>: Return
13554 target_xfer_status. Add argument xfered_len. Update
13556 * target.c (target_xfer_error_to_string): Rename to ...
13557 (target_xfer_status_to_string): ... it. New. All callers
13559 (target_read_live_memory): Likewise. Call target_xfer_partial
13560 instead of target_read.
13561 (memory_xfer_live_readonly_partial): Return
13562 target_xfer_status. Add argument xfered_len.
13563 (raw_memory_xfer_partial): Likewise.
13564 (memory_xfer_partial_1): Likewise.
13565 (memory_xfer_partial): Likewise.
13566 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
13567 properly. Update debug message.
13568 (default_xfer_partial, current_xfer_partial): Likewise.
13569 (target_write_partial): Likewise.
13570 (target_read_partial): Likewise. All callers updated.
13571 (read_whatever_is_readable): Likewise.
13572 (target_write_with_progress): Likewise.
13573 (target_read_alloc_1): Likewise.
13575 * aix-thread.c (aix_thread_xfer_partial): Likewise.
13576 * auxv.c (procfs_xfer_auxv): Likewise.
13577 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
13578 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13579 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13580 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
13581 * corefile.c (read_memory): Adjust.
13582 * corelow.c (core_xfer_partial): Likewise.
13583 * ctf.c (ctf_xfer_partial): Likewise.
13584 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
13586 (darwin_xfer_partial): Likewise.
13587 * exec.c (section_table_xfer_memory_partial): Likewise. All
13589 (exec_xfer_partial): Likewise.
13590 * exec.h (section_table_xfer_memory_partial): Update
13592 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
13594 (gnu_xfer_partial): Likewise.
13595 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
13596 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
13597 (ia64_hpux_xfer_solib_got): Likewise.
13598 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
13599 type of 'partial_len' to ULONGEST.
13600 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13601 * linux-nat.c (linux_xfer_siginfo ): Likewise.
13602 (linux_nat_xfer_partial): Likewise.
13603 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
13604 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
13605 * monitor.c (monitor_xfer_memory): Likewise.
13606 (monitor_xfer_partial): Likewise.
13607 * procfs.c (procfs_xfer_partial): Likewise.
13608 * record-btrace.c (record_btrace_xfer_partial): Likewise.
13609 * record-full.c (record_full_xfer_partial): Likewise.
13610 (record_full_core_xfer_partial): Likewise.
13611 * remote-sim.c (gdbsim_xfer_memory): Likewise.
13612 (gdbsim_xfer_partial): Likewise.
13613 * remote.c (remote_write_bytes_aux): Likewise. All callers
13615 (remote_write_bytes, remote_read_bytes): Likewise. All
13617 (remote_flash_erase): Likewise. All callers updated.
13618 (remote_write_qxfer): Likewise. All callers updated.
13619 (remote_read_qxfer): Likewise. All callers updated.
13620 (remote_xfer_partial): Likewise.
13621 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13622 (rs6000_xfer_shared_libraries): Likewise.
13623 * sol-thread.c (sol_thread_xfer_partial): Likewise.
13624 (sol_thread_xfer_partial): Likewise.
13625 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13626 (sparc_xfer_partial): Likewise.
13627 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
13629 (spu_xfer_partial): Likewise.
13630 * spu-multiarch.c (spu_xfer_partial): Likewise.
13631 * tracepoint.c (tfile_xfer_partial): Likewise.
13632 * windows-nat.c (windows_xfer_memory): Likewise.
13633 (windows_xfer_shared_libraries): Likewise.
13634 (windows_xfer_partial): Likewise.
13635 * valprint.c: Replace 'target_xfer_error' with
13636 'target_xfer_status' in comments.
13641 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
13645 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
13646 function parameters.
13650 * elfread.c (elf_rel_plt_read): Look for a .got section if
13651 looking up .got.plt fails.
13652 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
13653 on address passed to elf_gnu_ifunc_record_cache.
13654 (elf_gnu_ifunc_resolve_addr): Likewise.
13655 (elf_gnu_ifunc_resolver_return_stop): Likewise.
13659 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
13660 (X_RETTURN): New macro.
13661 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
13663 * sparc64-tdep.c (sparc64_init_abi): Hook
13664 sparc_in_function_epilogue_p.
13668 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13669 Rename name_matcher to symbol_matcher.
13673 * symfile-debug.c (debug_qf_expand_symtabs_matching):
13674 Use expand_symtabs_file_matcher_ftype and
13675 expand_symtabs_symbol_matcher_ftype.
13679 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
13680 (struct ada_symbol_cache): New.
13681 (ada_free_symbol_cache): Forward declare.
13682 (struct ada_pspace_data): New.
13683 (ada_pspace_data_handle): New static global.
13684 (get_ada_pspace_data, ada_pspace_data_cleanup)
13685 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
13686 (cache_space, cache): Delete, now folded inside struct
13688 (ada_get_symbol_cache): New function.
13689 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
13691 (_initialize_ada_language): Remove initialization of cache_space.
13692 Move call to observer_attach_inferior_exit up, grouping it
13693 with the other observer registrations inside this function.
13694 Rename command to be more general. Add call to
13695 register_program_space_data_with_cleanup.
13699 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
13700 ada_new_objfile_observer.
13701 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
13702 (_initialize_tasks): Update uses of ada_new_objfile_observer
13703 and ada_tasks_normal_stop_observer.
13707 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
13708 returned by the 'Length attribute to integer.
13712 * ada-lang.c (_initialize_ada_language): Initialize
13713 cache_space obstack.
13717 * ada-lang.c (HASH_SIZE): New macro.
13718 (struct cache_entry): New type.
13719 (cache_space, cache): New static globals.
13720 (ada_clear_symbol_cache, find_entry): New functions.
13721 (lookup_cached_symbol, cache_symbol): Implement.
13722 (ada_new_objfile_observer, ada_free_objfile_observer): New.
13723 (_initialize_ada_language): Attach ada_new_objfile_observer
13724 and ada_free_objfile_observer.
13728 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
13729 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
13730 struct block * parameter.
13731 (ada_lookup_symbol_list_worker): Constify local variable "block".
13732 Remove cast which is no longer necessary.
13736 Add Guile as an extension language.
13737 * NEWS: Mention Guile scripting.
13738 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
13739 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
13740 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
13741 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
13742 (CLIBS): Add GUILE_LIBS.
13743 (install-guile): New rule.
13744 (guile.o): New rule.
13745 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
13746 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
13747 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
13748 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
13749 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
13750 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
13751 (scm-type.o, scm-utils.o, scm-value.o): New rules.
13752 * configure.ac: New option --with-guile.
13753 * configure: Regenerate.
13754 * config.in: Regenerate.
13755 * auto-load.c: Remove #include "python/python.h". Add #include
13756 "gdb/section-scripts.h".
13757 (source_section_scripts): Handle Guile scripts.
13758 (_initialize_auto_load): Add name of Guile objfile script to
13759 scripts-directory help text.
13760 * breakpoint.c (condition_command): Tweak comment to include Scheme.
13761 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
13762 (struct breakpoint): New member scm_bp_object.
13763 * defs.h (enum command_control_type): New value guile_control.
13764 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
13766 (show_user): Update comment.
13767 (_initialize_cli_cmds): Update help text for "show user". Update help
13768 text for max-user-call-depth.
13769 * cli/cli-script.c: Remove #include "python/python.h". Add #include
13771 (multi_line_command_p): Add guile_control.
13772 (print_command_lines): Handle guile_control.
13773 (execute_control_command, recurse_read_control_structure): Ditto.
13774 (process_next_line): Recognize "guile" commands.
13775 * disasm.c (gdb_disassemble_info): Make non-static.
13776 * disasm.h: #include "dis-asm.h".
13777 (struct gdbarch): Add forward decl.
13778 (gdb_disassemble_info): Declare.
13779 * extension.c: #include "guile/guile.h".
13780 (extension_languages): Add guile.
13781 (get_ext_lang_defn): Handle EXT_LANG_GDB.
13782 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
13783 * gdbtypes.c (get_unsigned_type_max): New function.
13784 (get_signed_type_minmax): New function.
13785 * gdbtypes.h (get_unsigned_type_max): Declare.
13786 (get_signed_type_minmax): Declare.
13787 * guile/README: New file.
13788 * guile/guile-internal.h: New file.
13789 * guile/guile.c: New file.
13790 * guile/guile.h: New file.
13791 * guile/scm-arch.c: New file.
13792 * guile/scm-auto-load.c: New file.
13793 * guile/scm-block.c: New file.
13794 * guile/scm-breakpoint.c: New file.
13795 * guile/scm-disasm.c: New file.
13796 * guile/scm-exception.c: New file.
13797 * guile/scm-frame.c: New file.
13798 * guile/scm-gsmob.c: New file.
13799 * guile/scm-iterator.c: New file.
13800 * guile/scm-lazy-string.c: New file.
13801 * guile/scm-math.c: New file.
13802 * guile/scm-objfile.c: New file.
13803 * guile/scm-ports.c: New file.
13804 * guile/scm-pretty-print.c: New file.
13805 * guile/scm-safe-call.c: New file.
13806 * guile/scm-string.c: New file.
13807 * guile/scm-symbol.c: New file.
13808 * guile/scm-symtab.c: New file.
13809 * guile/scm-type.c: New file.
13810 * guile/scm-utils.c: New file.
13811 * guile/scm-value.c: New file.
13812 * guile/lib/gdb.scm: New file.
13813 * guile/lib/gdb/boot.scm: New file.
13814 * guile/lib/gdb/experimental.scm: New file.
13815 * guile/lib/gdb/init.scm: New file.
13816 * guile/lib/gdb/iterator.scm: New file.
13817 * guile/lib/gdb/printing.scm: New file.
13818 * guile/lib/gdb/types.scm: New file.
13819 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
13820 (VPATH): Add $(GUILE_SRCDIR).
13821 (GUILE_DIR): New variable.
13822 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
13823 (all): Add stamp-guile dependency.
13824 (stamp-guile): New rule.
13825 (clean-guile, install-guile, uninstall-guile): New rules.
13826 (install-only): Add install-guile dependency.
13827 (uninstall): Add uninstall-guile dependency.
13828 (clean): Add clean-guile dependency.
13832 Revert this patch (which I approved, mea culpa).
13836 * Makefile.in (all-lib): Remove.
13837 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13841 Fix Python stack corruption.
13842 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
13847 * Makefile.in (all-lib): Remove.
13848 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
13852 * extension-priv.h (extension_language_script_ops): Add comment.
13853 (extension_language_ops): Add comment.
13854 (active_ext_lang_state): Fix typo in comment.
13858 PR breakpoints/16292
13859 * infrun.c (handle_signal_stop) <signal arrives while stepping
13860 over a breakpoint>: Switch back to the stepping thread.
13864 * target.c (target_xfer_partial): Return zero if LEN is zero.
13868 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
13869 (ld_so_xfer_auxv): Likewise.
13870 * bfd-target.c (target_bfd_xfer_partial): Likewise.
13871 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
13872 * corelow.c (core_xfer_partial): Likewise.
13873 * ctf.c (ctf_xfer_partial): Likewise.
13874 * darwin-nat.c (darwin_read_dyld_info): Likewise.
13875 (darwin_xfer_partial): Likewise.
13876 * exec.c (exec_xfer_partial): Likewise.
13877 * gnu-nat.c (gnu_xfer_partial): Likewise.
13878 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
13879 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
13880 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
13881 * linux-nat.c (linux_xfer_siginfo): Likewise.
13882 (linux_proc_xfer_spu): Likewise.
13883 * procfs.c (procfs_xfer_partial): Likewise.
13884 * record-full.c (record_full_xfer_partial): Likewise.
13885 (record_full_core_xfer_partial): Likewise.
13886 * remote-sim.c (gdbsim_xfer_partial): Likewise.
13887 * remote.c (remote_write_qxfer): Likewise.
13888 (remote_write_qxfer, remote_read_qxfer): Likewise.
13889 (remote_xfer_partial): Likewise.
13890 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
13891 (rs6000_xfer_shared_libraries): Likewise.
13892 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
13893 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
13894 (spu_xfer_partial): Likewise.
13895 * target.c (memory_xfer_partial_1): Likewise.
13896 * tracepoint.c (tfile_xfer_partial): Likewise.
13897 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
13898 (windows_xfer_partial): Likewise.
13902 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
13904 (core_xfer_shared_libraries_aix): Likewise.
13905 * gdbarch.c, gdbarch.h: Regenerated.
13906 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
13907 ULONGEST. Change 'len_avail' type to ULONGEST.
13908 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
13909 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
13911 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
13915 * corefile.c (memory_error): Get 'exception' from ERR and pass
13916 'exception' to throw_error.
13920 * configure.ac (libpython checking): Remove all but python.o from
13921 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
13922 * configure: Regenerate.
13924 * Makefile.in (SFILES): Add extension.c.
13925 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
13926 (COMMON_OBS): Add extension.o.
13927 * extension.h: New file.
13928 * extension-priv.h: New file.
13929 * extension.c: New file.
13931 * python/python-internal.h: #include "extension.h".
13932 (gdbpy_auto_load_enabled): Declare.
13933 (gdbpy_apply_val_pretty_printer): Declare.
13934 (gdbpy_apply_frame_filter): Declare.
13935 (gdbpy_preserve_values): Declare.
13936 (gdbpy_breakpoint_cond_says_stop): Declare.
13937 (gdbpy_breakpoint_has_cond): Declare.
13938 (void source_python_script_for_objfile): Delete.
13939 * python/python.c: #include "extension-priv.h".
13940 Delete inclusion of "observer.h".
13941 (extension_language_python): Moved here and renamed from
13942 script_language_python in py-auto-load.c.
13943 Redefined to be of type extension_language_defn.
13944 (python_extension_script_ops): New global.
13945 (python_extension_ops): New global.
13946 (struct python_env): New member previous_active.
13947 (restore_python_env): Call restore_active_ext_lang.
13948 (ensure_python_env): Call set_active_ext_lang.
13949 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
13951 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
13953 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
13955 (gdbpy_eval_from_control_command): Renamed from
13956 eval_python_from_control_command, made static. New arg extlang.
13957 (gdbpy_source_script) Renamed from source_python_script, made static.
13959 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
13960 result to int. New arg extlang.
13961 (gdbpy_source_objfile_script): Renamed from
13962 source_python_script_for_objfile, made static. New arg extlang.
13963 (gdbpy_start_type_printers): Renamed from start_type_printers, made
13964 static. New args extlang, extlang_printers. Change result type to
13966 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
13967 static. New arg extlang. Rename arg printers to extlang_printers
13968 and change type to ext_lang_type_printers *.
13969 (gdbpy_free_type_printers): Renamed from free_type_printers, made
13970 static. Replace argument arg with extlang, extlang_printers.
13971 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
13972 (!HAVE_PYTHON, source_python_script): Delete.
13973 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
13974 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
13975 (!HAVE_PYTHON, start_type_printers): Delete.
13976 (!HAVE_PYTHON, apply_type_printers): Delete.
13977 (!HAVE_PYTHON, free_type_printers): Delete.
13978 (_initialize_python): Delete call to observer_attach_before_prompt.
13979 (finalize_python): Set/restore active extension language.
13980 (gdbpy_finish_initialization) Renamed from
13981 finish_python_initialization, made static. New arg extlang.
13982 (gdbpy_initialized): New function.
13983 * python/python.h: #include "extension.h". Delete #include
13984 "value.h", "mi/mi-cmds.h".
13985 (extension_language_python): Declare.
13986 (GDBPY_AUTO_FILE_NAME): Delete.
13987 (enum py_bt_status): Moved to extension.h and renamed to
13988 ext_lang_bt_status.
13989 (enum frame_filter_flags): Moved to extension.h.
13990 (enum py_frame_args): Moved to extension.h and renamed to
13991 ext_lang_frame_args.
13992 (finish_python_initialization): Delete.
13993 (eval_python_from_control_command): Delete.
13994 (source_python_script): Delete.
13995 (apply_val_pretty_printer): Delete.
13996 (apply_frame_filter): Delete.
13997 (preserve_python_values): Delete.
13998 (gdbpy_script_language_defn): Delete.
13999 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
14000 (start_type_printers, apply_type_printers, free_type_printers): Delete.
14002 * auto-load.c: #include "extension.h".
14003 (GDB_AUTO_FILE_NAME): Delete.
14004 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
14005 (script_language_gdb): Delete, moved to extension.c and renamed to
14006 extension_language_gdb.
14007 (source_gdb_script_for_objfile): Delete.
14008 (auto_load_pspace_info): New member unsupported_script_warning_printed.
14009 (loaded_script): Change type of language member to
14010 struct extension_language_defn *.
14011 (init_loaded_scripts_info): Initialize
14012 unsupported_script_warning_printed.
14013 (maybe_add_script): Make static. Change type of language arg to
14014 struct extension_language_defn *.
14015 (clear_section_scripts): Reset unsupported_script_warning_printed.
14016 (auto_load_objfile_script_1): Rewrite to use extension language API.
14017 (auto_load_objfile_script): Make public. Remove support-compiled-in
14018 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
14019 (source_section_scripts): Rewrite to use extension language API.
14020 (load_auto_scripts_for_objfile): Rewrite to use
14021 auto_load_scripts_for_objfile.
14022 (collect_matching_scripts_data): Change type of language member to
14023 struct extension_language_defn *.
14024 (auto_load_info_scripts): Change type of language arg to
14025 struct extension_language_defn *.
14026 (unsupported_script_warning_print): New function.
14027 (script_not_found_warning_print): Make static.
14028 (_initialize_auto_load): Rewrite construction of scripts-directory
14030 * auto-load.h (struct objfile): Add forward decl.
14031 (struct script_language): Delete.
14032 (struct auto_load_pspace_info): Add forward decl.
14033 (struct extension_language_defn): Add forward decl.
14034 (maybe_add_script): Delete.
14035 (auto_load_objfile_script): Declare.
14036 (script_not_found_warning_print): Delete.
14037 (auto_load_info_scripts): Update prototype.
14038 (auto_load_gdb_scripts_enabled): Declare.
14039 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
14040 auto_load_python_scripts_enabled and made public.
14041 (script_language_python): Delete, moved to python.c.
14042 (gdbpy_script_language_defn): Delete.
14043 (info_auto_load_python_scripts): Update to use
14044 extension_language_python.
14046 * breakpoint.c (condition_command): Replace call to
14047 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
14048 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
14049 with call to breakpoint_ext_lang_cond_says_stop.
14050 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
14051 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
14052 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
14053 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
14055 (local_setattro): Print name of extension language with existing
14058 * valprint.c (val_print, value_print): Update to call
14059 apply_ext_lang_val_pretty_printer.
14060 * cp-valprint.c (cp_print_value): Update call to
14061 apply_ext_lang_val_pretty_printer.
14062 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
14063 (gdbpy_apply_val_pretty_printer): Renamed from
14064 apply_val_pretty_printer. New arg extlang.
14065 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
14067 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
14068 extension language API.
14069 * cli/cli-script.c (execute_control_command): Update to call
14070 eval_ext_lang_from_control_command.
14072 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
14073 enum ext_lang_bt_status values. Update call to
14074 apply_ext_lang_frame_filter.
14075 (mi_cmd_stack_list_locals): Ditto.
14076 (mi_cmd_stack_list_args): Ditto.
14077 (mi_cmd_stack_list_variables): Ditto.
14078 * mi/mi-main.c: Delete #include "python/python-internal.h".
14079 Add #include "extension.h".
14080 (mi_cmd_list_features): Replace reference to python internal variable
14081 gdb_python_initialized with call to ext_lang_initialized_p.
14083 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
14084 Update to use enum ext_lang_frame_args. Update to call
14085 apply_ext_lang_frame_filter.
14086 * python/py-framefilter.c (extract_sym): Update to use enum
14087 ext_lang_bt_status.
14088 (extract_value, py_print_type, py_print_value): Ditto.
14089 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
14090 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
14091 (py_print_frame): Ditto.
14092 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
14093 New arg extlang. Update to use enum ext_lang_bt_status.
14095 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
14096 finish_python_initialization. Replace with call to
14097 finish_ext_lang_initialization.
14099 * typeprint.c (do_free_global_table): Update to call
14100 free_ext_lang_type_printers.
14101 (create_global_typedef_table): Update to call
14102 start_ext_lang_type_printers.
14103 (find_global_typedef): Update to call apply_ext_lang_type_printers.
14104 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
14105 (type_print_options): Change type of global_printers from "void *"
14106 to "struct ext_lang_type_printers *".
14108 * value.c (preserve_values): Update to call preserve_ext_lang_values.
14109 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
14110 (gdbpy_preserve_values): Renamed from preserve_python_values.
14112 (!HAVE_PYTHON, preserve_python_values): Delete.
14114 * utils.c (quit_flag): Delete, moved to extension.c.
14115 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
14118 * eval.c: Delete #include "python/python.h".
14119 * main.c: Delete #include "python/python.h".
14121 * defs.h: Update comment.
14129 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
14134 * remote.c (remote_pass_signals): Remove local 'buf' and use
14136 (remote_program_signals): Likewise.
14140 * ctf.c: Include "inferior.h" and "gdbthread.h".
14141 (CTF_PID): A new macro.
14142 (ctf_open): Call inferior_appeared and add_thread_silent.
14143 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
14144 (ctf_thread_alive): New function.
14145 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
14153 * tracepoint.c (TFILE_PID): Remove.
14154 (tfile_open): Don't add thread and inferior.
14155 (tfile_close): Don't set 'inferior_ptid'. Don't call
14156 exit_inferior_silent.
14157 (tfile_thread_alive): Remove.
14158 (init_tfile_ops): Don't set field 'to_thread_alive' of
14163 * remote.c (remote_start_remote): Call remote_check_symbols even
14164 if only symbol-file (not file) has been given.
14168 * gdbarch.sh (skip_entrypoint): New callback.
14169 * gdbarch.c, gdbarch.h: Regenerate.
14170 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
14171 * infrun.c (fill_in_stop_func): Likewise.
14172 * ppc-linux-tdep.c: Include "elf/ppc64.h".
14173 (ppc_elfv2_elf_make_msymbol_special): New function.
14174 (ppc_elfv2_skip_entrypoint): Likewise.
14175 (ppc_linux_init_abi): Install them for ELFv2.
14179 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
14180 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
14181 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
14182 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
14183 structures returned in GPRs.
14187 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
14188 offset to the stack parameter list for the ELFv2 ABI.
14192 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
14193 set_gdbarch_convert_from_func_ptr_addr and
14194 set_gdbarch_elf_make_msymbol_special for ELFv1.
14195 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
14196 function descriptors on ELFv1.
14197 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
14198 set up r12 at function entry.
14202 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
14203 (struct gdbarch_tdep): New member elf_abi.
14205 * rs6000-tdep.c: Include "elf/ppc64.h".
14206 (rs6000_gdbarch_init): Detect ELF ABI version.
14210 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
14211 within a register pair holding a DFP 128-bit value on little-endian.
14212 (ppc64_sysv_abi_return_value_base): Likewise.
14213 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
14214 (dfp_pseudo_register_write): Likewise.
14218 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
14219 offset on little-endian when passing _Decimal32.
14220 (ppc64_sysv_abi_return_value_base): Likewise for return values.
14224 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
14225 of the overlapped FP register within the VSX register on little-
14227 (efpr_pseudo_register_write): Likewise.
14231 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
14232 offset on little-endian when passing small structures.
14236 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
14237 (struct ppc64_sysv_argpos): New data structure.
14238 (ppc64_sysv_abi_push_float): Remove.
14239 (ppc64_sysv_abi_push_val): New function.
14240 (ppc64_sysv_abi_push_integer): Likewise.
14241 (ppc64_sysv_abi_push_freg): Likewise.
14242 (ppc64_sysv_abi_push_vreg): Likewise.
14243 (ppc64_sysv_abi_push_param): Likewise.
14244 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
14245 (ppc64_sysv_abi_return_value_base): New function.
14246 (ppc64_sysv_abi_return_value): Refactor to use it.
14250 * NEWS: Document new target powerpc64le-*-linux*.
14254 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
14255 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
14257 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
14258 register set used in ELF core dumps. Add floating-point register set.
14262 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
14263 dwarf2_to_gdb[] table using symbolic constants. Adjust
14264 penultimate entry from number representing the PC register
14265 to symbolic constant representing the MDR register. Add
14266 constant for the PC register to the end of the table.
14270 * bsd-kvm.c: Include <sys/param.h>
14274 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
14278 * ada-lang.h (clear_ada_sym_cache): Delete.
14282 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
14286 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
14287 the sigreturn register save area only if the syscall is
14292 * valops.c (value_slice): Minor reformatting.
14296 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
14300 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
14301 New static globals.
14302 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
14303 (ada_ignore_descriptive_types_p): New static global.
14304 (find_parallel_type_by_descriptive_type): Return immediately
14305 if ada_ignore_descriptive_types_p is set.
14306 (_initialize_ada_language): Register new commands "maintenance
14307 set ada", "maintenance show ada", "maintenance set ada
14308 ignore-descriptive-types" and "maintenance show ada
14309 ignore-descriptive-types".
14310 * NEWS: Add entry for new "maint ada set/show
14311 ignore-descriptive-types" commands.
14315 * record-btrace.c (record_btrace_close): Call btrace_teardown
14320 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
14325 * ada-typeprint (type_is_full_subrange_of_target_type):
14327 (print_range): Add parameter bounds_prefered_p. If not set,
14328 try printing range types using the name of their base type.
14329 (print_range_type): Add parameter bounds_prefered_p.
14330 Use it in call to print_range.
14331 (print_array_type, ada_print_type): Update calls to print_range
14332 and print_range_type.
14336 * ada-typeprint.c (print_array_type, print_choices, print_range)
14337 (print_range_bound, print_dynamic_range_bound, print_range_type):
14338 Remove declaration.
14342 * ada-typeprint.c (print_range): Add missing empty line
14343 after local declaration.
14347 * ada-valprint.c (print_optional_low_bound): Get index_type's
14348 target type for as long as it is a TYPE_CODE_RANGE.
14352 * procfs.c (procfs_make_note_section): Remove assertion and
14353 associated comment.
14357 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
14358 * corelow.c (get_core_siginfo): Likewise.
14362 * remote.c (remote_write_bytes_aux): Change type of 'len' to
14363 ULONGEST. Don't check 'len' is negative.
14364 (remote_write_bytes): Change type of 'len' to ULONGEST.
14369 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
14370 Handle exception from frame.block.
14371 (FrameVars.fetch_frame_locals): Likewise.
14376 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
14377 on a NULL pointer. Move "goto error" to correct place.
14382 * python/py-framefilter.c (apply_frame_filter): Call
14383 ensure_python_env after computing gdbarch.
14387 * target.c (raw_memory_xfer_partial): Change argument type
14388 from void * to gdb_byte *.
14389 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
14393 New gdbserver option --debug-format=timestamp.
14394 * NEWS: Mention it.
14398 * syscalls/s390x-linux.xml: New file.
14399 * syscalls/s390-linux.xml: New file.
14400 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
14401 (XML_SYSCALL_FILENAME_S390X): Likewise.
14402 (op_svc): New enum value for SVC opcode.
14403 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
14404 (s390_linux_get_syscall_number): New function.
14405 (s390_gdbarch_init): Register '*get_syscall_number' and the
14406 syscall xml file name.
14407 * data-directory/Makefile.in (SYSCALLS_FILES): Add
14408 "s390-linux.xml" and "s390x-linux.xml".
14409 * NEWS: Announce new feature.
14413 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
14417 * xtensa-config.c: Include defs.h.
14421 * common/common-utils.h: Add "ARI:" comment beside __func__
14426 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
14427 documentation a bit.
14431 * configure.ac: Call AM_PROG_INSTALL_STRIP.
14432 * configure: Regenerate.
14433 * aclocal.m4: Regenerate.
14434 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
14435 New substituted variables.
14436 (install-strip): New target.
14437 (INSTALL_SCRIPT): New substituted variable.
14438 (FLAGS_TO_PASS): Add it.
14439 (install-only): Use $(INSTALL_SCRIPT) rather than
14440 $(INSTALL_PROGRAM) for gcore.
14444 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
14449 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
14450 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
14451 (deprecated_cmd_warning, complete_on_cmdlist): Update.
14452 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
14453 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
14454 (struct cmd_list_element) <flags>: Remove.
14455 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
14456 doc_allocated>: New fields.
14457 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
14459 * maint.c (maintenance_do_deprecate): Update.
14460 * top.c (execute_command): Update.
14464 * xtensa-linux-nat.c: Include asm/ptrace.h.
14468 * Makefile.in (SFILES): Add d-support.c.
14469 (COMMON_OBS): Add d-support.o.
14470 * d-lang.h (d_parse_symbol): Add comment, now defined in
14472 * d-lang.c (parse_call_convention)
14473 (parse_attributes, parse_function_types)
14474 (parse_function_args, parse_type, parse_identifier)
14475 (call_convention_p, d_parse_symbol): Move functions to ...
14476 * d-support.c: ... New file.
14480 * d-lang.h (d_parse_symbol): Add declaration.
14481 * d-lang.c (extract_identifiers)
14482 (extract_type_info): Remove functions.
14483 (parse_call_convention, parse_attributes)
14484 (parse_function_types, parse_function_args)
14485 (parse_type, parse_identifier, call_convention_p)
14486 (d_parse_symbol): New functions.
14487 (d_demangle): Use d_parse_symbol to demangle D symbols.
14491 * d-lang.h (struct builtin_d_type): New data type.
14492 (builtin_d_type): Add declaration.
14493 * d-lang.c (d_language_arch_info, build_d_types)
14494 (builtin_d_type): New functions.
14495 (enum d_primitive_types): New data type.
14496 (d_language_defn): Change c_language_arch_info to
14497 d_language_arch_info.
14498 (d_type_data): New static variable.
14499 (_initialize_d_language): Initialize d_type_data.
14503 * d-lang.h (d_main_name): Add declaration.
14504 * d-lang.c (d_main_name): New function.
14505 * symtab.c (find_main_name): Add call to d_main_name.
14509 * d-lang.c (d_language_defn): Change macro_expansion_c to
14510 macro_expansion_no.
14514 * MAINTAINERS: Add myself as a write-after-approval maintainer.
14518 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
14519 gdb_exception" declaration.
14520 * remote.c (getpkt_or_notif_sane): Likewise.
14524 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
14525 function, contents of dirnames_to_char_ptr_vec_append moved here.
14526 (delim_string_to_char_ptr_vec): New function.
14527 (dirnames_to_char_ptr_vec_append): Rewrite.
14528 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
14532 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
14534 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
14535 #include "common-utils.h".
14536 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
14537 * common/vec.h (VEC_ASSERT_PASS): Update.
14538 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
14539 (MACH_CHECK_ERROR): Update.
14543 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
14545 * gdbarch.h: Regenerate.
14549 * value.c (struct value) <regnum>: Move earlier.
14553 * remote.c (extended_remote_create_inferior): Rename from
14554 extended_remote_create_inferior_1. Add "ops" argument. Remove
14555 old implementation.
14559 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
14560 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
14565 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
14569 * btrace.h (btrace_thread_flag): New.
14570 (struct btrace_thread_info) <flags>: New.
14571 * record-btrace.c (record_btrace_resume_thread)
14572 (record_btrace_find_thread_to_move, btrace_step_no_history)
14573 (btrace_step_stopped, record_btrace_start_replaying)
14574 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
14575 (record_btrace_find_resume_thread): New.
14576 (record_btrace_resume, record_btrace_wait): Extend.
14577 (record_btrace_can_execute_reverse): New.
14578 (record_btrace_open): Fail in non-stop mode.
14579 (record_btrace_set_replay): Split into this, ...
14580 (record_btrace_stop_replaying): ... this, ...
14581 (record_btrace_clear_histories): ... and this.
14582 (init_record_btrace_ops): Init to_can_execute_reverse.
14583 * NEWS: Announce it.
14587 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
14588 (forward_target_decr_pc_after_break)
14589 (target_decr_pc_after_break): New.
14590 * target.c (forward_target_decr_pc_after_break)
14591 (target_decr_pc_after_break): New.
14592 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
14593 instead of gdbarch_decr_pc_after_break.
14594 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14595 instead of gdbarch_decr_pc_after_break.
14596 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
14597 instead of gdbarch_decr_pc_after_break.
14598 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
14599 instead of gdbarch_decr_pc_after_break.
14600 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
14601 instead of gdbarch_decr_pc_after_break.
14602 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
14603 instead of gdbarch_decr_pc_after_break.
14607 * btrace.c: Include regcache.h.
14608 (btrace_add_pc): New.
14609 (btrace_enable): Call btrace_add_pc.
14610 (btrace_is_empty): New.
14611 * btrace.h (btrace_is_empty): New.
14612 * record-btrace.c (require_btrace, record_btrace_info): Call
14617 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
14618 Support delta reads.
14619 (linux_disable_btrace): Change return type.
14620 * common/linux-btrace.h (linux_read_btrace): Change parameters
14621 and return type to allow error reporting. Update users.
14622 (linux_disable_btrace): Change return type. Update users.
14623 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
14625 (btrace_error): New.
14626 (btrace_block) <begin>: Comment on BEGIN == 0.
14627 * btrace.c (btrace_compute_ftrace): Start from the end of
14629 (btrace_stitch_trace, btrace_clear_history): New.
14630 (btrace_fetch): Read delta trace, return if replaying.
14631 (btrace_clear): Move clear history code to btrace_clear_history.
14632 (parse_xml_btrace): Throw an error if parsing failed.
14633 * target.h (struct target_ops) <to_read_btrace>: Change parameters
14634 and return type to allow error reporting.
14635 (target_read_btrace): Change parameters and return type to allow
14637 * target.c (target_read_btrace): Update.
14638 * remote.c (remote_read_btrace): Support delta reads. Pass
14640 * NEWS: Announce it.
14644 * record.h (record_btrace_frame_unwind)
14645 (record_btrace_tailcall_frame_unwind): New declarations.
14646 * dwarf2-frame: Include record.h
14647 (dwarf2_frame_cfa): Throw an error for btrace frames.
14648 * record-btrace.c: Include hashtab.h.
14649 (btrace_get_bfun_name): New.
14650 (btrace_call_history): Call btrace_get_bfun_name.
14651 (struct btrace_frame_cache): New.
14653 (bfcache_hash, bfcache_eq, bfcache_new): New.
14654 (btrace_get_frame_function): New.
14655 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
14656 (record_btrace_frame_this_id): Compute own id.
14657 (record_btrace_frame_prev_register): Provide PC, throw_error
14658 for all other registers.
14659 (record_btrace_frame_sniffer): Detect btrace frames.
14660 (record_btrace_tailcall_frame_sniffer): New.
14661 (record_btrace_frame_dealloc_cache): New.
14662 (record_btrace_frame_unwind): Add new functions.
14663 (record_btrace_tailcall_frame_unwind): New.
14664 (_initialize_record_btrace): Allocate cache.
14665 * btrace.c (btrace_clear): Call reinit_frame_cache.
14666 * NEWS: Announce it.
14670 * record-btrace.c (record_btrace_set_replay)
14671 (record_btrace_goto_begin, record_btrace_goto_end)
14672 (record_btrace_goto): New.
14673 (init_record_btrace_ops): Initialize them.
14674 * NEWS: Announce it.
14678 * record-btrace.c (record_btrace_find_new_threads)
14679 (record_btrace_thread_alive): New.
14680 (init_record_btrace_ops): Initialize to_find_new_threads and
14685 * record-btrace.c (record_btrace_resume): New.
14686 (record_btrace_wait): New.
14687 (init_record_btrace_ops): Initialize to_wait and to_resume.
14691 * record-btrace.c (record_btrace_xfer_partial)
14692 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
14693 (record_btrace_allow_memory_access): New.
14694 (init_record_btrace_ops): Initialize new methods.
14695 * target.c (raw_memory_xfer_partial): Bail out if target reports
14696 that this memory is not available.
14700 * target.h (target_ops) <to_insert_breakpoint>
14701 <to_remove_breakpoint>: Add target_ops parameter.
14702 (forward_target_insert_breakpoint): New.
14703 (forward_target_remove_breakpoint): New.
14704 (memory_remove_breakpoint, memory_insert_breakpoint):
14705 Add target_ops parameter.
14706 * target.c (target_insert_breakpoint): Split into this and ...
14707 (forward_target_insert_breakpoint): ... this.
14708 (target_remove_breakpoint): Split into this and ...
14709 (forward_target_remove_breakpoint): ... this.
14710 (debug_to_insert_breakpoint): Add target_ops parameter.
14711 Call forward_target_insert_breakpoint.
14712 (debug_to_remove_breakpoint): Add target_ops parameter.
14713 Call forward_target_remove_breakpoint.
14714 (update_current_target): Do not inherit or default to_insert_breakpoint
14715 and to_remove_breakpoint.
14716 * corelow.c (ignore): Add target_ops parameter.
14717 * exec.c (ignore): Add target_ops parameter.
14718 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
14719 Add target_ops parameter.
14720 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
14721 Add target_ops parameter.
14722 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
14723 Add target_ops parameter.
14724 * record-full.c (record_full_beneath_to_insert_breakpoint)
14725 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
14726 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
14727 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
14728 (record_full_core_remove_breakpoint): Add target_ops parameter.
14730 (record_full_beneath_to_insert_breakpoint_ops)
14731 (record_full_beneath_to_remove_breakpoint_ops)
14732 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
14733 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
14734 tmp_to_remove_breakpoint_ops,
14735 record_full_beneath_to_insert_breakpoint_ops, and
14736 record_full_beneath_to_remove_breakpoint_ops.
14737 * remote-m32r-sdi.c (m32r_insert_breakpoint)
14738 (m32r_remove_breakpoint): Add target_ops parameter.
14739 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
14740 Add target_ops parameter.
14741 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
14742 Add target_ops parameter.
14747 * record-btrace.c: Include frame-unwind.h.
14748 (record_btrace_frame_unwind_stop_reason)
14749 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
14750 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
14752 (init_record_btrace_ops): Install it.
14756 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
14761 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
14766 * frame-unwind.c: Include target.h.
14767 (frame_unwind_try_unwinder): New function with code from ...
14768 (frame_unwind_find_by_frame): ... here. New variable
14769 unwinder_from_target, call also target_get_unwinder)
14770 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
14771 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
14772 * target.h (struct target_ops): New fields to_get_unwinder and
14773 to_get_tailcall_unwinder.
14774 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
14778 * record-btrace.c (record_btrace_fetch_registers)
14779 (record_btrace_store_registers)
14780 (record_btrace_to_prepare_to_store): New.
14781 (init_record_btrace_ops): Add the above.
14785 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
14786 * target.h (struct target_ops) <to_prepare_to_store>: Add
14788 (target_prepare_to_store): Add argument.
14789 * target.c (debug_to_prepare_to_store): Add argument.
14790 (update_current_target): Update.
14791 * remote.c (remote_prepare_to_store): Add 'self' argument.
14792 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
14793 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
14794 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
14795 * record-full.c (record_full_core_prepare_to_store): Add 'self'
14797 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
14798 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
14799 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
14800 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
14801 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
14805 * btrace.h (replay) <replay>: New.
14806 (btrace_is_replaying): New.
14807 * btrace.c (btrace_clear): Free replay iterator.
14808 (btrace_is_replaying): New.
14809 * record-btrace.c (record_btrace_is_replaying): New.
14810 (record_btrace_info): Print insn number if replaying.
14811 (record_btrace_insn_history): Start at replay position.
14812 (record_btrace_call_history): Start at replay position.
14813 (init_record_btrace_ops): Init to_record_is_replaying.
14817 * record-btrace.c (record_btrace_insn_history_range): Include
14819 (record_btrace_insn_history_from): Adjust range.
14820 (record_btrace_call_history_range): Include
14822 (record_btrace_call_history_from): Adjust range.
14823 * NEWS: Announce changes.
14827 * record.h (enum record_print_flag)
14828 <record_print_indent_calls>: New.
14829 * record.c (get_call_history_modifiers): Recognize /c modifier.
14830 (_initialize_record): Document /c modifier.
14831 * record-btrace.c (btrace_call_history): Add btinfo parameter.
14832 Reorder fields. Optionally indent the function name. Update
14834 * NEWS: Announce changes.
14838 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
14842 * btrace.c (ftrace_new_function): Start counting at one.
14843 * record-btrace.c (record_btrace_info): Adjust number of calls
14845 * NEWS: Announce it.
14849 * record-btrace.c (btrace_call_history_insn_range): Print
14850 insn range as [begin, end].
14854 * btrace.h (struct btrace_func_link): New.
14855 (enum btrace_function_flag): New.
14856 (struct btrace_inst): Rename to ...
14857 (struct btrace_insn): ...this. Update all users.
14858 (struct btrace_func) <ibegin, iend>: Remove.
14859 (struct btrace_func_link): New.
14860 (struct btrace_func): Rename to ...
14861 (struct btrace_function): ...this. Update all users.
14862 (struct btrace_function) <segment, flow, up, insn, insn_offset)
14863 (number, level, flags>: New.
14864 (struct btrace_insn_iterator): Rename to ...
14865 (struct btrace_insn_history): ...this.
14867 (struct btrace_insn_iterator, btrace_call_iterator): New.
14868 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
14869 (struct btrace_target_info) <begin, end, level>
14870 <insn_history, call_history>: New.
14871 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14872 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14873 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14874 (btrace_call_number, btrace_call_begin, btrace_call_end)
14875 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14876 (btrace_find_function_by_number, btrace_set_insn_history)
14877 (btrace_set_call_history): New.
14878 * btrace.c (btrace_init_insn_iterator)
14879 (btrace_init_func_iterator, compute_itrace): Remove.
14880 (ftrace_print_function_name, ftrace_print_filename)
14881 (ftrace_skip_file): Change
14882 parameter to const.
14883 (ftrace_init_func): Remove.
14884 (ftrace_debug): Use new btrace_function fields.
14885 (ftrace_function_switched): Also consider gaining and
14886 losing symbol information).
14887 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
14888 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
14889 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
14891 (ftrace_new_function): Move. Remove debug print.
14892 (ftrace_update_lines, ftrace_update_insns): New.
14893 (ftrace_update_function): Check for call, ret, and jump.
14894 (compute_ftrace): Renamed to ...
14895 (btrace_compute_ftrace): ...this. Rewritten to compute call
14897 (btrace_fetch, btrace_clear): Updated.
14898 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
14899 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
14900 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
14901 (btrace_call_number, btrace_call_begin, btrace_call_end)
14902 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
14903 (btrace_find_function_by_number, btrace_set_insn_history)
14904 (btrace_set_call_history): New.
14905 * record-btrace.c (require_btrace): Use new btrace thread
14907 (record_btrace_info, btrace_insn_history)
14908 (record_btrace_insn_history, record_btrace_insn_history_range):
14909 Use new btrace thread info fields and new iterator.
14910 (btrace_func_history_src_line): Rename to ...
14911 (btrace_call_history_src_line): ...this. Use new btrace
14912 thread info fields.
14913 (btrace_func_history): Rename to ...
14914 (btrace_call_history): ...this. Use new btrace thread info
14915 fields and new iterator.
14916 (record_btrace_call_history, record_btrace_call_history_range):
14917 Use new btrace thread info fields and new iterator.
14921 * frame.h (frame_id_build_unavailable_stack_special): New.
14922 * frame.c (frame_id_build_unavailable_stack_special): New.
14926 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
14927 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
14928 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
14930 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
14931 (i386_insn_is_jump, i386_jmp_p): New.
14932 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
14933 insn_is_jump to gdbarch.
14934 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
14935 * gdbarch.h: Regenerated.
14936 * gdbarch.c: Regenerated.
14937 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
14938 (default_insn_is_jump): New.
14939 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
14940 (default_insn_is_jump): New.
14944 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
14946 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
14947 (btrace_read_type) <btrace_read_new>: Change to ...
14948 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
14952 * common/linux-btrace.c (linux_read_btrace): Free trace from
14953 previous iteration.
14957 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
14962 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
14963 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
14964 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
14965 (set_objfile_main_name): New function.
14966 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
14967 language_of_main>: New fields.
14968 (set_objfile_main_name): Declare.
14969 * symtab.c (find_main_name): Loop over objfiles to find the main
14971 (set_main_name): Now static.
14972 (get_main_info): Add comment.
14973 * symtab.h (set_main_name): Don't declare.
14977 * symtab.c (main_progspace_key): New global.
14978 (struct main_info): New.
14979 (name_of_main, language_of_main): Remove.
14980 (get_main_info, main_info_cleanup): New function.
14981 (set_main_name, main_name, main_language): Use get_main_info.
14982 (_initialize_symtab): Initialize main_progspace_key.
14986 * dbxread.c (process_one_symbol): Update.
14987 * dwarf2read.c (read_partial_die): Update.
14988 * symfile.c (set_initial_language): Call main_language.
14989 * symtab.c (language_of_main): Now static.
14990 (set_main_name): Add 'lang' parameter.
14991 (find_main_name): Update.
14992 (main_language): New function.
14993 (symtab_observer_executable_changed): Update.
14994 * symtab.h (set_main_name): Update.
14995 (language_of_main): Remove.
14996 (main_language): Declare.
15000 * symfile.c (init_entry_point_info): Use new "initialized" field.
15002 * objfiles.h (struct entry_point) <initialized>: New field.
15003 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
15004 (struct objfile) <ei>: ...here. Remove.
15005 * objfiles.c (entry_point_address_query): Update.
15009 * objfiles.c (entry_point_address_query): Relocate entry point
15011 (objfile_relocate1): Do not relocate entry point address.
15012 * objfiles.h (struct entry_info) <entry_point>: Update comment.
15013 <the_bfd_section_index>: New field.
15014 * symfile.c (init_entry_point_info): Find the entry point's
15019 * solib-frv.c (enable_break): Use entry_point_address_query.
15023 * NEWS: Add note on improved process record-replay on
15024 arm*-linux* targets.
15028 * arm-tdep.c (enum arm_record_result): New enum.
15029 (arm_record_unsupported_insn): New function.
15030 (arm_record_coproc_data_proc): Removed.
15031 (thumb2_record_ld_st_multiple): New function.
15032 (thumb2_record_ld_st_dual_ex_tbb): New function.
15033 (thumb2_record_data_proc_sreg_mimm): New function.
15034 (thumb2_record_ps_dest_generic): New function.
15035 (thumb2_record_branch_misc_cntrl): New function.
15036 (thumb2_record_str_single_data): New function.
15037 (thumb2_record_ld_mem_hints): New function.
15038 (thumb2_record_ld_word): New function.
15039 (thumb2_record_lmul_lmla_div): New function.
15040 (thumb2_record_decode_insn_handler): New function.
15041 (decode_insn): Add thumb32 instruction handlers.
15045 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
15046 (struct arm_linux_record_tdep): Declare.
15047 (arm_canonicalize_syscall): New function.
15048 (arm_all_but_pc_registers_record): New function.
15049 (arm_linux_syscall_record): New function.
15050 (arm_linux_init_abi): Add syscall recording constructs.
15051 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
15052 decoding. (arm_record_coproc_data_proc): Update arm syscall
15054 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
15055 <arm_syscall_record>: New field.
15056 * configure.tgt (arm*-*-linux*): Add linux-record.o to
15061 * arm-tdep.c (thumb_record_misc): Update to use sp as base
15062 register for push instruction recording.
15066 * arm-tdep.c (thumb_record_misc): Update to correct logical
15067 error while recording ldm, ldmia and pop instructions.
15071 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
15075 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
15076 (go32_resume, go32_fetch_registers, store_register)
15077 (go32_store_registers, go32_prepare_to_store)
15078 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
15079 (go32_create_inferior, go32_can_run, go32_terminal_init)
15080 (go32_terminal_inferior, go32_terminal_ours): Delete forward
15085 * target.h (async_callback_ftype): New typedef.
15086 (struct target_ops) <to_async>: Use it.
15090 * python/py-value.c (get_field_type): Remove unnecessary curly
15091 braces for single-statement if block.
15095 * python/py-type.c (convert_field): Add missing empty line
15096 after declarations.
15100 * symfile.h (expand_symtabs_matching): Renamed from
15101 expand_partial_symbol_names. Update prototype.
15102 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15103 * symfile.c (expand_symtabs_matching): Renamed from
15104 expand_partial_symbol_names. New args file_matcher, kind.
15105 Rename arg fun to symbol_matcher.
15106 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
15107 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
15108 ada_expand_partial_symbol_name.
15109 (ada_make_symbol_completion_list): Update to call
15110 expand_symtabs_matching.
15111 (ada_add_global_exceptions): Call expand_symtabs_matching.
15112 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
15113 call map_symbol_filenames.
15114 * symtab.c (sources_info): Update to call map_symbol_filenames.
15115 (search_symbols): Call expand_symtabs_matching.
15116 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
15117 (default_make_symbol_completion_list_break_on): Update to call
15118 expand_symtabs_matching.
15119 (make_source_files_completion_list): Update to call
15120 map_symbol_filenames.
15124 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
15125 (expand_symtabs_symbol_matcher_ftype): New typedef.
15126 (quick_symbol_functions.expand_symtabs_matching): Update to use.
15127 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15128 * symfile.c (expand_partial_symbol_names): Update to use
15129 expand_symtabs_symbol_matcher_ftype.
15130 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
15131 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15132 Arg name_matcher renamed to symbol_matcher.
15133 * psymtab.c (recursively_search_psymtabs): Update to use
15134 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
15136 (expand_symtabs_matching_via_partial): Update to use
15137 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
15138 Arg name_matcher renamed to symbol_matcher.
15142 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
15143 (map_partial_symbol_filenames): Ditto.
15144 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
15145 (map_partial_symbol_filenames): Ditto.
15146 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
15147 (map_partial_symbol_filenames): Ditto.
15148 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
15149 (map_partial_symbol_filenames): Ditto.
15150 * symtab.c: Delete #include "psymtab.h".
15155 * infrun.c (use_displaced_stepping): Use find_record_target
15156 instead of RECORD_IS_USED.
15157 (adjust_pc_after_break): Use record_full_is_used instead of
15159 * record-btrace.c (record_btrace_open): Call record_preopen
15160 instead of checking RECORD_IS_USED.
15161 * record-full.c (record_full_shortname)
15162 (record_full_core_shortname): New globals.
15163 (record_full_is_used): New function.
15164 (find_full_open): Call record_preopen instead of checking
15166 (init_record_full_ops): Set the target's shortname to
15167 record_full_shortname.
15168 (init_record_full_core_ops): Set the target's shortname to
15169 record_full_core_shortname.
15170 * record-full.h (record_full_is_used): Declare.
15171 * record.c (find_record_target): Make extern.
15172 (record_preopen): New function.
15173 * record.h (RECORD_IS_USED): Delete macro.
15174 (find_record_target, record_preopen): Declare functions.
15178 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
15179 'len''s type to ULONGEST.
15180 (core_xfer_shared_libraries_aix): Likewise.
15181 * gdbarch.c, gdbarch.h: Regenerated.
15182 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
15183 Change type of 'len' to ULONGEST.
15184 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15185 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
15189 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
15190 type of 'len' to ULONGEST.
15191 (linux_xfer_osdata_processgroups): Likewise.
15192 (linux_xfer_osdata_threads): Likewise.
15193 (linux_xfer_osdata_fds): Likewise.
15194 (linux_xfer_osdata_isockets): Likewise.
15195 (linux_xfer_osdata_shm): Likewise.
15196 (linux_xfer_osdata_sem): Likewise.
15197 (linux_xfer_osdata_msg): Likewise.
15198 (linux_common_xfer_osdata): Likewise.
15199 (struct osdata_type) <getter>: Likewise.
15200 * common/linux-osdata.h (linux_common_xfer_osdata): Update
15205 * target.h (target_xfer_partial_ftype): Update.
15206 (struct target_ops) <to_xfer_partial>: Change 'len' type to
15208 * aix-thread.c (aix_thread_xfer_partial): Change type of
15209 argument 'len' to ULONGEST.
15210 * auxv.c (procfs_xfer_auxv): Likewise.
15211 (ld_so_xfer_auxv): Likewise.
15212 (memory_xfer_auxv): Likewise.
15213 * bfd-target.c (target_bfd_xfer_partial): Likewise.
15214 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
15215 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
15216 * corelow.c (core_xfer_partial): Likewise.
15217 * ctf.c (ctf_xfer_partial): Likewise.
15218 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
15220 (darwin_read_dyld_info): Likewise.
15221 (darwin_xfer_partial): Likewise.
15222 * exec.c (section_table_xfer_memory_partial): Likewise.
15223 (exec_xfer_partial): Likewise.
15224 * exec.h (section_table_xfer_memory_partial): Update
15226 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
15227 instead of plongest.
15228 (gnu_xfer_partial): Likewise.
15229 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
15230 (ia64_hpux_xfer_solib_got): Likewise.
15231 (ia64_hpux_xfer_partial): Likewise.
15232 * ia64-linux-nat.c (ia64_linux_xfer_partial):
15233 * inf-ptrace.c (inf_ptrace_xfer_partial):
15234 * inf-ttrace.c (inf_ttrace_xfer_partial):
15235 * linux-nat.c (linux_xfer_siginfo): Likewise.
15236 (linux_nat_xfer_partial): Likewise.
15237 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
15238 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
15239 * monitor.c (monitor_xfer_memory): Likewise.
15240 (monitor_xfer_partial): Likewise.
15241 * procfs.c (procfs_xfer_partial): Likewise.
15242 * record-full.c (record_full_xfer_partial): Likewise.
15243 (record_full_core_xfer_partial): Likewise.
15244 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
15245 instead of plongest.
15246 (gdbsim_xfer_partial): Likewise.
15247 * remote.c (remote_xfer_partial): Likewise.
15248 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
15249 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
15251 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
15252 (rs6000_xfer_shared_libraries): Likewise.
15253 * sol-thread.c (sol_thread_xfer_partial): Likewise.
15254 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
15255 (sparc_xfer_partial): Likewise.
15256 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
15257 (spu_xfer_partial): Likewise.
15258 * spu-multiarch.c (spu_xfer_partial): Likewise.
15259 * target.c (target_read_live_memory): Likewise.
15260 (memory_xfer_live_readonly_partial): Likewise.
15261 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
15262 (target_xfer_partial, default_xfer_partial): Likewise.
15263 (current_xfer_partial): Likewise.
15264 * tracepoint.c (tfile_xfer_partial): Likewise.
15265 * windows-nat.c (windows_xfer_memory): Likewise. Call
15266 pulongest instead of plongest.
15267 (windows_xfer_partial): Likewise.
15268 (windows_xfer_shared_libraries): Likewise.
15272 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
15273 target_xfer_partial_ftype.
15279 * valops.c (value_struct_elt_bitpos): New function
15280 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
15281 object to 'None' if the field name is an empty string ("").
15282 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
15283 attribute to look for a field when 'name' is 'None'.
15284 (get_field_type): New function
15289 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
15290 (try_open_dwop_file): Ditto.
15291 * gdb_bfd.c: #include "vec.h".
15292 (bfdp): New typedef.
15293 (struct gdb_bfd_data): New member included_bfds.
15294 (gdb_bfd_unref): Unref all included bfds.
15295 (gdb_bfd_record_inclusion): New function.
15296 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
15300 * gdbcore.h (deprecated_core_resize_section_table): Remove.
15304 * defs.h (use_windows): Remove.
15305 * gdb.c (main): Update.
15306 * main.c (captured_main, gdb_main): Update.
15307 * main.h (struct captured_main_args) <use_windows>: Remove.
15308 * top.c (use_windows): Remove.
15312 * defs.h (deprecated_flush_hook): Remove.
15317 * linux-thread-db.c (try_thread_db_load): Add parameter
15318 check_auto_load_safe. Move here the file_is_auto_load_safe call.
15319 (try_thread_db_load_from_pdir_1): Move it there from here.
15320 (try_thread_db_load_from_sdir): Update caller.
15321 (try_thread_db_load_from_dir): Move it there from here.
15325 * regformats/regdat.sh: Always rewrite the register file.
15329 * Makefile.in (CHECK_HEADERS): New variable.
15330 (check-headers:): New rule.
15334 * cli/cli-setshow.c (do_set_command): Update.
15335 * defs.h (deprecated_set_hook): Remove.
15336 * top.c (deprecated_set_hook): Remove.
15340 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
15341 the tracepoint if the PC is a pseudo-register.
15345 * defs.h (XCALLOC): Remove.
15346 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
15347 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
15348 * dwarf2loc.c (allocate_piece_closure): Likewise.
15349 * elfread.c (elf_symfile_segments): Likewise.
15350 (elf_symfile_segments): Likewise.
15351 * gdbtypes.c (copy_type_recursive): Likewise.
15352 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
15353 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
15354 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
15356 * mt-tdep.c (mt_gdbarch_init): Likewise.
15357 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
15359 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
15360 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
15361 * registry.c (registry_alloc_data): Likewise.
15362 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
15363 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
15364 * serial.c (serial_fdopen_ops): Likewise.
15365 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
15367 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
15368 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
15373 * defs.h (XMALLOC): Remove.
15374 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
15375 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
15376 * cli-out.c (struct ui_out *): Likewise.
15377 * cli/cli-dump.c (add_dump_command): Likewise.
15378 (add_dump_command): Likewise.
15379 * complaints.c (get_complaints): Likewise.
15380 (find_complaint): Likewise.
15381 * dwarf2-frame.c (execute_cfa_program): Likewise.
15382 * dwarf2read.c (abbrev_table_read_table): Likewise.
15383 * gdbarch.sh: Likewise.
15384 * gdbarch.c: Rebuild.
15385 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
15386 * interps.c (interp_new): Likewise.
15387 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
15388 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
15389 * mi/mi-console.c (mi_console_file_new): Likewise.
15390 * mi/mi-interp.c (mi_interpreter_init): Likewise.
15391 * mi/mi-out.c (mi_out_new): Likewise.
15392 * mi/mi-parse.c (mi_parse): Likewise.
15393 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
15394 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
15395 * observer.c (xalloc_observer_list_node): Likewise.
15396 * regcache.c (regcache_xmalloc_1): Likewise.
15397 * reggroups.c (reggroup_new): Likewise.
15398 (_initialize_reggroup): Likewise.
15399 * registry.c (register_data_with_cleanup): Likewise.
15400 * remote.c (remote_notif_stop_alloc_reply): Likewise.
15401 * ser-base.c (serial_ttystate): Likewise.
15402 * ser-mingw.c (make_pipe_state): Likewise.
15403 * ser-pipe.c (pipe_open): Likewise.
15404 * serial.c (serial_open): Likewise.
15405 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
15406 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
15407 (tui_alloc_win_info): Likewise.
15408 (tui_add_content_elements): Likewise.
15409 * tui/tui-file.c (tui_file_new): Likewise.
15410 * tui/tui-out.c (tui_out_new): Likewise.
15411 * ui-file.c (mem_file_new): Likewise.
15412 * ui-out.c (push_level): Likewise.
15413 (make_cleanup_ui_out_end): Likewise.
15414 (append_header_to_list): Likewise.
15415 (ui_out_new): Likewise.
15416 * user-regs.c (user_reg_add_builtin): Likewise.
15420 * defs.h (XZALLOC): Remove.
15421 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
15422 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
15423 (get_ada_tasks_inferior_data): Likewise.
15424 * auto-load.c (get_auto_load_pspace_data): Likewise.
15425 * auxv.c (get_auxv_inferior_data): Likewise.
15426 * bfd-target.c (target_bfd_reopen): Likewise.
15427 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
15428 (deprecated_insert_raw_breakpoint): Likewise.
15429 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
15430 * corelow.c (core_open): Likewise.
15431 * darwin-nat.c (darwin_check_new_threads): Likewise.
15432 (darwin_attach_pid): Likewise.
15433 * dummy-frame.c (dummy_frame_push): Likewise.
15434 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
15435 * dwarf2loc.c (allocate_piece_closure): Likewise.
15436 * elfread.c (elf_symfile_segments): Likewise.
15437 * eval.c (ptrmath_type_p): Likewise.
15438 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
15439 * gdbtypes.c (alloc_type_arch): Likewise.
15440 (alloc_type_instance): Likewise.
15441 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
15442 * inf-child.c (inf_child_can_use_agent): Likewise.
15443 * inflow.c (get_inflow_inferior_data): Likewise.
15444 * infrun.c (save_infcall_suspend_state): Likewise.
15445 * jit.c (jit_reader_load): Likewise.
15446 (get_jit_objfile_data): Likewise.
15447 (get_jit_program_space_data): Likewise.
15448 (jit_object_open_impl): Likewise.
15449 (jit_symtab_open_impl): Likewise.
15450 (jit_block_open_impl): Likewise.
15451 (jit_frame_sniffer): Likewise.
15452 * linux-fork.c (add_fork): Likewise.
15453 * maint.c (make_command_stats_cleanup): Likewise.
15454 * objfiles.c (get_objfile_pspace_data): Likewise.
15455 * opencl-lang.c (struct lval_closure): Likewise.
15456 * osdata.c (osdata_start_osdata): Likewise.
15457 * progspace.c (new_address_space): Likewise.
15458 (add_program_space): Likewise.
15459 * remote-sim.c (get_sim_inferior_data): Likewise.
15460 * sh-tdep.c (sh_gdbarch_init): Likewise.
15461 * skip.c (Ignore): Likewise.
15462 (skip_delete_command): Likewise.
15463 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
15464 (library_list_start_library): Likewise.
15465 (solib_aix_current_sos): Likewise.
15466 * solib-darwin.c (get_darwin_info): Likewise.
15467 (darwin_current_sos): Likewise.
15468 * solib-dsbt.c (get_dsbt_info): Likewise.
15469 * solib-ia64-hpux.c (new_so_list): Likewise.
15470 (ia64_hpux_get_solib_linkage_addr): Likewise.
15471 * solib-spu.c (append_ocl_sos): Likewise.
15472 (spu_current_sos): Likewise.
15473 * solib-svr4.c (get_svr4_info): Likewise.
15474 (svr4_keep_data_in_core): Likewise.
15475 (library_list_start_library): Likewise.
15476 (svr4_default_sos): Likewise.
15477 (svr4_read_so_list): Likewise.
15478 * solib-target.c (library_list_start_library): Likewise.
15479 (solib_target_current_sos): Likewise.
15480 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
15481 * symfile-debug.c (install_symfile_debug_logging): Likewise.
15482 * symfile.c (default_symfile_segments): Likewise.
15483 * target-descriptions.c (tdesc_data_init): Likewise.
15484 (tdesc_create_reg): Likewise.
15485 (struct tdesc_type *): Likewise.
15486 (tdesc_create_vector): Likewise.
15487 (tdesc_set_struct_size): Likewise.
15488 (struct tdesc_type *): Likewise.
15489 (tdesc_free_feature): Likewise.
15490 (tdesc_create_feature): Likewise.
15491 * windows-nat.c (windows_add_thread): Likewise.
15492 (windows_make_so): Likewise.
15493 * xml-support.c (gdb_xml_body_text): Likewise.
15494 (gdb_xml_create_parser_and_cleanup): Likewise.
15495 (xml_process_xincludes): Likewise.
15496 * xml-syscall.c (allocate_syscalls_info): Likewise.
15497 (syscall_create_syscall_desc): Likewise.
15501 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
15502 function, with code from i386_stap_parse_special_token.
15503 (i386_stap_parse_special_token_three_arg_disp): Likewise.
15504 (i386_stap_parse_special_token): Move code to the two functions
15505 above; simplify it.
15511 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
15512 bp_err_string. Don't mark the location shlib_disabled if the
15513 error thrown wasn't a generic or memory error. Catch errors
15514 thrown while inserting breakpoints in overlayed code. Output
15515 error message of software breakpoints.
15516 * remote.c (remote_insert_breakpoint): If this breakpoint has
15517 target-side commands but this stub doesn't support Z0 packets,
15518 throw NOT_SUPPORTED_ERROR error.
15519 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
15520 * target.h (target_insert_breakpoint): Extend comment.
15521 (target_insert_hw_breakpoint): Add comment.
15525 * remote.c (remote_add_thread): Add threads silently if starting
15527 (remote_notice_new_inferior): If in all-stop, and starting up,
15528 don't call notice_new_inferior.
15529 (get_current_thread): New function, factored out from ...
15530 (add_current_inferior_and_thread): ... this. Adjust.
15531 (remote_start_remote) <all-stop>: Fetch the thread list. If we
15532 found any thread, then select the remote's current thread as GDB's
15533 current thread too.
15537 * NEWS: Create a new section for the next release branch.
15538 Rename the section of the current branch, now that it has
15543 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
15544 * version.in: Bump version to 7.7.50.DATE-cvs.
15548 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
15549 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
15550 (spu_xfer_partial): Cast 'buf' to 'const char *'.
15554 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
15555 return value of bfd_get_filename to symbol_file_add_from_bfd.
15560 * coff-pe-read.c (struct read_pe_section_data): Add index field.
15561 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
15562 to prim_record_mininal_symbol_and_info.
15563 (add_pe_forwarded_sym): Use known section number of forwarded symbol
15564 in call to prim_record_minimal_symbol_and_info.
15565 (read_pe_exported_syms): Set index field of section_data.
15569 * features/aarch64-core.xml (cpsr): Change to be 64bit.
15570 * features/aarch64.c: Regenerate.
15574 * target.c (return_null): Define.
15575 (update_current_target): Use it instead of return_zero for
15576 functions that return a pointer.
15580 * source.c (add_path): Fix check for duplicated paths in the previously
15585 * ada-lang.c: Remove duplicated include statements.
15586 * alphabsd-nat.c: Ditto.
15587 * amd64-darwin-tdep.c: Ditto.
15588 * amd64fbsd-nat.c: Ditto.
15589 * auto-load.c: Ditto.
15591 * breakpoint.c: Ditto.
15592 * dbxread.c: Ditto.
15593 * fork-child.c: Ditto.
15594 * gdb_usleep.c: Ditto.
15595 * i386-darwin-tdep.c: Ditto.
15596 * i386fbsd-nat.c: Ditto.
15598 * inferior.c: Ditto.
15599 * jv-lang.c: Ditto.
15600 * linux-nat.c: Ditto.
15601 * linux-tdep.c: Ditto.
15602 * m68kbsd-nat.c: Ditto.
15603 * m68klinux-nat.c: Ditto.
15604 * microblaze-tdep.c: Ditto.
15605 * mips-linux-tdep.c: Ditto.
15606 * mn10300-tdep.c: Ditto.
15607 * nto-tdep.c: Ditto.
15608 * opencl-lang.c: Ditto.
15610 * printcmd.c: Ditto.
15611 * regcache.c: Ditto.
15612 * remote-m32r-sdi.c: Ditto.
15614 * symfile.c: Ditto.
15616 * tilegx-linux-nat.c: Ditto.
15617 * tilegx-tdep.c: Ditto.
15618 * tracepoint.c: Ditto.
15620 * vaxbsd-nat.c: Ditto.
15621 * windows-nat.c: Ditto.
15622 * xtensa-tdep.c: Ditto.
15626 * spu-linux-nat.c (_initialize_spu_nat): Declare.
15631 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
15632 (pdc_write_regs): Likewise.
15633 (fetch_regs_kernel_thread): Likewise.
15634 (store_regs_kernel_thread): Likewise.
15638 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
15639 tagged type objects to their actual type.
15643 * ada-valprint.c (print_field_values): Add "language" parameter.
15644 Update calls to print_field_values and print_variant_part.
15645 Pass new parameter "language" in call to val_print instead
15646 of "current_language". Replace call to ada_val_print by call
15648 (print_variant_part): Add "language" parameter.
15649 (ada_val_print_struct_union): Update call to print_field_values.
15653 * ada-valprint.c (ui_memcpy): Delete.
15654 (ada_print_floating): Update documentation. Add empty line
15655 between between function documentation and implementation.
15656 Delete variable "buffer". Use ui_file_xstrdup in place of
15657 ui_file_put. Minor adjustments following this change.
15661 * ada-valprint.c (ada_val_print_string): New function,
15662 extracted from ada_val_print_array.
15663 (ada_val_print_array): Replace extracted code by call
15664 to ada_val_print_string followed by a return. Move
15665 "else" branch to the function's top block.
15669 * ada-valprint.c (ada_val_print_array): Move implementation
15670 down. Rename parameter "offset" and "val" into "offset_aligned"
15671 and "original_value" respectively. Add parameter "offset".
15675 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
15676 re-organizing the code. Change the "???" message printed
15677 when target type is a TYPE_CODE_UNDEF into
15678 "<ref to undefined type>".
15682 * ada-valprint.c (print_record): Delete, implementation inlined...
15683 (ada_val_print_struct_union): ... here. Remove call to
15684 ada_check_typedef in inlined implementation.
15688 * ada-valprint.c (ada_val_print_gnat_array): New function,
15689 extracted from ada_val_print_1;
15690 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
15691 (ada_val_print_flt, ada_val_print_struct_union)
15692 (ada_val_print_ref): Likewise.
15693 (ada_val_print_1): Delete variables i and elttype.
15694 Replace extracted-out code by call to corresponding
15699 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
15703 * ada-valprint.c (ada_val_print_1): Replace calls to
15704 ada_val_print_1 by calls to val_print.
15708 * ada-valprint.c (ada_val_print_1): Add parameter "language".
15709 Update calls to self accordingly. Replace calls to c_val_print
15710 by calls to val_print.
15714 * ada-valprint.c (print_record): Delete declaration.
15715 (adjust_type_signedness, ada_val_print_1): Likewise.
15716 (ada_val_print): Move function implementation down.
15717 (print_variant_part, print_field_values, print_record):
15718 Move function implementation up.
15722 * python/py-type.c (typy_get_name): New function.
15723 (type_object_getset): Add entry for attribute "name".
15724 * NEWS: Add entry mentioning this new attribute.
15728 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
15733 * gnu-nat.c (info_port_rights): Add qualifier const to
15738 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
15742 * gnu-nat.c (make_inf) Update declaration.
15743 (make_inf): Make it static.
15744 (inf_set_traced): Likewise.
15745 (inf_port_to_thread, inf_task_died_status): Likewise.
15749 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
15753 * gnu-nat.c (_initialize_gnu_nat): Declare.
15757 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
15759 (struct gdbarch_info) <byte_order>: Change type to
15761 <byte_order_for_code>: Likewise.
15762 * gdbarch.c, gdbarch.h: Regenerated.
15766 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
15770 * doublest.c (convert_doublest_to_floatformat): Use const, not
15772 * somread.c (som_symtab_read): Likewise.
15776 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
15777 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
15778 (gdb_bfd_fopen): Ditto.
15779 (gdb_bfd_openr): Ditto.
15780 (gdb_bfd_openw): Ditto.
15781 (gdb_bfd_openr_iovec): Ditto.
15782 (gdb_bfd_fdopenr): Ditto.
15783 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
15784 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
15786 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
15788 * symfile-mem.c (symbol_file_add_from_memory): Removed
15789 gdb_bfd_stash_filename.
15793 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
15798 Update year range in copyright notice of all files.
15802 * top.c (print_gdb_version): Set copyright year to 2014.
15806 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
15808 For older changes see ChangeLog-2013.
15814 version-control: never