3 * breakpoint.c (bpstat_explains_signal) <Moribund locations>:
4 Return BPSTAT_SIGNAL_PASS instead of BPSTAT_SIGNAL_HIDE.
5 (explains_signal_watchpoint): Return BPSTAT_SIGNAL_PASS instead of
7 (base_breakpoint_explains_signal): Return BPSTAT_SIGNAL_PASS
8 instead of BPSTAT_SIGNAL_HIDE.
9 * infrun.c (handle_inferior_event): Rework random signal checks.
13 * infrun.c (struct execution_control_state): Remove
14 'random_signal' field.
15 (handle_syscall_event): Use bpstat_causes_stop instead of
16 bpstat_explains_signal. Don't set ecs->random_signal.
17 (handle_inferior_event): New 'random_signal' local.
18 <TARGET_WAITKIND_FORKED, TARGET_WAITKIND_VFORKED,
19 TARGET_WAITKIND_EXECD>: Use bpstat_causes_stop instead of
20 bpstat_explains_signal. Don't set ecs->random_signal.
21 <TARGET_WAITKIND_STOPPED>: Adjust to use local instead of
26 * infrun.c (handle_inferior_event): Move comment from the
27 function's body to the function's description, adjusted.
31 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>:
32 Handle STOP_QUIETLY_NO_SIGSTOP and STOP_QUIETLY_REMOTE here.
33 Assert we never fall through out of the TARGET_WAITKIND_LOADED
38 * python/py-linetable.c (ltpy_has_line)
39 (ltpy_get_all_source_lines): Fix loop termination condition.
43 * mi/mi-parse.h (struct mi_parse) <language>: New field.
44 * mi/mi-main.c (mi_cmd_execute): Temporarily set language to
45 PARSE->LANGUAGE during command execution, if set.
46 * mi/mi-parse.c: Add "language.h" #include.
47 (mi_parse): Add parsing of "--language" command option.
49 * NEWS: Add entry mentioning the new "--language" command option.
54 * cli/cli-utils.h (extract_arg_const): Add declaration.
55 * cli/cli-utils.c (extract_arg_const): New function.
56 (extract_arg): Reimplement using extract_arg_const.
60 * language.h: Add "symtab.h" #include.
64 * breakpoint.c (bpstat_check_breakpoint_conditions): For thread
65 specific breakpoints, don't evaluate breakpoint condition if
72 * cp-support.c (insepct_type): Add support for substituting
73 namespace aliases, too.
74 * dwarf2read.c (scan_partial_symbols): Add a partial symbol
75 for DW_TAG_imported_declaration.
76 (add_partial_symbol): Likewise.
77 (process_die): Handle namespace aliases with
79 (die_needs_namespace): Add DW_TAG_imported_declaration.
80 (read_namespace_alias): New function.
81 (load_partial_dies): Load DW_TAG_imported_declaration, too.
82 (new_symbol_full): Handle DW_TAG_imported_declaration.
86 * p-exp.y (uptok): Make first parameter const.
87 (yylex): Make `tokstart' and `tokptr' const.
88 Don't copy the lexer input to a temporary buffer.
90 Remove const workaround for parse_escape.
91 Create a temporary buffer for a convenience variable instead
92 of doing in-place modification of the input.
93 If a match is found with a different case from the input,
94 do not change the input at all.
95 Use `tmp' to construct the resultant stoken instead of
100 * breakpoint.c (breakpoint_cond_eval): Fix and enhance comment.
104 * mi/mi-main.c (mi_cmd_list_features): Replace "info-ada-exceptions"
105 entry with "ada-exceptions".
109 * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
110 after re-initialization of OBJFILE's obstack.
114 * breakpoint.c (bpstat_check_breakpoint_conditions): Assert
115 bs->stop != 0 on entry. Update function comment. Simplify early
116 exit for frame mismatch. Reindent rest of function.
120 * objc-lang.c (uniquify_strings): Prevent invoking qsort with
125 Work around gold/15646.
126 * dwarf2read.c (read_index_from_section): Update comment.
127 (struct dw2_symtab_iterator): New member global_seen.
128 (dw2_symtab_iter_init): Initialize it.
129 (dw2_symtab_iter_next): Skip duplicate global symbols.
130 (dw2_expand_symtabs_matching): Ditto.
134 * mi/mi-cmds.h (mi_cmd_info_ada_exceptions): Add declaration.
135 * mi/mi-cmds.c (mi_cmds): Add entry for -info-ada-exceptions
137 * mi/mi-cmd-info.c: #include "ada-lang.c" and "arch-utils.c".
138 (mi_cmd_info_ada_exceptions): New function.
139 * mi/mi-main.c (mi_cmd_list_features): Add "info-ada-exceptions".
143 * ada-lang.h: #include "vec.h".
144 (struct ada_exc_info): New.
145 (ada_exc_info): New typedef.
146 (DEF_VEC_O(ada_exc_info)): New vector.
147 (ada_exceptions_list): Add declaration.
148 * ada-lang.c (ada_is_exception_sym)
149 (ada_is_non_standard_exception_sym, compare_ada_exception_info)
150 (sort_remove_dups_ada_exceptions_list)
151 (ada_exc_search_name_matches, ada_add_standard_exceptions)
152 (ada_add_exceptions_from_frame, ada_add_global_exceptions)
153 (ada_exceptions_list_1, ada_exceptions_list)
154 (info_exceptions_command): New function.
155 (_initialize_ada_language): Add "info exception" command.
160 * NEWS: Add linetable feature.
161 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-linetable entries.
162 * python/py-linetable.c: New file.
163 * python/py-symtab.c (stpy_get_linetable): New function.
164 * python/python-internal.h (symtab_to_linetable_object): Declare.
165 (gdbpy_initialize_linetable): Ditto.
166 * python/python.c (_initialize_python): Call
167 gdbpy_initialize_linetable.
171 * ada-lang.c (create_ada_exception_catchpoint): Enhance
172 the documentation of fields "except_string" and "condition".
173 * mi/mi-cmd-catch.c (mi_cmd_catch_assert): Reallocate
174 CONDITION on the heap before passing it to
175 create_ada_exception_catchpoint.
176 (mi_cmd_catch_exception): Likewise for EXCEPTION_NAME and
181 * config.in, configure: Rebuild.
182 * configure.ac (HAVE_TKILL_SYSCALL): Check for "syscall".
186 * remote-sim.c (gdbsim_detach): Break declaration into
187 shorter lines. No code change.
191 * remote-sim.c (gdbsim_detach): Fix prototype.
195 * dwarf2read.c (dwarf2_read_debug): Change to unsigned int.
196 (create_debug_types_hash_table): Only print debugging messages for
197 each TU if dwarf2-read >= 2.
198 (process_queue): Ditto.
199 (_initialize_dwarf2_read): Make "set debug dwarf2-read" a zuinteger.
204 * configure: Rebuild.
205 * configure.ac: Remove mentions of HAVE_MULTIPLE_PROC_FDS.
209 * configure, config.in: Rebuild.
210 * configure.ac: Remove unused configury.
214 * m32c-tdep.c: Use gdb_string.h.
218 * configure, config.in: Rebuild.
219 * configure.ac: Remove all link.h-related checks.
223 * acinclude.m4: Include common.m4.
224 * common/common.m4: New file.
225 * configure, config.in: Rebuild.
226 * configure.ac: Use GDB_AC_COMMON.
230 * NEWS: Mention that "set debug symtab-create" now accepts a
232 * buildsym.c (end_symtab_from_static_block): Call set_symtab_primary
233 to set the symtab's primary flag.
234 * jit.c (finalize_symtab): Ditto.
235 * mdebugread.c (psymtab_to_symtab_1): Ditto.
236 * symfile.c (allocate_symtab): Only print debugging messages for
237 symtab_create_debug levels 2 and higher.
238 * symtab.c (symtab_create_debug): Change type to unsigned int.
239 (set_symtab_primary): New function.
240 (_initialize_symtab): Change "set debug symtab-create" to a
242 * symtab.h (set_symtab_primary): Declare.
243 (symtab_create_debug): Update decl.
247 * aix-thread.c (aix_thread_detach): Update.
248 * corelow.c (core_detach): Update.
249 * darwin-nat.c (darwin_detach): Update.
250 * dec-thread.c (dec_thread_detach): Update.
251 * gnu-nat.c (gnu_detach): Update.
252 * go32-nat.c (go32_detach): Update.
253 * inf-ptrace.c (inf_ptrace_detach): Update.
254 * inf-ttrace.c (inf_ttrace_detach): Update.
255 * linux-fork.c (linux_fork_detach): Update.
256 * linux-fork.h (linux_fork_detach): Update.
257 * linux-nat.c (linux_nat_detach): Update. Introduce "tem"
258 local for const-correctness.
259 * linux-thread-db.c (thread_db_detach): Update.
260 * monitor.c (monitor_detach): Update.
261 * nto-procfs.c (procfs_detach): Update.
262 * procfs.c (procfs_detach): Update.
263 * record.c (record_detach): Update.
264 * record.h (record_detach): Update.
265 * remote-m32r-sdi.c (m32r_detach): Update.
266 * remote-mips.c (mips_detach): Update.
267 * remote-sim.c (gdbsim_detach): Update.
268 * remote.c (remote_detach_1, remote_detach)
269 (extended_remote_detach): Update.
270 * sol-thread.c (sol_thread_detach): Update.
271 * target.c (target_detach): Make "args" const.
272 (init_dummy_target): Update.
273 * target.h (struct target_ops) <to_detach>: Make argument const.
274 (target_detach): Likewise.
275 * windows-nat.c (windows_detach): Update.
280 * solib-svr4.c (svr4_exec_displacement): Ignore filesz, memsz, flags
281 and align fields for PT_GNU_RELRO segments.
286 * python/py-cmd.c: Add COMPLETE_EXPRESSION constant.
290 * NEWS: Document Python temporary breakpoint support.
291 * python/py-breakpoint.c (bppy_get_temporary): New function.
292 (bppy_init): New keyword: temporary. Parse it and set breakpoint
293 to temporary if True.
297 * sparc-tdep.c (sparc_analyze_control_transfer): Assertion
298 removed to allow analyzing unconditional branch instructions
299 with PC-relative offsets of zero.
303 * mi/mi-cmd-var.c: Include "language.h".
304 (mi_cmd_var_info_expression): Get language name from
306 * varobj.c (varobj_language_string): Remove.
307 (variable_language): Remove declaration.
309 (varobj_get_language): Change the type of return value.
310 (variable_language): Remove.
311 * varobj.h (enum varobj_languages): Remove.
312 (varobj_language_string): Remove declaration.
313 (varobj_get_language): Update declaration.
317 * language.h (struct language_defn) <la_natural_name>: New
319 * ada-lang.c (ada_language_defn): Initialize field
321 * c-lang.c (c_language_defn): Likewise.
322 (cplus_language_defn, asm_language_defn): Likewise.
323 * d-lang.c (d_language_defn): Likewise.
324 * f-lang.c (f_language_defn): Likewise.
325 * go-lang.c (go_language_defn): Likewise.
326 * jv-lang.c (java_language_defn): Likewise.
327 * language.c (unknown_language_defn ): Likewise.
328 (auto_language_defn): Likewise.
329 * m2-lang.c (m2_language_defn): Likewise.
330 * objc-lang.c (objc_language_defn): Likewise.
331 * opencl-lang.c (opencl_language_defn): Likewise.
332 * p-lang.c (pascal_language_defn): Likewise.
336 * language.c (language_str): Return const char *.
337 (add_language): Add const to 'language_names'
338 * language.h (struct language_defn) <la_name>: Add const.
339 (language_str: Update declaration.
343 * s390-linux-nat.c (s390_read_description): Consider the TE field
344 in the HWCAP for determining 'have_regset_tdb'.
349 * dwarf2read.c (skip_one_die): Sanity check DW_AT_sibling
350 values. (read_partial_die): Likewise.
355 * top.c (command_line_input): Unify interactivity tests to use
356 input_from_terminal_p.
357 * event-top.c (command_line_handler): Likewise.
361 * Makefile.in (check-perf): New target.
366 * arm-tdep.c (print_fpu_flags): Use filtered output routines.
367 (arm_print_float_info): Likewise.
371 * target.c (memory_xfer_partial): Cap write to 4KB.
375 * breakpoint.c (create_longjmp_master_breakpoint): Allow libc
376 probe scan even when the arch provides no get_longjmp_target.
380 * infrun.c (handle_syscall_event): Don't set or clear stop_signal.
381 (handle_inferior_event) <TARGET_WAITKIND_FORKED,
382 TARGET_WAITKIND_VFORKED>: Don't set stop_signal to
383 GDB_SIGNAL_TRAP, or clear it. Pass GDB_SIGNAL_0 to
384 bpstat_explains signal, instead of GDB_SIGNAL_TRAP.
385 <bpstat handling>: If the bpstat chain wants the signal to be
386 hidden, then set stop_signal to GDB_SIGNAL_0 instead of
391 * breakpoint.c (update_watchpoint): Update error message and add
392 an additional error message.
396 * s390-tdep.h: Rename to...
397 * s390-linux-tdep.h: ...here.
398 * s390-tdep.c: Rename to...
399 * s390-linux-tdep.c: ...here. Adjust #include.
400 * s390-nat.c: Rename to...
401 * s390-linux-nat.c: ...here. Adjust #include.
402 * config/s390/s390.mh: Rename to...
403 * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
405 * configure.host: Reflect host rename "s390" -> "linux".
406 * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
407 * Makefile.in (ALL_TARGET_OBS): Likewise.
408 (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
410 (ALLDEPFILES): Reflect rename of .c files.
414 * s390-nat.c: Whitespace cleanup.
415 * s390-tdep.c: Likewise.
416 * s390-tdep.h: Remove empty line at end of file.
420 * linux-tdep.c (linux_corefile_thread_callback): Preinitialize
425 * utils.c (reg): Move undefinition...
426 * gdb_curses.h: ... here. Update comment to mention AIX.
430 * exec.h (add_target_sections_of_objfile): New declaration.
431 * exec.c (add_target_sections_of_objfile): New function.
432 * symfile.c (add_symbol_file_command): Update current target sections.
433 (remove_symbol_file_command): New command.
434 (symfile_free_objfile): New function.
435 (_initialize_symfile): Register observer for free_objfile events.
436 * NEWS: Add description of the remove-symbol-file command.
437 * breakpoint.c (disable_breakpoints_in_freed_objfile): New function.
438 * objfiles.c (free_objfile): Notify free_objfile.
439 (is_addr_in_objfile): New function.
440 * objfiles.h (is_addr_in_objfile): New declaration.
441 * printcmd.c (clear_dangling_display_expressions): Act upon free_objfile
442 events instead of solib_unloaded events.
443 (_initialize_printcmd): Register observer for free_objfile instead
444 of solib_unloaded notifications.
445 * solib.c (remove_user_added_objfile): New function.
446 (_initialize_symfile): Add remove-symbol-file.
450 * infcmd.c (default_print_one_register_info): Use val_print to
451 print all values even optimized out or unavailable ones. Don't
452 try to print a raw form of optimized out or unavailable values.
456 * auto-load.c (auto_load_pspace_data_cleanup): Get data from
457 parameter 'arg' instead of from program_space_data.
458 * objfiles.c (objfiles_pspace_data_cleanup): Likewise.
459 * solib-darwin.c (darwin_pspace_data_cleanup): Likewise.
460 * solib-dsbt.c (dsbt_pspace_data_cleanup): Likewise.
461 * solib-svr4.c (svr4_pspace_data_cleanup): Likewise.
462 * inflow.c (inflow_inferior_data_cleanup): Get data from
463 parameter 'arg' instead of inferior_data.
464 * registry.h: Add comments.
468 * breakpoint.c (watchpoints_triggered)
469 <!target_stopped_data_address>: Hardcode return 1.
473 * infrun.c (process_event_stop_test): Remove unnecessary scoping
478 * infrun.c (process_event_stop_test): New function, factored out
479 from handle_inferior_event.
480 (handle_inferior_event): 'process_event_stop_test' is now a
481 function instead of a goto label -- adjust.
485 * infrun.c (handle_inferior_event): Move process_event_stop_test
486 goto label to the else branch of the ecs->random_signal check,
487 along with FRAME and GDBARCH re-fetching.
491 * infrun.c (switch_back_to_stepped_thread): New function, factored
492 out from handle_inferior_event.
493 (handle_inferior_event): Adjust to call
494 switch_back_to_stepped_thread. Call it also at the tail of the
495 random signal handling, and return, instead of also handling
496 random signals just before the stepping tests.
500 * infrun.c (clear_stop_func): Delete.
501 (handle_inferior_event): Don't call clear_stop_func and don't
502 clear 'ecs->random_signal'.
506 * varobj.c (struct varobj_root) <lang>: Rename to 'lang_ops'.
507 (varobj_create, varobj_get_path_expr): Update.
508 (varobj_value_has_mutated, varobj_update): Likewise.
509 (create_child_with_value, new_root_variable): Likewise.
510 (number_of_children, name_of_variable): Likewise.
511 (value_of_child, my_value_of_variable): Likewise.
512 (varobj_value_is_changeable_p): Likewise.
516 * language.h (struct lang_varobj_ops): Declare.
517 (struct language_defn) <la_varobj_ops>: New field.
518 * ada-lang.c: Include "varobj.h"
519 (defn ada_language_defn): Initialize field 'la_varobj_ops' with
521 * c-lang.c: Include "varobj.h"
522 (c_language_defn): Initialize field 'la_varobj_ops' with
524 (cplus_language_defn): Initialize field 'la_varobj_ops' with
526 (asm_language_defn): Initialize field 'la_varobj_ops' with
528 (minimal_language_defn): Likewise.
529 * d-lang.c (d_language_defn): Likewise.
530 * f-lang.c (f_language_defn): Likewise.
531 * go-lang.c (go_language_defn): Likewise.
532 * m2-lang.c (m2_language_defn): Likewise.
533 * objc-lang.c (objc_language_defn): Likewise.
534 * opencl-lang.c (opencl_language_defn): Likewise.
535 * p-lang.c (pascal_language_defn): Likewise.
536 * language.c (unknown_language_defn): Likewise.
537 (auto_language_defn): Likewise.
538 (local_language_defn): Likewise.
539 * jv-lang.c (java_language_defn): Initialize field
540 'la_varobj_ops' with java_varobj_ops.
541 * varobj.c (varobj_create): Update.
542 * varobj.h (default_varobj_ops): Define macro.
546 * cp-valprint.c (cp_print_value_fields): No longer handle a NULL
548 (cp_print_static_field): If the value is entirely optimized out,
549 print <optimized out> here.
550 * jv-valprint.c (java_print_value_fields): No longer handle a NULL
552 * p-valprint.c (pascal_object_print_static_field): If the value is
553 entirely optimized out, print <optimized out> here.
554 * valops.c (do_search_struct_field)
555 (value_struct_elt_for_reference): No longer handle a NULL static
557 * value.c (value_static_field): Return an optimized out value
562 * remote.c (remote_traceframe_info): Return early if
563 traceframe is not selected.
567 * tracepoint.c (traceframe_fun): Remove.
568 (traceframe_sal): Remove.
569 (set_traceframe_context): Add local variables.
573 * varobj.h (struct lang_varobj_ops): Remove spaces between '*'
578 * linux-tdep.c (linux_corefile_thread_callback): Propagate any
579 failure from register information collection.
583 * linux-tdep.c (linux_corefile_thread_data): Remove `num_notes'
585 (linux_corefile_thread_callback): Update accordingly.
586 (linux_make_corefile_notes): Likewise.
590 * NEWS (New options): Mention set/show startup-with-shell.
591 * config/alpha/nm-osf3.h (START_INFERIOR_TRAPS_EXPECTED): Set to 2
593 * fork-child.c (fork_inferior, startup_inferior): Handle 'set
595 (show_startup_with_shell): New function.
596 (_initialize_fork_child): Register the set/show startup-with-shell
598 * inf-ptrace.c (inf_ptrace_create_inferior): Remove comment.
599 * inf-ttrace.c (inf_ttrace_him): Remove comment.
600 * procfs.c (procfs_init_inferior): Remove comment.
601 * infcmd.c (startup_with_shell): New global.
602 * inferior.h (startup_with_shell): Declare global.
603 (STARTUP_WITH_SHELL): Delete.
604 (START_INFERIOR_TRAPS_EXPECTED): Set to 1 by default instead of 2.
608 * common/gdb_signals.h (gdb_signal_to_symbol_string): Declare.
609 * common/signals.c: Include "gdb_assert.h".
610 (signals): New field 'symbol'.
611 (SET): Use the 'symbol' parameter.
612 (gdb_signal_to_symbol_string): New function.
613 * infrun.c (handle_inferior_event) <random signal>: In debug
614 output, print the random signal enum as string in addition to its
616 * target/waitstatus.c (target_waitstatus_to_string): Print the
617 signal's enum value as string instead of the (POSIX) signal name.
622 * common/linux-osdata.c (command_from_pid): Reduced size of cmd
623 from 32 to 18. Adjusted fscanf format string accordingly.
624 (Avoids leaving cmd unterminated.)
625 (print_sockets): Do not parse tlen, inode, sl, timeout, txq, rxq,
626 trun, retn or extra. (Avoids leaving extra unterminated.) Check
627 that local_address and remote_address will not overflow.
628 (linux_xfer_osdata_modules): Parse lines using strtok to avoid
629 leaving dependencies unterminated. Parse size as "%u" to match
634 * infrun.c (handle_inferior_event) <thread hop>: Don't clear or
635 set ecs->random signal.
639 * infrun.c (keep_going): Update comments.
643 * remote.c (remote_parse_stop_reply) <'T'/'S'/'X' replies>: Map
644 invalid signal numbers to GDB_SIGNAL_UNKNOWN.
648 * include/gdb/signals.def (TARGET_EXC_BAD_ACCESS): Rename to
650 (TARGET_EXC_BAD_INSTRUCTION): Rename to GDB_EXC_BAD_INSTRUCTION.
651 (TARGET_EXC_ARITHMETIC): Rename to GDB_EXC_ARITHMETIC.
652 (TARGET_EXC_EMULATION): Rename to GDB_EXC_EMULATION.
653 (TARGET_EXC_SOFTWARE): Rename to GDB_EXC_SOFTWARE.
654 (TARGET_EXC_BREAKPOINT): Rename to GDB_EXC_BREAKPOINT.
655 (GDB_SIGNAL_LAST): Change description string.
656 * common/signals.c (gdb_signal_from_host, do_gdb_signal_to_host):
657 Adjust to signal renaming.
658 * darwin-nat.c (darwin_decode_message): Likewise.
662 * MAINTAINERS (Write After Approval): Add myself to the list.
666 * breakpoint.c (update_watchpoint): If hardware watchpoints are
667 forced off, downgrade them to software watchpoints if possible,
668 and error out if not possible.
669 (watch_command_1): Move watchpoint type selection closer to
670 watchpoint creation, and extend the comments.
675 * infrun.c (handle_inferior_event): Keep going if we got a random
676 signal we should not stop for, instead of falling through to the
681 * c-varobj.c (cplus_number_of_children): Fix indentation.
686 * printcmd.c (printcmd): Call gdb_flush.
690 * elfread.c (struct elfinfo) <stabindexsect>: Remove.
691 (elf_locate_sections): Update.
695 * Makefile.in (HFILES_NO_SRCDIR): Remove ada-varobj.h.
696 * ada-varobj.c: Remove the include of ada-varobj.h.
697 (ada_varobj_get_number_of_children): Declare.
698 (ada_varobj_get_name_of_child): Make it static.
699 (ada_varobj_get_path_expr_of_child): Likewise.
700 (ada_varobj_get_value_of_child): Likewise.
701 (ada_varobj_get_type_of_child): Likewise.
702 (ada_varobj_get_value_of_array_variable): Likewise.
703 * ada-varobj.h: Remove.
707 * Makefile.in (SFILES): Add c-varobj.c and jv-varobj.c.
708 (COMMON_OBS): Add c-varobj.o and jv-varobj.o.
709 * ada-varobj.c: Include "varobj.h".
710 (ada_number_of_children): New. Moved from varobj.c.
711 (ada_name_of_variable, ada_name_of_child): Likewise.
712 (ada_path_expr_of_child, ada_value_of_child): Likewise.
713 (ada_type_of_child, ada_value_of_variable): Likewise.
714 (ada_value_is_changeable_p, ada_value_has_mutated): Likewise.
715 (ada_varobj_ops): New.
716 * c-varobj.c, jv-varobj.c: New file. Moved from varobj.c.
717 * gdbtypes.c (get_target_type): New. Moved from varobj.c.
718 * gdbtypes.h (get_target_type): Declare.
719 * varobj.c: Remove the inclusion of "ada-varobj.h" and
721 (ANONYMOUS_STRUCT_NAME): Move it to c-varobj.c.
722 (ANONYMOUS_UNION_NAME): Likewise.
723 (get_type, get_value_type, get_target_type): Remove declarations.
724 (value_get_print_value, varobj_value_get_print_value): Likewise.
725 (c_number_of_children, c_name_of_variable): Likewise.
726 (c_name_of_child, c_path_expr_of_child): Likewise.
727 (c_value_of_child, c_type_of_child): Likewise.
728 (c_value_of_variable, cplus_number_of_children): Likewise.
729 (cplus_class_num_children, cplus_name_of_variable): Likewise.
730 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
731 (cplus_value_of_child, cplus_type_of_child): Likewise.
732 (cplus_value_of_variable, java_number_of_children): Likewise.
733 (java_name_of_variable, java_name_of_child): Likewise.
734 (java_path_expr_of_child, java_value_of_child): Likewise.
735 (java_type_of_child, java_value_of_variable): Likewise.
736 (ada_number_of_children, ada_name_of_variable): Likewise.
737 (ada_name_of_child, ada_path_expr_of_child): Likewise.
738 (ada_value_of_child, ada_type_of_child): Likewise.
739 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
740 (ada_value_has_mutated): Likewise.
741 (struct language_specific): Move it to varobj.h.
742 (CPLUS_FAKE_CHILD): Move it to varobj.h.
743 (restrict_range): Rename it varobj_restrict_range. Make it extern.
745 (get_path_expr_parent): Rename it to varobj_get_path_expr_parent.
747 (is_anonymous_child): Move it to c-varobj.c and rename to
748 varobj_is_anonymous_child. Caller update.
749 (get_type): Move it to c-varobj.c.
750 (get_value_type): Rename it varobj_get_value_type. Make it
752 (get_target_type): Move it gdbtypes.c.
753 (varobj_formatted_print_options): New function.
754 (value_get_print_value): Rename it to
755 varobj_value_get_print_value and make it extern.
756 (varobj_value_is_changeable_p): Make it extern.
757 (adjust_value_for_child_access): Move it to c-varobj.c.
758 (default_value_is_changeable_p): Rename it to
759 varobj_default_value_is_changeable_p. Make it extern.
760 (c_number_of_children, c_name_of_variable): Move it to c-varobj.c
761 (c_name_of_child, c_path_expr_of_child): Likewise.
762 (c_value_of_child, c_type_of_child): Likewise.
763 (c_value_of_variable, cplus_number_of_children): Likewise.
764 (cplus_class_num_children, cplus_name_of_variable): Likewise.
765 (cplus_name_of_child, cplus_path_expr_of_child): Likewise.
766 (cplus_value_of_child, cplus_type_of_child): Likewise.
767 (cplus_value_of_variable): Likewise.
768 (java_number_of_children, java_name_of_variable): Move it to jv-varobj.c.
769 (java_name_of_child, java_path_expr_of_child): Likewise.
770 (java_value_of_child, java_type_of_child): Likewise.
771 (java_value_of_variable): Likewise.
772 (ada_number_of_children, ada_name_of_variable): Move it to ada-varobj.c.
773 (ada_name_of_child, ada_path_expr_of_child): Likewise.
774 (ada_value_of_child, ada_type_of_child): Likewise.
775 (ada_value_of_variable, ada_value_is_changeable_p): Likewise.
776 (ada_value_has_mutated): Likewise.
777 * varobj.h (CPLUS_FAKE_CHILD): New macro, moved from varobj.c.
778 (struct lang_varobj_ops): New. Renamed by 'struct language_specific'.
779 (c_varobj_ops, cplus_varobj_ops): Declare.
780 (java_varobj_ops, ada_varobj_ops): Declare.
781 (varobj_default_value_is_changeable_p): Declare.
782 (varobj_value_is_changeable_p): Declare.
783 (varobj_get_value_type, varobj_is_anonymous_child): Declare.
784 (varobj_get_path_expr_parent): Declare.
785 (varobj_value_get_print_value): Declare.
786 (varobj_formatted_print_options): Declare.
787 (varobj_restrict_range): Declare.
791 * target/waitstatus.h (target_waitkind): Remove spurious
792 character from the comments.
796 * gdbarch.sh (get_longjmp_target): Add method documentation.
797 * gdbarch.h: Regenerate.
801 * dbxread.c (read_dbx_symtab) <bss_ext_symbol>: Remove unused
806 * gcore.in: Call GDB using the full path to the gcore script.
807 Error out if the GDB binary is not found.
812 * dwarf2read.c (dw2_get_real_path): Remove unnecessary call to
818 * target.c (target_disable_btrace): Fix invalid return value for
820 (target_teardown_btrace): Likewise.
824 * varobj.c (struct varobj): Move most of the fields to
826 (struct varobj_dynamic): New struct.
827 (varobj_get_display_hint) [HAVE_PYTHON]: Adjust.
828 (varobj_has_more): Likewise.
829 (dynamic_varobj_has_child_method): Likewise.
830 (update_dynamic_varobj_children): Likewise.
831 (varobj_get_num_children): Likewise.
832 (varobj_list_children, varobj_pretty_printed_p): Likewise.
833 (install_new_value_visualizer): Likewise.
834 (install_new_value_visualizer, install_new_value): Likewise.
835 (varobj_update, new_variable, free_variable): Likewise.
836 (my_value_of_variable, value_get_print_value): Likewise.
837 (install_visualizer): Change the type of parameter 'var' to
838 'struct varobjd_dynamic *'. Callers update.
839 * varobj.h (struct varobj): Moved from varobj.c.
840 (struct varobj) <dynamic>: New field.
844 * nios2-tdep.c (nios2_reg_names): Use "sstatus" rather than "ba"
845 as the preferred name of r30.
846 * nios2-linux-tdep.c (reg_offsets): Likewise.
847 * features/nios2-cpu.xml: Likewise.
848 * features/nios2-linux.c: Regenerated.
849 * features/nios2.c: Regenerated.
850 * regformats/nios2-linux.dat: Regenerated.
854 Canonicalize directories for EXEC_FILENAME.
855 * exec.c (exec_file_attach): Use gdb_realpath_keepfile for
857 * utils.c (gdb_realpath_keepfile): New function.
858 * utils.h (gdb_realpath_keepfile): New declaration.
862 * Makefile.in (GDBFLAGS): New variable.
867 * NEWS: Add entry documenting the new "-catch-assert" and
868 "-catch-exception" GDB/MI commands.
872 * breakpoint.h (init_ada_exception_breakpoint): Add parameter
874 * breakpoint.c (init_ada_exception_breakpoint): Add parameter
875 "enabled". Set B->ENABLE_STATE accordingly.
876 * ada-lang.h (ada_exception_catchpoint_kind): Move here from
878 (create_ada_exception_catchpoint): Add declaration.
879 * ada-lang.c (ada_exception_catchpoint_kind): Move to ada-lang.h.
880 (create_ada_exception_catchpoint): Make non-static. Add new
881 parameter "disabled". Use it in call to
882 init_ada_exception_breakpoint.
883 (catch_ada_exception_command): Add parameter "enabled" in call
884 to create_ada_exception_catchpoint.
885 (catch_assert_command): Likewise.
887 * mi/mi-cmds.h (mi_cmd_catch_assert, mi_cmd_catch_exception):
889 * mi/mi-cmds.c (mi_cmds): Add the "catch-assert" and
890 "catch-exception" commands.
891 * mi/mi-cmd-catch.c: Add #include "ada-lang.h".
892 (mi_cmd_catch_assert, mi_cmd_catch_exception): New functions.
896 * ada-lang.c (enum ada_exception_catchpoint_kind): Renames
897 "enum exception_catchpoint_kind". Replace the "ex_" prefix
898 of all its enumerates with "ada_". Update the rest of this
903 * ada-lang.c (ada_decode_exception_location): Delete.
904 (create_ada_exception_catchpoint): Remove arguments "sal",
905 "addr_string" and "ops". Add argument "ex_kind" instead.
906 Adjust implementation accordingly, calling ada_exception_sal
907 to get the entities it no longer gets passed as arguments.
908 Document the function's arguments.
909 (catch_ada_exception_command): Use catch_ada_exception_command_split
910 instead of ada_decode_exception_location, and update call to
911 create_ada_exception_catchpoint.
912 (catch_ada_assert_command_split): Renames
913 ada_decode_assert_location. Remove parameters "addr_string" and
914 "ops", and now returns void. Adjust implementation accordingly.
915 Update the function documentation.
916 (catch_assert_command): Use catch_ada_assert_command_split
917 instead of ada_decode_assert_location. Update call to
918 create_ada_exception_catchpoint.
922 * utils.h (perror_warning_with_name): Add declaration.
923 * utils.c (perror_warning_with_name): New function.
924 * cli/cli-cmds.c (source_script_with_search): Add call to
925 perror_warning_with_name if from_tty is nul.
929 * utils.c (perror_string): New function, extracted out of
930 throw_perror_with_name.
931 (throw_perror_with_name): Rework to use perror_string.
935 * remote.c (discard_pending_stop_replies_in_queue): Update
937 (struct stop_reply) <rs>: New field.
938 (remove_stop_reply_of_remote_state): New function.
939 (discard_pending_stop_replies_in_queue): Add parameter 'rs'.
940 Callers update. Pass remove_stop_reply_of_remote_state to
942 (remote_parse_stop_reply): Initialize field 'rs'.
946 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
951 * cli/cli-cmds.c (show_baud_rate): Moved to serial.c as
952 serial_baud_show_cmd.
953 (_initialize_cli_cmds): Delete the code creating the
954 "set/show remotebaud" commands.
955 * serial.c (baud_rate): Move here from top.c.
956 (serial_baud_show_cmd): Move here from cli/cli-cmds.c.
957 (_initialize_serial): Create "set/show serial baud" commands.
958 Add "set/show remotebaud" command aliases.
959 * top.c (baud_rate): Moved to serial.c.
960 * NEWS: Document the new "set/show serial baud" commands,
961 replacing "set/show remotebaud".
965 * breakpoint.c (insert_bp_location): Use memory_error_message to
966 build the memory error string.
967 * c-lang.c: Include "gdbcore.h".
968 (c_get_string): Use memory_error to throw error.
969 (target_xfer_memory_error): Delete.
970 (memory_error_message): New, factored out from
971 target_xfer_memory_error.
972 (memory_error): Change parameter type to target_xfer_error.
974 (read_memory): Use memory_error instead of
975 target_xfer_memory_error.
976 * gdbcore.h: Include "target.h".
977 (memory_error): Change parameter type to target_xfer_error.
978 (memory_error_message): Declare function.
979 * target.c (target_read_memory, target_read_stack)
980 (target_write_memory, target_write_raw_memory): Return
981 TARGET_XFER_E_IO on error. Adjust comments.
982 (get_target_memory): Pass TARGET_XFER_E_IO to memory_error,
984 * target.h (target_read, target_insert_breakpoint)
985 (target_remove_breakpoint): Adjust comments.
986 * valprint.c (partial_memory_read): Rename parameter, and adjust
988 (val_print_string): Use memory_error_message to build the memory
993 * common/filestuff.c (gdb_fopen_cloexec): Remove initialization of
994 result variable. Rename variable fopen_e_ever_failed to
995 fopen_e_ever_failed_einval. Retry fopen only for errno EINVAL.
999 * monitor.c (monitor_write_memory, monitor_write_memory_bytes)
1000 (monitor_write_memory_longlongs, monitor_write_memory_block):
1001 Constify 'myaddr' parameter.
1002 (monitor_xfer_memory): Adjust interface as monitor_xfer_partial
1004 (monitor_xfer_partial): New function.
1005 (init_base_monitor_ops): Don't install a deprecated_xfer_memory
1006 hook. Install a to_xfer_partial hook.
1010 * dwarf2read.c (dwarf2_get_dwz_file): Update for type change in
1011 bfd_get_alt_debug_link_info.
1015 New flag OBJF_NOT_FILENAME.
1016 * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME.
1017 * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for
1019 (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for
1020 symbol_file_add_from_bfd.
1021 * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for
1023 * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is
1025 * objfiles.h (OBJF_NOT_FILENAME): New.
1029 * Makefile.in (SFILES): Add build-id.c.
1030 (HFILES_NO_SRCDIR): Add build-id.h.
1031 * build-id.c: New file, largely from elfread.c. Modified
1033 * build-id.h: New file.
1034 * dwarf2read.c (dwarf2_get_dwz_file): Update for change to
1035 bfd_get_alt_debug_link_info. Verify dwz file's build-id.
1036 Search for dwz file using build-id.
1037 * elfread.c (build_id_bfd_get, build_id_verify)
1038 (build_id_to_debug_filename, find_separate_debug_file): Remove.
1042 * ada-lang.c (compare_names_with_case): Renamed from
1043 compare_names, adding a new parameter "casing" and its handling.
1044 New function documentation.
1045 (compare_names): New function, implemented using
1046 compare_names_with_case.
1050 * ada-lang.c (ada_exception_sal): Remove advance declaration.
1054 * objfiles.c (free_objfile_per_bfd_storage): Delete the
1055 demangled_names_hash.
1056 (free_objfile): Don't delete the demangled_names_hash.
1057 * objfiles.h (struct objfile_per_bfd_storage)
1058 <demangled_names_hash>: New field.
1059 (struct objfile) <demangled_names_hash>: Move to
1060 objfile_per_bfd_storage.
1061 * symfile.c (reread_symbols): Don't delete the
1062 demangled_names_hash.
1063 * symtab.c (create_demangled_names_hash): Update.
1064 (symbol_set_names): Update.
1068 * gdb_bfd.c (struct gdb_bfd_data) <relocation_computed,
1069 needs_relocations>: New fields.
1070 (gdb_bfd_requires_relocations): New function.
1071 * gdb_bfd.h (gdb_bfd_requires_relocations): Declare.
1072 * objfiles.c (get_objfile_bfd_data): Disallow sharing if
1073 the BFD needs relocations applied.
1077 PR breakpoints/11568
1078 * breakpoint.c (remove_threaded_breakpoints): Say "no longer in
1079 the thread list" instead of "gone".
1083 * NEWS: Mention new convenience variable $_exitsignal.
1084 * corelow.c (core_open): Reset exit convenience variables. Set
1085 $_exitsignal to the uncaught signal which generated the corefile.
1086 * infrun.c (handle_inferior_event): Reset exit convenience
1087 variables. Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
1088 (clear_exit_convenience_vars): New function.
1089 * inferior.h (clear_exit_convenience_vars): New prototype.
1093 * varobj.h: Add comments to enum varobj_languages.
1097 Add support for DWP file format version 2.
1098 * NEWS: Mention support for DWP file format version 2.
1099 * dwarf2read.c (dwarf2_section_info): Convert asection field to a
1100 union of asection, containing_section. New fields virtual_offset
1101 and is_virtual. Change type of readin filed from int to char.
1102 (dwo_sections, dwo_file): Tweak comments.
1103 (dwp_v2_section_ids): New enum.
1104 (dwp_sections): New fields abbrev, info, line, loc, macinfo, macro,
1106 (virtual_v1_dwo_sections): Renamed from virtual_dwo_sections.
1108 (virtual_v2_dwo_sections): New struct.
1109 (dwp_hash_table): New fields version, nr_columns. Change type of
1110 section_pool field to a union.
1111 (dwp_file): New field version.
1112 (dwarf2_has_info): Check for virtual sections.
1113 (get_containing_section): New function.
1114 (get_section_bfd_owner, get_section_bfd_section): Call it.
1115 (dwarf2_locate_sections): Update.
1116 (dwarf2_section_empty_p): Update.
1117 (dwarf2_read_section): Handle virtual sections.
1118 (locate_dwz_sections): Update.
1119 (create_dwp_hash_table): Document and handle V2 format.
1120 (locate_v1_virtual_dwo_sections): Renamed from
1121 locate_virtual_dwo_sections and update. All callers updated.
1122 (create_dwo_unit_in_dwp_v1): Renamed from create_dwo_in_dwp.
1123 Delete arg htab. Rename arg section_index to unit_index.
1124 All callers updated.
1125 (MAX_NR_V1_DWO_SECTIONS): Renamed from MAX_NR_DWO_SECTIONS.
1127 (create_dwp_v2_section, create_dwo_unit_in_dwp_v2): New functions.
1128 (lookup_dwo_unit_in_dwp): Add V2 support.
1129 (dwarf2_locate_dwo_sections): Update.
1130 (dwarf2_locate_common_dwp_sections): Renamed from
1131 dwarf2_locate_dwp_sections and update. All callers updated.
1132 (dwarf2_locate_v2_dwp_sections): New function.
1133 (open_and_init_dwp_file): Add V2 support.
1134 (read_str_index): New locals str_section, str_offsets_section.
1138 * common/ptid.c (null_ptid, minus_one_ptid, ptid_build)
1139 (pid_to_ptid, ptid_get_pid, ptid_get_lwp, ptid_get_tid)
1140 (ptid_equal, ptid_is_pid, ptid_lwp_p, ptid_tid_p): Replace
1141 describing comments with references to ptid.h.
1142 * common/ptid.h: Remove intro description of constructors,
1143 accessors and predicates.
1144 (struct ptid): Reformat.
1145 (minus_one_ptid, ptid_build, pid_to_ptid, ptid_get_pid)
1146 (ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid): Change
1147 describing comments.
1151 * aix-thread.c (sync_threadlists): Add missing ')' in call
1156 * procfs.c (procfs_init_inferior): Fix typo causing the build
1161 * aix-thread.c (ptrace32): Remove cast to addr_ptr.
1165 * mi/mi-main.c (run_one_inferior): Add function description.
1166 Make ARG a pointer to an integer whose value determines whether
1167 we should "run" or "start" the program.
1168 (mi_cmd_exec_run): Add handling of the "--start" option.
1169 Reject all other command-line options.
1170 * NEWS: Add entry for "-exec-run"'s new "--start" option.
1174 * remote-notif.h (REMOTE_NOTIF_ID): New enum.
1175 (struct notif_client) <pending_event>: Moved
1176 to struct remote_notif_state.
1178 (struct remote_notif_state) <pending_event>: New field.
1179 (notif_event_xfree): Declare.
1180 * remote-notif.c (handle_notification): Adjust.
1181 (notif_event_xfree): New function.
1182 (do_notif_event_xfree): Call notif_event_xfree.
1183 (remote_notif_state_xfree): Call notif_event_xfree to free
1184 each element in field pending_event.
1185 * remote.c (discard_pending_stop_replies): Remove declaration.
1186 (discard_pending_stop_replies_in_queue): Declare.
1187 (remote_close): Call discard_pending_stop_replies_in_queue
1188 instead of discard_pending_stop_replies.
1189 (remote_start_remote): Adjust.
1190 (stop_reply_xfree): Call notif_event_xfree.
1191 (notif_client_stop): Adjust initialization.
1192 (remote_notif_remove_all): Rename it to ...
1193 (remove_stop_reply_for_inferior): ... this. Update comments.
1194 Don't check INF is NULL.
1195 (discard_pending_stop_replies): Return early if notif_state is
1196 NULL. Adjust. Don't check INF is NULL.
1197 (remote_notif_get_pending_events): Adjust.
1198 (discard_pending_stop_replies_in_queue): New function.
1199 (remote_wait_ns): Likewise.
1203 * remote-notif.c (DECLARE_QUEUE_P): Remove.
1204 (notif_queue): Remove.
1205 (remote_notif_process): Add one parameter 'notif_queue'.
1206 Update comments. Callers update.
1207 (remote_async_get_pending_events_token): Remove.
1208 (remote_notif_register_async_event_handler): Remove.
1209 (remote_notif_unregister_async_event_handler): Remove.
1210 (handle_notification): Add parameter 'notif_queue'. Update
1211 comments. Callers update.
1212 (notif_xfree): Remove.
1213 (remote_notif_state_allocate): New function.
1214 (remote_notif_state_xfree): New function.
1215 (_initialize_notif): Remove code to allocate queue.
1216 * remote-notif.h (DECLARE_QUEUE_P): Moved from remote-notif.c.
1217 (struct remote_notif_state): New.
1218 (handle_notification): Update declaration.
1219 (remote_notif_process): Likewise.
1220 (remote_notif_register_async_event_handler): Remove.
1221 (remote_notif_unregister_async_event_handler): Remove.
1222 (remote_notif_state_allocate): Declare.
1223 (remote_notif_state_xfree): Declare.
1224 * remote.c (struct remote_state) <notif_state>: New field.
1225 (remote_close): Don't call
1226 remote_notif_unregister_async_event_handler. Call
1227 remote_notif_state_xfree.
1228 (remote_open_1): Don't call
1229 remote_notif_register_async_event_handler. Call
1230 remote_notif_state_allocate.
1234 * varobj.c (create_child_with_value): Remove 'const' from the
1235 type of parameter 'name'.
1236 (varobj_add_child): Likewise.
1237 (install_dynamic_child): Remove 'const' from the type of
1239 (varobj_add_child): Likewise.
1240 (create_child_with_value): Likewise. Update comments. Don't
1242 (update_dynamic_varobj_children): Duplicate 'name'
1243 and pass it to install_dynamic_child.
1247 * python/py-value.c (convert_value_from_python): Move PyInt_Check
1248 conversion logic to occur after PyLong_Check. Comment on order
1249 change significance.
1250 * python/py-arch.c (archpy_disassemble): Comment on order of
1251 conversion for integers and longs.
1255 * common/linux-ptrace.c (linux_check_ptrace_features): Factor out
1256 the PTRACE_O_TRACESYSGOOD and PTRACE_O_TRACEFORK to separate
1257 functions. Always test for PTRACE_O_TRACESYSGOOD even if
1258 PTRACE_O_TRACEFORK is not supported.
1259 (linux_test_for_tracesysgood): New function.
1260 (linux_test_for_tracefork): New function, factored out from
1261 linux_check_ptrace_features, and also don't kill child_pid here.
1265 * i386-darwin-nat.c (i386_darwin_dr_set): Fix argument type.
1266 Remove verbose error reporting. Use detected state to
1267 thread_set_state call.
1268 (i386_darwin_dr_get): Fix return type. Remove verbose error
1270 Remove trailing spaces.
1274 * cp-valprint.c (cp_print_value_fields): Adjust calls to
1275 val_print_optimized_out.
1276 * jv-valprint.c (java_print_value_fields): Likewise.
1277 * p-valprint.c (pascal_object_print_value_fields): Likewise.
1278 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
1279 <DWARF_VALUE_REGISTER>: If the register was not saved, return a
1280 new optimized out value.
1281 * findvar.c (address_from_register): Likewise.
1282 * frame.c (put_frame_register): Tweak error string to say the
1283 register was not saved, rather than optimized out.
1284 * infcmd.c (default_print_one_register_info): Adjust call to
1285 val_print_optimized_out. Use value_of_register instead of
1286 get_frame_register_value.
1287 * mi/mi-main.c (output_register): Use value_of_register instead of
1288 get_frame_register_value.
1289 * valprint.c (valprint_check_validity): Likewise.
1290 (val_print_optimized_out): New value parameter. If the value is
1291 lval_register, print <not saved> instead.
1292 (value_check_printable, val_print_scalar_formatted): Adjust calls
1293 to val_print_optimized_out.
1294 * valprint.h (val_print_optimized_out): New value parameter.
1295 * value.c (struct value) <optimized_out>: Extend comment.
1296 (error_value_optimized_out): New function.
1297 (require_not_optimized_out): Use it. Use a different string for
1298 lval_register values.
1299 * value.h (error_value_optimized_out): New declaration.
1300 * NEWS: Mention <not saved>.
1304 * symtab.c (compare_search_syms): Use FILENAME_CMP instead of
1305 strcmp to compare two symtab filenames.
1309 * symtab.c (search_symbols_equal): Delete.
1310 (sort_search_symbols_remove_dups): Replace call to
1311 search_symbols_equal by call to compare_search_syms,
1312 adjusting as necessary.
1317 * python/python.c: Document gdb.execute command in Python help.
1321 * python/py-frame.c (frame_info_to_frame_object): Use
1322 gdbpy_convert_exception. Clean up Python object on failure.
1326 * python/lib/gdb/command/frame_filters.py
1327 (InfoFrameFilter.list_frame_filters): Retrieve exception manually.
1328 (ShowFrameFilterPriority.invoke): Ditto.
1332 * linespec.c (struct ls_parser): Make 'saved_arg' const.
1333 (parse_linespec): Make 'argptr' const.
1334 Remove temporary cast of 'argptr' to const char **.
1335 (decode_line_full): Pass const pointer to parse_linespec.
1336 (decode_line_1): Likewise.
1337 (decode_objc): Make local variable 'new_argptr' const.
1338 (find_function_symbols): Remove temporary cast to char *
1340 * objc-lang.c (find_imps): Make argument 'method' const.
1342 * objc-lang.h (find_imps): Likewise.
1346 * completer.c (skip_quoted_chars): Make all arguments const.
1348 (skip_quoted): Likewise.
1349 * completer.h (skip_quoted_chars): Likewise.
1350 (skip_quoted): Likewise.
1351 * defs.h (skip_quoted): Remove duplicate declaration.
1352 * jv-exp.y: Include completer.h.
1353 (yylex): Remove unneccessary cast to char * fro skip_quoted.
1354 * p-exp.y: Include completer.h.
1358 * c-exp.y (parse_number): Make first argument const.
1359 Make a copy of the input to manipulate.
1360 (c_parse_escape): Make first argument const.
1361 Make local variable 'tokptr' const.
1362 (parse_string_or_char): Make first two arguments const.
1363 (macro_original_text): Make const.
1364 (lex_one_token): Make local variable 'tokstart' const.
1365 Likewise for local variables named 'p'.
1366 Cast away const for struct stoken (temporary).
1367 * c-lang.h (c_parse_escpae): Make first argument const.
1368 * cli/cli-cmds.c (echo_command): Make local variable 'p'
1370 * cli/cli-setshow.c (do_set_command): Likewise for 'p' in
1372 * f-exp.y (parse_number): Make first argument const.
1373 (match_string_literal): Make local variable 'tokstart'
1375 (yylex): Make local variable 'p' const.
1376 Cast away const for struct stoken (temporary).
1377 * go-exp.y (parse_number): Make first argument const.
1378 (parse_string_or_char): Likewise.
1379 Make local variable 'tokstart' const.
1380 (lex_one_token): Likewise for numerous locals called 'p'.
1381 Cast away const for struct stoken (temporary).
1382 * jv-exp.y (parse_number): Make first argument const.
1383 Make local variables 'tokstart' and 'tokptr' const.
1384 Cast away const for call to skip_quoted (temporary).
1385 (yylex): Make local variable 'p' const.
1386 Cast away const for struct stoken (temporary).
1387 * m2-exp.y (parse_number): Make local variable 'p' const.
1388 (yylex): Likewise for 'tokstart'.
1389 Cast away const for struct stoken (temporary).
1390 Make local variable 'p' const.
1391 * macroexp.c (get_character_constant): Pass a const string
1393 (get_string_literal): Likewise.
1394 (macro_expand_next): Make first argument const.
1395 Cast away const for init_shared_buffer.
1396 * macroexp.h (macro_expand_next): Make first argument const.
1397 * p-exp.y (yylex): Make a local copy of 'lexptr'.
1398 Pass a const string to c_parse_escape.
1399 Make local variables 'p' and 'namestart' const.
1400 * parse.c (lexptr): Make const.
1401 (prev_lexptr): Likewise.
1402 (find_template_name_end): Return const.
1403 Make argument const, too.
1404 (parse_exp_in_context): Make first argument const.
1405 Remove the entire const_hack.
1406 (parse_exp_in_context_1): Make first argument const.
1407 * parser-defs.h (find_template_name_end): Return const.
1408 Make argument const, too.
1409 (lexptr): Make const.
1410 (prev_lexptr): Likewise.
1411 * utils.c (parse_escape): Make second argument const.
1412 * utils.h (parse_escape): Likewise.
1416 * ada-exp.y (write_object_renaming): Update: struct stoken.ptr
1418 (block_lookup): Make 'raw_name' and 'name' const.
1419 * ada-lex.l (processString): Update for struct stoken.ptr.
1420 * c-exp.y (qualified_name : TYPENAME COLONCOLON '~' name): Likewise.
1421 (operator_stoken): Likewise.
1422 (lex_one_token): Remove temporary cast to char * for
1424 * f-exp.y (yylex): Likewise.
1425 * gdb-types.c (lookup_struct_elt_type): Make argument 'name' const.
1426 * gdbtypes.h (lookup_struct_elt_type): Likewisee.
1427 * go-exp.y (lex_one_token): Remove temporary cast to char * for
1429 * jv-exp.y (QualifiedName): Update for struct stoken.ptr.
1430 (yylex): Remove temporary cast to char * for 'yylval.sval.ptr'.
1431 * linespec.c (struct ls_parser): Make 'stream' const.
1432 (find_parameter_list_end): Make argument 'input' and local
1434 (linespec_lexer_lex_string): Make local variables 'start' and
1436 Use skip_spaces_const instead of skip_spaces.
1437 (linespec_lexer_peek_token): Make local variable 'saved_stream'
1439 (parse_linespec): Temporarily cast 'argptr' to const for
1440 'parser->lexer.stream'.
1441 * m2-exp.y (yylex): Remove temporary cast to char * for
1443 * objc-lang.c (add_msglist): Make local variable 'p' const.
1444 * p-exp.y (exp : exp '['): Update for struct stoken.ptr.
1445 (exp : STRING): Make 'sp' const.
1446 (parse_number): Make argument 'p' const.
1447 * parser-defs.h (struct stoken): Make 'ptr' const.
1451 * cli/cli-decode.c: Remove unnecessary inclusion of tui/tui.h.
1455 * varobj.c (c_value_of_root): Remove declaration.
1456 (cplus_value_of_root, java_value_of_root): Likewise.
1457 (ada_value_of_root): Likewise.
1458 (struct language_specific) <value_of_root>: Remove.
1459 (languages): Update initialization.
1460 (check_scope): Move earlier.
1461 (c_value_of_root): Move earlier and rename to ...
1462 (value_of_root_1): ... this.
1463 (value_of_root): Caller update.
1464 (cplus_value_of_root, java_value_of_root): Remove.
1465 (ada_value_of_root): Remove.
1469 * varobj.c (varobj_format_string): Remove "unknown".
1470 (languages): Remove the first element.
1471 * varobj.h (enum varobj_languages): Remove vlang_c.
1475 * varobj.c (struct language_specific) <language>: Remove.
1476 (languages): Update the initialization.
1480 * arm-wince-tdep.c: Remove inclusion of "solib.h" and
1481 "solib-target.h". Include "windows-tdep.h".
1482 (arm_wince_init_abi): Call windows_init_abi. Remove call to
1483 set_solib_ops and set_gdbarch_has_dos_based_file_system.
1484 * configure.tgt (arm*-wince-pe | arm*-*-mingw32ce*): Append
1485 windows-tdep.o to gdb_target_obs.
1489 * amd64-windows-tdep.c: Remove inclusion of "solib.h" and
1491 (amd64_windows_init_abi): Don't call set_solib_ops and
1492 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1493 windows_init_abi instead.
1494 * i386-cygwin-tdep.c: Remove inclusion of "solib.h" and
1496 (i386_cygwin_init_abi): Don't call set_solib_ops,
1497 set_gdbarch_has_dos_based_file_system and
1498 set_gdbarch_iterate_over_objfiles_in_search_order. Call
1499 windows_init_abi instead.
1500 * windows-tdep.c: Include "solib.h" and "solib-target.h".
1501 (windows_init_abi): New function.
1502 (windows_iterate_over_objfiles_in_search_order): Make it
1504 * windows-tdep.h (windows_init_abi): Declare.
1505 (windows_iterate_over_objfiles_in_search_order): Remove
1511 * system-gdbinit/elinos.py (get_elinos_environment): Return an
1512 incomplete dictionnary instead of None in case of missing
1513 environment variables.
1514 (elinos_init): in case of an incomplete environment, best
1515 effort to load system libraries instead of abort.
1519 * ada-lang.c (ada_has_this_exception_support): Ignore
1520 mst_solib_trampoline minimal symbols.
1524 * i386-darwin-nat.c (darwin_complete_target): Install methods for
1525 hardware watchpoint.
1526 (i386_darwin_dr_set): Support 32 and 64 bit states.
1527 (i386_darwin_dr_get): Likewise.
1528 (i386_darwin_dr_set_control): Make static.
1529 (i386_darwin_dr_set_addr, i386_darwin_dr_get_addr)
1530 (i386_darwin_dr_get_status, i386_darwin_dr_get_control): Likewise.
1534 * aarch64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1535 Replace TIDGET with ptid_get_lwp.
1536 Replace GET_LWP with ptid_get_lwp.
1537 * aix-thread.c (BUILD_THREAD, BUILD_LWP): Remove.
1538 Replace BUILD_THREAD with ptid_build.
1539 Replace BUILD_LWP with ptid_build.
1540 Replace PIDGET with ptid_get_pid.
1541 Replace TIDGET with ptid_get_lwp.
1542 * alphabsd-nat.c: Replace PIDGET with ptid_get_pid.
1543 * amd64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1544 Replace TIDGET with ptid_get_lwp.
1545 * amd64bsd-nat.c: Replace PIDGET with ptid_get_pid.
1546 * arm-linux-nat.c: Replace PIDGET with ptid_get_pid.
1547 Replace TIDGET with ptid_get_lwp.
1548 Replace GET_LWP with ptid_get_lwp.
1549 * armnbsd-nat.c: Replace PIDGET with ptid_get_pid.
1551 * breakpoint.c: Likewise.
1552 * common/ptid.c (ptid_is_pid): Condense check for
1553 null_ptid and minus_one_ptid.
1554 (ptid_lwp_p): New function.
1555 (ptid_tid_p): New function.
1556 * common/ptid.h: Update comments for accessors.
1557 (ptid_lwp_p): New prototype.
1558 (ptid_tid_p): New prototype.
1559 * defs.h (PIDGET, TIDGET, MERGEPID): Do not define.
1560 * gcore.c: Replace PIDGET with ptid_get_pid.
1561 * gdbthread.h: Likewise.
1562 * gnu-nat.c: Likewise.
1563 * hppa-linux-nat.c: Replace PIDGET with ptid_get_pid.
1564 Replace TIDGET with ptid_get_lwp.
1565 * hppabsd-nat.c: Replace PIDGET with ptid_get_pid.
1566 * hppanbsd-nat.c: Likewise.
1567 * i386-linux-nat.c: Replace PIDGET with ptid_get_pid.
1568 Replace TIDGET with ptid_get_lwp.
1569 * i386bsd-nat.c: Replace PIDGET with ptid_get_pid.
1570 * ia64-linux-nat.c: Replace PIDGET with ptid_get_pid.
1571 * infcmd.c: Likewise.
1572 * inferior.h: Likewise.
1573 * inflow.c: Likewise.
1574 * infrun.c: Likewise.
1575 * linux-fork.c: Likewise.
1576 * linux-nat.c: Replace PIDGET with ptid_get_pid.
1577 Replace GET_PID with ptid_get_pid.
1578 Replace is_lwp with ptid_lwp_p.
1579 Replace GET_LWP with ptid_get_lwp.
1580 Replace BUILD_LWP with ptid_build.
1584 * common/linux-btrace.c: Move sys/syscall.h out of the
1585 HAVE_LINUX_PERF_EVENT_H check and wrap it in HAVE_SYS_SYSCALL_H.
1586 Also check for SYS_perf_event_open before attempting to buid.
1590 * dwarf2read.c (dwarf2_section_info): Add comment.
1591 (dwp_file): Split loaded_cutus into loaded_cus, loaded_tus.
1593 (dwarf2_section_empty_p): Rename arg from "info" to "section".
1594 (dwarf2_read_section): Delete unused local "header". Add section
1595 name to error message.
1596 (create_dwo_in_dwp): Tweak comment.
1597 (MAX_NR_DWO_SECTIONS): Combine count of .debug_macro + .debug_macinfo.
1599 * dwarf2read.c (die_reader_specs): Tweak comment.
1600 (get_section_bfd_owner, get_section_bfd_section): New functions.
1601 (get_section_name, get_section_file_name): New functions.
1602 (get_section_id, get_section_flags): New functions.
1603 (*): Use new functions to access section fields.
1605 * dwarf2read.c (struct dwo_file): Add/tweak comments.
1606 (lookup_dwo_unit_in_dwp): Renamed from lookup_dwo_in_dwp. Remove
1607 arg "htab". All callers updated.
1608 (create_debug_types_hash_table): Remove redundant copy of
1610 (create_dwo_in_dwp): Tweak comments.
1611 (read_str_index): Tweak comment. Record dwarf form name in static
1616 * remote.h (REMOTE_SYSROOT_PREFIX): New define.
1617 (remote_filename_p): Add comment.
1618 * remote.c (remote_filename_p): Adjust to use
1619 REMOTE_SYSROOT_PREFIX.
1620 * solib.c (solib_find): When deciding whether we need to add a
1621 directory separator, check whether the sysroot is "remote:"
1622 instead of checking whether the patch has a drive spec. Add
1627 * remote.c (struct stop_reply) <solibs_changed, replay_event>:
1629 (remote_parse_stop_reply): Adjust, setting event->ws.kind
1634 Fix set debug frame output.
1635 * frame.c (fprint_frame_type): Add TAILCALL_FRAME entry. Move
1636 SENTINEL_FRAME entry lower to match enum frame_type order.
1640 Replace constant values 8 to 15 by AMD64_R8_REGNUM to
1641 AMD64_R15_REGNUM when a register index is expected.
1642 * amd64-windows-tdep.c (amd64_windows_dummy_call_integer_regs):
1643 Substitute in array.
1644 * amd64-tdep.c (amd64_dwarf_regmap): Ditto.
1645 (amd64_push_arguments): Substitute in integer_regnum array.
1649 * objfiles.c (allocate_objfile): Move comment to better place.
1651 New option "set debug symfile on".
1652 * NEWS: Mention "set debug symfile".
1653 * Makefile.in (SFILES): Add symfile-debug.c.
1654 (COMMON_OBS): Add symfile-debug.o.
1655 * elfread.c (elf_symfile_read): Use objfile_set_sym_fns to set the
1656 objfile's symbol functions.
1657 * objfiles.h (objfile_set_sym_fns): Declare.
1658 * symfile-debug.c: New file.
1659 * symfile.c (syms_from_objfile_1): Use objfile_set_sym_fns to set the
1660 objfile's symbol functions.
1661 (reread_symbols): Ditto.
1663 * symfile.h (struct sym_fns): Delete member "sym_flavour".
1665 (add_symtab_fns): Update prototype.
1666 * symfile.c (sym_fns_ptr): Delete. Replace with ...
1667 (registered_sym_fns): ... this.
1668 (symtab_fns): Update.
1669 (add_symtab_fns): New arg "flavour". All callers updated.
1670 (find_sym_fns): Rewrite to use new sym_fns registry.
1672 * symfile.h (struct sym_fns): Add "objfile" argument to
1673 sym_read_linetable. All uses updated.
1675 * symtab.c (domain_name, search_domain_name): New functions.
1676 * symtab.h (domain_name, search_domain_name): Declare.
1678 * symfile.h (struct quick_symbol_functions): Reorg arg list of
1679 map_matching_symbols so objfile is first. All uses updated.
1680 * dwarf2read.c (dw2_map_matching_symbols): Update signature.
1681 * psymtab.c (map_matching_symbols_psymtab): Update signature.
1686 * solib-svr4.c (svr4_read_so_list): Skip the vDSO when reading
1691 * objfiles.c (free_objfile): Move comment.
1695 * ada-exp.y (string_to_operator): Delete.
1696 (dummy_string_to_ada_operator): Delete.
1701 * i386-tdep.h (enum amd64_reg_class): New, moved here from
1703 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
1704 call_dummy_integer_regs, and classify.
1705 * amd64-tdep.h (amd64_classify): Add declaration.
1706 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
1707 (amd64_reg_class): Delete, moved to i386-tdep.h.
1708 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
1709 Replace call to amd64_classify by call to tdep->classify.
1710 (amd64_push_arguments): Get the list of registers to use for
1711 passing integer parameters from the gdbarch tdep structure,
1712 rather than using a hardcoded one. Replace calls to amd64_classify
1713 by calls to tdep->classify.
1714 (amd64_push_dummy_call): Get the register number used for
1715 the "hidden" argument from tdep->call_dummy_integer_regs.
1716 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
1717 and tdep->call_dummy_integer_regs. Set tdep->classify.
1722 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
1723 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
1724 where tdep->memory_args_by_pointer is non-zero.
1729 * i386-tdep.h (struct gdbarch_tdep): Add new field
1730 integer_param_regs_saved_in_caller_frame.
1731 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
1732 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
1736 * amd64-windows-tdep.c: #include "value.h"
1737 (amd64_windows_classify): Delete.
1738 (amd64_windows_passed_by_integer_register)
1739 (amd64_windows_passed_by_xmm_register)
1740 (amd64_windows_passed_by_pointer)
1741 (amd64_windows_adjust_args_passed_by_pointer)
1742 (amd64_windows_store_arg_in_reg, amd64_windows_push_arguments)
1743 (amd64_windows_push_dummy_call): New functions.
1744 (amd64_windows_init_abi): Remove setting of
1745 tdep->call_dummy_num_integer_regs, tdep->call_dummy_integer_regs,
1746 tdep->classify, tdep->memory_args_by_pointer and
1747 tdep->integer_param_regs_saved_in_caller_frame.
1748 Add call to set_gdbarch_push_dummy_call.
1752 * dwarf2read.c (open_and_init_dwp_file): Try open_dwp_file also with
1753 objfile->original_name.
1757 Pass down original filename for objfile.
1758 * coffread.c (coff_symfile_read): Update symbol_file_add_separate call.
1759 * elfread.c (elf_symfile_read): Likewise.
1760 * jit.c (jit_object_close_impl): Update allocate_objfile call, no
1761 longer set ORIGINAL_NAME.
1762 (jit_bfd_try_read_symtab): Update symbol_file_add_from_bfd call.
1763 * jv-lang.c (get_dynamics_objfile): Update allocate_objfile call.
1764 * machoread.c (macho_add_oso_symfile): Add parameter name. Update
1765 symbol_file_add_from_bfd call.
1766 (macho_symfile_read_all_oso): Update two macho_add_oso_symfile calls.
1767 (macho_check_dsym): Add parameter filenamep. Change function comment.
1769 (macho_symfile_read): New variable dsym_filename. Update
1770 macho_check_dsym call. Use it for symbol_file_add_separate.
1771 * objfiles.c (allocate_objfile): Add parameter name. New comment for
1772 it. Use it for objfile->original_name.
1773 (objfile_name): Return OBFD's filename, if available.
1774 * objfiles.h (allocate_objfile): Add new parameter name.
1775 * solib.c (solib_read_symbols): Update symbol_file_add_from_bfd call.
1776 * symfile-mem.c (symbol_file_add_from_memory): Update
1777 symbol_file_add_from_bfd call.
1778 * symfile.c (read_symbols): Update symbol_file_add_separate call, new
1780 (symbol_file_add_with_addrs): New parameter name, add function comment
1781 for it. Remove variable name. Update allocate_objfile call.
1782 (symbol_file_add_separate): New parameter name, add function comment
1783 for it. Update symbol_file_add_with_addrs call.
1784 (symbol_file_add_from_bfd): New parameter name. Update
1785 symbol_file_add_with_addrs call.
1786 (symbol_file_add): Update symbol_file_add_from_bfd call.
1787 (reread_symbols): New variable original_name. Save
1788 objfile->original_name by it.
1789 * symfile.h (symbol_file_add_from_bfd, symbol_file_add_separate): Add
1794 Code cleanup: Add objfile_name accessor function.
1795 * ada-lang.c (is_known_support_routine): Use objfile_name.
1796 * auto-load.c (source_gdb_script_for_objfile)
1797 (auto_load_objfile_script): Likewise.
1798 * coffread.c (coff_symtab_read, read_one_sym): Likewise.
1799 * dbxread.c (dbx_symfile_read): Likewise.
1800 * dwarf2-frame.c (dwarf2_build_frame_info): Likewise.
1801 * dwarf2loc.c (locexpr_describe_location_piece): Likewise.
1802 * dwarf2read.c (dwarf2_get_dwz_file, dwarf2_read_index)
1803 (dw2_symtab_iter_next, dw2_expand_symtabs_matching)
1804 (lookup_dwp_signatured_type, lookup_dwo_unit)
1805 (dwarf2_build_psymtabs_hard, scan_partial_symbols, process_queue)
1806 (fixup_go_packaging, process_imported_unit_die, dwarf2_physname)
1807 (read_import_statement, create_dwo_cu, open_and_init_dwp_file)
1808 (lookup_dwo_cutu, read_call_site_scope, dwarf2_ranges_read)
1809 (dwarf2_record_block_ranges, read_common_block, read_typedef)
1810 (read_subrange_type, load_partial_dies, read_partial_die)
1811 (read_addr_index_1, read_str_index, dwarf_decode_lines_1)
1812 (die_containing_type, build_error_marker_type, lookup_die_type)
1813 (follow_die_ref_or_sig, follow_die_ref, dwarf2_fetch_die_loc_sect_off)
1814 (dwarf2_fetch_constant_bytes, follow_die_sig, get_signatured_type)
1815 (get_DW_AT_signature_type, write_psymtabs_to_index)
1816 (save_gdb_index_command): Likewise.
1817 * elfread.c (find_separate_debug_file_by_buildid, elf_symfile_read):
1819 * expprint.c (dump_subexp_body_standard): Likewise.
1820 * gdbtypes.c (type_name_no_tag_or_error): Likewise.
1821 * jit.c (jit_object_close_impl): Use the objfile field name renamed to
1823 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New variable
1824 obj_name, use objfile_name for it, use the variable.
1825 (try_thread_db_load_from_pdir, has_libpthread, thread_db_new_objfile):
1827 * machoread.c (macho_symtab_read, macho_check_dsym)
1828 (macho_symfile_relocate): Likewise.
1829 * maint.c (maintenance_translate_address): Likewise.
1830 * minidebug.c (find_separate_debug_file_in_section): Likewise.
1831 * minsyms.c (install_minimal_symbols): Likewise.
1832 * objfiles.c (allocate_objfile): Use the objfile field name renamed to
1834 (filter_overlapping_sections): Use objfile_name.
1835 (objfile_name): New function.
1836 * objfiles.h (struct objfile): Rename field name to original_name.
1837 (objfile_name): New prototype.
1838 * printcmd.c (sym_info, address_info): Use objfile_name.
1839 * probe.c (parse_probes, collect_probes, compare_probes)
1840 (info_probes_for_ops): Likewise.
1841 * progspace.c (clone_program_space): Likewise.
1842 * psymtab.c (require_partial_symbols, dump_psymtab, allocate_psymtab)
1843 (maintenance_info_psymtabs): Likewise.
1844 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
1845 (source_section_scripts): Likewise.
1846 * python/py-objfile.c (objfpy_get_filename): Likewise.
1847 * python/py-progspace.c (pspy_get_filename): Likewise.
1848 * solib-aix.c (solib_aix_get_toc_value): Likewise.
1849 * solib-som.c (match_main, som_solib_section_offsets): Likewise.
1850 * solib.c (solib_read_symbols): Likewise.
1851 * stabsread.c (scan_file_globals): Likewise.
1852 * stap-probe.c (handle_stap_probe): Likewise.
1853 * symfile.c (symbol_file_clear, separate_debug_file_exists)
1854 (find_separate_debug_file_by_debuglink): Likewise.
1855 (reread_symbols): Likewise. Use the objfile field name renamed to
1857 (allocate_symtab): Use objfile_name.
1858 * symmisc.c (print_symbol_bcache_statistics, print_objfile_statistics)
1859 (dump_objfile, dump_msymbols, dump_symtab_1)
1860 (maintenance_print_msymbols, maintenance_print_objfiles)
1861 (maintenance_info_symtabs, maintenance_check_symtabs): Likewise.
1862 * target.c (target_translate_tls_address, target_info): Likewise.
1863 * xcoffread.c (xcoff_initial_scan): Make variable name const. Use
1869 * probe.c (parse_probes): Rename variable objfile_name to
1874 Remove solib-sunos.c.
1875 * Makefile.in (ALLDEPFILES): Remove solib-sunos.c.
1876 * config/m68k/obsd.mh (NATDEPFILES): Remove solib-sunos.o.
1877 * objfiles.c (rt_common_objfile): Remove.
1878 (free_objfile): Remove rt_common_objfile comparison.
1879 * objfiles.h (rt_common_objfile): Remove.
1880 * solib-sunos.c: Remove.
1881 * symfile.c (reread_symbols): Remove solib-sunos.c comment.
1885 Remove a.out NetBSD and OpenBSD hosts.
1886 * NEWS (Removed native configurations): New.
1887 * config/arm/nbsdaout.mh: Remove.
1888 * config/i386/nbsdaout.mh: Remove.
1889 * config/i386/obsdaout.mh: Remove.
1890 * config/m68k/nbsdaout.mh: Remove.
1891 * config/sparc/nbsdaout.mh: Remove.
1892 * config/vax/nbsdaout.mh: Remove.
1893 * configure.host (arm*-*-netbsd*, i[34567]86-*-netbsd*)
1894 (i[34567]86-*-openbsd[0-2].*, i[34567]86-*-openbsd3.[0-3])
1895 (m68*-*-netbsd*, sparc-*-netbsd*, vax-*-netbsd*): Add them to obsolete
1897 (arm*-*-netbsd*, i[34567]86-*-netbsd*, i[34567]86-*-openbsd[0-2].*)
1898 (i[34567]86-*-openbsd3.[0-3], m68*-*-netbsd*, sparc-*-netbsdaout*)
1899 (sparc-*-netbsd*, vax-*-netbsd*): Remove.
1903 * linespec.c (struct minsym_and_objfile): Remove.
1904 (minsym_and_objfile_d): Remove.
1905 (struct linespec, struct collect_info, linespec_parse_basic)
1906 (convert_linespec_to_sals, linespec_parser_delete, decode_objc)
1907 (compare_msymbols, find_method, find_function_symbols)
1908 (find_linespec_symbols, struct collect_minsyms, compare_msyms)
1909 (add_minsym, search_minsyms_for_name): Update.
1913 * regcache.c: Add include of valprint.h.
1914 (dump_endian_bytes): Delete.
1915 (regcache_dump): Use print_hex_chars not dump_endian_bytes.
1919 * sh64-tdep.c (sh64_do_fp_register): Use print_hex_chars.
1923 * breakpoint.c (remove_threaded_breakpoints): Skip non-user
1930 * gnu-nat.c (gnu_read_inferior, gnu_write_inferior): Make static.
1931 Take a gdb_byte pointer instead of a char pointer.
1933 * gnu-nat.c (gnu_xfer_memory): Adjust interface as
1934 gnu_xfer_partial helper.
1935 (gnu_xfer_partial): New function.
1936 (gnu_target): Don't install a deprecated_xfer_memory hook.
1937 Install a to_xfer_partial hook.
1942 * main.c (captured_main): Replace catch_command_errors by
1943 catch_command_errors_const. Twice.
1944 * symfile.c (symbol_file_add_main_1): Make args parameter const.
1945 (symbol_file_add): Make name parameter const.
1946 (symbol_file_add_main, symbol_file_add_main_1): Make args parameter const.
1947 (symfile_bfd_open): Make name parameter const, rename it to cname. Add
1948 variable name. Change their usage accordingly.
1949 * symfile.h (symbol_file_add, symfile_bfd_open): Make first parameter
1951 (symbol_file_add_main): Make args parameter const.
1956 * xcoffread.c (struct coff_symbol): Use CORE_ADDR as type
1958 (read_xcoff_symtab): Use CORE_ADDR as type of fcn_start_addr.
1963 * gnu-nat.c (inf_validate_procs, gnu_wait, gnu_resume)
1964 (gnu_create_inferior)
1965 (gnu_attach, gnu_thread_alive, gnu_pid_to_str, cur_thread)
1966 (set_sig_thread_cmd): Use the lwpid field of ptids to
1967 store/extract thread ids instead of the tid field.
1968 * i386gnu-nat.c (gnu_fetch_registers): Adjust.
1972 * infcmd.c (default_print_one_register_info): Add detection of
1973 optimized out values.
1974 (default_print_registers_info): Switch to using
1975 get_frame_register_value.
1979 * infrun.c (handle_inferior_event): Check if we know the
1980 function start address before setting a resume breakpoint.
1984 * gnu-nat.c (set_sig_thread_cmd): Compare the thread's ptid to
1985 minus_one_ptid instead of looking at the ptid's tid field and
1986 comparing that to -1.
1990 * main.h (get_gdb_program_name): Remove extra whitespace.
1994 * main.h (get_gdb_program_name): Add declaration.
1995 * main.c (get_gdb_program_name): Add definition.
1999 * dwarf2read.c: Move definitions of complaint functions to after
2000 forward declarations of local functions.
2006 * breakpoint.c (remove_threaded_breakpoints): New function.
2007 (_initialize_breakpoint): Attach remove_threaded_breakpoints
2008 as thread_exit observer.
2013 * ada-tasks.c (task_command_1): Adjust call to print_stack_frame.
2014 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2015 * corelow.c (core_open):
2016 * frame.h (print_stack_frame, print_frame_info): New
2017 'set_current_sal' parameter.
2018 * infcmd.c (finish_command, kill_command): Adjust call to
2020 * inferior.c (inferior_command): Likewise.
2021 * infrun.c (normal_stop): Likewise.
2022 * linux-fork.c (linux_fork_context): Likewise.
2023 * record-full.c (record_full_goto_entry, record_full_restore):
2025 * remote-mips.c (common_open): Likewise.
2026 * stack.c (print_stack_frame): New 'set_current_sal' parameter.
2028 (print_frame_info): New 'set_current_sal' parameter. Set the last
2029 displayed sal depending on the new paremeter instead of looking at
2031 (backtrace_command_1, select_and_print_frame, frame_command)
2032 (current_frame_command, up_command, down_command): Adjust call to
2034 * thread.c (print_thread_info, restore_selected_frame)
2035 (do_captured_thread_select): Adjust call to print_stack_frame.
2036 * tracepoint.c (tfind_1): Likewise.
2037 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
2038 (mi_cmd_stack_info_frame): Likewise.
2039 * mi/mi-interp.c (mi_on_normal_stop): Likewise.
2040 * mi/mi-main.c (mi_cmd_exec_return, mi_cmd_trace_find): Likewise.
2044 * value.c (isvoid_internal_fn): Replace "parameter" with
2049 * README: Update references to writing code for GDB.
2050 * configure.ac (build_warnings): Remove obsolete comment.
2051 * configure: Regenerate.
2052 * gdbarch.sh: Remove references to gdbint.texinfo.
2053 * gdbarch.h: Regenerate.
2054 * gdbtypes.c (objfile_type): Remove comments referencing internals
2059 * NEWS: Mention new convenience function $_isvoid.
2060 * value.c (isvoid_internal_fn): New function.
2061 (_initialize_values): Add new convenience function $_isvoid.
2065 * arm-linux-tdep.c: Add "elf/common.h" header.
2066 Remove AT_HWCAP macro definintion as it is provided in
2068 * s390-tdep.c: Remove system header <elf.h>
2069 Add "elf/common.h" header for AT_HWCAP definition.
2070 (s390_core_read_description): Use correct CORE_ADDR
2071 for hwcap local variable used as third parameter
2072 of function target_auxv_search.
2078 * common/filestuff.c (gdb_fopen_cloexec): Do not try to use "e"
2079 mode if operating system doesn't know O_CLOEXEC.
2084 * symfile.c (reread_symbols): Move variable obfd_filename to a more
2089 * NEWS: Mention TDB support.
2090 * features/s390-tdb.xml: New file.
2091 * features/s390-te-linux64.xml: New file.
2092 * features/s390x-te-linux64.xml: New file.
2093 * features/Makefile (WHICH): Add new tdescs above.
2094 (s390-te-linux64-expedite): Set.
2095 (s390x-te-linux64-expedite): Set.
2096 * features/s390-te-linux64.c: New file (generated).
2097 * features/s390x-te-linux64.c: New file (generated).
2098 * regformats/s390-te-linux64.dat: New file (generated).
2099 * regformats/s390x-te-linux64.dat: New file (generated).
2100 * s390-tdep.h (HWCAP_S390_HIGH_GPRS): Define.
2101 (HWCAP_S390_TE): Likewise.
2102 (S390_TDB_DWORD0_REGNUM): Likewise.
2103 (S390_TDB_DWORD0_REGNUM): Likewise.
2104 (S390_TDB_ABORT_CODE_REGNUM): Likewise.
2105 (S390_TDB_CONFLICT_TOKEN_REGNUM): Likewise.
2106 (S390_TDB_ATIA_REGNUM): Likewise.
2107 (S390_TDB_R0_REGNUM): Likewise.
2108 (S390_TDB_R1_REGNUM): Likewise.
2109 (S390_TDB_R2_REGNUM): Likewise.
2110 (S390_TDB_R3_REGNUM): Likewise.
2111 (S390_TDB_R4_REGNUM): Likewise.
2112 (S390_TDB_R5_REGNUM): Likewise.
2113 (S390_TDB_R6_REGNUM): Likewise.
2114 (S390_TDB_R7_REGNUM): Likewise.
2115 (S390_TDB_R8_REGNUM): Likewise.
2116 (S390_TDB_R9_REGNUM): Likewise.
2117 (S390_TDB_R10_REGNUM): Likewise.
2118 (S390_TDB_R11_REGNUM): Likewise.
2119 (S390_TDB_R12_REGNUM): Likewise.
2120 (S390_TDB_R13_REGNUM): Likewise.
2121 (S390_TDB_R14_REGNUM): Likewise.
2122 (S390_TDB_R15_REGNUM): Likewise.
2123 (S390_NUM_REGS): Increase.
2124 (S390_IS_TDBREGSET_REGNUM): New macro.
2125 (s390_regmap_tdb): Declare.
2126 (s390_sizeof_tdbregset): Define.
2127 (tdesc_s390_te_linux64): Declare.
2128 (tdesc_s390x_te_linux64): Likewise.
2129 * s390-tdep.c: Add includes for "auxv.h", <elf.h>,
2130 "features/s390-te-linux64.c", and "features/s390x-te-linux64.c".
2131 (s390_regmap_tdb): New regmap.
2132 (s390_supply_tdb_regset): New function.
2133 (s390_tdb_regset): New regset.
2134 (s390_linux64v2_regset_sections): Add TDB regset to list.
2135 (s390x_linux64v2_regset_sections): Likewise.
2136 (s390_regset_from_core_section): Recognize TDB core note section.
2137 (s390_core_read_description): If HWCAP indicates TE support,
2138 select tdesc_s390_te_linux64 or tdesc_s390_s390x_te_linux64.
2139 (s390_gdbarch_init): Handle TDB regset.
2140 (_initialize_s390_tdep): Initialize new tdescs.
2141 * s390-nat.c (HWCAP_S390_HIGH_GPRS): Remove define.
2142 (have_regset_tdb): New variable.
2143 (s390_native_supply): Support register invalidation.
2144 (fetch_regset): Invalidate registers if ptrace yields ENODATA.
2145 (check_regset): Treat ENODATA as "regset exists".
2146 (s390_linux_fetch_inferior_registers): Add TDB.
2147 (s390_read_description): Check for TDB existence and select
2149 * gdbserver/Makefile.in (clean): Add removal of new makefile
2151 (s390-te-linux64.c): New makefile target.
2152 (s390x-te-linux64.c): Likewise.
2153 * gdbserver/configure.srv (srv_regobj): Append new objects
2154 s390-te-linux64.o and s390x-te-linux64.o.
2155 (srv_xmlfiles): Append new files s390-te-linux64.xml,
2156 s390x-te-linux64.xml, and s390-tdb.xml.
2157 * gdbserver/linux-s390-low.c (init_registers_s390_te_linux64): New
2159 (tdesc_s390_te_linux64): Likewise.
2160 (init_registers_s390x_te_linux64): Likewise.
2161 (tdesc_s390x_te_linux64): Likewise.
2162 (s390_check_regset): Treat ENODATA as "regset exists".
2163 (s390_arch_setup): Add TDB regset support.
2164 (initialize_low_arch): Initialize registers for new tdescs.
2168 * s390-tdep.h (S390_IS_GREGSET_REGNUM): New macro.
2169 (S390_IS_FPREGSET_REGNUM): New macro.
2170 * s390-tdep.c (s390_dwarf_regmap): Make const.
2171 (regnum_is_gpr_full): New function for replacing repeated code.
2172 (s390_pseudo_register_name): Use it.
2173 (s390_pseudo_register_type): Likewise.
2174 (s390_pseudo_register_read): Likewise.
2175 (s390_pseudo_register_write): Likewise.
2176 (s390_unwind_pseudo_register): Likewise.
2177 (s390_regmap_gregset): New format for regmap.
2178 (s390x_regmap_gregset): Likewise.
2179 (s390_regmap_fpregset): Likewise.
2180 (s390_regmap_upper): Likewise.
2181 (s390_regmap_last_break): Likewise.
2182 (s390_regmap_system_call): Likewise.
2183 (s390_supply_regset): Adjust to new regmap format.
2184 (s390_collect_regset): Likewise.
2185 * s390-nat.c (s390_native_supply): Adjust to new regmap format.
2186 (s390_native_collect): Likewise.
2187 (supply_gregset): Likewise.
2188 (fill_gregset): Likewise.
2189 (supply_fpregset): Likewise.
2190 (fill_fpregset): Likewise.
2191 (fetch_regset): Likewise.
2192 (store_regset): Likewise.
2193 (s390_linux_fetch_inferior_registers): Likewise.
2194 (s390_linux_fetch_inferior_registers): Likewise.
2198 * aarch64-linux-nat.c (aarch64_linux_set_debug_regs): Zero out regs.
2202 * config/s390/s390.mh (NATDEPFILES): Add linux-waitpid.o.
2206 * top.c (quit_confirm): Remove use of deprecated_init_ui_hook.
2210 * remote-sim.c (dump_mem, gdbsim_fetch_register)
2211 (gdbsim_store_register, gdbsim_kill, gdbsim_load)
2212 (gdbsim_create_inferior, gdbsim_open, gdbsim_close)
2213 (gdbsim_detach, gdbsim_resume_inferior, gdbsim_wait)
2214 (gdbsim_files_info, gdbsim_mourn_inferior): Send debug output to
2219 * remote-sim.c (dump_mem): Constify buf parameter.
2220 gdbsim_xfer_inferior_memory): Rename to ...
2221 (gdbsim_xfer_memory): ... this. Adjust interface as
2222 target_xfer_partial helper.
2223 (gdbsim_xfer_partial): New function.
2224 (init_gdbsim_ops): Don't install a deprecated_xfer_memory hook.
2225 Install a to_xfer_partial hook. Send output to gdb_stdlog.
2229 * remote-sim.c (gdbsim_xfer_inferior_memory): Use
2230 host_address_to_string, and send debug output to gdb_stdlog.
2234 * Makefile.in (ALL_TARGET_OBS): Add cris-linux-tdep.o.
2235 * configure.tgt: Add cris-linux-tdep.o and linux-tdep.o to
2236 gdb_target_obs for cris target.
2237 * cris-tdep.c (struct gdbarch_tdep): Move to cris-tdep.h.
2238 (cris_gdbarch_init): Move calls to
2239 set_gdbarch_fetch_tls_load_module_address and
2240 set_solib_svr4_fetch_link_map_offsets to cris-linux-tdep.c.
2241 Add call to gdbarch_init_osabi.
2242 * cris-linux-tdep.c: New file.
2243 * cris-tdep.h: New file.
2247 * tui/tui-io.c (tui_initialize_io): Remove legacy comment referring
2248 to deprecated_init_ui_hook.
2252 * cli/cli-interp.c (_initialize_cli_interp): Add a
2253 command_loop_proc to interp_procs.
2254 * event-top.c (cli_command_loop): Change signature to match
2255 interp_command_loop_ftype.
2256 * event-top.h (cli_command_loop): Same.
2257 * interps.c (interp_new): Require every interpreter to have a
2259 (current_interp_command_loop): Just call the command_loop_proc on
2260 the current interpreter.
2261 * tui/tui-interp.c (_initialize_tui_interp): Add a
2262 command_loop_proc to interp_procs.
2266 * cris-tdep.c (cris_gdbarch_init): Add call to
2267 get_gdbarch_fetch_tls_load_module_address.
2271 * cris-tdep.c (cris_elf_greg_t): Rename from elf_greg_t.
2272 (cris_elf_gregset_t): Rename from elf_gregset_t.
2273 (crisv32_elf_gregset_t): Adjust.
2274 (cris_supply_gregset, fetch_core_registers): Adjust.
2278 * cris-tdep.c (elf_greg_t): Change typedef to unsigned char[4]
2282 * defs.h (deprecated_command_loop_hook): Remove, including
2283 references in comments.
2284 * interps.c (current_interp_command_loop): No longer use
2285 deprecated_command_loop_hook.
2286 (clear_interpreter_hooks): Remove deprecated_command_loop_hook
2288 * top.c (deprecated_command_loop_hook): Remove.
2292 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): 'dwarf_regnum'
2293 local is now int instead of ULONGEST. Print it with %d
2294 instead of paddress.
2298 * MAINTAINERS: Remove avr maintainership.
2302 * findvar.c (value_of_register): Rework in terms of
2303 value_of_register_lazy.
2307 * symfile.c (add_symbol_file_command): Remove trailing
2308 whitespaces and blank line after comment.
2312 * tui/tui-regs.c (tui_register_format): Don't look at the
2313 register's name here. Return string representing register
2314 value instead of storing it in the data element.
2315 (tui_get_register): Compare register string representations
2316 instead of register value states and contents.
2321 * tui/tui-regs.c (tui_show_registers): Show registers of the
2322 selected frame, not the current frame.
2326 * MAINTAINERS (Write After Approval): Add myself to the list.
2330 * dwarf2read.c (queue_and_load_all_dwo_tus): New function.
2331 (queue_and_load_dwo_tu): New function.
2332 (lookup_dwo_signatured_type): Set per_cu.tu_read.
2333 (maybe_queue_comp_unit): Rename this_cu argument to dependent_cu.
2334 Make dependent_cu optional.
2335 (dw2_do_instantiate_symtab): If we just loaded a CU from a DWO,
2336 and an older .gdb_index is in use, queue and load all its TUs too.
2340 Code cleanup: Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH.
2341 * cli/cli-cmds.c (find_and_open_script): Add OPF_RETURN_REALPATH to
2342 variable search_flags.
2343 * defs.h (OPF_DISABLE_REALPATH): Rename to ...
2344 (OPF_RETURN_REALPATH): ... here.
2345 * dwarf2read.c (try_open_dwop_file): Set OPF_RETURN_REALPATH for flags.
2346 * exec.c (exec_file_attach): Remove OPF_DISABLE_REALPATH from openp
2348 * nto-tdep.c (nto_find_and_open_solib): Add OPF_RETURN_REALPATH for
2350 * solib.c (solib_find): Likewise. Four times.
2351 * source.c (openp): Change OPF_DISABLE_REALPATH to OPF_RETURN_REALPATH
2352 in the function comment and for the realpath_fptr variable.
2353 (source_full_path_of): Add OPF_RETURN_REALPATH for openp call.
2354 (find_and_open_source): Likewise. Twice.
2355 * symfile.c (symfile_bfd_open): Likewise, also twice.
2359 * progspace.c (save_current_space_and_thread): Remove unnecessary
2360 call to save_current_inferior.
2364 * sh64-tdep.c (sh64_do_register): Return after printing message
2365 about unavailable register contents.
2370 * symfile.c (add_symbol_file_command): Error out on unknown
2371 option. Handle EXPECTING_SEC_ADDR/EXPECTING_SEC_NAME before '-'
2372 options and collapse into single conditional branch.
2376 * inf-child.c (inf_child_follow_fork): New parameter
2378 * inf-ptrace.c (inf_ptrace_follow_fork): Likewise.
2379 * inf-ttrace.c (inf_ttrace_follow_fork): Likewise.
2380 * inferior.h (detach_fork): Remove.
2381 * infrun.c (detach_fork): Adjust comment and make it
2383 (follow_fork): Pass detach_fork parameter to
2385 * linux-nat.c (linux_child_follow_fork): New parameter
2387 * target.c (target_follow_fork): New parameter detach_fork.
2388 Pass detach_fork as parameter and print its value.
2389 * target.h (struct target_ops) <to_follow_fork>: New int
2391 (target_follow_fork): New parameter detach_fork.
2395 * solib-ia64-hpux.c (ia64_hpux_relocate_section_addresses):
2396 Replace sec->bfd by sec->the_bfd_section->owner.
2400 * linux-tdep.c (linux_is_uclinux): New function. Code moved
2401 from linux_has_shared_address_space.
2402 (linux_has_shared_address_space): Call linux_is_uclinux.
2403 * linux-tdep.h (linux_is_uclinux): Declare.
2404 * m68klinux-tdep.c (m68k_linux_get_sigtramp_info): Call
2409 * config/djgpp/fnchange.lst: Remove entry of
2410 i386-interix-nat.c and i386-interix-tdep.c.
2411 * configure.ac: Remove '*-*-interix*'.
2412 * configure: Re-generated.
2413 * defs.h (enum gdb_osabi): Remove GDB_OSABI_INTERIX.
2414 * i386-cygwin-tdep.c (i386_cygwin_osabi_sniffer): Remove
2416 * osabi.c (gdb_osabi_names): Remove "Interix".
2420 * arch-utils.c: Fix typo in the comment to gdbarch_update_p.
2424 * record.h (record_print_flag) <record_print_src_line,
2425 record_print_insn_range>: Rename into ...
2426 (record_print_flag) <record_print_src_line,
2427 record_print_insn_range>: ... this. Update all users.
2431 * windows-nat.c (windows_xfer_memory): Handle ERROR_PARTIAL_COPY
2436 * windows-nat.c (windows_xfer_memory): Fix compilation failure
2437 by use of plongest function.
2441 * NEWS: Add entry mentioning support for native Windows x64
2444 * amd64-windows-tdep.c: #include "objfiles.h", "frame-unwind.h",
2445 "coff/internal.h", "coff/i386.h", "coff/pe.h" and "libcoff.h".
2446 (struct amd64_windows_frame_cache): New struct.
2447 (amd64_windows_w2gdb_regnum): New global.
2448 (pc_in_range, amd64_windows_frame_decode_epilogue)
2449 (amd64_windows_frame_decode_insns, amd64_windows_find_unwind_info)
2450 (amd64_windows_frame_cache, amd64_windows_frame_prev_register)
2451 (amd64_windows_frame_this_id): New functions.
2452 (amd64_windows_frame_unwind): New static global.
2453 (amd64_windows_skip_prologue): New function.
2454 (amd64_windows_init_abi): Call frame_unwind_prepend_unwinder
2455 with amd64_windows_frame_unwind. Call set_gdbarch_skip_prologue
2456 with amd64_windows_skip_prologue.
2464 * mi/mi-main.c (mi_cmd_trace_find): Use LOC_AND_ADDRESS instead of
2469 * thread.c (restore_selected_frame): Use SRC_AND_LOC, and change
2474 * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd):
2475 Adjust arguments to print_stack_frame.
2479 * ada-tasks.c (task_command_1): Write SRC_AND_LOC instead '1'.
2483 * frame.h (show_and_print_stack_frame): Delete declaration.
2488 * python/py-arch.c (ARCHPY_REQUIRE_VALID): New macro.
2489 (archpy_name): Check for valid architecture.
2490 (archpy_disassemble): Ditto.
2494 * rs6000-nat.c (rs6000_ptrace32): Cast "addr" to "uintptr_t"
2495 instead of "long long" in call to ptrace64.
2499 * mi/mi-interp.c (mi_command_loop): Change signature to match
2500 interp_command_loop_ftype.
2501 (mi1_command_loop): Remove.
2502 (mi2_command_loop): Remove.
2503 (mi3_command_loop): Remove.
2504 (mi_interpreter_resume): Remove setting of
2505 deprecated_command_loop_hook.
2506 (_initialize_mi_interp): Set mi_command_loop as the command loop
2511 * valops.c (do_search_struct_field): Pass v2 instead of base_type to
2516 * value.c (allocate_value_contents): Make static.
2517 * value.h (allocate_value_contents): Remove prototype.
2521 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use value_at_lazy instead
2522 of assembling value via allocate_value_lazy and attribute setter.
2523 * findvar.c (default_read_var_value): Use value_at_lazy instead of
2524 assembling value via allocate_value_lazy and attribute setter.
2525 * valops.c (do_search_struct_field): Use value_at_lazy instead of
2526 assembling value via allocate_value_lazy and attribute setter.
2530 * value.c (value_from_contents_and_address): Replace allocate_value and
2531 memcpy with value_from_contents.
2535 * python/py-framefilter.c (py_print_frame): Remove usage of
2536 PyString_AsString. Use python_string_to_host_string instead.
2537 Refactor function to work with a string as a new allocation
2538 instead of a pointer.
2539 (py_print_frame): Ditto.
2540 * python/lib/gdb/frames.py (return_list): Cain iterators together
2541 instead of adding them as a list.
2542 (_sort_list): Call return_list, and remove duplicate code.
2543 (execute_frame_filters): Convert iterator to a list with list().
2544 * python/lib/gdb/command/frame_filters.py
2545 (SetFrameFilterPriority._set_filter_priority): Convert priority
2546 attribute to an integer.
2547 * python/lib/gdb/FrameIterator.py (FrameIterator.next): Define
2548 wrapper function __next__.
2549 * python/lib/gdb/FrameDecorator.py: If basestring not defined,
2555 * python/py-framefilter.c (apply_frame_filter): Check
2556 gdb_python_initialized. Exit if the Python frame-filter code
2557 cannot be initialized.
2562 * top.c (print_gdb_version): Remove erroneous newline after help
2567 * varobj.c (install_dynamic_child): Remove trailing space.
2568 Add one blank line after variable declaration.
2573 * corefile.c (get_exec_file): Use exec_filename.
2574 * defs.h (OPF_DISABLE_REALPATH): New definition. Add new comment.
2575 * exec.c (exec_close): Free EXEC_FILENAME.
2576 (exec_file_attach): New variable canonical_pathname. Use
2577 OPF_DISABLE_REALPATH. Call gdb_realpath explicitly. Set
2579 * exec.h (exec_filename): New.
2580 * inferior.c (print_inferior, inferior_command): Use
2581 PSPACE_EXEC_FILENAME.
2582 * mi/mi-main.c (print_one_inferior): Likewise.
2583 * progspace.c (clone_program_space, print_program_space): Likewise.
2584 * progspace.h (struct program_space): New field pspace_exec_filename.
2585 * source.c (openp): Describe OPF_DISABLE_REALPATH. New variable
2586 realpath_fptr, initialize it from OPF_DISABLE_REALPATH, use it.
2590 * common/linux-ptrace.c: Include stdint.h unconditionally.
2595 * nto-tdep.c (nto_find_and_open_solib): Use OPF_TRY_CWD_FIRST.
2600 * event-top.c (gdb_setup_readline): Call stderr_fileopen
2601 instead of stdio_fileopen.
2602 * main.c (captured_main) [__MINGW32__]: Set stderr unbuffered.
2603 .Call stderr_fileopen instead of stdio_fileopen.
2604 * ui-file.c [__MINGW32__] (stderr_file_write): New function.
2605 [__MINGW32__] (stderr_file_fputs): New function.
2606 (stderr_fileopen): New function.
2607 * ui-file.h (stderr_fileopen): Declare.
2611 * dwarf2read.c (struct dwarf2_cu): Tweak comment.
2612 (struct dwarf2_per_cu_data): Ditto.
2613 (maybe_queue_comp_unit): Delete forward decl. Add comment.
2614 (process_imported_unit_die): Ditto.
2615 (follow_die_sig_1): Simplify assert.
2619 * windows-nat.c (windows_xfer_memory): Adjust prototype to follow
2620 xfer_partial's interface. Return TARGET_XFER_E_IO on error.
2621 (windows_xfer_partial): Defer TARGET_OBJECT_MEMORY handling to
2622 windows_xfer_memory directly.
2623 (init_windows_ops): Don't install a deprecated_xfer_memory method.
2627 * darwin-nat.c (darwin_xfer_memory): Delete.
2628 (_initialize_darwin_inferior): Don't install a
2629 deprecated_xfer_memory method.
2634 * mi/mi-cmd-stack.c (list_args_or_locals): Adjust prototype.
2635 (parse_no_frames_option): Remove.
2636 (mi_cmd_stack_list_locals): Handle --skip-unavailable.
2637 (mi_cmd_stack_list_args): Adjust.
2638 (mi_cmd_stack_list_variables): Handle --skip-unavailable.
2639 (list_arg_or_local): Add new parameter 'skip_unavailable'. Return
2640 early if SKIP_UNAVAILABLE is true and ARG->val is unavailable.
2642 (list_args_or_locals): New parameter 'skip_unavailable'.
2644 * valprint.c (scalar_type_p): Rename to ...
2645 (val_print_scalar_type_p): ... this. Make extern.
2646 (val_print, value_check_printable): Adjust.
2647 * valprint.h (val_print_scalar_type_p): Declare.
2648 * value.c (value_entirely_unavailable): New function.
2649 * value.h (value_entirely_unavailable): Declare.
2651 * NEWS: Mention the new option "--skip-unavailable" to MI
2652 commands '-stack-list-locals', '-stack-list-arguments' and
2653 '-stack-list-variables'.
2657 * mi/mi-cmd-stack.c (parse_no_frames_option): Remove.
2658 (mi_cmd_stack_list_args): Use mi_getopt_silent to handle
2660 * mi/mi-getopt.c (mi_getopt): Remove.
2661 (mi_getopt_1): Renamed from mi_getopt. Add one parameter
2663 (mi_getopt): Call mi_getopt_1.
2664 (mi_getopt_silent): New.
2665 * mi/mi-getopt.h (mi_getopt_silent): Declare.
2670 * dwarf2read.c (dw2_dump): Print some minimal information indicating
2671 .gdb_index is in use.
2672 * symfile.c (reread_symbols): Reset objfile->sf.
2674 * NEWS: Document "mt print objfiles" now takes optional regexp.
2675 * symmisc.c (maintenance_print_objfiles): Argument is now an optional
2676 regexp of objfiles to print.
2677 (_initialize_symmisc): Update doc string for "mt print objfiles".
2679 * dwarf2read.c (write_psymtabs_to_index): Move error checks ahead of
2680 missing debug info checks.
2685 * xcoffread.c (arrange_linetable): Add fix to correctly handle
2686 line tables generated by XLC compiled binaries.
2690 * symmisc.c (dump_symtab): Delete prototype.
2691 (dump_msymbols, dump_objfile): Ditto.
2692 (maintenance_info_symtabs): Mark as dont_repeat.
2693 (_initialize_symmisc): Improve doc string for "mt info symtabs".
2695 * elfread.c (elf_symfile_read): Move "Done reading minimal symbols"
2696 debugging printf to better location.
2700 * target.c (target_read_live_memory): Change type of 'ret' local
2705 * remote.c (remote_write_bytes_aux, remote_write_bytes)
2706 (remote_read_bytes): Change return type to LONGEST, and adjust to
2707 return a target_xfer_error on error.
2708 (remote_xfer_memory): Delete.
2709 (remote_flash_write): Change type of 'ret' local to LONGEST.
2710 (remote_xfer_partial, remote_xfer_partial): Adjust.
2711 (init_remote_ops): Don't install a deprecated_xfer_memory hook.
2715 ARI fix: Push # directives to start of line.
2716 * rs6000-nat.c (rs6000_ptrace32, rs6000_ptrace64): Rule applied.
2721 * breakpoint.c (enable_command, disable_command): Iterate over
2722 all specified breakpoint locations.
2726 * common/linux-ptrace.c (linux_fork_to_function): Push #
2727 directives to the start of the line.
2728 (linux_check_ptrace_features): Fix warning message to use
2733 * Makefile.in (HFILES_NO_SRCDIR): Add nat/linux-nat.h and
2734 nat/linux-waitpid.h.
2735 (linux-waitpid.o): New object file rule.
2736 * common/linux-ptrace.c: Include nat/linux-waitpid.h.
2737 (current_ptrace_options): Moved from linux-nat.c.
2738 (linux_ptrace_test_ret_to_nx): Use type casts for ptrace
2740 (linux_fork_to_function): New function.
2741 (linux_grandchild_function): Likewise.
2742 (linux_child_function): Likewise.
2743 (linux_check_ptrace_features): New function, heavily
2744 based on linux-nat.c:linux_test_for_tracefork.
2745 (linux_enable_event_reporting): New function.
2746 (ptrace_supports_feature): Likewise.
2747 (linux_supports_tracefork): Likewise.
2748 (linux_supports_traceclone): Likewise.
2749 (linux_supports_tracevforkdone): Likewise.
2750 (linux_supports_tracesysgood): Likewise.
2751 * common/linux-ptrace.h (HAS_NOMMU): Moved from
2752 gdbserver/linux-low.c.
2753 (linux_enable_event_reporting): New declaration.
2754 (linux_supports_tracefork): Likewise.
2755 (linux_supports_traceclone): Likewise.
2756 (linux_supports_tracevforkdone): Likewise.
2757 (linux_supports_tracesysgood): Likewise.
2758 * config.in (PTRACE_TYPE_ARG4): Regenerate.
2759 * config/aarch64/linux.mh (NATDEPFILES): Add linux-waitpid.o.
2760 * config/alpha/alpha-linux.mh (NATDEPFILES): Likewise.
2761 * config/arm/linux.mh (NATDEPFILES): Likewise.
2762 * config/i386/linux.mh (NATDEPFILES): Likewise.
2763 * config/i386/linux64.mh (NATDEPFILES): Likewise.
2764 * config/ia64/linux.mh (NATDEPFILES): Likewise.
2765 * config/m32r/linux.mh (NATDEPFILES): Likewise.
2766 * config/m68k/linux.mh (NATDEPFILES): Likewise.
2767 * config/mips/linux.mh (NATDEPFILES): Likewise.
2768 * config/pa/linux.mh (NATDEPFILES): Likewise..
2769 * config/powerpc/linux.mh (NATDEPFILES): Likewise..
2770 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Likewise.
2771 * config/powerpc/spu-linux.mh (NATDEPFILES): Likewise.
2772 * config/sparc/linux.mh (NATDEPFILES): Likewise.
2773 * config/sparc/linux64.mh (NATDEPFILES): Likewise.
2774 * config/tilegx/linux.mh (NATDEPFILES): Likewise.
2775 * config/xtensa/linux.mh (NATDEPFILES): Likewise.
2776 * configure.ac (AC_CACHE_CHECK): Add void * to the list of
2777 ptrace's 4th argument's types.
2778 Check the type of PTRACE_TYPE_ARG4.
2779 * configure: Regenerate.
2780 * linux-nat.c: Include nat/linux-nat.h and nat/linux-waitpid.h.
2781 (SYSCALL_SIGTRAP): Moved to nat/linux-nat.h.
2782 (linux_supports_tracefork_flag): Remove.
2783 (linux_supports_tracesysgood_flag): Likewise.
2784 (linux_supports_tracevforkdone_flag): Likewise.
2785 (current_ptrace_options): Moved to
2786 common/linux-ptrace.c.
2787 (linux_tracefork_child): Remove.
2788 (my_waitpid): Remove.
2789 (linux_test_for_tracefork): Renamed to
2790 linux_check_ptrace_features and moved to common/linux-ptrace.c.
2791 (linux_test_for_tracesysgood): Remove.
2792 (linux_supports_tracesysgood): Remove.
2793 (linux_supports_tracefork): Remove.
2794 (linux_supports_tracevforkdone): Remove.
2795 (linux_enable_tracesysgood): Remove.
2796 (linux_enable_event_reporting): Remove.
2797 (linux_init_ptrace): New function.
2798 (linux_child_post_attach): Call linux_init_ptrace.
2799 (linux_child_post_startup_inferior): Call linux_init_ptrace.
2800 (linux_child_follow_fork): Call linux_supports_tracefork
2801 and linux_supports_tracevforkdone.
2802 (linux_child_insert_fork_catchpoint): Call
2803 linux_supports_tracefork.
2804 (linux_child_insert_vfork_catchpoint): Likewise.
2805 (linux_child_set_syscall_catchpoint): Call
2806 linux_supports_tracesysgood.
2807 (lin_lwp_attach_lwp): Call linux_supports_tracefork.
2808 * nat/linux-nat.h: New file.
2809 * nat/linux-waitpid.c: New file.
2810 * nat/linux-waitpid.h: New file.
2814 ARM Linux support for `catch syscall'.
2815 * syscalls/arm-linux.py: New file.
2816 * syscalls/arm-linux.xml: Likewise.
2817 * arm-linux-tdep.c (arm_linux_get_syscall_number): New function.
2818 (arm_linux_init_abi): Register the new function and syscall xml file.
2819 * data-directory/Makefile.in: Install the new syscall xml file.
2820 * NEWS: Brag about this.
2825 * corefile.c (target_xfer_memory_error): New function.
2826 (memory_error): Defer EIO to target_memory_error.
2827 (read_memory): Use target_xfer_partial, and handle finer-grained
2829 * target.c (target_xfer_error_to_string): New function.
2830 (memory_xfer_partial_1): If memory is known to be
2831 unavailable, return TARGET_XFER_E_UNAVAILABLE instead of -1.
2832 (target_xfer_partial): Make extern.
2833 * target.h (enum target_xfer_error): New enum.
2834 (target_xfer_error_to_string): Declare function.
2835 (target_xfer_partial): Declare function.
2836 (struct target_ops) <xfer_partial>: Adjust describing comment.
2840 * configure.host: Support powerpc64le-linux and powerpcle-linux hosts.
2841 * configure.tgt: Likewise as targets.
2845 * buildsym.c (subfile_stack): Move here from buildsym.h.
2846 (pending_macros): Ditto.
2847 (get_macro_table): New function.
2848 (buildsym_init): Initialize subfile_stack.
2849 * coffread.c (type_vector,type_vector_length): Moved here from
2851 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2852 (coff_symtab_read): Use it.
2853 * dbxread.c (read_ofile_symtab): Delete init of subfile_stack.
2854 * dwarf2read.c (macro_start_file): Replace uses of pending_macros
2855 with call to get_macro_table.
2856 * stabsread.c (type_vector,type_vector_length): Moved here from
2858 (INITIAL_TYPE_VECTOR_LENGTH): Ditto.
2859 * buildsym.h (get_macro_table): Declare.
2863 * dbxread.c (record_minimal_symbol): Make 'name' argument const.
2865 (read_dbx_dynamic_symtab): Make 'name' const. Remove casts.
2869 * blockframe.c: Remove #include "psymtab.h".
2870 * cp-support.c: Ditto.
2877 * exceptions.h (return_mask): Now an enum.
2878 (RETURN_MASK_QUIT, RETURN_MASK_ERROR, RETURN_MASK_ALL): Now
2883 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Use
2885 * elfread.c (elf_rel_plt_read, elf_gnu_ifunc_record_cache)
2886 (elf_gnu_ifunc_resolve_by_got): Use get_objfile_arch.
2887 * jit.c (jit_object_close_impl): Update.
2888 * jv-lang.c (get_dynamics_objfile): Update.
2889 * linespec.c (add_minsym): Use get_dynamics_objfile.
2890 * objfiles.c (get_objfile_bfd_data): Initialize 'gdbarch' field.
2891 (allocate_objfile): Don't initialize 'gdbarch' field.
2892 (get_objfile_arch): Update.
2893 * objfiles.h (struct objfile_per_bfd_storage) <gdbarch>: New field,
2895 (struct objfile) <gdbarch>: ... here. Remove.
2896 * stap-probe.c (stap_can_evaluate_probe_arguments): Use
2898 * symfile.c (init_entry_point_info): Use get_objfile_arch.
2902 * doublest.c (convert_floatformat_to_doublest): Use fmt->split_half
2903 for IBM long double nan and inf.
2904 (floatformat_is_negative, floatformat_classify,
2905 floatformat_mantissa): Similarly.
2906 (floatformat_ieee_single, floatformat_ieee_double,
2907 floatformat_ieee_quad, floatformat_arm_ext,
2908 floatformat_ia64_spill): Delete unused vars.
2909 (_initialize_doublest): Delete unused function.
2910 * gdbtypes.c (floatformats_ibm_long_double): Use new big- and
2911 little-endian variants of floatformat_ibm_long_double.
2915 * Makefile.in (SFILES): Remove common/target-common.c and
2916 add target/waitstatus.c.
2917 (HFILES_NO_SRCDIR): Remove common/target-common.h and add
2918 target/resume.h, target/wait.h and target/waitstatus.h.
2919 (COMMON_OBS): Remove target-common.o and add
2921 (target-common.o): Remove.
2922 (waitstatus.o): New target object file.
2923 * common/target-common.c: Move contents to
2924 target/waitstatus.c and remove.
2925 * common/target-common.h: Move contents to other files and
2927 (enum resume_kind: Move to target/resume.h.
2928 (TARGET_WNOHANG): Move to target/wait.h.
2929 (enum target_waitkind): Move to target/waitstatus.h.
2930 (struct target_waitstatus): Likewise.
2931 * target.h: Do not include target-common.h and
2932 include target/resume.h, target/wait.h and
2933 target/waitstatus.h.
2934 * target/resume.h: New file.
2935 * target/wait.h: New file.
2936 * target/waitstatus.h: New file.
2937 * target/waitstatus.c: New file.
2941 * linux-nat.c (linux_test_for_tracefork)
2942 (linux_test_for_tracesysgood, linux_child_follow_fork)
2943 (lin_lwp_attach_lwp, linux_nat_resume): Don't block child signals.
2944 (linux_nat_wait_1): Extend comment.
2945 (linux_async_pipe): Add comment.
2949 * rl78-tdep.c (RL78_RAW_PC_REGNUM): New enum.
2950 (RL78_PC_REGNUM): Move to list of pseudo-register enums.
2951 (rl78_register_type, rl78_register_name, rl78_register_reggroup_p):
2952 Update to account for fact that PC is now a pseudo-register.
2953 (rl78_pseudo_register_write, rl78_pseudo_register_read): Add
2954 cases for RL78_PC_REGNUM.
2959 * top.c (quit_force): Skip writing history file
2960 if input is not from terminal.
2964 * remote.c (struct remote_state) <echo_nextthread, nextthread,
2965 resultthreadlist>: New fields.
2966 (OPAQUETHREADBYTES, threadref, MAXTHREADLISTRESULTS): Move earlier.
2967 (remote_get_threadlist, remote_threadlist_iterator): Use
2968 new fields. Remove static variables.
2972 * remote.c (struct remote_state) <remote_stopped_by_watchpoint_p,
2973 remote_watch_data_address>: New fields.
2974 (remote_stopped_by_watchpoint_p, remote_watch_data_address): Remove.
2975 (process_stop_reply, remote_wait_as)
2976 (remote_check_watch_resources, remote_stopped_data_address): Update.
2980 * remote.c (struct remote_state) <async_client_callback,
2981 async_client_context>: New fields.
2982 (async_client_callback, async_client_context): Remove.
2983 (remote_async_serial_handler, remote_async): Update.
2987 * remote.c (sizeof_pkt): Remove.
2988 (remote_trace_find): Use rs->buf_size, not sizeof_pkt.
2992 * remote.c (struct remote_state) <use_threadinfo_query,
2993 use_threadextra_query>: New fields.
2994 (remote_threads_info, remote_threads_extra_info)
2995 (remote_open_1): Update.
2999 * remote.c (struct remote_state) <finished_object,
3000 finished_annex, finished_offset>: New fields.
3001 (remote_read_qxfer): Use remote_state fields; remove static
3006 * remote.c (struct remote_state) <last_sent_step>:
3008 (last_sent_step): Remove.
3009 (remote_resume, remote_wait_as): Update.
3013 * remote.c (struct remote_state) <last_sent_signal>:
3015 (last_sent_signal): Remove.
3016 (new_remote_state, remote_resume, remote_wait_as): Update.
3020 * remote.c (struct remote_state) <last_program_signals_packet>:
3022 (last_program_signals_packet): Remove.
3023 (remote_program_signals, remote_open_1): Update.
3027 * remote.c (struct remote_state) <last_pass_packet>:
3029 (last_pass_packet): Remove.
3030 (remote_pass_signals, remote_open_1): Update.
3034 * remote.c (struct remote_state) <remote_traceframe_number>:
3036 (remote_traceframe_number): Remove.
3037 (new_remote_state, remote_open_1, set_remote_traceframe)
3038 (remote_trace_find): Update.
3042 * remote.c (struct remote_state) <general_thread, continue_thread>:
3044 (general_thread, continue_thread): Remove.
3045 (record_currthread, set_thread, set_general_process)
3046 (remote_open_1, extended_remote_attach_1, remote_wait_as)
3047 (extended_remote_mourn_1): Update.
3051 * remote.c (struct remote_state) <remote_desc>: New field.
3052 (remote_desc): Remove.
3053 (remote_threads_info, remote_threads_extra_info, remote_close)
3054 (send_interrupt_sequence, remote_start_remote, remote_open_1)
3055 (readchar, remote_xfer_partial, remote_rcmd, packet_command)
3056 (remote_hostio_send_command, remote_file_put, remote_file_get)
3057 (remote_file_delete, remote_can_async_p, remote_is_async_p)
3058 (remote_async, remote_new_objfile, set_range_stepping): Update.
3062 * remote.c (remote_state): Now a pointer.
3063 (get_remote_state_raw): Update.
3064 (new_remote_state): New function.
3065 (_initialize_remote): Use new_remote_state.
3069 * remote.c (remote_protocol_features): Now const.
3073 * remote.c (crc32_table, crc32): Remove.
3074 (remote_verify_memory): Use xcrc32.
3078 * value.h (create_internalvar_type_lazy): Adjust prototype
3083 * common/format.c (parse_format_string): Don't allow '#' flag for
3084 pointer arguments in format string.
3088 * utils.c (init_page_info): Only call tgetnum function
3089 if rl_get_screen_size did not return useful values.
3093 PR breakpoints/15117
3094 * linespec.c (linespec_parse_basic): Check for convenience
3095 variable or history value while parsing.
3099 Revert implementation of gdbarch_gdb_signal_{to,from}_target for
3101 * avr-tdep.c: Remove include of "linux-tdep.h". Remove enum with
3102 different signals between the generic Linux kernel implementation
3104 (avr_linux_gdb_signal_from_target): Delete.
3105 (avr_linux_gdb_signal_to_target): Delete.
3106 (avr_gdbarch_init): Don't set gdbarch_gdb_signal_{to,from}_target.
3110 * dwarf2read.c (create_addrmap_from_index): Ignore bad address table
3115 * linux-tdep.c: Define enum with generic signal numbers.
3116 (linux_gdb_signal_from_target): New function.
3117 (linux_gdb_signal_to_target): Likewise.
3118 (linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3119 methods to the functions above.
3120 * linux-tdep.h (linux_gdb_signal_from_target): New prototype.
3121 (linux_gdb_signal_to_target): Likewise.
3122 * alpha-linux-tdep.c: Define new enum with signals different
3123 from generic Linux kernel.
3124 (alpha_linux_gdb_signal_from_target): New function.
3125 (alpha_linux_gdb_signal_to_target): Likewise.
3126 (alpha_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3127 with the functions mentioned above.
3128 * avr-tdep.c: Define enum with differences between Linux kernel
3130 (avr_linux_gdb_signal_from_target): New function.
3131 (avr_linux_gdb_signal_to_target): Likewise.
3132 (avr_gdbarch_init): Set gdbarch_gdb_signal_{to,from}_target to
3133 the functions mentioned above.
3134 * sparc-linux-tdep.c: Define enum with differences between SPARC
3135 and generic Linux kernel signal numbers.
3136 (sparc32_linux_gdb_signal_from_target): New function.
3137 (sparc32_linux_gdb_signal_to_target): Likewise.
3138 (sparc32_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3139 to the functions defined above.
3140 * xtensa-linux-tdep.c: Define enum with differences between
3141 Xtensa and Linux kernel generic signals.
3142 (xtensa_linux_gdb_signal_from_target): New function.
3143 (xtensa_linux_gdb_signal_to_target): Likewise.
3144 (xtensa_linux_init_abi): Set gdbarch_gdb_signal_to_target
3145 to the functions defined above.
3146 * mips-linux-tdep.c: Define enum with differences between
3147 signals in MIPS and Linux kernel generic ones.
3148 (mips_gdb_signal_to_target): New function.
3149 (mips_gdb_signal_from_target): Redefine to use new enum, handle
3150 only different signals from the Linux kernel generic.
3151 (mips_linux_init_abi): Set gdbarch_gdb_signal_{to,from}_target
3152 the functions defined above.
3153 * mips-linux-tdep.h (enum mips_signals): Remove.
3157 * avr-tdep.c (XMALLOC): Delete macro.
3158 * cli/cli-dump.c (XMALLOC): Delete macro.
3162 * cli/cli-dump.c: Don't include cli/cli-dump.h.
3163 (scan_expression_with_cleanup, scan_filename_with_cleanup)
3164 (fopen_with_cleanup, add_dump_command): Make static.
3165 * cli/cli-dump.h: Delete file.
3166 * Makefile.in (HFILES_NO_SRCDIR): Remove reference to
3171 * tracepoint.c (tfile_start): Show tilde-expanded filename in
3176 * breakpoint.c (save_breakpoints): Show tilde-expanded filename in
3181 * gcore.c (create_gcore_bfd): Don't use tilde_expand here.
3182 (gcore_command): Use tilde_expand here, and when showing the
3183 filename to the user, show the expanded version.
3187 * stack.c (read_frame_arg): Set 'entryval_error' to NULL if
3192 * gcore.c (create_gcore_bfd): Use tilde_expand.
3196 * frame.h (read_frame_local): Declare.
3197 * mi/mi-cmd-stack.c (list_args_or_locals): Call
3199 * stack.c (read_frame_local): New.
3203 * mi/mi-cmd-stack.c: Update comments to function
3204 list_args_or_locals.
3209 * dwarf2read.c (struct process_psymtab_comp_unit_data): New.
3210 (process_psymtab_comp_unit_reader): Use it.
3211 (process_psymtab_comp_unit): Update. Add "pretend_language"
3213 (dwarf2_build_psymtabs_hard): Update.
3214 (scan_partial_symbols): Pass CU's language to
3215 process_psymtab_comp_unit.
3219 * dwarf2read.c (dw2_get_primary_filename_reader): Remove.
3220 (dwarf2_gdb_index_functions): Update.
3221 * psymtab.c (find_symbol_file_from_partial): Remove.
3222 (psym_functions): Update.
3223 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
3228 * symfile.c (set_initial_language): Look up "main" symbol
3229 and use its language.
3230 * symtab.c (find_main_filename): Remove.
3231 * symtab.h (find_main_filename): Remove.
3235 * dwarf2read.c (recursively_compute_inclusions): Add
3236 "immediate_parent" argument. Set symtab's "user" field
3238 (compute_symtab_includes): Update.
3242 * linespec.c (convert_linespec_to_sals): Use maybe_add_address
3243 when adding label symbols.
3248 * configure.tgt (powerpc64-*-aix*): Match powerpc64 running aix.
3249 * configure.host (powerpc64-*-aix*): Likewise.
3254 * gdb_ptrace.h: Use ptrace64 instead of ptrace if HAVE_PTRACE64
3256 * rs6000-nat.c: Check for __ld_info64_ if compiling 64 BIT gdb.
3257 (rs6000_ptrace32): Call ptrace64 instead of ptrace if present.
3258 (rs6000_ptrace64): Call ptace64 instead of ptracex if present.
3259 * configure.ac: Check for ptrace64.
3260 * configure, config.in: Regenerate.
3265 * aixthread.c: Call ptrace64 instead of ptracex if defined.
3266 Call ptrace64 instead of ptrace if defined.
3267 Add macro addr_ptr to take care of ptrace address argument.
3268 (pdc_read_regs): Likewise.
3269 (pdc_write_regs): Likewise.
3270 (aix_thread_resume): Likewise.
3271 (fetch_regs_kernel_thread): Likewise.
3272 (store_regs_kernel_thread): Likewise.
3276 * MAINTAINERS: Add myself to Write After Approval.
3280 * aix-thread.c (_initialize_aix_thread): Use
3281 complete_target_initialization.
3282 * bsd-uthread.c (_initialize_bsd_uthread): Use
3283 complete_target_initialization.
3284 * dec-thread.c (_initialize_dec_thread): Use
3285 complete_target_initialization.
3286 * ravenscar-thread.c (_initialize_ravenscar): Use
3287 complete_target_initialization.
3288 * sol-thread.c (_initialize_sol_thread): Use
3289 complete_target_initialization.
3290 * spu-multiarch.c (_initialize_spu_multiarch): Use
3291 complete_target_initialization.
3295 * ada-exp.y (write_var_or_type): Use bound_minimal_symbol.
3296 * ada-lang.c (ada_lookup_simple_minsym): Return
3297 bound_minimal_symbol.
3298 * ada-lang.h (ada_lookup_simple_minsym): Update.
3299 * c-exp.y (variable): Use lookup_bound_minimal_symbol.
3300 * f-exp.y (variable): Use lookup_bound_minimal_symbol.
3301 * go-exp.y (variable): Use lookup_bound_minimal_symbol.
3302 * jv-exp.y (push_expression_name): Use lookup_bound_minimal_symbol.
3303 * m2-exp.y (variable): Use lookup_bound_minimal_symbol.
3304 * minsyms.c (msymbol_objfile): Remove.
3305 (lookup_minimal_symbol_internal): New function, from
3306 lookup_minimal_symbol.
3307 (lookup_minimal_symbol): Rewrite using
3308 lookup_minimal_symbol_internal.
3309 (lookup_bound_minimal_symbol): New function.
3310 * minsyms.h (msymbol_objfile): Remove.
3311 (lookup_bound_minimal_symbol): Declare.
3312 * p-exp.y (variable): Use lookup_bound_minimal_symbol.
3313 * parse.c (write_exp_msymbol): Change parameter to a
3314 bound_minimal_symbol.
3315 (write_dollar_variable): Use lookup_bound_minimal_symbol.
3316 * parser-defs.h (write_exp_msymbol): Update.
3317 * printcmd.c (address_info): Use lookup_bound_minimal_symbol.
3318 * symfile.c (simple_read_overlay_table): Use
3319 lookup_bound_minimal_symbol.
3320 * symtab.c (skip_prologue_sal): Don't use msymbol_objfile.
3321 (search_symbols): Likewise.
3322 (print_msymbol_info): Take a bound_minimal_symbol argument.
3323 (symtab_symbol_info, rbreak_command): Update.
3324 * symtab.h (struct symbol_search) <msymbol>: Change type
3325 to bound_minimal_symbol.
3326 * valops.c (find_function_in_inferior): Use
3327 lookup_bound_minimal_symbol.
3328 * value.c (value_fn_field): Use lookup_bound_minimal_symbol.
3333 * remote.c (cleanup_sigint_signal_handler): Rename the declaration
3335 (async_cleanup_sigint_signal_handler): ... this.
3336 (initialize_sigint_signal_handler): Remove declaration.
3337 (handle_remote_sigint): Rename the declaration to ...
3338 (async_handle_remote_sigint): ... this.
3339 (handle_remote_sigint_twice): Rename the declaration to ...
3340 (async_handle_remote_sigint_twice): ... this.
3341 (async_remote_interrupt, async_remote_interrupt_twice)
3342 (remote_interrupt): Remove the declarations.
3343 (remote_interrupt_twice): Rename the declaration ...
3344 (sync_remote_interrupt_twice): ... this.
3345 (sigint_remote_twice_token): Rename the variable to ...
3346 (async_sigint_remote_twice_token): ... this.
3347 (sigint_remote_token): Rename the variable to ...
3348 (async_sigint_remote_token): ... this.
3349 (initialize_sigint_signal_handler): Rename the function to ...
3350 (async_initialize_sigint_signal_handler): ... this. Update the name
3352 (handle_remote_sigint): Rename the function to ...
3353 (async_handle_remote_sigint): ... this. Update the names inside.
3354 (handle_remote_sigint_twice): Rename the function to ...
3355 (async_handle_remote_sigint_twice): ... this. Update the names inside.
3356 (cleanup_sigint_signal_handler): Rename the function to ...
3357 (async_cleanup_sigint_signal_handler): ... this.
3358 (remote_interrupt): Rename the function to ...
3359 (sync_remote_interrupt): this. Update the names inside.
3360 (remote_interrupt_twice): Rename the function to ...
3361 (sync_remote_interrupt_twice): this. Update the names inside.
3362 (remote_terminal_inferior, remote_terminal_ours, remote_wait_as)
3363 (_initialize_remote): Update the names inside.
3368 * breakpoint.c (update_watchpoint, watchpoint_check)
3369 (watch_command_1): Update.
3370 * eval.c (fetch_subexp_value): Add "preserve_errors"
3372 * ppc-linux-nat.c (check_condition): Update.
3373 * value.h (fetch_subexp_value): Update.
3377 * mi/mi-interp.c (mi_interpreter_resume): Remove call to
3383 * dwarf2read.c (struct dwarf2_per_cu_data): New member tu_read.
3384 (fill_in_sig_entry_from_dwo_entry): Reorganize asserts.
3385 Add assert of sig_entry->dwo_unit == NULL.
3386 (lookup_dwo_signatured_type): Don't assign TU to a DWO if the TU
3387 had already been read.
3388 (read_signatured_type): Set per_cu.tu_read.
3391 * valops.c (value_struct_elt): Add missing call to check_typedef.
3392 (value_find_oload_method_list): Ditto.
3394 * symtab.c (do_free_search_symbols_cleanup): Change arg to,
3395 effectively, struct symbol_search **.
3396 (make_cleanup_free_search_symbols): Change arg to struct
3397 symbol_search **. All callers updated.
3398 (compare_search_syms): Compare symtab file name and block as well.
3399 (search_symbols_equal): New function.
3400 (sort_search_symbols_remove_dups): Renamed from sort_search_symbols.
3401 New args new_head, new_tail. Result is now void. Remove dups after
3402 sorting the symbols.
3403 (search_symbols): Sort all found symbols once, after all have been
3404 found, and remove duplicates. Simplify cleanup tracking of result.
3405 * symtab.h (make_cleanup_free_search_symbols): Update prototype.
3407 Further workarounds for binutils/15021.
3408 * dwarf2read.c (recursively_compute_inclusions): Change type of result
3409 parameter to VEC (symtab_ptr) **. New parameter all_type_symtabs.
3410 Watch for duplicate symtabs coming from type units.
3411 (compute_symtab_includes): Update call to
3412 recursively_compute_inclusions. Build vector of included symtabs
3414 * symtab.h (symtab_ptr): New typedef.
3415 (DEF_VEC_P (symtab_ptr)): New VEC type.
3416 * linespec.c (symtab_p): Delete. All uses updated to use symtab_ptr
3421 * cli/cli-script.c (script_from_file): Remove use of
3423 * main.c (captured_main): Remove use of error_pre_print and
3425 * utils.c (error_pre_print, quit_pre_print): Remove.
3426 * utils.h (error_pre_print, quit_pre_print): Likewise.
3430 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Parse argv
3432 (mi_cmd_stack_list_variables): Likewise.
3436 * exceptions.c (deprecated_throw_reason): Remove.
3437 * exceptions.h (deprecated_throw_reason): Remove.
3441 * remote-mips.c (mips_error): Replace use of
3442 deprecated_throw_reason with throw_verror. Use the error message
3443 passed to mips_error as the error message for throw_verror.
3447 * monitor.c (monitor_interrupt_query): Replace use of
3448 deprecated_throw_reason with quit.
3449 * nto-procfs.c (interrupt_query): Likewise.
3450 * remote-fileio.c (remote_fileio_sig_exit): Likewise.
3451 * remote-mips.c (mips_kill): Likewise.
3452 * remote.c (interrupt_query): Likewise.
3456 * utils.c (internal_verror): Replace use of deprecated_throw_reason
3462 * tracepoint.c (trace_dump_command): Select the current frame.
3466 * dwarf2read.c (process_queue): Add type signature to debug output.
3470 * value.c (value_fetch_lazy): Mark optimized out values as such
3471 rather than raising an error.
3475 * value.c (value_fetch_lazy): Ensure parent value is not lazy
3476 before checking which bits of the parent, not the child, value are
3482 * top.c: Include "filenames.h".
3483 (set_history_filename): New function.
3484 (init_main): Install it as set hook of the "set history filename"
3489 * dwarf2read.c (dwarf2_get_ref_die_offset): Constify struct
3490 attribute parameter.
3491 (dwarf2_const_value_data): Constify struct attribute parameter.
3492 (dwarf2_const_value): Constify struct attribute parameter.
3493 (dwarf2_const_value_attr): Constify struct attribute parameter.
3494 (lookup_die_type): Constify struct attribute parameter.
3495 (dwarf2_get_attr_constant_value): Constify struct attribute parameter.
3496 (follow_die_ref_or_sig): Constify struct attribute parameter.
3497 (follow_die_ref): Constify struct attribute parameter.
3498 (follow_die_sig): Constify struct attribute parameter.
3499 (get_DW_AT_signature_type): Constify struct attribute parameter.
3500 (get_type_unit_group): Constify struct attribute parameter.
3501 (fill_in_loclist_baton): Constify struct attribute parameter.
3502 (dwarf2_symbol_mark_computed): Constify struct attribute parameter.
3503 (type_unit_group): Constify struct attribute parameter.
3507 * dwarf2read.c (attr_form_is_block): Make argument const.
3508 (attr_form_is_section_offset): Make argument const.
3509 (attr_form_is_constant): Make argument const.
3510 (attr_form_is_ref): Make argument const.
3514 * dwarf2read.c (attr_is_ref): Rename to attr_form_is_ref.
3516 (attr_form_is_ref): Moved below attr_form_is_constant.
3520 * main.c (captured_command_loop): Tweak comment.
3522 * target.c (target_async_permitted_1): Fix comment.
3524 * symtab.c (iterate_over_some_symtabs): Add comment.
3526 * symtab.c (iterate_over_some_symtabs): Fix indentation.
3530 * NEWS: Mention that GDBserver now supports hardware
3531 watchpoints on the MIPS GNU/Linux target.
3535 * Makefile.in (HFILES_NO_SRCDIR): Add
3536 common/mips-linux-watch.h.
3537 (mips-linux-watch.o): New rule.
3538 * common/mips-linux-watch.c: New.
3539 * common/mips-linux-watch.h: New.
3540 * config/mips/linux.mh (NATDEPFILES): Add mips-linux-watch.o
3541 * mips-linux-nat.c: Include mips-linux-watch.h.
3542 (W_BIT, R_BIT, I_BIT, W_MASK, R_MASK, I_MASK, IRW_MASK): Move
3543 to common/mips-linux-watch.h.
3544 (MAX_DEBUG_REGISTER): Likewise.
3545 (enum pt_watch_style): Likewise.
3546 (struct mips32_watch_regs): Likewise.
3547 (struct mips64_watch_regs): Likewise.
3548 (struct pt_watch_regs): Likewise.
3549 (struct mips_watchpoint): Likewise.
3550 (mips_linux_watch_get_irw_mask): Move to
3551 common/mips-linux-watch.c.
3552 (get_reg_mask, mips_linux_watch_get_num_valid): Likewise.
3553 (mips_linux_watch_get_watchlo): Likewise.
3554 (mips_linux_watch_set_watchlo): Likewise.
3555 (mips_linux_watch_get_watchhi): Likewise.
3556 (mips_linux_watch_set_watchhi): Likewise.
3557 (mips_linux_read_watch_registers): Likewise.
3558 (mips_linux_watch_type_to_irw): Likewise.
3559 (mips_linux_stopped_data_address, fill_mask): Likewise.
3560 (mips_linux_watch_try_one_watch): Likewise.
3561 (mips_linux_watch_populate_regs): Likewise.
3565 * mips-linux-nat.c (get_irw_mask): Rename to ...
3566 (mips_linux_watch_get_irw_mask): ... this. Rename parameter
3567 'set' to 'n'. Update function comment. All callers changed.
3568 (get_reg_mask): Rename parameter 'set' to 'n'. Update
3569 function comment. All callers changed.
3570 (get_num_valid): Rename to ...
3571 (mips_linux_watch_get_num_valid): ... this. Rename parameter
3572 'set' to 'n'. Update function comment. All callers changed.
3573 (get_watchlo): Rename to ...
3574 (mips_linux_watch_get_watchlo): ... this. Rename parameter
3575 'set' to 'n'. Update function comment. All callers changed.
3576 (set_watchlo): Rename to ...
3577 (mips_linux_watch_set_watchlo): ... this. Rename parameter
3578 'set' to 'n'. Update function comment. All callers changed.
3579 (get_watchhi): Rename to ...
3580 (mips_linux_watch_get_watchhi): ... this. Update function
3581 comment. All callers changed.
3582 (set_watchhi): Rename to ...
3583 (mips_linux_watch_set_watchhi): ... this. Update function
3584 comment. All callers changed.
3585 (mips_linux_read_watch_registers): Update function comment.
3586 Add new parameters 'lwpid', 'watch_readback', and
3587 'watch_readback_valid'. Update.
3588 (type_to_irw): Rename to ...
3589 (mips_linux_watch_type_to_irw): ... this. Update function
3590 comment. All callers changed.
3591 (fill_mask): Update function comment.
3592 (try_one_watch): Rename to ...
3593 (mips_linux_watch_try_one_watch): ... this. Change the type
3594 of parameter 'irw' from 'unsigned' to 'uint32_t'.
3595 (populate_regs_from_watches): Rename to ...
3596 (mips_linux_watch_populate_regs): ... this. Add parameter
3597 'current_watches'. All callers changed.
3601 * mips-linux-nat.c (MAX_DEBUG_REGISTER): Move it earlier in
3603 (PTRACE_SET_WATCH_REGS, enum pt_watch_style): Remove.
3604 (struct mips32_watch_regs, struct mips64_watch_regs): Remove.
3605 (struct pt_watch_regs): Likewise.
3606 [!PTRACE_GET_WATCH_REGS] (PTRACE_SET_WATCH_REGS): New macro.
3607 [!PTRACE_GET_WATCH_REGS] (enum pt_watch_style): New.
3608 [!PTRACE_GET_WATCH_REGS] (struct mips32_watch_regs): New.
3609 [!PTRACE_GET_WATCH_REGS] (struct mips64_watch_regs): New.
3610 [!PTRACE_GET_WATCH_REGS] (struct pt_watch_regs): New.
3614 * breakpoint.h: Include break-common.h.
3615 (enum target_hw_bp_type): Move to ...
3616 * common/break-common.h: ... here. New.
3620 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
3621 process group regardless of having tty on stdin.
3625 * linux-fork.h (detach_fork): Delete.
3629 PR remote/15256, PR remote/15266:
3630 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
3631 * monitor.c (monitor_detach): Use unpush_target.
3632 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
3633 * remote-mips.c (mips_detach): Use unpush_target. Don't
3635 * remote-sim.c (gdbsim_detach): Use unpush_target.
3636 * target.c (pop_target): Remove.
3637 (pop_all_targets_above): Don't call target_close.
3638 (target_close): Assert that the target is unpushed.
3639 * target.h (pop_target): Don't declare.
3640 * tracepoint.c (tfile_open): Use unpush_target.
3644 * linux-thread-db.c (init_thread_db_ops): Call
3645 complete_target_initialization.
3646 (_initialize_thread_db): Don't call add_target.
3647 * target.c (complete_target_initialization): New function.
3648 (add_target_with_completer): Call it.
3649 * target.h (complete_target_initialization): Declare.
3653 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
3654 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
3655 (HPPANBSD_SIZEOF_GREGS): New define.
3656 (hppaobsd_supply_gregset): Handle additional registers.
3657 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
3658 we provide more registers now.
3659 (hppabsd_supply_gregset): Supply additional registers.
3660 (hppabsd_collect_gregset): Collect additional registers.
3664 * hppabsd-tdep.c: Include "dwarf2-frame.h".
3665 (hppabsd_dwarf2_frame_init_reg): New function.
3666 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
3670 * mi/mi-main.c (output_register): Make MI 'r' format use standard
3671 'z' format code. Remove error for optimized out values, standard
3672 code will handle these fine.
3676 * NEWS: Mention new 'z' formatter.
3677 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
3678 (_initialize_printcmd): Mention 'z' formatter in help text of the
3683 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
3688 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
3689 interface can evaluate arguments. Fallback to the old mode if it
3691 (create_exception_master_breakpoint): Likewise.
3692 * elfread.c (elf_can_evaluate_probe_arguments): New function.
3693 (struct sym_probe_fns elf_probe_fns): Export function above to the
3695 * probe.c (can_evaluate_probe_arguments): New function.
3696 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
3698 (can_evaluate_probe_arguments): New function prototype.
3699 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
3700 probe interface can evaluate arguments. Fallback to the old mode
3702 * stap-probe.c (stap_get_probe_argument_count): Check if probe
3703 interface can evaluate arguments. Warning the user if it cannot.
3704 (stap_can_evaluate_probe_arguments): New function.
3705 (struct probe_ops stap_probe_ops): Export function above to the
3707 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
3708 New function pointer.
3712 * Makefile.in (SFILES): Add common/target-common.c.
3713 Add common/target-common.h to headers.
3714 (COMMON_OBS): Add target-common.o.
3715 (target-common.o): New target.
3716 * linux-nat.h (resume_kind): Move to common/target-common.h.
3717 * target.c (target_waitstatus_to_string): Move to
3718 common/target-common.c.
3719 * target.h: Include target-common.h.
3720 (target_waitkind): Move to common/target-common.h.
3721 (target_waitstatus): Likewise.
3722 (TARGET_WNOHANG): Likewise.
3723 * common/target-common.c: New file.
3724 * common/target-common.h: New file.
3728 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
3733 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
3734 parameter 'gdbarch'.
3735 (i386_stack_tramp_frame_sniffer): Caller update.
3736 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
3737 parameter 'gdbarch' and 'target'.
3738 (i386_linux_core_read_description): Caller update.
3739 * amd64-linux-tdep.c (amd64_linux_core_read_description):
3741 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
3746 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
3751 * exec.h (remove_target_sections): Delete arg abfd.
3752 * exec.c (exec_close): Update call to remove_target_sections.
3753 (remove_target_sections): Delete arg abfd.
3754 * solib.c (update_solib_list): Ditto.
3755 (reload_shared_libraries_1): Ditto.
3756 (clear_solib): Ditto, and unconditionally call remove_target_sections.
3757 * target.h (struct target_section): Rename key to owner.
3762 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
3766 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
3767 Simplify cleanup handling.
3771 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
3772 on all return paths.
3776 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
3777 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
3778 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
3782 * top.c (print_gdb_version): Add help, apropos description and
3783 url to online documentation.
3788 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
3792 * target.c (update_current_target): Change the default action
3793 of 'to_traceframe_info' from tcomplain to return_zero.
3794 * target.h (struct target_ops) <to_traceframe_info>: Add more
3796 * valops.c (read_value_memory): Call
3797 traceframe_available_memory unconditionally.
3801 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
3802 if the name is prefixed by "__imp_" or "_imp_", look for minimal
3803 symbol without prefix. If found, set its type to
3804 'mst_solib_trampoline'.
3808 * NEWS: Mention "set print raw frame-arguments".
3809 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
3810 * stack.c (print_raw_frame_arguments): New static global.
3811 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
3812 (_initialize_stack): New command "set/show print raw frame-arguments".
3813 * valprint.c (setprintrawlist, showprintrawlist): New globals.
3814 (set_print_raw, show_print_raw): New functions.
3815 (_initialize_valprint): New prefix command "set/show print raw".
3816 * valprint.h (value_print_options): Improve comments.
3818 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
3819 of all *list variables.
3821 * gdbcmd.h (togglelist): Delete.
3822 * cli/cli-cmds.c (togglelist): Delete.
3823 (init_cmd_lists): Update.
3824 * cli/cli-cmds.h (togglelist): Delete.
3828 * dwarf2read.c (dwarf2_per_objfile_free): Clear
3833 * nto-tdep.c (nto_relocate_section_addresses): Update,
3834 target_section.bfd deleted.
3835 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
3836 * s390-tdep.c (s390_load): Ditto.
3837 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
3841 * common/format.c (parse_format_string): Add checks for NULL
3842 character before calling strchr.
3846 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
3847 temp_pathname argument.
3848 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
3849 when opening the file fails.
3851 * target.h (struct target_section): Delete member bfd.
3852 All users updated to use the_bfd_section->owner instead.
3853 * exec.c (add_to_section_table): Assert bfd is expected value.
3854 Remove initialization of target_section.bfd.
3855 (remove_target_sections): Update.
3856 (section_table_available_memory): Update.
3857 (section_table_xfer_memory_partial): Update.
3858 (print_section_info): Update.
3859 (exec_set_section_address): Update.
3860 * record-full.c (record_full_core_xfer_partial): Update.
3861 * solib-svr4.c (svr4_relocate_section_addresses): Update.
3862 * solib-target.c (solib_target_relocate_section_addresses): Update.
3863 * symfile.c (build_section_addr_info_from_section_table): Update.
3864 * target.c (memory_xfer_live_readonly_partial): Update.
3865 (memory_xfer_partial_1): Update.
3869 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
3870 now available for embedded (BookE) and server (BookS) processors,
3871 correct mentions of 'booke' and adjust comments accordingly in order to
3872 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
3873 (have_ptrace_booke_interface): Rename function and variable
3874 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
3875 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
3876 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
3877 'hwdebug_point_cmp'. Update all uses.
3878 (booke_find_thread_points_by_tid): Rename function
3879 'booke_find_thread_points_by_tid' to
3880 'hwdebug_find_thread_points_by_tid'. Update all uses.
3881 (booke_insert_point): Rename function 'booke_insert_point' to
3882 'hwdebug_insert_point'. Update all uses.
3883 (booke_remove_point): Rename function 'booke_remove_point' to
3884 'hwdebug_remove_point'. Update all uses.
3888 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
3889 numbers with enum values.
3894 * thread.c (thread_apply_all_command): Check for valid threads
3896 (thread_array_cleanup): New struct.
3897 (set_thread_refcount): New function.
3901 * infcmd.c (default_print_one_register_info): Reuse function
3906 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
3907 (ada-exp.o): New target.
3911 * mt-tdep.c (mt_registers_info): Call
3912 get_no_prettyformat_print_options instead of
3913 get_raw_print_options (regression by last patch from Doug
3919 * ada-lang.c (coerce_unspec_val_to_type): Use
3920 value_optimized_out_const.
3921 * value.c (value_optimized_out_const): New function.
3922 * value.h (value_optimized_out_const): New declaration.
3926 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
3927 Enum values rename as well. All uses updated.
3928 * valprint.h (value_print_options): Rename member pretty to
3929 pretty format. Rename member prettyprint_arrays to
3930 prettyformat_arrays. Rename member prettyprint_structs to
3931 prettyformat_structs. All uses updated.
3932 (get_no_prettyformat_print_options): Renamed from
3933 get_raw_print_options.
3934 * valprint.c (get_no_prettyformat_print_options): Renamed from
3935 get_raw_print_options. All callers updated.
3936 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
3937 All callers updated.
3938 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
3939 All callers updated.
3940 (_initialize_valprint): Improve help text for "set print pretty" and
3945 * value.c (value_bits_valid): Revert previous change, and change
3946 by Pedro on 2013-07-04, due to regressions in
3947 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
3952 * value.c (value_bits_valid): If the value is not lval_computed
3953 or has no check validity handler then the answer is the
3954 optimized_out flag, otherwise defer to the handler.
3958 * top.c (print_gdb_configuration): Explain in output of
3959 --configuration what does "relocatable" mean.
3961 * main.c (print_gdb_help): Regroup options in the --help text.
3962 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
3963 the relevant discussions.
3967 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
3968 Remove parameter 'lsal'.
3969 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
3970 to inner block. Caller update.
3971 (base_breakpoint_create_breakpoints_sal): Update.
3972 (bkpt_create_breakpoints_sal): Likewise.
3973 (tracepoint_create_breakpoints_sal): Likewise.
3974 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
3975 element 0 of vector 'canonical->sals'.
3979 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
3980 register number instead of the pseudo register one.
3981 (rs6000_dwarf2_reg_to_regnum): Likewise.
3985 * findvar.c (value_of_register): Use allocate_optimized_out_value
3986 if the register has been optimized out, instead of
3987 set_value_optimized_out.
3988 * frame-unwind.c (frame_unwind_got_optimized): Use
3989 allocate_optimized_out_value.
3993 * value.c (value_bits_valid): If the value is not lval_computed,
3994 or doesn't have a check_validity hook, assume the value is entirely
3999 * stack.c (read_frame_arg): No longer fetch lazy values.
4000 * value.c (value_optimized_out): If the value is not already
4001 marked optimized out, and is lazy then fetch it.
4002 (value_primitive_field): Move optimized out check to later in the
4003 function, after we have loaded any lazy values.
4004 (value_fetch_lazy): Use optimized out flag directly rather than
4005 calling optimized_out method.
4009 * valops.c: Don't include "user-regs.h".
4010 (value_fetch_lazy): Moved to value.c.
4011 * value.c: Include "user-regs.h".
4012 (value_fetch_lazy): Moved from valops.c.
4019 * common/create-version.sh: Update comments. Handle the case
4020 that TARGET_ALIAS is empty.
4024 * Makefile.in (config.status): Depend on development.sh.
4025 (aclocal_m4_deps): Add libmcheck.m4.
4026 * acinclude.m4: Include libmcheck.m4.
4027 * configure.ac: Source development.sh instead of setting
4028 'development' here. --enable-libmcheck/--disable-libmcheck code
4029 factored out to GDB_AC_LIBMCHECK. Run it.
4030 * development.sh: New file.
4031 * libmcheck.m4: New file.
4032 * configure: Regenerate.
4036 * contrib/ari/update-web-ari.sh: Update for version.in change.
4040 * common/ptid.h: Comment fixes.
4044 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
4045 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
4046 (dwarf2_read_index, create_all_comp_units): Update.
4050 * configure.ac (build_warnings): Add -Wold-style-definition.
4051 * configure: Rebuild.
4052 * machoread.c (_initialize_machoread): Use "(void)".
4053 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
4058 * configure.ac (build_warnings): Add -Wold-style-declaration.
4059 * configure: Rebuild.
4060 * dsrec.c (make_srec): Use "static const", not "const static".
4061 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
4063 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
4064 Use "static const", not "const static".
4065 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
4067 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
4069 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
4071 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
4073 (v850_dbtrap_breakpoint_from_pc): Likewise.
4074 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
4079 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
4080 * configure: Rebuild.
4084 * defs.h: Include "pathmax.h".
4085 * utils.c: Don't include sys/param.h.
4086 (gdb_realpath): Remove code that checks for MAXPATHLEN.
4087 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
4088 instead of MAXPATHLEN.
4089 * solib-sunos.c: Don't include sys/param.h.
4090 * xcoffread.c: Don't include sys/param.h.
4091 * bsd-kvm.c: Don't include sys/param.h.
4092 * darwin-nat.c: Don't include sys/param.h.
4093 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4094 * darwin-nat-info.c: Don't include sys/param.h.
4095 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
4097 * i386obsd-nat.c: Don't include sys/param.h.
4098 * inf-child.c: Don't include sys/param.h.
4099 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
4100 * linux-fork.c: Don't include sys/param.h.
4101 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
4102 * linux-nat.c: Don't include sys/param.h.
4103 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
4104 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
4105 * m68klinux-nat.c: Don't include sys/param.h.
4106 * nbsd-nat.c: Don't include sys/param.h.
4107 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
4108 * ppc-linux-nat.c: Don't include sys/param.h.
4109 * rs6000-nat.c: Don't include sys/param.h.
4110 * spu-linux-nat.c. Don't include sys/param.h.
4111 * windows-nat.c: Don't include sys/param.h.
4112 * xtensa-linux-nat.c: Don't include sys/param.h.
4113 * config/i386/nm-fbsd.h: Don't include sys/param.h.
4117 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
4118 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
4119 * gnulib/aclocal.m4: Regenerate.
4120 * gnulib/config.in: Regenerate.
4121 * gnulib/configure: Regenerate.
4122 * gnulib/import/pathmax.h: New file.
4123 * gnulib/import/Makefile.am: Regenerate.
4124 * gnulib/import/Makefile.in: Regenerate.
4125 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
4126 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
4127 * gnulib/import/m4/pathmax.m4: New file.
4131 * configure.ac (GDBINIT): Define, depending on host.
4132 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
4133 * top.c (PATH_MAX): Delete fallback definition.
4134 (GDBINIT_FILENAME): Delete.
4135 (gdbinit): Reimplement as const char array set to the GDBINIT
4137 * top.h (gdbinit): Make const.
4138 * configure, config.in: Regenerate.
4142 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
4143 * cli/cli-cmds.h (source_script): Likewise.
4144 * exceptions.c (catch_command_errors_const): New function.
4145 * exceptions.h (catch_command_errors_const): Declare.
4146 * main.c (get_init_files): Make parameters const, and adjust.
4147 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
4148 'local_gdbinit' locals const. Adjust to use
4149 catch_command_errors_const.
4150 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
4151 'local_gdbinit' locals const.
4155 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
4156 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
4157 * tracepoint.c: Don't check HAVE_UNISTD_H before including
4162 Import the "unistd" gnulib module.
4163 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
4164 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
4165 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
4166 import/m4/unistd_h.m4.
4167 * gnulib/aclocal.m4: Renenerate.
4168 * gnulib/config.in: Renenerate.
4169 * gnulib/configure: Renenerate.
4170 * gnulib/import/Makefile.am: Renenerate.
4171 * gnulib/import/Makefile.in: Renenerate.
4172 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
4173 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
4174 * gnulib/import/m4/off_t.m4: New file.
4175 * gnulib/import/m4/ssize_t.m4: New file.
4176 * gnulib/import/m4/sys_types_h.m4: New file.
4177 * gnulib/import/m4/unistd_h.m4: New file.
4178 * gnulib/import/sys_types.in.h: New file.
4179 * gnulib/import/unistd.c: New file.
4180 * gnulib/import/unistd.in.h: New file.
4184 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
4185 defined instead of checking HAVE_UNISTD_H.
4189 Reimport gnulib from scratch.
4190 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
4191 import/m4/onceonly.m4.
4192 * gnulib/aclocal.m4: Renegerate.
4193 * gnulib/config.in: Renegerate.
4194 * gnulib/configure: Renegerate.
4195 * gnulib/import/Makefile.in: Renegerate.
4196 * gnulib/import/extra/update-copyright: Renegerate.
4197 * gnulib/import/m4/onceonly.m4: Delete.
4201 * tui/tui-regs.c (pagination_enabled): Delete declaration.
4206 * remote.c (async_remote_interrupt_twice): Make it static.
4207 * remote.h (async_remote_interrupt_twice): Remove the declaration.
4211 * ia64-linux-tdep.c: Include <ctype.h>.
4212 (ia64_linux_stap_is_single_operand): New function.
4213 (ia64_linux_init_abi): Initialize SystemTap related attributes.
4217 * Makefile.in (version.c): Use version.in, not
4219 * common/create-version.sh: Likewise.
4220 * common/version.in: Move...
4221 * version.in: ...here.
4225 * infrun.c (set_observer_mode): Don't declare pagination_enabled
4227 * utils.h (pagination_enabled): Declare.
4231 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
4232 Move higher up in file.
4236 * tracepoint.c (deprecated_readline_begin_hook)
4237 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
4243 * tui/tui-regs.c (tui_get_register): Fetch value contents before
4244 checking if they're available.
4245 * value.c (value_available_contents_eq): Change comment.
4246 * value.h (value_available_contents_eq): Expand comment.
4250 * target.c (find_run_target): Remove.
4251 * target.h (find_run_target): Remove.
4255 * corelow.c (core_gdbarch): Now static.
4259 * target.c (target_struct_index): Remove.
4263 * infrun.c: Remove comment describing the 'stepping over runtime
4264 loader dynamic symbol resolution code' mechanism; moved to
4269 * exceptions.c (catch_command_errors): Remove spurious space.
4270 * exceptions.h (catch_command_errors): Second parameter is "arg",
4275 * common/create-version.sh: Update comments. Handle the case
4276 that TARGET_ALIAS is empty.
4280 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
4285 * infrun.c: Update comments on stepping over runtime loader
4286 dynamic symbol resolution code.
4290 * ax-gdb.h (union exp_element): Forward declare.
4291 * parser-defs.h: Include expression.h.
4295 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
4299 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
4303 Fix trace-status to output proper start-time and stop-time.
4304 * tracepoint.c (trace_status_command): Fix type of printf arg to
4305 prevent improper type conversion.
4306 (trace_status_mi): Likewise.
4310 * mips-tdep.c (mips_next_pc): Fix a typo.
4314 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
4319 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
4320 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
4321 * mi/mi-main.c (print_variable_or_computed): New function.
4322 (mi_cmd_trace_frame_collected): New function.
4323 * tracepoint.c (find_trace_state_variable_by_number): New.
4324 (struct traceframe_info): Move to tracepoint.h
4325 (struct collection_list): Likewise.
4326 (do_collect_symbol): Include locals and arguments in the
4327 collected variables list.
4328 (clear_collection_list): Clear wholly collected variables list
4329 and computed variables list.
4330 (append_exp): New function.
4331 (encode_actions_1): Include variables in the wholly
4332 collected variables list. Include memory ranges and
4333 full-fledged expressions in the computed expressions list.
4334 (encode_actions): Move some code to ...
4335 Return the cleanup chain.
4336 (encode_actions_rsp): ... here. New function.
4337 (get_traceframe_location, get_traceframe_info): Remove static.
4338 * tracepoint.h (struct memrange): Moved from tracepoint.c.
4339 (struct collection_list): Moved from tracepoint.c. Add two
4340 new fields 'wholly_collected' and 'computed'.
4341 (find_trace_state_variable_by_number): Declare.
4342 (encode_actions): Adjust declaration.
4343 (encode_actions_rsp): Declare.
4344 (get_traceframe_info, get_traceframe_location): Declare.
4346 * NEWS: Mention new MI command -trace-frame-collected.
4351 * ctf.c (ctf_traceframe_info): Push trace state variables
4352 present in the trace data into the traceframe info object.
4353 * breakpoint.c (DEF_VEC_I): Remove.
4354 * common/filestuff.c (DEF_VEC_I): Likewise.
4355 * dwarf2loc.c (DEF_VEC_I): Likewise.
4356 * mi/mi-main.c (DEF_VEC_I): Likewise.
4357 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
4358 * features/traceframe-info.dtd: Add tvar element and its
4360 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
4361 (build_traceframe_info): Push trace state variables present in
4362 the trace data into the traceframe info object.
4363 (traceframe_info_start_tvar): New function.
4364 (tvar_attributes): New.
4365 (traceframe_info_children): Add "tvar" element.
4366 * tracepoint.h (struct traceframe_info) <tvars>: New field.
4368 * NEWS: Mention the change in GDB and GDBserver.
4373 * tracepoint.c (trace_dump_command): Move code to ...
4374 (get_traceframe_location): ... here. New.
4379 * tracepoint.c (trace_dump_command): GDB emits an error
4380 instead of a warning when a traceframe is not selected.
4385 * tracepoint.c (tracepoint_list, stepping_list): Remove.
4386 (clear_collection_list): Free fields 'aexpre_list' and 'list'
4388 (do_clear_collection_list, init_collection_list): New.
4389 (encode_actions): Add local variables 'tracepoint_list' and
4390 'stepping_list'. Call init_collection_list and make cleanup
4391 which calls do_clear_collection_list. Don't call
4392 clear_collection_list.
4393 (_initialize_tracepoint): Delete references to
4394 'tracepoint_list' and 'stepping_list'.
4398 * common/create-version.sh (date): Use "$", not "$$" in sed
4403 * NEWS (New targets): Add entry for TI MSP430.
4407 * remote.c (remote_start_remote): Move code to upload tsv
4414 PR breakpoints/15075
4415 PR breakpoints/15434
4416 * breakpoint.c (bpstat_stop_status): Call
4417 b->ops->after_condition_true.
4418 (update_dprintf_command_list): Don't append "continue" command
4419 to the command list of dprintf breakpoint.
4420 (base_breakpoint_after_condition_true): New function.
4421 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
4422 (dprintf_after_condition_true): New function.
4423 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
4424 * breakpoint.h (breakpoint_ops): Add after_condition_true.
4428 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
4429 (ALLDEPFILES): Add msp430-tdep.c.
4430 * configure.tgt (msp430*-*-elf): New target.
4431 * msp430-tdep.c: New file.
4435 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
4436 microMIPS synthetic symbols.
4440 * objfiles.h (pc_in_section): New prototype.
4441 (in_plt_section): Remove name argument, replace prototype with
4442 static inline function.
4443 * mips-tdep.h: Include "objfiles.h".
4444 (in_mips_stubs_section): New function.
4445 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
4446 in_solib_call_trampoline member.
4447 (hppa_in_solib_call_trampoline): Remove name argument.
4448 * objfiles.c (pc_in_section): New function.
4449 (in_plt_section): Remove function.
4450 * mips-linux-tdep.c: Include "objfiles.h".
4451 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
4452 name argument. Return 1 rather than the low 16-bit halfword of
4453 any instruction examined.
4454 (mips_linux_in_dynsym_resolve_code): Update
4455 mips_linux_in_dynsym_stub call accordingly.
4456 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
4457 rather than an equivalent hand-coded sequence.
4458 * hppa-hpux-tdep.c (in_opd_section): Remove function.
4459 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
4460 (hppa64_hpux_in_solib_call_trampoline): Likewise.
4461 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
4463 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
4464 on call to tdep->in_solib_call_trampoline.
4465 (hppa_in_solib_call_trampoline): Remove name argument, update
4466 according to in_plt_section change.
4467 (hppa_skip_trampoline_code): Update according to in_plt_section
4469 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
4470 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
4472 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
4473 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
4474 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
4475 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
4476 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
4477 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
4478 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
4479 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
4480 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
4481 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
4482 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
4483 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
4484 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
4488 * common/create-version.sh: Fix expansion of $host_alias
4489 and $target_alias in generation of HOST_NAME and TARGET_NAME
4494 * common/create-version.sh: New file.
4495 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
4497 (HFILES_NO_SRCDIR): Use common/version.h.
4498 * version.in: Move to ...
4499 * common/version.in: ... here. Replace date with "DATE".
4500 * version.h: Move to ...
4501 * common/version.h: ... here.
4505 * gdb/gnulib/Makefile.in: Update date in copyright header.
4506 * gdb/gnulib/configure.ac: Ditto.
4507 * gdb/gnulib/update-gnulib.sh: Ditto.
4511 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
4512 "gdb/gnulib/import".
4516 * doublest.c (ldfrexp): Remove function.
4517 (convert_doublest_to_floatformat): Call frexpl instead of
4522 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
4523 * gnulib/aclocal.m4: Regenerate.
4524 * gnulib/config.in: Regenerate.
4525 * gnulib/configure: Regenerate.
4526 * gnulib/import/Makefile.am: Update.
4527 * gnulib/import/Makefile.in: Update.
4528 * gnulib/import/m4/gnulib-cache.m4: Update.
4529 * gnulib/import/m4/gnulib-comp.m4: Update.
4530 * gnulib/import/float+.h: Import.
4531 * gnulib/import/float.c: Import.
4532 * gnulib/import/float.in.h: Import.
4533 * gnulib/import/fpucw.h: Import.
4534 * gnulib/import/frexp.c: Import.
4535 * gnulib/import/frexpl.c: Import.
4536 * gnulib/import/isnan.c: Import.
4537 * gnulib/import/isnand-nolibm.h: Import.
4538 * gnulib/import/isnand.c: Import.
4539 * gnulib/import/isnanl-nolibm.h: Import.
4540 * gnulib/import/isnanl.c: Import.
4541 * gnulib/import/itold.c: Import.
4542 * gnulib/import/m4/exponentd.m4: Import.
4543 * gnulib/import/m4/exponentl.m4: Import.
4544 * gnulib/import/m4/float_h.m4: Import.
4545 * gnulib/import/m4/fpieee.m4: Import.
4546 * gnulib/import/m4/frexp.m4: Import.
4547 * gnulib/import/m4/frexpl.m4: Import.
4548 * gnulib/import/m4/isnand.m4: Import.
4549 * gnulib/import/m4/isnanl.m4: Import.
4550 * gnulib/import/m4/math_h.m4: Import.
4551 * gnulib/import/math.c: Import.
4552 * gnulib/import/math.in.h: Import.
4556 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
4557 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
4558 signature_INTEL_edx comparisons.
4563 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
4564 All callers updated.
4565 (open_dwp_file): If we can't find the dwp file, search the basename
4566 in debug-file-directory.
4568 * dwarf2read.c (struct dwp_file): Fix comment.
4569 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
4571 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
4576 * breakpoint.c (create_breakpoint): Fix code indentation.
4580 * breakpoint.c (create_breakpoints_sal_default): Remove
4581 parameter 'lsal'. Update declaration.
4582 (bkpt_create_breakpoints_sal): Caller update.
4583 (tracepoint_create_breakpoints_sal): Likewise.
4588 * NEWS: Mention the new option '--skip-unavailable' of command
4589 -data-list-register-values.
4590 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
4591 --skip-unavailable option. Adjust to use output_register.
4592 (output_register): Add new 'skip_unavailable' parameter.
4597 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
4598 common/i386-gcc-cpuid.h.
4599 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
4600 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
4601 Copy the latest version from upstream gcc.
4602 * common/linux-btrace.c: Include i386-cpuid.h.
4603 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
4605 (cpu_supports_btrace): Likewise.
4606 * go32-nat.c: Include i386-cpuid.h.
4607 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
4611 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
4612 (get_section_index): Ditto.
4616 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
4621 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
4623 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
4624 Move test of cu_index closer to use. Print complaint if cu_index
4629 * machoread.c (oso_vector): Delete this global.
4630 (macho_register_oso): Add new parameter "oso_vector_ptr".
4631 Use it instead of the "oso_vector" global.
4632 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
4633 (macho_symfile_read): Use a local oso_vector, to be free'ed
4634 at the end of this function, in place of the old "oso_vector"
4635 global. Update various function calls accordingly. Use one
4636 single cleanup chain for the entire function.
4640 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
4641 DWARF2_PER_OBJFILE by uses of DATA instead.
4645 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
4647 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
4648 Special case signals other than GDB_SIGNAL_TRAP.
4649 (explains_signal_watchpoint): New function.
4650 (base_breakpoint_explains_signal): Add 'sig' argument.
4651 (initialize_breakpoint_ops): Set 'explains_signal' method for
4653 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
4655 (bpstat_explains_signal): Likewise.
4656 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
4660 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
4664 * python/python.c (finish_python_initialization): Decref
4665 'pythondir' on failure path as well.
4670 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
4671 after taking bits_to_skip into account. Sign extend byte_offset.
4672 * utils.h (gdb_sign_extend): Declare.
4673 * utils.c (gdb_sign_extend): New function.
4677 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
4681 * corelow.c (core_open): Print GDB signal name instead of target
4686 * .gitignore: Add /gcore.
4690 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
4691 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
4695 * stack.c (backtrace_command_1): Fix indentation.
4699 * window-nat.c (thread_rec): Add missing empty line after
4700 local variable declaration.
4704 * windows-nat.c (thread_rec): Revert format used to print
4705 error code returned by SuspendThread from %d back to %u.
4709 * windows-nat.c (windows_continue): Add "0x" prefix for thread
4711 (get_windows_debug_event): Likewise, for all debug traces.
4715 * window-nat.c (thread_rec): Add thread ID in SuspendThread
4721 * mi/mi-main.c (get_register): Remove declaration.
4722 (output_register): Declare.
4723 (mi_cmd_data_list_register_values): Remove local variable
4724 'tuple_cleanup'. Move some code into output_register.
4725 (get_register): Renamed to ...
4726 (output_register): ... this. Output the register's
4727 "number" ui_out tuple here.
4731 * darwin-nat.c: Fix formating in copyright header.
4732 * darwin-nat.h: Likewise.
4733 * gnu-nat.c: Likewise.
4734 * machoread.c: Likewise.
4739 * regformats/regdat.sh: Output #include tdesc.h. Make globals
4740 static. Output a global target description pointer.
4741 (init_registers_${name}): Adjust to initialize a
4742 target description structure.
4746 * printcmd.c (build_address_symbolic): Call
4747 gdbarch_addr_bits_remove for text minimal symbols.
4751 * MAINTAINERS: Add myself to Write After Approval.
4755 * tracepoint.c (start_tracing): Move code to ...
4756 (trace_reset_local_state): ... here. New.
4757 (disconnect_tracing): Don't call set_current_traceframe,
4758 set_tracepoint_num, and set_traceframe_context. Call
4759 trace_reset_local_state instead.
4760 (tfile_close): Call trace_reset_local_state.
4761 * ctf.c (ctf_close): Likewise.
4762 * remote.c (remote_close): Likewise.
4763 * tracepoint.h (trace_reset_local_state): Declare.
4767 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
4768 and fix header docs.
4774 * cp-namespace.c (find_symbol_in_baseclass): Call
4775 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
4776 Check result of call to lookup_symbol_static.
4777 Call lookup_static_symbol_aux unconditionally.
4778 Call check_typedef on base types before accessing them.
4779 (cp_lookup_nested_symbol): Fix comment.
4783 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
4784 minimal symbols pointing to function descriptors.
4788 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
4793 * remote.c (remote_wait_as): Restore signal handler before returning
4794 when GDB gets a notification.
4799 * breakpoint.h (handle_solib_event): Moved function declaration
4801 * breakpoint.c (handle_solib_event): Moved function to solib.c.
4802 (bpstat_stop_status): Pass new argument to handle_solib_event.
4803 * solib.h (update_solib_breakpoints): New function declaration.
4804 (handle_solib_event): Moved function declaration from
4806 * solib.c (update_solib_breakpoints): New function.
4807 (handle_solib_event): Moved function from breakpoint.c.
4808 Updated to call solib_ops->handle_event if not NULL.
4809 * solist.h (target_so_ops): New fields "update_breakpoints" and
4811 * infrun.c (set_stop_on_solib_events): New function.
4812 (_initialize_infrun): Use the above for "set
4813 stop-on-solib-events".
4814 (handle_inferior_event): Pass new argument to handle_solib_event.
4815 * solib-svr4.c (probe.h): New include.
4816 (svr4_free_library_list): New forward declaration.
4817 (probe_action): New enum.
4818 (probe_info): New struct.
4819 (probe_info): New static variable.
4820 (NUM_PROBES): New definition.
4821 (svr4_info): New fields "using_xfer", "probes_table" and
4823 (free_probes_table): New function.
4824 (free_solib_list): New function.
4825 (svr4_pspace_data_cleanup): Free probes table and solib list.
4826 (svr4_copy_library_list): New function.
4827 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
4828 (svr4_read_so_list): New parameter "prev_lm".
4829 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
4830 (svr4_current_sos): New function.
4831 (probe_and_action): New struct.
4832 (hash_probe_and_action): New function.
4833 (equal_probe_and_action): Likewise.
4834 (register_solib_event_probe): Likewise.
4835 (solib_event_probe_at): Likewise.
4836 (solib_event_probe_action): Likewise.
4837 (solist_update_full): Likewise.
4838 (solist_update_incremental): Likewise.
4839 (disable_probes_interface_cleanup): Likewise.
4840 (svr4_handle_solib_event): Likewise.
4841 (svr4_update_solib_event_breakpoint): Likewise.
4842 (svr4_update_solib_event_breakpoints): Likewise.
4843 (svr4_create_solib_event_breakpoints): Likewise.
4844 (enable_break): Free probes table before creating breakpoints.
4845 Use svr4_create_solib_event_breakpoints to create breakpoints.
4846 (svr4_solib_create_inferior_hook): Free the solib list.
4847 (_initialize_svr4_solib): Initialise
4848 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
4852 * target.h (target_ops): New field
4853 "to_augmented_libraries_svr4_read".
4854 (target_augmented_libraries_svr4_read): New macro.
4855 * target.c (update_current_target): Handle
4856 to_augmented_libraries_svr4_read.
4857 * remote.c (remote_state): New field
4858 "augmented_libraries_svr4_read".
4859 (remote_augmented_libraries_svr4_read_feature): New function.
4860 (remote_protocol_features): Add entry for
4861 "augmented-libraries-svr4-read".
4862 (remote_augmented_libraries_svr4_read): New function.
4863 (init_remote_ops): Initialize
4864 remote_ops.to_augmented_libraries_svr4_read.
4872 * objfiles.h (inhibit_section_map_updates): New function
4874 (resume_section_map_updates): Likewise.
4875 (resume_section_map_updates_cleanup): Likewise.
4876 * objfiles.c (objfile_pspace_info): Removed field
4877 "objfiles_changed_p". New fields "new_objfiles_available",
4878 "section_map_dirty" and "inhibit_updates".
4879 (allocate_objfile): Set new_objfiles_available.
4880 (free_objfile): Set section_map_dirty.
4881 (objfile_relocate1): Likewise.
4882 (in_plt_section): Likewise.
4883 (find_pc_section): Update the conditions under which the
4884 section map will be updated.
4885 (inhibit_section_map_updates): New function.
4886 (resume_section_map_updates): Likewise.
4887 (resume_section_map_updates_cleanup): Likewise.
4891 * probe.h (get_probe_argument_count): New declaration.
4892 (evaluate_probe_argument): Likewise.
4893 * probe.c (get_probe_argument_count): New function.
4894 (evaluate_probe_argument): Likewise.
4895 (probe_safe_evaluate_at_pc): Use the above new functions.
4899 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
4900 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
4901 (ppc_insns_match_pattern): Add frame param. Avoid multiple
4902 target mem reads on optional insns.
4903 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
4904 ppc_insns_match_pattern calls.
4905 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
4906 Add match for power7 thread safety insns, and new order of
4907 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
4908 invocation in comment, and update rest of comment.
4909 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
4910 PPC64_STANDARD_LINKAGE3_LEN): Delete.
4911 (ppc64_standard_linkage2_target): Update insn offsets.
4912 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
4913 stubs first. Update calls.
4917 * solib.c (solib_find): Don't need dir separator if path has
4922 Revert (indirectly causes a SIGSEGV):
4923 * machoread.c (macho_symfile_read): Assign first cleanup to
4928 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
4929 mi-parse.c. Make them static.
4930 (mi_all_values): Likewise.
4931 (mi_parse_values_option): Move to mi-parse.c. Rename it to
4932 mi_parse_print_values. Make it external.
4933 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
4934 Remove the declarations.
4935 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
4936 * mi/mi-parse.h (mi_parse_print_values): Declare.
4937 * mi/mi-cmd-stack.c: Include mi-parse.h.
4938 (parse_print_values): Remove
4939 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
4940 of parse_print_values.
4941 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
4946 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
4947 (encode_actions): Move code to ...
4948 (all_tracepoint_actions_and_cleanup): ... here. New.
4949 (trace_dump_command): Likewise.
4953 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
4957 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
4958 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
4959 'old_chain' argument. Add 'parser_result' argument.
4960 (gdb_xml_create_parser_and_cleanup): Remove old version.
4961 (gdb_xml_parse_quick): Update.
4962 (xml_process_xincludes): Update.
4963 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
4968 * probe.c (collect_probes): Check arguments for NULL before
4969 calling compile_rx_or_error.
4970 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
4975 * infrun.c (adjust_pc_after_break): Introduce an outer null
4980 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
4984 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
4985 for 'old_chain'. Do not check 'head' before processing
4990 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
4995 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
4996 inner scope. Unconditionally call do_cleanups.
5000 * source.c (find_and_open_source): Call do_cleanups.
5004 * linux-thread-db.c (thread_db_load_search): Unconditionally
5009 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
5010 for 'cleanup'; instead use a later one.
5014 * python/py-breakpoint.c (bppy_get_commands): Use
5015 explicit, unconditional return.
5016 * python/py-frame.c (frapy_read_var): Likewise.
5017 * python/python.c (gdbpy_decode_line): Likewise.
5021 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
5022 do_cleanups on all return paths.
5026 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
5030 * stabsread.c (read_struct_type): Call do_cleanups along
5035 * mips-linux-tdep.c: Adjust formatting throughout.
5039 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
5040 along all return paths.
5044 * symfile.c (find_separate_debug_file): Call do_cleanups
5045 along all return paths.
5049 * symtab.c (search_symbols): Introduce a null cleanup for
5054 * python/py-value.c (valpy_binop): Call do_cleanups before
5059 * python/py-prettyprint.c (print_children): Remove extra
5064 * python/py-frame.c (frapy_read_var): Call do_cleanups along
5069 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
5070 along all return paths.
5074 * cli/cli-logging.c (set_logging_redirect): Unconditionally
5079 * varobj.c (c_value_of_root): Call do_cleanups along all
5084 * tracepoint.c (trace_dump_command): Unconditionally call
5089 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
5090 do_cleanups earlier.
5094 * machoread.c (macho_symfile_read): Assign first cleanup to
5099 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
5103 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
5107 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
5108 call discard_cleanups.
5109 (inf_ptrace_attach): Likewise.
5113 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
5115 (mips_initialize): Likewise.
5116 (common_open): Call do_cleanups.
5120 * utils.c (internal_vproblem): Call do_cleanups.
5124 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
5128 * cli/cli-script.c (setup_user_args): Don't return after error.
5132 * somread.c (som_symtab_read): Call do_cleanups.
5136 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
5140 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
5141 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
5142 * interps.c (interpreter_exec_cmd): Call do_cleanups.
5143 * source.c (show_substitute_path_command): Call do_cleanups.
5144 (unset_substitute_path_command, set_substitute_path_command):
5146 * symfile.c (load_command): Call do_cleanups.
5150 * contrib/cleanup_check.py: New file.
5151 * contrib/gcc-with-excheck: Add option parsing.
5155 * windows-nat.c (windows_delete_thread): Add missing space
5160 * inferior.c (top level): Include tilde.h.
5161 (add_inferior_command): Call tilde_expand on the value of 'exec'
5167 * tracepoint.c (encode_actions_1): Remove parameter 't'.
5169 (encode_actions): Likewise.
5170 * remote.c (remote_download_tracepoint): Caller update.
5171 * tracepoint.h (encode_actions): Update declaration.
5175 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
5180 * remote.c (remote_check_symbols): Remove unused parameter
5183 (remote_start_remote, remote_new_objfile): Caller update.
5187 * mi/mi-cmds.c (mi_cmds): Define MI command
5188 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
5193 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
5194 (remote_insert_watchpoint, remote_remove_watchpoint)
5195 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
5196 (remote_verify_memory, compare_sections_command)
5197 (remote_search_memory): Set the general process/thread on the
5202 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
5203 (_initialize_aarch64_tdep): Don't call
5204 initialize_tdesc_aarch64_without_fpu.
5205 * features/Makefile (WHICH): Remove reference to
5206 aarch64-without-fpu.
5207 * features/aarch64-without-fpu.c: Delete file.
5208 * regformats/aarch64-without-fpu.dat: Delete file.
5212 * tracepoint.c (stringify_collection_list): Remove parameter
5214 (encode_actions): Caller update. Remove local variables.
5218 * tracepoint.c (TFILE_PID): Remove.
5219 (tfile_open): Don't add thread and inferior.
5220 (tfile_close): Don't set 'inferior_ptid'. Don't call
5221 exit_inferior_silent.
5222 (tfile_thread_alive): Remove.
5223 (init_tfile_ops): Don't set field 'to_thread_alive' of
5228 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
5232 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
5233 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
5234 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
5235 Only define if HAVE_SOCKETS is defined.
5236 * configure.ac: Check for sys/socket.h.
5237 * config.in, configure: Regenerate.
5241 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
5242 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
5243 printing uint32_t variables.
5247 * NEWS: Mention GDBserver range stepping support.
5252 * gdbthread.h (struct thread_control_state) <may_range_step>: New
5254 * infcmd.c (step_once, until_next_command): Enable range stepping.
5255 * infrun.c (displaced_step_prepare): Disable range stepping.
5256 (resume): Disable range stepping if stepping over a breakpoint or
5257 we have software watchpoints. If range stepping is enabled,
5258 assert the thread is in the stepping range.
5259 (clear_proceed_status_thread): Clear may_range_step.
5260 (handle_inferior_event): Disable range stepping as soon as we know
5261 the thread that hit the event. Re-enable it whenever we're going
5262 to step with a step range.
5263 * remote.c (struct vCont_action_support) <r>: New field.
5264 (use_range_stepping): New global.
5265 (remote_vcont_probe): Handle 'r' action.
5266 (append_resumption): Append an 'r' action if the thread may range
5268 (show_range_stepping): New function.
5269 (set_range_stepping): New function.
5270 (_initialize_remote): Call add_setshow_boolean_cmd to register the
5271 'set range-stepping' and 'show range-stepping' commands.
5272 * NEWS: Mention range stepping, the new vCont;r action, and the
5273 new "set/show range-stepping" commands.
5278 * remote.c (struct vCont_action_support): New struct.
5279 (struct remote_state) <support_vCont_t>: Remove field.
5280 <vCont_actions_support>: New field.
5281 (remote_vcont_probe, remote_stop_ns): Update.
5286 * gdbthread.h (pc_in_thread_step_range): New declaration.
5287 * thread.c (pc_in_thread_step_range): New function.
5288 * infrun.c (handle_inferior_event): Use it.
5292 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
5297 * ada-lang.c (is_known_support_routine): Add explicit free of
5298 'func_name' from find_frame_funname.
5299 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
5300 for func_name from find_frame_funname.
5301 * python/py-frame.c (frapy_name): Add explicit free of
5302 'name' from find_frame_funname.
5303 * stack.c (find_frame_funname): Add comment explaining that
5304 funcp must be freed by the caller.
5305 Return copy of symbol names instead of pointers.
5306 (print_frame): Add a cleanup for 'funname' from
5308 * stack.h (find_frame_funname): Remove "const" from
5309 'funname' parameter.
5314 * c-valprint.c (c_value_print): Use value_addr for
5315 references. Convert back to reference type with value_ref.
5319 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
5320 unloaded DLL, it will be done by handle_solib_event. See
5321 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
5326 * ui-out.c: Create typedef ui_out_level_p and define vector
5327 operations for that type.
5328 (struct ui_out): Use a vector instead of an array.
5329 (current_level): Return level from a vector.
5330 (push_level): Create a level in a vector.
5331 (pop_level): Delete a level in a vector.
5332 (ui_out_new): Create initial level zero level, and store in a
5334 (ui_out_destroy): Add vector cleanup.
5338 * python/python-internal.h (gdb_Py_DECREF): Tag with
5339 "ARI: editCase function".
5343 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
5347 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5348 whether PRINTER is NULL before installing a Py_DECREF cleanup.
5349 * python/py-utils.c (py_decref): Don't check for NULL before
5354 * python/py-utils.c (py_decref): Remove extra braces.
5355 (gdb_pymodule_addobject): Remove extra braces.
5356 * python-internal.h (gdb_Py_DECREF): New static inline function.
5357 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
5361 * breakpoints.c (detach_breakpoints): Do not
5362 detach breakpoints locations with loc_type bp_loc_other.
5366 Workaround Python 2.6.
5367 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
5372 Code cleanup: constification.
5373 * solib.c (solib_ops): Make return type and ops variable type const.
5374 (set_solib_ops): Make the new_ops parameter and ops variable const.
5375 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
5376 (solib_add, solib_keep_data_in_core, clear_solib)
5377 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
5378 (reload_shared_libraries, solib_global_lookup): Make the ops variable
5380 * solib.h (set_solib_ops): Make the new_ops parameter const.
5384 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
5386 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
5387 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
5388 (SYSTEM_GDBINIT_FILES): New variables.
5389 (all): Add stamp-system-gdbinit.
5390 (stamp-system-gdbinit): New rule.
5391 (clean-system-gdbinit, install-system-gdbinit)
5392 (uninstall-system-gdbinit): New rules. Make them .PHONY.
5393 (install-only): Add dependency on install-system-gdbinit.
5394 (uninstall): Add dependency on uninstall-system-gdbinit.
5395 (clean): Add dependency on clean-system-gdbinit.
5396 * system-gdbinit/elinos.py: New file.
5397 * system-gdbinit/wrs-linux.py: New file.
5401 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
5405 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
5406 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
5407 * mi/mi-cmd-break.c (ctype.h): New include.
5408 (gdb_obstack.h): New include.
5409 (mi_argv_to_format, mi_cmd_break_insert_1): New.
5410 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
5411 (mi_cmd_dprintf_insert): New.
5412 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
5413 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
5417 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
5421 * python/py-value.c (valpy_get_dynamic_type): Simplify
5422 dynamic_type assignment. Use Py_XINCREF.
5426 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
5430 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
5431 (gdbpy_selected_frame): Move object-construction code
5436 * python/py-arch.c (gdbpy_initialize_arch): Use
5437 gdb_pymodule_addobject.
5438 * python/py-block.c (gdbpy_initialize_blocks): Use
5439 gdb_pymodule_addobject.
5440 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
5441 gdb_pymodule_addobject.
5442 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
5443 gdb_pymodule_addobject.
5444 * python/py-event.c (gdbpy_initialize_event_generic): Use
5445 gdb_pymodule_addobject.
5446 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
5447 gdb_pymodule_addobject.
5448 * python/py-evts.c (add_new_registry): Use
5449 gdb_pymodule_addobject.
5450 (gdbpy_initialize_py_events): Likewise.
5451 * python/py-finishbreakpoint.c
5452 (gdbpy_initialize_finishbreakpoints): Use
5453 gdb_pymodule_addobject.
5454 * python/py-frame.c (gdbpy_initialize_frames): Use
5455 gdb_pymodule_addobject.
5456 * python/py-function.c (gdbpy_initialize_functions): Use
5457 gdb_pymodule_addobject.
5458 * python/py-inferior.c (gdbpy_initialize_inferior): Use
5459 gdb_pymodule_addobject.
5460 * python/py-infthread.c (gdbpy_initialize_thread): Use
5461 gdb_pymodule_addobject.
5462 * python/py-objfile.c (gdbpy_initialize_objfile): Use
5463 gdb_pymodule_addobject.
5464 * python/py-param.c (gdbpy_initialize_parameters): Use
5465 gdb_pymodule_addobject.
5466 * python/py-progspace.c (gdbpy_initialize_pspace): Use
5467 gdb_pymodule_addobject.
5468 * python/py-symbol.c (gdbpy_initialize_symbols): Use
5469 gdb_pymodule_addobject.
5470 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
5471 gdb_pymodule_addobject.
5472 * python/py-type.c (gdbpy_initialize_types): Use
5473 gdb_pymodule_addobject.
5474 * python/py-utils.c (gdb_pymodule_addobject): New function.
5475 * python/py-value.c (gdbpy_initialize_values): Use
5476 gdb_pymodule_addobject.
5477 * python/python-internal.h (gdb_pymodule_addobject): Declare.
5478 * python/python.c (_initialize_python): Use
5479 gdb_pymodule_addobject.
5483 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
5484 * python/py-param.c (get_set_value, get_show_value): Use
5486 * python/python.c (start_type_printers, apply_type_printers):
5487 Use explicit decrefs.
5491 * python/py-evts.c (gdbpy_initialize_py_events): Don't
5496 * python/python.c (gdbpy_run_events): Decref the result
5497 of PyObject_CallObject.
5501 * python/py-symtab.c (set_sal): Use
5502 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
5503 (symtab_and_line_to_sal_object): Update.
5507 * python/py-param.c (compute_enum_values): Decref 'item'.
5511 * mi/mi-main.c: Include python-internal.h.
5512 (mi_cmd_list_features): Check gdb_python_initialized.
5513 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
5514 (python_inferior_exit, python_new_objfile, add_thread_object)
5515 (delete_thread_object, py_free_inferior): Check
5516 gdb_python_initialized.
5517 * python/py-prettyprint.c (apply_val_pretty_printer): Check
5518 gdb_python_initialized.
5519 * python/py-type.c (save_objfile_types): Check
5520 gdb_python_initialized.
5521 * python/python-internal.h (gdb_python_initialized): Declare.
5522 * python/python.c (ensure_python_env): Throw exception if
5523 Python not initialized.
5524 (before_prompt_hook, source_python_script_for_objfile)
5525 (start_type_printers, apply_type_printers,
5526 free_type_printers): Check gdb_python_initialized.
5527 * varobj.c (varobj_get_display_hint)
5528 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
5529 (install_new_value_visualizer, varobj_set_visualizer)
5530 (value_get_print_value): Check gdb_python_initialized.
5534 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
5536 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
5537 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
5539 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
5541 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
5543 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
5545 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
5546 init function to return 'int'.
5547 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
5548 Return 'int'. Check errors.
5549 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
5551 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
5552 Return 'int'. Check errors.
5553 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
5555 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
5557 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
5559 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
5561 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
5563 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
5565 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
5567 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
5569 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
5571 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
5573 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
5575 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
5577 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
5579 * python/python-internal.h (gdbpy_initialize_auto_load,
5580 gdbpy_initialize_values, gdbpy_initialize_frames,
5581 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
5582 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
5583 gdbpy_initialize_blocks, gdbpy_initialize_types,
5584 gdbpy_initialize_functions, gdbpy_initialize_pspace,
5585 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
5586 gdbpy_initialize_finishbreakpoints,
5587 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
5588 gdbpy_initialize_thread, gdbpy_initialize_inferior,
5589 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
5590 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
5591 gdbpy_initialize_signal_event,
5592 gdbpy_initialize_breakpoint_event,
5593 gdbpy_initialize_continue_event,
5594 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
5595 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
5596 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5597 * python/python.c (gdb_python_initialized): New global.
5598 (gdbpy_initialize_events): Return 'int'. Check errors.
5599 (_initialize_python): Check errors. Set
5600 gdb_python_initialized.
5604 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
5605 Decref the reslut of PyObject_CallMethod.
5609 * python/py-event.c (gdbpy_initialize_event_generic): Return
5610 early if PyType_Ready fails.
5614 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
5615 as 'default' in the switch.
5619 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
5620 get_addr_from_python calls out of TRY_CATCH.
5621 (infpy_write_memory, infpy_search_memory): Likewise.
5622 * python/py-utils.c (get_addr_from_python): Return negative
5623 value on error. Use TRY_CATCH.
5624 * python/python-internal.h (get_addr_from_python): Use
5625 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5629 * python/py-event.c (evpy_emit_event): Decref the
5630 result of PyObject_CallFunctionObjArgs.
5634 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
5639 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
5643 * python/py-event.h (gdbpy_initialize_event_generic): Use
5644 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5645 * python/py-evts.c (add_new_registry): Use
5646 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
5647 * python/python-internal.h
5648 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
5652 * python/py-arch.c (archpy_disassemble): Update.
5653 * python/py-type.c (typy_get_composite, typy_lookup_typename)
5654 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
5655 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
5656 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
5658 (GDB_PY_HANDLE_EXCEPTION): Update.
5659 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
5663 * python/python-internal.h (events_object_type): Remove.
5667 * python/py-event.h (evpy_emit_event): Use
5668 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
5669 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
5674 * py-evtregistry.c (create_event_object): Decref
5675 eventregistry_object if PyList_New fails.
5679 * py-cmd.c (gdbpy_string_to_argv): Check result of
5684 * python/python.c (before_prompt_hook): Add cleanup to
5689 * python/py-function.c (fnpy_init): Decref result of
5690 PyObject_GetAttrString.
5694 * python/py-threadevent.c (get_event_thread): Use
5695 CPYCHECKER_RETURNS_BORROWED_REF.
5696 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
5698 (pspace_to_pspace_object, objfile_to_objfile_object)
5699 (find_thread_object): Use it.
5703 * python/py-arch.c (arch_object_type): Use
5704 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5705 * python/py-block.c (block_syms_iterator_object_type):
5706 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5707 * python/py-bpevent.c (breakpoint_event_object_type):
5708 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5709 * python/py-cmd.c (cmdpy_object_type): Use
5710 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5711 * python/py-continueevent.c (continue_event_object_type):
5712 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5713 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
5714 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5715 * python/py-events.h (thread_event_object_type):
5716 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5717 * python/py-evtregistry.c (eventregistry_object_type): Use
5718 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5719 * python/py-exitedevent.c (exited_event_object_type):
5720 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5721 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
5722 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5723 * python/py-function.c (fnpy_object_type): Use
5724 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5725 * python/py-inferior.c (inferior_object_type, membuf_object_type):
5726 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5727 * python/py-infthread.c (thread_object_type): Use
5728 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5729 * python/py-lazy-string.c (lazy_string_object_type):
5730 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5731 * python/py-newobjfileevent.c (new_objfile_event_object_type):
5732 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5733 * python/py-objfile.c (objfile_object_type): Use
5734 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5735 * python/py-param.c (parmpy_object_type):
5736 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5737 * python/py-progspace.c (pspace_object_type):
5738 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5739 * python/py-signalevent.c (signal_event_object_type):
5740 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5741 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
5742 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5743 * python/py-type.c (type_object_type, field_object_type)
5744 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5745 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
5747 (value_object_type, block_object_type, symbol_object_type)
5748 (event_object_type, stop_event_object_type, breakpoint_object_type)
5749 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
5753 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
5754 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
5758 When reading CU, stay in DWO. Be more tolerent of bad debug info.
5760 * dwarf2read.c (struct dwarf2_per_cu_data): New member
5761 reading_dwo_directly.
5762 (struct signatured_type): New member dwo_unit.
5763 (struct die_reader_specs): New member comp_dir.
5764 (create_signatured_type_table_from_index): Use malloc for
5765 all_type_units instead of objfile's obstack.
5766 (create_all_type_units): Ditto.
5767 (fill_in_sig_entry_from_dwo_entry): New function.
5768 (add_type_unit): New function.
5769 (lookup_dwo_signatured_type): New function.
5770 (lookup_dwp_signatured_type): New function.
5771 (lookup_signatured_type): New arg cu. All callers updated.
5772 (init_cu_die_reader): Initialize comp_dir.
5773 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
5774 Change assert of matching type signatures to call error on mismatch.
5775 (lookup_dwo_unit): Add assert.
5776 (init_tu_and_read_dwo_dies): New function.
5777 (init_cutu_and_read_dies): Call it.
5778 (build_type_unit_groups): Handle case of no type unit groups created.
5779 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
5780 (lookup_dwo_cutu): Tweak complaint.
5781 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
5782 (dwarf2_per_objfile_free): Free all_type_units.
5786 * windows-nat.c (handle_unload_dll): Add missing empty line.
5790 * dwarf2read.c (prototyped_function_p): New function.
5791 (read_subroutine_type): Use it.
5795 * rs6000-aix-tdep.c: De-indent some example code provided
5800 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
5801 region is ok for a hardware watchpoint using the new ptrace interface
5806 * NEWS: Mention new maintenance commands check-symtabs, and
5807 expand-symtabs, and renamed check-psymtabs.
5808 * psymtab.c (maintenance_check_psymtabs): Renamed from
5809 maintenance_check_symtabs. Only process already-expanded symbol
5811 (_initialize_psymtab): Update.
5812 * symmisc.c (maintenance_check_symtabs): New function.
5813 (maintenance_expand_name_matcher): New function
5814 (maintenance_expand_file_matcher): New function
5815 (maintenance_expand_symtabs): New function.
5816 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
5821 * python/py-inferior.c (infpy_read_memory): Don't call
5822 PyErr_SetString if PyObject_New fails.
5823 * python/py-frame.c (frame_info_to_frame_object): Don't call
5824 PyErr_SetString if PyObject_New fails.
5828 * acinclude.m4: Add check for dlopen in libdl.
5829 * configure.ac: Ditto.
5830 * configure: Regenerate.
5834 * frame.c (frame_stash): Convert to htab.
5835 (frame_addr_hash): New function.
5836 (frame_addr_hash_eq): New function.
5837 (frame_stash_create): Convert function to create
5839 (frame_stash_add): Convert function to add an entry to a hash
5841 (frame_stash_find): Convert function to search the hash table.
5842 (frame_stash_invalidate): Convert function to empty the hash
5844 (get_frame_id): Only add to stash if a frame_id is created.
5845 (_initialize_frame): Call frame_stash_create.
5849 * configure.ac: Ensure MIG is available when building for GNU Hurd
5851 * configure: Regenerate.
5855 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
5859 * ada-lang.c (ada_make_symbol_completion_list): Make sure
5860 all cleanups are done before returning from this function.
5864 * utils.h: #include "exceptions.h".
5865 (enum errors): Remove partial declaration.
5869 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
5870 * gdbarch.h, gdbarch.c: Regenerate.
5871 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
5874 * rs6000-aix-tdep.h: New file.
5875 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
5876 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
5878 (struct field_info, struct ld_info_desc): New types.
5879 (ld_info32_desc, ld_info64_desc): New static constants.
5880 (struct ld_info): New type.
5881 (rs6000_aix_extract_ld_info): New function.
5882 (rs6000_aix_shared_library_to_xml): Likewise.
5883 (rs6000_aix_ld_info_to_xml): Likewise.
5884 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
5885 (rs6000_aix_init_osabi): Add call to
5886 set_gdbarch_core_xfer_shared_libraries_aix.
5887 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
5888 Remove "xml-utils.h" include.
5889 (LdInfo): Delete typedef.
5890 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
5892 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
5893 Adjust code accordingly.
5894 (rs6000_core_ldinfo): Delete, folded into
5895 rs6000_aix_core_xfer_shared_libraries_aix.
5896 (rs6000_xfer_shared_library): Delete.
5897 (rs6000_xfer_shared_libraries): Reimplement.
5901 * record.c (record_goto_cmdlist): New.
5902 (cmd_record_goto): Split into this ...
5903 (cmd_record_goto_begin): ... this
5904 (cmd_record_goto_end): ... and this.
5905 (_initialize_record): Change "record goto" to prefix command.
5906 Add commands for "record goto begin" and "record goto end".
5907 Add an alias for "record goto start" to "record goto begin".
5911 * linespec.c (convert_linespec_to_sals): New comment for
5912 SOURCE_FILENAME assignment.
5916 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
5921 * eval.c (parse_and_eval_long): Make 'exp' const.
5922 * value.h (parse_and_eval_long): Update.
5926 * ui-file.c (gdb_fopen): Make arguments const.
5927 * ui-file.h (gdb_fopen): Make arguments const.
5931 * remote.c (remote_set_trace_notes): Make arguments const.
5932 * target.c (update_current_target): Update cast.
5933 * target.h (to_set_trace_notes): Make arguments const.
5937 * go32-nat.c (go32_terminal_info): Make 'args' const.
5938 * inferior.h (child_terminal_info): Update.
5939 * inflow.c (child_terminal_info): Make 'args' const.
5940 * target.c (default_terminal_info): Make 'args' const.
5941 (debug_to_terminal_save_ours): Likewise.
5942 * target.h (struct target_ops) <to_terminal_info>: Make argument
5947 * gcore.c (create_gcore_bfd): Make 'filename' const.
5948 * gcore.h (create_gcore_bfd): Make 'filename' const.
5949 * record-full.c (record_full_save): Make 'recfilename' const.
5950 * target.c (target_save_record): Make 'filename' const.
5951 * target.h (struct target_ops) <to_save_record>: Make 'filename'
5953 (target_save_record): Likewise.
5958 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
5959 ranges section has been read.
5964 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
5965 STRUCTOP_PTR>: Return a not_lval value for
5966 EVAL_AVOID_SIDE_EFFECTS.
5967 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
5968 for EVAL_AVOID_SIDE_EFFECTS.
5972 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
5973 floating point registers to register type before storing
5975 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
5981 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5983 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
5985 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
5986 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
5987 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
5988 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
5994 * configure: Rebuild.
5995 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
6000 * remote.c (_initialize_remote): Fix spelling of
6001 qXfer:traceframe-info:read packet in packet config command.
6007 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
6008 "QTro" at start of packet.
6012 * solib-aix.c (solib_aix_relocate_section_addresses):
6013 For the .bss section action, apply the same offset as
6018 * solib-aix.c (solib_aix_relocate_section_addresses):
6019 Remove FIXME comment.
6024 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
6025 New functions, directly copied from sparc-sol-thread.c.
6026 * sparc-sol-thread.c: Delete.
6027 * configure.ac: Remove code handling sparc-solaris-thread.c.
6028 * configure: Regenerate.
6032 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
6034 (backtrace_command): Add "no-filters" option parsing.
6035 (_initialize_stack): Alter help to reflect "no-filters" option.
6036 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
6037 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
6038 (py-frame.o): Add target
6039 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
6041 * python/python.h: Add new frame filter constants, and flag enum.
6042 (apply_frame_filter): Add definition.
6043 * python/python.c (apply_frame_filter): New non-Python
6045 * python/py-utils.c (py_xdecref): New function.
6046 (make_cleanup_py_xdecref): Ditto.
6047 * python/py-objfile.c: Declare frame_filters dictionary.
6048 (objfpy_dealloc): Add frame_filters dealloc.
6049 (objfpy_new): Initialize frame_filters attribute.
6050 (objfile_to_objfile_object): Ditto.
6051 (objfpy_get_frame_filters): New function.
6052 (objfpy_set_frame_filters): New function.
6053 * python/py-progspace.c: Declare frame_filters dictionary.
6054 (pspy_dealloc): Add frame_filters dealloc.
6055 (pspy_new): Initialize frame_filters attribute.
6056 (pspacee_to_pspace_object): Ditto.
6057 (pspy_get_frame_filters): New function.
6058 (pspy_set_frame_filters): New function.
6059 * python/py-framefilter.c: New file.
6060 * python/lib/gdb/command/frame_filters.py: New file.
6061 * python/lib/gdb/frames.py: New file.
6062 * python/lib/gdb/__init__.py: Initialize global frame_filters
6064 * python/lib/gdb/FrameDecorator.py: New file.
6065 * python/lib/gdb/FrameIterator.py: New file.
6066 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
6067 * mi/mi-cmds.h: Declare.
6068 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
6069 --no-frame-filter logic, and Python frame filter logic.
6070 (stack_enable_frame_filters): New function.
6071 (parse_no_frame_option): Ditto.
6072 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
6074 (mi_cmd_stack_list_locals): Ditto.
6075 (mi_cmd_stack_list_args): Ditto.
6076 (mi_cmd_stack_list_variables): Ditto.
6077 * NEWS: Add frame filter note.
6081 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
6082 All callers updated.
6083 (syms_from_objfile): Ditto. Make static.
6084 (symbol_file_add_with_addrs): Renamed from
6085 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
6086 num_offsets. All callers updated.
6087 * symfile.h (syms_from_objfile): Delete.
6089 * symfile.c (decrement_reading_symtab): Add assert.
6090 (increment_reading_symtab): Ditto.
6094 * source.c (forward_search_command): Replace call to getc
6096 (reverse_search_command): Likewise.
6100 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
6105 * sol-thread.c (info_cb): Factorize the code a little.
6109 * sol-thread.c (info_cb): Rework the output of the "maintenance
6110 info sol-threads" command a bit.
6114 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
6115 Replace ti.ti_startfunc by ti.ti_pc.
6119 * solib-aix.c (solib_aix_free_library_list): New function
6120 for the case where HAVE_LIBEXPAT is not defined.
6124 PR breakpoints/15413:
6125 * breakpoint.c (condition_completer): Simplify the code to
6126 disconsider multiple locations of breakpoints when completing the
6127 "condition" command.
6131 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
6132 instead of <sys/wait.h>.
6136 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
6137 trailing new line from warning message.
6141 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
6142 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
6146 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
6147 error message (ARI fix).
6151 * features/library-list-aix.dtd: Replace library-list by
6153 * rs6000-nat.c: Replace library-list by library-list-aix
6155 * solib-aix.c: Likewise.
6159 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
6160 Renames TARGET_OBJECT_AIX_LIBRARIES.
6161 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
6162 TARGET_OBJECT_LIBRARIES_AIX throughout.
6163 * solib-aix.c: Likwise.
6167 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
6168 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
6172 * solib-dsbt.c (enable_break): Declare.
6173 (dsbt_current_sos): Remove call to enable_break2.
6174 (enable_break2): Rename to enable_break. Set solib breakpoint
6175 on '_dl_debug_state'.
6176 (enable_break): Remove.
6180 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
6181 debug state prior to replicating existing hardware watchpoints or
6186 * gcore.c (gcore_create_callback): Ignore sections with
6187 separate_debug_objfile_backlink != NULL.
6194 Based on the nios2-elf port from Altera Corporation.
6196 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
6198 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
6199 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
6200 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
6201 * nios2-tdep.h: New.
6202 * nios2-tdep.c: New.
6203 * nios2-linux-tdep.c: New.
6204 * features/Makefile (WHICH): Add nios2-linux.
6205 (nios2-linux-expedite): Set.
6206 * features/nios2-cpu.xml: New.
6207 * features/nios2.xml: New.
6208 * features/nios2-linux.xml: New.
6209 * features/nios2.c: New (autogenerated).
6210 * features/nios2-linux.c: New (autogenerated).
6211 * regformats/nios2-linux.dat: New (autogenerated).
6212 * NEWS (Changes since GDB 7.6): Add new Nios II targets
6217 * symfile.c: Whitespace cleanup.
6219 * solist.h (struct target_so_ops): New member clear_so.
6220 * solib-svr4.c (svr4_clear_so): New function.
6221 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
6222 * solib.c (clear_so): Renamed from free_so_symbols.
6223 All callers updated. Call target clear_so if it exists.
6227 * ada-lang.c (ada_value_primitive_packed_val): Don't
6229 * value.c (set_value_parent): Incref the new parent and decref
6231 (value_copy, value_primitive_field): Use set_value_parent.
6235 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
6236 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
6238 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
6239 * dwarf2read.c (write_constant_as_bytes)
6240 (dwarf2_fetch_constant_bytes): New functions.
6244 * dwarf2read.c (dwarf2_const_value_data): Remove unused
6246 (dwarf2_const_value_attr): Update.
6250 * somread.c (som_symfile_offsets): Add 'const' to addrs.
6251 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
6252 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
6257 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
6262 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
6263 * stabsread.h (process_one_symbol): Update declaration.
6264 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6265 * elfread.c (elf_symfile_relocate_probe): Ditto.
6266 * psymtab.c (relocate_psymtabs): Ditto.
6267 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
6268 (objfile_relocate): Ditto.
6269 * objfiles.h (objfile_relocate): Update declaration.
6270 * symfile.c (relative_addr_info_to_section_offsets): Constify
6272 (default_symfile_offsets): Ditto.
6273 (syms_from_objfile_1): Constify offsets parameter.
6274 (syms_from_objfile): Ditto.
6275 (symbol_file_add_with_addrs_or_offsets): Ditto.
6276 (symfile_map_offsets_to_segments): Constify data parameter.
6277 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
6278 delta parameters of member relocate.
6279 (struct sym_probe_fns): Constify new_offsets,
6280 delta parameters of member sym_relocate_probe.
6281 (struct sym_fns): Constify section_addr_info parameter of member
6283 (relative_addr_info_to_section_offsets): Update declaration.
6284 (default_symfile_offsets): Ditto.
6285 (syms_from_objfile): Ditto.
6286 (symfile_map_offsets_to_segments): Ditto.
6288 * symfile.c (syms_from_objfile_1): Use correct section count when
6289 objfile->sf == NULL.
6293 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
6297 * psympriv.h (struct partial_symtab): Augment comment for member
6302 Reimplement shared library support on ppc-aix...
6303 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
6304 * features/library-list-aix.dtd: New file.
6305 * solib-aix.h, solib-aix.c: New file.
6306 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
6307 (rs6000_find_toc_address_hook): Delete.
6308 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
6309 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
6310 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
6312 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
6313 (vmap_symtab, fixup_breakpoints): Delete.
6314 (rs6000_xfer_shared_libraries): New function.
6315 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
6316 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
6317 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
6318 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
6319 (rs6000_xfer_shared_library): New function.
6320 (find_toc_address): Delete.
6321 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
6322 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
6323 * xcoffread.c (record_minimal_symbol): Reloate symbol address
6324 before creating minimal symbol. Adjust function description
6326 (scan_xcoff_symtab): Replace call to
6327 prim_record_minimal_symbol_and_info by call to
6328 record_minimal_symbol.
6329 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
6330 around default_symfile_offsets.
6331 * configure.tgt: Add solib-aix.o to gdb_target_obs for
6332 powerpc-aix targets.
6333 * config/rs6000/nm-rs6000.h: Delete.
6334 * config/powerpc/aix.mh (NAT_FILE): Delete.
6335 (NATDEPFILES): Remove xcoffsolib.o.
6336 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
6337 (ALL_TARGET_OBS): Add solib-aix.o.
6338 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
6339 config/rs6000/nm-rs6000.h. Add solib-aix.h.
6340 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
6341 * xcoffsolib.h, xcoffsolib.c: Delete.
6343 * solib.c (reload_shared_libraries): Remove reference to
6344 SOLIB_CREATE_INFERIOR_HOOK.
6345 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
6346 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
6347 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
6349 * corelow.c (deprecated_core_resize_section_table): Delete.
6350 * exec.c: Remove include of xcoffsolib.h".
6351 (map_vmap, vmap): Delete.
6352 (exec_close_1): Remove references to vmap.
6353 (exec_file_attach): Remove vmap handling code, and reference
6354 to DEPRECATED_IBM6000_TARGET.
6355 (bfdsec_to_vmap): Delete.
6356 (exec_files_info): Remove block of code handling VMAP.
6357 * infcmd.c (post_create_inferior): Remove reference to
6358 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
6359 * infrun.c (follow_exec): Remove reference to
6360 SOLIB_CREATE_INFERIOR_HOOK.
6361 * stack.c (print_frame): Remove reference to PC_SOLIB.
6362 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
6363 (dsbt_relocate_main_executable): Likewise.
6364 * solib-frv.c (frv_current_sos): Likewise.
6368 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
6369 to target_write_memory and target_read_memory.
6373 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
6374 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
6378 * darwin-nat.c: Replace all "%x" instances in format strings
6379 into "0x%x" throughout.
6383 * darwin-nat.c (darwin_mourn_inferior): Replace call to
6384 gdb_assert by call to MACH_CHECK_ERROR.
6385 (darwin_attach_pid): Raise an error rather than a failed
6386 assertion when various system calls failed. Report a warning
6387 instead of raising a failed assertion when PREV_NOT is not NULL
6388 after call to mach_port_request_notification.
6389 (darwin_ptrace_me): Raise an error rather than a failed
6390 assertion when read returns nonzero.
6394 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
6398 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
6402 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
6403 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
6404 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
6405 a stale cleanup. Fix double free of NAME.
6409 * windows-nat.c (windows_delete_thread): Accept an additional
6410 argument, the thread's exit code, and announce thread death when
6411 print_thread_events is non-zero and we are deleting a thread that
6412 is not the main thread.
6413 (get_windows_debug_event): Pass thread exit code to
6414 windows_delete_thread.
6418 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
6419 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
6420 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
6421 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
6422 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
6423 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
6424 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
6425 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
6426 (gdbarch_tdep): New struct.
6427 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
6429 (v850e3v5_register_name): New function.
6430 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
6431 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
6432 code handling the struct return conventions for the RH850 ABI.
6434 (v850_eight_byte_align_p): New function.
6435 (v850_push_call_dummy): Push structs by value, not by reference
6436 for the RH850 ABI. Add support for eight byte alignment.
6437 (v850_dbtrap_breakpoint_from_pc): New function.
6438 (v850_gdbarch_init): Add ABI detection code. Register
6439 v850e3v5_register_name for the v850e3v5 architecture. Set the
6440 number of registers for v850e3v5. Register
6441 v850_dbtrap_breakpoint_from_pc as appropriate.
6442 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
6446 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
6447 of bfd_count_sections.
6448 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
6449 * symfile.c (default_symfile_offsets): Ditto.
6450 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
6451 one entry, not bfd_count_sections entries.
6455 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
6456 `save' and `restore' register groups. Don't include SPL
6457 or SPH in these groups.
6458 (rl78_dwarf_reg_to_regnum): Adjust mapping for
6459 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
6460 RL78_ES_REGNUM, and RL78_CS_REGNUM.
6461 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
6462 dwarf2_append_unwinders().
6466 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
6467 ignore SIGINT and SIGTRAP in case these internal signals are
6472 * darwin-nat.c (darwin_read_write_inferior): Change types
6473 of parameters rdaddr and wraddr to "gdb_byte *". Change type
6474 of copy_count to "mach_msg_type_number_t".
6475 (darwin_read_dyld_info): Change type of parameter
6476 rdaddr to "gdb_byte *".
6480 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
6481 of &info->load_map from "char *" to "gdb_byte *".
6485 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
6486 from "char *" to "gdb_byte *".
6487 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
6491 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
6492 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
6493 DWO stub. If DWO isn't found, just use stub.
6494 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
6496 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
6497 calling init_cutu_and_read_dies.
6501 * target-descriptions.c (maint_print_c_tdesc_cmd):
6502 Add case to parse structures as register types and
6507 * MAINTAINERS (Write After Approval): Add myself to the list.
6511 * sol-thread.c (rw_common): Change type of parameter "buf"
6513 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
6514 rw_common to "gdb_byte *" instead of "char *".
6518 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
6519 of local variable msym to const struct bound_minimal_symbol.
6520 Adjust use accordingly.
6521 [ti.ti_state == TD_THR_SLEEP]: Likewise.
6525 * i386gnu-nat.c (CREG_OFFSET): New macro.
6526 (creg_offset): New array.
6527 (CREG_ADDR): Use creg_offset instead of reg_offset.
6531 * mep-tdep.c (mep_write_pc): Delete.
6532 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
6533 Add call to set_gdbarch_pc_regnum.
6537 * common/filestuff.c: Replace #include <dirent.h> by
6538 #include "gdb_dirent.h".
6542 * common/filestuff.c: Replace #include <sys/stat.h> by
6543 #include "gdb_stat.h".
6547 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
6548 editCase function rule.
6549 (get_DW_AT_signature_type): Likewise.
6553 * m32r-tdep.c (m32r_write_pc): Delete.
6554 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
6555 Add call to set_gdbarch_pc_regnum.
6559 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
6563 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
6567 * solib-dsbt.c (fetch_loadmap): Re-indent.
6568 (displacement_from_map, enable_break2): Likewise.
6569 (dsbt_relocate_section_addresses): Likewise.
6578 * dwarf2read.c (process_full_comp_unit): Always create a static
6583 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
6584 to loc->cmd_bytecode.
6588 * dwarf2read.c (setup_type_unit_groups): Fix comment.
6592 * tracepoint.c (trace_save): Call the writer's start method.
6597 * cli/cli-decode.c (lookup_command): Show an error if there is no space
6602 * common/filestuff.c: Check USE_WIN32API before including
6604 (HAVE_F_GETFD): New define.
6605 (mark_cloexec): Check HAVE_F_GETFD.
6606 (gdb_open_cloexec): Change 'mode' to unsigned long.
6607 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
6608 (gdb_pipe_cloexec): Check HAVE_PIPE.
6609 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
6615 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
6620 * breakpoint.c (dprintf_print_recreate): New.
6621 (save_breakpoints): Let it not save dprintf commands.
6622 (initialize_breakpoint_ops): Set dprintf_print_recreate.
6627 * Makefile.in (SFILES): Add filestuff.c
6628 (COMMON_OBS): Add filestuff.o.
6629 (filestuff.o): New target.
6630 * auto-load.c (auto_load_objfile_script_1): Use
6632 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
6633 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
6634 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
6635 * common/agent.c (gdb_connect_sync_socket): Use
6637 * common/filestuff.c: New file.
6638 * common/filestuff.h: New file.
6639 * common/linux-osdata.c (linux_common_core_of_thread)
6640 (command_from_pid, commandline_from_pid, print_source_lines)
6641 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
6642 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
6644 * common/linux-procfs.c (linux_proc_get_int)
6645 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
6646 * config.in, configure: Rebuild.
6647 * configure.ac: Don't check for sys/socket.h. Check for
6649 * corelow.c (core_open): Use gdb_open_cloexec.
6650 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
6651 * fork-child.c (fork_inferior): Call close_most_fds.
6652 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
6653 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
6654 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
6655 Use gdb_fopen_cloexec.
6656 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
6658 (linux_async_pipe): Use gdb_pipe_cloexec.
6659 * remote-fileio.c (remote_fileio_func_open): Use
6661 * remote.c (remote_file_put, remote_file_get): Use
6663 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
6665 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
6666 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
6667 * solib.c (solib_find): Use gdb_open_cloexec.
6668 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
6669 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
6670 (tfile_open): Use gdb_open_cloexec.
6671 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
6672 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
6673 * xml-support.c (xml_fetch_content_from_file): Use
6675 * main.c (captured_main): Call notice_open_fds.
6679 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
6680 'char *' to 'gdb_byte *'.
6681 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
6686 * infrun.c: Fix typo in comment.
6690 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
6695 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
6696 'char *' to 'gdb_byte *'. Cast the return value of
6697 'bt_ctf_get_char_array' to 'gdb_byte *'.
6701 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
6703 * configure: Regenerate.
6707 * ser-tcp.c (net_read_prim): Cast second argument to recv to
6712 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
6713 Change type of 'myaddr' parameter to gdb_byte pointer.
6714 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
6715 to 'long long' pointer instead of to 'unsigned long long'.
6716 (monitor_write_memory_block, monitor_read_memory_single)
6717 (monitor_read_memory): Change type of 'myaddr' parameter to
6722 * record.c (validate_history_size): Make parameter 'setting'
6727 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
6732 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
6737 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
6738 * ada-tasks.c (read_fat_string_value): Likewise.
6742 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
6743 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
6744 'offset', and adjust.
6748 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
6749 (read_index_from_section): Add cast to 'char *'.
6753 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
6757 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
6761 * record-full.c (record_full_get_bookmark): Change local 'ret'
6762 type to char * and add cast to gdb_byte *.
6763 (record_full_goto_bookmark): Handle 'bookmark' argument as a
6765 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
6769 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
6770 * python/py-prettyprint.c (print_string_repr): Change type of
6771 'output' local to char *. Add cast to gdb_byte * in
6772 LA_PRINT_STRING call.
6773 (print_children): Change type of 'output' local to char *.
6774 * python/py-value.c (valpy_string): Add cast to const char * in
6775 PyUnicode_Decode call.
6779 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
6780 and change its type to 'const char *'. Adjust.
6781 (mips_send_packet): Add cast to 'char *', and remove cast to
6783 (mips_receive_packet): Remove cast to 'unsigned char *'.
6784 (mips_load_srec): Use bfd_byte.
6785 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
6786 (pmon_checkset): Make 'value' parameter unsigned.
6790 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
6794 * remote.c (remote_write_bytes_aux, compare_sections_command)
6796 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
6797 (remote_hostio_readlink, remote_bfd_iovec_pread)
6798 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
6799 binary buffer, and char when buffer is used as string.
6800 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
6801 (trace_save, tfile_open, traceframe_walk_blocks)
6802 (tfile_fetch_registers): Likewise.
6806 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
6807 buffer and size_t size. Adjust.
6808 * ser-base.h (ser_base_write): Adjust.
6809 * ser-go32.c (cnts): Change type to size_t.
6810 (dos_write): Change prototype -- take 'void *'
6811 buffer and size_t size. Adjust.
6812 (dos_info): Print elements of 'cnts' as unsigned long.
6813 * serial.c (serial_write): Likewise.
6814 * serial.h (serial_write): Adjust.
6815 (struct serial_ops) <write>: Change prototype -- take 'void *'
6816 buffer and size_t size. Adjust.
6820 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
6822 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
6826 * alpha-tdep.c (alpha_extract_return_value): Use
6827 regcache_cooked_read_unsigned to read 'v0'.
6831 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
6832 parameters 'at', 'as' and 'offset' to uint32_t.
6836 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
6837 'is64' to signed 'int'.
6841 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
6846 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
6847 'insnbuf' buffer type to unsigned int[].
6851 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
6855 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
6860 * alpha-tdep.c (heuristic_fence_post): Change type to int.
6861 (alpha_heuristic_proc_start): Adjust to check -1 instead of
6863 * mips-tdep.c (heuristic_fence_post): Change type to int.
6864 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
6868 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
6869 (struct gdbarch_tdep) <cris_version>: Make unsigned.
6870 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
6874 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
6875 it to get a string view of the byte buffer.
6876 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
6877 type to gdb_byte *. Adjust.
6878 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
6879 Change local to char *.
6880 * solib-darwin.c (find_program_interpreter): Change return type to
6882 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
6883 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
6884 * solib-frv.c (enable_break2): Change local 'buf' to char *.
6885 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
6886 * solib-svr4.c (find_program_interpreter): Change return type to
6888 (enable_break): Change local 'interp_name' to char *.
6889 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6890 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
6891 (spu_pseudo_register_write_spu): Use char for string buffer.
6893 (info_spu_event_command, info_spu_signal_command): Add casts to
6898 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
6900 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
6901 * ada-lang.c (ada_value_assign): Use gdb_byte.
6902 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
6903 (alphanbsd_sigtramp_offset): Use gdb_byte.
6904 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
6905 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
6906 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
6907 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
6908 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
6909 * arm-tdep.c (arm_stub_unwind_sniffer)
6910 (arm_displaced_init_closure): Use gdb_byte.
6911 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
6912 (arm_default_thumb_le_breakpoint)
6913 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
6914 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
6915 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
6916 * arm-wince-tdep.c (arm_wince_le_breakpoint)
6917 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
6918 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
6919 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
6920 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
6921 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
6922 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
6923 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
6924 (cris_store_return_value, cris_extract_return_value): Use
6926 (constraint): Change type of parameter to char * from signed
6927 char*. Use gdb_byte.
6928 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
6929 of local buffer to gdb_byte *.
6930 * dwarf2read.c (read_index_from_section): Use gdb_byte.
6931 (create_dwp_hash_table): Change type of locals to gdb_byte *.
6932 (add_address_entry): Change type of local buffer to gdb_byte[].
6933 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
6934 (frv_push_dummy_call): Use gdb_byte.
6935 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
6936 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
6937 (hppa_hpux_supply_save_state): Use gdb_byte.
6938 * hppa-tdep.c (hppa32_push_dummy_call)
6939 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
6940 * ia64-tdep.c (extract_bit_field, replace_bit_field)
6941 (slotN_contents, replace_slotN_contents): Change type of parameter
6943 (fetch_instruction, ia64_pseudo_register_write)
6944 (ia64_register_to_value, ia64_value_to_register)
6945 (ia64_extract_return_value, ia64_store_return_value)
6946 (ia64_push_dummy_call): Use gdb_byte.
6947 * m32c-tdep.c (m32c_return_value): Remove cast.
6948 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
6949 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
6951 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
6952 * mn10300-tdep.c (mn10300_store_return_value)
6953 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
6955 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
6956 (moxie_process_record): Remove casts.
6957 * ppc-ravenscar-thread.c (supply_register_at_address)
6958 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
6959 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
6960 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
6961 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
6962 * remote.c (compare_sections_command): Use gdb_byte.
6963 * score-tdep.c (score7_free_memblock): Change type of parameter to
6965 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
6966 gdb_byte *. Use gdb_byte.
6967 (sh_push_dummy_call_fpu): Use gdb_byte.
6968 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
6969 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
6970 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
6971 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6972 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
6973 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
6974 (sh64_store_return_value, sh64_register_convert_to_virtual):
6975 Change parameter type to 'gdb_byte *'. Use gdb_byte.
6976 (sh64_pseudo_register_write): Use gdb_byte.
6977 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
6978 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
6980 (irix_current_sos): Use gdb_byte.
6981 * solib-som.c (som_current_sos): Use gdb_byte.
6982 * sparc-ravenscar-thread.c (supply_register_at_address)
6983 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
6984 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
6985 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
6986 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
6988 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
6990 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
6991 * xstormy16-tdep.c (xstormy16_extract_return_value)
6992 (xstormy16_store_return_value): Change parameter type to
6993 'gdb_byte *'. Adjust.
6994 (xstormy16_push_dummy_call): Use gdb_byte.
6995 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
6996 (call0_analyze_prologue, execute_code): Use gdb_byte.
7001 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
7006 * dwarf2read.c (struct signatured_type): New member type.
7007 (struct attribute): Replace member signatured_type with signature.
7008 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
7009 (read_call_site_scope): Call follow_die_ref instead of
7010 follow_die_ref_or_sig.
7011 (read_structure_type): Rewrite handling of signatured types.
7012 (read_enumeration_type): Ditto.
7013 (read_attribute_value): Update.
7014 (build_error_marker_type): New function.
7015 (lookup_die_type): Add assert. Rewrite handling of signatured types.
7016 Don't call error for bad types, just build an error marker type.
7017 (dump_die_shallow): Update.
7018 (follow_die_sig_1): Renamed from follow_die_sig.
7019 Don't call error for bad types, instead return NULL.
7020 (follow_die_sig): New function.
7021 (get_signatured_type, get_DW_AT_signature_type): New functions.
7025 * aarch64-tdep.c (aarch64_write_pc): Removed.
7026 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
7031 * top.c (print_gdb_configuration): Print configure-time
7032 parameter on using libbabeltrace or not.
7036 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
7040 * common/glibc_thread_db.h: Update from upstream glibc
7041 (git 568035b7874a099087b77f7bba3e36a1173787b0).
7045 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
7046 * common/glibc_thread_db.h: ... this new file ...
7047 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
7054 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
7055 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
7061 * NEWS: Mention "set foo unlimited".
7065 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
7066 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
7067 (create_dwo_cu_reader): Renamed from
7068 create_dwo_debug_info_hash_table_reader.
7069 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
7070 Remove support for multiple CUs in a DWO file.
7071 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
7073 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
7075 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
7076 (create_dwo_in_dwp): Ditto.
7080 * NEWS: Move recent entries into "since 7.6" section.
7086 * break-catch-throw.c (struct exception_catchpoint)
7087 <exception_rx, pattern>: New fields.
7088 (fetch_probe_arguments, dtor_exception_catchpoint)
7089 (check_status_exception_catchpoint)
7090 (print_one_detail_exception_catchpoint): New functions.
7091 (handle_gnu_v3_exceptions): Add "except_rx" argument.
7092 Compile regular expression if needed.
7093 (extract_exception_regexp): New function.
7094 (catch_exception_command_1): Use extract_exception_regexp.
7095 (compute_exception): Use fetch_probe_arguments.
7096 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
7097 and check_status fields.
7098 * cp-abi.c (cplus_typename_from_type_info): New function.
7099 * cp-abi.h (cplus_typename_from_type_info): Declare.
7100 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
7101 * gdb_regex.h (compile_rx_or_error): Declare.
7102 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
7104 (init_gnuv3_ops): Set get_type_from_type_info field.
7105 * probe.c (compile_rx_or_error): Move...
7106 * utils.c (compile_rx_or_error): ... here.
7112 * break-catch-throw.c (compute_exception): New function.
7113 (exception_funcs): New global.
7114 (_initialize_break_catch_throw): Create $_exception.
7115 * cp-abi.c (cplus_type_from_type_info): New function.
7116 * cp-abi.h (cplus_type_from_type_info): Declare.
7117 (struct cp_abi_ops) <get_type_from_type_info>: New field.
7118 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
7119 (gnuv3_get_type_from_type_info): New functions.
7120 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
7124 * break-catch-throw.c (struct exception_names): New.
7125 (exception_functions): Change type.
7126 (re_set_exception_catchpoint): Look for SDT probes.
7131 * break-catch-throw.c (exception_functions): New global.
7132 (gnu_v3_exception_catchpoint_ops): Move earlier.
7133 (struct exception_catchpoint): New.
7134 (classify_exception_breakpoint): Rewrite.
7135 (re_set_exception_catchpoint): New function.
7136 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
7137 Allocate a struct exception_catchpoint.
7138 (catch_exception_command_1): Update.
7139 (initialize_throw_catchpoint_ops): Set 're_set' method.
7143 * Makefile.in (SFILES): Add break-catch-throw.c
7144 (COMMON_OBS): Add break-catch-throw.o.
7145 * break-catch-throw.c: New file.
7146 * breakpoint.c: Move exception-catching code to new file.
7147 (ep_parse_optional_if_clause): No longer static.
7148 * breakpoint.h (ep_parse_optional_if_clause): Declare.
7154 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
7155 * c-exp.y (TYPEID): New token.
7156 (exp): Add new TYPEID productions.
7157 (ident_tokens): Add "typeid".
7158 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
7159 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
7160 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
7161 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
7162 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
7164 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
7165 (build_std_type_info_type, gnuv3_get_typeid_type)
7166 (gnuv3_get_typeid): New functions.
7167 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
7168 new fields on ABI object.
7169 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
7170 * std-operator.def (OP_TYPEID): New.
7174 * elfread.c (elf_symtab_read): Install versioned symbol under
7175 unversioned name as well.
7180 * c-lang.c (cplus_language_defn): Use gdb_demangle.
7181 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
7182 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
7183 (gdb_demangle): New function.
7184 * cp-support.h (gdb_demangle): Declare.
7185 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
7186 (dwarf2_name): Use gdb_demangle.
7187 * gdbtypes.c (check_stub_method): Use gdb_demangle.
7188 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
7190 (gnuv3_print_method_ptr): Use gdb_demangle.
7191 * jv-lang.c (java_demangle): Use gdb_demangle.
7192 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
7193 * language.c (unk_lang_demangle): Use gdb_demangle.
7194 * symtab.c (symbol_find_demangled_name)
7195 (demangle_for_lookup): Use gdb_demangle.
7201 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
7203 (classify_exception_breakpoint): New function.
7204 (print_it_exception_catchpoint, print_one_exception_catchpoint)
7205 (print_mention_exception_catchpoint)
7206 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
7207 (catch_exception_command_1): Handle "rethrow" catchpoint.
7208 (catch_rethrow_command): New function.
7209 (_initialize_breakpoint): Add "catch rethrow" command.
7213 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
7214 set_gdbarch_write_pc as deprecated anymore.
7218 * spu-tdep.c (spu_write_pc): Add empty line after local variable
7223 * ctf.c (_initialize_ctf): Include "completer.h".
7224 Call add_target_with_completer instead of add_target.
7228 Fix GDB regression related to PR binutils/14813.
7229 * jit.c (mem_bfd_iovec_close): Return 0 for success.
7230 * minidebug.c (lzma_close): Add return value comment.
7231 * remote.c (remote_bfd_iovec_close): Return 0 for success.
7232 * solib-spu.c (spu_bfd_iovec_close): Likewise.
7233 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
7237 * config.in: Regenerate.
7241 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
7243 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
7244 (struct die_reader_specs) <buffer>: Likewise.
7245 (die_reader_func_ftype): Make 'info_ptr' const.
7246 (struct line_header) <include_dirs, statement_program_start,
7247 statement_program_end>: Now const.
7248 (struct file_entry) <name>: Likewise.
7249 (struct partial_die_info) <sibling>: Likewise.
7250 (struct dwarf_block) <data>: Likewise.
7251 (dwarf2_read_section): Remove cast.
7252 (dwarf2_get_section_info): Make 'bufp' const.
7253 (read_index_from_section): Constify.
7254 (dw2_get_file_names_reader): Make 'info_ptr' const.
7255 (dw2_get_primary_filename_reader): Likewise.
7256 (read_comp_unit_head): Make 'info_ptr' and return type const.
7257 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
7259 (read_abbrev_offset): Constify.
7260 (dwarf2_create_include_psymtab): Make 'name' const.
7261 (create_debug_types_hash_table): Update.
7262 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
7263 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
7265 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
7266 (load_partial_comp_unit_reader): Make 'info_ptr' const.
7267 (read_comp_units_from_section): Constify.
7268 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
7269 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
7271 (dwarf2_compute_name, setup_type_unit_groups): Constify.
7272 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
7273 (create_dwp_hash_table, dwarf2_ranges_read)
7274 (dwarf2_record_block_ranges): Constify.
7275 (read_die_and_children, read_die_and_siblings_1)
7276 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
7278 (read_full_die_1, read_full_die): Make 'info_ptr' const.
7279 (abbrev_table_read_table): Constify.
7280 (load_partial_dies): Make 'info_ptr' const.
7281 (read_partial_die, read_attribute_value, read_attribute): Make
7282 'info_ptr' and return type const.
7283 (read_address, read_initial_length)
7284 (read_checked_initial_length_and_offset, read_offset)
7285 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
7287 (read_direct_string): Make 'buf' and return type const.
7288 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
7289 (read_indirect_string): Make return type const.
7290 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
7291 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
7293 (read_str_index): Make return type const.
7294 (add_include_dir): Make 'include_dir' const.
7295 (add_file_name): Make 'name' const.
7296 (dwarf_decode_line_header): Constify.
7297 (psymtab_include_file_name): Make return type const.
7298 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
7299 (dwarf2_start_subfile): Make 'filename' const.
7300 (dwarf2_const_value_attr): Make 'bytes' const.
7301 (read_signatured_type_reader): Make 'info_ptr' const.
7302 (decode_locdesc): Constify.
7303 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
7305 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
7306 'mac_end', and return type const.
7307 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
7308 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
7310 (per_cu_header_read_in): Constify.
7311 * symfile.h (dwarf2_get_section_info): Update.
7315 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
7319 * NEWS: Mention "show configuration", --configuration.
7320 * top.c (print_gdb_configuration): New function, displays the
7321 details about GDB configure-time parameters.
7322 (print_gdb_version): Mention "show configuration".
7323 * cli/cli-cmds.c (show_configuration): New function.
7324 (_initialize_cli_cmds): Add the "show configuration" command.
7325 * main.c (captured_main) <print_configuration>: New static var.
7326 <long_options>: Use it.
7327 If --configuration was given, call print_gdb_configuration.
7332 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
7333 (generated_files): Add gcore.
7334 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
7335 HAVE_NATIVE_GCORE_HOST.
7337 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
7338 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
7339 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
7340 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
7341 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
7342 Add HAVE_NATIVE_GCORE_HOST.
7343 * configure: Regenerate.
7344 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
7345 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
7346 AC_CONFIG_FILES for gcore.
7347 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
7349 * gdb_gcore.sh: Rename to ...
7350 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
7351 and GCORE_TRANSFORM_NAME substitutions.
7353 Fix parsing tabs in ${gdb_target_obs}.
7354 * configure.tgt (gdb_have_gcore): Replace case with for and if.
7358 * remote.c (unpush_and_perror): Add output message final dot.
7362 * tracepoint.c (tfile_interp_line): Fit parameters line and
7367 * solib.c (solib_map_sections): Remove code overwriting
7368 SO->SO_NAME with the bfd's filename.
7372 * cli/cli-decode.c (integer_unlimited_completer): New function.
7373 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
7374 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
7376 * cli/cli-setshow.c: Include "cli/cli-utils.h".
7377 (is_unlimited_literal): New function.
7378 (do_set_command): Handle literal "unlimited" arguments.
7379 * frame.c (_initialize_frame) <set backtrace limit>: Document
7381 * printcmd.c (_initialize_printcmd) <set print
7382 max-symbolic-offset>: Add help text.
7383 * record-full.c (_initialize_record_full) <set record full
7384 insn-number-max>: Likewise.
7385 * record.c (_initialize_record) <set record
7386 instruction-history-size, set record function-call-history-size>:
7388 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
7390 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
7392 * source.c (_initialize_source) <set listsize>: Add help text.
7393 * utils.c (initialize_utils) <set height, set width>: Likewise.
7394 <set pagination>: Mention "set height unlimited".
7395 * valprint.c (_initialize_valprint) <set print elements, set print
7396 repeats>: Document "unlimited".
7400 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
7401 instead of disconnect_tracing.
7402 * infcmd.c (detach_command, disconnect_command): Call
7403 query_if_trace_running. Adjust.
7404 * top.c: Include "tracepoint.h".
7405 (quit_target): Delete. Contents moved ...
7406 (quit_force): ... here. Wrap each stage of teardown in
7407 TRY_CATCH. Call disconnect_tracing before detaching.
7412 * configure.ac: Check libbabeltrace is installed.
7413 * config.in: Regenerate.
7414 * configure: Regenerate.
7415 * Makefile.in (LIBBABELTRACE): New.
7416 (CLIBS): Add LIBBABELTRACE.
7417 * ctf.c: Include "exec.h".
7418 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
7419 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
7420 (ctf_save_metadata_header): Define new type aliases in
7422 (ctf_write_header): Define event type "tsv_def" and "tp_def"
7423 in metadata. Start a new faked packet for trace status.
7424 (ctf_write_status): Write trace status to CTF.
7425 (ctf_write_uploaded_tsv): Write TSV to CTF.
7426 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
7427 (ctf_write_definition_end): End the faked packet.
7429 (ctx, ctf_iter, trace_dirname): New.
7430 (start_pos): New variable.
7431 (ctf_destroy, ctf_open_dir, ctf_open): New.
7432 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
7434 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
7435 (ctf_fetch_registers, ctf_xfer_partial): New.
7436 (ctf_get_trace_state_variable_value): New.
7437 (ctf_get_tpnum_from_frame_event): New.
7438 (ctf_get_traceframe_address): New.
7439 (ctf_trace_find, ctf_has_stack): New.
7440 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
7441 (ctf_get_trace_status, ctf_read_status): New.
7442 (_initialize_ctf): New.
7443 * tracepoint.c (get_tracepoint_number): New
7444 (get_uploaded_tsv): Remove 'static'.
7445 (struct traceframe_info, trace_regblock_size): Move it to ...
7446 * tracepoint.h: ... here.
7447 (get_tracepoint_number): Declare it.
7448 (get_uploaded_tsv): Declare it.
7450 * NEWS: Mention new configure option.
7455 * breakpoint.c (dprintf_re_set): New.
7456 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
7461 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
7462 Remove solib-svr4.o from the list.
7466 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
7467 Use gdb_assert_not_reached instead of invalid boolean expression.
7471 * remote.c (unpush_and_perror): New function.
7472 (readchar, remote_serial_write): Use it.
7476 * NEWS: Mention new btrace RSP packets.
7480 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
7485 * maint.c (print_bfd_section_info): Print the section index.
7486 * symmisc.c (dump_msymbols): Print the section index.
7491 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
7492 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
7493 * breakpoint.c (resolve_sal_pc): Update.
7494 * elfread.c (elf_gnu_ifunc_record_cache): Update.
7495 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
7496 (minsym_lookup_iterator_cb): Use it.
7497 (default_read_var_value): Update.
7498 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
7500 * infcmd.c (jump_command): Update.
7501 * linespec.c (minsym_found): Update.
7502 * maint.c (maintenance_translate_address): Update.
7503 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
7504 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
7505 * parse.c (write_exp_msymbol): Update.
7506 * printcmd.c (address_info): Update.
7507 * psymtab.c (find_pc_sect_psymbol): Update.
7508 (fixup_psymbol_section): Check SYMBOL_SECTION, not
7510 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
7511 Don't initialize SYMBOL_OBJ_SECTION.
7512 * spu-tdep.c (spu_catch_start): Update.
7513 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
7514 * symmisc.c (dump_msymbols, print_symbol): Update.
7515 * symtab.c (fixup_section): Don't set 'obj_section'. Change
7516 how fallback section is computed.
7517 (fixup_symbol_section): Update.
7518 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
7520 (allocate_symbol, initialize_symbol, allocate_template_symbol):
7521 Initialize SYMBOL_SECTION.
7522 * symtab.h (struct general_symbol_info) <section>: Update comment.
7523 <obj_section>: Remove.
7524 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
7525 (SYMBOL_OBJFILE): New macro.
7529 * coffread.c (record_minimal_symbol): Update.
7530 * dbxread.c (record_minimal_symbol): Update.
7531 * elfread.c (record_minimal_symbol): Update.
7532 * machoread.c (macho_symtab_add_minsym): Update.
7533 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
7535 * minsyms.c (prim_record_minimal_symbol): Update.
7536 (prim_record_minimal_symbol_full): Remove 'bfd_section'
7538 (prim_record_minimal_symbol_and_info): Likewise.
7539 * minsyms.h (prim_record_minimal_symbol_full)
7540 (prim_record_minimal_symbol_and_info): Update.
7541 * symtab.c (allocate_symbol, initialize_symbol)
7542 (allocate_template_symbol): Initialize SYMBOL_SECTION.
7543 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
7549 * solib-som.c (som_solib_section_offsets): Use BFD section
7550 indices. Set offsets for all sections.
7551 * somread.c (som_symtab_read): Compute BFD section for
7552 symbol. Use prim_record_minimal_symbol_and_info.
7553 (som_symfile_read): Fix comment.
7554 (struct find_section_offset_arg): New.
7555 (find_section_offset, set_section_index): New functions.
7556 (som_symfile_offsets): Use set_section_index to compute
7561 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
7562 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
7563 gdb_bfd_section_index.
7564 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
7566 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
7568 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
7570 * objfiles.c (add_to_objfile_sections_full): New function.
7571 (add_to_objfile_sections): Use it.
7572 (build_section_table): Rewrite.
7573 (objfile_relocate1): Use gdb_bfd_section_index. Update.
7574 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
7575 (struct objfile) <sections>: Update comment.
7576 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
7578 (ALL_OBJSECTIONS): Use it.
7579 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
7580 * solib-frv.c (frv_relocate_main_executable): Update.
7581 * solib-target.c (solib_target_relocate_section_addresses):
7582 Use gdb_bfd_section_index.
7583 * symfile.c (build_section_addr_info_from_section_table):
7584 Use gdb_bfd_section_index.
7585 (build_section_addr_info_from_bfd, place_section): Likewise.
7586 * symtab.c (fixup_section): Update.
7587 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
7591 * minsyms.h (struct bound_minimal_symbol): New.
7592 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7593 Remove objfile argument.
7594 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7595 Return bound_minimal_symbol.
7596 * minsyms.c (lookup_minimal_symbol_by_pc_1)
7597 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
7598 Return bound_minimal_symbol.
7599 (in_gnu_ifunc_stub): Update.
7600 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
7601 Remove 'objfile_p' argument.
7602 (lookup_solib_trampoline_symbol_by_pc): Update.
7603 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
7604 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
7605 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
7606 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
7607 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
7608 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
7609 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
7610 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
7611 stack.c, symtab.c, tui/tui-disasm.c: Update.
7615 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
7616 Use symbol's obstack, not an objfile.
7617 * coffread.c (process_coff_symbol): Update.
7618 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
7619 * jv-lang.c (add_class_symbol): Update.
7620 * mdebugread.c (new_symbol): Update.
7621 * minsyms.c (prim_record_minimal_symbol_full)
7622 (terminate_minimal_symbol_table): Update.
7623 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
7624 * stabsread.c (define_symbol, read_enum_type): Update.
7625 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
7626 Handle Ada specially.
7627 (symbol_set_language): Add 'obstack' argument.
7628 (symbol_set_names): Update.
7629 (symbol_natural_name, symbol_demangled_name): Always use
7631 * symtab.h (struct general_symbol_info)
7632 <language_specific::obstack>: New field.
7633 <ada_mangled>: New field.
7634 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
7635 (symbol_set_language): Update.
7639 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
7640 Take an obstack, not an objfile.
7641 (symbol_set_names): Update.
7642 * symtab.h (symbol_set_demangled_name): Update.
7646 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
7648 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
7649 (read_func_scope): Call allocate_template_symbol.
7650 (new_symbol_full): Call allocate_symbol.
7651 * jit.c (finalize_symtab): Call allocate_symbol.
7652 * jv-lang.c (add_class_symbol): Call allocate_symbol.
7653 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
7654 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
7655 (common_block_end): Call allocate_symbol.
7656 * symtab.c (allocate_symbol, initialize_symbol)
7657 (allocate_template_symbol): New functions.
7658 * symtab.c (allocate_symbol, initialize_symbol)
7659 (allocate_template_symbol): Declare.
7660 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
7665 * breakpoint.c (create_breakpoint): Rename
7666 "parse_condition_and_thread" parameter to "parse_arg". Update
7667 describing comment. If !PARSE_ARG, then error out if ARG is not
7668 the empty string after extracting the location.
7669 * breakpoint.h (create_breakpoint): Rename
7670 "parse_condition_and_thread" parameter to "parse_arg".
7674 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
7678 * remote.c (remote_trace_find): Change type of parameters 'addr1'
7679 and 'addr2' to CORE_ADDR.
7680 * target.c (update_current_target): Update.
7681 * target.h (struct target_ops) <to_trace_find>: Change parameter
7683 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
7684 'addr2' to CORE_ADDR.
7685 (tfile_trace_find): Likewise.
7686 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
7687 Change local variable 'addr' to type CORE_ADDR.
7688 * tracepoint.h (tfind_1): Update declaration.
7692 * windows-nat.c (windows_get_absolute_argv0): Move from here...
7693 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
7696 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
7698 * main.h (windows_get_absolute_argv0): ...to here.
7702 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
7703 (read_cutu_die_from_dwo): Add comments.
7704 (read_structure_type): Update comment.
7705 (read_enumeration_type, read_namespace_type): Update comment.
7706 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
7710 Convert man pages to texinfo, new gdbinit.5 texinfo page.
7711 * Makefile.in (gdb.z): Remove.
7712 (install-only): Remove $(man1dir) and gdb.1 installation.
7717 Fix compatibility with Linux kernel 3.8.3.
7718 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
7719 to more inner block. Remove parsing of NUMBER from outer block.
7720 Parse NUMBER only if KEYWORD has been identified.
7724 Fix variable name shadowing.
7725 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
7726 filename to mapsfilename and update its uses.
7730 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
7731 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
7732 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
7733 details of the problem.
7738 * breakpoint.c (validate_commands_for_breakpoint): If validating a
7739 tracepoint, reset its STEP_COUNT and call validate_actionline.
7743 * dwarf2read.c (read_die_and_siblings_1): Renamed from
7744 read_die_and_siblings.
7745 (read_die_and_siblings): New function.
7746 (read_cutu_die_from_dwo): Dump die if requested.
7747 (read_die_and_children): Call read_full_die_1 and
7748 read_die_and_siblings_1.
7749 (read_full_die): Dump die if requested.
7751 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
7753 * dwarf2read.c (struct dwo_file): New member comp_dir.
7754 Rename member name to dwo_name. All uses updated.
7755 (hash_dwo_file): Include comp_dir in computation.
7756 (eq_dwo_file): Ditto.
7757 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
7758 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
7760 * psymtab.c (read_psymtabs_with_fullname): Don't call
7761 psymtab_to_fullname if the basenames are different.
7765 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
7766 New entry about "fullname" presence.
7770 * NEWS: Mention x86_64/Cygwin as new native configuration.
7774 * dwarf2read.c (read_structure_type): Fix typo in comment.
7778 * NEWS: Mention "set/show debug aarch64", "set/show debug
7779 coff-pe-read" and "set/show debug mach-o".
7783 * NEWS: Mention "set/show remote trace-buffer-size-packet".
7787 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
7788 gdb_string.h is now in common/.
7792 * NEWS: Move "set debug notification" and "set trace-buffer-size"
7793 under "New options".
7799 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7805 * remote.c (send_interrupt_sequence): Use remote_serial_write.
7806 (remote_serial_write): New function.
7807 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
7811 * NEWS: Mention TILE-Gx in "New native configurations" and
7812 "New targets" sections.
7816 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
7817 (process_enumeration_scope): Simplify.
7819 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
7821 (struct signatured_type): ... to here.
7822 (sig_type_ptr): New typedef.
7823 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
7824 out of union 't'. All uses updated.
7825 (dw2_get_file_names_reader): Assert not called for a type unit.
7826 (dw2_get_file_names): Assert not called for a type unit or type
7828 (build_type_psymtabs_reader): Assert called for a type unit.
7829 (build_type_psymtab_dependencies): Assert called for a type unit group.
7831 * dwarf2read.c (free_dwo_file): Add comment.
7832 (dwarf2_per_objfile_free): Unref dwp bfd.
7836 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
7837 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
7838 (read_pe_exported_syms): Remove unused 'exportix'.
7839 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
7840 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
7841 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
7845 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
7846 (print_it_watchpoint): Remove unused 'bl'.
7847 (say_where): Remove unused 'uiout'.
7848 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
7849 (bkpt_breakpoint_hit): Remove unused 'b'.
7850 (internal_bkpt_print_it): Remove unused 'uiout'.
7851 * buildsym.c (augment_type_symtab): Remove unused 'i'.
7855 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
7856 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
7860 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
7861 Delete arg is_dwp. All callers updated.
7862 (open_dwp_file): New function.
7863 (open_and_init_dwp_file): Call it.
7864 (get_dwp_file): New function.
7865 (lookup_dwo_cutu): Call it.
7867 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
7868 unnecessary, cleanup.
7870 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
7872 * dwarf2read.c (read_cutu_die_from_dwo): New function.
7873 (lookup_dwo_unit): New function.
7874 (init_cutu_and_read_dies): Move DWO handling to new functions.
7876 * dwarf2read.c (struct signatured_type): Tweak comment.
7877 (struct dwo_unit): Tweak comment.
7878 (create_debug_types_hash_table): Tweak comment. Reformat long line.
7879 (create_dwo_debug_info_hash_table): Tweak comment.
7880 (dwarf2_per_cu_offset_and_type): Tweak comment.
7882 * dwarf2read.c (lookup_signatured_type): Remove complaint about
7883 missing .debug_types section.
7887 * corelow.c: Include "completer.h".
7888 (_initialize_corelow): Call add_target_with_completer with
7889 argument 'filename_completer'.
7890 * tracepoint.c: Likewise.
7891 * exec.c (_initialize_exec): Likewise.
7892 * target.c (add_target): Rename to ...
7893 (add_target_with_completer): ... this. Call set_cmd_completer
7894 if parameter completer is not NULL.
7896 * target.h: Include "command.h".
7897 (add_target_with_completer): Declare it.
7901 * coffread.c (is_import_fixup_symbol): New function.
7902 (record_minimal_symbol): Use is_import_fixup_symbol to
7903 detect import fixup symbols, and discard them.
7907 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
7908 types hash table until we know we need it.
7910 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
7913 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
7914 All callers updated.
7915 (dw2_print_stats): Print #read CUs too.
7916 (dump_die_shallow): Print signatured types better.
7918 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
7919 info_or_types_section to section. All uses updated.
7920 (struct dwo_unit): Ditto.
7924 * NEWS (New options): New section.
7925 (New options): Mention set/show remote trace-status-packet.
7926 * remote.c (PACKET_qTStatus): New enumeration value.
7927 (remote_get_trace_status): Skip sending qTStatus if the packet is
7928 disabled. Use packet_ok.
7929 (_initialize_remote): Register a configuration command for
7934 * symfile.c (find_separate_debug_file): Add comment.
7935 (terminate_after_last_dir_separator): Tweak comment.
7937 * dwarf2read.c (create_partial_symtab): Add forward decl.
7938 (create_partial_symtab): Move to be closer to other psymtab functions.
7939 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
7941 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
7942 (compute_symtab_includes): Remove unnecessary forward declaration.
7943 (die_needs_namespace): Add comment marking group of functions for
7944 dwarf2 name computation.
7946 * typeprint.c (_initialize_typeprint): Improve type help text.
7948 * python/python.c (finish_python_initialization): Provide suggestion
7949 for how to tell gdb to find its python files.
7955 * source.c (_initialize_source): Change back "set listsize" to an
7961 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
7965 * top.c (history_size): Rename to ...
7966 (history_size_setshow_var): ... this. Add comment.
7967 (show_commands): Use readline's 'history_length' instead of
7968 computing the history length by calling history_get in a loop.
7969 (set_history_size_command): Error out for sizes over INT_MAX.
7970 Restore previous history size on invalid size.
7971 (init_history): If HISTSIZE is negative, leave the history size as
7973 (init_main): Adjust.
7977 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
7978 coff_pe_read" command to "set debug coff-pe-read".
7982 * record.c (command_size_to_target_size): Fix size comparison.
7983 Change parameter type from pointer to integer to integer.
7988 * windows-nat.c (handle_output_debug_string): Avoid typecast
7989 from integer of different size warning.
7993 * windows-nat.c (handle_output_debug_string): Add empty line
7994 after local block variable definition.
7998 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
7999 (net_open): Make 'polls' local unsigned.
8003 * remote.c (_initialize_remote): Make "set remoteaddresssize"
8004 a zuinteger command instead of uinteger.
8008 * record-full.c (record_full_insn_num): Make it unsigned.
8009 (record_full_check_insn_num, record_full_message)
8010 (record_full_registers_change, record_full_xfer_partial): Remove
8011 record_full_insn_max_num check (it's always != 0).
8012 (record_full_info, record_full_restore): Use %u as format string.
8013 (): Use %u as format string.
8014 (set_record_full_insn_max_num): Remove record_full_insn_max_num
8015 check (it's always != 0).
8019 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
8020 and "set dcache size" commands zuinteger instead of uinteger.
8024 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
8025 command zuinteger instead of uinteger.
8029 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
8030 zuinteger instead of uinteger.
8034 * record.c (record_insn_history_size_setshow_var)
8035 (record_call_history_size_setshow_var): New globals.
8036 (command_size_to_target_size): New function.
8037 (cmd_record_insn_history, cmd_record_call_history): Use
8038 command_size_to_target_size instead of cast.
8039 (validate_history_size, set_record_insn_history_size)
8040 (set_record_call_history_size): New functions.
8041 (_initialize_record): Install set_record_insn_history_size and
8042 set_record_call_history_size as "set" hooks of "set record
8043 instruction-history-size" and "set record
8044 function-call-history-size".
8048 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
8049 use with history_max_entries use. Remove FIXME note.
8053 * record-btrace.c (record_btrace_close): Call
8054 record_btrace_auto_disable.
8058 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
8062 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
8067 * c-exp.y (exp): Add new productions for destructors after '.' and
8069 (write_destructor_name): New function.
8074 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
8075 value_struct_elt, not lookup_struct_elt_type.
8076 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
8077 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
8078 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
8082 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
8083 instead of '_mkdir'.
8087 * windows-nat.c (windows_get_absolute_argv0): New function.
8088 * windows-nat.h: Add its prototype.
8090 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
8091 Use IS_DIR_SEPARATOR instead of looking for a character inside
8092 SLASH_STRING. Include filenames.h.
8093 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
8094 relocate_gdb_directory works when passed gdb_program_name.
8095 Include windows-nat.h.
8099 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
8100 * remote.c (trace_error): Remove the special handling of '2'.
8101 (readchar) <SERIAL_EOF>
8102 (readchar) <SERIAL_ERROR>
8103 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
8104 (remote_get_trace_status): Call throw_exception if EX is
8106 * utils.c (perror_with_name): Rename to ...
8107 (throw_perror_with_name): ... here. New parameter errcode, describe it
8108 in the function comment.
8109 (perror_with_name): New function wrapper.
8110 * utils.h (enum errors): New stub declaration.
8111 (throw_perror_with_name): New declaration.
8117 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
8118 Don't let the user set the value to UINT_MAX directly.
8119 <var_integer>: Don't let the user set the value to INT_MAX
8124 * remote.c (remote_unpush_target): New function.
8125 (remote_open_1): Remove two pop_target calls, update one comment, add
8126 comment to target_preopen call. Replace pop_target call by
8127 remote_unpush_target call.
8128 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
8129 pop_target calls by remote_unpush_target calls.
8133 * linux-nat.c (linux_child_follow_fork): Don't call
8134 linux_enable_event_reporting.
8135 (linux_handle_extended_wait): Don't call
8136 linux_enable_event_reporting.
8140 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
8141 use it to rewrite the trampoline buffers with type gdb_byte[], and
8142 undefine the macro. Remove char* cast.
8146 New commands "mt set per-command {space,time,symtab} {on,off}".
8148 * event-top.c: #include "maint.h".
8149 * main.c: #include "maint.h".
8150 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
8151 timeval-utils.h, maint.h, cli/cli-setshow.h.
8152 (per_command_time, per_command_space): New static globals.
8153 (per_command_symtab): New static global.
8154 (per_command_setlist, per_command_showlist): New static globals.
8155 (struct cmd_stats): Move here from utils.c.
8156 (set_per_command_time): Renamed from set_display_time in utils.c
8157 and moved here. All callers updated.
8158 (set_per_command_space): Renamed from set_display_space in utils.c
8159 and moved here. All callers updated.
8160 (count_symtabs_and_blocks): New function.
8161 (report_command_stats): Moved here from utils.c. Add support for
8162 printing symtab stats. Only print data if enabled before command
8164 (make_command_stats_cleanup): Ditto.
8165 (sert_per_command_cmd, show_per_command_cmd): New functions.
8166 (_initialize_maint_cmds): Add new commands
8167 mt set per-command {space,time,symtab} {on,off}.
8168 * maint.h: New file.
8169 * top.c: #include "maint.h".
8170 * utils.c (reset_prompt_for_continue_wait_time): New function.
8171 (get_prompt_for_continue_wait_time): New function.
8172 * utils.h (reset_prompt_for_continue_wait_time): Declare
8173 (get_prompt_for_continue_wait_time): Declare.
8174 (make_command_stats_cleanup): Moved to maint.h.
8175 (set_display_time, set_display_space): Moved to maint.h and renamed
8176 to set_per_command_time, set_per_command_space.
8177 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
8178 parse_binary_operation and made non-static. Don't call error,
8179 just return an error marker. All callers updated.
8180 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
8184 * symfile.c (alloc_section_addr_info): Update header. Don't set
8185 'num_sections' field.
8186 (build_section_addr_info_from_section_table): Set 'num_sections'.
8187 (build_section_addr_info_from_bfd): Likewise.
8188 (build_section_addr_info_from_objfile): Remove dead loop
8190 (free_section_addr_info): Unconditionally call xfree.
8191 (relative_addr_info_to_section_offsets, addrs_section_sort)
8192 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
8194 (syms_from_objfile_1): Remove dead 'if' condition. Check
8196 (add_symbol_file_command): Set 'num_sections'.
8197 * symfile-mem.c (symbol_file_add_from_memory): Set
8199 * somread.c (som_symfile_offsets): Remove dead loop condition.
8200 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
8201 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
8205 * tracepoint.h (decode_agent_options): Add 'trace_string'
8207 * tracepoint.c (decode_agent_options): Add 'trace_string'
8209 (validate_actionline): Update.
8210 (collect_symbol): Add 'trace_string' argument.
8211 (struct add_local_symbols_data) <trace_string>: New field.
8212 (do_collect_symbol): Update.
8213 (add_local_symbols): Add 'trace_string' argument.
8214 (encode_actions_1): Update.
8215 (trace_dump_actions): Update.
8216 * dwarf2loc.c (access_memory): Update.
8217 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
8218 * ax-general.c (new_agent_expr): Update.
8219 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
8220 (gen_trace_for_return_address): Add argument.
8221 (trace_kludge, trace_string_kludge): Remove.
8222 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
8223 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
8224 (gen_trace_for_var): Add 'trace_string' argument.
8225 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
8226 (gen_printf, agent_eval_command_one): Update.
8231 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
8232 Handle FILENAME token.
8236 * c-exp.y (YYPRINT): Define.
8237 (c_print_token): New function.
8241 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
8245 * ctf.c: Include "gdb_stat.h".
8246 [USE_WIN32API]: New macro 'mkdir'.
8247 (ctf_start): Use permission bits macros if they are defined.
8251 * breakpoint.h (struct breakpoint): Add comment to
8252 extra_string indicating that this member is mallod'd.
8253 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
8259 * cli/cli-setshow.c (do_set_command)
8260 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
8261 the result of parsing the command argument. Throw error if the
8262 value is greater than UINT_MAX. Print the invalid value with
8264 <var_integer, var_zinteger>: Use LONGEST for variable holding the
8265 result of parsing the command argument. Throw error if the value
8266 is greater than INT_MAX, not greater or equal. Also throw error
8267 if the value is less than INT_MIN. Print the invalid value with
8269 <var_zuinteger_unlimited>: Throw error if the value is greater
8270 than INT_MAX, not greater or equal.
8271 (do_show_command) <var_integer, var_zinteger,
8272 var_zuinteger_unlimited>: Use %d for printing int, not %u.
8276 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
8278 * dwarf2read.c (read_func_scope): Remove old FIXME.
8279 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
8281 * findvar.c (symbol_read_needs_frame, default_read_var_value):
8282 Unconditionally call via computed ops, if possible.
8283 * printcmd.c (address_info): Unconditionally call via computed ops,
8285 * stack.c (read_frame_arg): Unconditionally call via computed ops,
8287 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
8288 * tracepoint.c (scope_info): Unconditionally call via computed ops,
8295 * coffread.c (coff_register_index): New global.
8296 (process_coff_symbol, coff_read_enum_type): Set
8297 SYMBOL_ACLASS_INDEX.
8298 (_initialize_coffread): Initialize new global.
8299 * dwarf2loc.c (locexpr_find_frame_base_location)
8300 (dwarf2_block_frame_base_locexpr_funcs)
8301 (loclist_find_frame_base_location)
8302 (dwarf2_block_frame_base_loclist_funcs): New.
8303 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
8304 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
8305 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
8306 (dwarf2_block_frame_base_loclist_funcs): New.
8307 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
8308 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
8310 (read_func_scope): Update.
8311 (fixup_go_packaging, mark_common_block_symbol_computed)
8312 (var_decode_location, new_symbol_full, dwarf2_const_value):
8313 Set SYMBOL_ACLASS_INDEX.
8314 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
8315 (_initialize_dwarf2_read): Initialize new globals.
8316 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
8317 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
8318 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
8320 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
8321 (_initialize_mdebugread): Initialize new globals.
8322 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
8323 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
8324 (stab_register_index, stab_regparm_index): New globals.
8325 (define_symbol, read_enum_type, common_block_end): Set
8326 SYMBOL_ACLASS_INDEX.
8327 (_initialize_stabsread): Initialize new globals.
8328 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
8330 (MAX_SYMBOL_IMPLS): New define.
8331 (register_symbol_computed_impl, register_symbol_block_impl)
8332 (register_symbol_register_impl)
8333 (initialize_ordinary_address_classes): New functions.
8334 (_initialize_symtab): Call initialize_ordinary_address_classes.
8335 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
8336 (struct symbol_impl): New.
8337 (SYMBOL_ACLASS_BITS): New define.
8338 (struct symbol) <aclass, ops>: Remove fields.
8339 <aclass_index>: New field.
8340 (symbol_impls): Declare.
8341 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
8342 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
8343 (register_symbol_computed_impl, register_symbol_block_impl)
8344 (register_symbol_register_impl): Declare.
8345 (struct symbol_computed_ops): Add location_has_loclist.
8346 (struct symbol_block_ops): New.
8347 (SYMBOL_BLOCK_OPS): New.
8348 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
8352 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
8353 (print_partial_symbols, recursively_search_psymtabs): Use
8358 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
8359 addtion, subtraction, multiplication and division binary operator.
8364 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
8365 * bsd-kvm.c (bsd_kvm_close): Likewise.
8366 * bsd-uthread.c (bsd_uthread_close): Likewise.
8367 * corelow.c (core_close): Likewise.
8368 (core_close_cleanup): Remove parameter quitting from a caller.
8369 * event-top.c (async_disconnect): Likewise.
8370 * exec.c (exec_close_1): Remove parameter quitting.
8371 * go32-nat.c (go32_close): Likewise.
8372 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
8373 parameter quitting from a caller.
8374 * mips-linux-nat.c (super_close): Remove parameter quitting from the
8376 (mips_linux_close): Remove parameter quitting. Remove parameter
8377 quitting from a caller.
8378 * monitor.c (monitor_close): Remove parameter quitting.
8379 * monitor.h (monitor_close): Likewise.
8380 * record-btrace.c (record_btrace_close): Likewise.
8381 * record-full.c (record_full_close): Likewise.
8382 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
8383 it also from fprintf_unfiltered.
8384 * remote-mips.c (mips_close): Remove parameter quitting.
8385 (mips_detach): Remove parameter quitting from a caller.
8386 * remote-sim.c (gdbsim_close): Remove parameter quitting.
8387 (gdbsim_close): Remove duplicate function comment. Remove parameter
8388 quitting and remove it also from printf_filtered.
8389 * remote.c (remote_close): Remove parameter quitting.
8390 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
8391 * target.c (update_current_target): Remove parameter int from to_close
8393 (push_target, unpush_target, pop_target): Remove parameter quitting from
8395 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
8396 Remove parameter quitting from a caller.
8397 (target_preopen): Remove parameter quitting from a caller.
8398 (target_close): Remove parameter quitting. Remove parameter quitting
8399 from a caller two times. Remove parameter quitting also from
8401 * target.h (struct target_ops): Remove parameter quitting and as int
8402 from fields to_xclose and to_close.
8403 (extern struct target_ops current_target):
8404 (target_close, pop_all_targets): Remove parameter quitting. Update the
8406 (pop_all_targets_above): Remove parameter quitting.
8407 * top.c (quit_target): Remove parameter quitting from a caller.
8408 * tracepoint.c (tfile_close): Remove parameter quitting.
8409 * windows-nat.c (windows_close): Remove parameter quitting.
8413 * windows-nat.c (handle_output_debug_string): Replace call
8414 to string_to_core_addr with call to strtoull.
8418 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
8419 and write it to CTF metadata.
8423 * windows-nat.c (handle_output_debug_string): Change type of n to
8424 SIZE_T to avoid crash on 64 bit systems.
8428 * python/python-internal.h (HAVE_SNPRINTF)
8429 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
8430 about redefinition of snprintf by pyerrors.h.
8434 * remote-sim.c (sim_command_completer): Make char arguments const.
8439 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
8443 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
8445 (get_file_crc): Move from symfile.c.
8446 (gdb_bfd_crc): New function.
8447 * gdb_bfd.h (gdb_bfd_crc): Declare.
8448 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
8449 * symfile.c (get_file_crc): Move to gdb_bfd.c.
8450 (separate_debug_file_exists): Use gdb_bfd_crc.
8454 * symfile.c (get_debug_link_info): Remove.
8455 (find_separate_debug_file_by_debuglink): Use
8456 bfd_get_debug_link_info.
8460 * symtab.c (error_in_psymtab_expansion): New function.
8461 (lookup_symbol_aux_quick)
8462 (basic_lookup_transparent_type_quick): Remove "last resort"
8463 code. Use error_in_psymtab_expansion.
8468 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
8469 any successful compare_filenames_for_search or FILENAME_CMP.
8470 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
8471 * symtab.c (iterate_over_some_symtabs): Likewise.
8475 * source.c (print_source_lines_base): Make a local copy of
8481 * source.c (print_source_lines_base): Suppress "file" for TUI.
8488 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
8490 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
8495 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
8496 status to tfile if trace is stopped by command 'tstop'.
8500 * tracepoint.c (tfile_write_status): Write trace notes and user
8501 name into tfile if they are not NULL.
8506 * Makefile.in (REMOTE_OBS): Add ctf.o.
8507 (SFILES): Add ctf.c.
8508 (HFILES_NO_SRCDIR): Add ctf.h.
8509 * ctf.c, ctf.h: New files.
8510 * tracepoint.c: Include 'ctf.h'.
8511 (collect_pseudocommand): Remove static.
8512 (trace_save_command): Parse option "-ctf".
8513 Produce different trace file writers per option.
8514 Adjust output message.
8515 (trace_save_tfile, trace_save_ctf): New.
8516 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
8517 * mi/mi-main.c: Include 'ctf.h'.
8518 (mi_cmd_trace_save): Handle option '-ctf'. Call either
8519 trace_save_tfile or trace_save_ctf.
8520 * NEWS: Mention these changes.
8524 * tracepoint.c (trace_file_writer_xfree): New.
8525 (struct tfile_writer_data): New.
8526 (tfile_dtor, tfile_can_target_save, tfile_start): New.
8527 (tfile_write_header, tfile_write_regblock_type): New.
8528 (tfile_write_status, tfile_write_uploaded_tsv): New.
8529 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
8530 (tfile_write_raw_data, (tfile_end): New.
8531 (tfile_write_ops): New global variable.
8532 (TRACE_WRITE_R_BLOCK): New macro.
8533 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
8534 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
8535 (TRACE_WRITE_V_BLOCK): New macro.
8536 (trace_save): Add extra one parameter WRITER. Make it static.
8537 Use WRITER to writer trace.
8538 (tfile_trace_file_writer_new): New.
8539 (trace_save_command): Caller update.
8540 (trace_save_tfile): Write trace data in TFILE format.
8541 * tracepoint.h (struct trace_frame_write_ops): New.
8542 (struct trace_file_write_ops): New.
8543 (struct trace_file_writer): New.
8544 (trace_save): Remove its declaration.
8545 (trace_save_tfile): Declare it.
8546 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
8547 instead of trace_save.
8551 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
8555 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
8557 * demangle.c (current_demangling_style_string): Make it const.
8558 (set_demangling_command): Assert the demangling style is known.
8559 Remove all handling of unknown styles. Set
8560 'current_demangling_style_string' to an element of the
8561 demangling_style_names array.
8562 (set_demangling_style): Delete.
8563 (_initialize_demangler): Set current_demangling_style_string to the
8564 element of the demangling_style_names array that corresponds to
8565 the default demangling style. Remove FIXME note. Don't call
8566 set_demangling_style.
8567 * gdb-demangle.h (set_demangling_style): Remove declaration.
8571 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
8573 (ada_make_symbol_completion_list): Make "text0" parameter const.
8574 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
8575 * breakpoint.c (condition_completer): Make "text" and "word"
8576 parameters const. Adjust.
8577 (check_tracepoint_command): Adjust to validate_actionline
8579 (catch_syscall_completer): Make "text" and "word" parameters
8581 * cli/cli-cmds.c (show_user): Make "comname" local const.
8582 (valid_command_p): Make "command" parameter const.
8583 (alias_command): Make "alias_prefix" and "command_prefix" locals
8585 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
8586 (add_alias_cmd): Make "name" and "oldname" parameters const.
8587 Adjust. No longer make copy of OLDNAME.
8588 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
8589 (add_setshow_cmd_full, add_setshow_enum_cmd)
8590 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8591 (add_setshow_filename_cmd, add_setshow_string_cmd)
8592 (add_setshow_string_noescape_cmd)
8593 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8594 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8595 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
8596 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
8597 Make "name" parameter const.
8598 (help_cmd): Rename "command" parameter to "arg". New const local
8600 (find_cmd): Make "command" parameter const.
8601 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
8602 deprecated_cmd_warning prototype change.
8603 (undef_cmd_error): Make "cmdtype" parameter const.
8604 (lookup_cmd): Make "line" parameter const.
8605 (deprecated_cmd_warning): Change type of "text" parameter to
8606 pointer to const char, from pointer to pointer to char. Adjust.
8607 (lookup_cmd_composition): Make "text" parameter const.
8608 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
8610 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
8612 * cli/cli-script.c (validate_comname): Make "tem" local const.
8613 (define_command): New const local "tem_c". Use it in calls to
8615 (document_command): Make "tem" and "comfull" locals const.
8616 (show_user_1): Make "prefix" and "name" parameters const.
8617 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
8619 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
8620 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
8621 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
8622 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
8623 (complete_on_enum, add_setshow_enum_cmd)
8624 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
8625 (add_setshow_filename_cmd, add_setshow_string_cmd)
8626 (add_setshow_string_noescape_cmd)
8627 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
8628 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
8629 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
8630 Change prototypes, constifying strings.
8631 * completer.c (noop_completer, filename_completer): Make "text"
8632 and "prefix" parameters const.
8633 (location_completer, expression_completer)
8634 (complete_line_internal): Make "text" and "prefix" parameters
8636 (command_completer, signal_completer): Make "text" and "prefix"
8638 * completer.h (noop_completer, filename_completer)
8639 (expression_completer, location_completer, command_completer)
8640 (signal_completer): Change prototypes.
8641 * corefile.c (complete_set_gnutarget): Make "text" and "word"
8643 * cp-abi.c (cp_abi_completer): Likewise.
8644 * expression.h (parse_expression_for_completion): Change
8646 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
8648 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
8649 * infrun.c (handle_completer): Make "text" and "word" parameters
8651 * interps.c (interpreter_completer): Make "text" and "word"
8653 * language.h (struct language_defn)
8654 <la_make_symbol_completion_list>: Make "text" and "word"
8656 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
8657 (parse_exp_in_context): Rename to ...
8658 (parse_exp_in_context_1): ... this.
8659 (parse_exp_in_context): Reimplement, with const hack from
8661 (parse_expression_for_completion): Make "string" parameter const.
8662 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
8663 to pointer to const char. Adjust.
8664 (print_command_1): Make "exp" parameter const.
8665 (output_command): Rename to ...
8666 (output_command_const): ... this. Make "exp" parameter const.
8667 (output_command): Reimplement.
8668 (x_command): Adjust.
8669 (display_command): Rename "exp" parameter to "arg". New "exp"
8670 local, const version of "arg".
8671 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
8672 "cmd_name" local const.
8673 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
8675 (cmdpy_completer): Make "text" and "word" parameters const.
8676 (gdbpy_parse_command_name): Make "prefix_text2" local const.
8677 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
8679 * remote.c (_initialize_remote): Make "cmd_name" local const.
8680 * symtab.c (language_search_unquoted_string): Make "text" and "p"
8681 parameters const. Adjust.
8682 (completion_list_add_fields): Make "sym_text", "text" and "word"
8684 (struct add_name_data) <sym_text, text, word>: Make fields const.
8685 (default_make_symbol_completion_list_break_on): Make "text" and
8686 "word" parameters const. Adjust locals.
8687 (default_make_symbol_completion_list)
8688 (make_symbol_completion_list, make_symbol_completion_type)
8689 (make_symbol_completion_list_fn): Make "text" and "word"
8691 (make_file_symbol_completion_list): Make "text", "word" and
8692 "srcfile" parameters const. Adjust locals.
8693 (add_filename_to_list): Make "text" and "word" parameters const.
8694 (struct add_partial_filename_data) <text, word>: Make fields
8696 (make_source_files_completion_list): Make "text" and "word"
8698 * symtab.h (default_make_symbol_completion_list_break_on)
8699 (default_make_symbol_completion_list, make_symbol_completion_list)
8700 (make_symbol_completion_type enum type_code)
8701 (make_symbol_completion_list_fn make_file_symbol_completion_list)
8702 (make_source_files_completion_list): Change prototype.
8703 * top.c (execute_command): Adjust to pass pointer to pointer to
8704 const char to lookup_cmd, and to deprecated_cmd_warning prototype
8706 (set_verbose): Make "cmdname" local const.
8707 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
8709 (validate_actionline): Make "line" parameter a pointer to const
8711 (encode_actions_1): Make "action_exp" local const, and adjust.
8712 (encode_actions): Adjust.
8713 (replace_comma): Delete.
8714 (trace_dump_actions): Make "action_exp" and "next_comma" locals
8715 const, and adjust. Don't frob the action string while splitting
8716 it at commas. Instead, make a copy of each split substring in
8718 (trace_dump_command): Adjust to validate_actionline prototype
8720 * tracepoint.h (decode_agent_options, decode_agent_options)
8721 (encode_actions, validate_actionline): Change prototypes.
8722 * valprint.h (output_command): Delete declaration.
8723 (output_command_const): Declare.
8724 * value.c (function_destroyer): Cast const away in xfree call.
8728 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
8729 rather than casting 'const char * const *' to 'const char **'.
8730 * ada-lex.l (processInt): Make "trailer" local const. Remove
8731 'const char **' cast.
8732 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
8733 locals, and use those as strtol output pointer, instead than doing
8734 invalid casts to from 'const char **' to 'char **'.
8735 (_initialize_demangle): Remove cast.
8736 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
8737 locals, and use those as strtol output pointer, instead than doing
8738 invalid casts to from 'const char **' to 'char **'.
8739 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
8741 * stap-probe.c (stap_parse_register_operand)
8742 (stap_parse_single_operand): Likewise.
8746 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
8747 the last matched 'V' blcok in trace frame.
8751 * NEWS: Create a new section for the next release branch.
8752 Rename the section of the current branch, now that it has
8757 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
8758 * version.in: Bump version to 7.6.50.20130312-cvs.
8762 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
8763 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
8764 Remove temporary copy of input string.
8765 (mi_execute_command_wrapper): Make "cmd" const.
8766 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
8767 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
8769 (mi_parse): Make "cmd" const.
8771 * mi/mi-parse.h (mi_parse): Make "cmd" const.
8775 * ada-lang.c (ada_read_renaming_var_value): Pass const
8776 pointer to expression string to parse_exp_1.
8777 (create_excep_cond_exprs): Likewise.
8778 * ax-gdb.c (agent_eval_command_one): Likewise.
8779 (maint_agent_printf_command): Likewise.
8780 Constify much of the string handling/parsing.
8781 * breakpoint.c (set_breakpoint_condition): Pass const
8782 pointer to expression string to parse_exp_1.
8783 (update_watchpoint): Likewise.
8784 (parse_cmd_to_aexpr): Constify string handling.
8785 Pass const pointer to parse_exp_1.
8786 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
8787 (find_condition_and_thread): Likewise.
8789 (watch_command_1): Make "arg" const.
8790 Constify string handling.
8791 Copy the expression string instead of changing the input
8793 (update_breakpoint_location): Pass const pointer to
8795 * eval.c (parse_and_eval_address): Make "exp" const.
8796 (parse_to_comma_and_eval): Make "expp" const.
8797 (parse_and_eval): Make "exp" const.
8798 * expression.h (parse_expression): Make argument const.
8799 (parse_exp_1): Make first argument const.
8800 * findcmd.c (parse_find_args): Treat "args" as const.
8801 * linespec.c (parse_linespec): Pass const pointer to
8802 linespec_expression_to_pc.
8803 (linespec_expression_to_pc): Make "exp_ptr" const.
8804 * parse.c (parse_exp_1): Make "stringptr" const.
8805 Make a copy of the expression to pass to parse_exp_in_context until
8806 this whole interface can be constified.
8807 (parse_expression): Make "string" const.
8808 * printcmd.c (ui_printf): Treat "arg" as const.
8809 Handle const strings.
8810 * tracepoint.c (validate_actionline): Pass const pointer to
8811 all calls to parse_exp_1.
8812 (encode_actions_1): Likewise.
8813 * value.h (parse_to_comma_and_eval): Make argument const.
8814 (parse_and_eval_address): Likewise.
8815 (parse_and_eval): Likewise.
8816 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
8817 (varobj_set_value): Likewise.
8818 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
8819 constify string handling.
8820 Pass const pointers to parse_and_eval_address and
8821 parse_to_comman_and_eval.
8822 * cli/cli-utils.c (skip_to_space): Rename to ...
8823 (skip_to_space_const): ... this. Handle const strings.
8824 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
8825 skip_to_space_const.
8826 (skip_to_space_const): Declare.
8827 * common/format.c (parse_format_string): Make "arg" const.
8828 Handle const strings.
8829 * common/format.h (parse_format_string): Make "arg" const.
8830 * gdbserver/ax.c (ax_printf): Make "format" const.
8831 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
8832 of the expression string.
8836 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
8841 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
8842 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
8847 * ada-lex.l (rules): Only recognize 'thread' as a
8848 delimiter when followed by numerals, as for c-exp.y.
8849 Use new rewind_to_char function to rewind the input for
8850 expression-delimiting tokens.
8851 (rewind_to_char): New function.
8856 * configure: Regenerate.
8857 * configure.ac (check dynamic export flag): Link python test with
8863 * linespec.c (find_linespec_symbols): Call find_function_symbols
8864 first, and then call lookup_prefix_sym/find_method.
8868 * charset.c (convert_between_encodings): Don't cast between
8869 different pointer to pointer types. Instead, make the 'inp' local
8870 be of the type iconv expects.
8871 (wchar_iterate): Don't cast between different pointer to pointer
8872 types. Instead, use new pointer local of the type iconv expects.
8873 * target.c (target_read_stralloc, target_fileio_read_stralloc):
8874 Add new local of type char pointer, and use it to get a
8875 char/string view of the byte buffer, instead of casting between
8876 pointer to pointer types.
8880 * remote.c (remote_set_trace_buffer_size): Move != operator
8881 to the start of next line to fix an ARI warning.
8885 * NEWS: Add record changes.
8889 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
8890 the instruction history disassembly.
8891 * disasm.c (dump_insns): Omit the pc prefix, if requested.
8892 * disasm.h (DISASSEMBLY_OMIT_PC): New.
8896 * Makefile.in (SFILES): Add record-btrace.c
8897 (COMMON_OBS): Add record-btrace.o
8898 * record-btrace.c: New.
8899 * objfiles.c: Include btrace.h.
8900 (free_objfile): call btrace_free_objfile.
8904 * target.c (target_call_history, target_call_history_from,
8905 target_call_history_range): New.
8906 * target.h (target_ops) <to_call_history, to_call_history_from,
8907 to_call_history_range>: New fields.
8908 (target_call_history, target_call_history_from,
8909 target_call_history_range): New declaration.
8910 * record.c (get_call_history_modifiers, cmd_record_call_history,
8911 record_call_history_size): New.
8912 (_initialize_record): Add the "record function-call-history" command.
8913 Add "set/show record function-call-history-size" commands.
8914 * record.h (record_print_flag): New.
8918 * target.h (target_ops) <to_insn_history, to_insn_history_from,
8919 to_insn_history_range>: New fields.
8920 (target_insn_history): New.
8921 (target_insn_history_from): New.
8922 (target_insn_history_range): New.
8923 * target.c (target_insn_history): New.
8924 (target_insn_history_from): New.
8925 (target_insn_history_range): New.
8926 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
8927 (record_insn_history_size): New.
8928 (get_insn_number): New.
8929 (get_context_size): New.
8931 (get_insn_history_modifiers): New.
8932 (cmd_record_insn_history): New.
8933 (_initialize_record): Add "set/show record instruction-history-size"
8934 command. Add "record instruction-history" command.
8938 * record.h (record_disconnect): New.
8939 (record_detach): New.
8940 (record_mourn_inferior): New.
8942 * record-full.c (record_disconnect, record_detach,
8943 record_mourn_inferior, record_kill): Move to...
8944 * record.c: ...here.
8947 (record_unpush): New.
8948 (cmd_record_stop): Call record_stop. Replace unpush_target
8949 call with record_unpush call.
8950 (record_disconnect, record_detach): Assert that the target
8951 is of record stratum. Call record_unpush, record_stop, and
8953 (record_mourn_inferior, record_kill): Assert that the target
8954 is of record stratum. Call record_unpush and DEBUG.
8958 * record-full.h, record-full.c (record_memory_query): Rename
8960 (record_full_memory_query): ...this. Update all users.
8961 (record_arch_list_add_reg): Rename to ...
8962 (record_full_arch_list_add_reg): ...this. Update all users.
8963 (record_arch_list_add_mem): Rename to ...
8964 (record_full_arch_list_add_mem): ...this. Update all users.
8965 (record_arch_list_add_end): Rename to ...
8966 (record_full_arch_list_add_end): ...this. Update all users.
8967 (record_gdb_operation_disable_set): Rename to ...
8968 (record_full_gdb_operation_disable_set): ...this.
8973 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
8974 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
8975 (RECORD_IS_REPLAY): Renamed to ...
8976 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
8977 (RECORD_FILE_MAGIC): Renamed to ...
8978 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
8979 (record_mem_entry): Renamed to ...
8980 (record_full_mem_entry): ... this. Updated all users.
8981 (record_reg_entry): Renamed to ...
8982 (record_full_reg_entry): ... this. Updated all users.
8983 (record_end_entry): Renamed to ...
8984 (record_full_end_entry): ... this. Updated all users.
8985 (record_type) <record_end, record_reg, record_mem>: Renamed
8987 (record_full_type) <record_full_end, record_full_reg,
8988 record_full_mem>: ... this. Updated all users.
8989 (record_entry): Renamed to ...
8990 (record_full_entry): ... this. Updated all users.
8991 (record_core_buf_entry): Renamed to ...
8992 (record_full_core_buf_entry): ... this. Updated all users.
8993 (record_core_regbuf): Renamed to ...
8994 (record_full_core_regbuf): ... this. Updated all users.
8995 (record_core_start): Renamed to ...
8996 (record_full_core_start): ... this. Updated all users.
8997 (record_core_end): Renamed to ...
8998 (record_full_core_end): ... this. Updated all users.
8999 (record_core_buf_list): Renamed to ...
9000 (record_full_core_buf_list): ... this. Updated all users.
9001 (record_first): Renamed to ...
9002 (record_full_first): ... this. Updated all users.
9003 (record_list): Renamed to ...
9004 (record_full_list): ... this. Updated all users.
9005 (record_arch_list_head): Renamed to ...
9006 (record_full_arch_list_head): ... this. Updated all users.
9007 (record_arch_list_tail): Renamed to ...
9008 (record_full_arch_list_tail): ... this. Updated all users.
9009 (record_stop_at_limit): Renamed to ...
9010 (record_full_stop_at_limit): ... this. Updated all users.
9011 (record_insn_max_num): Renamed to ...
9012 (record_full_insn_max_num): ... this. Updated all users.
9013 (record_insn_num): Renamed to ...
9014 (record_full_insn_num): ... this. Updated all users.
9015 (record_insn_count): Renamed to ...
9016 (record_full_insn_count): ... this. Updated all users.
9017 (record_ops): Renamed to ...
9018 (record_full_ops): ... this. Updated all users.
9019 (record_core_ops): Renamed to ...
9020 (record_full_core_ops): ... this. Updated all users.
9021 (set_record_cmdlist): Renamed to ...
9022 (set_record_full_cmdlist): ... this. Updated all users.
9023 (show_record_cmdlist): Renamed to ...
9024 (show_record_full_cmdlist): ... this. Updated all users.
9025 (record_cmdlist): Renamed to ...
9026 (record_full_cmdlist): ... this. Updated all users.
9027 (record_beneath_to_resume_ops): Renamed to ...
9028 (record_full_beneath_to_resume_ops): ... this. Updated all users.
9029 (record_beneath_to_resume): Renamed to ...
9030 (record_full_beneath_to_resume): ... this. Updated all users.
9031 (record_beneath_to_wait_ops): Renamed to ...
9032 (record_full_beneath_to_wait_ops): ... this. Updated all users.
9033 (record_beneath_to_wait): Renamed to ...
9034 (record_full_beneath_to_wait): ... this. Updated all users.
9035 (record_beneath_to_store_registers_ops): Renamed to ...
9036 (record_full_beneath_to_store_registers_ops): ... this.
9038 (record_beneath_to_store_registers): Renamed to ...
9039 (record_full_beneath_to_store_registers): ... this.
9041 (record_beneath_to_xfer_partial_ops): Renamed to ...
9042 (record_full_beneath_to_xfer_partial_ops): ... this.
9044 (record_beneath_to_xfer_partial): Renamed to ...
9045 (record_full_beneath_to_xfer_partial): ... this.
9047 (record_beneath_to_insert_breakpoint): Renamed to ...
9048 (record_full_beneath_to_insert_breakpoint): ... this.
9050 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
9051 (record_full_beneath_to_stopped_by_watchpoint): ... this.
9053 (record_beneath_to_stopped_data_address): Renamed to ...
9054 (record_full_beneath_to_stopped_data_address): ... this.
9056 (record_beneath_to_async): Renamed to ...
9057 (record_full_beneath_to_async): ... this. Updated all users.
9058 (record_goto_insn): Renamed to ...
9059 (record_full_goto_insn): ... this. Updated all users.
9060 (record_save): Renamed to ...
9061 (record_full_save): ... this. Updated all users.
9062 (record_reg_alloc): Renamed to ...
9063 (record_full_reg_alloc): ... this. Updated all users.
9064 (record_reg_release): Renamed to ...
9065 (record_full_reg_release): ... this. Updated all users.
9066 (record_mem_alloc): Renamed to ...
9067 (record_full_mem_alloc): ... this. Updated all users.
9068 (record_mem_release): Renamed to ...
9069 (record_full_mem_release): ... this. Updated all users.
9070 (record_end_alloc): Renamed to ...
9071 (record_full_end_alloc): ... this. Updated all users.
9072 (record_end_release): Renamed to ...
9073 (record_full_end_release): ... this. Updated all users.
9074 (record_entry_release): Renamed to ...
9075 (record_full_entry_release): ... this. Updated all users.
9076 (record_list_release): Renamed to ...
9077 (record_full_list_release): ... this. Updated all users.
9078 (record_list_release_following): Renamed to ...
9079 (record_full_list_release_following): ... this.
9081 (record_list_release_first): Renamed to ...
9082 (record_full_list_release_first): ... this. Updated all users.
9083 (record_arch_list_add): Renamed to ...
9084 (record_full_arch_list_add): ... this. Updated all users.
9085 (record_get_loc): Renamed to ...
9086 (record_full_get_loc): ... this. Updated all users.
9087 (record_check_insn_num): Renamed to ...
9088 (record_full_check_insn_num): ... this. Updated all users.
9089 (record_arch_list_cleanups): Renamed to ...
9090 (record_full_arch_list_cleanups): ... this. Updated all users.
9091 (record_message): Renamed to ...
9092 (record_full_message): ... this. Updated all users.
9093 (record_message_wrapper): Renamed to ...
9094 (record_full_message_wrapper): ... this. Updated all users.
9095 (record_message_wrapper_safe): Renamed to ...
9096 (record_full_message_wrapper_safe): ... this. Updated all users.
9097 (record_gdb_operation_disable): Renamed to ...
9098 (record_full_gdb_operation_disable): ... this. Updated all users.
9099 (record_hw_watchpoint): Renamed to ...
9100 (record_full_hw_watchpoint): ... this. Updated all users.
9101 (record_exec_insn): Renamed to ...
9102 (record_full_exec_insn): ... this. Updated all users.
9103 (record_restore): Renamed to ...
9104 (record_full_restore): ... this. Updated all users.
9105 (record_async_inferior_event_token): Renamed to ...
9106 (record_full_async_inferior_event_token): ... this.
9108 (record_async_inferior_event_handler): Renamed to ...
9109 (record_full_async_inferior_event_handler): ... this.
9111 (record_core_open_1): Renamed to ...
9112 (record_full_core_open_1): ... this. Updated all users.
9113 (record_open_1): Renamed to ...
9114 (record_full_open_1): ... this. Updated all users.
9115 (record_open): Renamed to ...
9116 (record_full_open): ... this. Updated all users.
9117 (record_close): Renamed to ...
9118 (record_full_close): ... this. Updated all users.
9119 (record_resume_step): Renamed to ...
9120 (record_full_resume_step): ... this. Updated all users.
9121 (record_resumed): Renamed to ...
9122 (record_full_resumed): ... this. Updated all users.
9123 (record_execution_dir): Renamed to ...
9124 (record_full_execution_dir): ... this. Updated all users.
9125 (record_resume): Renamed to ...
9126 (record_full_resume): ... this. Updated all users.
9127 (record_get_sig): Renamed to ...
9128 (record_full_get_sig): ... this. Updated all users.
9129 (record_sig_handler): Renamed to ...
9130 (record_full_sig_handler): ... this. Updated all users.
9131 (record_wait_cleanups): Renamed to ...
9132 (record_full_wait_cleanups): ... this. Updated all users.
9133 (record_wait_1): Renamed to ...
9134 (record_full_wait_1): ... this. Updated all users.
9135 (record_wait): Renamed to ...
9136 (record_full_wait): ... this. Updated all users.
9137 (record_stopped_by_watchpoint): Renamed to ...
9138 (record_full_stopped_by_watchpoint): ... this. Updated all users.
9139 (record_disconnect): Renamed to ...
9140 (record_full_disconnect): ... this. Updated all users.
9141 (record_detach): Renamed to ...
9142 (record_full_detach): ... this. Updated all users.
9143 (record_mourn_inferior): Renamed to ...
9144 (record_full_mourn_inferior): ... this. Updated all users.
9145 (record_kill): Renamed to ...
9146 (record_full_kill): ... this. Updated all users.
9147 (record_stopped_data_address): Renamed to ...
9148 (record_full_stopped_data_address): ... this. Updated all users.
9149 (record_registers_change): Renamed to ...
9150 (record_full_registers_change): ... this. Updated all users.
9151 (record_store_registers): Renamed to ...
9152 (record_full_store_registers): ... this. Updated all users.
9153 (record_xfer_partial): Renamed to ...
9154 (record_full_xfer_partial): ... this. Updated all users.
9155 (record_breakpoint): Renamed to ...
9156 (record_full_breakpoint): ... this. Updated all users.
9157 (record_breakpoint_p): Renamed to ...
9158 (record_full_breakpoint_p): ... this. Updated all users.
9159 (record_breakpoints): Renamed to ...
9160 (record_full_breakpoints): ... this. Updated all users.
9161 (record_sync_record_breakpoints): Renamed to ...
9162 (record_full_sync_record_breakpoints): ... this.
9164 (record_init_record_breakpoints): Renamed to ...
9165 (record_full_init_record_breakpoints): ... this.
9167 (record_insert_breakpoint): Renamed to ...
9168 (record_full_insert_breakpoint): ... this. Updated all users.
9169 (record_remove_breakpoint): Renamed to ...
9170 (record_full_remove_breakpoint): ... this. Updated all users.
9171 (record_can_execute_reverse): Renamed to ...
9172 (record_full_can_execute_reverse): ... this. Updated all users.
9173 (record_get_bookmark): Renamed to ...
9174 (record_full_get_bookmark): ... this. Updated all users.
9175 (record_goto_bookmark): Renamed to ...
9176 (record_full_goto_bookmark): ... this. Updated all users.
9177 (record_async): Renamed to ...
9178 (record_full_async): ... this. Updated all users.
9179 (record_can_async_p): Renamed to ...
9180 (record_full_can_async_p): ... this. Updated all users.
9181 (record_is_async_p): Renamed to ...
9182 (record_full_is_async_p): ... this. Updated all users.
9183 (record_execution_direction): Renamed to ...
9184 (record_full_execution_direction): ... this. Updated all users.
9185 (record_info): Renamed to ...
9186 (record_full_info): ... this. Updated all users.
9187 (record_delete): Renamed to ...
9188 (record_full_delete): ... this. Updated all users.
9189 (record_is_replaying): Renamed to ...
9190 (record_full_is_replaying): ... this. Updated all users.
9191 (record_goto_entry): Renamed to ...
9192 (record_full_goto_entry): ... this. Updated all users.
9193 (record_goto_begin): Renamed to ...
9194 (record_full_goto_begin): ... this. Updated all users.
9195 (record_goto_end): Renamed to ...
9196 (record_full_goto_end): ... this. Updated all users.
9197 (record_goto): Renamed to ...
9198 (record_full_goto): ... this. Updated all users.
9199 (init_record_ops): Renamed to ...
9200 (init_record_full_ops): ... this. Updated all users.
9201 (record_core_resume): Renamed to ...
9202 (record_full_core_resume): ... this. Updated all users.
9203 (record_core_kill): Renamed to ...
9204 (record_full_core_kill): ... this. Updated all users.
9205 (record_core_fetch_registers): Renamed to ...
9206 (record_full_core_fetch_registers): ... this. Updated all users.
9207 (record_core_prepare_to_store): Renamed to ...
9208 (record_full_core_prepare_to_store): ... this. Updated all users.
9209 (record_core_store_registers): Renamed to ...
9210 (record_full_core_store_registers): ... this. Updated all users.
9211 (record_core_xfer_partial): Renamed to ...
9212 (record_full_core_xfer_partial): ... this. Updated all users.
9213 (record_core_insert_breakpoint): Renamed to ...
9214 (record_full_core_insert_breakpoint): ... this. Updated all users.
9215 (record_core_remove_breakpoint): Renamed to ...
9216 (record_full_core_remove_breakpoint): ... this. Updated all users.
9217 (record_core_has_execution): Renamed to ...
9218 (record_full_core_has_execution): ... this. Updated all users.
9219 (init_record_core_ops): Renamed to ...
9220 (init_record_full_core_ops): ... this. Updated all users.
9221 (cmd_record_restore): Renamed to ...
9222 (cmd_record_full_restore): ... this. Updated all users.
9223 (record_save_cleanups): Renamed to ...
9224 (record_full_save_cleanups): ... this. Updated all users.
9225 (cmd_record_start): Renamed to ...
9226 (cmd_record_full_start): ... this. Updated all users.
9227 (set_record_insn_max_num): Renamed to ...
9228 (set_record_full_insn_max_num): ... this. Updated all users.
9229 (set_record_command): Renamed to ...
9230 (set_record_full_command): ... this. Updated all users.
9231 (show_record_command): Renamed to ...
9232 (show_record_full_command): ... this. Updated all users.
9233 (_initialize_record): Renamed to ...
9234 (_initialize_record_full): ... this. Updated all users.
9238 * record.h: Split into this and ...
9239 * record-full.h: ... this.
9240 * record.c: Split into this and ...
9241 * record-full.c: ... this.
9242 * target.h (target_ops): Add new fields to_info_record,
9243 to_save_record, to_delete_record, to_record_is_replaying,
9244 to_goto_record_begin, to_goto_record_end, to_goto_record.
9245 (target_info_record): New.
9246 (target_save_record): New.
9247 (target_supports_delete_record): New.
9248 (target_delete_record): New.
9249 (target_record_is_replaying): New.
9250 (target_goto_record_begin): New.
9251 (target_goto_record_end): New.
9252 (target_goto_record): New.
9253 * target.c (target_info_record): New.
9254 (target_save_record): New.
9255 (target_supports_delete_record): New.
9256 (target_delete_record): New.
9257 (target_record_is_replaying): New.
9258 (target_goto_record_begin): New.
9259 (target_goto_record_end): New.
9260 (target_goto_record): New.
9261 * record.h: Declare struct cmd_list_element.
9262 (record_cmdlist): New declaration.
9263 (set_record_cmdlist): New declaration.
9264 (show_record_cmdlist): New declaration.
9265 (info_record_cmdlist): New declaration.
9266 (cmd_record_goto): New declaration.
9267 * record.c: Remove unnecessary includes.
9269 (cmd_record_goto): Remove declaration.
9270 (record_cmdlist): Now extern. Initialize.
9271 (set_record_cmdlist): Now extern. Initialize.
9272 (show_record_cmdlist): Now extern. Initialize.
9273 (info_record_cmdlist): Now extern. Initialize.
9274 (find_record_target): New.
9275 (require_record_target): New.
9276 (cmd_record_start): Update.
9277 (cmd_record_delete): Remove target-specific code.
9278 Call target_delete_record.
9279 (cmd_record_stop): Unpush any record target.
9280 (set_record_insn_max_num): Move to record-full.c
9281 (set_record_command): Add comment.
9282 (show_record_command): Add comment.
9283 (info_record_command): Update comment.
9284 Remove target-specific code.
9285 Call the record target's to_info_record.
9286 (cmd_record_start): New.
9287 (cmd_record_goto): Now extern.
9288 Remove target-specific code.
9289 Call target_goto_begin, target_goto_end, or target_goto.
9290 (_initialize_record): Move record target ops initialization to
9292 Change "record" command help text.
9293 Move "record restore", "record set", and "record show" commands to
9295 * Makefile.in (SFILES): Add record-full.c.
9296 (HFILES_NO_SRCDIR): Add record-full.h.
9297 (COMMON_OBS): Add record-full.o.
9298 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
9299 * arm-tdep.c: Include record-full.h.
9300 * i386-linux-tdep.c: Include record-full.h instead of record.h.
9301 * i386-tdep.c: Include record-full.h.
9302 * infrun.c: Include record-full.h.
9303 * linux-record.c: Include record-full.h.
9304 * moxie-tdep.c: Include record-full.h.
9305 * record-full.c: Include record-full.h.
9306 Change module comment.
9307 (set_record_full_cmdlist): New.
9308 (show_record_full_cmdlist): New.
9309 (record_full_cmdlist): New.
9310 (record_goto_insn): New declaration.
9311 (record_save): New declaration.
9312 (record_check_insn_num): Change query string.
9314 (record_delete): New.
9315 (record_is_replaying): New.
9316 (record_goto_entry): New.
9317 (record_goto_begin): New.
9318 (record_goto_end): New.
9320 (init_record_ops): Update.
9321 (init_record_core_ops): Update.
9322 (cmd_record_save): Rename to record_save. Remove target and arg checks.
9323 (cmd_record_start): New.
9324 (set_record_insn_max_num): Moved from record.c
9325 (set_record_full_command): New.
9326 (show_record_full_command): New.
9327 (_initialize_record_full): New.
9331 * target.h (add_deprecated_target_alias): New.
9332 * target.c (add_deprecated_target_alias): New.
9336 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
9338 (linux_supports_btrace): Add kernel and
9340 (kernel_supports_btrace): New function.
9341 (cpu_supports_btrace): New function.
9342 (intel_supports_btrace): New function.
9346 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
9347 * remote.c: Include btrace.h.
9348 (struct btrace_target_info): New struct.
9349 (remote_supports_btrace): New function.
9350 (send_Qbtrace): New function.
9351 (remote_enable_btrace): New function.
9352 (remote_disable_btrace): New function.
9353 (remote_teardown_btrace): New function.
9354 (remote_read_btrace): New function.
9355 (init_remote_ops): Add btrace ops.
9356 (enum <unnamed>): Add btrace packets.
9357 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
9358 (_initialize_remote): Add packet configuration for branch tracing.
9362 * features/btrace.dtd: New file.
9363 * Makefile.in (XMLFILES): Add btrace.dtd.
9364 * btrace.h (parse_xml_btrace): New declaration.
9365 * btrace.c: Include xml-support.h.
9366 (parse_xml_btrace): New function.
9367 (parse_xml_btrace_block): New function.
9368 (block_attributes): New struct.
9369 (btrace_attributes): New struct.
9370 (btrace_children): New struct.
9371 (btrace_elements): New struct.
9375 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
9376 (amd64_linux_enable_btrace): New.
9377 (amd64_linux_disable_btrace): New.
9378 (amd64_linux_teardown_btrace): New.
9379 (_initialize_amd64_linux_nat): Initialize btrace ops.
9380 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
9381 (i386_linux_enable_btrace): New.
9382 (i386_linux_disable_btrace): New.
9383 (i386_linux_teardown_btrace): New.
9384 (_initialize_i386_linux_nat): Initialize btrace ops.
9385 * config/i386/linux.mh: Add linux-btrace.o.
9386 * config/i386/linux64.mh: Add linux-btrace.o.
9390 * common/linux_btrace.h: New file.
9391 * common/linux_btrace.c: New file.
9392 * Makefile.in (SFILES): Add btrace.c.
9393 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
9394 (COMMON_OBS): Add btrace.o.
9395 (linux-btrace.o): New rule.
9399 * target.h: Include btrace.h.
9400 (struct target_ops) <to_supports_btrace, to_enable_btrace,
9401 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
9402 * target.c (target_supports_btrace): New function.
9403 (target_enable_btrace): New function.
9404 (target_disable_btrace): New function.
9405 (target_teardown_btrace): New function.
9406 (target_read_btrace): New function.
9407 * btrace.h: New file.
9408 * btrace.c: New file.
9409 * Makefile.in: Add btrace.c.
9410 * gdbthread.h: Include btrace.h.
9411 (struct thread_info): Add btrace field.
9412 * thread.c: Include btrace.h.
9413 (clear_thread_inferior_resources): Call target_teardown_btrace.
9414 * common/btrace-common.h: New file.
9418 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
9419 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
9420 kill_status to outer block.
9424 Fix entry-values if the callee called a noreturn function.
9425 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
9426 get_frame_address_in_block. Add new comment.
9430 Fix entry-values in C++ across CUs.
9431 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
9432 lookup_minimal_symbol. Add a comment.
9434 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
9439 * tracepoint.c (_initialize_tracepoint): Indent the code.
9443 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
9444 (parse_find_args, find_command): Change type of pattern buffer
9445 locals to 'gdb_byte *'.
9450 * NEWS: Mention set and show trace-buffer-size commands.
9452 * target.h (struct target_ops): New method
9453 to_set_trace_buffer_size.
9454 (target_set_trace_buffer_size): New macro.
9455 * target.c (update_current_target): Set up new method.
9456 * tracepoint.c (trace_buffer_size): New global.
9457 (start_tracing): Send it to the target.
9458 (set_trace_buffer_size): New function.
9459 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
9460 * remote.c (remote_set_trace_buffer_size): New function.
9461 (_initialize_remote): Use it.
9462 (QTBuffer:size) New remote command.
9463 (PACKET_QTBuffer_size): New enum.
9464 (remote_protocol_features): Add an entry for
9465 PACKET_QTBuffer_size.
9469 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
9474 * target.c (target_read_stralloc, target_fileio_read_alloc):
9475 *Cast pointer to 'gdb_byte *' in target call.
9479 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
9484 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
9485 (trace_pass_command): Likewise.
9486 * cli/cli-cmds.c: Include cli/cli-utils.h.
9487 (source_command): Use skip-spaces.
9488 (disassemble_command): Likewise.
9489 * findcmd.c: Include cli/cli-utils.h.
9490 (parse_find_args): Use skip_spaces.
9491 * go32-nat.c: Include cli/cli-utils.h.
9492 (go32_sldt): Use skip_spaces.
9493 (go32_sgdt): Likewise.
9494 (go32_sidt): Likewise.
9495 (go32_pde): Likewise.
9496 (go32_pte): Likewise.
9497 (go32_pte_for_address): Likewise.
9498 * infcmd.c: Include cli/cli-utils.h.
9499 (registers_info): Use skip_spaces.
9500 * linux-tdep.c (read_mapping): Use skip_spaces_const.
9501 (linux_info_proc): Likewise.
9502 * linux-thread-db.c: Include cli/cli-utils.h.
9503 (info_auto_load_libthread_db): Use skip_spaces_const.
9504 * m32r-rom.c: Include cli/cli-utils.h.
9505 (m32r_upload_command): Use skip_spaces.
9506 * maint.c: Include cli/cli-utils.h.
9507 (maintenance_translate_address): Use skip_spaces.
9508 * mi/mi-parse.c: Include cli/cli-utils.h.
9509 (mi_parse_argv): Use skip_spaces.
9510 (mi_parse): Likewise.
9511 * minsyms.c: Include cli/cli-utils.h.
9512 (msymbol_hash_iw): Use skip_spaces_const.
9513 * objc-lang.c: Include cli/cli-utils.h.
9514 (parse_selector): Use skip_spaces.
9515 (parse_method): Likewise.
9516 * python/python.c: Include cli/cli-utils.h.
9517 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
9518 (python_command)[HAVE_PYTHON]: Likewise.
9519 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
9520 * remote-m32r-sdi.c: Include cli/cli-utils.h.
9521 (m32r_load): Use skip_spaces.
9522 * serial.c: Include cli/cli-utils.h.
9523 (serial_open): Use skip_spaces_const.
9524 * stack.c: Include cli/cli-utils.h.
9525 (parse_frame_specification_1): Use skip_spaces_const.
9526 * symfile.c: Include cli/cli-utils.h.
9527 (set_ext_lang_command): Use skip_spaces.
9528 * symtab.c: Include cli/cli-utils.h.
9529 (rbreak_command): Use skip_spaces.
9530 * thread.c (thread_name_command): Use skip_spaces.
9531 * tracepoint.c (validate_actionline): Use skip_spaces.
9532 (encode_actions_1): Likewise.
9533 (trace_find_range_command): Likewise.
9534 (trace_find_outside_command): Likewise.
9535 (trace_dump_actions): Likewise.
9539 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
9540 * expprint.c (print_subexp_standard): Likewise.
9541 * utils.c (host_char_to_target): Likewise.
9542 * valprint.c (generic_emit_char, generic_printstr): Likewise.
9543 * varobj.c (value_get_print_value): Change type of local to char*.
9544 Cast it gdb_byte * in call to language printer.
9548 * charset.c (struct wchar_iterator) <input>: Change type to 'const
9550 (make_wchar_iterator): Remove cast to char*.
9551 (wchar_iterate): Change type of local.
9555 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
9556 for 'regcache->register_status'.
9560 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
9565 * stap-probe.c (handle_stap_probe): Add cast to char*.
9569 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
9570 RECORD_MSGRCV>: Pass a signed variable to
9571 regcache_raw_read_signed, instead of an unsigned one.
9575 * remote-notif.c (notif_debug): Change type to int.
9576 * remote-notif.h (notif_debug): Likewise.
9580 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
9584 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
9585 * remote.h (hex2bin, bin2hex): ... here.
9586 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
9590 * utils.c (initialize_utils): Improve doc strings of "set/show
9591 width", "set/show height", and "set/show pagination".
9595 * ax-gdb.c (gen_printf): Make FORMAT const.
9596 * ax-gdb.h (gen_printf): Likewise.
9597 * ax-general.c (ax_string): Make STR const.
9598 * ax.h (ax_string): Likewise.
9602 * elfread.c (elf_symfile_read): Move debugging printf to more
9607 * python/py-utils.c (target_string_to_unicode): Delete function.
9608 * python/python-internal.h (target_string_to_unicode): Delete
9613 * linespec.c (get_current_search_block): ARI fix, use (void)
9614 for empty parameter list.
9618 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
9619 of old ada_lookup_symbol_list. In !full_search case, don't
9621 (ada_lookup_symbol_list): Delete arg full_search, all callers
9622 updated. Call ada_lookup_symbol_list_worker.
9623 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
9624 * ada-lang.h (ada_lookup_symbol_list): Update.
9625 * language.h (language_defn): Update comment for
9626 la_iterate_over_symbols.
9627 * linespec.c (iterate_over_file_blocks): New function.
9628 (iterate_over_all_matching_symtabs): Call it.
9629 (lookup_prefix_sym): Ditto.
9630 (get_current_search_block): New function.
9631 (get_search_block): Delete.
9632 (find_label_symbols): Call get_current_search_block.
9633 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
9634 * symtab.c (iterate_over_symbols): Don't search superblocks.
9638 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
9639 parameter VAR's type from "unsigned int" to "int".
9640 * command.h (var_zuinteger_unlimited): Update its comments.
9641 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
9645 * NEWS: Mention new target x86_64-*-cygwin*.
9649 * configure.host: Add x86_64-*-cygwin* as host.
9650 * configure.tgt: Add x86_64-*-cygwin* as target.
9651 * config/i386/cygwin64.mh: New file.
9655 * linespec.c (decode_line_2): Fix duplicate request off by two message.
9659 * linespec.c (struct linespec_canonical_name): New.
9660 (struct linespec_state): Change canonical_names type to it.
9661 (add_sal_to_sals): Change variable canonical_name to canonical. Change
9662 xrealloc element size. Initialize the different CANONICAL fields.
9663 (canonical_to_fullform): New.
9664 (filter_results): Use it. Add variables canonical, fullform and
9666 (struct decode_line_2_item, decode_line_2_compare_items): New.
9667 (decode_line_2): Remove variables iter and item_names, add variables
9668 items and items_count. Modify the code for these new variables.
9672 * coff-pe-read.c (read_pe_exported_syms): Don't return without
9677 * tracepoint.c (build_traceframe_info): Add code for byte order.
9681 * v850-tdep.c: (v850e2_register_name): Revise system register
9682 names to match current V850E2M architecture specifications.
9683 Update register number enum comments too.
9688 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
9690 (tilegx_skip_prologue): Limit prologue analysis to section end.
9694 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
9699 Use gdb_byte for bytes from the program being debugged.
9701 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
9702 Change type of local 'buf' to gdb_byte.
9703 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
9704 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
9705 * cris-tdep.c (cris_sigcontext_addr)
9706 (cris_sigtramp_frame_unwind_cache): Likewise.
9707 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
9708 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
9710 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
9711 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
9712 (hppa32_hpux_search_dummy_call_sequence)
9713 (hppa_hpux_supply_save_state): Likewise.
9714 * hppa-linux-tdep.c (insns_match_pattern)
9715 (hppa_linux_find_global_pointer): Likewise.
9716 * hppa-tdep.c (hppa_in_function_epilogue_p)
9717 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
9718 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
9719 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
9720 (i386fbsd_collect_uthread): Likewise.
9721 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
9722 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
9723 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
9724 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
9725 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
9726 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
9727 (ia64_libunwind_frame_prev_register)
9728 (ia64_libunwind_sigtramp_frame_this_id)
9729 (ia64_find_global_pointer_from_dynamic_section)
9730 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
9731 (ia64_unwind_pc): Likewise.
9732 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
9733 * m68hc11-tdep.c (m68hc11_push_dummy_call)
9734 (m68hc11_extract_return_value): Likewise.
9735 * m68klinux-nat.c (fetch_register, store_register): Likewise.
9736 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
9737 (mep_get_insn, mep_push_dummy_call): Likewise.
9738 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
9739 (mips_linux_in_dynsym_stub): Likewise.
9740 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
9741 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
9742 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
9744 * remote-mips.c (mips_set_register): Likewise.
9745 * remote-sim.c (gdbsim_fetch_register): Likewise.
9746 * score-tdep.c (score7_fetch_inst): Change type of parameter
9747 'memblock' and local 'buf' to gdb_byte.
9748 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
9749 Change type of local 'buf' to gdb_byte. Adjust.
9750 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
9752 (score7_analyze_prologue): Change type of 'memblock' and
9753 'memblock_ptr' locals to gdb_byte*.
9754 * sh64-tdep.c (sh64_extract_return_value)
9755 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
9756 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
9757 * solib-pa64.c (pa64_solib_create_inferior_hook)
9758 (pa64_open_symbol_file_object): Remove local 'buf'.
9759 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
9760 (som_open_symbol_file_object): Likewise.
9761 * solib-spu.c (spu_current_sos): Likewise.
9762 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
9763 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
9764 (spu_store_registers): Likewise.
9765 * target.c (debug_print_register): Likewise.
9766 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
9767 * xstormy16-tdep.c (xstormy16_store_return_value)
9768 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
9769 (xstormy16_find_jmp_table_entry): Likewise.
9773 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
9774 (tilegx_gdbarch_init): Install it.
9778 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
9783 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
9784 * python/python.c (gdbpy_find_pc_line): Ditto.
9788 * contrib/excheck.py: New file.
9789 * contrib/exsummary.py: New file.
9790 * contrib/gcc-with-excheck: New file.
9794 * python/python.c (gdbpy_print_stack): Call begin_line and
9795 fprintf_filtered inside TRY_CATCH.
9799 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
9804 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
9805 frame_object_to_frame_info inside TRY_CATCH.
9809 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
9814 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
9818 * windows-nat.c: Throughout, fix format strings and casts of
9819 printf-like functions to avoid type related warnings on all
9821 (handle_output_debug_string): Fetch context information address
9822 from debug string using string_to_core_addr.
9826 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
9827 * regformats/reg-tilegx32.dat: New.
9831 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
9835 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
9840 * tracepoint.c (tfile_trace_find): For tfind
9841 pc/tp/range/outside, look for the next trace frame instead of
9842 always starting from frame 0.
9846 * configure.tgt: Add support for moxie-*-rtems* target.
9850 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
9855 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
9856 if $fp is used as the virtual frame pointer.
9860 * elfread.c (elf_symtab_read): Do not use udata.p here to find
9862 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
9863 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
9864 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
9865 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
9870 * elfread.c (build_id_bfd_get): Make the return type const.
9871 (build_id_verify): Make the check parameter const.
9872 (build_id_to_debug_filename): Make the build_id parameter and variable
9874 (find_separate_debug_file_by_buildid): Make the variable build_id const.
9878 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
9882 Add a new method 'disassemble' to gdb.Architecture class.
9883 * python/py-arch.c (archpy_disassmble): Implementation of the
9884 new method gdb.Architecture.disassemble.
9885 (arch_object_methods): Add entry for the new method.
9889 * MAINTAINERS (Write After Approval): Add myself to the list.
9893 Garbage collect 'struct monitor_ops'::load_routine.
9895 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
9896 * monitor.c (monitor_load): No longer call
9897 current_monitor->load_routine.
9898 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
9899 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
9900 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
9906 Harmonize with generic_load.
9908 * monitor.c: Include "readline/readline.h".
9909 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
9910 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
9911 long/strtol for the 'load_offset' local. Error out if no argument
9912 is given or if too many arguments are given. Tilde expand the
9913 passed in file name.
9918 * symfile.c (load_section_data): Change type of load_offset
9920 (generic_load): User strtoulst instead of strtoul for conversion
9925 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
9926 for return address, "lr" register, saved on stack.
9927 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
9928 after we invoke tilegx_analyze_prologue.
9932 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
9936 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
9940 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
9941 (tilegx_write_pc): New function.
9942 (tilegx_cannot_reference_register): Return zero if REGNO
9943 is TILEGX_FAULTNUM_REGNUM.
9944 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
9945 (tilegx_register_name): Add handling of "faultnum" register.
9946 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
9947 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
9948 handling of TILEGX_FAULTNUM_REGNUM.
9949 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
9953 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
9954 should be aligned to 64bit.
9958 * windows-nat.c (windows_xfer_memory): Fix debug-output
9963 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
9964 Don't check DSP register number if HAVE_DSP is not set.
9968 * elfread.c (struct build_id): Delete. Use struct elf_build_id
9969 throughout file instead.
9970 (build_id_bfd_get): Update to use new elf_tdata build_id field.
9971 Don't xmalloc return value.
9972 (build_id_verify): Similarly. Don't xfree.
9973 (build_id_to_debug_filename): Update.
9974 (find_separate_debug_file_by_buildid): Update, don't xfree.
9979 * dwarf2read.c (read_subrange_type): Use result of
9984 * frame.c: Remove one extra white space after #include
9989 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
9993 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
9994 and dir commands into an if block.
9998 * python/py-breakpoint (struct pybp_code): Use int instead of
10004 * NEWS: Mention new field "trace-file".
10005 * tracepoint.c (trace_status_mi): Output "trace-file" field.
10006 (tfile_open): Record the trace file's filename in the trace
10008 (tfile_files_info): Mention the name of the trace file.
10009 Check the "filename" field explicitely.
10010 (trace_status_command): Explicitely check "filename" field.
10011 (trace_find_command): Ditto.
10012 (trace_find_pc_command): Ditto.
10013 (trace_find_tracepoint_command): Ditto.
10014 (trace_find_line_command): Ditto.
10015 (trace_find_range_command): Ditto.
10016 (trace_find_outside_command): Ditto.
10017 * tracepoint.h (struct trace_status) <from_file>: Rename it
10018 to "filename" and make it hold the trace file's filename
10019 instead of a boolean.
10020 * remote.c (remote_get_trace_status): Initialize "filename"
10021 field with NULL instead of 0.
10025 * remote.c: Fix a typo.
10029 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
10033 * utils.c (savestring): Don't #undef it. Move function to
10034 common/common-utils.c.
10035 * common/common-utils.c: Include gdb_string.h.
10036 (savestring): Move here from utils.c.
10037 * common/common-utils.h (savestring): Declare.
10041 * utils.c (savestring): Rename parameter 'size' to 'len'.
10046 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
10047 (aarch64_inferior_data, struct aarch64_inferior_data):
10049 (struct aarch64_process_info): New.
10050 (aarch64_process_list): New global.
10051 (aarch64_find_process_pid, aarch64_add_process)
10052 (aarch64_process_info_get): New functions.
10053 (aarch64_inferior_data_get): Delete.
10054 (aarch64_process_info_get): New function.
10055 (aarch64_forget_process): New function.
10056 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
10057 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
10058 aarch64_get_debug_reg_state.
10059 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
10060 instead of linux_nat_iterate_watchpoint_lwps.
10061 (aarch64_linux_new_fork): New function.
10062 (aarch64_linux_child_post_startup_inferior): Use
10063 aarch64_forget_process instead of aarch64_init_debug_reg_state.
10064 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
10065 (aarch64_linux_remove_hw_breakpoint)
10066 (aarch64_handle_aligned_watchpoint)
10067 (aarch64_handle_unaligned_watchpoint)
10068 (aarch64_linux_insert_watchpoint)
10069 (aarch64_linux_remove_watchpoint)
10070 (aarch64_linux_stopped_data_address): Adjust to pass the current
10071 process id to aarch64_debug_reg_state.
10072 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
10073 linux_nat_new_fork hook, and aarch64_forget_process as
10074 linux_nat_forget_process hook; remove the call to
10075 register_inferior_data_with_cleanup.
10079 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
10080 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
10086 * tracepoint.h (validate_trace_state_variable_name): Declare.
10087 * tracepoint.c (validate_trace_state_variable_name): New.
10088 (trace_variable_command): Parse the trace state variable's name
10089 without using parse_expression. Do several validations.
10090 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
10091 trace state variable's name with parse_expression. Validate it.
10095 * infcmd.c (breakpoint_proceeded): Remove it.
10099 * tracepoint.c (end_actions_pseudocommand): Make it static.
10100 (while_stepping_pseudocommand): Likewise.
10101 * tracepoint.h (end_actions_pseudocommand): Remove the
10103 (while_stepping_pseudocommand): Likewise.
10107 * cli/cli-decode.c (help_cmd): Remove the declaration of
10109 (help_all): Likewise.
10113 * amd64-linux-nat.c (update_debug_registers_callback):
10115 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10117 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
10118 i386_debug_reg_state.
10119 (amd64_linux_new_fork): New function.
10120 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
10121 linux_nat_new_fork hook, and i386_forget_process as
10122 linux_nat_forget_process hook.
10123 * i386-linux-nat.c (update_debug_registers_callback):
10125 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10127 (i386_linux_prepare_to_resume): Pass the lwp's pid to
10128 i386_debug_reg_state.
10129 (i386_linux_new_fork): New function.
10130 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
10131 linux_nat_new_fork hook, and i386_forget_process as
10132 linux_nat_forget_process hook.
10133 * i386-nat.c (i386_init_dregs): Delete.
10134 (i386_inferior_data, struct i386_inferior_data):
10136 (struct i386_process_info): New.
10137 (i386_process_list): New global.
10138 (i386_find_process_pid, i386_add_process, i386_process_info_get):
10140 (i386_inferior_data_get): Delete.
10141 (i386_process_info_get): New function.
10142 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
10143 (i386_forget_process): New function.
10144 (i386_cleanup_dregs): Rewrite.
10145 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
10146 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
10147 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10148 (i386_remove_hw_breakpoint): Adjust to pass the current process id
10149 to i386_debug_reg_state.
10150 (i386_use_watchpoints): Don't register inferior data.
10151 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
10153 (i386_forget_process): Declare.
10154 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
10155 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
10156 New static globals.
10157 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
10158 (add_initial_lwp): New, factored out from ...
10159 (add_lwp): ... this. Don't check the number of lwps before
10160 calling linux_nat_new_thread.
10161 (linux_nat_iterate_watchpoint_lwps): Delete.
10162 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
10163 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
10165 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
10167 (linux_nat_kill, linux_nat_mourn_inferior): Call
10168 linux_nat_forget_process.
10169 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10170 (linux_nat_forget_process): New functions.
10171 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
10173 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
10174 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
10176 (linux_nat_set_new_fork, linux_nat_set_forget_process)
10177 (linux_nat_forget_process): New declarations.
10179 * amd64fbsd-nat.c (super_mourn_inferior): New global.
10180 (amd64fbsd_mourn_inferior): New function.
10181 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
10182 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
10186 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
10191 * aarch64-linux-nat.c (debug_reg_change_callback)
10192 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
10197 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
10203 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
10208 * c-exp.y (lex_one_token): Initialize other fields of yylval on
10210 (classify_inner_name): Remove 'first_name' argument, add
10211 'context'. Remove unused variable.
10212 (yylex): Explicitly maintain the context type. Exit loop earlier
10213 if NAME result is seen.
10217 * amd64-darwin-tdep.c: Add (C) after Copyright.
10218 * cli/cli-cmds.h: Ditto.
10219 * cli/cli-decode.c: Ditto.
10220 * cli/cli-decode.h: Ditto.
10221 * cli/cli-dump.c: Ditto.
10222 * cli/cli-dump.h: Ditto.
10223 * cli/cli-interp.c: Ditto.
10224 * cli/cli-logging.c: Ditto.
10225 * cli/cli-script.c: Ditto.
10226 * cli/cli-script.h: Ditto.
10227 * cli/cli-setshow.c: Ditto.
10228 * cli/cli-setshow.h: Ditto.
10229 * cli/cli-utils.c: Ditto.
10230 * cli/cli-utils.h: Ditto.
10231 * config/alpha/nm-osf3.h: Ditto.
10232 * config/djgpp/djconfig.sh: Ditto.
10233 * config/i386/nm-fbsd.h: Ditto.
10234 * config/i386/nm-i386gnu.h: Ditto.
10235 * config/nm-linux.h: Ditto.
10236 * config/nm-nto.h: Ditto.
10237 * config/rs6000/nm-rs6000.h: Ditto.
10238 * config/sparc/nm-sol2.h: Ditto.
10239 * darwin-nat-info.c: Ditto.
10242 * gdb-demangle.h: Ditto.
10243 * i386-darwin-nat.c: Ditto.
10244 * i386-darwin-tdep.c: Ditto.
10245 * linux-fork.h: Ditto.
10246 * m32c-tdep.c: Ditto.
10247 * microblaze-linux-tdep.c: Ditto.
10248 * microblaze-rom.c: Ditto.
10249 * microblaze-tdep.c: Ditto.
10250 * microblaze-tdep.h: Ditto.
10251 * mips-linux-tdep.h: Ditto.
10252 * ppc-ravenscar-thread.c: Ditto.
10253 * ppc-ravenscar-thread.h: Ditto.
10254 * prologue-value.c: Ditto.
10255 * prologue-value.h: Ditto.
10256 * ravenscar-thread.c: Ditto.
10257 * ravenscar-thread.h: Ditto.
10258 * sparc-ravenscar-thread.c: Ditto.
10259 * sparc-ravenscar-thread.h: Ditto.
10260 * tilegx-linux-tdep.c: Ditto.
10261 * unwind_stop_reasons.def: Ditto.
10262 * windows-nat.h: Ditto.
10263 * xtensa-linux-tdep.c: Ditto.
10264 * xtensa-xtregs.c: Ditto.
10265 * regformats/regdat.sh: Ditto.
10266 * regformats/regdef.h: Ditto.
10270 * break-catch-sig.c: Update copyright years.
10274 Add support for a destructor for ui_out data and use it to
10275 provide a ui_out destructor.
10276 * ui-out.h: Declare the new ui_out destructor.
10277 (ui_out_impl): Add a field for data destructor in ui_out_impl.
10278 * ui-out.c (default_data_destroy): Add a default data destructor
10279 which does nothing.
10280 (default_ui_out_impl): Set the new data_destroy field to
10281 default_data_destroy
10282 (uo_data_destroy): Local function which invokes the data
10283 destructor if present.
10284 (clear_table): Local function which clears the table data of a
10286 (ui_out_destroy): Public function which frees a ui_out object.
10287 (ui_out_table_end): Use the new clear_table function.
10288 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
10290 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
10295 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
10296 (printf_decfloat): New function. Broken out from ui_printf.
10297 Remove unnecessary code to shift the entire format string down.
10298 (printf_pointer): New function.
10299 (ui_printf): Code to print C strings, wide C strings, decfloats,
10300 and pointers moved to separate functions.
10304 * valops.c (value_assign): Handling bitfield offset in
10305 `lval_internalvar_component' case.
10309 * common/format.c (parse_format_string): Fix whitespace.
10313 * stack.c (return_command): Work around uninitialized variable
10318 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
10319 number of the registers from 36 to 34.
10323 * NEWS: Mention new AArch64 native and target support.
10327 * MAINTAINERS (Write After Approval): Add myself.
10334 * aarch64-linux-nat.c: New file.
10335 * config/aarch64/linux.mh: New file.
10336 * configure.host: Add AArch64.
10337 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
10341 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
10342 disassemble command.
10346 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
10347 set_gdbarch_fetch_tls_load_module_address.
10351 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
10352 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10353 * value.c (struct_return_convention): New function.
10354 (using_struct_return): Implement in terms of struct_return_convention.
10355 * value.h (struct_return_convention): Declare.
10356 * stack.c (return_command): Allow successful overriding of the return
10357 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
10361 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
10362 outside of TRY_CATCH.
10366 * mi/mi-interp.c: Include "tracepoint.h".
10367 (mi_tsv_modified): Declare.
10368 (mi_tsv_created, mi_tsv_deleted): Update declaration.
10369 (mi_interpreter_init): Call observer_attach_tsv_modified.
10370 (mi_tsv_modified): New.
10371 (mi_tsv_created, mi_tsv_deleted): Update.
10372 * tracepoint.c (trace_variable_command): Call
10373 observer_notify_tsv_modified if the initial value of tsv is
10375 (delete_trace_state_variable): Call
10376 observer_notify_tsv_deleted earlier.
10377 (trace_variable_command): Caller update.
10378 (create_tsv_from_upload): Likewise.
10379 * observer.sh: Declare "struct trace_state_variable".
10381 * NEWS: Mention the new MI notification "=tsv-modified".
10385 * completer.c (location_completer): Fix typo in comment.
10389 * breakpoint.c (add_location_to_breakpoint): Insert the location with
10394 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
10395 Refactor if statement to avoid trailing || operator.
10399 * NEWS: Add PowerPC FreeBSD as a new native configuration.
10403 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
10404 * configure.host: Add powerpc*-*-freebsd* target.
10405 * configure.tgt: Add target info for powerpc*-*-freebsd*.
10406 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
10407 * config/powerpc/fbsd.mh: New file.
10413 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
10414 (struct elf_internal_linux_prpsinfo): Forward declare.
10415 * gdbarch.h, gdbarch.c: Regenerate.
10416 * linux-tdep.c: Include `cli/cli-utils.h'.
10417 (linux_fill_prpsinfo): New function.
10418 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
10419 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
10420 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
10421 depending on gdbarch pointer bitness.
10422 * ppc-linux-tdep.c: Include elf-bfd.h.
10423 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
10431 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
10438 * aarch64-newlib-tdep.c: New file.
10439 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
10441 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
10442 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
10443 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
10444 * osabi.c (gdb_osabi_names): Add "Newlib".
10451 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
10452 (ALLDEPFILES): Add aarch64-linux-tdep.c.
10453 * aarch64-linux-tdep.c: New file.
10454 * aarch64-linux-tdep.h: New file.
10455 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
10456 * configure.tgt: Add aarch64-none-linux-gnu.
10463 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
10464 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
10465 (ALLDEPFILES): Add aarch64-tdep.c.
10466 * aarch64-tdep.c: New file.
10467 * aarch64-tdep.h: New file.
10468 * configure.tgt: Add AArch64.
10469 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
10470 (aarch64-expedite): New definition.
10471 * features/aarch64-core.xml: New file.
10472 * features/aarch64-fpu.xml: New file.
10473 * features/aarch64-without-fpu.c: New file (generated).
10474 * features/aarch64-without-fpu.xml: New file.
10475 * features/aarch64.c: New file (generated).
10476 * features/aarch64.xml: New file.
10477 * regformats/aarch64-without-fpu.dat: New file (generated).
10478 * regformats/aarch64.dat: New file (generated).
10482 * contrib/expect-read1.c: New file.
10483 * contrib/expect-read1.sh: New file.
10487 * dwarf2read.c (file_file_name): New function with code from
10489 (file_full_name): Move most of the code to file_file_name.
10490 (macro_start_file): Rename variable full_name to file_name and use
10491 file_file_name for it. Add comp_dir parameter to new_macro_table.
10492 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
10493 macro_source_file->filename access by macro_source_fullname call.
10494 * macroscope.c (_initialize_macroscope): Update the new_macro_table
10496 * macrotab.c (struct macro_table): New field comp_dir.
10497 (macro_include): New variables link_fullname and source_fullname.
10498 Replace any macro_source_file->filename access by macro_source_fullname
10500 (macro_lookup_inclusion): Remove the partial filenames checking code.
10501 (check_for_redefinition): New variables source_fullname and
10502 found_key_fullname. Replace any macro_source_file->filename access by
10503 macro_source_fullname call.
10504 (macro_undef): New variables source_fullname and key_fullname. Replace
10505 any macro_source_file->filename access by macro_source_fullname call.
10506 (macro_lookup_definition): New variables retval and source_fullname.
10507 Replace any macro_source_file->filename access by macro_source_fullname
10509 (foreach_macro): New variable key_fullname. Replace any
10510 macro_source_file->filename access by macro_source_fullname call.
10511 (foreach_macro_in_scope): New variable datum_fullname. Replace any
10512 macro_source_file->filename access by macro_source_fullname call.
10513 (new_macro_table): Add parameter comp_dir. Initialize T with it.
10514 (macro_source_fullname): New function.
10515 * macrotab.h (struct macro_source_file): Extent the filename field
10517 (new_macro_table): New parameter comp_dir, add a comment for it.
10518 (macro_source_fullname): new declaration.
10522 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
10523 this_real_name to outer block. Use it also for
10524 compare_filenames_for_search.
10525 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
10526 with dw2_get_real_path for file_matcher, considering also
10527 BASENAMES_MAY_DIFFER.
10528 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
10532 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
10533 to the file_matcher parameter. Pass 0 to it.
10534 (dwarf2_create_include_psymtab): Copy also DIRNAME.
10535 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
10536 NULL psymtab_to_fullname result.
10537 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
10538 an expected filename instead.
10539 (expand_symtabs_matching_via_partial): Add basenames parameter to the
10540 file_matcher parameter. Call also psymtab_to_fullname, after newly
10541 considering BASENAMES_MAY_DIFFER.
10542 * source.c (rewrite_source_path): Remove static.
10543 * source.h (rewrite_source_path): New declaration.
10544 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
10545 the expand_symtabs_matching field. Comment it.
10546 * symtab.c (file_matches): New function comment. Add parameter
10547 basenames, implement it.
10548 (search_symbols_file_matches): Add basenames parameter. Update the
10549 file_matches caller.
10550 (search_symbols): Match FILES also against symtab_to_fullname.
10551 Optimize it for BASENAMES_MAY_DIFFER.
10555 * source.c (print_source_lines_base): Print for TUI also "fullname".
10556 * tui/tui-data.c (init_content_element): Change tui_locator_element
10557 field to full_name.
10558 * tui/tui-data.h (struct tui_locator_element): Likewise.
10559 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
10560 tui_update_locator_filename calls to tui_update_locator_fullname.
10561 Replace symtab->filename refererence by symtab_to_fullname call.
10562 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
10563 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
10564 field to full_name. Replace symtab->filename refererence by
10565 symtab_to_fullname call.
10566 (tui_show_symtab_source): Rename parameter to fullname. Change
10567 tui_locator_element field to full_name.
10568 * tui/tui-stack.c: Include source.h.
10569 (tui_set_locator_filename): Rename the declaration to ...
10570 (tui_set_locator_fullname): ... here. Rename its parameter to
10571 fullname, updates its comment.
10572 (tui_set_locator_info): Rename its parameter to fullname.
10573 (tui_set_locator_filename): Rename the definition to ...
10574 (tui_set_locator_fullname): ... here. Rename its parameter to
10575 fullname, updates its comment. Change tui_locator_element field to
10577 (tui_set_locator_info): Rename its parameter to fullname.
10578 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
10579 (tui_update_locator_filename): Rename to ...
10580 (tui_update_locator_fullname): ... here. Rename callee to
10581 tui_set_locator_fullname.
10582 (tui_show_frame_info): Replace symtab->filename refererence by
10583 symtab_to_fullname call.
10584 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
10585 (tui_update_locator_fullname): ... here.
10586 * tui/tui-winsource.c (tui_display_main): Rename the callee to
10587 tui_update_locator_fullname. Replace symtab->filename refererence by
10588 symtab_to_fullname call.
10589 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
10590 Rename the callee to tui_update_locator_fullname.
10591 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
10595 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
10596 by symtab_to_filename_for_display calls.
10597 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
10598 (clear_command): New variable sal_fullname, initialize it. Replace
10599 compare_filenames_for_search by filename_cmp with sal_fullname.
10600 (say_where, update_static_tracepoint): Replace symtab->filename
10601 refererences by symtab_to_filename_for_display calls.
10602 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
10604 * dwarf2read.c: Include source.h.
10605 (fixup_go_packaging): Replace symtab->filename refererences by
10606 symtab_to_filename_for_display calls.
10607 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
10608 Replace symtab->filename refererences by symtab_to_filename_for_display
10610 (create_sals_line_offset, convert_linespec_to_sals): New variable
10611 fullname, initialize it, replace symtab->filename reference by the
10613 * linux-fork.c: Include source.h.
10614 (info_checkpoints_command): Replace symtab->filename refererences by
10615 symtab_to_filename_for_display calls.
10616 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
10617 by symtab_to_filename_for_display calls.
10618 * mdebugread.c: Include source.h.
10619 (psymtab_to_symtab_1): Replace symtab->filename refererences by
10620 symtab_to_filename_for_display calls.
10621 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
10622 (mi_cmd_file_list_exec_source_files): Likewise.
10623 * printcmd.c: Include source.h.
10624 (build_address_symbolic): Replace symtab->filename refererences by
10625 symtab_to_filename_for_display calls.
10626 * psymtab.c (partial_map_symtabs_matching_filename)
10627 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
10628 with psymtab_to_fullname.
10629 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
10630 by symtab_to_filename_for_display calls.
10631 (stpy_get_filename): New variable filename, initialize it, use instead
10632 of symtab->filename refererences.
10633 (salpy_str): Make variable filename const char *. Replace
10634 symtab->filename refererences by symtab_to_filename_for_display calls.
10635 * skip.c: Include source.h and filenames.h.
10636 (skip_file_command): Remove const from the symtab variable. Replace
10637 symtab->filename refererences by symtab_to_fullname call.
10638 (function_name_is_marked_for_skip): New variables searched_for_fullname
10639 and fullname. Use them to search also with symtab's fullname.
10640 * source.c (find_source_lines): Replace symtab->filename refererences
10641 by symtab_to_filename_for_display calls.
10642 (print_source_lines_base): New variable filename, use it instead of
10643 symtab->filename. Replace symtab->filename refererences by
10644 symtab_to_filename_for_display calls.
10645 (line_info, forward_search_command): Replace symtab->filename
10646 refererences by symtab_to_filename_for_display calls.
10647 (reverse_search_command): Replace symtab->filename refererences by
10648 symtab_to_filename_for_display calls. New variable filename for it.
10649 * stack.c (frame_info): Likewise.
10650 * symmisc.c: Include source.h.
10651 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
10652 (maintenance_info_symtabs): Replace symtab->filename refererences by
10653 symtab_to_filename_for_display calls.
10654 * symtab.c (iterate_over_some_symtabs): Call
10655 compare_filenames_for_search also with symtab_to_fullname.
10656 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
10657 symtab->filename refererences by symtab_to_filename_for_display calls.
10658 (find_line_symtab): Replace symtab->filename refererences by
10659 symtab_to_filename_for_display calls.
10660 (file_matches): Replace filename_cmp by compare_filenames_for_search.
10661 (print_symbol_info): Make the last parameter const char *. New
10662 variable s_filename. Use it in the function.
10663 (symtab_symbol_info): Make the last_filename variable const char *.
10664 Replace symtab->filename refererences by symtab_to_filename_for_display
10666 (rbreak_command): New variable fullname. Use it. Replace
10667 symtab->filename refererence by symtab_to_filename_for_display call.
10668 * tracepoint.c (set_traceframe_context, trace_find_line_command)
10669 (print_one_static_tracepoint_marker): Replace symtab->filename
10670 refererences by symtab_to_filename_for_display calls.
10671 * tui/tui-source.c (tui_set_source_content): New variables filename and
10672 s_filename. Replace symtab->filename refererences by this variable.
10673 Replace other symtab->filename refererences by
10674 symtab_to_filename_for_display calls.
10679 Add a new variable that controls a way in which filenames are
10681 * NEWS (set filename-display): New entry.
10682 * source.c (filename_display_basename, filename_display_relative)
10683 (filename_display_absolute, filename_display_kind_names)
10684 (filename_display_string, show_filename_display_string)
10685 (symtab_to_filename_for_display): New.
10686 (_initialize_source): Added initialization of 'filename-display'
10688 * source.h (symtab_to_filename_for_display): Added declaration.
10689 * stack.c (print_frame): Added new variable and calling of a new
10690 function and condition with this variable. Changed third argument of
10691 calling of a function.
10695 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
10696 Rename field reference filename to fullname.
10697 * tui/tui-data.h (struct tui_source_info): Rename field filename to
10698 fullname. New comment for it.
10699 * tui/tui-source.c (tui_set_source_content): Rename field reference
10700 filename to fullname. Initialize field by symtab_to_fullname now.
10701 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
10702 reference filename to fullname. Use symtab_to_fullname during
10708 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
10709 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
10710 filename to fullname. Rename variable this_name to this_fullname.
10711 Lowercase FILENAME_CMP call.
10712 (dw2_find_symbol_file): New comment for the returned string.
10713 (dwarf2_gdb_index_functions): Rename the function to
10714 dw2_expand_symtabs_with_fullname.
10715 * psymtab.c (read_psymtabs_with_filename): Rename to ...
10716 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
10718 (psym_functions): Rename the function to read_psymtabs_with_fullname.
10719 * symfile.h (struct quick_symbol_functions): Rename field
10720 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
10721 parameter filename to fullname. Document returned string meaning for
10723 * symtab.c (find_line_symtab): Rename the called function to
10724 expand_symtabs_with_fullname.
10729 * breakpoint.c (clear_command): Remove variable is_abs, unify the
10730 call of filename_cmp with compare_filenames_for_search.
10731 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
10732 is_abs, unify the call of FILENAME_CMP with
10733 compare_filenames_for_search. New gdb_asserts for real_path and name.
10734 Unify the call of compare_filenames_for_search with FILENAME_CMP.
10735 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
10736 * symfile.h (struct quick_symbol_functions): Extend the comment for
10737 map_symtabs_matching_filename.
10738 * symtab.c (compare_filenames_for_search): Remove the function comment
10739 relative path requirement. Handle absolute filenames, with a comment.
10740 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
10741 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
10742 real_path and name. Unify the call of compare_filenames_for_search
10744 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
10749 * breakpoint.c (print_breakpoint_location): Replace bp_location field
10750 source_file references by symtab field references. Remove variables
10752 (momentary_breakpoint_from_master, add_location_to_breakpoint):
10753 (clear_command, say_where): Replace bp_location field source_file
10754 references by symtab field references.
10755 (bp_location_dtor): Remove the source_file reference.
10756 (update_static_tracepoint): Replace bp_location field source_file
10757 references by symtab field references.
10758 (breakpoint_free_objfile): New function.
10759 * breakpoint.h (struct bp_location): Extend the comment for line_number.
10760 Replace the field source_file by field symtab, extend its comment.
10761 (breakpoint_free_objfile): New declaration.
10762 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
10763 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
10764 field source_file references by symtab field references.
10768 Replace xfullpath calls by gdb_realpath calls.
10769 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
10771 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
10772 Remove it from the iterate_over_some_symtabs call.
10773 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
10774 Remove it from the dw2_map_expand_apply calls, remove a block handling
10776 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
10777 Remove it from the iterate_over_some_symtabs call.
10778 (partial_map_symtabs_matching_filename): Remove parameter full_path.
10779 Remove it from the partial_map_expand_apply calls, remove a block
10780 handling it. Drop gdb_realpath call and cleanups from the real_path
10782 * source.c (openp): Drop the comment part about xfullpath. Replace
10783 xfullpath calls by gdb_realpath calls.
10784 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
10785 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
10786 from method map_symtabs_matching_filename and its comment.
10787 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
10789 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
10790 remove it also from the function comment, remove a block handling it.
10791 Drop gdb_realpath call and cleanups from the real_path handling.
10792 (iterate_over_symtabs): Drop variable full_path and its use.
10793 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
10794 * utils.c (xfullpath): Remove.
10795 * utils.h (xfullpath): Remove.
10799 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
10800 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
10801 (ALLDEPFILES): Add ppc64-tdep.c.
10802 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
10803 ppc64-tdep.o to gdb_target_obs.
10804 * ppc64-tdep.h: New file.
10805 * ppc64-tdep.c: New file.
10806 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
10807 ppc-linux-tdep.c to here.
10808 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
10809 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
10810 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
10811 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
10812 from ppc-linux-tdep.c to here.
10813 (ppc64_convert_from_func_ptr_addr): Rename from
10814 ppc64_linux_convert_from_func_ptr_addr to
10815 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
10818 (read_insn): Move from ppc-linux-tdep.c to here.
10819 (insns_match_pattern, insn_d_field, insn_ds_field): Move
10820 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
10821 * ppc-linux-tdep.c: Include ppc64-tdep.h.
10822 Removed above functions.
10823 (ppc_linux_init_abi): Adjust.
10827 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
10831 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
10835 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
10836 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
10840 * elfread.c (elf_symfile_read): Limit separate debug info additions to
10841 files with no separate debug info.
10842 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
10843 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
10844 only for files with no separate debug info.
10848 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
10850 (struct jit_program_space_data): Rename from jit_inferior_data.
10852 (get_jit_program_space_data): Rename from get_jit_inferior_data.
10853 Change return type. Attach data to program space.
10854 (jit_program_space_data_cleanup): Rename from
10855 jit_inferior_data_cleanup; change argument type.
10856 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
10858 (jit_register_code): Update.
10859 (jit_update_inferior_cache): Remove.
10860 (jit_breakpoint_deleted): Get jit data from the location's program
10862 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
10863 'ps_data', change type.
10864 (jit_inferior_init, jit_breakpoint_re_set_internal)
10865 (jit_event_handler): Update.
10866 (free_objfile_data): Get data from objfile's program space.
10867 (_initialize_jit): Update.
10872 * jit.c (struct jit_inferior_data) <cached_code_address,
10873 jit_breakpoint>: New fields.
10874 (jit_breakpoint_re_set_internal): Fix logging. Only create
10875 breakpoint if cached address has changed.
10876 (jit_update_inferior_cache, jit_breakpoint_deleted): New
10878 (_initialize_jit): Register breakpoint deleted observer.
10882 * infrun.c (handle_syscall_event): Remove unused gdbarch.
10883 (save_infcall_suspend_state): Ifdef out unused inf.
10884 (restore_infcall_suspend_state): Ifdef out unused inf.
10885 * jit.c (jit_register_code): Remove unused i, b, inf_data.
10886 (jit_frame_sniffer): Remove unused inf_data.
10890 * c-exp.y (classify_inner_name): Remove unused type.
10891 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
10892 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
10894 (c_get_string): Remove unused kind.
10895 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
10899 * charset.c (intermediate_encoding): Remove unused i.
10900 * completer.c (signal_completer): Remove unused i.
10901 * continuations.c (discard_my_continuations_1): Remove unused
10903 * corelow.c (core_close): Remove unuseD name.
10904 (get_core_siginfo): Remove unused pid.
10905 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
10907 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
10908 (loclist_describe_location): Remove unused first.
10909 * event-top.c (command_line_handler): Remove unused got_eof.
10910 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
10911 (resize_section_table): Remove unused old_value.
10912 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
10913 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
10914 * i386-tdep.c (i386_process_record): Remove unused rex.
10915 * infcmd.c (get_return_value): Remove unused uiout.
10916 * jv-lang.c (type_from_class): Remove unused is_array.
10917 * jv-valprint.c (java_val_print): Remove unused i.
10918 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
10919 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
10920 * m2-typeprint.c (m2_print_type): Remove unused code.
10921 * macroexp.c (get_character_constant): Remove unused body_start.
10922 (macro_stringify): Remove unused result.
10923 * objc-lang.c (find_methods): Remove unused gdbarch.
10924 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
10925 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
10926 * stack.c (print_frame_args): Remove unused summary.
10927 * thread.c (thread_apply_command): Remove unused p.
10928 * valarith.c (value_x_unop): Remove unused mangle_ptr.
10929 * valops.c (search_struct_method): Remove unused skip.
10930 * valprint.c (generic_val_print): Remove unused byte_order.
10931 * varobj.c (varobj_update): Remove unused changed.
10932 * cli/cli-cmds.c (complete_command): Remove unused next_item.
10933 (alias_command): Remove unused c.
10934 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
10935 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
10937 (mi_cmd_data_write_memory): Remove unused word_format.
10938 (mi_cmd_data_write_memory_bytes): Remove unused r.
10939 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
10941 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
10942 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
10947 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
10948 * symtab.c (iterate_over_symtabs): Remove unused s.
10949 (find_pc_sect_symtab): Remove unused pspAce.
10950 (find_pc_sect_line): Remove unused alt_symtab.
10951 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
10952 (completion_list_add_name): Remove unused newsize.
10957 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
10962 * target.c (target_read_string): Remove unused origlen.
10966 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
10967 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
10968 * ax-general.c (ax_print): Remove unused is_float.
10969 * blockframe.c (block_innermost_frame): Remove unused start, end.
10970 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
10974 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
10975 (svr4_read_so_list): Remove unused lmo.
10976 * solib-target.c (solib_target_relocate_section_addresses): Remove
10981 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
10985 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
10986 * utils.c (gnu_debuglink_crc32): Remove.
10987 * utils.h (gnu_debuglink_crc32): Don't declare.
10991 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
10992 (read_structure_type, read_enumeration_type): Remove cast.
10996 * dwarf2read.c (read_namespace_type): Remove cast.
10997 (read_typedef): Likewise.
11001 * dwarf2read.c (free_dwo_file): Remove assert.
11005 * value.c (deprecated_set_value_modifiable): Remove.
11006 * value.h (deprecated_set_value_modifiable): Remove.
11010 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
11011 to addresses from dwo files.
11015 * valops.c (find_overload_match): Remove unused argument 'lax'.
11016 * value.h: Remove unused argument 'lax' from the declaration of
11017 find_overload_match.
11018 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
11019 to find_overload_match.
11020 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
11021 argument to find_overload_match.
11025 * dwarf2read.c (processing_has_namespace_info): Remove.
11026 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
11027 (process_die, read_func_scope, dwarf2_start_symtab)
11028 (new_symbol_full): Update.
11032 * cp-namespace.c (cp_set_block_scope): Remove.
11033 * cp-support.h (cp_set_block_scope): Remove.
11034 * dbxread.c: Include block.h.
11035 (cp_set_block_scope): New function.
11036 (process_one_symbol): Update.
11037 * dwarf2read.c (read_func_scope): Use block_set_scope.
11041 * remote.c (add_current_inferior_and_thread): Tweak comment.
11045 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
11046 (cp_add_using_directive): Add 'copy_names' argument.
11047 * cp-support.h (cp_add_using_directive): Update.
11048 (struct using_direct) <import_src, import_dest, alias,
11049 declaration>: Now const.
11050 * dwarf2read.c (read_import_statement): Use obconcat.
11051 Don't copy names passed to cp_add_using_directive.
11055 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
11059 * remote.c (stop_reply_extract_thread): New.
11060 (add_current_inferior_and_thread): New parameter 'wait_status'.
11062 (remote_start_remote): Pass wait status to
11063 add_current_inferior_and_thread.
11064 (extended_remote_run): Update comment.
11065 (extended_remote_create_inferior_1): Pass wait status to
11066 add_current_inferior_and_thread.
11071 * valarith.c (value_vector_widen): New function for replicating a
11072 scalar into a vector.
11073 (value_binop): Use value_vector_widen to widen scalar to vector
11074 rather than casting, this better matches gcc C behaviour.
11075 * valops.c (value_casst): Update logic for casting between vector
11076 types, and for casting from scalar to vector, try to match gcc C
11078 * value.h (value_vector_widen): Declare.
11079 * opencl-lang.c (opencl_value_cast): New opencl specific casting
11080 function, handle special case for casting scalar to vector.
11081 (opencl_relop): Use opencl_value_cast.
11082 (evaluate_subexp_opencl): Use opencl_value_cast instead of
11083 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
11084 in order to use opencl_value_cast.
11088 * event-loop.c: Include "queue.h".
11089 (gdb_event_p): New typedef.
11090 (DECLARE_QUEUE_P): Use.
11091 (DEFINE_QUEUE_P): Use.
11092 (async_queue_event): Remove.
11093 (gdb_event_xfree): New.
11094 (initialize_event_loop): New.
11095 (process_event): Use QUEUE macros.
11096 (event_queue): Remove.
11097 (gdb_wait_for_event): Caller update.
11098 (check_async_event_handlers): Likewise.
11099 (poll_timers): Likewise.
11100 * event-loop.h (initialize_event_loop): Declare.
11101 * event-loop.c (gdb_event_xfree): New.
11102 * top.c (gdb_init): Call initialize_event_loop.
11106 * event-loop.c (async_queue_event): Remove one parameter
11107 'position'. Remove code handling 'position' == TAIL.
11108 (gdb_wait_for_event): Caller update.
11109 (check_async_event_handlers): Caller update.
11110 (poll_timers): Caller update.
11111 * event-loop.h (enum queue_position): Remove.
11115 * MAINTAINERS: Update my email.
11119 * main.c (print_gdb_help): Remove "--epoch" from the help
11124 * symtab.c (skip_prologue_using_sal): Consider a file
11125 change the same as an increased line number
11129 * MAINTAINERS (Write After Approval): Add myself to the list.
11133 * ada-lang.h (ada_decode_symbol): Make return type const.
11134 * ada-lang.c (ada_decode_symbol): Likewise.
11138 * linespec.c (find_linespec_symbols): Make static.
11142 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
11143 type on float conversion for complex type.
11147 Add a new class gdb.Architecture which exposes GDB's
11148 internal representation of architecture via GDB Python API.
11149 * Makefile.in: Add entries corresponding to the new file
11151 * NEWS (Python Scripting): Add entries for the new class
11152 gdb.Architecture and the new method gdb.Frame.architecture.
11153 * python/py-arch.c: Implement gdb.Architecture class.
11154 * python/py-frame.c (frapy_arch): Implement the method
11155 gdb.Frame.architecture().
11156 (frame_object_methods): Add 'architecture' to the method table.
11157 * python/python-internal.h: Add declarations of new utility
11159 * python/python.c (_initialize_python): Initialize
11160 gdb.Architecture class.
11164 Work around binutils/15021.
11165 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
11166 type_unit_group out of union s. All uses updated.
11167 (read_index_from_section): Watch for index version 8.
11168 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
11169 an imported symtab.
11170 (write_psymtabs_to_index): Increment version number to 8.
11174 * annotate.c (breakpoint_changed): Skip if breakpoint is not
11179 * annotate.c (annotate_breakpoints_changed): Rename to ...
11180 (annotate_breakpoints_invalid): ... this. Make static.
11181 (breakpoint_changed): Adjust.
11182 (_initialize_annotate): Always install the observers. Install a
11183 "breakpoint_created" observer.
11184 * annotate.h (annotate_breakpoints_changed): Delete declaration.
11185 * breakpoint.c (set_breakpoint_condition)
11186 (breakpoint_set_commands, do_map_commands_command)
11187 (init_raw_breakpoint, clear_command, set_ignore_count)
11188 (enable_breakpoint_disp): No longer call
11189 annotate_breakpoints_changed.
11193 * annotate.c: Include "inferior.h".
11194 (frames_invalid_emitted)
11195 (breakpoints_invalid_emitted): New globals.
11196 (async_background_execution_p): New function.
11197 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
11198 emitting the annotation if it has already been emitted.
11199 (annotate_display_prompt): New function.
11200 * annotate.h (annotate_display_prompt): New declaration.
11201 * event-top.c: Include annotate.h.
11202 (display_gdb_prompt): Call annotate_display_prompt.
11206 * annotate.c (ignore_count_changed): Delete.
11207 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
11208 (annotate_ignore_count_change): Delete.
11209 (annotate_stopped): Don't emit a delayed breakpoints-changed
11211 * annotate.h (annotate_ignore_count_change): Delete.
11212 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
11213 annotate_ignore_count_change.
11217 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
11218 require_rvalue for a register location.
11222 * breakpoint.c (print_one_breakpoint_location): Add MI
11223 field 'thread-groups' when printing a breakpoint.
11224 (output_thread_groups): New function.
11228 * python/lib/gdb/commands/explore.py
11229 (CompoundExplorer.explore_expr): Correct the name of a method
11231 (ExploreTypeCommand.invoke): Add a missing 'return'.
11235 * gdb_obstack.h (obconcat): Move declaration here, from...
11236 * symfile.h (obconcat): ... here.
11237 * gdb_obstack.c: New file.
11238 (obconcat): Move from...
11239 * symfile.c (obconcat): ... here.
11240 * Makefile.in (SFILES): Add gdb_obstack.c.
11241 (COMMON_OBS): Add gdb_obstack.o.
11245 * symfile.h (obsavestring): Don't declare.
11246 * symfile.c (obsavestring): Remove.
11247 * ada-exp.y: Use obstack_copy0, not obsavestring.
11248 * ada-lang.c: Use obstack_copy0, not obsavestring.
11249 * coffread.c: Use obstack_copy0, not obsavestring.
11250 * cp-namespace.c: Use obstack_copy0, not obsavestring.
11251 * dbxread.c: Use obstack_copy0, not obsavestring.
11252 * dwarf2read.c: Use obstack_copy0, not obsavestring.
11253 * jit.c: Use obstack_copy0, not obsavestring.
11254 * mdebugread.c: Use obstack_copy0, not obsavestring.
11255 * psymtab.c: Use obstack_copy0, not obsavestring.
11256 * stabsread.c: Use obstack_copy0, not obsavestring.
11257 * xcoffread.c: Use obstack_copy0, not obsavestring.
11261 * dwarf2read.c (fixup_go_packaging): Save package name
11262 on objfile obstack.
11263 * gdbtypes.c (init_type): Don't copy name.
11267 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
11269 (struct attribute) <u.str>: Now const.
11270 (struct fnfieldlist) <name>: Now const.
11271 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
11272 (partial_die_parent_scope): Make return type const.
11273 (partial_die_full_name, add_partial_symbol): Update.
11274 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
11276 (find_file_and_directory): Make 'name' and 'comp_dir' const.
11277 (read_file_scope, read_func_scope, dwarf2_add_field)
11278 (dwarf2_add_member_fn, read_structure_type)
11279 (process_enumeration_scope, read_array_type, read_module_type)
11280 (read_base_type, read_subrange_type): Update.
11281 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
11282 (new_symbol_full, guess_full_die_structure_name): Update.
11283 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
11284 (dwarf2_name): Return const type.
11285 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
11290 * gdbtypes.c (init_type): Make 'name' const.
11291 * gdbtypes.h (init_type): Update.
11295 * buildsym.c (patch_subfile_names): Use set_last_source_file.
11296 (start_symtab): Make 'name' and 'dirname' const. Use
11297 set_last_source_file.
11298 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
11299 (last_source_file): Define. Now static.
11300 (set_last_source_file, get_last_source_file): New functions.
11301 * buildsym.h (last_source_file): Don't declare.
11302 (start_symtab): Update.
11303 (set_last_source_file, get_last_source_file): Declare.
11304 * coffread.c (complete_symtab): Use set_last_source_file.
11305 (coff_end_symtab): Likewise.
11306 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
11307 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
11308 set_last_source_file.
11309 (process_one_symbol): Use get_last_source_file.
11310 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
11311 (psymtab_to_symtab_1): Use get_last_source_file.
11312 * xcoffread.c (process_linenos): Use get_last_source_file.
11313 (complete_symtab): Use set_last_source_file.
11314 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
11315 (scan_xcoff_symtab): Use set_last_source_file.
11319 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
11320 (symbol_set_names): Remove casts. Handle field const-ness.
11324 * dwarf2read.c (new_symbol_full): Remove cast.
11325 * symtab.c (symbol_set_demangled_name): Make 'name' const.
11326 * symtab.h (symbol_set_demangled_name): Update.
11330 * main.c (captured_main): Call bfd_init.
11334 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
11335 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
11336 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
11341 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
11345 Fix gdb.fortran/common-block.exp crash in PIE mode.
11346 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
11348 * f-valprint.c (info_common_command_for_block): Expect
11349 LOC_COMMON_BLOCK in gdb_assert.
11350 * symtab.h (struct general_symbol_info): Update comment for the
11351 common_block member.
11352 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
11353 (enum address_class): New member LOC_COMMON_BLOCK.
11357 * MAINTAINERS (Write After Approval): Add "David Blaikie".
11362 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
11363 Call require_rvalue.
11367 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
11368 (dbx_read_symtab): New declaration.
11369 (dbx_psymtab_to_symtab): Delete.
11370 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
11371 Rename parameter PST to SELF. Exchanged two parameters.
11372 (start_psymtab): Caller update.
11373 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
11374 (dwarf2_read_symtab): New declaration.
11375 (dwarf2_psymtab_to_symtab): Delete.
11376 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
11377 Rename parameter PST to SELF. Exchanged two parameters.
11378 (create_partial_symtab): Caller update.
11379 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
11380 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
11381 Rename parameter PST to SELF. Exchanged two parameters.
11382 (parse_partial_symbols, new_psymtab): Caller update.
11383 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
11385 * psymtab.c (psymtab_to_symtab): Caller update.
11386 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
11387 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
11388 Rename parameter PST to SELF. Exchanged two parameters.
11389 (xcoff_start_psymtab): Caller update.
11393 * infrun.c (proceed): Rename local variable 'oneproc' to
11398 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
11399 (dw2_build_type_unit_groups): Delete. All uses updated.
11401 * symtab.h (struct symbol_search): Add comment.
11405 * symtab.c (compare_filenames_for_search): New comment for
11410 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
11414 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
11415 initialize it by existing make_cleanup. Call new do_cleanups.
11419 * cp-abi.c (cp_abi_completer): New function.
11420 (_initialize_cp_abi): Set completer for "set cp-abi".
11424 * mem-break.c: Remove obsolete comment.
11425 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
11429 * jit.c (jit_reader_load_command): Interpret the jit reader name
11430 as an absolute path if it begins with a forward slash.
11436 * jit.c (finalize_symtab): Ensure that only the global block has a
11441 * acinclude.m4: Include ../config/plugins.m4,
11442 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
11443 * Makefile.in (aclocal_m4_deps): Update.
11444 * aclocal.m4: Renegerate.
11448 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
11454 * NEWS: Add "catch signal".
11455 * breakpoint.c (base_breakpoint_ops): No longer static.
11456 (bpstat_explains_signal): New function.
11457 (init_catchpoint): No longer static.
11458 (base_breakpoint_explains_signal): New function.
11459 (base_breakpoint_ops): Initialize new field.
11460 * breakpoint.h (enum bpstat_signal_value): New.
11461 (struct breakpoint_ops) <explains_signal>: New field.
11462 (bpstat_explains_signal): Remove macro, declare as function.
11463 (base_breakpoint_ops, init_catchpoint): Declare.
11464 * break-catch-sig.c: New file.
11465 * inferior.h (signal_catch_update): Declare.
11466 * infrun.c (signal_catch): New global.
11467 (handle_syscall_event): Update for change to
11468 bpstat_explains_signal.
11469 (handle_inferior_event): Likewise. Always handle random signals
11471 (signal_cache_update): Check signal_catch.
11472 (signal_catch_update): New function.
11473 (_initialize_infrun): Initialize signal_catch.
11474 * Makefile.in (SFILES): Add break-catch-sig.c.
11475 (COMMON_OBS): Add break-catch-sig.o.
11479 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
11480 (print_one_catch_solib, print_one_catch_syscall)
11481 (print_one_catch_exec, print_one_exception_catchpoint): Emit
11486 * printcmd.c (current_display_number): Make it static.
11490 * infcmd.c (step_once): Don't check '!single_inst' as it was
11495 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
11499 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
11501 * command.h (add_setshow_string_noescape_cmd): Update.
11502 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
11503 (complete_set_gnutarget): New function.
11504 (_initialize_core): Set the "set gnutarget" completer.
11509 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
11510 (c_type_print_modifier): Likewise.
11511 * dwarf2read.c (read_tag_restrict_type): New function.
11512 (read_type_die_1): Handle DW_TAG_restrict_type.
11513 * gdbtypes.c (make_restrict_type): New function.
11514 (recursive_dump_type): Handle TYPE_RESTRICT.
11515 * gdbtypes.h (enum type_flag_values): Renumber.
11516 (enum type_instance_flag_value): Add
11517 TYPE_INSTANCE_FLAG_RESTRICT.
11518 (TYPE_RESTRICT): New macro.
11519 (make_restrict_type): Declare.
11524 * psymtab.c (struct psymtab_state): New.
11525 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
11527 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
11528 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
11535 * remote.c (remote_threads_info): Make a copy of the reply from
11536 qfThreadInfo and use that instead of rs->buf.
11540 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
11541 (dbx_psymtab_to_symtab): Likewise.
11542 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
11543 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
11544 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
11548 * parse.c (parse_exp_in_context): New variable inner_chain. Call
11549 make_cleanup_restore_current_language. Call set_language. Move
11550 OLD_CHAIN and INNER_CHAIN cleanups.
11551 * utils.c (do_restore_current_language)
11552 (make_cleanup_restore_current_language): New functions.
11553 * utils.h (make_cleanup_restore_current_language): New declaration.
11557 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
11558 non-existing files.
11560 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
11561 non-existing files if FILENAME is already absolute.
11565 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
11566 fputs_filtered. Append trailing newline.
11571 * psymtab.c (init_psymbol_list): Clarify the comment.
11575 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
11576 (update_dprintf_command_list): Assert that 'printf_line' is
11577 non-null. Remove condition check.
11582 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
11584 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
11586 * tui/tui-source.h (tui_source_is_displayed): Likewise.
11590 * cp-abi.c (cplus_print_vtable): Don't return value from void
11592 * ada-lang.c (re_set_catch_assert): Ditto.
11596 * symfile.h (quick_symbol_functions): Delete member
11597 pre_expand_symtabs_matching. All uses removed.
11598 * dwarf2read.c (dw2_lookup_symbol): Implement.
11599 (dw2_do_expand_symtabs_matching): Delete.
11600 (dw2_pre_expand_symtabs_matching): Delete.
11601 (struct dw2_symtab_iterator): New type.
11602 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
11603 (dw2_expand_symtabs_for_function): Rewrite.
11604 (dwarf2_gdb_index_functions): Update.
11605 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
11606 (psym_functions): Update.
11610 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
11611 * configure: Rebuild.
11612 * configure.ac: Add somread.o to the build if BFD has SOM
11614 * somread.c: Include som/aout.h, not syms.h.
11615 (som_symtab_read): Use som_external_symbol_dictionary_record.
11616 Unpack records manually.
11617 (_initialize_somread): Declare.
11621 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
11622 Cast return_address to 64bits.
11626 * printcmd.c: Remove define of function output_command.
11627 * tracepoint.c: Remove extern of function output_command.
11628 * valprint.h: (output_command): New extern.
11632 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
11634 (objc_language_defn): Use c_printchar, c_printstr,
11641 * ada-valprint.c (printstr, print_field_values): Remove
11643 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
11645 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
11647 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
11648 * main.c (captured_main): Remove "epoch" argument.
11649 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
11650 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
11651 * p-valprint.c (pascal_object_print_value_fields): Remove
11653 * printcmd.c (print_command_1): Remove 'inspect' argument.
11654 (print_command, call_command): Update.
11655 (inspect_command): Remove.
11656 (_initialize_printcmd): Make "inspect" an alias for "print".
11657 * top.c (epoch_interface): Remove.
11658 * top.h (epoch_interface): Remove.
11659 * valprint.c (user_print_options): Update.
11660 (print_converted_chars_to_obstack): Remove "inspect_it" code.
11661 * valprint.h (struct value_print_options) <inspect_it>: Remove
11666 * valprint.h (read_string): Add 'extern'.
11670 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
11671 used to decide whether to define darwin_read_dyld_info or not.
11675 * main.c (relocate_gdb_directory): Avoid calling stat function
11680 * psymtab.c (fixup_psymbol_section): Update declaration.
11681 (fixup_psymbol_section): Remove code returning value.
11685 * symtab.h: Remove some out of date comments.
11686 (enum exception_event_kind): Move it ...
11687 * breakpoint.c: ... here.
11692 * darwin-nat.c (darwin_read_dyld_info): Only build if
11693 TASK_DYLD_INFO_COUNT is defined.
11694 (darwin_xfer_partial): Call darwin_read_dyld_info only if
11695 TASK_DYLD_INFO_COUNT is defined.
11699 * symfile.h (struct ecoff_debug_hack): Remove.
11700 * objfiles.c: Don't include mdebugread.h.
11704 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
11705 * configure.ac: Check for Mach-O support in BFD. Update
11707 * configure: Rebuild.
11711 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
11712 * configure.ac: Use GDB_AC_CHECK_BFD.
11713 * configure: Rebuild.
11717 * MAINTAINERS: Update my email.
11721 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
11725 * rs6000-nat.c (bss_data_overlap): New function.
11726 (vmap_symtab): Use it to adjust the .bss section's offset.
11730 Update year range in copyright notice of all files.
11734 * top.c (print_gdb_version): Update copyright year.
11736 For older changes see ChangeLog-2012.
11742 version-control: never