3 * linux-nat.c: Move common macros to ...
4 Include linux-ptrace.h.
5 * common/linux-ptrace.h: ... here. New.
9 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
10 !objfile_has_partial_symbols. New comment.
11 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
12 SYM_READ_PSYMBOLS is not present. Extend the comment.
13 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
17 * defs.h (ENUM_BITFIELD): Remove.
22 * NEWS: Document the new gdbserver --once option.
26 * MAINTAINERS: Update my email address.
30 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
31 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
32 function call if __STDC_ISO_10646__ macro is defined.
33 (intermediate_encoding): New prototype.
34 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
35 to generate compile time error for unsupported gdb_wchar_t size.
36 (ENDIAN_SUFFIX): New macro.
37 (intermediate_encoding): New function.
41 * ada-lang.c (struct add_partial_datum): Update the comment for
42 expand_partial_symbol_name.
43 (ada_add_partial_symbol_completions): Rename to ...
44 (ada_expand_partial_symbol_name): ... here, change return type, update
45 function comment, call symbol_completion_match instead of
46 symbol_completion_add.
47 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
48 and ada_expand_partial_symbol_name.
49 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
51 (dw2_map_symbol_names): Remove.
52 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
53 * psymtab.c (map_symbol_names_psymtab): Remove.
54 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
55 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
57 (psym_functions): Unlist map_symbol_names_psymtab.
58 (map_partial_symbol_names): Rename to ...
59 (expand_partial_symbol_names): ... here, change the FUN type, call
60 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
61 * psymtab.h (map_partial_symbol_names): Rename to ...
62 (expand_partial_symbol_names): ... here, change the FUN type.
63 * symfile.h (struct quick_symbol_functions): Update the description of
64 expand_symtabs_matching. Remove map_symbol_names.
65 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
66 (struct add_name_data): Update the comment for
67 expand_partial_symbol_name.
68 (add_partial_symbol_name): Rename to ...
69 (expand_partial_symbol_name): ... here. Replace
70 completion_list_add_name call by strncmp.
71 (default_make_symbol_completion_list_break_on): Use now
72 expand_partial_symbol_names and expand_partial_symbol_name.
73 * symtab.h (enum search_domain): New element ALL_DOMAIN.
77 * dwarf2read.c (save_gdb_index_command): Replace format
78 documentation with a pointer to the manual.
82 * regcache.c: Include remote.h.
83 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
84 (regcache_dump): Handle regcache_dump_remote.
85 (maintenance_print_remote_registers): New function.
86 (_initialize_regcache): Install "maint print remote-registers"
88 * remote.c (map_regcache_remote_table): New function, factored out
90 (init_remote_state): ... here.
91 (remote_register_number_and_offset): New.
92 * remote.h (remote_register_number_and_offset): Declare.
96 * regcache.c (get_thread_arch_regcache): If creating a regcache for
97 null_ptid, assume and allow a NULL address space, instead of
98 asking the target for the ptid's address space.
99 * infrun.c (ptid_is_pid): Remove assertion.
103 * windows-tdep.c (windows_xfer_shared_library):
104 * windows-nat.c (get_module_name, windows_make_so):
105 * v850-tdep.c (v850_handle_pushm):
106 * utils.c (null_cleanup, gdb_realpath):
107 * ui-out.c (get_next_header):
108 * tracepoint.c (clear_traceframe_info):
109 * symtab.c (lookup_symtab):
110 * serial.h (struct serial_ops):
111 * mipsread.c (read_alphacoff_dynamic_symtab):
112 * infcmd.c (print_return_value):
113 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
114 * f-exp.y (parse_number):
115 * exceptions.c (catch_exceptions):
116 * dummy-frame.c (dummy_frame_this_id):
117 * defs.h (struct cleanup):
118 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
119 * arm-tdep.c (arm_push_dummy_call):
120 * amd64-tdep.h (amd64_collect_xsave):
121 * amd64-tdep.c (amd64_collect_xsave):
122 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
123 * README (typing): Remove duplicate words.
124 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
125 * infrun.c (siginfo_value_read): Fix typo.
126 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
127 * top.c (source_line_number): Add comma.
131 * thread.c (any_live_thread_of_process): Prioritize threads
132 that are not executing.
133 * gdbthread.h (any_live_thread_of_process): Update comment
138 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
139 (scan_xcoff_symtab): Likewise.
143 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
149 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
150 variables to simplify code and avoid == operator at end of
151 line as this is against GNU coding standards.
155 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
156 lm_name to name_lm to avoid conflict with lm_name function.
160 ARI fixes: Use only lowercase function name for static functions.
161 * nto-tdep.c (LM_ADDR): Rename to...
162 (lm_addr): New function name.
163 (nto_relocate_section_addresses): Adapt to change above.
164 * solib-sunos.c (LM_ADDR): Rename to...
165 (lm_addr): New function name.
166 (LM_NEXT): Rename to...
167 (lm_next): New function name.
168 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
169 function name changes above.
170 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
171 (lm_addr_from_link_map): New function name.
172 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
173 (has_lm_dynamic_from_link_map): New function name.
174 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
175 (lm_dynamic_from_link_map): New function name.
176 (LM_ADDR_CHECK): Rename to...
177 (lm_addr_check): New function name.
178 (LM_NEXT): Rename to...
179 (lm_next): New function name.
180 (LM_PREV): Rename to...
181 (lm_prev): New function name.
182 (LM_NAME): Rename to...
183 (lm_name): New function name.
184 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
185 (ignore_first_link_map_entry): New function name.
186 (svr4_keep_data_in_core): Adapt to function name changes above.
187 (svr4_current_sos): Likewise.
188 (enable_break): Likewise.
189 (svr4_relocate_section_addresses): Likewise.
194 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
195 sprintf. Simplify code and avoid loosing memory.
196 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
197 (call0_frame_cache): Remove && operator from end of line.
201 Fix libraries displacement if they change whether they were prelinked.
202 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
203 does not match. Comment why.
207 * corelow.c: Include wrapper.h.
208 (core_open): Call now gdb_target_find_new_threads.
209 * wrapper.c: Include target.h.
210 (gdb_target_find_new_threads): New.
211 * wrapper.h (gdb_target_find_new_threads): New declaration.
215 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
216 even if !TARGET_HAS_EXECUTION.
220 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
221 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
222 bfd_get_synthetic_symtab.
223 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
224 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
225 parameter parent, remove the call to add_separate_debug_objfile.
226 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
227 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
228 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
229 parent, new comment for it, call add_separate_debug_objfile for it.
230 (symbol_file_add_separate): Pass objfile as the parameter parent,
231 remove the call to add_separate_debug_objfile.
232 (symbol_file_add_from_bfd): New parameter parent, pass it.
233 (symbol_file_add): Pass NULL to the new parameter parent.
234 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
238 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
243 Fix Python access to inlined frames.
244 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
245 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
249 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
253 * MAINTAINERS: Add myself to write-after-approval section.
257 * remote-sim.c (sim_command_completer): New function.
258 (_initialize_remote_sim): Set completer to sim_command_completer.
262 * breakpoint.c (print_exception_catchpoint): Rename to ...
263 (print_it_exception_catchpoint): ... this.
264 (gnu_v3_exception_catchpoint_ops): Update with new name
265 for print_it_exception_catchpoint.
269 * MAINTAINERS: Add myself for write after approval privileges.
273 * MAINTAINERS: Add myself as a write-after-approval maintainer.
277 * breakpoint.c (watch_command_1): Remove colon from exp_string.
281 * breakpoint.c (save_breakpoints): Verify whether
282 breakpoint_ops.print_recreate is defined before calling it.
286 Fix failure with --enable-maintainer-mode.
287 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
292 * symtab.c (search_symbols): Reorder the KIND description in the
293 function comment. Remove the unused 4th element of types, types2,
294 types3 and types4. New gdb_assert on KIND.
295 (symtab_symbol_info): Remove the unused 4th element of classnames.
296 New gdb_assert on KIND.
297 * symtab.h (enum search_domain): New warning in the enum comment.
298 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
303 Fix crash of gdb save-index on a STABS file.
304 * dwarf2read.c (write_psymtabs_to_index): Return also on no
309 Fix DW_AT_accessibility compatibility with gcc-4.6+.
310 * dwarf2read.c: Include ctype.h.
311 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
313 (dwarf2_add_field): Fix new_field->accessibility by calling
314 dwarf2_default_access_attribute. Restructure setting accessibility
316 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
317 is_private and is_protected by calling
318 dwarf2_default_access_attribute.
322 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
323 to the initialization.
327 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
332 Remove support for old Cygwin 1.5 versions.
333 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
334 function on old Cygwin version.
335 * windows-nat.c: Remove cygwin version check and always define
336 __USEWIDE for Cygwin compilation.
340 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
342 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
343 (arm_copy_svc): Remove parameters INSN and TO.
344 (decode_svc_copro): Update caller.
345 * arm-tdep.h (struct displaced_step_closure): Remove parameters
346 from function pointer `copy_svc_os'.
350 * arm-tdep.c (cleanup_branch): Set a correct return address in
351 LR for ARM and Thumb.
356 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
357 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
358 in the function comment, a new note on values compatibility.
359 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
360 * symtab.h (SYMBOL_HASH_NEXT): New.
364 * ppc-linux-nat.c (check_condition): Add len output parameter.
365 Set it based on the memory region referenced in the condition
366 expression. Update all callers.
370 Fix crash regression on systems featuring .gdb_index.
371 * objfiles.c (free_objfile): Move the
372 forget_cached_source_info_for_objfile call earlier. Comment it.
373 Extend the comment for objfile_free_data.
377 Fix regression of displaying the debug format.
378 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
383 * cli/cli-interp.c (struct captured_execute_command_args):
385 (do_captured_execute_command): Remove.
386 (safe_execute_command): Use TRY_CATCH.
387 * cli/cli-script.c (struct wrapped_read_command_file_args):
389 (wrapped_read_command_file): Remove.
390 (script_from_file): Use TRY_CATCH.
391 * exceptions.c (catch_exception): Remove.
392 * exceptions.h (catch_exception): Remove.
393 (deprecated_throw_reason): Update comment.
394 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
395 argument to 'context'.
396 (mi_execute_command): Use TRY_CATCH.
397 * remote.c (struct start_remote_args): Remove.
398 (remote_start_remote): Update; change arguments.
399 (remote_open_1): Use TRY_CATCH.
403 * tracepoint.c (scope_info): Update.
404 * symtab.c (decode_line_spec): Update.
405 * python/python.c (gdbpy_decode_line): Update.
406 * linespec.h (decode_line_1): Update.
407 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
408 (decode_compound, find_method, symtab_from_filename)
409 (decode_variable): Likewise.
410 * cli/cli-cmds.c (edit_command): Update.
411 (list_command): Update.
412 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
414 (create_breakpoint): Update.
415 (until_break_command): Update.
416 (addr_string_to_sals): Update.
417 (decode_line_spec_1): Update.
421 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
422 (do_captured_parse_breakpoint): Remove.
423 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
424 Use TRY_CATCH directly.
428 * symtab.h (free_symtab): Remove.
429 (forget_cached_source_info_for_objfile): Declare.
430 * symmisc.c (free_symtab): Remove.
431 * source.c (forget_cached_source_info_for_objfile): New function.
432 (forget_cached_source_info): Use it.
433 * objfiles.c (free_objfile): Simplify check before calling
434 clear_current_source_symtab_and_line. Call
435 forget_cached_source_info_for_objfile.
439 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
440 (new_symtab): Don't set `free_code' on symtab.
441 (new_linetable): Properly handle size==0.
442 * symtab.h (struct symtab) <free_code, free_func>: Remove.
443 * symmisc.c (free_symtab): Don't free the linetable. Don't call
445 * jv-lang.c (struct jv_per_objfile_data): New.
446 (jv_per_objfile_free): Free the data.
447 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
448 (get_java_class_symtab): Set the `dict' field on the
450 (free_class_block): Remove.
451 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
456 * symfile.c (reread_symbols): Update.
457 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
459 * objfiles.c (allocate_objfile): Update.
460 * cp-support.h (cp_check_possible_namespace_symbols): Don't
462 * cp-namespace.c (lookup_symbol_file): Don't call
463 lookup_possible_namespace_symbol.
464 (initialize_namespace_symtab, get_possible_namespace_block)
465 (free_namespace_block, cp_check_possible_namespace_symbols)
466 (check_possible_namespace_symbols_loop)
467 (check_one_possible_namespace_symbol)
468 (lookup_possible_namespace_symbol): Remove.
469 (maintenance_cplus_namespace): Replace with notice.
470 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
474 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
475 * symtab.h (struct symtab) <producer, debugformat>: Now const.
476 * symmisc.c (free_symtab): Don't free debugformat.
477 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
478 (record_debugformat, record_producer): Document.
479 * buildsym.c (end_symtab): Don't save debugformat and producer
481 (end_symtab): Don't free debugformat and producer fields.
482 (record_debugformat): Don't call xstrdup.
483 (record_producer): Likewise.
487 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
488 (source_line_charpos, source_charpos_line): Remove.
492 * symtab.h (domain_enum): Split in two...
493 (enum search_domain): New.
494 (search_symbols): Update.
495 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
496 redundant declarations.
497 (search_symbols): Change 'kind' argument to search_domain.
499 (print_symbol_info): Likewise.
500 (symtab_symbol_info): Likewise.
501 * symfile.h (struct quick_symbol_functions)
502 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
503 <expand_symtabs_matching>: Likewise.
504 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
505 (expand_symtabs_matching_via_partial): Update.
506 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
507 (dw2_expand_symtabs_for_function): Update.
508 * block.h: Moved anonymous enum...
509 * defs.h (enum block_enum): ... here. Now named.
513 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
514 * version.in: Bump version to 7.3.50.20110403-cvs.
518 * NEWS: Create a new section for the next release branch.
519 Rename the section of the current branch, now that it has
524 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
525 for "fpscr" in target description.
529 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
530 initialize it. Delay HASH initialization. Strip the part after open
531 parenthesis for languages with qualifiers. Call do_cleanups.
535 * utils.c (report_command_stats): Don't print `-' for negative
540 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
541 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
546 * breakpoint.h (bpdisp_text): Add declaration.
547 * breakpoint.c (bpdisp_text): Make non-static.
548 * ada-lang.c: #include "mi/mi-common.h".
549 (print_it_exception): Rewrite to improve GDB/MI output.
553 * arm-tdep.h (struct address_space): Add forward declaration.
557 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
558 * arm-tdep.c (arm_override_mode): New global.
559 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
560 execution mode heuristics.
561 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
562 second single-step breakpoint if needed, using
563 arm_insert_single_step_breakpoint.
564 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
565 ARM execution mode, do not call thumb_get_next_pc_raw.
566 (arm_get_next_pc): Encode execution mode in return value. Call
567 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
568 (arm_insert_single_step_breakpoint): New function.
569 (arm_software_single_step): Call it.
570 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
571 argument to return execution mode of sigreturn target.
572 (arm_linux_syscall_next_pc): Use it.
573 (arm_linux_copy_svc): Update call.
574 (arm_linux_software_single_step): Call
575 arm_insert_single_step_breakpoint.
579 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
584 * varobj.c (update_dynamic_varobj_children): Properly handle
585 errors from iterator.
589 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
590 struct linkage name twice.
594 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
595 missing ">" to message.
599 * varobj.c (instantiate_pretty_printer): Remove duplicate
604 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
605 if neither saved value nor register available (e.g. signal frame).
609 * macroexp.c (expand): Avoid uninitialized variable
614 * breakpoint.c (break_range_command): Fix typo in comment.
619 Implement support for PowerPC BookE ranged breakpoints.
620 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
621 * breakpoint.h (struct bp_target_info) <length>: New member
623 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
624 instead of struct breakpoint as argument, and also add ASPACE
625 and BP_ADDR arguments. Update all callers.
626 (struct breakpoint_ops) <print_one_detail>: New method.
627 (struct breakpoint) <addr_string_range_end>: New member variable.
628 * breakpoint.c (breakpoint_location_address_match): Add function
630 (insert_bp_location): Set bl->target_info.length.
631 (breakpoint_here_p): Call breakpoint_location_address_match.
632 (moribund_breakpoint_here_p): Likewise.
633 (regular_breakpoint_inserted_here_p): Likewise.
634 (breakpoint_thread_match): Likewise.
635 (bpstat_stop_status): Likewise.
636 (bpstat_check_location): Move call to
637 breakpoint_ops.breakpoint_hit to the top.
638 (print_one_breakpoint_location): Call
639 breakpoint_ops.print_one_detail if available.
640 (breakpoint_address_match_range): New function.
641 (breakpoint_location_address_match): Likewise.
642 (breakpoint_locations_match): Compare the length field of the
644 (hw_breakpoint_used_count): Count resources used by all locations
645 in a breakpoint, and use breakpoint_ops.resources_needed if
647 (breakpoint_hit_ranged_breakpoint): New function.
648 (resources_needed_ranged_breakpoint): Likewise.
649 (print_it_ranged_breakpoint): Likewise.
650 (print_one_ranged_breakpoint): Likewise.
651 (print_one_detail_ranged_breakpoint): Likewise.
652 (print_mention_ranged_breakpoint): Likewise.
653 (print_recreate_ranged_breakpoint): Likewise.
654 (ranged_breakpoint_ops): New structure.
655 (find_breakpoint_range_end): New function.
656 (break_range_command): Likewise.
657 (delete_breakpoint): Free addr_string_range_end.
658 (update_breakpoint_locations): Add SALS_END argument. Update
659 all callers. Calculate breakpoint length if a non-zero SALS_END
660 is given. Call breakpoint_locations_match instead of
661 breakpoint_address_match.
662 (reset_breakpoint): Find SaL of the end of the range if B is a
664 (_initialize_breakpoint): Register break-range command.
665 * defs.h (print_core_address): Add function prototype.
666 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
668 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
669 (ppc_linux_remove_hw_breakpoint): Likewise.
670 (_initialize_ppc_linux_nat): Initialize
671 to_ranged_break_num_registers.
672 * target.c (update_current_target): Add comment about
673 to_ranged_break_num_registers.
674 (target_ranged_break_num_registers): New function.
675 * target.h (struct target_ops) <to_ranged_break_num_registers>:
677 (target_ranged_break_num_registers): Add function prototype.
678 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
679 * utils.c (print_core_address): ... here.
683 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
684 variable compiler warning.
688 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
690 (re_set_breakpoint): ... to here ...
691 (addr_string_to_sals): ... and here.
695 * Makefile.in (SFILES): Add missing C sources.
696 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
701 * .gitignore: New file.
705 * NEWS: Mention new cfi device simulation.
709 * dwarf2read.c (fixup_partial_die): Handle linkage name on
710 otherwise anonymous types.
711 (dwarf2_name): Likewise.
712 * valops.c (value_struct_elt_for_reference): Refine artificial
713 type logic. Call error if j==-1.
717 Fix false GCC warning.
718 * infcall.c (find_function_addr): Initialize funaddr.
722 Fix mingw compilation with --enable-targets=all.
723 * remote-mips.c (gdb_usleep.h): Include header.
724 (mips_enter_debug): Use gdb_usleep instead of sleep.
728 Support resolution of STT_GNU_IFUNC via breakpoints.
729 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
730 bp_gnu_ifunc_resolver_return.
731 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
732 the loop. Support bp_gnu_ifunc_resolver and
733 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
734 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
736 (bptype_string, print_one_breakpoint_location): Support
737 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
738 (user_settable_breakpoint): Return true also for
739 bp_gnu_ifunc_resolver.
740 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
741 bp_gnu_ifunc_resolver_return.
742 (set_breakpoint_location_function): New parameter explicit_loc,
743 describe it. Call find_pc_partial_function_gnu_ifunc with new
744 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
745 EXPLICIT_LOC is not set.
746 (set_raw_breakpoint): Set EXPLICIT_LOC for
747 set_breakpoint_location_function.
748 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
749 set_breakpoint_location_function.
750 (mention): Support bp_gnu_ifunc_resolver and
751 bp_gnu_ifunc_resolver_return.
752 (add_location_to_breakpoint): Set EXPLICIT_LOC for
753 set_breakpoint_location_function.
754 (update_breakpoint_locations): Remove static.
755 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
756 bp_gnu_ifunc_resolver_return.
757 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
758 bp_gnu_ifunc_resolver_return.
759 (update_breakpoint_locations): New declaration.
760 * elfread.c: Include gdbthread.h and regcache.h.
761 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
763 (elf_gnu_ifunc_fns): Install them.
764 * minsyms.c (stub_gnu_ifunc_resolver_stop)
765 (stub_gnu_ifunc_resolver_return_stop): New functions.
766 (stub_gnu_ifunc_fns): Install them.
767 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
768 and gnu_ifunc_resolver_return_stop.
769 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
773 STT_GNU_IFUNC reader implementation.
774 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
775 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
776 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
777 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
778 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
779 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
780 (elf_gnu_ifunc_resolve_addr): New.
781 (elf_symfile_read): Call elf_rel_plt_read.
782 (elf_gnu_ifunc_fns): New.
783 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
784 Install elf_gnu_ifunc_fns.
785 * infcall.c (find_function_return_type): New function.
786 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
787 * minsyms.c (stub_gnu_ifunc_resolve_addr)
788 (stub_gnu_ifunc_resolve_name): New functions.
789 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
790 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
791 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
795 Code cleanup for later STT_GNU_IFUNC support.
796 * infcall.c (find_function_addr): Remove variable code, use explicit
797 dereferences for it. Move VALUE_TYPE initialization later.
801 GDB find_pc_partial_function support for STT_GNU_IFUNC.
802 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
803 (clear_pc_function_cache): Clear it.
804 (find_pc_partial_function): Rename to ...
805 (find_pc_partial_function_gnu_ifunc): ... this function. New
806 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
807 (find_pc_partial_function): New wrapper for this function.
808 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
812 GDB internal type support for STT_GNU_IFUNC.
813 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
814 (elf_symtab_read): Set mst_text_gnu_ifunc for
815 BSF_GNU_INDIRECT_FUNCTION.
816 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
817 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
818 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
819 nodebug_got_plt_symbol.
820 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
821 (TYPE_GNU_IFUNC): New.
822 (struct main_type): New field flag_gnu_ifunc.
823 (struct builtin_type): New field builtin_func_func.
824 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
825 nodebug_got_plt_symbol.
826 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
827 (in_gnu_ifunc_stub): New.
828 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
830 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
831 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
832 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
834 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
835 * symtab.c (search_symbols): Likewise.
836 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
837 and mst_slot_got_plt.
838 (in_gnu_ifunc_stub): New declaration.
842 Support a ring of related breakpoints.
843 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
844 other functions, add gdb_assert.
845 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
846 watchpoint_del_at_next_stop.
847 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
848 (bpstat_stop_status): Handle ring in related_breakpoint.
849 (set_raw_breakpoint_without_location): Initialize ring in
851 (delete_breakpoint): Handle ring in related_breakpoint, use
852 watchpoint_del_at_next_stop.
853 (map_breakpoint_numbers): Handle ring in related_breakpoint.
858 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
859 with `language_minimal'.
863 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
864 instead of checking for STT_ARM_TFUNC symbol type.
868 * linespec.c (symbol_found): Restore line-based result for
869 non-LOC_LABEL symbols.
873 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
874 instead of strcmp for comparison.
875 (tui_source_is_displayed): Likewise.
876 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
880 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
882 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
883 (find_partial_die_in_comp_unit): Likewise in comment.
884 (read_attribute_value): Likewise.
885 (lookup_die_type): Likewise.
886 (dwarf_form_name): Likewise.
887 (dump_die_shallow): Likewise.
888 (follow_die_ref_or_sig): Likewise.
892 PR breakpoints/11816:
893 * linespec.c (decode_line_1): Parse `function:label' linespecs.
894 (decode_compound): Update.
895 (find_function_symbol): New function.
896 (decode_dollar): Update.
897 (decode_label): Add 'function_symbol' parameter. Handle
898 function-relative labels.
899 (decode_variable): Update.
900 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
901 not its line. Set `special_display' and canonical name for
906 * linespec.h (struct linespec_result) <special_display>: New
908 * breakpoint.h (struct breakpoint) <display_canonical>: New
910 * breakpoint.c (print_breakpoint_location): Respect
912 (create_breakpoint_sal): Add 'display_canonical' parameter.
913 (create_breakpoints_sal): Update.
914 (create_breakpoint): Update.
918 * symtab.c (decode_line_spec): Update.
919 * linespec.c (build_canonical_line_spec): Change type of
921 (decode_line_2, decode_line_1, decode_objc, decode_compound)
922 (find_method, decode_all_digits, decode_dollar, decode_label)
923 (symbol_found): Likewise.
924 (init_linespec_result): New function.
925 * breakpoint.c (struct captured_parse_breakpoint_args)
926 <canonical_p>: New field, replaces addr_string_p.
927 (create_breakpoints_sal): Add 'canonical' parameter, replacing
929 (parse_breakpoint_sals): Likewise.
930 (do_captured_parse_breakpoint): Update.
931 (create_breakpoint): Use struct linespec_result.
932 (until_break_command): Update.
933 (breakpoint_re_set_one): Update.
934 (decode_line_spec_1): Update.
935 * linespec.h (struct linespec_result): New.
936 (init_linespec_result): Declare.
940 * regcache.c (regcache_raw_read): If the target didn't supply a
941 given raw register, mark it as unavailable.
945 * breakpoint.c (clear_command): Use filename_cmp
946 instead of strcmp for comparison.
947 * buildsym.c (watch_main_source_file_lossage): Likewise.
948 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
949 checking just for slash.
950 * dbxread.c (read_dbx_symtab): Use lbasename instead of
951 strrchr and filename_cmp instead of strcmp for filenames.
952 (add_old_header_file): Use filename_cmp
953 instead of strcmp for comparison.
954 * exec.c (exec_set_section_address): Likewise.
955 * macrotab.c (macro_lookup_inclusion): Likewise.
956 (macro_lookup_inclusion): Likewise.
957 * elfread.c (_initialize_elfread): Likewise.
958 (elfstab_offset_sections): Likewise.
959 (elfstab_offset_sections): Use lbasename instead of
961 * mdebugread.c (parse_partial_symbols): Likewise.
962 (arse_partial_symbols): Use filename_(n)cmp instead of
963 str(n)cmp for comparison.
964 * minsyms.c (lookup_minimal_symbol): Likewise.
965 * psymtab.c (read_psymtabs_with_filename): Likewise.
966 * solib.c (solib_read_symbols): Likewise.
967 (reload_shared_libraries_1): Likewise.
968 * symmisc.c (maintenance_print_symbols): Likewise.
969 * symfile.c (separate_debug_file_exists): Likewise.
970 (reread_symbols): Likewise.
971 (find_separate_debug_file_by_debuglink): Likewise.
972 * remote-fileio.c (remote_fileio_func_rename): Likewise.
973 * source.c (add_path): Likewise.
974 * symtab.c (filename_seen): Likewise.
975 (file_matches): Likewise.
976 (print_symbol_info): Likewise.
977 (maybe_add_partial_symtab_filename): Likewise.
978 (make_source_files_completion_list): Likewise.
979 * xml-syscall.c (init_sysinfo): Likewise.
980 * windows-nat.c (_initialize_check_for_gdb_ini): Use
981 IS_DIR_SEPARATOR for checking for trailing path separator.
985 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
986 label abort_expression.
987 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
988 DWARF_VALUE_OPTIMIZED_OUT.
993 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
994 to linkage_name. Invert its value. Update the function comment.
995 (c_type_print_varspec_suffix): Invert it at the caller.
996 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1000 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1001 errors when reading the `stop_pc'.
1002 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1007 * NEWS: Document gdb.Write stream keyword.
1013 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1014 (dwarf2_add_field): Fix new_field->accessibility for
1015 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1021 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1022 other error classes. Do not print stack trace.
1026 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1027 (dwarf2_add_field): Fix new_field->accessibility for
1028 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1032 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1033 encountering a load via a non-SP register.
1037 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1038 field in returned unwinder.
1042 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1046 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1051 * frame.c (frame_unwind_register): Throw an error if unwinding the
1053 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1054 an unwind stop reason.
1055 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1056 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1057 UNWIND_UNAVAILABLE>: New.
1058 * inline-frame.c (inline_frame_unwind): Install
1059 default_frame_unwind_stop_reason.
1060 * frame-unwind.c: Include "exceptions.h".
1061 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1062 (default_frame_unwind_stop_reason): New.
1063 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1064 (default_frame_unwind_stop_reason): Declare.
1065 (struct frame_unwind) <stop_reason>: New function pointer.
1067 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1068 * dwarf2-frame.c: Include exceptions.h.
1069 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1070 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1071 computing the CFA. If such an error was thrown, set
1072 unavailable_retaddr.
1073 (dwarf2_frame_unwind_stop_reason): New.
1074 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1076 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1077 (dwarf2_signal_frame_unwind): Ditto.
1079 * amd64-tdep.c: Include "exceptions.h".
1080 (struct amd64_frame_cache): New field "base_p".
1081 (amd64_init_frame_cache): Clear it.
1082 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1083 Avoid reading registers with functions that throw if the register
1084 is not necessary to compute the frame base.
1085 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1086 swallowing NOT_AVAILABLE_ERROR.
1087 (amd64_frame_unwind_stop_reason): New.
1088 (amd64_frame_this_id): Don't build a frame id if the frame base
1090 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1091 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1092 base_p if the frame base was computable.
1093 (amd64_sigtramp_frame_unwind_stop_reason): New.
1094 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1095 frame base was unavailable.
1096 (amd64_sigtramp_frame_unwind): Install
1097 amd64_sigtramp_frame_unwind_stop_reason.
1098 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1099 base_p if the frame base was computable.
1100 (amd64_epilogue_frame_unwind_stop_reason): New.
1101 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1102 frame base was unavailable.
1103 (amd64_epilogue_frame_unwind): Install
1104 amd64_epilogue_frame_unwind_stop_reason.
1105 * i386-tdep.c: Include "exceptions.h".
1106 (struct i386_frame_cache): New field "base_p".
1107 (i386_init_frame_cache): Clear it.
1108 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1109 Avoid reading registers with functions that throw if the register
1110 is not necessary to compute the frame base.
1111 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1112 swallowing NOT_AVAILABLE_ERROR.
1113 (i386_frame_unwind_stop_reason): New.
1114 (i386_frame_this_id): Don't build a frame id if the frame base was
1116 (i386_frame_prev_register): Handle unavailable SP.
1117 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1118 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1119 base_p if the frame base was computable.
1120 (i386_epilogue_frame_unwind_stop_reason): New.
1121 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1122 base was unavailable.
1123 (i386_epilogue_frame_unwind): Install
1124 i386_epilogue_frame_unwind_stop_reason.
1125 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1126 base_p if the frame base was computable.
1127 (i386_sigtramp_frame_unwind_stop_reason): New.
1128 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1129 base was unavailable.
1130 (i386_sigtramp_frame_unwind): Install
1131 i386_sigtramp_frame_unwind_stop_reason.
1132 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1133 type's size, not the register's.
1134 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1136 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1137 default_frame_unwind_stop_reason.
1138 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1139 (alpha_heuristic_frame_unwind): Ditto.
1140 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1141 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1142 * avr-tdep.c (avr_frame_unwind): Ditto.
1143 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1145 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1146 * frv-tdep.c (frv_frame_unwind): Ditto.
1147 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1148 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1149 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1150 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1151 (hppa_stub_frame_unwind): Ditto.
1152 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1153 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1154 (ia64_libunwind_frame_unwind)
1155 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1156 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1157 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1158 * m32c-tdep.c (m32c_unwind): Ditto.
1159 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1160 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1161 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1162 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1163 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1164 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1165 * mep-tdep.c (mep_frame_unwind): Ditto.
1166 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1167 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1168 (mips_stub_frame_unwind): Ditto.
1169 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1170 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1171 * mt-tdep.c (mt_frame_unwind): Ditto.
1172 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1173 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1174 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1175 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1176 (s390_sigtramp_frame_unwind): Ditto.
1177 * score-tdep.c (score_prologue_unwind): Ditto.
1178 * sh-tdep.c (sh_frame_unwind): Ditto.
1179 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1180 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1181 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1182 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1183 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1184 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1185 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1186 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1187 (sparc64obsd_trapframe_unwind): Ditto.
1188 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1189 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1190 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1191 * v850-tdep.c (v850_frame_unwind): Ditto.
1192 * vax-tdep.c (vax_frame_unwind): Ditto.
1193 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1194 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1195 * xtensa-tdep.c (xtensa_unwind): Ditto.
1199 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1200 there's always a frame. Use get_frame_pc_if_available instead of
1201 get_frame_pc, and if there's no PC available, don't look up a
1206 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1211 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1216 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1217 * frame.c (frame_unwind_caller_pc_if_available): New.
1218 * stack.c (frame_info): Handle unavailable PC.
1222 * frame.c (frame_unwind_pc): Rename to ...
1223 (frame_unwind_pc_if_available): ... this. New `pc' output
1224 parameter. Change return type to int. Gracefully handle
1225 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1226 happened, or 1 otherwise.
1227 (frame_unwind_pc): Reimplement on top of
1228 frame_unwind_pc_if_available.
1229 (get_frame_func): Rename to ...
1230 (get_frame_func_if_available): New `pc' output parameter. Change
1231 return type to int. Gracefully handle the PC not being available.
1232 (get_frame_func): Reimplement on top of
1233 get_frame_func_if_available.
1234 (select_frame): Handle the PC being unavailable.
1235 (get_prev_frame): Handle the PC being unavailable.
1236 (get_frame_pc_if_available): New.
1237 (get_frame_address_in_block_if_available): New.
1238 (find_frame_sal): Handle the frame PC not being available.
1239 * frame.h (get_frame_pc_if_available): Declare.
1240 (get_frame_address_in_block_if_available): Declare.
1241 (get_frame_func_if_available): Declare.
1242 * stack.c (print_frame_info): Handle the PC being unavailable.
1243 (find_frame_funname): Ditto.
1244 (print_frame): Handle the PC being unavailable.
1245 (get_frame_language): Ditto.
1246 * blockframe.c (get_frame_block): Ditto.
1247 * macroscope.c (default_macro_scope): Ditto.
1248 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1252 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1253 NOT_AVAILABLE_ERROR when evaluating the location expression.
1257 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1258 returning that the register piece is unavailable/optimized out.
1259 (write_pieced_value): Handle get_frame_register_bytes returning
1260 that the register piece is unavailable/optimized out when doing a
1261 read-modify write of a bitfield.
1262 * findvar.c (value_from_register): Handle get_frame_register_bytes
1263 returning that the register piece is unavailable/optimized out.
1264 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1265 and `unavailablep'. Throw error on bad debug info. Use
1266 frame_register instead of frame_register_read, to fill in the new
1268 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1270 * valops.c: (value_assign): Adjust, and handle
1271 get_frame_register_bytes failing.
1272 * spu-tdep.c: Include exceptions.h.
1273 (spu_software_single_step): Adjust, and handle
1274 get_frame_register_bytes failing.
1275 (spu_get_longjmp_target): Ditto.
1276 * gdbarch.sh (register_to_value): Change to return int. New
1277 parameters `optimizedp' and `unavailablep'.
1278 * gdbarch.h, gdbarch.c: Regenerate.
1279 * i386-tdep.c (i386_register_to_value): Adjust to new
1280 gdbarch_register_to_value interface.
1281 * i387-tdep.c (i387_register_to_value): Ditto.
1282 * i387-tdep.h (i387_register_to_value): Ditto.
1283 * alpha-tdep.c (alpha_register_to_value): Ditto.
1284 * ia64-tdep.c (ia64_register_to_value): Ditto.
1285 * m68k-tdep.c (m68k_register_to_value): Ditto.
1286 * mips-tdep.c (mips_register_to_value): Ditto.
1287 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1291 * findvar.c (value_of_register): Mark the value as unavailable, if
1292 the register is unavailable.
1293 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1294 (frame_register): New `unavailablep' parameter.
1295 (frame_register_read): Update comment.
1296 * frame.c (frame_register_unwind): New `unavailablep' parameter.
1297 Set it if the register is unavailable. If the register is
1298 unavailable, clear the output buffer.
1299 (frame_register): New `unavailablep' parameter. Pass it down.
1300 (frame_unwind_register): Adjust.
1301 (put_frame_register): Adjust.
1302 (frame_register_read): Adjust. Also return false if the register
1304 (frame_register_unwind_location): Adjust.
1305 * sentinel-frame.c (sentinel_frame_prev_register): If the register
1306 is unavailable, mark the value accordingly.
1307 * stack.c (frame_info): Handle unavailable registers.
1311 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1312 simplify, using regcache_cooked_read.
1316 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1317 (regcache_raw_read_unsigned, regcache_raw_read_signed)
1318 (regcache_raw_read_unsigned, regcache_raw_read_part)
1319 (regcache_cooked_read, regcache_cooked_read_signed)
1320 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1321 (regcache_cooked_read_ftype): Change return to enum
1323 * regcache.c: Include exceptions.h
1324 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1325 (do_cooked_read): Change return to enum register_status. Always
1326 forward to regcache_cooked_read.
1327 (regcache_raw_read): Change return to enum register_status. If
1328 the register is not REG_VALID, memset the buffer. Return the
1330 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1331 return the register's status.
1332 (regcache_raw_read_unsigned): Ditto.
1333 (regcache_cooked_read): Change return to enum register_status.
1334 Assert that with read-only regcaches, the register's status must
1335 be known. If the regcache is read-only, and the register is not
1336 REG_VALID, memset the buffer. Return the register's status.
1337 (regcache_cooked_read_signed): Change return to enum
1338 register_status. Handle non-REG_VALID registers and return the
1340 (regcache_cooked_read_unsigned): Change return to enum
1341 register_status. Handle non-REG_VALID registers and return the
1343 (regcache_xfer_part, regcache_raw_read_part)
1344 (regcache_cooked_read_part): Change return to enum
1345 register_status. Return the register's status.
1346 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1348 (regcache_dump): Handle unavailable cooked registers.
1349 * frame.c (do_frame_register_read): Adjust interface to match
1350 regcache_cooked_read_ftype.
1351 * gdbarch.sh (pseudo_register_read): Change return to enum
1353 * gdbarch.h, gdbarch.c: Regenerate.
1355 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1357 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1358 register_status. If reading a raw register indicates the raw
1359 register is not valid, return the raw register's status,
1360 otherwise, return REG_VALID.
1361 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1362 register_status. Handle non-REG_VALID raw registers and return
1363 the register's status.
1364 * arm-tdep.c (arm_neon_quad_read)
1365 (arm_pseudo_read): Change return to enum register_status. Handle
1366 non-REG_VALID raw registers and return the register's status.
1367 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1368 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1369 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1370 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1371 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1373 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1374 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1375 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1376 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1377 (m32c_pseudo_register_read): Change return to enum
1378 register_status. Adjust.
1379 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1380 enum register_status. Return the register's status.
1381 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1382 register_status. Return the register's status.
1383 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1384 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1385 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1386 * rs6000-tdep.c (move_ev_register_func): New typedef.
1387 (e500_move_ev_register): Use it. Change return to enum
1388 register_status. Return the register's status.
1389 (do_regcache_raw_read): New function.
1390 (do_regcache_raw_write): New function.
1391 (e500_pseudo_register_read): Change return to enum
1392 register_status. Return the register's status. Use
1393 do_regcache_raw_read.
1394 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1395 (dfp_pseudo_register_read): Change return to enum register_status.
1396 Return the register's status.
1397 (vsx_pseudo_register_read): Ditto.
1398 (efpr_pseudo_register_read): Ditto.
1399 (rs6000_pseudo_register_read): Ditto.
1400 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1401 register_status. Return the register's status.
1402 * sh64-tdep.c (pseudo_register_read_portions): New function.
1403 (sh64_pseudo_register_read): Change return to enum
1404 register_status. Use pseudo_register_read_portions. Return the
1406 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1407 register_status. Return the register's status.
1408 * sh-tdep.c (pseudo_register_read_portions): New function.
1409 (sh_pseudo_register_read): Change return to enum register_status.
1410 Use pseudo_register_read_portions. Return the register's status.
1411 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1412 enum register_status. Return the register's status.
1413 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1414 * spu-tdep.c (spu_pseudo_register_read_spu)
1415 (spu_pseudo_register_read): Ditto.
1416 * xtensa-tdep.c (xtensa_register_read_masked)
1417 (xtensa_pseudo_register_read): Ditto.
1418 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1422 * python/py-value.c (valpy_getitem): Fix formatting of error function
1427 ARI fixes: Add missing internationalization markups throughout
1429 * darwin-nat-info.c: Ditto.
1432 * mi/mi-main.c: Ditto.
1436 ARI fixes: Add missing internationalization markups throughout
1439 * cp-name-parser.y: Ditto.
1442 * objc-exp.y: Ditto.
1447 ARI fixes: Messages should have no trailing new lines.
1448 * darwin-nat.c (mach_check_error): Remove trailing new line from
1449 warning function call message.
1450 * record.c (bfdcore_read): Idem for error call.
1454 * common/signals.c (target_signal_from_host): Add _ markup to error
1455 function call message.
1456 (target_signal_to_host): Add _ markup and remove trailing new line
1457 from warning call message.
1458 (target_signal_from_command): Add _ markup to error function call
1465 * python/python.c (gdbpy_write): Accept a stream argument and
1466 operate to the appropriate stream.
1467 (gdbpy_flush): Likewise.
1468 (_initialize_python): Add stream constants.
1469 (finish_python_initialization): Add GdbOutputErrorFile class.
1473 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1477 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
1478 to store_signed_integer. Add debug message when relocating CALL
1479 instructions. Fix formatting of debug message.
1480 * i386-tdep.c (i386_relocate_instruction): Ditto.
1484 * target.h (struct target_ops): Remove to_lookup_symbol field.
1485 (target_lookup_symbol): Delete macro.
1486 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
1487 (update_current_target, setup_target_debug): Remove handling
1488 of to_lookup_symbol target_ops field.
1489 * ada-tasks.c (get_known_tasks_addr): Remove use of
1490 target_lookup_symbol.
1491 * coffread.c (coff_symtab_read): Likewise.
1492 * dbxread.c (read_dbx_symtab): Ditto.
1497 * configure.ac: Add getthrds declaration check.
1498 * configure, config.in: Regenerate.
1499 * aix-thread.c (getthrds): Declare only if not already declared
1500 in procinfo.h. More declaration out of get_signaled_thread to
1505 * python/py-symtab.c: Populate symtab_object_methods,
1507 (stpy_is_valid): New function.
1508 (salpy_is_valid): Ditto.
1509 * python/py-symbol.c: Declare symbol_object_methods. Populate.
1510 (sympy_is_valid): New function.
1511 * python/py-objfile.c: Declare objfile_object_methods. Populate.
1512 (objfpy_is_valid): New function.
1513 * python/py-inferior.c: Populate inferior_object_methods.
1514 (infpy_is_valid): New function.
1515 * python/py-infthread.c: Populate thread_object_methods.
1516 (thpy_is_valid): New function.
1517 * python/py-block.c: Declare block_object_methods. Populate. Declare
1518 block_iterator_object_methods. Populate.
1519 (blpy_is_valid): New function.
1520 (blpy_iter_is_valid): Ditto.
1524 * linespec.c (find_methods): Canonicalize NAME before looking
1526 (name_end): New function.
1527 (keep_name_info): New function.
1528 (decode_line_1): Use keep_name_info.
1529 (decode_compound): Likewise.
1530 * cli/cli-utils.h (remove_trailing_whitespace): New function.
1531 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
1534 * linespec.c (locate_first_half): Keep overload information, too.
1535 (decode_compound): Use a string to represent break characters
1537 If P points to a break character, do not increment it.
1538 For C++ and Java, keep overload information and relevant keywords.
1539 If we cannot find a symbol, search the minimal symbols.
1542 * linespec.c (decode_compound): Rename SAVED_ARG to
1544 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1546 Pass a valid block to lookup_symbol.
1547 (lookup_prefix_sym): Likewise.
1548 (find_method): Construct search name based on SYM_CLASS instead
1550 * psymtab.c (lookup_partial_symbol): Add language parameter.
1551 (lookup_symbol_aux_psymtabs): Likewise.
1552 Don't assume that the psymtab we found was the right one. Search
1553 for the desired symbol in the symtab to be certain.
1554 (psymtab_search_name): New function.
1555 (lookup_partial_symbol): Use psymtab_search_name.
1556 Add language parameter.
1557 (read_symtabs_for_function): Add language parameter and pass to
1558 lookup_partial_symbol.
1559 (find_symbol_file_from_partial): Likewise.
1564 * dwarf2read.c (noop_record_line): New function.
1565 (dwarf_decode_lines): Ignore line tables for GCd functions.
1569 Fix ARI warnings about new lines at the end of messages, which
1570 are unneeded as there is a new line added at the end of the message
1572 * darwin-nat.c (darwin_stop_inferior): Ditto.
1573 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
1574 * dfp.c (decimal_to_number): Ditto.
1575 * exec.c (print_section_info): Ditto.
1576 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
1577 * osdata.c (get_osdata): Ditto.
1578 * record.c (bfdcore_write): Ditto.
1579 * remote-mips.c (mips_readchar): Ditto.
1580 * remote.c (read_ptid): Ditto.
1581 * ser-mingw.c (ser_windows_raw): Ditto.
1582 * tracepoint.c (add_local_symbols): Ditto.
1583 * windows-nat.c (fake_create_process): Ditto.
1587 * tracepoint.c (stop_tracing): Don't declare.
1588 * event-top.c (after_char_processing_hook): Add `(void)'.
1592 * NEWS: Add Parameter sub-classing description.
1596 * MAINTAINERS: Update my e-mail address.
1600 * MAINTAINERS: Add myself for write after approval privileges.
1604 * frame.c (find_frame_sal): Assert sym is not null.
1606 * dbxread.c (process_one_symbol): Assert 'name' is not null.
1608 * objc-lang.c (selectors_info): Check strchr for null result.
1610 * stabsread.c (define_symbol): Guard against bad stabstring input.
1614 Remove trailing spaces and tabulations from pascal language
1619 p-valprint.c: Ditto.
1623 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
1624 than LOW. Comment it.
1625 (read_partial_die): Call complaint for inappropriate zero LOWPC or
1626 HIGHPC not strictly higher than LOWPC.
1630 Fix formatting of function declarations returning a pointer in
1632 * varobj.c (varobj_add_child): Ditto.
1633 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
1634 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
1638 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
1639 for the "generic" vector ABI used with GCC 4.3 and later.
1640 (ppc64_sysv_abi_return_value): Likewise.
1644 * infcall.c (call_function_by_hand): Function return value is
1645 always a non_lval, even when using struct_return.
1649 * printcmd.c (ALL_DISPLAYS_SAFE): New.
1650 (map_display_numbers): New.
1651 (do_delete_display): New.
1652 (undisplay_command): Use map_display_numbers.
1653 (do_enable_disable_display): New.
1654 (enable_disable_display_command): New function.
1655 (enable_display): Delete.
1656 (enable_display_command): New.
1657 (disable_display_command): Reimplement.
1658 (_initialize_printcmd): Adjust "enable display" command to use
1659 `enable_display_command' as callback.
1663 * NEWS: Add Python breakpoint 'stop' operation.
1667 * NEWS: Delete duplicate entry. Fix typo.
1671 Fix ARI warning about function names in first column.
1672 Put prototype declaration on same line as return type.
1673 * objc-exp.y: Ditto.
1675 * python/py-stopevent.h: Ditto.
1676 For long function names, split parameters to
1677 allow function name on same line as return type.
1678 * solib-pa64.c: Ditto.
1681 For long function declaration, use single line.
1682 * hppa-tdep.h: Ditto.
1683 * inferior.h: Ditto.
1687 * python/python.h: Declare gdbpy_should_stop and
1688 gdbpy_breakpoint_has_py_cond.
1689 * python/python.c: Add python.h to includes. Remove python.h from
1690 HAVE_PYTHON definition
1691 (gdbpy_should_stop): New dummy function.
1692 (gdbpy_breakpoint_has_py_cond): New dummy function.
1693 * python/py-breakpoint.c (bppy_init): Rewrite to allow
1694 sub-classing capabilities.
1695 (gdbpy_should_stop): New function.
1696 (gdbpy_breakpoint_has_py_cond): New function.
1697 (local_setattro): New function.
1698 * breakpoint.c (condition_command): Add check for Python 'stop'
1700 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
1701 operation function as part of stop/continue tests.
1706 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
1707 (needs_frame_dwarf_call): Likewise.
1711 Fix ARI warning about functions without parameters that do not
1713 * breakpoint.c (all_tracepoints): Replace () by (void).
1714 * f-exp.y (match_string_literal): Ditto.
1716 * m2-exp.y (yylex): Ditto.
1717 * mep-tdep.c (current_me_module): Ditto.
1718 (current_options): Ditto.
1719 (current_cop_data_bus_width): Ditto.
1720 (current_cr_names): Ditto.
1721 (current_cr_is_float): Ditto.
1722 (current_ccr_names): Ditto.
1723 * objc-exp.y (yylex): Ditto.
1724 * p-exp.y (yylex): Ditto.
1725 * remote.c (send_interrupt_sequence): Ditto.
1726 * tracepoint.c (current_trace_status): Ditto.
1727 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
1728 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
1732 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
1733 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
1734 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
1735 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
1736 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
1738 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
1739 (delete_async_event_handler): Ditto.
1741 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
1743 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
1745 * top.c (set_verbose): Assert showcmd was found.
1749 * xtensa-tdep.c (warning_once): Correct style issues.
1753 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
1757 * common/aclocal.m4: Remove.
1761 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
1762 (xtensa_write_register, xtensa_read_register): Likewise.
1763 (xtensa_hextochar): Removed.
1764 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
1768 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
1769 (xtensa_call0_frame_cache_t): Update comments. New fields added.
1770 (xtensa_alloc_frame_cache): Add initialization for new fields.
1771 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
1772 (warning_once): New function.
1773 (xtensa_insn_kind): New item c0opc_and.
1774 (call0_classify_opcode): Add the case for AND instruction.
1775 (call0_track_op): Change arguments. New local variable litbase.
1776 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
1777 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
1779 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
1780 (call0_analyze_prologue): Update the comments. Change arguments.
1781 Add the variety of updates to handle extended prologues, which now can
1782 conduct dynamic stack adjustments.
1783 (call0_frame_cache): Likewise.
1784 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
1785 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
1789 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
1790 (cmd_qtframe): Ditto.
1791 (cmd_qtbuffer): Ditto.
1792 (cmd_bigqtbuffer): Ditto.
1796 * tracepoint.c (trace_actions_command): Update.
1797 * thread.c (thread_apply_command): Update.
1798 * reverse.c (delete_bookmark_command): Update.
1799 (bookmarks_info): Update.
1800 * printcmd.c (undisplay_command): Update.
1801 * memattr.c (mem_enable_command): Update.
1802 (mem_disable_command): Update.
1803 (mem_delete_command): Update.
1804 * inferior.c (detach_inferior_command): Update.
1805 (kill_inferior_command): Update.
1806 (remove_inferior_command): Update.
1807 * cli/cli-utils.h (struct get_number_or_range_state): New.
1808 (init_number_or_range): Declare.
1809 (get_number_or_range): Update.
1810 * cli/cli-utils.c (init_number_or_range): New function.
1811 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
1813 (number_is_in_list): Update.
1814 * breakpoint.h (get_tracepoint_by_number): Update.
1815 * breakpoint.c (map_breakpoint_numbers): Update for change to
1816 get_number_or_range.
1817 (find_location_by_number): Use get_number, not
1818 get_number_or_range.
1819 (trace_pass_set_count): New function.
1820 (trace_pass_command): Update for change to get_number_or_range.
1822 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
1827 * python/py-param.c (add_setshow_generic): Add set/show callback
1828 parameters. Register Python object context.
1829 (get_show_value): New function.
1830 (get_set_value): New function.
1831 (call_doc_function): New function.
1832 (get_doc_string): Move behind get_show_value/get_set_value.
1836 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
1840 * xtensa-tdep.c (xtensa_read_register): Add comment.
1841 (xtensa_write_register): Likewise.
1842 (xtensa_hextochar): Add comment and update to match coding conventions.
1843 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
1844 (execute_l32e, execute_s32e, execute_code): Update comments.
1845 (xtensa_exception_handler_t): Update to match coding conventions.
1846 (xtensa_insn_kind): Likewise.
1850 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
1854 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
1858 * thread.c (restore_selected_frame): Handle frame_level == -1.
1859 (make_cleanup_restore_current_thread): Use
1860 get_selected_frame_if_set.
1861 * frame.h (get_selected_frame_if_set): Declare.
1862 * frame.c (get_selected_frame_if_set): New function.
1866 * cli/cli-cmds.c (shell_escape): Use lbasename.
1867 * coffread.c (coff_start_symtab): Constify parameter.
1868 (complete_symtab): Constify `name' parameter.
1869 (coff_symtab_read): Constify `filestring' local.
1870 (coff_getfilename): Constify return and `result' local.
1872 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
1873 * linux-fork.c (info_checkpoints_command): Use lbasename.
1874 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
1875 * minsyms.c (lookup_minimal_symbol): Use lbasename.
1876 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
1877 * procfs.c (procfs_make_note_section): Use lbasename.
1878 * tui/tui-io.c (printable_part): Constity return and parameter.
1880 (print_filename): Constify parameters, and local `s'.
1881 (tui_rl_display_match_list): Constify local `temp'.
1887 Fix DWARF-3+ DW_AT_accessibility default assumption.
1888 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1889 cu->header.version >= 3.
1893 * common/Makefile.in: Remove.
1894 * common/configure: Remove.
1895 * common/configure.ac: Remove.
1902 * common/Makefile.in: Add copyright header.
1906 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1908 * configure.ac: Add common to sub dir.
1909 * configure: Regenerate.
1913 * xtensa-tdep.c (call0_ret): New function.
1914 (xtensa_skip_prologue): Speed up analysis.
1918 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
1919 while executing MI command -data-list-changed-registers.
1923 * xtensa-tdep.c (xtensa_read_register): New function.
1924 (xtensa_write_register): New function.
1925 (xtensa_find_register_by_name): New function.
1926 (xtensa_windowed_frame_cache): Update comments in type description.
1927 (xtensa_frame_cache): Likewise.
1928 (xtensa_window_interrupt_insn): New function.
1929 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
1930 (xtensa_insn_kind): Add new instructions.
1931 (rwx_special_register): New function.
1932 (call0_classify_opcode): Add new instructions to the analysis.
1933 (a0_saved, a7_saved, a11_saved): New variables.
1934 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
1935 (execute_l32e): New function.
1936 (execute_s32e): New function.
1937 (xtensa_exception_handler_t): New type.
1938 (execute_code): New function.
1939 (xtensa_window_interrupt_frame_cache): New function to conduct frame
1940 analysis for Xtensa Window Exception handlers.
1944 * xtensa-tdep.c (TX_PS): New.
1945 (windowing_enabled): Update to count for Call0 ABI.
1946 (xtensa_hextochar): New.
1947 (xtensa_init_reggroups): Make algorithm generic.
1948 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
1952 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
1956 * i386-tdep.c (i386_follow_jump): Check return value of
1958 (i386_analyze_struct_return): Ditto.
1959 (i386_skip_probe): Ditto.
1960 (i386_match_insn): Ditto.
1961 (i386_skip_noop): Ditto.
1962 (i386_analyze_frame_setup): Ditto.
1963 (i386_analyze_register_saves): Ditto.
1964 (i386_skip_prologue): Ditto.
1965 (i386_skip_main_prologue): Ditto.
1967 * target.c (read_whatever_is_readable): Fix memory leak.
1969 * i386-tdep.c (i386_process_record): Document fall through.
1973 Fix DWARF-3+ DW_AT_accessibility default assumption.
1974 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1975 cu->header.version >= 3.
1979 * remote.c (remote_check_symbols): Skip if the target has no
1984 * target.c (read_whatever_is_readable): Reformat comment,
1985 with a minor typo fix. Minor reformatting of the code.
1989 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
1990 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
1991 Use cached result instead of calling displaced_in_arm_mode again.
1992 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
1993 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
1994 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
1995 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
1996 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
1997 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
1998 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
1999 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2000 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2001 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2002 (arm_catch_kernel_helper_return): Likewise.
2003 * gdb/arm-tdep.h : Update function declarations.
2007 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2009 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2011 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2013 * elfread.c (elf_symtab_read): Stop memory leak.
2015 * main.c (captured_main): Fix memory leak.
2019 * ada-lang.c (compare_names): Call is_name_suffix with string1
2024 * xcoffread.c (xcoff_sym_fns): Update.
2025 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2026 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2027 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2028 (symbol_file_add_with_addrs_or_offsets): Likewise.
2029 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2030 * somread.c (som_sym_fns): Update.
2031 * psymtab.h (require_partial_symbols): Declare.
2032 * psymtab.c (require_partial_symbols): New function.
2033 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2034 (ALL_OBJFILE_PSYMTABS): Undef.
2035 (ALL_PSYMTABS): Move from psympriv.h.
2036 (lookup_partial_symtab, find_pc_sect_psymtab)
2037 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2038 (find_last_source_symtab_from_partial)
2039 (forget_cached_source_info_partial)
2040 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2041 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2042 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2043 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2044 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2045 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2046 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2047 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2048 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2050 * mipsread.c (ecoff_sym_fns): Update.
2051 * machoread.c (macho_sym_fns): Update.
2052 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2053 (read_psyms): New function.
2054 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2055 (elf_sym_fns_lazy_psyms): New global.
2056 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2057 dwarf2_build_psymtabs.
2058 * dbxread.c (aout_sym_fns): Update.
2059 * coffread.c (coff_sym_fns): Update.
2063 * infrun.c (print_exited_reason): Include inferior id and pid in
2068 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2070 (target_has_execution_1): Update.
2071 (target_has_execution_current): Declare.
2072 (target_has_execution): Call target_has_execution_current.
2073 (default_child_has_execution): Update.
2074 * target.c (default_child_has_execution): Add 'the_ptid'
2076 (target_has_execution_1): Likewise.
2077 (target_has_execution_current): New function.
2078 (add_target): Update.
2079 (init_dummy_target): Update.
2080 * remote-m32r-sdi.c (m32r_has_execution): New function.
2081 (init_m32r_ops): Use it.
2082 * record.c (record_core_has_execution): Now static. Add
2083 'the_ptid' parameter.
2084 * inferior.c (have_live_inferiors): Don't save current thread.
2085 Use target_has_execution_1.
2089 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2093 * elfread.c (elf_symtab_read): Minor reformatting.
2097 * objc-lang.c (selectors_info): Minor reformatting.
2101 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2106 * ada-valprint.c (ada_val_print_array): Move the declaration of
2107 "byte_order" and "elttype" inside the block where these variables
2108 are actually used. Remove some special handling for the case
2109 where "elttype" and "eltlen" are null. Replace by a comment
2110 and a couple of assertion checks.
2114 * source.c (add_path): Replace semicolon at end of block.
2115 * dwarf2expr.c (execute_stack_op): Ditto.
2119 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2120 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2121 (bfin-*-*): Likewise.
2125 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2126 * mdebugread.c (parse_symbol): Ditto.
2127 * parse.c (parse_exp_in_context): Ditto.
2128 * source.c (add_path): Ditto.
2129 * utils.c (gnu_debuglink_crc32): Ditto.
2130 * varobj.c (variable_language): Ditto.
2132 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2136 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2138 * symfile.c (simple_overlay_update): Check for null return value
2139 from lookup_minimal_symbol.
2141 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2145 * eval.c (parse_and_eval_address_1): Remove function.
2146 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2147 instead of parse_and_eval_address_1.
2148 * value.h (parse_and_eval_address_1): Remove prototype.
2152 * remote.c (putpkt_binary): Document that case stmt falls through.
2156 * breakpointc (print_it_typical): Move NULL check from here...
2157 (print_bp_stop_message): ... to here.
2161 * breakpoint.c (enable_command): Use break instead of continue,
2162 and fill in a missing break.
2163 (disable_command): Ditto.
2167 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2168 (terminal_save_ours): Remove misleading comment.
2169 (inflow_inferior_data_cleanup): Free ttystate.
2170 (inflow_inferior_exit): Likewise.
2171 (copy_terminal_info): Copy ttystate.
2173 * serial.c (serial_copy_tty_state): New function.
2174 * serial.h (serial_copy_tty_state): Add prototype.
2175 (struct serial_ops): Add copy_tty_state callback.
2176 * ser-base.c (ser_base_copy_tty_state): New function.
2177 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2178 * ser-go32.c (dos_copy_tty_state): New function.
2179 (dos_ops): Install copy_tty_state callback.
2180 * ser-mingw.c (_initialize_ser_windows): Likewise.
2181 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2182 * ser-unix.c (hardwire_copy_tty_state): New function.
2183 (_initialize_ser_hardwire): Install it.
2187 * breakpoint.c (create_breakpoint): Add missing break statement.
2189 Reverting this patch:
2190 * infcall.c (call_function_by_hand): Add break statements for lint.
2192 Reverting this patch:
2193 * cli/cli-script.c (script_from_file): Add break for lint.
2197 * solib.c (reload_shared_libraries_1): Close memory leak.
2202 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2207 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2208 fields of struct 'st' to zero.
2210 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2211 sal.pspace before calling set_current_source_symtab_and_line.
2215 * Makefile.in (configure-common): Remove. Let Makefile
2216 in dir common to rebuild itself.
2217 (common/Makefile): Likewise.
2221 * utils.c (parse_escape): Add i18n markup in error message.
2225 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2227 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2228 (displaced_write_reg, displaced_read_reg): Likewise.
2229 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2230 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2231 (cleanup_branch): Replace magic number 14 and 15 with
2232 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2236 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2238 * cli/cli-script.c (script_from_file): Add break for lint.
2240 * mdebugread.c (parse_partial_symbols): Fix indent.
2242 * target-descriptions.c (tdesc_gdb_type): No need to call
2243 xstrdup, callee saves a copy.
2245 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2247 * infcall.c (call_function_by_hand): Add break statements for lint.
2249 * utils.c (parse_escape): Escape the escape char.
2251 * python/py-inferior.c (build_inferior_list): Error out if
2252 PyList_Append fails.
2253 (gdbpy_inferiors): Error out if build_inferior_list fails.
2255 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2258 * record.c (record_restore): Move printf to before error return.
2262 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2263 is_thumb and insn_size.
2264 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2265 on both ARM and Thumb mode.
2266 (arm_process_displaced_insn): Set is_thumb and insn_size.
2267 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2268 (arm_displaced_step_fixup): Likewise.
2272 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2274 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2276 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2278 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2280 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2283 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2284 which shadows function parameter.
2286 * tracepoint.c (create_tsv_from_upload): Superfluous call
2287 to xstrdup. Callee already calls xstrdup.
2289 * linespec.c (decode_line_1): Remove unnecessary null check.
2291 * tracepoint.c (scope_info): Fix mem leak, remove underused
2294 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2295 superfluous null check.
2297 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
2298 (value_of_builtin_frame_fp_reg): Ditto.
2300 * event-top.c (display_gdb_prompt): Remove superfluous null check.
2302 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2305 * linespec.c (decode_line_1): Check for null before dereference.
2307 * reverse.c (record_restore): Move null-check to before pointer
2310 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2312 * objc-lang.c (selectors_info): Add explanitory comment.
2313 (classes_info): Ditto.
2317 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2318 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2319 versions of the trampoline. Handle Thumb vs. ARM addresses.
2320 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2321 (arm_linux_init_abi): Install it.
2322 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2323 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2327 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2328 a little bigger, to avoid possibility of an overflow.
2330 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2331 buffers a little bigger, to avoid possibility of an overflow.
2333 * coffread.c (coff_getfilename): Add check to avoid overflow.
2335 * objc-lang.c (selectors_info): Add a small safety margin to
2337 (classes_info): Error out on too long REGEXP.
2339 * infrun.c (handle_inferior_event): Remove unused function call.
2341 * fork-child.c (fork_inferior): Remove ifdef'd code and
2344 * linux-thread-db.c (attach_thread): Discard unused value.
2346 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2348 * remote.c (remote_get_noisy_reply): Discard unused value.
2349 (remote_vcont_resume): Ditto.
2350 (remote_stop_ns): Ditto.
2352 * linespec.c (decode_objc): Delete unused variable.
2354 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2356 * dwarf2read.c (add_partial_symbol): Discard unused values.
2357 (read_base_type): Delete unused variable.
2359 * dbxread.c (read_dbx_symtab): Discard unused value.
2361 * eval.c (evaluate_subexp_standard): Delete unused variable,
2362 and discard unused values.
2364 * infcmd.c (_initialize_infcmd): Discard unused values.
2366 * stabsread.c (rs6000_builtin_type): Missing break statement.
2368 * dbxread.c (process_one_symbol): Discard unused value.
2370 * coffread.c (coff_end_symtab): Delete unused variable.
2372 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2373 (dwarf2_add_typedef): Delete unused variable.
2374 (read_namespace): Ditto.
2375 (dwarf_decode_macros): Ditto.
2377 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2379 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2381 * p-valprint.c (pascal_val_print): Discard unused value.
2383 * utils.c (nquery): Call va_end before return;
2387 * proc-service.c (ps_plog): Call va_end before return.
2391 * python/python.c (gdbpy_value_cst): New global.
2392 (_initialize_python): Initialize it.
2393 * python/python-internal.h (gdbpy_value_cst): Declare.
2394 * python/py-value.c (convert_value_from_python): Use
2399 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2401 * breakpoint.c (catch_syscall_completer): Free malloced list.
2403 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2405 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2406 (lval_func_check_synthetic_pointer): Ditto.
2407 (lval_func_free_closure): Fix use-after-free.
2411 * psymtab.c (expand_partial_symbol_tables): Use
2412 ALL_OBJFILE_PSYMTABS.
2416 * objc-lang.c (selectors_info): Error on too long REGEXP.
2420 * python/py-param.c (set_parameter_value): Add missing
2423 * linux-record.c (record_linux_system_call): Add missing
2428 * breakpoint.c (print_one_breakpoint_location): Remove unused
2429 argument PRINT_ADDRESS_BITS. Update callers.
2430 (print_one_breakpoint): Likewise.
2434 * breakpoint.c (wrap_indent_at_field): New function.
2435 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2436 Allocate ui_stream locally instead of using STB argument.
2437 (print_one_breakpoint_location): Update call.
2438 * ui-out.c (ui_out_query_field): New function.
2439 * ui-out.h (ui_out_query_field): Add prototype.
2444 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
2448 * objc-lang.c (selectors_info): Prevent string overrun.
2450 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
2453 * symtab.c (rbreak_command): Move variable 'file_name' to
2456 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
2457 param with a local variable of the same name.
2461 * value.c (value_from_history_ref): New function.
2462 * value.h (value_from_history_ref): Export.
2463 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
2464 to parse value history references.
2465 * cli/cli-utils.h (get_number_trailer): Update comment.
2469 * inferior.c (detach_inferior_command): Use get_number_or_range.
2470 (kill_inferior_command): Ditto.
2471 (remove_inferior_command): Ditto.
2472 (initialize_inferiors): Make command names plural.
2473 Update help strings.
2477 * darwin-nat-info.c: Fix comment typo.
2478 * dwarf2expr.h: Ditto.
2479 * fbsd-nat.c: Ditto.
2480 * fbsd-nat.h: Ditto.
2481 * frame-unwind.h: Ditto.
2483 * hppa-hpux-tdep.c: Ditto.
2484 * i386-linux-nat.c: Ditto.
2485 * linux-nat.c: Ditto.
2486 * nbsd-nat.c: Ditto.
2487 * nbsd-nat.h: Ditto.
2488 * ppc-linux-tdep.c: Ditto.
2491 * tui/tui-winsource.c: Ditto.
2495 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
2497 * maint.c (maintenance_do_deprecate): Plug a memory leak.
2499 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
2500 with a local variable of the same name.
2502 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
2503 param with a local variable of the same name.
2504 (i387_supply_xsave): Ditto.
2506 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
2507 that it does not shadow a function parameter.
2509 * i386-nat.c (i386_length_and_rw_bits): Document that case
2510 statement is meant to fall through.
2512 * expprint.c (dump_subexp_body_standard): Document that case
2513 statement is meant to fall through.
2515 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
2516 dead if statement. Condition can't be false.
2520 * arm-tdep.c: Fix typos in comments.
2521 * bsd-uthread.c: Ditto.
2522 * completer.c: Ditto.
2524 * cp-namespace.c: Ditto.
2525 * cp-support.c: Ditto.
2526 * cris-tdep.c: Ditto.
2528 * dwarf2read.c: Ditto.
2530 * gdbtypes.h: Ditto.
2531 * inferior.h: Ditto.
2532 * mdebugread.c: Ditto.
2533 * mips-tdep.c: Ditto.
2534 * ppc-linux-nat.c: Ditto.
2535 * ppc-linux-tdep.c: Ditto.
2536 * printcmd.c: Ditto.
2537 * sol-thread.c: Ditto.
2538 * solib-frv.c: Ditto.
2540 * sparc64-tdep.c: Ditto.
2541 * spu-tdep.c: Ditto.
2542 * stabsread.c: Ditto.
2547 * python/py-block.c: Ditto.
2548 * python/py-symbol.c: Ditto.
2549 * python/py-symtab.c: Ditto.
2550 * python/py-value.c: Ditto.
2551 * tui/tui-win.c: Ditto.
2555 * inferior.c (print_inferior): Accept a string instead of an int
2556 for requested_inferiors, and use get_number_or_range to parse it.
2557 (info_inferiors_command): Pass args string to print_inferior.
2558 (initialize_inferiors): Change help string for info inferiors.
2559 * inferior.h (print_inferior): Export prototype change.
2563 * common/ax.def (invalid2): Set to 0x31.
2567 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
2569 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
2571 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
2575 * Makefile.in (clean): Make clean should remove generated files
2576 observer.h and observer.inc.
2580 Revert the following patch (not approved yet):
2582 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2583 * ax-gdb.c (gen_printf_expr_callback): New function.
2584 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2585 * ax-general.c (ax_memcpy): New function.
2586 (ax_print): Handle "printf".
2588 * ax.h (ax_memcpy): Forward declare.
2589 * common/ax.def (invalid2): Removed.
2590 (printf): New entry.
2591 * printcmd.c (printcmd.h): New include.
2592 (string_printf): New function.
2593 (ui_printf): Removed.
2594 (printf_command): Remove static. Call string_printf.
2595 (eval_command): Call string_printf.
2596 * printcmd.h: New file.
2597 * tracepoint.c (validate_actionline,
2598 encode_actions_1): handle printf_command.
2602 * ax-general.c (ax_pick): Add missing newline.
2606 * breakpoint.c (breakpoint_1): Change first argument from an int
2607 to a char pointer, so that the function now accepts a list of
2608 breakpoints rather than just one. Use new function
2609 'number_is_in_list' to implement.
2610 (breakpoints_info): Pass char * instead of int to breakpoint_1.
2611 (watchpoints_info): Ditto.
2612 (tracepoints_info): Ditto.
2613 (maintenance_info_breakpoints): Ditto.
2614 (_initialize_breakpoint): Update help strings to reflect the fact
2615 that these functions can now take more than one argument.
2616 * cli/cli-utils.c (number_is_in_list): New function.
2617 * cli/cli-utils.h (number_is_in_list): Export.
2621 * memattr.c (mem_enable_command): Use get_number_or_range.
2622 (mem_disable_command): Ditto.
2623 (mem_delete_command): Ditto.
2624 (_initialize_mem): Tweak usage message to reflect multiple
2629 Add gdb.lookup_global_symbol python function.
2631 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
2632 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
2633 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
2637 * language.c (language_class_name_from_physname): Rename
2638 'curr_language' argument to 'lang'; use in body.
2642 * cli/cli-utils.c (number_is_in_list): Check for zero return.
2646 * frame-unwind.h: Fix comment to mention the this frame, not the
2651 * symfile.c (auto_solib_limit): Remove.
2652 * symfile.h (auto_solib_limit): Remove.
2656 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
2660 * gdbthread.h (print_thread_info): Change prototype.
2661 * thread.c (print_thread_info): Accept char* instead of int for
2662 requested_threads argument. Use new function number_is_in_list
2663 to determine which threads to list.
2664 (info_threads_command): Pass char* to print_thread_info.
2665 * cli/cli-utils.c (number_is_in_list): New function.
2666 * cli/cli-utils.h (number_is_in_list): Export.
2667 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
2669 (print_one_inferior): Ditto.
2670 (mi_cmd_list_thread_groups): Ditto.
2674 * common/Makefile.in (CFLAGS): New.
2675 (COMPILE): Add $(CFLAGS).
2679 * breakpoint.c (catch_syscall_command_1): Fix typo.
2683 * reverse.c: Include cli-utils.h.
2684 * printcmd.c: Include cli-utils.h.
2685 (string_printf): Use skip_spaces.
2686 * cli/cli-utils.h: New file.
2687 * cli/cli-utils.c: New file.
2688 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
2689 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
2690 * breakpoint.h (get_number, get_number_or_range): Move to
2692 * breakpoint.c: Include cli-utils.h.
2693 (get_number_trailer, get_number, get_number_or_range)
2694 (ep_skip_leading_whitespace): Move to cli-utils.c.
2695 (create_breakpoint_sal, find_condition_and_thread)
2696 (decode_static_tracepoint_spec, watch_command_1)
2697 (watch_maybe_just_location, ep_parse_optional_if_clause)
2698 (catch_fork_command_1, catch_exec_command_1)
2699 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
2700 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
2701 (SUBDIR_CLI_SRCS): Add cli-utils.c.
2702 (HFILES_NO_SRCDIR): Add cli-utils.h.
2703 (cli-utils.o): New target.
2707 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
2708 before calling discard_all_inferiors.
2712 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
2713 (struct builtin_opencl_type): Remove.
2714 (builtin_opencl_type): Change return type to "struct type **".
2715 (lookup_opencl_vector_type): Update caller.
2716 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
2717 (build_opencl_types): Install plain array of "struct type *"
2718 instead of "struct builtin_opencl_type".
2723 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
2724 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
2725 (struct arm_linux_hwbp_cap): New type.
2726 (arm_linux_get_hwbp_cap): New function.
2727 (arm_linux_get_hw_breakpoint_count): Likewise.
2728 (arm_linux_get_hw_watchpoint_count): Likewise.
2729 (arm_linux_can_use_hw_breakpoint): Likewise.
2730 (arm_hwbp_type): New type.
2731 (arm_hwbp_control_t): Likewise.
2732 (struct arm_linux_hw_breakpoint): Likewise.
2733 (struct arm_linux_thread_points): Likewise.
2734 (arm_threads): New global variable.
2735 (arm_linux_find_breakpoints_by_tid): New function.
2736 (arm_hwbp_control_initialize): Likewise.
2737 (arm_hwbp_control_is_enabled): Likewise.
2738 (arm_hwbp_control_disable): Likewise.
2739 (arm_linux_hw_breakpoint_initialize): Likewise.
2740 (arm_linux_get_hwbp_type): Likewise.
2741 (arm_linux_hw_watchpoint_initialize): Likewise.
2742 (arm_linux_hw_breakpoint_equal): Likewise.
2743 (arm_linux_insert_hw_breakpoint1): Likewise.
2744 (arm_linux_remove_hw_breakpoint1): Likewise.
2745 (arm_linux_insert_hw_breakpoint): Likewise.
2746 (arm_linux_remove_hw_breakpoint): Likewise.
2747 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
2748 (arm_linux_insert_watchpoint): Likewise.
2749 (arm_linux_remove_watchpoint): Likewise.
2750 (arm_linux_stopped_data_address): Likewise.
2751 (arm_linux_stopped_by_watchpoint): Likewise.
2752 (arm_linux_watchpoint_addr_within_range): Likewise.
2753 (arm_linux_new_thread): Likewise.
2754 (arm_linux_thread_exit): Likewise.
2755 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
2756 related target callbacks. Register arm_linux_new_thread and
2757 arm_linux_thread_exit.
2758 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
2759 * arm-tdep.c (arm_pc_is_thumb): Make global.
2760 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
2764 * breakpoint.c (update_watchpoint): Do not attempt to recreate
2765 per-frame locations while within a function epilogue.
2769 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
2770 to GNU coding standards.
2774 Allow use of mingw native on Windows 95 OS.
2775 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
2776 (ser_windows_close): Only call CancelIo if function exists.
2777 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
2778 to check for existence of CancelIo function in kernel32 DLL.
2782 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2783 * ax-gdb.c (gen_printf_expr_callback): New function.
2784 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2785 * ax-general.c (ax_memcpy): New function.
2786 (ax_print): Handle "printf".
2788 * ax.h (ax_memcpy): Forward declare.
2789 * common/ax.def (invalid2): Removed.
2790 (printf): New entry.
2791 * printcmd.c (printcmd.h): New include.
2792 (string_printf): New function.
2793 (ui_printf): Removed.
2794 (printf_command): Remove static. Call string_printf.
2795 (eval_command): Call string_printf.
2796 * printcmd.h: New file.
2797 * tracepoint.c (validate_actionline,
2798 encode_actions_1): handle printf_command.
2802 * reverse.c (delete_one_bookmark): Argument is now bookmark
2803 id rather than pointer to bookmark struct.
2804 (delete_bookmark_command): Use get_number_or_range.
2805 (goto_bookmark_command): Parse with get_number instead of strtoul.
2806 (bookmark_1): New function. Print info for one bookmark.
2807 (bookmarks_info): Use get_number_or_range and bookmark_1.
2811 * thread.c (info_threads_command): Re-implement using
2812 get_number_or_range.
2813 (thread_apply_command): Ditto.
2817 * common/ax.def: New file.
2818 * ax.h (enum agent_op): Use ax.def.
2819 * ax-general.c (aop_map): Use ax.def.
2823 * ax-general.c (aop_map): Add pick and rot.
2824 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
2825 <DW_OP_rot>: Implement.
2826 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
2828 * ax-general.c (ax_pick): New function.
2832 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
2837 * cp-support.c (make_symbol_overload_list_namespace): Do not call
2838 make_symbol_overload_list_block with NULL BLOCK.
2839 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
2843 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
2844 * breakpoint.h (get_number_or_range): Declare.
2845 * printcmd.c (ALL_DISPLAYS): Declare.
2846 (delete_display): Reimplement taking a display pointer.
2847 (undisplay_command): Accept a range of displays to delete, using
2848 get_number_or_range.
2852 * c-valprint.c (c_val_print): Add embedded_offset to address
2853 for arrays of unspecified length.
2854 * p-valprint.c (pascal_val_print): Likewise.
2858 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
2859 (arm_process_displaced_insn): .. here. Remove parameter INSN.
2860 (thumb_process_displaced_insn): New.
2861 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
2862 call to arm_process_displaced_insn.
2863 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
2867 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
2868 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
2869 compile_dwarf_to_ax. No longer static. Call
2870 dwarf2_compile_cfa_to_ax.
2871 (locexpr_tracepoint_var_ref): Update.
2872 (loclist_tracepoint_var_ref): Update.
2873 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
2874 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
2875 argument; add 'gdbarch' and 'pc'.
2876 (dwarf2_compile_cfa_to_ax): New function.
2877 (dwarf2_frame_cache): Update.
2881 * ada-lang.c (ada_type_of_array): Fix the size of the array
2882 in the case of an unconstrained packed array.
2886 * common/Makefile.in: Add more targets for make.
2890 * dwarf2loc.c (unimplemented): Fix typo.
2894 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
2895 (compile_dwarf_to_ax) <default>: Use unimplemented.
2896 <DW_OP_deref>: Update.
2897 (disassemble_dwarf_expression): Update.
2898 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
2899 (decode_locdesc): Update.
2900 * dwarf2expr.h (dwarf_stack_op_name): Update.
2904 * ax.h (struct aop_map) <name>: Now const.
2908 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
2913 * infrun.c (get_displaced_step_closure_by_addr): New.
2914 * inferior.h: Declare it.
2915 * arm-tdep.c: (arm_pc_is_thumb): Call
2916 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
2923 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
2928 * value.c (value_contents_copy_raw): Extend describing comment.
2929 Assert that the destination contents we're overwriting are wholly
2931 (value_contents_copy): Extend describing comment.
2936 * value.c (value_available_contents_eq): Remove redundant local
2937 variables. Fix available contents comparision.
2938 * value.h (value_available_contents_eq): Extend describing
2943 * thread.c (info_threads_command): Add missing i18n markup and remove
2948 * breakpoint.c (longjmp_names): New variable.
2949 (struct breakpoint_objfile_data): New type.
2950 (breakpoint_objfile_key): New variable.
2951 (msym_not_found): New variable.
2952 (msym_not_found_p): New predicate.
2953 (get_breakpoint_objfile_data): New function.
2954 (create_overlay_event_breakpoint): Check per-objfile cache for
2956 (create_longjmp_master_breakpoint): Likewise.
2957 (create_std_terminate_master_breakpoint): Likewise.
2958 (create_exception_master_breakpoint): Likewise.
2959 (_initialize_breakpoint): Register per-objfile data key.
2963 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
2965 (create_longjmp_master_breakpoint): Loop over longjmp names.
2966 (create_std_terminate_master_breakpoint): Const-propagate parameter
2968 (update_breakpoints_after_exec): Adjust.
2969 (breakpoint_re_set): Adjust.
2973 * thread.c (info_threads_command): Process arg as thread id,
2974 or list of thread ids.
2975 (thread_find_command): New command.
2976 (_initialize_thread): Document argument for info threads.
2977 Document 'thread find' command.
2978 * NEWS: Document new command "thread find".
2982 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
2983 * aclocal.m4: Regenerated with aclocal-1.11.1.
2984 * common/configure: Regenerate with autoconf-2.64.
2988 * opencl-lang.c (build_opencl_types): Set the size of the built-in
2989 bool data type to a size of one byte.
2994 * target.c (memory_xfer_live_readonly_partial): Document where to
2995 look for interface description.
3000 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3001 order to store PC value on stack instead of text section.
3005 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3006 the EFP register set size.
3007 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3008 data from the VMX register.
3009 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3010 and write data from/to the VMX register.
3014 * command.h (enum command_class): New class 'no_set_class', for
3015 "show" commands without a corresponding "set" command.
3016 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3017 * copying.c (_initialize_copying): Ditto for "show copying" and
3019 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3021 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3022 which there is no corresponding "set" command (eg. "show copying").
3027 * exec.c (section_table_available_memory): Change `len' parameter
3029 * exec.h (section_table_available_memory): Ditto.
3030 * value.h (read_value_memory): Rename the `offset' parameter to
3036 * memrange.c (compare_mem_ranges): Mention sort order in
3038 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3039 * tracepoint.c (traceframe_available_memory): Extend comment to
3040 mention what happens to RESULT when the target does not support
3046 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3051 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3052 No longer handle NULL values.
3056 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3057 * value.c: Include "exceptions.h".
3058 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3060 * cp-abi.c: Include gdb_assert.h.
3061 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3062 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3064 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3065 parameters. No longer returns -1 on error.
3066 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3068 * cp-valprint.c: Include exceptions.h.
3069 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3070 the baseclass_offset. Handle unavailable base classes. Use
3071 val_print_invalid_address.
3072 * p-valprint.c: Include exceptions.h.
3073 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3074 when fetching the baseclass_offset. No longer expect
3075 baseclass_offset returning -1. Handle unavailable base classes.
3076 Use val_print_invalid_address.
3077 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3078 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3079 `embedded_offset' and `val' parameters. Adjust.
3080 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3081 parameter, and change its type to gdb_byte pointer. Add
3082 `embedded_offset' and `val' parameters. Adjust. No longer expect
3083 baseclass_offset returning -1.
3084 (value_dynamic_cast): Use value_contents_for_printing rather than
3085 value_contents. Adjust.
3086 (search_struct_field): No longer expect baseclass_offset returning
3088 (search_struct_method): If reading memory from the target is
3089 necessary, wrap it in a new value to pass to baseclass_offset. No
3090 longer expect baseclass_offset returning -1.
3091 (find_method_list): No longer expect baseclass_offset returning
3092 -1. Use value_contents_for_printing rather than value_contents.
3093 * valprint.c (val_print_invalid_address): New function.
3094 * valprint.h (val_print_invalid_address): Declare.
3095 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3096 and `val' parameters. No longer expect baseclass_offset returning
3098 * gnu-v2-abi.c: Include "exceptions.h".
3099 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3100 parameters. Handle unavailable memory. Recurse through
3101 gnuv2_baseclass_offset directly, rather than through
3102 baseclass_offset. No longer returns -1 on not found, instead
3104 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3105 `val' parameters. Adjust.
3109 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3110 almost but not quite adjacent.
3114 * value.h (value_entirely_available): Declare.
3115 * value.c (value_entirely_available): New function.
3116 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3117 real type if the pointer is unavailable.
3121 * valops.c (value_repeat): Use read_value_memory instead of
3126 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3127 * value.c (value_contents_copy_raw, value_contents_copy): New
3129 (value_primitive_field): Use value_contents_copy_raw instead of
3131 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3133 (value_array, value_slice): Ditto.
3134 * valarith.c (value_subscripted_rvalue): Use
3135 value_contents_copy_raw instead of memcpy.
3139 <unavailable> references.
3141 * valops.c (get_value_at): Use value_from_contents_and_address,
3142 avoiding read_memory.
3146 * c-valprint.c (c_val_print): Print a string with unavailable
3147 contents as an array.
3151 * value.h (unpack_bits_as_long): Delete declaration.
3152 (unpack_value_bits_as_long): Declare.
3153 (unpack_value_field_as_long): Declare.
3154 (value_field_bitfield): Declare.
3155 * value.c (unpack_bits_as_long): Rename to...
3156 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3157 value parameters. Return the extracted result in a new output
3158 parameter. If the value contents are unavailable, return false,
3159 otherwise return true.
3160 (unpack_value_bits_as_long): New.
3161 (unpack_field_as_long): Rename to...
3162 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3163 Add embedded_offset and value parameters. Return the extracted
3164 result in a new output parameter. If the value contents are
3165 unavailable, return false, otherwise return true.
3166 (unpack_value_field_as_long): New.
3167 (unpack_field_as_long_1): New.
3168 (unpack_field_as_long): Reimplement as wrapper around
3169 unpack_value_field_as_long_1.
3170 (value_field_bitfield): New function.
3171 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3172 unpack_value_bits_as_long. Mark the value as unavailable, if it
3174 * jv-valprint.c (java_print_value_fields): Use
3175 value_field_bitfield.
3176 * p-valprint.c (pascal_object_print_value_fields): Use
3177 value_field_bitfield.
3178 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3182 * value.c (get_internalvar_integer): Also return the int value of
3183 TYPE_CODE_INT INTERNALVAR_VALUE values.
3184 (set_internalvar): Don't special case TYPE_CODE_INT.
3188 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3189 INTERNALVAR_POINTER.
3191 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3192 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3193 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3197 * value.h (value_available_contents_eq): Declare.
3198 * value.c (find_first_range_overlap): New function.
3199 (value_available_contents_eq): New function.
3200 * valprint.c (val_print_array_elements): Use
3201 value_available_contents_eq.
3202 * ada-valprint.c (val_print_packed_array_elements): Use
3203 value_available_contents_eq.
3204 * jv-valprint.c (java_value_print): Use
3205 value_available_contents_eq.
3209 * target.c (target_read_live_memory): New function.
3210 (memory_xfer_live_readonly_partial): New.
3211 (memory_xfer_partial): If reading from a traceframe, fallback to
3212 reading unavailable read-only memory from read-only regions of
3214 * tracepoint.c (disconnect_tracing): Adjust.
3215 (set_current_traceframe): New, factored out from
3216 set_traceframe_number.
3217 (set_traceframe_number): Reimplement to only change the traceframe
3218 number on the GDB side.
3219 (do_restore_current_traceframe_cleanup): Adjust.
3220 (make_cleanup_restore_traceframe_number): New.
3221 (cur_traceframe_number): New global.
3222 (tfile_open): Set cur_traceframe_number to no traceframe.
3223 (set_tfile_traceframe): New function.
3224 (tfile_trace_find): If looking up a traceframe using any method
3225 other than by number, make sure the current tfile traceframe
3226 matches gdb's current traceframe. Update the current tfile
3227 traceframe if the lookup succeeded.
3228 (tfile_fetch_registers, tfile_xfer_partial)
3229 (tfile_get_trace_state_variable_value): Make sure the remote
3230 traceframe matches gdb's current traceframe.
3231 * remote.c (remote_traceframe_number): New global.
3232 (remote_open_1): Set it to -1.
3233 (set_remote_traceframe): New function.
3234 (remote_fetch_registers, remote_store_registers)
3235 (remote_xfer_memory, remote_xfer_partial)
3236 (remote_get_trace_state_variable_value): Make sure the remote
3237 traceframe matches gdb's current traceframe.
3238 (remote_trace_find): If looking up a traceframe using any method
3239 other than by number, make sure the current remote traceframe
3240 matches gdb's current traceframe. Update the current remote
3241 traceframe if the lookup succeeded.
3242 * infrun.c (fetch_inferior_event): Adjust.
3243 * tracepoint.h (set_current_traceframe): Declare.
3244 (get_traceframe_number, set_traceframe_number): Add describing
3249 Mark pieces of values as unavailable if the corresponding memory
3252 * valops.c: Include tracepoint.h.
3253 (value_fetch_lazy): Use read_value_memory.
3254 (read_value_memory): New.
3255 * value.h (read_value_memory): Declare.
3256 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3257 * exec.c (section_table_available_memory): New function.
3258 * exec.h (section_table_available_memory): Declare.
3262 * Makefile.in (SFILES): Add memrange.c.
3263 (HFILES_NO_SRCDIR): Add memrange.h.
3264 (COMMON_OBS): Add memrange.o.
3265 * memrange.c: New file.
3266 * memrange.h: New file.
3267 * tracepoint.c: Include memrange.h.
3268 (struct mem_range): Delete.
3269 (mem_range_s): Delete.
3270 (traceframe_available_memory): New function.
3271 * tracepoint.h (traceframe_available_memory): Declare.
3275 * target.h (struct traceframe_info): Forward declare.
3276 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3277 (struct target_ops) <to_traceframe_info>: New field.
3278 (target_traceframe_info): New.
3279 * target.c (update_current_target): Inherit and default
3281 * remote.c (PACKET_qXfer_traceframe_info): New.
3282 (remote_protocol_features): Register qXfer:traceframe-info:read.
3283 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3284 (remote_traceframe_info): New.
3285 (init_remote_ops): Install it.
3286 (_initialize_remote): Install "set/show remote traceframe-info"
3288 * tracepoint.h (parse_traceframe_info): Declare.
3289 * tracepoint.c (struct mem_range): New.
3290 (mem_range_s): New typedef.
3291 (struct traceframe_info): New.
3292 (traceframe_info): New global.
3293 (free_traceframe_info): New function.
3294 (clear_traceframe_info): New function.
3295 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3297 (build_traceframe_info): New function.
3298 (tfile_traceframe_info): New function.
3299 (init_tfile_ops): Install tfile_traceframe_info.
3300 (traceframe_info_start_memory, free_result): New functions.
3301 (memory_attributes, traceframe_info_elements): New globals.
3302 (parse_traceframe_info, get_traceframe_info): New functions.
3303 * features/traceframe-info.dtd: New file.
3304 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3308 Base support for <unavailable> value contents.
3310 * value.h (value_bytes_available): Declare.
3311 (mark_value_bytes_unavailable): Declare.
3312 * value.c (struct range): New struct.
3313 (range_s): New typedef.
3314 (ranges_overlap): New function.
3315 (range_lessthan): New function.
3316 (ranges_contain_p): New function.
3317 (struct value) <unavailable>: New field.
3318 (value_bytes_available): New function.
3319 (mark_value_bytes_unavailable): New function.
3320 (require_not_optimized_out): Constify parameter.
3321 (require_available): New function.
3322 (value_contents_all, value_contents): Require all bytes be
3324 (value_free): Free `unavailable'.
3325 (value_copy): Copy `unavailable'.
3326 * valprint.h (val_print_unavailable): Declare.
3327 * valprint.c (valprint_check_validity): Rename `offset' parameter
3328 to `embedded_offset'. If printing a scalar, check whether the
3329 value chunk is available.
3330 (val_print_unavailable): New.
3331 (val_print_scalar_formatted): Check whether the value is
3333 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3334 pretty-printing unavailable values.
3338 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3339 * c-typeprint.c (c_type_print_args): Update the function comment. New
3340 variable param_type, initialize it. Remove const/volatile qualifiers
3341 for language_cplus and !show_artificial. Use param_type.
3345 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3346 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3347 * symtab.h (struct symtab) <next>: Comment extension.
3351 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3355 * common/Makefile.in: Add copyright header.
3359 * infrun.c (proceed): Move switching out and in of tfind mode from
3361 (fetch_inferior_event): ... to here.
3365 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3367 * configure.ac: Add common to sub dir.
3368 * configure: Regenerate.
3374 * common/Makefile.in: New.
3375 * common/configure.ac: New.
3376 * common/aclocal.m4: New.
3377 * common/configure: Generate.
3381 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3382 side of the parenthesis.
3386 * vec.h (VEC_block_remove): Fix comment.
3390 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3394 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3395 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3401 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3403 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3404 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3408 * dwarf2read.c (read_subroutine_type): Set special calling
3409 convention flag for functions compiled by IBM XL C for OpenCL.
3410 * ppc-sysv-tdep.c: Include "dwarf2.h"
3411 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3413 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3414 IBM OpenCL vector types calling convention.
3415 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3416 (ppc_sysv_abi_broken_return_value): Likewise.
3417 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3418 types calling convention.
3419 (ppc64_sysv_abi_return_value): Likewise.
3420 * spu-tdep.c: Include "dwarf2.h"
3421 (spu_return_value): Implement IBM OpenCL vector types calling
3426 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3427 correct ABI for AltiVec vector arguments.
3431 * valprint.c (val_print): Extend comment.
3432 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3433 interface explanation to val_print.
3434 (ada_val_print_array): Adjust comment to current interface.
3435 (print_field_values): Adjust comment to current interface.
3436 * c-valprint.c (c_val_print): Rewrite comment deferring interface
3437 explanation to val_print.
3438 * f-valprint.c (f_val_print): Ditto.
3439 * jv-valprint.c (java_val_print): Ditto.
3440 * m2-valprint.c (m2_val_print): Ditto.
3441 * p-valprint.c (pascal_val_print): Ditto.
3445 * breakpoint.c (parse_breakpoint_sals): Fix description.
3450 * python/py-inferior.c (python_on_normal_stop): New function.
3451 (python_on_resume): New function.
3452 (python_inferior_exit): New function.
3453 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
3454 inferior_exit observers.
3455 * python/py-evtregistry.c: New file.
3456 * python/py-threadevent.c : New file.
3457 * python/py-event.c: New file.
3458 * python/py-evts.c: New file.
3459 * python/py-continueevent.c: New file.
3460 * python/py-bpevent.c: New file.
3461 * python/py-signalevent.c: New file.
3462 * python/py-exetiedevent.c: New file.
3463 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
3464 Move struct breakpoint_object from here...
3465 * python/python-internal.h: ... to here.
3466 * python/py-event.h: New file.
3467 * python/py-events.h: New file.
3468 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
3469 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
3470 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
3471 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
3472 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
3473 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
3474 Add build rules for all the above.
3478 * dwarf2read.c (dwarf2_section_empty_p): New function.
3479 (dwarf2_read_section): Use dwarf2_section_empty_p.
3480 (dwarf2_section_size): New function.
3481 (dwarf2_get_section_info): Unconditionally read section.
3482 (dwarf2_read_index): Use dwarf2_section_empty_p.
3483 (partial_read_comp_unit_head): Use dwarf2_section_size.
3484 (dwarf2_symbol_mark_computed): Likewise.
3488 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
3492 * mips-linux-tdep.c: Include xml-syscall.h.
3493 (mips_linux_get_syscall_number): New function.
3494 (mips_linux_init_abi): Add calls to
3495 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
3496 * data-directory/Makefile.in (SYSCALLS_FILES): Add
3497 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
3498 * syscalls/mips-n32-linux.xml: New file.
3499 * syscalls/mips-n64-linux.xml: New file.
3500 * syscalls/mips-o32-linux.xml: New file.
3504 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
3505 Complain about inverted range entries.
3506 (dwarf2_record_block_ranges): Likewise.
3511 * breakpoint.c (update_watchpoint): Fix name of the
3512 update_global_location_list function.
3513 (print_one_breakpoint): Fix typo.
3514 (_initialize_breakpoint): Remove extra space in hbreak help
3516 * breakpoint.h (struct bp_location) <length>: Fix field
3521 * regcache.c (registers_changed_ptid): Don't explictly always
3522 clear `current_regcache'. Only clear current_thread_ptid and
3523 current_thread_arch when PTID matches. Only reinit the frame
3524 cache if PTID matches the current inferior_ptid. Move alloca(0)
3526 (registers_changed): ... here.
3530 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
3531 starts with __stack_chk_guard as stack guard symbol.
3535 * disasm.c (compare_lines): Handle the end of sequence markers
3536 within the line table to better support disassembling over
3537 compilation unit boundaries.
3541 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
3542 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3543 implementation even if no symbols are available.
3544 (thumb_analyze_prologue): Update call to skip_prologue_function.
3545 (arm_analyze_prologue): Likewise.
3549 * arm-tdep.c: Include "observer.h".
3550 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3551 (arm_exidx_data_key): New static variable.
3552 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
3553 (struct arm_exidx_data): Likewise.
3554 (arm_exidx_data_free): New function.
3555 (arm_compare_exidx_entries): Likewise.
3556 (arm_obj_section_from_vma): Likewise.
3557 (arm_exidx_new_objfile): Likewise.
3558 (arm_find_exidx_entry): Likewise.
3559 (arm_exidx_fill_cache): Likewise.
3560 (arm_exidx_unwind_sniffer): Likewise.
3561 (arm_exidx_unwind): New global variable.
3562 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
3563 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
3564 observer. Register arm_exidx_data_key as objfile data.
3568 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
3569 due to accessing uninitialized variable. Fix indentation.
3573 * c-valprint.c (c_value_print): When doing virtual base pointer
3574 adjustment, create a new value with adjusted contents rather than
3575 changing the contents of the value being printed (and getting it
3580 * xml-support.c (xml_find_attribute): New.
3581 (xinclude_start_include): Use it.
3582 * xml-support.h (xml_find_attribute): Declare.
3583 * memory-map.c (memory_map_start_memory)
3584 (memory_map_start_property): Use xml_find_attribute.
3585 * osdata.c (osdata_start_osdata, osdata_start_column): Use
3587 * remote.c (start_thread): Use xml_find_attribute.
3588 * solib-target.c (library_list_start_segment)
3589 (library_list_start_section, library_list_start_library)
3590 (library_list_start_list): Use xml_find_attribute.
3591 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
3592 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
3593 (tdesc_start_field): Use xml_find_attribute.
3597 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
3598 (BUILD_OCL_VTYPES): Update.
3602 * configure.ac: Work around non-GNU sed limitation when computing
3603 python version number.
3604 * configure: Regenerate.
3608 Fix debug printing of TYPE_INSTANCE.
3609 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
3610 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
3614 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
3615 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
3616 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
3617 * ada-operator.inc: Rename the file to ...
3618 * ada-operator.def: ... here, wrap all the entries by macro OP.
3619 * expprint.c (op_name_standard): Remove all the entries. Include
3620 "std-operator.def" instead.
3621 * expression.h (enum exp_opcode): Include "std-operator.def" and
3622 "ada-operator.def". Move all the entries ...
3623 * std-operator.def: ... here, wrap all the entries by macro OP.
3627 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
3628 * breakpoint.c (remove_jit_event_breakpoints): New function.
3629 * jit.c (jit_descriptor_addr): Delete.
3630 (registering_code): Delete.
3631 (clear_int): Delete.
3632 (jit_inferior_data): New variable.
3633 (struct jit_inferior_data): New type.
3634 (get_jit_inferior_data): New function.
3635 (jit_inferior_data_cleanup): New function.
3636 (jit_read_descriptor): Adjust.
3637 (jit_register_code): Adjust.
3638 (jit_breakpoint_re_set_internal): New function; move code here ...
3639 (jit_inferior_init): ... from here.
3640 (jit_breakpoint_re_set): Adjust.
3641 (jit_reset_inferior_data_and_breakpoints): New function.
3642 (jit_inferior_created_observer): Adjust.
3643 (jit_inferior_exit_hook): Adjust.
3644 (jit_executable_changed_observer): New function.
3645 (jit_event_handler): Adjust.
3646 (_initialize_jit): Adjust.
3650 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
3656 * python/python.c (execute_gdb_command): Call
3657 prevent_dont_repeat.
3658 * top.c (suppress_dont_repeat): New global.
3659 (dont_repeat): Use it.
3660 (prevent_dont_repeat): New function.
3661 * command.h (prevent_dont_repeat): Declare.
3665 * infcmd.c (finish_backward): Use breakpoint_set_silent.
3666 * python/py-breakpoint.c (bppy_set_silent): Use
3667 breakpoint_set_silent.
3668 (bppy_set_thread): Use breakpoint_set_thread.
3669 (bppy_set_task): Use breakpoint_set_task.
3670 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
3671 (breakpoint_set_task): Declare.
3672 (make_breakpoint_silent): Remove.
3673 * breakpoint.c (breakpoint_set_silent): New function.
3674 (breakpoint_set_thread): Likewise.
3675 (breakpoint_set_task): Likewise.
3676 (make_breakpoint_silent): Remove.
3680 * breakpoint.h (user_breakpoint_p): Declare.
3681 * breakpoint.c (user_breakpoint_p): New function.
3682 (breakpoint_1): Use it.
3683 (save_breakpoints): Likewise.
3687 * configure.ac: Add handling of Python distribution on Windows.
3688 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
3689 sysconfig variables are not defined, then do not use them.
3690 On Windows, if LIBPL is not defined, then use prefix + '/libs'
3691 instead. On Windows, return all paths using forward-slashes
3692 rather than backslashes.
3696 * configure.ac: Remove fallback behavior for building
3697 against Python. Remove tweaking of Python include path.
3698 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
3699 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
3700 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
3701 Always restore CPPFLAGS and LIBS after linking test.
3702 * configure: Regenerated.
3703 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
3704 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
3705 * python/python-internal.h: Adjust includes of Python .h files.
3709 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
3714 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
3719 * arm-linux-nat.c: Update calls to regcache_register_status
3720 instead of regcache_valid_p.
3721 * aix-thread.c: Likewise.
3722 * i386gnu-nat.c: Likewise.
3727 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
3728 touching TYPE_FIELD_ARTIFICIAL.
3732 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
3737 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
3738 selected, don't try iterating over the traceframe's blocks.
3739 (tfile_has_stack): If there's no traceframe selected, then there's
3741 (tfile_has_registers): If there's no traceframe selected, then
3742 there's no registers.
3746 * target.c (memory_xfer_partial): No need to restore shadows if we
3747 haven't read anything.
3751 * mips-tdep.c (mips_print_register): Use get_frame_register_value
3752 and val_print_scalar_formatted.
3756 * tracepoint.c (tfile_read): New.
3757 (tfile_open): Use it.
3758 (tfile_get_traceframe_address): Use it.
3759 (tfile_trace_find): Use it.
3760 (walk_blocks_callback_func): New typedef.
3761 (match_blocktype): New function.
3762 (traceframe_walk_blocks): New function.
3763 (traceframe_find_block_type): New function.
3764 (tfile_fetch_registers, tfile_xfer_partial)
3765 (tfile_get_trace_state_variable_value): Use
3766 traceframe_find_block_type and tfile_read.
3770 * remote-mips.c: Add internationalization mark ups. Remove
3771 trailing \n from already marked up strings.
3775 * python/py-prettyprint.c (print_string_repr): Clear
3776 'addressprint' option when calling val_print_string.
3777 (print_children): Handle Val_pretty_default. Clear 'addressprint'
3778 option when calling val_print_string.
3782 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
3784 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
3786 (gdb_py_longest, gdb_py_ulongest): New typedefs.
3787 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
3788 (gdb_py_long_as_ulongest): New defines.
3789 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
3790 (gdb_py_int_as_long): Declare.
3791 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
3792 GDB_PY_LL_ARG, gdb_py_object_from_longest.
3793 (valpy_long): Add comment.
3794 * python/py-utils.c (get_addr_from_python): Use
3795 gdb_py_long_as_ulongest. Handle overflow properly.
3796 (gdb_py_object_from_longest): New function.
3797 (gdb_py_object_from_ulongest): Likewise.
3798 (gdb_py_int_as_long): Likewise.
3799 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
3800 * python/py-symtab.c (salpy_get_pc): Use
3801 gdb_py_long_from_ulongest.
3802 (salpy_get_line): Use PyInt_FromLong.
3803 * python/py-param.c (set_parameter_value): Use
3805 * python/py-lazy-string.c (stpy_get_address): Use
3806 gdb_py_long_from_ulongest.
3807 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
3808 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
3809 * python/py-breakpoint.c (bppy_set_thread): Use
3811 (bppy_set_task): Likewise.
3812 (bppy_set_ignore_count): Likewise.
3813 (bppy_set_hit_count): Likewise.
3814 * python/py-block.c (blpy_get_start): Use
3815 gdb_py_object_from_ulongest.
3816 (blpy_get_end): Likewise.
3817 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
3822 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
3823 * gdb/solib.c (solib_read_symbols): Check for addr_low in
3824 equality test for objfile, initialize addr_low if needed.
3828 * tui/tui-regs.c (tui_register_format): Remove dead code.
3832 * printcmd.c (print_formatted): Use val_print_scalar_formatted
3833 instead of print_scalar_formatted.
3834 (print_scalar_formatted): Don't handle 's' format strings here,
3835 and add an assertion that we never see such format here.
3836 * valprint.h (val_print_scalar_formatted): Declare.
3837 * valprint.c (val_print_scalar_formatted): New.
3838 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
3839 instead of print_scalar_formatted.
3840 * jv-valprint.c (java_val_print): Ditto.
3841 * p-valprint.c (pascal_val_print): Ditto.
3842 * ada-valprint.c (ada_val_print_1): Ditto.
3843 * f-valprint.c (f_val_print): Ditto.
3844 * infcmd.c (registers_info): Ditto.
3845 * m2-valprint.c (m2_val_print): Ditto.
3849 * m2-valprint.c (print_unbounded_array): Pass
3850 value_contents_for_printing rather than value_contents, to
3851 m2_print_array_contents. Also pass in the value.
3855 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
3856 (save_gdb_index_command): Switch to .gdb_index version 4.
3860 * mi/mi-main.c (get_register): Use get_frame_register_value rather
3861 than frame_register, and always pass a valid value to val_print.
3865 Centralize printing "<optimized out>".
3867 * valprint.h (val_print_optimized_out): Declare.
3868 * cp-valprint.c (cp_print_value_fields): Use
3869 val_print_optimized_out.
3870 * jv-valprint.c (java_print_value_fields): Ditto.
3871 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3872 * printcmd.c (print_formatted): Ditto.
3873 * valprint.c (valprint_check_validity): Ditto.
3874 (value_check_printable): Ditto.
3875 (val_print_optimized_out): New.
3879 * infcmd.c (default_print_registers_info): Allocate values so to
3880 never pass a NULL value to val_print.
3884 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
3885 boolean. Make sure to always pass a value that matches the
3886 contents buffer to callees. Preserve `address' for following
3888 * value.c (value_contents_for_printing_const): New.
3889 (value_address): Constify value argument.
3890 * value.h (value_contents_for_printing_const): Declare.
3891 (value_address): Constify value argument.
3895 * regcache.c (struct regcache_descr): Rename
3896 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
3897 and sizeof_cooked_register_valid_p to
3898 sizeof_cooked_register_status.
3899 (init_regcache_descr): Adjust.
3900 (struct regcache): Rename register_valid_p field to
3902 (regcache_xmalloc_1, regcache_xfree, regcache_save)
3903 (do_cooked_read): Adjust.
3904 (regcache_valid_p): Rename to ...
3905 (regcache_register_status): ... this. Adjust.
3906 (regcache_invalidate): Adjust.
3907 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
3909 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
3910 as unavailable, not valid.
3911 (regcache_dump): Adjust.
3912 * regcache.h (enum register_status): New.
3913 (regcache_register_status): Declare.
3914 (regcache_invalidate): Delete declaration.
3915 * corelow.c (get_core_registers): Adjust.
3916 * tracepoint.c (tfile_fetch_registers): Adjust.
3917 * trad-frame.c (REG_VALUE): Rename to ...
3918 (TF_REG_VALUE): ... this.
3919 (REG_UNKNOWN): Rename to ...
3920 (TF_REG_UNKNOWN): ... this.
3921 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
3922 * mi/mi-main.c (register_changed_p): Adjust.
3926 * regcache.c (struct regcache_descr): Remove outdated comment.
3927 (init_regcache_descr): Remove sizeof_raw_register_valid_p
3929 (regcache_xmalloc): Rename to ...
3930 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
3931 Allocate the regcache type accordingly.
3932 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
3933 (regcache_xfree): Asser the source is also readonly. Copy sizeof
3934 cooked registers, not raw.
3935 (regcache_dup_no_passthrough): Delete.
3936 (get_thread_arch_regcache): Use regcache_xmalloc_1.
3937 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
3938 mention obsolete write_register_bytes.
3939 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
3943 Stop remote_read_bytes from handling partial reads itself.
3945 * remote-fileio.c: Include target.h.
3946 (remote_fileio_write_bytes): Delete.
3947 (remote_fileio_func_open, remote_fileio_func_write)
3948 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
3950 (remote_fileio_func_stat): Use target_read_memory and
3951 target_write_memory.
3952 (remote_fileio_func_gettimeofday): Use target_write_memory.
3953 (remote_fileio_func_system): Use target_read_memory.
3954 * remote.c (remote_write_bytes): Make it static.
3955 (remote_read_bytes): Don't handle partial reads here.
3956 * remote.h (remote_read_bytes): Delete declaration.
3960 Simplify XML parsing a bit.
3962 * xml-support.h (gdb_xml_parse_quick): Declare.
3963 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
3964 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
3966 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
3967 gdb_xml_create_parser_and_cleanup_1.
3968 (gdb_xml_parse_quick): New.
3969 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
3970 * osdata.c (osdata_parse): Ditto.
3971 * remote.c (remote_threads_info): Ditto.
3972 * solib-target.c (solib_target_parse_libraries): Ditto.
3973 * xml-syscall.c (syscall_parse_xml): Ditto.
3974 * xml-tdesc.c (tdesc_parse_xml): Ditto.
3978 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
3979 with remote-mips.o added to gdb_target_obs.
3980 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
3984 * ada-valprint.c (val_print_packed_array_elements): Pass the
3985 correct struct value to val_print.
3986 (ada_val_print_1): Ditto.
3990 Don't lose embedded_offset in printing routines throughout.
3992 * valprint.h (val_print_array_elements): Change prototype.
3993 * valprint.c (val_print_array_elements): Add `embedded_offset'
3994 parameter, and adjust to pass it down to val_print, while passing
3995 `valaddr' or `address' unmodified. Take embedded_offset into
3996 account when checking repetitions.
3997 * c-valprint.c (c_val_print): Pass embedded_offset to
3998 val_print_array_elements instead of adjusting `valaddr' and
4000 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4001 embedded_offset to val_print_array_elements instead of adjusting
4003 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4004 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4005 val_print_array_elements and pascal_object_print_value_fields
4006 instead of adjusting `valaddr'.
4007 (pascal_object_print_value_fields): Add `offset' parameter, and
4009 (pascal_object_print_value): Add `offset' parameter, and adjust to
4011 (pascal_object_print_static_field): Use
4012 value_contents_for_printing/value_embedded_offset, rather than
4014 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4015 parameter, and adjust to use it. Use
4016 value_contents_for_printing/value_embedded_offset, rather than
4018 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4019 (ada_val_print_array): Add `offset' parameter, and adjust to use
4021 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4022 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4023 Instead work with offsets. Use
4024 value_contents_for_printing/value_embedded_offset, rather than
4025 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4026 and use value_from_pointer to extract a target pointer, rather
4027 than value_from_longest.
4028 (print_variant_part): Add `offset' parameter. Replace
4029 `outer_valaddr' parameter by a new `outer_offset' parameter.
4030 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4031 (ada_value_print): Use
4032 value_contents_for_printing/value_embedded_offset, rather than
4034 (print_record): Add `offset' parameter, and adjust to pass it
4036 (print_field_values): Add `offset' parameter. Replace
4037 `outer_valaddr' parameter by a new `outer_offset' parameter.
4038 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4039 Use value_contents_for_printing/value_embedded_offset, rather than
4041 * d-valprint.c (dynamic_array_type): Use
4042 value_contents_for_printing/value_embedded_offset, rather than
4044 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4045 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4046 (java_print_value_fields): Take `offset' into account. Don't
4047 re-adjust `valaddr'. Instead pass down adjusted offsets.
4048 (java_val_print): Take `embedded_offset' into account. Pass it to
4049 java_print_value_fields.
4050 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4051 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4052 down adjusted offsets.
4053 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4054 (f_val_print): Take `embedded_offset' into account.
4058 * inflow.c: Include "gdbcmd.h".
4059 (interactive_mode): New static global, moved here from top.c.
4060 (show_interactive_mode): New function, moved here from top.c.
4061 use gdb_has_a_terminal instead of input_from_terminal_p to
4062 determine the current mode.
4063 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4065 (_initialize_inflow): Add the "set/show interactive-mode"
4066 commands. Moved here from top.c, after having adjusted slightly
4068 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4070 (input_from_terminal_p): Remove handling of "interactive-mode"
4071 setting, moved to infow.c.
4072 (init_main): Remove creation of the "set/show interactive-mode"
4073 commands, moved to inflow.c.
4077 * NEWS: Add entry for native ia64-hpux support.
4082 * thread.c (free_thread): Free 'name'.
4083 (print_thread_info): Emit thread name. Change CLI output.
4084 (thread_name_command): New function.
4085 (do_captured_thread_select): Emit newline.
4086 (_initialize_thread): Register 'thread name' command.
4087 * target.h (struct target_ops) <to_thread_name>: New field.
4088 (target_thread_name): New macro.
4089 * target.c (update_current_target): Handle to_thread_name.
4090 * python/py-infthread.c (thpy_get_name): New function.
4091 (thpy_set_name): Likewise.
4092 (thread_object_getset): Add "name".
4093 * linux-nat.c (linux_nat_thread_name): New function.
4094 (linux_nat_add_target): Set to_thread_name.
4095 * gdbthread.h (struct thread_info) <name>: New field.
4099 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4100 (ada_val_print_1): Likewise.
4104 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4105 upper limit address is not greater than the function end address
4106 when the upper limit could not be computed using the debugging
4111 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4113 * utils.c: Include gdb_regex.h.
4114 (do_regfree_cleanup): New function.
4115 (make_regfree_cleanup): Likewise.
4116 (get_regcomp_error): Likewise.
4117 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4121 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4126 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4127 for internal variables.
4128 (last_was_structop): New static variable.
4129 (COMPLETE): New token.
4130 (field_exp): New rule to group all '.' suffix handling.
4131 Add mark_struct_expression calls when approriate to be able
4132 to correctly find fields for completion.
4133 (yylex): Adapt to handle field completion and set INTVAR when
4138 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4139 save_reggroup, restore_reggroup and all_reggroup.
4143 * ada-valprint. (ada_printchar): Use the correct type length
4144 in call to ada_emit_char.
4145 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4149 * solib-som.h (hpux_major_release): Declare variable here.
4150 * solib-som.c: Remove <sys/utsname.h> header.
4151 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4152 (hpux_major_release): Make global, change default value to
4153 DEFAULT_HPUX_MAJOR_RELEASE.
4154 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
4155 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4156 Add "solib-som.h" header.
4157 (set_hpux_major_release): New function.
4158 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4162 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4166 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4167 new-line at end of warning message.
4168 (ia64_hpux_store_register): Remove trailing new-line at end of
4170 * ia64-hpux-tdep.c: Rephrase comment.
4171 * solib-ia64-hpux.c (struct dld_info): Change type of field
4172 dld_flags from "long long" to ULONGEST.
4176 * target.h (deprecated_child_ops): Delete declaration.
4177 * target.c (deprecated_child_ops): Delete definition.
4181 * Makefile.in (hpux-thread.o): Delete rule.
4182 * configure.ac: Don't check for HPUX DCE threads support.
4183 * configure, config.in: Regenerate.
4184 * hppa-hpux-nat.c (child_suppress_run): Delete.
4185 (hppa_hpux_child_can_run): Delete.
4186 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4187 * hpux-thread.c: Delete.
4191 * hpux-thread.c (hpux_pid_to_str): Delete.
4195 * ada-valprint.c (ada_emit_char): Remove strange code.
4196 Check that c is <= UCHAR_MAX before passing it to isascii.
4197 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4201 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4202 to the case where instream is stdin.
4206 * ia64-tdep.h (struct regcache): Forward declare.
4207 (struct ia64_infcall_ops): New struct type.
4208 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4210 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4211 Renames ia64_find_global_pointer.
4212 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4213 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4214 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4216 (ia64_infcall_ops): New static global constant.
4217 (ia64_gdbarch_init): Set tdep->infcall_ops.
4218 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4219 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4220 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4221 (ia64_hpux_dummy_code): New static global constant.
4222 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4223 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4224 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4226 (ia64_hpux_infcall_ops): New static global constant.
4227 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4228 for inferior function calls to work properly on ia64-hpux.
4232 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4233 * ia64-tdep.h (struct frame_info): forward declaration.
4234 (struct gdbarch_tdep): Add field size_of_register_frame.
4235 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4236 to determine the size of the register frame.
4237 (ia64_size_of_register_frame): New function.
4238 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4239 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4240 (IA64_HPUX_UREG_REASON): New macro.
4241 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4243 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4244 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4245 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4250 Add support for ia64-hpux.
4251 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4252 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4254 * configure.host: Add handling for ia64-hpux hosts. Add associated
4256 * configure.tgt: Add handling for ia64-hpux targets.
4257 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4258 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4259 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4263 [ttrace] Compute thread list immediately after attach.
4264 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4266 (inf_ttrace_attach): Use it.
4270 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4271 if we could not determine the frame's function address. Instead,
4272 use the frame's PC, and then continue.
4276 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4277 not already defined.
4281 * ia64-tdep.c (ia64_struct_type_p): New function.
4282 (ia64_extract_return_value): Handle integral values that are
4283 less than 8 bytes long.
4284 (ia64_push_dummy_call): Likewise.
4288 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4289 floatformat_ia64_ext.
4290 (floatformat_ia64_ext_big): New static const.
4291 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4295 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4297 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4298 (mi_cmd_thread_list_ids): Likewise.
4299 (mi_cmd_data_list_changed_registers): Likewise.
4300 (mi_cmd_data_list_register_values): Likewise.
4301 (mi_cmd_data_write_register_values): Likewise.
4302 (mi_cmd_data_evaluate_expression): Likewise.
4303 (mi_cmd_data_read_memory): Likewise.
4304 (mi_cmd_data_read_memory_bytes): Likewise.
4305 (mi_cmd_data_write_memory): Likewise.
4306 (mi_cmd_enable_timings): Likewise.
4307 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4308 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4309 (mi_cmd_var_delete): Likewise.
4310 (mi_cmd_var_set_format): Likewise.
4311 (mi_cmd_var_show_format): Likewise.
4312 (mi_cmd_var_info_num_children): Likewise.
4313 (mi_cmd_var_list_children): Likewise.
4314 (mi_cmd_var_info_type): Likewise.
4315 (mi_cmd_var_info_expression): Likewise.
4316 (mi_cmd_var_show_attributes): Likewise.
4317 (mi_cmd_var_assign): Likewise.
4318 (mi_cmd_var_update): Likewise.
4319 (mi_cmd_enable_pretty_printing): Likewise.
4320 (mi_cmd_var_set_update_range): Likewise.
4321 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4323 (mi_cmd_target_file_put): Likewise.
4324 (mi_cmd_target_file_delete): Likewise.
4325 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4327 (mi_cmd_stack_info_depth): Likewise.
4328 (mi_cmd_stack_list_locals): Likewise.
4329 (mi_cmd_stack_list_args): Likewise.
4330 (mi_cmd_stack_select_frame): Likewise.
4331 (mi_cmd_stack_select_frame): Likewise.
4332 (mi_cmd_stack_info_frame): Likewise.
4333 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4335 (mi_cmd_file_list_exec_source_files): Likewise.
4336 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4337 (mi_cmd_env_cd): Likewise.
4338 (mi_cmd_env_path): Likewise.
4339 (mi_cmd_env_dir): Likewise.
4340 (mi_cmd_inferior_tty_show): Likewise.
4341 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4342 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4343 (mi_cmd_break_watch): Likewise.
4347 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4348 (ppc_linux_insert_hw_breakpoint): Likewise.
4349 (ppc_linux_remove_hw_breakpoint): Likewise.
4350 (ppc_linux_insert_watchpoint): Likewise.
4355 PR fortran/11104 and DWARF unbound arrays detection.
4356 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4357 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4358 unspecified upper bound.
4359 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4360 variables array_size_array, tmp_type and offset_item. New variable
4361 array. Remove call to f77_get_upperbound. New variables array_type
4362 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4363 the final call to deprecated_set_value_type.
4367 Make value allocations more lazy.
4368 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4369 instead of allocate_value and set_value_lazy when possible.
4370 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
4371 instead of allocate_value and set_value_lazy.
4372 * findvar.c (value_of_register_lazy): Likewise.
4373 (read_var_value): Remove V preallocation, call just check_typedef in
4374 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
4375 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4376 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4377 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4378 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4379 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4380 the end, remove set_value_lazy there.
4381 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4382 instead of allocate_value and set_value_lazy when possible.
4383 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4384 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4385 of allocate_value and set_value_lazy.
4386 (value_from_contents_and_address): Use allocate_value_lazy instead of
4387 allocate_value and set_value_lazy when possible.
4391 * disasm.c (dump_insns): Support dumping opcodes for MI.
4392 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4393 dumping of instruction opcodes.
4397 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4402 * thread.c (do_captured_thread_select): Emit newline before
4407 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4408 * score-tdep.c: Ditto.
4409 * score-tdep.h: Ditto.
4410 * ser-base.c: Ditto.
4411 * ser-go32.c: Ditto.
4414 * ser-mingw.c: Ditto.
4415 * ser-pipe.c: Ditto.
4417 * ser-unix.c: Ditto.
4418 * sh64-tdep.c: Ditto.
4419 * shnbsd-nat.c: Ditto.
4423 * solib-darwin.c: Ditto.
4424 * solib-frv.c: Ditto.
4426 * solib-irix.c: Ditto.
4427 * solib-osf.c: Ditto.
4428 * solib-pa64.c: Ditto.
4429 * solib-som.c: Ditto.
4430 * solib-spu.c: Ditto.
4431 * solib-sunos.c: Ditto.
4432 * solib-svr4.c: Ditto.
4434 * sol-thread.c: Ditto.
4438 * sparc64-linux-tdep.c: Ditto.
4439 * sparc64-tdep.c: Ditto.
4440 * sparc-linux-nat.c: Ditto.
4441 * sparc-linux-tdep.c: Ditto.
4442 * sparc-sol2-nat.c: Ditto.
4443 * sparc-sol2-tdep.c: Ditto.
4444 * sparc-tdep.c: Ditto.
4445 * sparc-tdep.h: Ditto.
4446 * spu-tdep.c: Ditto.
4447 * stabsread.c: Ditto.
4448 * stabsread.h: Ditto.
4456 * target-descriptions.c: Ditto.
4457 * target-descriptions.h: Ditto.
4459 * target-memory.c: Ditto.
4460 * terminal.h: Ditto.
4463 * tracepoint.c: Ditto.
4464 * tracepoint.h: Ditto.
4465 * trad-frame.h: Ditto.
4466 * typeprint.c: Ditto.
4470 * ui-file.c: Comment cleanup, mostly periods and spaces.
4475 * v850-tdep.c: Ditto.
4476 * valarith.c: Ditto.
4478 * valprint.c: Ditto.
4479 * valprint.h: Ditto.
4484 * vax-tdep.c: Ditto.
4488 * windows-nat.c: Ditto.
4489 * windows-tdep.c: Ditto.
4490 * xcoffread.c: Ditto.
4491 * xcoffsolib.c: Ditto.
4492 * xml-support.c: Ditto.
4493 * xstormy16-tdep.c: Ditto.
4494 * xtensa-tdep.c: Ditto.
4495 * xtensa-tdep.h: Ditto.
4499 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
4500 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
4505 Implement support for PowerPC BookE ranged watchpoints.
4507 (struct breakpoint_ops) <resources_needed>: New method.
4508 Initialize to NULL in all existing breakpoint_ops instances.
4509 (struct breakpoint) <exact>: New field.
4510 (target_exact_watchpoints): Declare external global.
4511 * breakpoint.c (target_exact_watchpoints): New global flag.
4512 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
4513 b->enable_state to bp_enabled before calling
4514 hw_watchpoint_used_count.
4515 (hw_watchpoint_used_count): Iterate over all bp_locations in a
4516 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
4518 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
4519 if the watchpoint is exact.
4520 (resources_needed_watchpoint): New function.
4521 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
4522 (watch_command_1): Set b->exact if the user asked for an exact
4523 watchpoint and one can be set.
4524 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
4525 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
4526 the user asks for an exact watchpoint and one can be set. Return
4527 number of needed debug registers to watch the expression.
4528 * gdbtypes.c (is_scalar_type): New function, based on
4529 valprint.c:scalar_type_p.
4530 (is_scalar_type_recursive): New function.
4531 * gdbtypes.h (is_scalar_type_recursive): Declare.
4532 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
4533 handle regions when ranged watchpoints are available.
4534 (create_watchpoint_request): New function.
4535 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
4536 create_watchpoint_request.
4537 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
4538 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
4539 `set powerpc' and `show powerpc' commands.
4540 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4541 Mention documentation comment in the target macro.
4542 (target_region_ok_for_hw_watchpoint): Document return value.
4546 * breakpoint.c (update_watchpoint): Decide on using a software or
4547 hardware watchpoint after the bp_locations are created.
4551 Convert hardware watchpoints to use breakpoint_ops.
4552 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
4553 <insert_location>: ... this. Return int instead of void.
4554 Accept pointer to struct bp_location instead of pointer to
4555 struct breakpoint. Adapt all implementations.
4556 (breakpoint_ops) <remove>: Rename to...
4557 <remove_location>: ... this. Accept pointer to struct bp_location
4558 instead of pointer to struct breakpoint. Adapt all implementations.
4559 * breakpoint.c (insert_catchpoint): Delete function.
4560 (insert_bp_location): Call the watchpoint or catchpoint's
4561 breakpoint_ops.insert method.
4562 (remove_breakpoint_1): Call the watchpoint or catchpoint's
4563 breakpoint_ops.remove method.
4564 (insert_watchpoint, remove_watchpoint): New functions.
4565 (watchpoint_breakpoint_ops): New structure.
4566 (watch_command_1): Initialize the OPS field.
4567 * inf-child.c (inf_child_insert_fork_catchpoint)
4568 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
4569 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
4570 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
4572 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
4573 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
4574 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
4575 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
4576 * target.c (update_current_target): Change default implementation of
4577 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
4578 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4579 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
4580 to_set_syscall_catchpoint to return_one.
4581 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
4582 (debug_to_insert_exec_catchpoint): Report return value.
4583 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
4584 (to_insert_exec_catchpoint): Change declaration to return int instead
4589 * arm-tdep.c: Internationalization.
4592 * fork-child.c: Ditto.
4593 * nto-procfs.c: Ditto.
4594 * ppc-sysv-tdep.c: Ditto.
4596 * remote-mips.c: Ditto.
4598 * rs6000-nat.c: Ditto.
4599 * rs6000-tdep.c: Ditto.
4603 * xml-support.c: Ditto.
4604 * mi/mi-cmd-break.c: Ditto.
4605 * mi/mi-cmd-var.c: Ditto.
4606 * mi/mi-interp.c: Ditto.
4607 * mi/mi-main.c: Ditto.
4611 * remote-sim.c (gdbsim_store_register): Update API to
4612 sim_store_register to check more error conditions.
4616 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
4617 * nto-tdep.c: Ditto.
4618 * nto-tdep.h: Ditto.
4619 * objc-exp.y: Ditto.
4620 * objc-lang.c: Ditto.
4621 * objfiles.c: Ditto.
4622 * objfiles.h: Ditto.
4623 * observer.c: Ditto.
4624 * opencl-lang.c: Ditto.
4627 * parser-defs.h: Ditto.
4630 * posix-hdep.c: Ditto.
4631 * ppcbug-rom.c: Ditto.
4632 * ppc-linux-nat.c: Ditto.
4633 * ppc-linux-tdep.c: Ditto.
4634 * ppc-linux-tdep.h: Ditto.
4635 * ppcnbsd-tdep.c: Ditto.
4636 * ppcobsd-tdep.c: Ditto.
4637 * ppcobsd-tdep.h: Ditto.
4638 * ppc-sysv-tdep.c: Ditto.
4639 * ppc-tdep.h: Ditto.
4640 * printcmd.c: Ditto.
4641 * proc-abi.c: Ditto.
4642 * proc-flags.c: Ditto.
4644 * proc-utils.h: Ditto.
4645 * progspace.h: Ditto.
4646 * prologue-value.c: Ditto.
4647 * prologue-value.h: Ditto.
4648 * psympriv.h: Ditto.
4650 * p-typeprint.c: Ditto.
4651 * p-valprint.c: Ditto.
4652 * ravenscar-sparc-thread.c: Ditto.
4653 * ravenscar-thread.c: Ditto.
4654 * ravenscar-thread.h: Ditto.
4656 * regcache.c: Ditto.
4657 * regcache.h: Ditto.
4659 * remote-fileio.c: Ditto.
4660 * remote-fileio.h: Ditto.
4662 * remote-m32r-sdi.c: Ditto.
4663 * remote-mips.c: Ditto.
4664 * remote-sim.c: Ditto.
4665 * rs6000-aix-tdep.c: Ditto.
4666 * rs6000-nat.c: Ditto.
4667 * rs6000-tdep.c: Ditto.
4671 * charset.c (validate): Internationalization.
4672 * coffread.c (read_one_sym): Ditto.
4673 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
4674 * h8300-tdep.c (H8300_extract_return_value): Ditto.
4675 * inflow.c (new_tty): Ditto.
4676 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
4677 * m32c-tdep.c (m32c_return_value): Ditto.
4678 * mep-tdep.c (mep_store_return_value): Ditto.
4679 * score-tdep.c (score7_fetch_insn): Ditto.
4680 * ser-mingw.c (pipe_windows_open): Ditto.
4681 * sh64-tdep.c (sh64_extract_return_value): Ditto.
4682 * spu-tdep.c (spu_register_type): Ditto.
4683 * tracepoint.c (trace_find_command): Ditto.
4684 * valarith.c (value_pos): Ditto.
4688 * ada-valprint.c (printstr): Minor comment reformatting.
4692 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
4697 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
4698 * hppa-hpux-tdep.c: Ditto.
4699 * hppa-linux-nat.c: Ditto.
4700 * hppa-linux-tdep.c: Ditto.
4701 * hppanbsd-tdep.c: Ditto.
4702 * hppa-tdep.c: Ditto.
4703 * hppa-tdep.h: Ditto.
4704 * hpux-thread.c: Ditto.
4705 * i386-cygwin-tdep.c: Ditto.
4706 * i386-darwin-nat.c: Ditto.
4707 * i386gnu-nat.c: Ditto.
4708 * i386-linux-nat.c: Ditto.
4709 * i386-linux-tdep.c: Ditto.
4710 * i386-nat.c: Ditto.
4711 * i386-nat.h: Ditto.
4712 * i386nbsd-tdep.c: Ditto.
4713 * i386-sol2-nat.c: Ditto.
4714 * i386-stub.c: Ditto.
4715 * i386-tdep.c: Ditto.
4716 * i386-tdep.h: Ditto.
4717 * i387-tdep.c: Ditto.
4718 * ia64-linux-nat.c: Ditto.
4719 * ia64-linux-tdep.c: Ditto.
4720 * ia64-tdep.c: Ditto.
4724 * inferior.c: Ditto.
4725 * inferior.h: Ditto.
4731 * iq2000-tdep.c: Ditto.
4732 * irix5-nat.c: Ditto.
4738 * jv-typeprint.c: Ditto.
4739 * jv-valprint.c: Ditto.
4740 * language.c: Ditto.
4741 * language.h: Ditto.
4742 * linespec.c: Ditto.
4743 * linux-fork.c: Ditto.
4744 * linux-nat.c: Ditto.
4745 * linux-thread-db.c: Ditto.
4746 * lm32-tdep.c: Ditto.
4750 * m2-exp.y: Comment cleanup, mostly periods and spaces.
4752 * m2-typeprint.c: Ditto.
4753 * m2-valprint.c: Ditto.
4754 * m32c-tdep.c: Ditto.
4755 * m32r-linux-nat.c: Ditto.
4756 * m32r-rom.c: Ditto.
4757 * m32r-tdep.c: Ditto.
4758 * m32r-tdep.h: Ditto.
4759 * m68hc11-tdep.c: Ditto.
4760 * m58klinux-nat.c: Ditto.
4761 * m68k-tdep.c: Ditto.
4762 * m88k-tdep.c: Ditto.
4763 * m88k-tdep.h: Ditto.
4764 * machoread.c: Ditto.
4765 * macrocmd.c: Ditto.
4766 * macroexp.c: Ditto.
4767 * macrotab.c: Ditto.
4770 * mdebugread.c: Ditto.
4771 * mdebugread.h: Ditto.
4774 * memory-map.h: Ditto.
4775 * mep-tdep.c: Ditto.
4776 * microblaze-rom.c: Ditto.
4777 * microblaze-tdep.c: Ditto.
4779 * mips-irix-tdep.c: Ditto.
4780 * mips-linux-nat.c: Ditto.
4781 * mips-linux-tdep.c: Ditto.
4782 * mips-linux-tdep.h: Ditto.
4783 * mipsnbsd-nat.c: Ditto.
4784 * mipsnbsd-tdep.c: Ditto.
4785 * mipsread.c: Ditto.
4786 * mips-tdep.c: Ditto.
4787 * mips-tdep.h: Ditto.
4788 * mn10300-linux-tdep.c: Ditto.
4789 * mn10300-tdep.c: Ditto.
4790 * mn10300-tdep.h: Ditto.
4793 * moxie-tdep.c: Ditto.
4794 * moxie-tdep.h: Ditto.
4799 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
4803 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
4807 * charset.c (_initialize_charset): Fix typo in string.
4811 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
4813 * tui/tui-layout.c (tui_set_layout_for_display_command):
4814 Split line so that operator goes to beginning of line.
4815 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
4816 assignment out of if statement.
4820 * ada-lang.c: Comment cleanup, mostly periods and spaces.
4821 * ada-lang.h: Ditto.
4822 * ada-tasks.c: Ditto.
4823 * ada-valprint.c: Ditto.
4824 * aix-threads.c: Ditto.
4825 * alpha-linux-nat.c: Ditto.
4826 * alpha-linux-tdep.c: Ditto.
4827 * alpha-mdebug-tdep.c: Ditto.
4828 * alpha-nat.c: Ditto.
4829 * alpha-osf1-tdep.c: Ditto.
4830 * alpha-tdep.c: Ditto.
4831 * alphabsd-nat.c: Ditto.
4832 * alphabsd-tdep.c: Ditto.
4833 * amd64-darwin-tdep.c: Ditto.
4834 * amd64-linux-nat.c: Ditto.
4835 * amd64-linux-tdep.c: Ditto.
4836 * amd64-sol2-tdep.c: Ditto.
4837 * amd64-tdep.c: Ditto.
4838 * amd64-fbsd-tdep.c: Ditto.
4839 * amd64-nbsd-tdep.c: Ditto.
4840 * amd64-obsd-tdep.c: Ditto.
4841 * amd64-linux-nat.c: Ditto.
4842 * amd64-linux-tdep.c: Ditto.
4843 * arm-tdep.c: Ditto.
4844 * arm-tdep.h: Ditto.
4845 * armnbsd-nat.c: Ditto.
4846 * avr-tdep.c: Ditto.
4847 * bfin-tdep.c: Ditto.
4849 * c-typeprintc: Ditto.
4850 * c-valprint.c: Ditto.
4851 * coff-pe-read.h: Ditto.
4852 * coffreead.c: Ditto.
4853 * cris-tdep.c: Ditto.
4855 * darwin-nat-info.c: Ditto.
4856 * darwin-nat.c: Ditto.
4857 * dbug-rom.c: Ditto.
4861 * dec-thread.c: Ditto.
4863 * demangle.c: Ditto.
4864 * dicos-tdep.c: Ditto.
4865 * dictionary.c: Ditto.
4866 * dictionary.h: Ditto.
4867 * dink32-rom.c: Ditto.
4869 * doublest.c: Ditto.
4871 * dummy-frame.c: Ditto.
4872 * dwarf2-frame.c: Ditto.
4873 * dwarf2expr.c: Ditto.
4874 * dwarf2loc.c: Ditto.
4875 * dwarf2read.c: Ditto.
4879 * event-top.h: Ditto.
4880 * exceptions.c: Ditto.
4881 * exceptions.h: Ditto.
4883 * expprint.c: Ditto.
4884 * expression.h: Ditto.
4888 * f-typeprint.c: Ditto.
4889 * f-valprint.c: Ditto.
4890 * fbsd-nat.c: Ditto.
4892 * fork-child.c: Ditto.
4895 * frv-linux-tdep.c: Ditto.
4896 * frv-tdep.c: Ditto.
4898 * gdb-stabs.h: Ditto.
4899 * gdb_assert.h: Ditto.
4900 * gdb_string.h: Ditto.
4901 * gdb_thread_db.h: Ditto.
4902 * gdb_wait.h: Ditto.
4903 * gdbarch.sh: Ditto.
4905 * gdbthread.h: Ditto.
4906 * gdbtypes.c: Ditto.
4907 * gdbtypes.h: Ditto.
4910 * gnu-v2-abi.c: Ditto.
4911 * gnu-v3-abi.c: Ditto.
4912 * go32-nat.c: Ditto.
4913 * gdbarch.c: Regenerate.
4914 * gdbarch.h: Regenerate.
4918 * ax-gdb.c: Adjust some long output strings.
4919 * breakpoint.c: Ditto.
4924 * linux-nat.c: Ditto.
4925 * solib-pa64.c: Ditto.
4926 * solib-som.c: Ditto.
4932 * python/python.c (GdbMethods): Add "newest_frame" method.
4933 * python/python-internal.h (gdbpy_newest_frame): Declare.
4934 * python/py-frame.c (gdbpy_newest_frame): New function.
4938 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
4939 * jit.c (jit_debug): New variable.
4940 (show_jit_debug): New function.
4941 (struct target_buffer): Use ULONGEST.
4942 (bfd_open_from_target_memory): Likewise.
4943 (jit_register_code, jit_inferior_init): Add debug output.
4944 (_initialize_jit): Register "debug jit" command.
4948 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
4949 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
4954 * python/py-frame.c (frapy_block): Use get_frame_block.
4958 Do not stop on SIGPRIO signals by default
4959 * infrun.c (_initialize_infrun): Unset signal_stop and
4960 signal_print for TARGET_SIGNAL_PRIO.
4964 * ada-tasks.c: Fix style violation in comment.
4968 * linespec.c (decode_compound, find_method): Remove trailing \n
4969 at end of error string.
4970 * solib-irix.c (irix_current_sos): Likewise.
4971 * varobj.c (uninstall_variable): Likewise.
4975 * copyright.py: New script.
4976 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
4977 Launch emacs without exec'ing. Call copyright.py afterwards.
4981 * addrmap.c: Shorten lines of >= 80 columns.
4982 * arch-utils.c: Ditto.
4983 * arch-utils.h: Ditto.
4985 * ax-general.c: Ditto.
4987 * blockframe.c: Ditto.
4988 * breakpoint.c: Ditto.
4989 * buildsym.c: Ditto.
4991 * c-typeprint.c: Ditto.
4993 * coffread.c: Ditto.
4997 * cp-namespace.c: Ditto.
4998 * cp-support.c: Ditto.
4999 * dbug-rom.c: Ditto.
5004 * dictionary.c: Ditto.
5006 * doublest.c: Ditto.
5007 * dwarf2-frame.c: Ditto.
5008 * dwarf2expr.c: Ditto.
5009 * dwarf2loc.c: Ditto.
5010 * dwarf2read.c: Ditto.
5013 * event-loop.c: Ditto.
5014 * event-loop.h: Ditto.
5015 * exceptions.h: Ditto.
5017 * expprint.c: Ditto.
5018 * expression.h: Ditto.
5020 * f-valprint.c: Ditto.
5022 * frame-base.c: Ditto.
5023 * frame-unwind.c: Ditto.
5024 * frame-unwind.h: Ditto.
5028 * gdb-stabs.h: Ditto.
5029 * gdb_assert.h: Ditto.
5030 * gdb_dirent.h: Ditto.
5031 * gdb_obstack.h: Ditto.
5033 * gdbtypes.c: Ditto.
5034 * gdbtypes.h: Ditto.
5035 * inf-ttrace.c: Ditto.
5040 * inline-frame.h: Ditto.
5041 * language.c: Ditto.
5042 * language.h: Ditto.
5043 * libunwind-frame.c: Ditto.
5044 * libunwind-frame.h: Ditto.
5045 * linespec.c: Ditto.
5046 * linux-nat.c: Ditto.
5047 * linux-nat.h: Ditto.
5048 * linux-thread-db.c: Ditto.
5049 * machoread.c: Ditto.
5050 * macroexp.c: Ditto.
5051 * macrotab.c: Ditto.
5054 * mdebugread.c: Ditto.
5059 * objfiles.c: Ditto.
5060 * objfiles.h: Ditto.
5062 * p-typeprint.c: Ditto.
5063 * p-valprint.c: Ditto.
5065 * printcmd.c: Ditto.
5066 * proc-events.c: Ditto.
5068 * progspace.c: Ditto.
5069 * progspace.h: Ditto.
5070 * psympriv.h: Ditto.
5073 * regcache.c: Ditto.
5074 * regcache.h: Ditto.
5075 * remote-fileio.c: Ditto.
5077 * ser-mingw.c: Ditto.
5079 * ser-unix.c: Ditto.
5082 * solib-frv.c: Ditto.
5083 * solib-irix.c: Ditto.
5084 * solib-osf.c: Ditto.
5085 * solib-pa64.c: Ditto.
5086 * solib-som.c: Ditto.
5087 * solib-sunos.c: Ditto.
5088 * solib-svr4.c: Ditto.
5089 * solib-target.c: Ditto.
5093 * stabsread.c: Ditto.
5094 * stabsread.c: Ditto.
5097 * symfile-mem.c: Ditto.
5103 * target-descriptions.c: Ditto.
5104 * target-memory.c: Ditto.
5107 * terminal.h: Ditto.
5110 * tracepoint.c: Ditto.
5111 * tracepoint.h: Ditto.
5115 * user-regs.c: Ditto.
5116 * user-regs.h: Ditto.
5118 * valarith.c: Ditto.
5120 * valprint.c: Ditto.
5121 * valprint.h: Ditto.
5126 * xcoffread.c: Ditto.
5127 * xcoffsolib.c: Ditto.
5128 * xcoffsolib.h: Ditto.
5129 * xml-syscall.c: Ditto.
5130 * xml-tdesc.c: Ditto.
5134 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5135 * cli/cli-decode.c: Ditto.
5136 * cli/cli-dump.c: Ditto.
5137 * cli/cli-logging.c: Ditto.
5138 * cli/cli-script.c: Ditto.
5139 * cli/cli-setshow.c: Ditto.
5140 * common/signals.c: Ditto.
5141 * mi/mi-cmd-break.c: Ditto.
5142 * mi/mi-cmd-disas.c: Ditto.
5143 * mi/mi-cmd-stack.c: Ditto.
5144 * mi/mi-cmd-var.c: Ditto.
5145 * mi/mi-cmds.c: Ditto.
5146 * mi/mi-common.h: Ditto.
5147 * mi/mi-console.c: Ditto.
5148 * mi/mi-interp.c: Ditto.
5149 * mi/mi-main.c: Ditto.
5150 * osf-share/cma_attr.c: Ditto.
5151 * osf-share/cma_deb_core.h: Ditto.
5152 * osf-share/cma_debug_client.h: Ditto.
5153 * osf-share/cma_handle.h: Ditto.
5154 * osf-share/cma_mutex.h: Ditto.
5155 * osf-share/cma_stack_int.h: Ditto.
5156 * osf-share/cma_tcb_defs.h: Ditto.
5157 * python/py-auto-load.c: Ditto.
5158 * python/py-breakpoint.c: Ditto.
5159 * python/py-cmd.c: Ditto.
5160 * python/py-frame.c: Ditto.
5161 * python/py-objfile.c: Ditto.
5162 * python/py-param.c: Ditto.
5163 * python/py-progspace.c: Ditto.
5164 * python/py-symbol.c: Ditto.
5165 * python/py-value.c: Ditto.
5166 * python/python-internal.h: Ditto.
5167 * python/python.c: Ditto.
5168 * tui/tui-data.c: Ditto.
5169 * tui/tui-disasm.c: Ditto.
5170 * tui/tui-hooks.c: Ditto.
5171 * tui/tui-io.c: Ditto.
5172 * tui/tui-layout.c: Ditto.
5173 * tui/tui-regs.c: Ditto.
5174 * tui/tui-source.c: Ditto.
5175 * tui/tui-stack.c: Ditto.
5176 * tui/tui-win.c: Ditto.
5177 * tui/tui-windata.c: Ditto.
5178 * tui/tui-winsource.c: Ditto.
5182 * configure.ac, gdb.1: Copyright year update.
5186 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5187 this_pc_in_block, morestack_msym and morestack_name. Check for
5188 "__morestack" minimal symbol there.
5192 * symfile.c (find_sym_fns): Add call to dont_repeat.
5196 Copyright year update in most files (performed by copyright.sh).
5200 * top.c (print_gdb_version): Update copyright year in version output.
5202 For older changes see ChangeLog-2010.
5208 version-control: never