4 Fix PR 10970, PR 12702.
5 * linux-nat.c (linux_lwp_is_zombie): New function.
6 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
7 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
11 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
13 (add_continuation, add_intermediate_continuation)
14 (add_inferior_continuation): Use them.
15 * continuations.c (struct continuation): Use them.
16 (make_continuation_ftype): Delete.
17 (make_continuation, add_inferior_continuation, add_continuation)
18 (add_intermediate_continuation): Use continuation_ftype and
19 continuation_free_arg_ftype. Rename parameters to shorter names.
23 * continuations.c (make_continuation): Make it return void.
24 (do_my_continuations): Rename to ...
25 (do_my_continuations_1): ... this. Remove old_chain parameter and
27 (do_my_continuations): New.
28 (discard_my_continuations): Rename to ...
29 (discard_my_continuations_1): ... this. Remove old_chain
31 (discard_my_continuations): New.
32 (add_inferior_continuation): Simplify.
33 (do_all_inferior_continuations): Reimplement on top
35 (discard_all_inferior_continuations): Simplify.
36 (add_continuation): Simplify.
37 (do_all_continuations_ptid): Simplify.
38 (discard_all_continuations_thread_callback): Simplify.
39 (add_intermediate_continuation): Simplify.
40 (discard_all_intermediate_continuations_thread_callback):
45 * utils.c (struct continuation, add_continuation)
46 (add_inferior_continuation)
47 (do_all_inferior_continuations, discard_all_inferior_continuations)
48 (restore_thread_cleanup, do_all_continuations_ptid)
49 (do_all_continuations_thread_callback)
50 (do_all_continuations_thread, do_all_continuations)
51 (discard_all_continuations_thread_callback)
52 (discard_all_continuations_thread, discard_all_continuations)
53 (add_intermediate_continuation)
54 (do_all_intermediate_continuations_thread_callback)
55 (do_all_intermediate_continuations_thread)
56 (do_all_intermediate_continuations)
57 (discard_all_intermediate_continuations_thread_callback)
58 (discard_all_intermediate_continuations_thread)
59 (discard_all_intermediate_continuations): Move to ...
60 * continuations.c: ... this new file, and adjust to no longer
61 implement continuations on top of cleanups.
62 * Makefile.in (SFILES): Add continuations.c.
63 (COMMON_OBS): Add continuations.o.
67 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
68 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
69 Internal error on invalid values.
70 * reverse.c: Don't handle EXEC_ERROR.
71 * mi/mi-main.c: Don't handle EXEC_ERROR.
75 * record.c: Include event-loop.h, inf-loop.h.
76 (record_beneath_to_async): New global.
77 (tmp_to_async): New global.
78 (record_async_inferior_event_token): New global.
79 (record_open_1): Don't error out if async is enabled.
80 (record_open): Handle to_async. Create an async event source in
82 (record_close): Delete the async event source.
83 (record_resumed): New global.
84 (record_execution_dir): New global.
85 (record_resume, record_core_resume): Set them. Register the
86 target on the event loop.
87 (record_wait): Rename to ...
88 (record_wait_1): ... this. Add more debug output. Handle
89 TARGET_WNOHANG, and the target beneath returning
90 TARGET_WAITKIND_IGNORE.
91 (record_wait): Reimplement on top of record_wait_1.
92 (record_async_mask_value): New global.
93 (record_async, record_async_mask, record_can_async_p)
94 (record_is_async_p, record_execution_direction): New functions.
95 (init_record_ops, init_record_core_ops): Install new methods.
96 * infrun.c (fetch_inferior_event): Temporarily switch the global
97 execution direction to the direction the target was going.
98 (execution_direction): Change type to int.
99 * target.c (default_execution_direction): New function.
100 (update_current_target): Inherit and de_fault
101 to_execution_direction.
102 * target.h (struct target_ops) <to_execution_direction>: New
104 (target_execution_direction): New macro.
105 * inferior.h (execution_direction): Change type to int.
109 * infcall.c (call_function_by_hand): Don't allow calling functions
110 in reverse execution mode.
114 * infcmd.c (finish_command): Allow async finish in reverse.
118 * gdb_thread_db.h: Delete. Move to ...
119 * common/gdb_thread_db.h: ... here.
123 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
124 function's entry point instead of a manually managed momentary
125 breakpoint, and only ever issue one proceed call.
126 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
127 doing a reverse-finish, switch to stepi mode, to do another step.
128 (insert_step_resume_breakpoint_at_sal): Make public.
129 (normal_stop): No need to save function value return registers if
131 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
135 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
136 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
137 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
139 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
140 step-resume breakpoints.
141 (print_it_typical): Handle bp_hp_step_resume.
142 (bpstat_what): Ditto.
143 (bptype_string): Ditto.
144 (print_one_breakpoint_location): Ditto.
145 (allocate_bp_location): Ditto.
147 (breakpoint_re_set_one): Ditto.
148 * infrun.c (handle_inferior_event): Adjust. Split
149 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
150 BPSTAT_WHAT_HP_STEP_RESUME.
151 (insert_step_resume_breakpoint_at_sal): Rename to ...
152 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
153 parameter. Handle it.
154 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
155 insert_step_resume_breakpoint_at_sal_1.
156 (insert_step_resume_breakpoint_at_frame): Rename to ...
157 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
158 set a high-priority step-resume breakpoint.
159 (insert_step_resume_breakpoint_at_frame): Adjust comment.
160 (insert_step_resume_breakpoint_at_caller): Ditto.
164 * breakpoint.c (iterate_over_related_breakpoints): New.
165 (do_map_delete_breakpoint): New.
166 (delete_command): Pass do_map_delete_breakpoint to
167 map_breakpoint_numbers.
168 (do_disable_breakpoint): New.
169 (do_map_disable_breakpoint): Iterate over the breakpoint's related
171 (do_enable_breakpoint): Rename to ...
172 (enable_breakpoint_disp): ... this.
173 (enable_breakpoint): Adjust.
174 (do_enable_breakpoint): New.
175 (enable_once_breakpoint): Delete.
176 (do_map_enable_breakpoint): New.
177 (do_map_enable_once_breakpoint): New.
178 (enable_once_command, enable_delete_command)
179 (delete_trace_command): Iterate over the breakpoint's related
184 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
185 for ALPHA_ZERO_REGNUM.
186 (alpha_supply_int_regs): Explicitly supply zero as the value for
187 ALPHA_ZERO_REGNUM in the register cache.
188 * alpha-nat.c (fetch_osf_core_registers): Ditto.
192 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
196 * symfile.h (struct dwarf2_section_names): New type.
197 (struct dwarf2_debug_sections): New type.
198 (dwarf2_has_info): Add parameter.
199 * dwarf2read.c (dwarf2_elf_names): New variable.
200 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
201 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
202 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
203 (dwarf2_has_info): Add names parameter. Pass names
204 to dwarf2_locate_sections.
205 (section_is_p): Rewrite using the names parameter.
206 (dwarf2_locate_sections): Use section names from the names parameter.
207 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
208 * elfread.c (read_psyms): Ditto.
209 * machoread.c (macho_symfile_read): Ditto.
214 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
219 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
220 (decode_compound): Unconditionally call keep_name_info.
224 * breakpoint.c (watchpoint_check): If the watchpoint went out of
225 scope, clear its command list.
226 (map_breakpoint_numbers): Don't walk the related breakpoints list
231 * MAINTAINERS: Move Jim Blandy to past maintainers.
235 * symfile.h (enum dwarf2_section_enum): New type.
236 (dwarf2_get_section_info): New prototype.
237 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
238 section_name by sect. Use a switch to select the info.
239 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
240 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
244 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
245 shared library event breakpoint if there's no execution.
249 * breakpont.c (remove_hw_watchpoints): Remove unused function.
250 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
254 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
259 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
260 entry for RuntimeError to doc string.
264 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
265 sequence for probing loops.
269 * infrun.c (user_visible_resume_ptid): Fix typos in describing
274 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
275 zero as the value for %g0 in the register cache.
276 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
277 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
281 * infrun.c (proceed): Set previous_inferior_ptid here.
282 (init_wait_for_inferior): Initialize previous_inferior_ptid from
283 inferior_ptid, not null_ptid.
284 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
285 (fetch_inferior_event): Nor here.
289 * inf-loop.c (inferior_event_handler): Only output a message if
294 * MAINTAINERS: Update my e-mail address.
298 * infrun.c (proceed): Switch the inferior event loop to
299 INF_EXEC_COMPLETE if the target refused to resume from a
304 * infcmd.c: Include "inf-loop.h".
305 (step_once): When stepping into an inline subroutine, pretend the
306 target has run. If the target can async, switch the inferior
307 event loop to INF_EXEC_COMPLETE.
308 * inferior.h (user_visible_resume_ptid): Declare.
309 * infrun.c (user_visible_resume_ptid): New function, factored out
312 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
313 that the current thread is running. Merge async and sync
318 * infcmd.c (step_1): Simplify synchronous case.
322 * tracepoint.c: Include exceptions.h.
323 (TFILE_PID): Move higher in file.
324 (tfile_open): Delay pushing the tfile target until we're assured
325 the tfile header is present in the file. Wrap reading the initial
326 newline-terminated lines in TRY_CATCH. Pop the target if the
327 initial setup failed. Add the tfile's thread immediately
328 aftwards, before any non-essential setup. Don't skip
329 post_create_inferior if there are no traceframes present in the
331 (tfile_close): Remove redundant check for null before xfree call.
332 (tfile_thread_alive): New function.
333 (init_tfile_ops): Register it as to_thread_alive callback.
337 * tracepoint.c (tfile_open): Delete #if 0'd code.
341 Fix -readnow for -gdwarf-4 unused type units.
342 * dwarf2read.c (struct signatured_type): Remove the field offset.
343 (create_signatured_type_table_from_index): Remove its initialization.
344 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
345 instead. Add a complaint call.
346 (process_psymtab_comp_unit): Change assignment to gdb_assert.
347 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
348 (lookup_signatured_type_at_offset, read_signatured_type)
349 (write_one_signatured_type): Update the field for per_cu.
353 * python/py-inferior.c (python_inferior_exit): Use
355 (python_on_resume): Likewise.
359 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
363 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
367 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
371 * dwarf2read.c (dwarf2_add_field): Constify.
372 * value.c (value_static_field): Constify.
373 * gdbtypes.h (struct main_type) <field.field_location.physname>:
375 * ax-gdb.c (gen_static_field): Constify
379 * linux-nat.c (kill_callback): Use SIGKILL first.
383 * ada-lang.c (print_it_exception): Avoid use of sprintf.
387 * value.c (value_fn_field): Constify.
388 * symtab.c (gdb_mangle_name): Constify.
389 * stabsread.c (update_method_name_from_physname): Make 'physname'
391 * p-typeprint.c (pascal_type_print_method_args): Make arguments
392 const. Use explicit fputc_filtered loop.
393 (pascal_type_print_base): Constify.
394 * p-lang.h (pascal_type_print_method_args): Update.
395 * linespec.c (add_matching_methods): Constify.
396 (add_constructors): Likewise.
397 * jv-typeprint.c (java_type_print_base): Constify.
398 * gdbtypes.h (struct cplus_struct_type)
399 <fn_fieldlist.fn_field.physname>: Now const.
400 * dwarf2read.c (compute_delayed_physnames): Constify.
401 (dwarf2_add_member_fn): Likewise.
402 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
406 * infrun.c (resume): Mention which is the current thread, and its
407 current PC in debug output.
408 (prepare_to_proceed): Mention the thread switching in debug
413 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
414 path check. Use xmalloc and cleanups.
415 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
419 * cp-valprint.c (cp_print_value_fields): Catch errors from
424 * dwarf2read.c (dwarf2_get_die_type): Call
425 get_die_type_at_offset.
426 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
427 get_base_type function.
431 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
436 * python/py-auto-load.c (source_section_scripts): Mention objfile
441 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
442 (try_thread_db_load_from_pdir): Call it. If unable to find
443 libthread_db in directory of libpthread, see if we're looking at
444 the separate-debug-info copy.
446 * python/py-autoload.c (print_script): Print "Missing" instead of
447 "No" for missing scripts.
448 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
452 * ui-file.c (stdio_file_write_async_safe): Add comment.
456 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
460 Support $pdir and $sdir in libthread-db-search-path.
461 * NEWS: Mention $sdir,$pdir.
462 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
463 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
464 (try_thread_db_load_from_sdir): New function.
465 (try_thread_db_load_from_dir): New function.
466 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
467 system directories if search of libthread-db-search-path fails,
468 that is now done via $sdir.
469 (has_libpthread): New function.
470 (thread_db_load): Remove search for libthread_db in directory of
471 libpthread, that is now done via $pdir.
473 * NEWS: Mention "info auto-load-scripts".
474 * python/py-auto-load.c (struct auto_load_pspace_info): New member
475 script_not_found_warning_printed.
476 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
477 all callers updated. Initialize script_not_found_warning_printed.
478 (get_auto_load_pspace_data_for_loading): New function.
479 (maybe_add_script): New function.
480 (source_section_scripts): Simplify. Only print one warning regardless
481 of the number of auto-load scripts not found.
482 (clear_section_scripts): Clear script_not_found_warning_printed.
483 (auto_load_objfile_script): Record script in hash table.
484 (count_matching_scripts): New function.
485 (maybe_print_script): Renamed from maybe_print_section_script, all
486 callers updated. Rewrite to use ui_out_*.
487 (info_auto_load_scripts): Renamed from
488 maintenance_print_section_scripts, all callers updated.
489 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
490 renamed as "info auto-load-scripts".
494 * dwarf2expr.c (read_uleb128): Cast intermediate result.
495 (read_sleb128): Likewise.
499 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
504 * linux-nat.c (debug_linux_nat_async): Delete.
505 Replace all references to use debug_linux_nat instead.
506 (show_debug_linux_nat_async): Delete.
507 (sigchld_handler): Call ui_file_write_async_safe instead of
509 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
510 * ui-file.c (struct ui_file): New member to_write_async_safe.
511 (null_file_write_async_safe): New function.
512 (ui_file_write_async_safe): New function.
513 (set_ui_file_write_async_safe): New function.
514 (ui_file_new): Initialize to_write_async_safe.
515 (stdio_file_write_async_safe): New function.
516 (struct stdio_file): New member fd.
517 (stdio_file_new): Initialize to_write_async_safe, fd.
518 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
520 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
521 (set_ui_file_write_async_safe): Declare.
522 (ui_file_write_async_safe): Declare.
526 * utils.c (do_value_free): New function.
527 (make_cleanup_value_free): Likewise.
528 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
530 (dwarf2_loc_desc_needs_frame): Call
531 make_cleanup_value_free_to_mark.
532 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
533 * dwarf2expr.c (free_dwarf_expr_context): Don't call
535 (new_dwarf_expr_context): Don't call value_mark.
536 * dwarf2-frame.c (execute_stack_op): Call
537 make_cleanup_value_free_to_mark.
538 * defs.h (make_cleanup_value_free): Declare.
542 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
543 prepare_execute_command.
544 * top.c (prepare_execute_command): Return cleanup.
545 (execute_command): Use cleanup from prepare_execute_command.
546 * top.h (prepare_execute_command): Change prototype to return
548 * defs.h (struct value): Add opaque declaration.
549 (make_cleanup_value_free_to_mark): Add prototype.
550 * utils.c (do_value_free_to_mark): New function.
551 (make_cleanup_value_free_to_mark): Likewise.
555 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
556 cast left-hand-side to unsigned.
561 * value.h (value_from_contents): Declare.
562 * value.c (value_from_contents): New function.
563 * dwarf2read.c (dwarf_stack_op_name): Add new values.
564 (dwarf2_get_die_type): New function.
565 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
566 (allocate_piece_closure): Acquire reference to values.
567 (read_pieced_value): Update for value-based expressions.
568 (write_pieced_value): Likewise.
569 (free_pieced_value_closure): Call value_free as needed.
570 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
571 Update for value-based expressions.
572 * dwarf2loc.h (dwarf2_get_die_type): Declare.
573 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
574 <get_base_type>: New field.
575 (struct dwarf_expr_piece) <v.value>: Change type.
576 <v.regno>: New field.
577 (struct dwarf_expr_context) <mark>: New field.
578 (dwarf_expr_piece, dwarf_expr_fetch): Update.
579 (dwarf_expr_pop, dwarf_expr_push): Remove.
580 (dwarf_expr_push_address): Declare.
581 * dwarf2expr.c (dwarf_arch_cookie): New global.
582 (struct dwarf_gdbarch_types): New.
583 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
585 (dwarf_expr_push): Change type of 'value' argument. Update. Now
587 (dwarf_expr_push_address): New function.
588 (dwarf_expr_pop): Now static.
589 (dwarf_expr_fetch): Change return type.
590 (dwarf_require_integral): New function.
591 (dwarf_expr_fetch): Simplify.
593 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
595 (execute_stack_op) <sign_ext>: Remove.
596 Use values for DWARF stack.
597 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
598 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
600 (_initialize_dwarf2expr): New function.
602 (new_dwarf_expr_context): Set new field.
603 (free_dwarf_expr_context): Call value_free_to_mark.
604 * dwarf2-frame.c (no_base_type): New function.
605 (execute_stack_op): Set get_base_type field. Update.
609 * dwarf2read.c (read_common_block): Fix formatting.
613 * breakpoint.c (disable_breakpoint): Disable all locations
614 associated with a tracepoint on target if a trace experiment is
616 (disable_command): Disable a specific tracepoint location on target if
617 a trace experiment is running.
618 (do_enable_breakpoint): Enable all locations associated with a
619 tracepoint on target if a trace experiment is running.
620 (enable_command) Enable a specific tracepoint location on target if a
621 trace experiment is running.
622 * target.c (update_current_target): Add INHERIT and de_fault clauses for
623 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
624 to_disable_tracepoint.
625 * target.h: Add declaration of struct bp_location.
626 (struct target_ops): Add new functions
627 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
628 to_disable_tracepoint to target operations.
629 (target_supports_enable_disable_tracepoint): New macro.
630 (target_enable_tracepoint): New macro.
631 (target_disable_tracepoint): New macro.
632 * remote.c (struct remote_state): Add new field.
633 (remote_enable_disable_tracepoint_feature): New.
634 (remote_protocol_features): Add new entry.
635 (remote_supports_enable_disable_tracepoint): New.
636 (remote_enable_tracepoint): New.
637 (remote_disable_tracepoint): New.
638 (init_remote_ops): Add remote_enable_tracepoint,
639 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
640 to remote operations.
641 * tracepoint.c (start_tracing): Allow tracing to start without any
642 tracepoints enabled with just a warning if they can be re-enabled
644 * NEWS: Add news item for the new behaviour of the enable and disable
645 GDB commands when applied to tracepoints.
646 Add news items for the new remote packets QTEnable and QTDisable.
650 * config.in: Regenerate.
651 * configure: Regenerate.
652 * configure.ac <--with-system-readline> (for readline_echoing_p):
654 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
655 (tui_old_rl_echoing_p): ... here.
656 (tui_setup_io): Rename extern declaration readline_echoing_p to
657 _rl_echoing_p. Adjust assignments for the both renames.
661 * symtab.c (lookup_symtab): Run cleanup before returning.
665 * dwarf2read.c (handle_data_member_location): New function.
666 (dwarf2_add_field): Use it.
667 (read_common_block): Likewise.
671 Make addrs->SECTINDEX always defined.
672 * symfile.c (relative_addr_info_to_section_offsets): Check for
673 SECTINDEX -1, not for zero ADDR.
674 (addrs_section_compar): Remove checking for invalid SECTINDEX.
675 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
676 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
681 * linux-thread-db.c: Whitespace cleanup.
682 (try_thread_db_load_1): Fix comment.
684 * linux-thread-db.c (set_libthread_db_search_path): New function.
685 (_initialize_thread_db): Add setter for libthread-db-search-path.
689 * NEWS: Mention --with-iconv-bin.
690 * configure.ac: New option --with-iconv-bin.
691 * configure: Regenerate.
692 * config.in: Regenerate.
693 * defs.h (relocate_gdb_directory): Declare.
694 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
695 removed progname parameter, and exported. All callers updated.
696 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
698 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
699 adding missing call to restore_child_signals_mask.
703 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
705 * infrun.c (proceed, start_remote): Adjust.
706 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
707 and adjust to not handle it.
708 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
709 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
710 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
711 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
712 * windows-nat.c (do_initial_windows_stuff): Adjust.
713 * infcmd.c (attach_command): Adjust.
714 (notice_new_inferior): Adjust.
718 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
719 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
720 * spu-tdep.c (op_selb): Use correct value.
724 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
725 "parent" parameter to symbol_file_add_from_bfd call.
730 Implement support for PowerPC BookE masked watchpoints.
731 * NEWS: Mention masked watchpoint support. Create "Changed commands"
733 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
734 method. Initialize to NULL in all existing breakpoint_ops instances.
735 (struct breakpoint) <hw_wp_mask>: New field.
736 * breakpoint.c (is_masked_watchpoint): Add prototype.
737 (update_watchpoint): Don't set b->val for masked watchpoints. Call
738 breakpoint's breakpoint_ops.works_in_software_mode if available.
739 (watchpoints_triggered): Handle the case of a hardware masked
741 (watchpoint_check): Likewise.
742 (works_in_software_mode_watchpoint): New function.
743 (insert_masked_watchpoint, remove_masked_watchpoint)
744 (resources_needed_masked_watchpoint)
745 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
746 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
747 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
749 (masked_watchpoint_breakpoint_ops): New structure.
750 (watch_command_1): Check for the existence of the `mask' parameter.
751 Set b->ops according to the type of hardware watchpoint being created.
752 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
753 (ppc_linux_remove_mask_watchpoint)
754 (ppc_linux_masked_watch_num_registers): New functions.
755 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
756 to_remove_mask_watchpoint and to_masked_watch_num_registers.
757 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
758 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
759 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
760 (target_masked_watch_num_registers): New functions.
761 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
762 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
764 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
765 (target_masked_watch_num_registers): Add prototypes.
770 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
771 (producer_is_gcc_ge_4_0): New function.
772 (process_full_comp_unit): Set also symtab->locations_valid. Move the
773 symtab->language code.
774 (var_decode_location): Set cu->has_loclist.
775 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
776 skip. Intialize force_skip from locations_valid. Move the prologue
777 skipping code into two passes.
778 * symtab.h (struct symtab): Make the primary field a bitfield. New
779 field locations_valid.
783 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
784 (classify_inner_name): Call cp_lookup_nested_type with
786 * cp-namespace.c (cp_lookup_nested_type): New variable
787 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
788 type_name_no_tag_or_error with saved_parent_type.
789 * dwarf2read.c (load_partial_dies): Read in any children of
790 DW_TAG_typedef with complaint in such case.
791 * gdbtypes.c (type_name_no_tag_or_error): New function.
792 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
793 * valops.c (destructor_name_p): New comment for parameter type. Remove
794 type const. Make dname and cp const. Call type_name_no_tag_or_error.
795 * value.h (destructor_name_p): Remove type const.
799 * symtab.c (compare_symbol_name): New function.
800 (completion_list_add_name, expand_partial_symbol_name): Call it,
801 remove the variable ncmp.
802 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
807 Demote to sw watchpoint only in update_watchpoint.
808 * breakpoint.c (update_watchpoint): Change between software and
809 hardware watchpoint for all kinds of watchpoints, not just
810 read/write ones. Determine b->exact value here instead of
811 in watch_command_1. Error out if there are not enough resources
812 for a read or access hardware watchpoint.
813 (watch_command_1): Remove logic of checking whether there are
814 enough resources available, since update_watchpoint will do that
815 work now. Don't set b->exact here. Catch exceptions thrown by
816 update_watchpoint and delete the watchpoint.
817 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
818 Use target_exact_watchpoints instead.
819 (delete_breakpoint): Notify observers only if deleted watchpoint
820 has a breakpoint number assigned to it.
824 * MAINTAINERS: Add myself as a write-after-approval maintainer.
828 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
830 (i386_stack_tramp_frame_unwind): New static global.
831 (i386_match_pattern): New function, extracted from i386_match_insn.
832 (i386_match_insn): Use i386_match_pattern.
833 (i386_match_insn_block): New function.
834 (i386_tramp_chain_in_reg_insns)
835 (i386_tramp_chain_on_stack_insns): New static variables.
836 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
841 * configure.host (xscale*): Don't handle target.
842 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
847 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
853 | * elfread.c (elf_symtab_read): Stop memory leak.
857 * nto-tdep.c (nto_target): Replace deprecated call to
858 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
862 Fix false GCC warning.
863 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
867 * breakpoint.c (update_watchpoint): Move code to change
868 the enable state of breakpoint from here ...
869 (do_enable_breakpoint): ... to here.
873 * valprint.c (val_print_array_elements): Fixed poor performance
874 of printing very large arrays with repeat_count_threshold set
875 to unlimited. New comment.
879 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
880 (mi_parse): Likewise.
881 * breakpoint.c (break_range_command): Use sizeof char*, not
883 (create_breakpoint): Likewise.
884 (parse_breakpoint_sals): Likewise.
888 * linux-nat.c (linux_child_remove_fork_catchpoint)
889 (linux_child_remove_vfork_catchpoint)
890 (linux_child_remove_exec_catchpoint): New functions.
891 (linux_target_install_ops): Install them.
897 * varobj.c (install_default_visualizer): Do not install a
898 visualizer if the varobj is CPLUS_FAKE_CHILD.
899 (construct_visualizer): Likewise.
903 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
904 case insensitive comparison.
908 * infrun.c (proceed): Revert previous change.
909 (resume): Instead, handle the case of signal delivery while stepping
910 off a breakpoint location here, and only if software single-stepping
911 is used. Handle nested signals.
915 * arm-tdep.c (copy_unmodified): Rename to ...
916 (arm_copy_unmodified): .. this. New.
917 (copy_preload): Move common part to ...
918 (install_preload): .. this. New.
919 (arm_copy_preload): New.
920 (copy_preload_reg): Move common part to ...
921 (install_preload_reg): ... this. New.
922 (arm_copy_preload_reg): New.
923 (copy_b_bl_blx): Move common part to ...
924 (install_b_bl_blx): .. this. New.
925 (arm_copy_b_bl_blx): New.
926 (copy_bx_blx_reg): Move common part to ...
927 (install_bx_blx_reg): ... this. New.
928 (arm_copy_bx_blx_reg): New.
929 (copy_alu_reg): Move common part to ...
930 (install_alu_reg): ... this. New.
931 (arm_copy_alu_reg): New.
932 (copy_alu_shifted_reg): Move common part to ...
933 (install_alu_shifted_reg): ... this. New.
934 (copy_ldr_str_ldrb_strb): Move common part to ...
935 (install_ldr_str_ldrb_strb): ... this. New.
936 (arm_copy_ldr_str_ldrb_strb): New.
937 (copy_copro_load_store): Move some common part to ...
938 (install_copy_copro_load_store): ... this. New.
939 (arm_copy_copro_load_store): New.
941 (arm_copy_svc): Renamed from copy_svc.
942 (copy_undef): Delete.
943 (arm_copy_undef): Renamed from copy_undef.
944 (decode_ext_reg_ld_st): Delete.
945 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
946 (decode_svc_copro): Delete.
947 (arm_decode_svc_copro): Renamed from decode_svc_copro.
948 (copy_copro_load_store, copy_alu_imm): update callers.
949 (copy_extra_ld_st, copy_block_xfer): Likewise.
950 (decode_misc_memhint_neon, decode_unconditional): Likewise.
951 (decode_miscellaneous, decode_dp_misc): Likewise.
952 (decode_ld_st_word_ubyte, decode_media): Likewise.
953 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
954 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
955 (decode_unconditional, decode_miscellaneous): Likewise.
956 (decode_media, decode_b_bl_ldmstm): Likewise.
957 (arm_process_displaced_insn): Likewise..
958 (decode_misc_memhint_neon): Delete.
959 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
960 (decode_miscellaneous): Delete.
961 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
962 (decode_dp_misc): Delete.
963 (arm_decode_dp_misc): Renamed from decode_dp_misc.
964 (decode_ld_st_word_ubyte): Delete.
965 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
966 (decode_media): Delete.
967 (arm_decode_media): Renamed from decode_media.
968 (decode_b_bl_ldmstm): Delete.
969 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
970 (decode_ext_reg_ld_st): Delete.
971 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
972 (decode_unconditional): Delete.
973 (arm_decode_unconditional): Renamed from decode_unconditional.
977 Case insensitive lookups implementation.
978 * dwarf2read.c: Include ctype.h.
979 (struct mapped_index): New field version.
980 (mapped_index_string_hash): New parameter index_version. New comment
981 for it. Call tolower appropriately.
982 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
983 Choose the right index version for mapped_index_string_hash.
984 (dwarf2_read_index): Support also the index version 5. Initialize the
985 new struct mapped_index field version.
986 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
987 (find_slot): Explain the version needs. Pass INT_MAX for the new
989 (write_psymtabs_to_index): Produce version 5.
990 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
991 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
992 * psymtab.c (lookup_partial_symbol): Find the
993 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
995 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
997 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
998 (completion_list_add_name): New variable ncmp, initialize it, use it.
999 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1000 * utils.c (strcmp_iw): Support case_sensitive_off.
1001 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1002 New function comment part. New variables saved_string1,
1003 saved_string2 and case_pass. Add a proper second pass.
1007 Replace re_comp/re_exec by regcomp/regexec.
1008 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1009 (search_symbols_name_matches): Use them, use regexec.
1010 (search_symbols): New variable retval_chain, adjust the use of
1011 old_chain against it. Replace re_comp by regcomp. Use the new struct
1012 search_symbols_data fields, use regexec instead of re_exec.
1016 Format the code for the next patch.
1017 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1018 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1019 New variables c1 and c2.
1023 * infrun.c (proceed): Do not single-step into signal delivery
1024 when stepping off a breakpoint location.
1025 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1026 (insert_step_resume_breakpoint_at_caller): Likewise.
1027 (insert_step_resume_breakpoint_at_sal): Likewise.
1028 (insert_longjmp_resume_breakpoint): Likewise.
1032 * common/linux-ptrace.h: Remove include <sys/wait.h>.
1036 * procfs.c (procfs_pass_signals): Fix advance declaration.
1040 * target.h (struct target_ops): Remove to_notice_signals;
1041 add to_pass_signals.
1042 (target_notice_signals): Remove.
1043 (target_pass_signals): Add prototype.
1044 * target.c (update_current_target): Remove to_notice_signals;
1045 mention to_pass_signals.
1046 (target_pass_signals): New function.
1047 (debug_to_notice_signals): Remove.
1048 (setup_target_debug): Do not install debug_to_notice_signals.
1050 * infrun.c (signal_pass): New global.
1051 (resume): Call target_pass_signals.
1052 (handle_inferior_event): Report all signals while stepping over
1053 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1054 are re-inserted when stepping over a signal handler.
1055 (signal_cache_update): New function.
1056 (signal_stop_update): Call it.
1057 (signal_print_update): Likewise.
1058 (signal_pass_update): Likewise.
1059 (handle_command): Call signal_cache_update and target_pass_signals
1060 instead of target_notice_signals.
1061 (_initialize_infrun): Initialize signal_pass.
1063 * linux-nat.c (pass_mask): New global.
1064 (linux_nat_pass_signals): New function.
1065 (linux_nat_create_inferior): Report all signals initially.
1066 (linux_nat_attach): Likewise.
1067 (linux_nat_resume): Use pass_mask to decide whether to directly
1068 handle an inferior signal.
1069 (linux_nat_wait_1): Likewise.
1070 (linux_nat_add_target): Install to_pass_signals callback.
1072 * nto-procfs.c (notice_signals): Remove.
1073 (procfs_resume): Do not call notice_signals.
1074 (procfs_notice_signals): Remove.
1075 (procfs_pass_signals): New function.
1076 (init_procfs_ops): Install to_pass_signals callback instead of
1077 to_notice_signals callback.
1078 (_initialize_procfs): Report all signals initially.
1080 * procfs.c (procfs_notice_signals): Remove.
1081 (procfs_pass_signals): New function.
1082 (procfs_target): Install to_pass_signals callback instead of
1083 to_notice_signals callback.
1084 (register_gdb_signals): Remove.
1085 (procfs_debug_inferior): Report all signals initially.
1086 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1088 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1089 parameters; use them instead of calling signal_..._state routines.
1090 (remote_notice_signals): Remove.
1091 (remote_start_remote): Report all signals initially.
1092 (remote_resume): Do not call remote_pass_signals.
1093 (_initialize_remote): Install to_pass_signals callback instead of
1094 to_notice_signals callback.
1098 * breakpoint.c (user_settable_breakpoint): Delete.
1099 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1100 (delete_command): Check user_breakpoint_p instead of looking at
1101 the breakpoint's type.
1102 (disable_command): Ditto.
1103 (enable_command): Ditto.
1104 (delete_trace_command): Use user_breakpoint_p instead of looking
1105 at the breakpoint number directly. When checking if there are
1106 user visible tracepoints, in order to know whether to ask the user
1107 for confirmation, check whether the breakpoint is actually a
1112 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1117 MI breakpoint notifications.
1119 * annotate.c (breakpoint_changed): Adjust parameter type.
1120 * breakpoint.c (set_breakpoint_condition): Adjust to change
1121 in breakpoint_modified type.
1122 (breakpoint_set_commands): Likewise.
1123 (do_map_commands_command): Likewise.
1124 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1125 changed after bumping hit count.
1126 (bpstat_stop_status): Likewise.
1127 (print_one_breakpoint_location): Don't wrap in tuple here.
1128 (print_one_breakpoint): Always print individual locations.
1129 For locations, use unnamed tuple.
1130 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1132 (create_catchpoint, create_syscall_event_catchpoint): Call
1133 breakpoint_created obsever.
1134 (mention): Don't call breakpoint_created observer.
1135 (create_breakpoint_sal): Call breakpoint_created observer.
1136 (create_breakpoint, watch_command_1): Likewise.
1137 (create_ada_exception_breakpoint): Likewise.
1138 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1139 (locations_are_equal): New.
1140 (update_breakpoint_locations): If locations were changed, notify.
1141 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1142 Call breakpoint_modified observer.
1144 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1145 (mi_cmd_break_insert): Don't set observers for modify and delete.
1146 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1147 (mi_breakpoint_created, mi_breakpoint_deleted)
1148 (mi_breakpoint_modified): New.
1149 (mi_interpreter_init): Hook the above.
1150 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1151 while -break-* commands are executing.
1152 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1153 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1155 (mi_ui_out_impl): Hook in mi_redirect.
1156 (mi_field_skip): True to the name, skip the field, don't output
1157 a field with an empty value.
1159 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1160 (gdbpy_breakpoint_deleted): Adjust.
1161 * tui/tui-hooks.c (tui_event_create_breakpoint)
1162 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
1166 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1167 (procfs_remove_hw_watchpoint): Likewise.
1171 * remote.c (remote_start_remote): Ack packet after sending the
1176 * linux-nat.c: Move common macros to ...
1177 Include linux-ptrace.h.
1178 * common/linux-ptrace.h: ... here. New.
1182 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1183 !objfile_has_partial_symbols. New comment.
1184 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1185 SYM_READ_PSYMBOLS is not present. Extend the comment.
1186 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1190 * defs.h (ENUM_BITFIELD): Remove.
1195 * NEWS: Document the new gdbserver --once option.
1199 * MAINTAINERS: Update my email address.
1203 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1204 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1205 function call if __STDC_ISO_10646__ macro is defined.
1206 (intermediate_encoding): New prototype.
1207 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1208 to generate compile time error for unsupported gdb_wchar_t size.
1209 (ENDIAN_SUFFIX): New macro.
1210 (intermediate_encoding): New function.
1214 * ada-lang.c (struct add_partial_datum): Update the comment for
1215 expand_partial_symbol_name.
1216 (ada_add_partial_symbol_completions): Rename to ...
1217 (ada_expand_partial_symbol_name): ... here, change return type, update
1218 function comment, call symbol_completion_match instead of
1219 symbol_completion_add.
1220 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1221 and ada_expand_partial_symbol_name.
1222 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1224 (dw2_map_symbol_names): Remove.
1225 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1226 * psymtab.c (map_symbol_names_psymtab): Remove.
1227 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1228 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1230 (psym_functions): Unlist map_symbol_names_psymtab.
1231 (map_partial_symbol_names): Rename to ...
1232 (expand_partial_symbol_names): ... here, change the FUN type, call
1233 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1234 * psymtab.h (map_partial_symbol_names): Rename to ...
1235 (expand_partial_symbol_names): ... here, change the FUN type.
1236 * symfile.h (struct quick_symbol_functions): Update the description of
1237 expand_symtabs_matching. Remove map_symbol_names.
1238 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1239 (struct add_name_data): Update the comment for
1240 expand_partial_symbol_name.
1241 (add_partial_symbol_name): Rename to ...
1242 (expand_partial_symbol_name): ... here. Replace
1243 completion_list_add_name call by strncmp.
1244 (default_make_symbol_completion_list_break_on): Use now
1245 expand_partial_symbol_names and expand_partial_symbol_name.
1246 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1250 * dwarf2read.c (save_gdb_index_command): Replace format
1251 documentation with a pointer to the manual.
1255 * regcache.c: Include remote.h.
1256 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1257 (regcache_dump): Handle regcache_dump_remote.
1258 (maintenance_print_remote_registers): New function.
1259 (_initialize_regcache): Install "maint print remote-registers"
1261 * remote.c (map_regcache_remote_table): New function, factored out
1263 (init_remote_state): ... here.
1264 (remote_register_number_and_offset): New.
1265 * remote.h (remote_register_number_and_offset): Declare.
1269 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1270 null_ptid, assume and allow a NULL address space, instead of
1271 asking the target for the ptid's address space.
1272 * infrun.c (ptid_is_pid): Remove assertion.
1276 * windows-tdep.c (windows_xfer_shared_library):
1277 * windows-nat.c (get_module_name, windows_make_so):
1278 * v850-tdep.c (v850_handle_pushm):
1279 * utils.c (null_cleanup, gdb_realpath):
1280 * ui-out.c (get_next_header):
1281 * tracepoint.c (clear_traceframe_info):
1282 * symtab.c (lookup_symtab):
1283 * serial.h (struct serial_ops):
1284 * mipsread.c (read_alphacoff_dynamic_symtab):
1285 * infcmd.c (print_return_value):
1286 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1287 * f-exp.y (parse_number):
1288 * exceptions.c (catch_exceptions):
1289 * dummy-frame.c (dummy_frame_this_id):
1290 * defs.h (struct cleanup):
1291 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1292 * arm-tdep.c (arm_push_dummy_call):
1293 * amd64-tdep.h (amd64_collect_xsave):
1294 * amd64-tdep.c (amd64_collect_xsave):
1295 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1296 * README (typing): Remove duplicate words.
1297 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1298 * infrun.c (siginfo_value_read): Fix typo.
1299 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1300 * top.c (source_line_number): Add comma.
1304 * thread.c (any_live_thread_of_process): Prioritize threads
1305 that are not executing.
1306 * gdbthread.h (any_live_thread_of_process): Update comment
1307 as per above change.
1311 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1312 (scan_xcoff_symtab): Likewise.
1316 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1322 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1323 variables to simplify code and avoid == operator at end of
1324 line as this is against GNU coding standards.
1328 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1329 lm_name to name_lm to avoid conflict with lm_name function.
1333 ARI fixes: Use only lowercase function name for static functions.
1334 * nto-tdep.c (LM_ADDR): Rename to...
1335 (lm_addr): New function name.
1336 (nto_relocate_section_addresses): Adapt to change above.
1337 * solib-sunos.c (LM_ADDR): Rename to...
1338 (lm_addr): New function name.
1339 (LM_NEXT): Rename to...
1340 (lm_next): New function name.
1341 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1342 function name changes above.
1343 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1344 (lm_addr_from_link_map): New function name.
1345 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1346 (has_lm_dynamic_from_link_map): New function name.
1347 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1348 (lm_dynamic_from_link_map): New function name.
1349 (LM_ADDR_CHECK): Rename to...
1350 (lm_addr_check): New function name.
1351 (LM_NEXT): Rename to...
1352 (lm_next): New function name.
1353 (LM_PREV): Rename to...
1354 (lm_prev): New function name.
1355 (LM_NAME): Rename to...
1356 (lm_name): New function name.
1357 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1358 (ignore_first_link_map_entry): New function name.
1359 (svr4_keep_data_in_core): Adapt to function name changes above.
1360 (svr4_current_sos): Likewise.
1361 (enable_break): Likewise.
1362 (svr4_relocate_section_addresses): Likewise.
1367 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1368 sprintf. Simplify code and avoid loosing memory.
1369 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1370 (call0_frame_cache): Remove && operator from end of line.
1374 Fix libraries displacement if they change whether they were prelinked.
1375 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1376 does not match. Comment why.
1380 * corelow.c: Include wrapper.h.
1381 (core_open): Call now gdb_target_find_new_threads.
1382 * wrapper.c: Include target.h.
1383 (gdb_target_find_new_threads): New.
1384 * wrapper.h (gdb_target_find_new_threads): New declaration.
1388 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1389 even if !TARGET_HAS_EXECUTION.
1393 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1394 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1395 bfd_get_synthetic_symtab.
1396 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1397 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1398 parameter parent, remove the call to add_separate_debug_objfile.
1399 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1400 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1401 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1402 parent, new comment for it, call add_separate_debug_objfile for it.
1403 (symbol_file_add_separate): Pass objfile as the parameter parent,
1404 remove the call to add_separate_debug_objfile.
1405 (symbol_file_add_from_bfd): New parameter parent, pass it.
1406 (symbol_file_add): Pass NULL to the new parameter parent.
1407 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1411 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1416 Fix Python access to inlined frames.
1417 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1418 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1422 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1426 * MAINTAINERS: Add myself to write-after-approval section.
1430 * remote-sim.c (sim_command_completer): New function.
1431 (_initialize_remote_sim): Set completer to sim_command_completer.
1435 * breakpoint.c (print_exception_catchpoint): Rename to ...
1436 (print_it_exception_catchpoint): ... this.
1437 (gnu_v3_exception_catchpoint_ops): Update with new name
1438 for print_it_exception_catchpoint.
1442 * MAINTAINERS: Add myself for write after approval privileges.
1446 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1450 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1454 * breakpoint.c (save_breakpoints): Verify whether
1455 breakpoint_ops.print_recreate is defined before calling it.
1459 Fix failure with --enable-maintainer-mode.
1460 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1465 * symtab.c (search_symbols): Reorder the KIND description in the
1466 function comment. Remove the unused 4th element of types, types2,
1467 types3 and types4. New gdb_assert on KIND.
1468 (symtab_symbol_info): Remove the unused 4th element of classnames.
1469 New gdb_assert on KIND.
1470 * symtab.h (enum search_domain): New warning in the enum comment.
1471 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1476 Fix crash of gdb save-index on a STABS file.
1477 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1482 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1483 * dwarf2read.c: Include ctype.h.
1484 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1486 (dwarf2_add_field): Fix new_field->accessibility by calling
1487 dwarf2_default_access_attribute. Restructure setting accessibility
1489 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1490 is_private and is_protected by calling
1491 dwarf2_default_access_attribute.
1495 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1496 to the initialization.
1500 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1505 Remove support for old Cygwin 1.5 versions.
1506 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1507 function on old Cygwin version.
1508 * windows-nat.c: Remove cygwin version check and always define
1509 __USEWIDE for Cygwin compilation.
1513 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1515 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1516 (arm_copy_svc): Remove parameters INSN and TO.
1517 (decode_svc_copro): Update caller.
1518 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1519 from function pointer `copy_svc_os'.
1523 * arm-tdep.c (cleanup_branch): Set a correct return address in
1524 LR for ARM and Thumb.
1529 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1530 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1531 in the function comment, a new note on values compatibility.
1532 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1533 * symtab.h (SYMBOL_HASH_NEXT): New.
1537 * ppc-linux-nat.c (check_condition): Add len output parameter.
1538 Set it based on the memory region referenced in the condition
1539 expression. Update all callers.
1543 Fix crash regression on systems featuring .gdb_index.
1544 * objfiles.c (free_objfile): Move the
1545 forget_cached_source_info_for_objfile call earlier. Comment it.
1546 Extend the comment for objfile_free_data.
1550 Fix regression of displaying the debug format.
1551 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1556 * cli/cli-interp.c (struct captured_execute_command_args):
1558 (do_captured_execute_command): Remove.
1559 (safe_execute_command): Use TRY_CATCH.
1560 * cli/cli-script.c (struct wrapped_read_command_file_args):
1562 (wrapped_read_command_file): Remove.
1563 (script_from_file): Use TRY_CATCH.
1564 * exceptions.c (catch_exception): Remove.
1565 * exceptions.h (catch_exception): Remove.
1566 (deprecated_throw_reason): Update comment.
1567 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1568 argument to 'context'.
1569 (mi_execute_command): Use TRY_CATCH.
1570 * remote.c (struct start_remote_args): Remove.
1571 (remote_start_remote): Update; change arguments.
1572 (remote_open_1): Use TRY_CATCH.
1576 * tracepoint.c (scope_info): Update.
1577 * symtab.c (decode_line_spec): Update.
1578 * python/python.c (gdbpy_decode_line): Update.
1579 * linespec.h (decode_line_1): Update.
1580 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1581 (decode_compound, find_method, symtab_from_filename)
1582 (decode_variable): Likewise.
1583 * cli/cli-cmds.c (edit_command): Update.
1584 (list_command): Update.
1585 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1587 (create_breakpoint): Update.
1588 (until_break_command): Update.
1589 (addr_string_to_sals): Update.
1590 (decode_line_spec_1): Update.
1594 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1595 (do_captured_parse_breakpoint): Remove.
1596 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1597 Use TRY_CATCH directly.
1601 * symtab.h (free_symtab): Remove.
1602 (forget_cached_source_info_for_objfile): Declare.
1603 * symmisc.c (free_symtab): Remove.
1604 * source.c (forget_cached_source_info_for_objfile): New function.
1605 (forget_cached_source_info): Use it.
1606 * objfiles.c (free_objfile): Simplify check before calling
1607 clear_current_source_symtab_and_line. Call
1608 forget_cached_source_info_for_objfile.
1612 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1613 (new_symtab): Don't set `free_code' on symtab.
1614 (new_linetable): Properly handle size==0.
1615 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1616 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1618 * jv-lang.c (struct jv_per_objfile_data): New.
1619 (jv_per_objfile_free): Free the data.
1620 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1621 (get_java_class_symtab): Set the `dict' field on the
1622 jv_per_objfile_data.
1623 (free_class_block): Remove.
1624 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1629 * symfile.c (reread_symbols): Update.
1630 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1632 * objfiles.c (allocate_objfile): Update.
1633 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1635 * cp-namespace.c (lookup_symbol_file): Don't call
1636 lookup_possible_namespace_symbol.
1637 (initialize_namespace_symtab, get_possible_namespace_block)
1638 (free_namespace_block, cp_check_possible_namespace_symbols)
1639 (check_possible_namespace_symbols_loop)
1640 (check_one_possible_namespace_symbol)
1641 (lookup_possible_namespace_symbol): Remove.
1642 (maintenance_cplus_namespace): Replace with notice.
1643 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1647 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1648 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1649 * symmisc.c (free_symtab): Don't free debugformat.
1650 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1651 (record_debugformat, record_producer): Document.
1652 * buildsym.c (end_symtab): Don't save debugformat and producer
1654 (end_symtab): Don't free debugformat and producer fields.
1655 (record_debugformat): Don't call xstrdup.
1656 (record_producer): Likewise.
1660 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1661 (source_line_charpos, source_charpos_line): Remove.
1665 * symtab.h (domain_enum): Split in two...
1666 (enum search_domain): New.
1667 (search_symbols): Update.
1668 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1669 redundant declarations.
1670 (search_symbols): Change 'kind' argument to search_domain.
1672 (print_symbol_info): Likewise.
1673 (symtab_symbol_info): Likewise.
1674 * symfile.h (struct quick_symbol_functions)
1675 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1676 <expand_symtabs_matching>: Likewise.
1677 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1678 (expand_symtabs_matching_via_partial): Update.
1679 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1680 (dw2_expand_symtabs_for_function): Update.
1681 * block.h: Moved anonymous enum...
1682 * defs.h (enum block_enum): ... here. Now named.
1686 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1687 * version.in: Bump version to 7.3.50.20110403-cvs.
1691 * NEWS: Create a new section for the next release branch.
1692 Rename the section of the current branch, now that it has
1697 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1698 for "fpscr" in target description.
1702 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1703 initialize it. Delay HASH initialization. Strip the part after open
1704 parenthesis for languages with qualifiers. Call do_cleanups.
1708 * utils.c (report_command_stats): Don't print `-' for negative
1713 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1714 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1719 * breakpoint.h (bpdisp_text): Add declaration.
1720 * breakpoint.c (bpdisp_text): Make non-static.
1721 * ada-lang.c: #include "mi/mi-common.h".
1722 (print_it_exception): Rewrite to improve GDB/MI output.
1726 * arm-tdep.h (struct address_space): Add forward declaration.
1730 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1731 * arm-tdep.c (arm_override_mode): New global.
1732 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1733 execution mode heuristics.
1734 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1735 second single-step breakpoint if needed, using
1736 arm_insert_single_step_breakpoint.
1737 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1738 ARM execution mode, do not call thumb_get_next_pc_raw.
1739 (arm_get_next_pc): Encode execution mode in return value. Call
1740 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1741 (arm_insert_single_step_breakpoint): New function.
1742 (arm_software_single_step): Call it.
1743 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1744 argument to return execution mode of sigreturn target.
1745 (arm_linux_syscall_next_pc): Use it.
1746 (arm_linux_copy_svc): Update call.
1747 (arm_linux_software_single_step): Call
1748 arm_insert_single_step_breakpoint.
1752 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1757 * varobj.c (update_dynamic_varobj_children): Properly handle
1758 errors from iterator.
1762 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1763 struct linkage name twice.
1767 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1768 missing ">" to message.
1772 * varobj.c (instantiate_pretty_printer): Remove duplicate
1777 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1778 if neither saved value nor register available (e.g. signal frame).
1782 * macroexp.c (expand): Avoid uninitialized variable
1787 * breakpoint.c (break_range_command): Fix typo in comment.
1792 Implement support for PowerPC BookE ranged breakpoints.
1793 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1794 * breakpoint.h (struct bp_target_info) <length>: New member
1796 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1797 instead of struct breakpoint as argument, and also add ASPACE
1798 and BP_ADDR arguments. Update all callers.
1799 (struct breakpoint_ops) <print_one_detail>: New method.
1800 (struct breakpoint) <addr_string_range_end>: New member variable.
1801 * breakpoint.c (breakpoint_location_address_match): Add function
1803 (insert_bp_location): Set bl->target_info.length.
1804 (breakpoint_here_p): Call breakpoint_location_address_match.
1805 (moribund_breakpoint_here_p): Likewise.
1806 (regular_breakpoint_inserted_here_p): Likewise.
1807 (breakpoint_thread_match): Likewise.
1808 (bpstat_stop_status): Likewise.
1809 (bpstat_check_location): Move call to
1810 breakpoint_ops.breakpoint_hit to the top.
1811 (print_one_breakpoint_location): Call
1812 breakpoint_ops.print_one_detail if available.
1813 (breakpoint_address_match_range): New function.
1814 (breakpoint_location_address_match): Likewise.
1815 (breakpoint_locations_match): Compare the length field of the
1817 (hw_breakpoint_used_count): Count resources used by all locations
1818 in a breakpoint, and use breakpoint_ops.resources_needed if
1820 (breakpoint_hit_ranged_breakpoint): New function.
1821 (resources_needed_ranged_breakpoint): Likewise.
1822 (print_it_ranged_breakpoint): Likewise.
1823 (print_one_ranged_breakpoint): Likewise.
1824 (print_one_detail_ranged_breakpoint): Likewise.
1825 (print_mention_ranged_breakpoint): Likewise.
1826 (print_recreate_ranged_breakpoint): Likewise.
1827 (ranged_breakpoint_ops): New structure.
1828 (find_breakpoint_range_end): New function.
1829 (break_range_command): Likewise.
1830 (delete_breakpoint): Free addr_string_range_end.
1831 (update_breakpoint_locations): Add SALS_END argument. Update
1832 all callers. Calculate breakpoint length if a non-zero SALS_END
1833 is given. Call breakpoint_locations_match instead of
1834 breakpoint_address_match.
1835 (reset_breakpoint): Find SaL of the end of the range if B is a
1837 (_initialize_breakpoint): Register break-range command.
1838 * defs.h (print_core_address): Add function prototype.
1839 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1841 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1842 (ppc_linux_remove_hw_breakpoint): Likewise.
1843 (_initialize_ppc_linux_nat): Initialize
1844 to_ranged_break_num_registers.
1845 * target.c (update_current_target): Add comment about
1846 to_ranged_break_num_registers.
1847 (target_ranged_break_num_registers): New function.
1848 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1850 (target_ranged_break_num_registers): Add function prototype.
1851 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1852 * utils.c (print_core_address): ... here.
1856 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1857 variable compiler warning.
1861 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1863 (re_set_breakpoint): ... to here ...
1864 (addr_string_to_sals): ... and here.
1868 * Makefile.in (SFILES): Add missing C sources.
1869 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1870 Add missing headers.
1874 * .gitignore: New file.
1878 * NEWS: Mention new cfi device simulation.
1882 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1883 otherwise anonymous types.
1884 (dwarf2_name): Likewise.
1885 * valops.c (value_struct_elt_for_reference): Refine artificial
1886 type logic. Call error if j==-1.
1890 Fix false GCC warning.
1891 * infcall.c (find_function_addr): Initialize funaddr.
1895 Fix mingw compilation with --enable-targets=all.
1896 * remote-mips.c (gdb_usleep.h): Include header.
1897 (mips_enter_debug): Use gdb_usleep instead of sleep.
1901 Support resolution of STT_GNU_IFUNC via breakpoints.
1902 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1903 bp_gnu_ifunc_resolver_return.
1904 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1905 the loop. Support bp_gnu_ifunc_resolver and
1906 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1907 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1909 (bptype_string, print_one_breakpoint_location): Support
1910 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1911 (user_settable_breakpoint): Return true also for
1912 bp_gnu_ifunc_resolver.
1913 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1914 bp_gnu_ifunc_resolver_return.
1915 (set_breakpoint_location_function): New parameter explicit_loc,
1916 describe it. Call find_pc_partial_function_gnu_ifunc with new
1917 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1918 EXPLICIT_LOC is not set.
1919 (set_raw_breakpoint): Set EXPLICIT_LOC for
1920 set_breakpoint_location_function.
1921 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1922 set_breakpoint_location_function.
1923 (mention): Support bp_gnu_ifunc_resolver and
1924 bp_gnu_ifunc_resolver_return.
1925 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1926 set_breakpoint_location_function.
1927 (update_breakpoint_locations): Remove static.
1928 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1929 bp_gnu_ifunc_resolver_return.
1930 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1931 bp_gnu_ifunc_resolver_return.
1932 (update_breakpoint_locations): New declaration.
1933 * elfread.c: Include gdbthread.h and regcache.h.
1934 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1936 (elf_gnu_ifunc_fns): Install them.
1937 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1938 (stub_gnu_ifunc_resolver_return_stop): New functions.
1939 (stub_gnu_ifunc_fns): Install them.
1940 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1941 and gnu_ifunc_resolver_return_stop.
1942 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1946 STT_GNU_IFUNC reader implementation.
1947 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1948 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1949 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1950 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1951 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1952 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1953 (elf_gnu_ifunc_resolve_addr): New.
1954 (elf_symfile_read): Call elf_rel_plt_read.
1955 (elf_gnu_ifunc_fns): New.
1956 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1957 Install elf_gnu_ifunc_fns.
1958 * infcall.c (find_function_return_type): New function.
1959 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1960 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1961 (stub_gnu_ifunc_resolve_name): New functions.
1962 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1963 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1964 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1968 Code cleanup for later STT_GNU_IFUNC support.
1969 * infcall.c (find_function_addr): Remove variable code, use explicit
1970 dereferences for it. Move VALUE_TYPE initialization later.
1974 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1975 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1976 (clear_pc_function_cache): Clear it.
1977 (find_pc_partial_function): Rename to ...
1978 (find_pc_partial_function_gnu_ifunc): ... this function. New
1979 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1980 (find_pc_partial_function): New wrapper for this function.
1981 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1985 GDB internal type support for STT_GNU_IFUNC.
1986 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1987 (elf_symtab_read): Set mst_text_gnu_ifunc for
1988 BSF_GNU_INDIRECT_FUNCTION.
1989 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1990 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1991 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1992 nodebug_got_plt_symbol.
1993 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1994 (TYPE_GNU_IFUNC): New.
1995 (struct main_type): New field flag_gnu_ifunc.
1996 (struct builtin_type): New field builtin_func_func.
1997 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1998 nodebug_got_plt_symbol.
1999 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2000 (in_gnu_ifunc_stub): New.
2001 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2003 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
2004 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
2005 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2007 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2008 * symtab.c (search_symbols): Likewise.
2009 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2010 and mst_slot_got_plt.
2011 (in_gnu_ifunc_stub): New declaration.
2015 Support a ring of related breakpoints.
2016 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2017 other functions, add gdb_assert.
2018 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
2019 watchpoint_del_at_next_stop.
2020 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2021 (bpstat_stop_status): Handle ring in related_breakpoint.
2022 (set_raw_breakpoint_without_location): Initialize ring in
2024 (delete_breakpoint): Handle ring in related_breakpoint, use
2025 watchpoint_del_at_next_stop.
2026 (map_breakpoint_numbers): Handle ring in related_breakpoint.
2031 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2032 with `language_minimal'.
2036 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2037 instead of checking for STT_ARM_TFUNC symbol type.
2041 * linespec.c (symbol_found): Restore line-based result for
2042 non-LOC_LABEL symbols.
2046 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2047 instead of strcmp for comparison.
2048 (tui_source_is_displayed): Likewise.
2049 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2053 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2055 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2056 (find_partial_die_in_comp_unit): Likewise in comment.
2057 (read_attribute_value): Likewise.
2058 (lookup_die_type): Likewise.
2059 (dwarf_form_name): Likewise.
2060 (dump_die_shallow): Likewise.
2061 (follow_die_ref_or_sig): Likewise.
2065 PR breakpoints/11816:
2066 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2067 (decode_compound): Update.
2068 (find_function_symbol): New function.
2069 (decode_dollar): Update.
2070 (decode_label): Add 'function_symbol' parameter. Handle
2071 function-relative labels.
2072 (decode_variable): Update.
2073 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2074 not its line. Set `special_display' and canonical name for
2079 * linespec.h (struct linespec_result) <special_display>: New
2081 * breakpoint.h (struct breakpoint) <display_canonical>: New
2083 * breakpoint.c (print_breakpoint_location): Respect
2085 (create_breakpoint_sal): Add 'display_canonical' parameter.
2086 (create_breakpoints_sal): Update.
2087 (create_breakpoint): Update.
2091 * symtab.c (decode_line_spec): Update.
2092 * linespec.c (build_canonical_line_spec): Change type of
2094 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2095 (find_method, decode_all_digits, decode_dollar, decode_label)
2096 (symbol_found): Likewise.
2097 (init_linespec_result): New function.
2098 * breakpoint.c (struct captured_parse_breakpoint_args)
2099 <canonical_p>: New field, replaces addr_string_p.
2100 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2102 (parse_breakpoint_sals): Likewise.
2103 (do_captured_parse_breakpoint): Update.
2104 (create_breakpoint): Use struct linespec_result.
2105 (until_break_command): Update.
2106 (breakpoint_re_set_one): Update.
2107 (decode_line_spec_1): Update.
2108 * linespec.h (struct linespec_result): New.
2109 (init_linespec_result): Declare.
2113 * regcache.c (regcache_raw_read): If the target didn't supply a
2114 given raw register, mark it as unavailable.
2118 * breakpoint.c (clear_command): Use filename_cmp
2119 instead of strcmp for comparison.
2120 * buildsym.c (watch_main_source_file_lossage): Likewise.
2121 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2122 checking just for slash.
2123 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2124 strrchr and filename_cmp instead of strcmp for filenames.
2125 (add_old_header_file): Use filename_cmp
2126 instead of strcmp for comparison.
2127 * exec.c (exec_set_section_address): Likewise.
2128 * macrotab.c (macro_lookup_inclusion): Likewise.
2129 (macro_lookup_inclusion): Likewise.
2130 * elfread.c (_initialize_elfread): Likewise.
2131 (elfstab_offset_sections): Likewise.
2132 (elfstab_offset_sections): Use lbasename instead of
2134 * mdebugread.c (parse_partial_symbols): Likewise.
2135 (arse_partial_symbols): Use filename_(n)cmp instead of
2136 str(n)cmp for comparison.
2137 * minsyms.c (lookup_minimal_symbol): Likewise.
2138 * psymtab.c (read_psymtabs_with_filename): Likewise.
2139 * solib.c (solib_read_symbols): Likewise.
2140 (reload_shared_libraries_1): Likewise.
2141 * symmisc.c (maintenance_print_symbols): Likewise.
2142 * symfile.c (separate_debug_file_exists): Likewise.
2143 (reread_symbols): Likewise.
2144 (find_separate_debug_file_by_debuglink): Likewise.
2145 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2146 * source.c (add_path): Likewise.
2147 * symtab.c (filename_seen): Likewise.
2148 (file_matches): Likewise.
2149 (print_symbol_info): Likewise.
2150 (maybe_add_partial_symtab_filename): Likewise.
2151 (make_source_files_completion_list): Likewise.
2152 * xml-syscall.c (init_sysinfo): Likewise.
2153 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2154 IS_DIR_SEPARATOR for checking for trailing path separator.
2158 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2159 label abort_expression.
2160 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2161 DWARF_VALUE_OPTIMIZED_OUT.
2166 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2167 to linkage_name. Invert its value. Update the function comment.
2168 (c_type_print_varspec_suffix): Invert it at the caller.
2169 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2173 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2174 errors when reading the `stop_pc'.
2175 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2180 * NEWS: Document gdb.Write stream keyword.
2186 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2187 (dwarf2_add_field): Fix new_field->accessibility for
2188 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2194 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2195 other error classes. Do not print stack trace.
2199 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2200 (dwarf2_add_field): Fix new_field->accessibility for
2201 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2205 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2206 encountering a load via a non-SP register.
2210 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2211 field in returned unwinder.
2215 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2219 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2224 * frame.c (frame_unwind_register): Throw an error if unwinding the
2226 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2227 an unwind stop reason.
2228 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2229 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2230 UNWIND_UNAVAILABLE>: New.
2231 * inline-frame.c (inline_frame_unwind): Install
2232 default_frame_unwind_stop_reason.
2233 * frame-unwind.c: Include "exceptions.h".
2234 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2235 (default_frame_unwind_stop_reason): New.
2236 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2237 (default_frame_unwind_stop_reason): Declare.
2238 (struct frame_unwind) <stop_reason>: New function pointer.
2240 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2241 * dwarf2-frame.c: Include exceptions.h.
2242 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2243 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2244 computing the CFA. If such an error was thrown, set
2245 unavailable_retaddr.
2246 (dwarf2_frame_unwind_stop_reason): New.
2247 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2249 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2250 (dwarf2_signal_frame_unwind): Ditto.
2252 * amd64-tdep.c: Include "exceptions.h".
2253 (struct amd64_frame_cache): New field "base_p".
2254 (amd64_init_frame_cache): Clear it.
2255 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2256 Avoid reading registers with functions that throw if the register
2257 is not necessary to compute the frame base.
2258 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2259 swallowing NOT_AVAILABLE_ERROR.
2260 (amd64_frame_unwind_stop_reason): New.
2261 (amd64_frame_this_id): Don't build a frame id if the frame base
2263 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2264 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2265 base_p if the frame base was computable.
2266 (amd64_sigtramp_frame_unwind_stop_reason): New.
2267 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2268 frame base was unavailable.
2269 (amd64_sigtramp_frame_unwind): Install
2270 amd64_sigtramp_frame_unwind_stop_reason.
2271 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2272 base_p if the frame base was computable.
2273 (amd64_epilogue_frame_unwind_stop_reason): New.
2274 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2275 frame base was unavailable.
2276 (amd64_epilogue_frame_unwind): Install
2277 amd64_epilogue_frame_unwind_stop_reason.
2278 * i386-tdep.c: Include "exceptions.h".
2279 (struct i386_frame_cache): New field "base_p".
2280 (i386_init_frame_cache): Clear it.
2281 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2282 Avoid reading registers with functions that throw if the register
2283 is not necessary to compute the frame base.
2284 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2285 swallowing NOT_AVAILABLE_ERROR.
2286 (i386_frame_unwind_stop_reason): New.
2287 (i386_frame_this_id): Don't build a frame id if the frame base was
2289 (i386_frame_prev_register): Handle unavailable SP.
2290 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2291 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2292 base_p if the frame base was computable.
2293 (i386_epilogue_frame_unwind_stop_reason): New.
2294 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2295 base was unavailable.
2296 (i386_epilogue_frame_unwind): Install
2297 i386_epilogue_frame_unwind_stop_reason.
2298 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2299 base_p if the frame base was computable.
2300 (i386_sigtramp_frame_unwind_stop_reason): New.
2301 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2302 base was unavailable.
2303 (i386_sigtramp_frame_unwind): Install
2304 i386_sigtramp_frame_unwind_stop_reason.
2305 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2306 type's size, not the register's.
2307 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2309 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2310 default_frame_unwind_stop_reason.
2311 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2312 (alpha_heuristic_frame_unwind): Ditto.
2313 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2314 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2315 * avr-tdep.c (avr_frame_unwind): Ditto.
2316 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2318 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2319 * frv-tdep.c (frv_frame_unwind): Ditto.
2320 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2321 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2322 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2323 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2324 (hppa_stub_frame_unwind): Ditto.
2325 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2326 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2327 (ia64_libunwind_frame_unwind)
2328 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2329 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2330 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2331 * m32c-tdep.c (m32c_unwind): Ditto.
2332 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2333 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2334 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2335 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2336 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2337 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2338 * mep-tdep.c (mep_frame_unwind): Ditto.
2339 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2340 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2341 (mips_stub_frame_unwind): Ditto.
2342 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2343 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2344 * mt-tdep.c (mt_frame_unwind): Ditto.
2345 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2346 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2347 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2348 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2349 (s390_sigtramp_frame_unwind): Ditto.
2350 * score-tdep.c (score_prologue_unwind): Ditto.
2351 * sh-tdep.c (sh_frame_unwind): Ditto.
2352 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2353 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2354 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2355 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2356 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2357 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2358 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2359 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2360 (sparc64obsd_trapframe_unwind): Ditto.
2361 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2362 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2363 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2364 * v850-tdep.c (v850_frame_unwind): Ditto.
2365 * vax-tdep.c (vax_frame_unwind): Ditto.
2366 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2367 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2368 * xtensa-tdep.c (xtensa_unwind): Ditto.
2372 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2373 there's always a frame. Use get_frame_pc_if_available instead of
2374 get_frame_pc, and if there's no PC available, don't look up a
2379 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2384 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2389 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2390 * frame.c (frame_unwind_caller_pc_if_available): New.
2391 * stack.c (frame_info): Handle unavailable PC.
2395 * frame.c (frame_unwind_pc): Rename to ...
2396 (frame_unwind_pc_if_available): ... this. New `pc' output
2397 parameter. Change return type to int. Gracefully handle
2398 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2399 happened, or 1 otherwise.
2400 (frame_unwind_pc): Reimplement on top of
2401 frame_unwind_pc_if_available.
2402 (get_frame_func): Rename to ...
2403 (get_frame_func_if_available): New `pc' output parameter. Change
2404 return type to int. Gracefully handle the PC not being available.
2405 (get_frame_func): Reimplement on top of
2406 get_frame_func_if_available.
2407 (select_frame): Handle the PC being unavailable.
2408 (get_prev_frame): Handle the PC being unavailable.
2409 (get_frame_pc_if_available): New.
2410 (get_frame_address_in_block_if_available): New.
2411 (find_frame_sal): Handle the frame PC not being available.
2412 * frame.h (get_frame_pc_if_available): Declare.
2413 (get_frame_address_in_block_if_available): Declare.
2414 (get_frame_func_if_available): Declare.
2415 * stack.c (print_frame_info): Handle the PC being unavailable.
2416 (find_frame_funname): Ditto.
2417 (print_frame): Handle the PC being unavailable.
2418 (get_frame_language): Ditto.
2419 * blockframe.c (get_frame_block): Ditto.
2420 * macroscope.c (default_macro_scope): Ditto.
2421 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2425 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2426 NOT_AVAILABLE_ERROR when evaluating the location expression.
2430 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2431 returning that the register piece is unavailable/optimized out.
2432 (write_pieced_value): Handle get_frame_register_bytes returning
2433 that the register piece is unavailable/optimized out when doing a
2434 read-modify write of a bitfield.
2435 * findvar.c (value_from_register): Handle get_frame_register_bytes
2436 returning that the register piece is unavailable/optimized out.
2437 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2438 and `unavailablep'. Throw error on bad debug info. Use
2439 frame_register instead of frame_register_read, to fill in the new
2441 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2443 * valops.c: (value_assign): Adjust, and handle
2444 get_frame_register_bytes failing.
2445 * spu-tdep.c: Include exceptions.h.
2446 (spu_software_single_step): Adjust, and handle
2447 get_frame_register_bytes failing.
2448 (spu_get_longjmp_target): Ditto.
2449 * gdbarch.sh (register_to_value): Change to return int. New
2450 parameters `optimizedp' and `unavailablep'.
2451 * gdbarch.h, gdbarch.c: Regenerate.
2452 * i386-tdep.c (i386_register_to_value): Adjust to new
2453 gdbarch_register_to_value interface.
2454 * i387-tdep.c (i387_register_to_value): Ditto.
2455 * i387-tdep.h (i387_register_to_value): Ditto.
2456 * alpha-tdep.c (alpha_register_to_value): Ditto.
2457 * ia64-tdep.c (ia64_register_to_value): Ditto.
2458 * m68k-tdep.c (m68k_register_to_value): Ditto.
2459 * mips-tdep.c (mips_register_to_value): Ditto.
2460 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2464 * findvar.c (value_of_register): Mark the value as unavailable, if
2465 the register is unavailable.
2466 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2467 (frame_register): New `unavailablep' parameter.
2468 (frame_register_read): Update comment.
2469 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2470 Set it if the register is unavailable. If the register is
2471 unavailable, clear the output buffer.
2472 (frame_register): New `unavailablep' parameter. Pass it down.
2473 (frame_unwind_register): Adjust.
2474 (put_frame_register): Adjust.
2475 (frame_register_read): Adjust. Also return false if the register
2477 (frame_register_unwind_location): Adjust.
2478 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2479 is unavailable, mark the value accordingly.
2480 * stack.c (frame_info): Handle unavailable registers.
2484 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2485 simplify, using regcache_cooked_read.
2489 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2490 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2491 (regcache_raw_read_unsigned, regcache_raw_read_part)
2492 (regcache_cooked_read, regcache_cooked_read_signed)
2493 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2494 (regcache_cooked_read_ftype): Change return to enum
2496 * regcache.c: Include exceptions.h
2497 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2498 (do_cooked_read): Change return to enum register_status. Always
2499 forward to regcache_cooked_read.
2500 (regcache_raw_read): Change return to enum register_status. If
2501 the register is not REG_VALID, memset the buffer. Return the
2503 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2504 return the register's status.
2505 (regcache_raw_read_unsigned): Ditto.
2506 (regcache_cooked_read): Change return to enum register_status.
2507 Assert that with read-only regcaches, the register's status must
2508 be known. If the regcache is read-only, and the register is not
2509 REG_VALID, memset the buffer. Return the register's status.
2510 (regcache_cooked_read_signed): Change return to enum
2511 register_status. Handle non-REG_VALID registers and return the
2513 (regcache_cooked_read_unsigned): Change return to enum
2514 register_status. Handle non-REG_VALID registers and return the
2516 (regcache_xfer_part, regcache_raw_read_part)
2517 (regcache_cooked_read_part): Change return to enum
2518 register_status. Return the register's status.
2519 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2521 (regcache_dump): Handle unavailable cooked registers.
2522 * frame.c (do_frame_register_read): Adjust interface to match
2523 regcache_cooked_read_ftype.
2524 * gdbarch.sh (pseudo_register_read): Change return to enum
2526 * gdbarch.h, gdbarch.c: Regenerate.
2528 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2530 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2531 register_status. If reading a raw register indicates the raw
2532 register is not valid, return the raw register's status,
2533 otherwise, return REG_VALID.
2534 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2535 register_status. Handle non-REG_VALID raw registers and return
2536 the register's status.
2537 * arm-tdep.c (arm_neon_quad_read)
2538 (arm_pseudo_read): Change return to enum register_status. Handle
2539 non-REG_VALID raw registers and return the register's status.
2540 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2541 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2542 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2543 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2544 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2546 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2547 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2548 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2549 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2550 (m32c_pseudo_register_read): Change return to enum
2551 register_status. Adjust.
2552 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2553 enum register_status. Return the register's status.
2554 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2555 register_status. Return the register's status.
2556 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2557 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2558 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2559 * rs6000-tdep.c (move_ev_register_func): New typedef.
2560 (e500_move_ev_register): Use it. Change return to enum
2561 register_status. Return the register's status.
2562 (do_regcache_raw_read): New function.
2563 (do_regcache_raw_write): New function.
2564 (e500_pseudo_register_read): Change return to enum
2565 register_status. Return the register's status. Use
2566 do_regcache_raw_read.
2567 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2568 (dfp_pseudo_register_read): Change return to enum register_status.
2569 Return the register's status.
2570 (vsx_pseudo_register_read): Ditto.
2571 (efpr_pseudo_register_read): Ditto.
2572 (rs6000_pseudo_register_read): Ditto.
2573 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2574 register_status. Return the register's status.
2575 * sh64-tdep.c (pseudo_register_read_portions): New function.
2576 (sh64_pseudo_register_read): Change return to enum
2577 register_status. Use pseudo_register_read_portions. Return the
2579 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2580 register_status. Return the register's status.
2581 * sh-tdep.c (pseudo_register_read_portions): New function.
2582 (sh_pseudo_register_read): Change return to enum register_status.
2583 Use pseudo_register_read_portions. Return the register's status.
2584 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2585 enum register_status. Return the register's status.
2586 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2587 * spu-tdep.c (spu_pseudo_register_read_spu)
2588 (spu_pseudo_register_read): Ditto.
2589 * xtensa-tdep.c (xtensa_register_read_masked)
2590 (xtensa_pseudo_register_read): Ditto.
2591 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2595 * python/py-value.c (valpy_getitem): Fix formatting of error function
2600 ARI fixes: Add missing internationalization markups throughout
2602 * darwin-nat-info.c: Ditto.
2605 * mi/mi-main.c: Ditto.
2609 ARI fixes: Add missing internationalization markups throughout
2612 * cp-name-parser.y: Ditto.
2615 * objc-exp.y: Ditto.
2620 ARI fixes: Messages should have no trailing new lines.
2621 * darwin-nat.c (mach_check_error): Remove trailing new line from
2622 warning function call message.
2623 * record.c (bfdcore_read): Idem for error call.
2627 * common/signals.c (target_signal_from_host): Add _ markup to error
2628 function call message.
2629 (target_signal_to_host): Add _ markup and remove trailing new line
2630 from warning call message.
2631 (target_signal_from_command): Add _ markup to error function call
2638 * python/python.c (gdbpy_write): Accept a stream argument and
2639 operate to the appropriate stream.
2640 (gdbpy_flush): Likewise.
2641 (_initialize_python): Add stream constants.
2642 (finish_python_initialization): Add GdbOutputErrorFile class.
2646 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2650 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2651 to store_signed_integer. Add debug message when relocating CALL
2652 instructions. Fix formatting of debug message.
2653 * i386-tdep.c (i386_relocate_instruction): Ditto.
2657 * target.h (struct target_ops): Remove to_lookup_symbol field.
2658 (target_lookup_symbol): Delete macro.
2659 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2660 (update_current_target, setup_target_debug): Remove handling
2661 of to_lookup_symbol target_ops field.
2662 * ada-tasks.c (get_known_tasks_addr): Remove use of
2663 target_lookup_symbol.
2664 * coffread.c (coff_symtab_read): Likewise.
2665 * dbxread.c (read_dbx_symtab): Ditto.
2670 * configure.ac: Add getthrds declaration check.
2671 * configure, config.in: Regenerate.
2672 * aix-thread.c (getthrds): Declare only if not already declared
2673 in procinfo.h. More declaration out of get_signaled_thread to
2678 * python/py-symtab.c: Populate symtab_object_methods,
2680 (stpy_is_valid): New function.
2681 (salpy_is_valid): Ditto.
2682 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2683 (sympy_is_valid): New function.
2684 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2685 (objfpy_is_valid): New function.
2686 * python/py-inferior.c: Populate inferior_object_methods.
2687 (infpy_is_valid): New function.
2688 * python/py-infthread.c: Populate thread_object_methods.
2689 (thpy_is_valid): New function.
2690 * python/py-block.c: Declare block_object_methods. Populate. Declare
2691 block_iterator_object_methods. Populate.
2692 (blpy_is_valid): New function.
2693 (blpy_iter_is_valid): Ditto.
2697 * linespec.c (find_methods): Canonicalize NAME before looking
2699 (name_end): New function.
2700 (keep_name_info): New function.
2701 (decode_line_1): Use keep_name_info.
2702 (decode_compound): Likewise.
2703 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2704 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2707 * linespec.c (locate_first_half): Keep overload information, too.
2708 (decode_compound): Use a string to represent break characters
2710 If P points to a break character, do not increment it.
2711 For C++ and Java, keep overload information and relevant keywords.
2712 If we cannot find a symbol, search the minimal symbols.
2715 * linespec.c (decode_compound): Rename SAVED_ARG to
2717 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2719 Pass a valid block to lookup_symbol.
2720 (lookup_prefix_sym): Likewise.
2721 (find_method): Construct search name based on SYM_CLASS instead
2723 * psymtab.c (lookup_partial_symbol): Add language parameter.
2724 (lookup_symbol_aux_psymtabs): Likewise.
2725 Don't assume that the psymtab we found was the right one. Search
2726 for the desired symbol in the symtab to be certain.
2727 (psymtab_search_name): New function.
2728 (lookup_partial_symbol): Use psymtab_search_name.
2729 Add language parameter.
2730 (read_symtabs_for_function): Add language parameter and pass to
2731 lookup_partial_symbol.
2732 (find_symbol_file_from_partial): Likewise.
2737 * dwarf2read.c (noop_record_line): New function.
2738 (dwarf_decode_lines): Ignore line tables for GCd functions.
2742 Fix ARI warnings about new lines at the end of messages, which
2743 are unneeded as there is a new line added at the end of the message
2745 * darwin-nat.c (darwin_stop_inferior): Ditto.
2746 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2747 * dfp.c (decimal_to_number): Ditto.
2748 * exec.c (print_section_info): Ditto.
2749 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2750 * osdata.c (get_osdata): Ditto.
2751 * record.c (bfdcore_write): Ditto.
2752 * remote-mips.c (mips_readchar): Ditto.
2753 * remote.c (read_ptid): Ditto.
2754 * ser-mingw.c (ser_windows_raw): Ditto.
2755 * tracepoint.c (add_local_symbols): Ditto.
2756 * windows-nat.c (fake_create_process): Ditto.
2760 * tracepoint.c (stop_tracing): Don't declare.
2761 * event-top.c (after_char_processing_hook): Add `(void)'.
2765 * NEWS: Add Parameter sub-classing description.
2769 * MAINTAINERS: Update my e-mail address.
2773 * MAINTAINERS: Add myself for write after approval privileges.
2777 * frame.c (find_frame_sal): Assert sym is not null.
2779 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2781 * objc-lang.c (selectors_info): Check strchr for null result.
2783 * stabsread.c (define_symbol): Guard against bad stabstring input.
2787 Remove trailing spaces and tabulations from pascal language
2792 p-valprint.c: Ditto.
2796 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2797 than LOW. Comment it.
2798 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2799 HIGHPC not strictly higher than LOWPC.
2803 Fix formatting of function declarations returning a pointer in
2805 * varobj.c (varobj_add_child): Ditto.
2806 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2807 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2811 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2812 for the "generic" vector ABI used with GCC 4.3 and later.
2813 (ppc64_sysv_abi_return_value): Likewise.
2817 * infcall.c (call_function_by_hand): Function return value is
2818 always a non_lval, even when using struct_return.
2822 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2823 (map_display_numbers): New.
2824 (do_delete_display): New.
2825 (undisplay_command): Use map_display_numbers.
2826 (do_enable_disable_display): New.
2827 (enable_disable_display_command): New function.
2828 (enable_display): Delete.
2829 (enable_display_command): New.
2830 (disable_display_command): Reimplement.
2831 (_initialize_printcmd): Adjust "enable display" command to use
2832 `enable_display_command' as callback.
2836 * NEWS: Add Python breakpoint 'stop' operation.
2840 * NEWS: Delete duplicate entry. Fix typo.
2844 Fix ARI warning about function names in first column.
2845 Put prototype declaration on same line as return type.
2846 * objc-exp.y: Ditto.
2848 * python/py-stopevent.h: Ditto.
2849 For long function names, split parameters to
2850 allow function name on same line as return type.
2851 * solib-pa64.c: Ditto.
2854 For long function declaration, use single line.
2855 * hppa-tdep.h: Ditto.
2856 * inferior.h: Ditto.
2860 * python/python.h: Declare gdbpy_should_stop and
2861 gdbpy_breakpoint_has_py_cond.
2862 * python/python.c: Add python.h to includes. Remove python.h from
2863 HAVE_PYTHON definition
2864 (gdbpy_should_stop): New dummy function.
2865 (gdbpy_breakpoint_has_py_cond): New dummy function.
2866 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2867 sub-classing capabilities.
2868 (gdbpy_should_stop): New function.
2869 (gdbpy_breakpoint_has_py_cond): New function.
2870 (local_setattro): New function.
2871 * breakpoint.c (condition_command): Add check for Python 'stop'
2873 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2874 operation function as part of stop/continue tests.
2879 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2880 (needs_frame_dwarf_call): Likewise.
2884 Fix ARI warning about functions without parameters that do not
2886 * breakpoint.c (all_tracepoints): Replace () by (void).
2887 * f-exp.y (match_string_literal): Ditto.
2889 * m2-exp.y (yylex): Ditto.
2890 * mep-tdep.c (current_me_module): Ditto.
2891 (current_options): Ditto.
2892 (current_cop_data_bus_width): Ditto.
2893 (current_cr_names): Ditto.
2894 (current_cr_is_float): Ditto.
2895 (current_ccr_names): Ditto.
2896 * objc-exp.y (yylex): Ditto.
2897 * p-exp.y (yylex): Ditto.
2898 * remote.c (send_interrupt_sequence): Ditto.
2899 * tracepoint.c (current_trace_status): Ditto.
2900 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2901 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2905 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2906 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2907 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2908 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2909 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2911 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2912 (delete_async_event_handler): Ditto.
2914 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2916 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2918 * top.c (set_verbose): Assert showcmd was found.
2922 * xtensa-tdep.c (warning_once): Correct style issues.
2926 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2930 * common/aclocal.m4: Remove.
2934 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2935 (xtensa_write_register, xtensa_read_register): Likewise.
2936 (xtensa_hextochar): Removed.
2937 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2941 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2942 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2943 (xtensa_alloc_frame_cache): Add initialization for new fields.
2944 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2945 (warning_once): New function.
2946 (xtensa_insn_kind): New item c0opc_and.
2947 (call0_classify_opcode): Add the case for AND instruction.
2948 (call0_track_op): Change arguments. New local variable litbase.
2949 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2950 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2952 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2953 (call0_analyze_prologue): Update the comments. Change arguments.
2954 Add the variety of updates to handle extended prologues, which now can
2955 conduct dynamic stack adjustments.
2956 (call0_frame_cache): Likewise.
2957 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2958 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2962 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2963 (cmd_qtframe): Ditto.
2964 (cmd_qtbuffer): Ditto.
2965 (cmd_bigqtbuffer): Ditto.
2969 * tracepoint.c (trace_actions_command): Update.
2970 * thread.c (thread_apply_command): Update.
2971 * reverse.c (delete_bookmark_command): Update.
2972 (bookmarks_info): Update.
2973 * printcmd.c (undisplay_command): Update.
2974 * memattr.c (mem_enable_command): Update.
2975 (mem_disable_command): Update.
2976 (mem_delete_command): Update.
2977 * inferior.c (detach_inferior_command): Update.
2978 (kill_inferior_command): Update.
2979 (remove_inferior_command): Update.
2980 * cli/cli-utils.h (struct get_number_or_range_state): New.
2981 (init_number_or_range): Declare.
2982 (get_number_or_range): Update.
2983 * cli/cli-utils.c (init_number_or_range): New function.
2984 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2986 (number_is_in_list): Update.
2987 * breakpoint.h (get_tracepoint_by_number): Update.
2988 * breakpoint.c (map_breakpoint_numbers): Update for change to
2989 get_number_or_range.
2990 (find_location_by_number): Use get_number, not
2991 get_number_or_range.
2992 (trace_pass_set_count): New function.
2993 (trace_pass_command): Update for change to get_number_or_range.
2995 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3000 * python/py-param.c (add_setshow_generic): Add set/show callback
3001 parameters. Register Python object context.
3002 (get_show_value): New function.
3003 (get_set_value): New function.
3004 (call_doc_function): New function.
3005 (get_doc_string): Move behind get_show_value/get_set_value.
3009 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3013 * xtensa-tdep.c (xtensa_read_register): Add comment.
3014 (xtensa_write_register): Likewise.
3015 (xtensa_hextochar): Add comment and update to match coding conventions.
3016 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3017 (execute_l32e, execute_s32e, execute_code): Update comments.
3018 (xtensa_exception_handler_t): Update to match coding conventions.
3019 (xtensa_insn_kind): Likewise.
3023 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3027 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3031 * thread.c (restore_selected_frame): Handle frame_level == -1.
3032 (make_cleanup_restore_current_thread): Use
3033 get_selected_frame_if_set.
3034 * frame.h (get_selected_frame_if_set): Declare.
3035 * frame.c (get_selected_frame_if_set): New function.
3039 * cli/cli-cmds.c (shell_escape): Use lbasename.
3040 * coffread.c (coff_start_symtab): Constify parameter.
3041 (complete_symtab): Constify `name' parameter.
3042 (coff_symtab_read): Constify `filestring' local.
3043 (coff_getfilename): Constify return and `result' local.
3045 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3046 * linux-fork.c (info_checkpoints_command): Use lbasename.
3047 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3048 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3049 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3050 * procfs.c (procfs_make_note_section): Use lbasename.
3051 * tui/tui-io.c (printable_part): Constity return and parameter.
3053 (print_filename): Constify parameters, and local `s'.
3054 (tui_rl_display_match_list): Constify local `temp'.
3060 Fix DWARF-3+ DW_AT_accessibility default assumption.
3061 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3062 cu->header.version >= 3.
3066 * common/Makefile.in: Remove.
3067 * common/configure: Remove.
3068 * common/configure.ac: Remove.
3075 * common/Makefile.in: Add copyright header.
3079 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3081 * configure.ac: Add common to sub dir.
3082 * configure: Regenerate.
3086 * xtensa-tdep.c (call0_ret): New function.
3087 (xtensa_skip_prologue): Speed up analysis.
3091 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3092 while executing MI command -data-list-changed-registers.
3096 * xtensa-tdep.c (xtensa_read_register): New function.
3097 (xtensa_write_register): New function.
3098 (xtensa_find_register_by_name): New function.
3099 (xtensa_windowed_frame_cache): Update comments in type description.
3100 (xtensa_frame_cache): Likewise.
3101 (xtensa_window_interrupt_insn): New function.
3102 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3103 (xtensa_insn_kind): Add new instructions.
3104 (rwx_special_register): New function.
3105 (call0_classify_opcode): Add new instructions to the analysis.
3106 (a0_saved, a7_saved, a11_saved): New variables.
3107 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3108 (execute_l32e): New function.
3109 (execute_s32e): New function.
3110 (xtensa_exception_handler_t): New type.
3111 (execute_code): New function.
3112 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3113 analysis for Xtensa Window Exception handlers.
3117 * xtensa-tdep.c (TX_PS): New.
3118 (windowing_enabled): Update to count for Call0 ABI.
3119 (xtensa_hextochar): New.
3120 (xtensa_init_reggroups): Make algorithm generic.
3121 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3125 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
3129 * i386-tdep.c (i386_follow_jump): Check return value of
3131 (i386_analyze_struct_return): Ditto.
3132 (i386_skip_probe): Ditto.
3133 (i386_match_insn): Ditto.
3134 (i386_skip_noop): Ditto.
3135 (i386_analyze_frame_setup): Ditto.
3136 (i386_analyze_register_saves): Ditto.
3137 (i386_skip_prologue): Ditto.
3138 (i386_skip_main_prologue): Ditto.
3140 * target.c (read_whatever_is_readable): Fix memory leak.
3142 * i386-tdep.c (i386_process_record): Document fall through.
3146 Fix DWARF-3+ DW_AT_accessibility default assumption.
3147 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3148 cu->header.version >= 3.
3152 * remote.c (remote_check_symbols): Skip if the target has no
3157 * target.c (read_whatever_is_readable): Reformat comment,
3158 with a minor typo fix. Minor reformatting of the code.
3162 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3163 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3164 Use cached result instead of calling displaced_in_arm_mode again.
3165 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3166 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3167 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3168 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3169 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3170 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3171 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3172 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3173 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3174 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3175 (arm_catch_kernel_helper_return): Likewise.
3176 * gdb/arm-tdep.h : Update function declarations.
3180 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3182 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3184 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3186 * elfread.c (elf_symtab_read): Stop memory leak.
3188 * main.c (captured_main): Fix memory leak.
3192 * ada-lang.c (compare_names): Call is_name_suffix with string1
3197 * xcoffread.c (xcoff_sym_fns): Update.
3198 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3199 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3200 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3201 (symbol_file_add_with_addrs_or_offsets): Likewise.
3202 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3203 * somread.c (som_sym_fns): Update.
3204 * psymtab.h (require_partial_symbols): Declare.
3205 * psymtab.c (require_partial_symbols): New function.
3206 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3207 (ALL_OBJFILE_PSYMTABS): Undef.
3208 (ALL_PSYMTABS): Move from psympriv.h.
3209 (lookup_partial_symtab, find_pc_sect_psymtab)
3210 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3211 (find_last_source_symtab_from_partial)
3212 (forget_cached_source_info_partial)
3213 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3214 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3215 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3216 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3217 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3218 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3219 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3220 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3221 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3223 * mipsread.c (ecoff_sym_fns): Update.
3224 * machoread.c (macho_sym_fns): Update.
3225 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3226 (read_psyms): New function.
3227 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3228 (elf_sym_fns_lazy_psyms): New global.
3229 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3230 dwarf2_build_psymtabs.
3231 * dbxread.c (aout_sym_fns): Update.
3232 * coffread.c (coff_sym_fns): Update.
3236 * infrun.c (print_exited_reason): Include inferior id and pid in
3241 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3243 (target_has_execution_1): Update.
3244 (target_has_execution_current): Declare.
3245 (target_has_execution): Call target_has_execution_current.
3246 (default_child_has_execution): Update.
3247 * target.c (default_child_has_execution): Add 'the_ptid'
3249 (target_has_execution_1): Likewise.
3250 (target_has_execution_current): New function.
3251 (add_target): Update.
3252 (init_dummy_target): Update.
3253 * remote-m32r-sdi.c (m32r_has_execution): New function.
3254 (init_m32r_ops): Use it.
3255 * record.c (record_core_has_execution): Now static. Add
3256 'the_ptid' parameter.
3257 * inferior.c (have_live_inferiors): Don't save current thread.
3258 Use target_has_execution_1.
3262 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3266 * elfread.c (elf_symtab_read): Minor reformatting.
3270 * objc-lang.c (selectors_info): Minor reformatting.
3274 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3279 * ada-valprint.c (ada_val_print_array): Move the declaration of
3280 "byte_order" and "elttype" inside the block where these variables
3281 are actually used. Remove some special handling for the case
3282 where "elttype" and "eltlen" are null. Replace by a comment
3283 and a couple of assertion checks.
3287 * source.c (add_path): Replace semicolon at end of block.
3288 * dwarf2expr.c (execute_stack_op): Ditto.
3292 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3293 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3294 (bfin-*-*): Likewise.
3298 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3299 * mdebugread.c (parse_symbol): Ditto.
3300 * parse.c (parse_exp_in_context): Ditto.
3301 * source.c (add_path): Ditto.
3302 * utils.c (gnu_debuglink_crc32): Ditto.
3303 * varobj.c (variable_language): Ditto.
3305 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3309 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3311 * symfile.c (simple_overlay_update): Check for null return value
3312 from lookup_minimal_symbol.
3314 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3318 * eval.c (parse_and_eval_address_1): Remove function.
3319 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3320 instead of parse_and_eval_address_1.
3321 * value.h (parse_and_eval_address_1): Remove prototype.
3325 * remote.c (putpkt_binary): Document that case stmt falls through.
3329 * breakpointc (print_it_typical): Move NULL check from here...
3330 (print_bp_stop_message): ... to here.
3334 * breakpoint.c (enable_command): Use break instead of continue,
3335 and fill in a missing break.
3336 (disable_command): Ditto.
3340 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3341 (terminal_save_ours): Remove misleading comment.
3342 (inflow_inferior_data_cleanup): Free ttystate.
3343 (inflow_inferior_exit): Likewise.
3344 (copy_terminal_info): Copy ttystate.
3346 * serial.c (serial_copy_tty_state): New function.
3347 * serial.h (serial_copy_tty_state): Add prototype.
3348 (struct serial_ops): Add copy_tty_state callback.
3349 * ser-base.c (ser_base_copy_tty_state): New function.
3350 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3351 * ser-go32.c (dos_copy_tty_state): New function.
3352 (dos_ops): Install copy_tty_state callback.
3353 * ser-mingw.c (_initialize_ser_windows): Likewise.
3354 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3355 * ser-unix.c (hardwire_copy_tty_state): New function.
3356 (_initialize_ser_hardwire): Install it.
3360 * breakpoint.c (create_breakpoint): Add missing break statement.
3362 Reverting this patch:
3363 * infcall.c (call_function_by_hand): Add break statements for lint.
3365 Reverting this patch:
3366 * cli/cli-script.c (script_from_file): Add break for lint.
3370 * solib.c (reload_shared_libraries_1): Close memory leak.
3375 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3380 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3381 fields of struct 'st' to zero.
3383 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3384 sal.pspace before calling set_current_source_symtab_and_line.
3388 * Makefile.in (configure-common): Remove. Let Makefile
3389 in dir common to rebuild itself.
3390 (common/Makefile): Likewise.
3394 * utils.c (parse_escape): Add i18n markup in error message.
3398 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3400 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3401 (displaced_write_reg, displaced_read_reg): Likewise.
3402 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3403 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3404 (cleanup_branch): Replace magic number 14 and 15 with
3405 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3409 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3411 * cli/cli-script.c (script_from_file): Add break for lint.
3413 * mdebugread.c (parse_partial_symbols): Fix indent.
3415 * target-descriptions.c (tdesc_gdb_type): No need to call
3416 xstrdup, callee saves a copy.
3418 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3420 * infcall.c (call_function_by_hand): Add break statements for lint.
3422 * utils.c (parse_escape): Escape the escape char.
3424 * python/py-inferior.c (build_inferior_list): Error out if
3425 PyList_Append fails.
3426 (gdbpy_inferiors): Error out if build_inferior_list fails.
3428 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3431 * record.c (record_restore): Move printf to before error return.
3435 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3436 is_thumb and insn_size.
3437 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3438 on both ARM and Thumb mode.
3439 (arm_process_displaced_insn): Set is_thumb and insn_size.
3440 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3441 (arm_displaced_step_fixup): Likewise.
3445 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3447 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3449 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3451 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3453 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3456 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3457 which shadows function parameter.
3459 * tracepoint.c (create_tsv_from_upload): Superfluous call
3460 to xstrdup. Callee already calls xstrdup.
3462 * linespec.c (decode_line_1): Remove unnecessary null check.
3464 * tracepoint.c (scope_info): Fix mem leak, remove underused
3467 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3468 superfluous null check.
3470 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3471 (value_of_builtin_frame_fp_reg): Ditto.
3473 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3475 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3478 * linespec.c (decode_line_1): Check for null before dereference.
3480 * reverse.c (record_restore): Move null-check to before pointer
3483 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3485 * objc-lang.c (selectors_info): Add explanitory comment.
3486 (classes_info): Ditto.
3490 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3491 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3492 versions of the trampoline. Handle Thumb vs. ARM addresses.
3493 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3494 (arm_linux_init_abi): Install it.
3495 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3496 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3500 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3501 a little bigger, to avoid possibility of an overflow.
3503 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3504 buffers a little bigger, to avoid possibility of an overflow.
3506 * coffread.c (coff_getfilename): Add check to avoid overflow.
3508 * objc-lang.c (selectors_info): Add a small safety margin to
3510 (classes_info): Error out on too long REGEXP.
3512 * infrun.c (handle_inferior_event): Remove unused function call.
3514 * fork-child.c (fork_inferior): Remove ifdef'd code and
3517 * linux-thread-db.c (attach_thread): Discard unused value.
3519 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3521 * remote.c (remote_get_noisy_reply): Discard unused value.
3522 (remote_vcont_resume): Ditto.
3523 (remote_stop_ns): Ditto.
3525 * linespec.c (decode_objc): Delete unused variable.
3527 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3529 * dwarf2read.c (add_partial_symbol): Discard unused values.
3530 (read_base_type): Delete unused variable.
3532 * dbxread.c (read_dbx_symtab): Discard unused value.
3534 * eval.c (evaluate_subexp_standard): Delete unused variable,
3535 and discard unused values.
3537 * infcmd.c (_initialize_infcmd): Discard unused values.
3539 * stabsread.c (rs6000_builtin_type): Missing break statement.
3541 * dbxread.c (process_one_symbol): Discard unused value.
3543 * coffread.c (coff_end_symtab): Delete unused variable.
3545 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3546 (dwarf2_add_typedef): Delete unused variable.
3547 (read_namespace): Ditto.
3548 (dwarf_decode_macros): Ditto.
3550 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3552 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3554 * p-valprint.c (pascal_val_print): Discard unused value.
3556 * utils.c (nquery): Call va_end before return;
3560 * proc-service.c (ps_plog): Call va_end before return.
3564 * python/python.c (gdbpy_value_cst): New global.
3565 (_initialize_python): Initialize it.
3566 * python/python-internal.h (gdbpy_value_cst): Declare.
3567 * python/py-value.c (convert_value_from_python): Use
3572 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3574 * breakpoint.c (catch_syscall_completer): Free malloced list.
3576 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3578 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3579 (lval_func_check_synthetic_pointer): Ditto.
3580 (lval_func_free_closure): Fix use-after-free.
3584 * psymtab.c (expand_partial_symbol_tables): Use
3585 ALL_OBJFILE_PSYMTABS.
3589 * objc-lang.c (selectors_info): Error on too long REGEXP.
3593 * python/py-param.c (set_parameter_value): Add missing
3596 * linux-record.c (record_linux_system_call): Add missing
3601 * breakpoint.c (print_one_breakpoint_location): Remove unused
3602 argument PRINT_ADDRESS_BITS. Update callers.
3603 (print_one_breakpoint): Likewise.
3607 * breakpoint.c (wrap_indent_at_field): New function.
3608 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3609 Allocate ui_stream locally instead of using STB argument.
3610 (print_one_breakpoint_location): Update call.
3611 * ui-out.c (ui_out_query_field): New function.
3612 * ui-out.h (ui_out_query_field): Add prototype.
3617 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3621 * objc-lang.c (selectors_info): Prevent string overrun.
3623 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3626 * symtab.c (rbreak_command): Move variable 'file_name' to
3629 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3630 param with a local variable of the same name.
3634 * value.c (value_from_history_ref): New function.
3635 * value.h (value_from_history_ref): Export.
3636 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3637 to parse value history references.
3638 * cli/cli-utils.h (get_number_trailer): Update comment.
3642 * inferior.c (detach_inferior_command): Use get_number_or_range.
3643 (kill_inferior_command): Ditto.
3644 (remove_inferior_command): Ditto.
3645 (initialize_inferiors): Make command names plural.
3646 Update help strings.
3650 * darwin-nat-info.c: Fix comment typo.
3651 * dwarf2expr.h: Ditto.
3652 * fbsd-nat.c: Ditto.
3653 * fbsd-nat.h: Ditto.
3654 * frame-unwind.h: Ditto.
3656 * hppa-hpux-tdep.c: Ditto.
3657 * i386-linux-nat.c: Ditto.
3658 * linux-nat.c: Ditto.
3659 * nbsd-nat.c: Ditto.
3660 * nbsd-nat.h: Ditto.
3661 * ppc-linux-tdep.c: Ditto.
3664 * tui/tui-winsource.c: Ditto.
3668 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3670 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3672 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3673 with a local variable of the same name.
3675 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3676 param with a local variable of the same name.
3677 (i387_supply_xsave): Ditto.
3679 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3680 that it does not shadow a function parameter.
3682 * i386-nat.c (i386_length_and_rw_bits): Document that case
3683 statement is meant to fall through.
3685 * expprint.c (dump_subexp_body_standard): Document that case
3686 statement is meant to fall through.
3688 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3689 dead if statement. Condition can't be false.
3693 * arm-tdep.c: Fix typos in comments.
3694 * bsd-uthread.c: Ditto.
3695 * completer.c: Ditto.
3697 * cp-namespace.c: Ditto.
3698 * cp-support.c: Ditto.
3699 * cris-tdep.c: Ditto.
3701 * dwarf2read.c: Ditto.
3703 * gdbtypes.h: Ditto.
3704 * inferior.h: Ditto.
3705 * mdebugread.c: Ditto.
3706 * mips-tdep.c: Ditto.
3707 * ppc-linux-nat.c: Ditto.
3708 * ppc-linux-tdep.c: Ditto.
3709 * printcmd.c: Ditto.
3710 * sol-thread.c: Ditto.
3711 * solib-frv.c: Ditto.
3713 * sparc64-tdep.c: Ditto.
3714 * spu-tdep.c: Ditto.
3715 * stabsread.c: Ditto.
3720 * python/py-block.c: Ditto.
3721 * python/py-symbol.c: Ditto.
3722 * python/py-symtab.c: Ditto.
3723 * python/py-value.c: Ditto.
3724 * tui/tui-win.c: Ditto.
3728 * inferior.c (print_inferior): Accept a string instead of an int
3729 for requested_inferiors, and use get_number_or_range to parse it.
3730 (info_inferiors_command): Pass args string to print_inferior.
3731 (initialize_inferiors): Change help string for info inferiors.
3732 * inferior.h (print_inferior): Export prototype change.
3736 * common/ax.def (invalid2): Set to 0x31.
3740 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3742 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3744 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3748 * Makefile.in (clean): Make clean should remove generated files
3749 observer.h and observer.inc.
3753 Revert the following patch (not approved yet):
3755 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3756 * ax-gdb.c (gen_printf_expr_callback): New function.
3757 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3758 * ax-general.c (ax_memcpy): New function.
3759 (ax_print): Handle "printf".
3761 * ax.h (ax_memcpy): Forward declare.
3762 * common/ax.def (invalid2): Removed.
3763 (printf): New entry.
3764 * printcmd.c (printcmd.h): New include.
3765 (string_printf): New function.
3766 (ui_printf): Removed.
3767 (printf_command): Remove static. Call string_printf.
3768 (eval_command): Call string_printf.
3769 * printcmd.h: New file.
3770 * tracepoint.c (validate_actionline,
3771 encode_actions_1): handle printf_command.
3775 * ax-general.c (ax_pick): Add missing newline.
3779 * breakpoint.c (breakpoint_1): Change first argument from an int
3780 to a char pointer, so that the function now accepts a list of
3781 breakpoints rather than just one. Use new function
3782 'number_is_in_list' to implement.
3783 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3784 (watchpoints_info): Ditto.
3785 (tracepoints_info): Ditto.
3786 (maintenance_info_breakpoints): Ditto.
3787 (_initialize_breakpoint): Update help strings to reflect the fact
3788 that these functions can now take more than one argument.
3789 * cli/cli-utils.c (number_is_in_list): New function.
3790 * cli/cli-utils.h (number_is_in_list): Export.
3794 * memattr.c (mem_enable_command): Use get_number_or_range.
3795 (mem_disable_command): Ditto.
3796 (mem_delete_command): Ditto.
3797 (_initialize_mem): Tweak usage message to reflect multiple
3802 Add gdb.lookup_global_symbol python function.
3804 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3805 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3806 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3810 * language.c (language_class_name_from_physname): Rename
3811 'curr_language' argument to 'lang'; use in body.
3815 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3819 * frame-unwind.h: Fix comment to mention the this frame, not the
3824 * symfile.c (auto_solib_limit): Remove.
3825 * symfile.h (auto_solib_limit): Remove.
3829 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3833 * gdbthread.h (print_thread_info): Change prototype.
3834 * thread.c (print_thread_info): Accept char* instead of int for
3835 requested_threads argument. Use new function number_is_in_list
3836 to determine which threads to list.
3837 (info_threads_command): Pass char* to print_thread_info.
3838 * cli/cli-utils.c (number_is_in_list): New function.
3839 * cli/cli-utils.h (number_is_in_list): Export.
3840 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3842 (print_one_inferior): Ditto.
3843 (mi_cmd_list_thread_groups): Ditto.
3847 * common/Makefile.in (CFLAGS): New.
3848 (COMPILE): Add $(CFLAGS).
3852 * breakpoint.c (catch_syscall_command_1): Fix typo.
3856 * reverse.c: Include cli-utils.h.
3857 * printcmd.c: Include cli-utils.h.
3858 (string_printf): Use skip_spaces.
3859 * cli/cli-utils.h: New file.
3860 * cli/cli-utils.c: New file.
3861 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3862 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3863 * breakpoint.h (get_number, get_number_or_range): Move to
3865 * breakpoint.c: Include cli-utils.h.
3866 (get_number_trailer, get_number, get_number_or_range)
3867 (ep_skip_leading_whitespace): Move to cli-utils.c.
3868 (create_breakpoint_sal, find_condition_and_thread)
3869 (decode_static_tracepoint_spec, watch_command_1)
3870 (watch_maybe_just_location, ep_parse_optional_if_clause)
3871 (catch_fork_command_1, catch_exec_command_1)
3872 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3873 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3874 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3875 (HFILES_NO_SRCDIR): Add cli-utils.h.
3876 (cli-utils.o): New target.
3880 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3881 before calling discard_all_inferiors.
3885 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3886 (struct builtin_opencl_type): Remove.
3887 (builtin_opencl_type): Change return type to "struct type **".
3888 (lookup_opencl_vector_type): Update caller.
3889 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3890 (build_opencl_types): Install plain array of "struct type *"
3891 instead of "struct builtin_opencl_type".
3896 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3897 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3898 (struct arm_linux_hwbp_cap): New type.
3899 (arm_linux_get_hwbp_cap): New function.
3900 (arm_linux_get_hw_breakpoint_count): Likewise.
3901 (arm_linux_get_hw_watchpoint_count): Likewise.
3902 (arm_linux_can_use_hw_breakpoint): Likewise.
3903 (arm_hwbp_type): New type.
3904 (arm_hwbp_control_t): Likewise.
3905 (struct arm_linux_hw_breakpoint): Likewise.
3906 (struct arm_linux_thread_points): Likewise.
3907 (arm_threads): New global variable.
3908 (arm_linux_find_breakpoints_by_tid): New function.
3909 (arm_hwbp_control_initialize): Likewise.
3910 (arm_hwbp_control_is_enabled): Likewise.
3911 (arm_hwbp_control_disable): Likewise.
3912 (arm_linux_hw_breakpoint_initialize): Likewise.
3913 (arm_linux_get_hwbp_type): Likewise.
3914 (arm_linux_hw_watchpoint_initialize): Likewise.
3915 (arm_linux_hw_breakpoint_equal): Likewise.
3916 (arm_linux_insert_hw_breakpoint1): Likewise.
3917 (arm_linux_remove_hw_breakpoint1): Likewise.
3918 (arm_linux_insert_hw_breakpoint): Likewise.
3919 (arm_linux_remove_hw_breakpoint): Likewise.
3920 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3921 (arm_linux_insert_watchpoint): Likewise.
3922 (arm_linux_remove_watchpoint): Likewise.
3923 (arm_linux_stopped_data_address): Likewise.
3924 (arm_linux_stopped_by_watchpoint): Likewise.
3925 (arm_linux_watchpoint_addr_within_range): Likewise.
3926 (arm_linux_new_thread): Likewise.
3927 (arm_linux_thread_exit): Likewise.
3928 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3929 related target callbacks. Register arm_linux_new_thread and
3930 arm_linux_thread_exit.
3931 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3932 * arm-tdep.c (arm_pc_is_thumb): Make global.
3933 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3937 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3938 per-frame locations while within a function epilogue.
3942 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3943 to GNU coding standards.
3947 Allow use of mingw native on Windows 95 OS.
3948 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3949 (ser_windows_close): Only call CancelIo if function exists.
3950 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3951 to check for existence of CancelIo function in kernel32 DLL.
3955 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3956 * ax-gdb.c (gen_printf_expr_callback): New function.
3957 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3958 * ax-general.c (ax_memcpy): New function.
3959 (ax_print): Handle "printf".
3961 * ax.h (ax_memcpy): Forward declare.
3962 * common/ax.def (invalid2): Removed.
3963 (printf): New entry.
3964 * printcmd.c (printcmd.h): New include.
3965 (string_printf): New function.
3966 (ui_printf): Removed.
3967 (printf_command): Remove static. Call string_printf.
3968 (eval_command): Call string_printf.
3969 * printcmd.h: New file.
3970 * tracepoint.c (validate_actionline,
3971 encode_actions_1): handle printf_command.
3975 * reverse.c (delete_one_bookmark): Argument is now bookmark
3976 id rather than pointer to bookmark struct.
3977 (delete_bookmark_command): Use get_number_or_range.
3978 (goto_bookmark_command): Parse with get_number instead of strtoul.
3979 (bookmark_1): New function. Print info for one bookmark.
3980 (bookmarks_info): Use get_number_or_range and bookmark_1.
3984 * thread.c (info_threads_command): Re-implement using
3985 get_number_or_range.
3986 (thread_apply_command): Ditto.
3990 * common/ax.def: New file.
3991 * ax.h (enum agent_op): Use ax.def.
3992 * ax-general.c (aop_map): Use ax.def.
3996 * ax-general.c (aop_map): Add pick and rot.
3997 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3998 <DW_OP_rot>: Implement.
3999 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4001 * ax-general.c (ax_pick): New function.
4005 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4010 * cp-support.c (make_symbol_overload_list_namespace): Do not call
4011 make_symbol_overload_list_block with NULL BLOCK.
4012 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4016 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4017 * breakpoint.h (get_number_or_range): Declare.
4018 * printcmd.c (ALL_DISPLAYS): Declare.
4019 (delete_display): Reimplement taking a display pointer.
4020 (undisplay_command): Accept a range of displays to delete, using
4021 get_number_or_range.
4025 * c-valprint.c (c_val_print): Add embedded_offset to address
4026 for arrays of unspecified length.
4027 * p-valprint.c (pascal_val_print): Likewise.
4031 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4032 (arm_process_displaced_insn): .. here. Remove parameter INSN.
4033 (thumb_process_displaced_insn): New.
4034 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4035 call to arm_process_displaced_insn.
4036 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4040 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4041 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4042 compile_dwarf_to_ax. No longer static. Call
4043 dwarf2_compile_cfa_to_ax.
4044 (locexpr_tracepoint_var_ref): Update.
4045 (loclist_tracepoint_var_ref): Update.
4046 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4047 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4048 argument; add 'gdbarch' and 'pc'.
4049 (dwarf2_compile_cfa_to_ax): New function.
4050 (dwarf2_frame_cache): Update.
4054 * ada-lang.c (ada_type_of_array): Fix the size of the array
4055 in the case of an unconstrained packed array.
4059 * common/Makefile.in: Add more targets for make.
4063 * dwarf2loc.c (unimplemented): Fix typo.
4067 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4068 (compile_dwarf_to_ax) <default>: Use unimplemented.
4069 <DW_OP_deref>: Update.
4070 (disassemble_dwarf_expression): Update.
4071 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4072 (decode_locdesc): Update.
4073 * dwarf2expr.h (dwarf_stack_op_name): Update.
4077 * ax.h (struct aop_map) <name>: Now const.
4081 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4086 * infrun.c (get_displaced_step_closure_by_addr): New.
4087 * inferior.h: Declare it.
4088 * arm-tdep.c: (arm_pc_is_thumb): Call
4089 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4096 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4101 * value.c (value_contents_copy_raw): Extend describing comment.
4102 Assert that the destination contents we're overwriting are wholly
4104 (value_contents_copy): Extend describing comment.
4109 * value.c (value_available_contents_eq): Remove redundant local
4110 variables. Fix available contents comparision.
4111 * value.h (value_available_contents_eq): Extend describing
4116 * thread.c (info_threads_command): Add missing i18n markup and remove
4121 * breakpoint.c (longjmp_names): New variable.
4122 (struct breakpoint_objfile_data): New type.
4123 (breakpoint_objfile_key): New variable.
4124 (msym_not_found): New variable.
4125 (msym_not_found_p): New predicate.
4126 (get_breakpoint_objfile_data): New function.
4127 (create_overlay_event_breakpoint): Check per-objfile cache for
4129 (create_longjmp_master_breakpoint): Likewise.
4130 (create_std_terminate_master_breakpoint): Likewise.
4131 (create_exception_master_breakpoint): Likewise.
4132 (_initialize_breakpoint): Register per-objfile data key.
4136 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4138 (create_longjmp_master_breakpoint): Loop over longjmp names.
4139 (create_std_terminate_master_breakpoint): Const-propagate parameter
4141 (update_breakpoints_after_exec): Adjust.
4142 (breakpoint_re_set): Adjust.
4146 * thread.c (info_threads_command): Process arg as thread id,
4147 or list of thread ids.
4148 (thread_find_command): New command.
4149 (_initialize_thread): Document argument for info threads.
4150 Document 'thread find' command.
4151 * NEWS: Document new command "thread find".
4155 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4156 * aclocal.m4: Regenerated with aclocal-1.11.1.
4157 * common/configure: Regenerate with autoconf-2.64.
4161 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4162 bool data type to a size of one byte.
4167 * target.c (memory_xfer_live_readonly_partial): Document where to
4168 look for interface description.
4173 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4174 order to store PC value on stack instead of text section.
4178 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4179 the EFP register set size.
4180 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4181 data from the VMX register.
4182 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4183 and write data from/to the VMX register.
4187 * command.h (enum command_class): New class 'no_set_class', for
4188 "show" commands without a corresponding "set" command.
4189 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4190 * copying.c (_initialize_copying): Ditto for "show copying" and
4192 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4194 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4195 which there is no corresponding "set" command (eg. "show copying").
4200 * exec.c (section_table_available_memory): Change `len' parameter
4202 * exec.h (section_table_available_memory): Ditto.
4203 * value.h (read_value_memory): Rename the `offset' parameter to
4209 * memrange.c (compare_mem_ranges): Mention sort order in
4211 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4212 * tracepoint.c (traceframe_available_memory): Extend comment to
4213 mention what happens to RESULT when the target does not support
4219 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4224 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4225 No longer handle NULL values.
4229 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4230 * value.c: Include "exceptions.h".
4231 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4233 * cp-abi.c: Include gdb_assert.h.
4234 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4235 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4237 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4238 parameters. No longer returns -1 on error.
4239 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4241 * cp-valprint.c: Include exceptions.h.
4242 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4243 the baseclass_offset. Handle unavailable base classes. Use
4244 val_print_invalid_address.
4245 * p-valprint.c: Include exceptions.h.
4246 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4247 when fetching the baseclass_offset. No longer expect
4248 baseclass_offset returning -1. Handle unavailable base classes.
4249 Use val_print_invalid_address.
4250 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4251 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4252 `embedded_offset' and `val' parameters. Adjust.
4253 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4254 parameter, and change its type to gdb_byte pointer. Add
4255 `embedded_offset' and `val' parameters. Adjust. No longer expect
4256 baseclass_offset returning -1.
4257 (value_dynamic_cast): Use value_contents_for_printing rather than
4258 value_contents. Adjust.
4259 (search_struct_field): No longer expect baseclass_offset returning
4261 (search_struct_method): If reading memory from the target is
4262 necessary, wrap it in a new value to pass to baseclass_offset. No
4263 longer expect baseclass_offset returning -1.
4264 (find_method_list): No longer expect baseclass_offset returning
4265 -1. Use value_contents_for_printing rather than value_contents.
4266 * valprint.c (val_print_invalid_address): New function.
4267 * valprint.h (val_print_invalid_address): Declare.
4268 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4269 and `val' parameters. No longer expect baseclass_offset returning
4271 * gnu-v2-abi.c: Include "exceptions.h".
4272 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4273 parameters. Handle unavailable memory. Recurse through
4274 gnuv2_baseclass_offset directly, rather than through
4275 baseclass_offset. No longer returns -1 on not found, instead
4277 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4278 `val' parameters. Adjust.
4282 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4283 almost but not quite adjacent.
4287 * value.h (value_entirely_available): Declare.
4288 * value.c (value_entirely_available): New function.
4289 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4290 real type if the pointer is unavailable.
4294 * valops.c (value_repeat): Use read_value_memory instead of
4299 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4300 * value.c (value_contents_copy_raw, value_contents_copy): New
4302 (value_primitive_field): Use value_contents_copy_raw instead of
4304 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4306 (value_array, value_slice): Ditto.
4307 * valarith.c (value_subscripted_rvalue): Use
4308 value_contents_copy_raw instead of memcpy.
4312 <unavailable> references.
4314 * valops.c (get_value_at): Use value_from_contents_and_address,
4315 avoiding read_memory.
4319 * c-valprint.c (c_val_print): Print a string with unavailable
4320 contents as an array.
4324 * value.h (unpack_bits_as_long): Delete declaration.
4325 (unpack_value_bits_as_long): Declare.
4326 (unpack_value_field_as_long): Declare.
4327 (value_field_bitfield): Declare.
4328 * value.c (unpack_bits_as_long): Rename to...
4329 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4330 value parameters. Return the extracted result in a new output
4331 parameter. If the value contents are unavailable, return false,
4332 otherwise return true.
4333 (unpack_value_bits_as_long): New.
4334 (unpack_field_as_long): Rename to...
4335 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4336 Add embedded_offset and value parameters. Return the extracted
4337 result in a new output parameter. If the value contents are
4338 unavailable, return false, otherwise return true.
4339 (unpack_value_field_as_long): New.
4340 (unpack_field_as_long_1): New.
4341 (unpack_field_as_long): Reimplement as wrapper around
4342 unpack_value_field_as_long_1.
4343 (value_field_bitfield): New function.
4344 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4345 unpack_value_bits_as_long. Mark the value as unavailable, if it
4347 * jv-valprint.c (java_print_value_fields): Use
4348 value_field_bitfield.
4349 * p-valprint.c (pascal_object_print_value_fields): Use
4350 value_field_bitfield.
4351 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4355 * value.c (get_internalvar_integer): Also return the int value of
4356 TYPE_CODE_INT INTERNALVAR_VALUE values.
4357 (set_internalvar): Don't special case TYPE_CODE_INT.
4361 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4362 INTERNALVAR_POINTER.
4364 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4365 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4366 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4370 * value.h (value_available_contents_eq): Declare.
4371 * value.c (find_first_range_overlap): New function.
4372 (value_available_contents_eq): New function.
4373 * valprint.c (val_print_array_elements): Use
4374 value_available_contents_eq.
4375 * ada-valprint.c (val_print_packed_array_elements): Use
4376 value_available_contents_eq.
4377 * jv-valprint.c (java_value_print): Use
4378 value_available_contents_eq.
4382 * target.c (target_read_live_memory): New function.
4383 (memory_xfer_live_readonly_partial): New.
4384 (memory_xfer_partial): If reading from a traceframe, fallback to
4385 reading unavailable read-only memory from read-only regions of
4387 * tracepoint.c (disconnect_tracing): Adjust.
4388 (set_current_traceframe): New, factored out from
4389 set_traceframe_number.
4390 (set_traceframe_number): Reimplement to only change the traceframe
4391 number on the GDB side.
4392 (do_restore_current_traceframe_cleanup): Adjust.
4393 (make_cleanup_restore_traceframe_number): New.
4394 (cur_traceframe_number): New global.
4395 (tfile_open): Set cur_traceframe_number to no traceframe.
4396 (set_tfile_traceframe): New function.
4397 (tfile_trace_find): If looking up a traceframe using any method
4398 other than by number, make sure the current tfile traceframe
4399 matches gdb's current traceframe. Update the current tfile
4400 traceframe if the lookup succeeded.
4401 (tfile_fetch_registers, tfile_xfer_partial)
4402 (tfile_get_trace_state_variable_value): Make sure the remote
4403 traceframe matches gdb's current traceframe.
4404 * remote.c (remote_traceframe_number): New global.
4405 (remote_open_1): Set it to -1.
4406 (set_remote_traceframe): New function.
4407 (remote_fetch_registers, remote_store_registers)
4408 (remote_xfer_memory, remote_xfer_partial)
4409 (remote_get_trace_state_variable_value): Make sure the remote
4410 traceframe matches gdb's current traceframe.
4411 (remote_trace_find): If looking up a traceframe using any method
4412 other than by number, make sure the current remote traceframe
4413 matches gdb's current traceframe. Update the current remote
4414 traceframe if the lookup succeeded.
4415 * infrun.c (fetch_inferior_event): Adjust.
4416 * tracepoint.h (set_current_traceframe): Declare.
4417 (get_traceframe_number, set_traceframe_number): Add describing
4422 Mark pieces of values as unavailable if the corresponding memory
4425 * valops.c: Include tracepoint.h.
4426 (value_fetch_lazy): Use read_value_memory.
4427 (read_value_memory): New.
4428 * value.h (read_value_memory): Declare.
4429 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4430 * exec.c (section_table_available_memory): New function.
4431 * exec.h (section_table_available_memory): Declare.
4435 * Makefile.in (SFILES): Add memrange.c.
4436 (HFILES_NO_SRCDIR): Add memrange.h.
4437 (COMMON_OBS): Add memrange.o.
4438 * memrange.c: New file.
4439 * memrange.h: New file.
4440 * tracepoint.c: Include memrange.h.
4441 (struct mem_range): Delete.
4442 (mem_range_s): Delete.
4443 (traceframe_available_memory): New function.
4444 * tracepoint.h (traceframe_available_memory): Declare.
4448 * target.h (struct traceframe_info): Forward declare.
4449 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4450 (struct target_ops) <to_traceframe_info>: New field.
4451 (target_traceframe_info): New.
4452 * target.c (update_current_target): Inherit and default
4454 * remote.c (PACKET_qXfer_traceframe_info): New.
4455 (remote_protocol_features): Register qXfer:traceframe-info:read.
4456 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4457 (remote_traceframe_info): New.
4458 (init_remote_ops): Install it.
4459 (_initialize_remote): Install "set/show remote traceframe-info"
4461 * tracepoint.h (parse_traceframe_info): Declare.
4462 * tracepoint.c (struct mem_range): New.
4463 (mem_range_s): New typedef.
4464 (struct traceframe_info): New.
4465 (traceframe_info): New global.
4466 (free_traceframe_info): New function.
4467 (clear_traceframe_info): New function.
4468 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4470 (build_traceframe_info): New function.
4471 (tfile_traceframe_info): New function.
4472 (init_tfile_ops): Install tfile_traceframe_info.
4473 (traceframe_info_start_memory, free_result): New functions.
4474 (memory_attributes, traceframe_info_elements): New globals.
4475 (parse_traceframe_info, get_traceframe_info): New functions.
4476 * features/traceframe-info.dtd: New file.
4477 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4481 Base support for <unavailable> value contents.
4483 * value.h (value_bytes_available): Declare.
4484 (mark_value_bytes_unavailable): Declare.
4485 * value.c (struct range): New struct.
4486 (range_s): New typedef.
4487 (ranges_overlap): New function.
4488 (range_lessthan): New function.
4489 (ranges_contain_p): New function.
4490 (struct value) <unavailable>: New field.
4491 (value_bytes_available): New function.
4492 (mark_value_bytes_unavailable): New function.
4493 (require_not_optimized_out): Constify parameter.
4494 (require_available): New function.
4495 (value_contents_all, value_contents): Require all bytes be
4497 (value_free): Free `unavailable'.
4498 (value_copy): Copy `unavailable'.
4499 * valprint.h (val_print_unavailable): Declare.
4500 * valprint.c (valprint_check_validity): Rename `offset' parameter
4501 to `embedded_offset'. If printing a scalar, check whether the
4502 value chunk is available.
4503 (val_print_unavailable): New.
4504 (val_print_scalar_formatted): Check whether the value is
4506 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4507 pretty-printing unavailable values.
4511 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4512 * c-typeprint.c (c_type_print_args): Update the function comment. New
4513 variable param_type, initialize it. Remove const/volatile qualifiers
4514 for language_cplus and !show_artificial. Use param_type.
4518 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4519 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4520 * symtab.h (struct symtab) <next>: Comment extension.
4524 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4528 * common/Makefile.in: Add copyright header.
4532 * infrun.c (proceed): Move switching out and in of tfind mode from
4534 (fetch_inferior_event): ... to here.
4538 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4540 * configure.ac: Add common to sub dir.
4541 * configure: Regenerate.
4547 * common/Makefile.in: New.
4548 * common/configure.ac: New.
4549 * common/aclocal.m4: New.
4550 * common/configure: Generate.
4554 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4555 side of the parenthesis.
4559 * vec.h (VEC_block_remove): Fix comment.
4563 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4567 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4568 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4574 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4576 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4577 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4581 * dwarf2read.c (read_subroutine_type): Set special calling
4582 convention flag for functions compiled by IBM XL C for OpenCL.
4583 * ppc-sysv-tdep.c: Include "dwarf2.h"
4584 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4586 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4587 IBM OpenCL vector types calling convention.
4588 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4589 (ppc_sysv_abi_broken_return_value): Likewise.
4590 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4591 types calling convention.
4592 (ppc64_sysv_abi_return_value): Likewise.
4593 * spu-tdep.c: Include "dwarf2.h"
4594 (spu_return_value): Implement IBM OpenCL vector types calling
4599 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4600 correct ABI for AltiVec vector arguments.
4604 * valprint.c (val_print): Extend comment.
4605 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4606 interface explanation to val_print.
4607 (ada_val_print_array): Adjust comment to current interface.
4608 (print_field_values): Adjust comment to current interface.
4609 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4610 explanation to val_print.
4611 * f-valprint.c (f_val_print): Ditto.
4612 * jv-valprint.c (java_val_print): Ditto.
4613 * m2-valprint.c (m2_val_print): Ditto.
4614 * p-valprint.c (pascal_val_print): Ditto.
4618 * breakpoint.c (parse_breakpoint_sals): Fix description.
4623 * python/py-inferior.c (python_on_normal_stop): New function.
4624 (python_on_resume): New function.
4625 (python_inferior_exit): New function.
4626 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4627 inferior_exit observers.
4628 * python/py-evtregistry.c: New file.
4629 * python/py-threadevent.c : New file.
4630 * python/py-event.c: New file.
4631 * python/py-evts.c: New file.
4632 * python/py-continueevent.c: New file.
4633 * python/py-bpevent.c: New file.
4634 * python/py-signalevent.c: New file.
4635 * python/py-exetiedevent.c: New file.
4636 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4637 Move struct breakpoint_object from here...
4638 * python/python-internal.h: ... to here.
4639 * python/py-event.h: New file.
4640 * python/py-events.h: New file.
4641 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4642 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4643 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4644 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4645 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4646 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4647 Add build rules for all the above.
4651 * dwarf2read.c (dwarf2_section_empty_p): New function.
4652 (dwarf2_read_section): Use dwarf2_section_empty_p.
4653 (dwarf2_section_size): New function.
4654 (dwarf2_get_section_info): Unconditionally read section.
4655 (dwarf2_read_index): Use dwarf2_section_empty_p.
4656 (partial_read_comp_unit_head): Use dwarf2_section_size.
4657 (dwarf2_symbol_mark_computed): Likewise.
4661 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4665 * mips-linux-tdep.c: Include xml-syscall.h.
4666 (mips_linux_get_syscall_number): New function.
4667 (mips_linux_init_abi): Add calls to
4668 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4669 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4670 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4671 * syscalls/mips-n32-linux.xml: New file.
4672 * syscalls/mips-n64-linux.xml: New file.
4673 * syscalls/mips-o32-linux.xml: New file.
4677 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4678 Complain about inverted range entries.
4679 (dwarf2_record_block_ranges): Likewise.
4684 * breakpoint.c (update_watchpoint): Fix name of the
4685 update_global_location_list function.
4686 (print_one_breakpoint): Fix typo.
4687 (_initialize_breakpoint): Remove extra space in hbreak help
4689 * breakpoint.h (struct bp_location) <length>: Fix field
4694 * regcache.c (registers_changed_ptid): Don't explictly always
4695 clear `current_regcache'. Only clear current_thread_ptid and
4696 current_thread_arch when PTID matches. Only reinit the frame
4697 cache if PTID matches the current inferior_ptid. Move alloca(0)
4699 (registers_changed): ... here.
4703 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4704 starts with __stack_chk_guard as stack guard symbol.
4708 * disasm.c (compare_lines): Handle the end of sequence markers
4709 within the line table to better support disassembling over
4710 compilation unit boundaries.
4714 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4715 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4716 implementation even if no symbols are available.
4717 (thumb_analyze_prologue): Update call to skip_prologue_function.
4718 (arm_analyze_prologue): Likewise.
4722 * arm-tdep.c: Include "observer.h".
4723 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4724 (arm_exidx_data_key): New static variable.
4725 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4726 (struct arm_exidx_data): Likewise.
4727 (arm_exidx_data_free): New function.
4728 (arm_compare_exidx_entries): Likewise.
4729 (arm_obj_section_from_vma): Likewise.
4730 (arm_exidx_new_objfile): Likewise.
4731 (arm_find_exidx_entry): Likewise.
4732 (arm_exidx_fill_cache): Likewise.
4733 (arm_exidx_unwind_sniffer): Likewise.
4734 (arm_exidx_unwind): New global variable.
4735 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4736 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4737 observer. Register arm_exidx_data_key as objfile data.
4741 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4742 due to accessing uninitialized variable. Fix indentation.
4746 * c-valprint.c (c_value_print): When doing virtual base pointer
4747 adjustment, create a new value with adjusted contents rather than
4748 changing the contents of the value being printed (and getting it
4753 * xml-support.c (xml_find_attribute): New.
4754 (xinclude_start_include): Use it.
4755 * xml-support.h (xml_find_attribute): Declare.
4756 * memory-map.c (memory_map_start_memory)
4757 (memory_map_start_property): Use xml_find_attribute.
4758 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4760 * remote.c (start_thread): Use xml_find_attribute.
4761 * solib-target.c (library_list_start_segment)
4762 (library_list_start_section, library_list_start_library)
4763 (library_list_start_list): Use xml_find_attribute.
4764 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4765 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4766 (tdesc_start_field): Use xml_find_attribute.
4770 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4771 (BUILD_OCL_VTYPES): Update.
4775 * configure.ac: Work around non-GNU sed limitation when computing
4776 python version number.
4777 * configure: Regenerate.
4781 Fix debug printing of TYPE_INSTANCE.
4782 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4783 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4787 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4788 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4789 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4790 * ada-operator.inc: Rename the file to ...
4791 * ada-operator.def: ... here, wrap all the entries by macro OP.
4792 * expprint.c (op_name_standard): Remove all the entries. Include
4793 "std-operator.def" instead.
4794 * expression.h (enum exp_opcode): Include "std-operator.def" and
4795 "ada-operator.def". Move all the entries ...
4796 * std-operator.def: ... here, wrap all the entries by macro OP.
4800 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4801 * breakpoint.c (remove_jit_event_breakpoints): New function.
4802 * jit.c (jit_descriptor_addr): Delete.
4803 (registering_code): Delete.
4804 (clear_int): Delete.
4805 (jit_inferior_data): New variable.
4806 (struct jit_inferior_data): New type.
4807 (get_jit_inferior_data): New function.
4808 (jit_inferior_data_cleanup): New function.
4809 (jit_read_descriptor): Adjust.
4810 (jit_register_code): Adjust.
4811 (jit_breakpoint_re_set_internal): New function; move code here ...
4812 (jit_inferior_init): ... from here.
4813 (jit_breakpoint_re_set): Adjust.
4814 (jit_reset_inferior_data_and_breakpoints): New function.
4815 (jit_inferior_created_observer): Adjust.
4816 (jit_inferior_exit_hook): Adjust.
4817 (jit_executable_changed_observer): New function.
4818 (jit_event_handler): Adjust.
4819 (_initialize_jit): Adjust.
4823 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4829 * python/python.c (execute_gdb_command): Call
4830 prevent_dont_repeat.
4831 * top.c (suppress_dont_repeat): New global.
4832 (dont_repeat): Use it.
4833 (prevent_dont_repeat): New function.
4834 * command.h (prevent_dont_repeat): Declare.
4838 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4839 * python/py-breakpoint.c (bppy_set_silent): Use
4840 breakpoint_set_silent.
4841 (bppy_set_thread): Use breakpoint_set_thread.
4842 (bppy_set_task): Use breakpoint_set_task.
4843 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4844 (breakpoint_set_task): Declare.
4845 (make_breakpoint_silent): Remove.
4846 * breakpoint.c (breakpoint_set_silent): New function.
4847 (breakpoint_set_thread): Likewise.
4848 (breakpoint_set_task): Likewise.
4849 (make_breakpoint_silent): Remove.
4853 * breakpoint.h (user_breakpoint_p): Declare.
4854 * breakpoint.c (user_breakpoint_p): New function.
4855 (breakpoint_1): Use it.
4856 (save_breakpoints): Likewise.
4860 * configure.ac: Add handling of Python distribution on Windows.
4861 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4862 sysconfig variables are not defined, then do not use them.
4863 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4864 instead. On Windows, return all paths using forward-slashes
4865 rather than backslashes.
4869 * configure.ac: Remove fallback behavior for building
4870 against Python. Remove tweaking of Python include path.
4871 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4872 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4873 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4874 Always restore CPPFLAGS and LIBS after linking test.
4875 * configure: Regenerated.
4876 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4877 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4878 * python/python-internal.h: Adjust includes of Python .h files.
4882 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4887 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4892 * arm-linux-nat.c: Update calls to regcache_register_status
4893 instead of regcache_valid_p.
4894 * aix-thread.c: Likewise.
4895 * i386gnu-nat.c: Likewise.
4900 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4901 touching TYPE_FIELD_ARTIFICIAL.
4905 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4910 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4911 selected, don't try iterating over the traceframe's blocks.
4912 (tfile_has_stack): If there's no traceframe selected, then there's
4914 (tfile_has_registers): If there's no traceframe selected, then
4915 there's no registers.
4919 * target.c (memory_xfer_partial): No need to restore shadows if we
4920 haven't read anything.
4924 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4925 and val_print_scalar_formatted.
4929 * tracepoint.c (tfile_read): New.
4930 (tfile_open): Use it.
4931 (tfile_get_traceframe_address): Use it.
4932 (tfile_trace_find): Use it.
4933 (walk_blocks_callback_func): New typedef.
4934 (match_blocktype): New function.
4935 (traceframe_walk_blocks): New function.
4936 (traceframe_find_block_type): New function.
4937 (tfile_fetch_registers, tfile_xfer_partial)
4938 (tfile_get_trace_state_variable_value): Use
4939 traceframe_find_block_type and tfile_read.
4943 * remote-mips.c: Add internationalization mark ups. Remove
4944 trailing \n from already marked up strings.
4948 * python/py-prettyprint.c (print_string_repr): Clear
4949 'addressprint' option when calling val_print_string.
4950 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4951 option when calling val_print_string.
4955 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4957 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4959 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4960 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4961 (gdb_py_long_as_ulongest): New defines.
4962 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4963 (gdb_py_int_as_long): Declare.
4964 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4965 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4966 (valpy_long): Add comment.
4967 * python/py-utils.c (get_addr_from_python): Use
4968 gdb_py_long_as_ulongest. Handle overflow properly.
4969 (gdb_py_object_from_longest): New function.
4970 (gdb_py_object_from_ulongest): Likewise.
4971 (gdb_py_int_as_long): Likewise.
4972 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4973 * python/py-symtab.c (salpy_get_pc): Use
4974 gdb_py_long_from_ulongest.
4975 (salpy_get_line): Use PyInt_FromLong.
4976 * python/py-param.c (set_parameter_value): Use
4978 * python/py-lazy-string.c (stpy_get_address): Use
4979 gdb_py_long_from_ulongest.
4980 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4981 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4982 * python/py-breakpoint.c (bppy_set_thread): Use
4984 (bppy_set_task): Likewise.
4985 (bppy_set_ignore_count): Likewise.
4986 (bppy_set_hit_count): Likewise.
4987 * python/py-block.c (blpy_get_start): Use
4988 gdb_py_object_from_ulongest.
4989 (blpy_get_end): Likewise.
4990 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4995 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4996 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4997 equality test for objfile, initialize addr_low if needed.
5001 * tui/tui-regs.c (tui_register_format): Remove dead code.
5005 * printcmd.c (print_formatted): Use val_print_scalar_formatted
5006 instead of print_scalar_formatted.
5007 (print_scalar_formatted): Don't handle 's' format strings here,
5008 and add an assertion that we never see such format here.
5009 * valprint.h (val_print_scalar_formatted): Declare.
5010 * valprint.c (val_print_scalar_formatted): New.
5011 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5012 instead of print_scalar_formatted.
5013 * jv-valprint.c (java_val_print): Ditto.
5014 * p-valprint.c (pascal_val_print): Ditto.
5015 * ada-valprint.c (ada_val_print_1): Ditto.
5016 * f-valprint.c (f_val_print): Ditto.
5017 * infcmd.c (registers_info): Ditto.
5018 * m2-valprint.c (m2_val_print): Ditto.
5022 * m2-valprint.c (print_unbounded_array): Pass
5023 value_contents_for_printing rather than value_contents, to
5024 m2_print_array_contents. Also pass in the value.
5028 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5029 (save_gdb_index_command): Switch to .gdb_index version 4.
5033 * mi/mi-main.c (get_register): Use get_frame_register_value rather
5034 than frame_register, and always pass a valid value to val_print.
5038 Centralize printing "<optimized out>".
5040 * valprint.h (val_print_optimized_out): Declare.
5041 * cp-valprint.c (cp_print_value_fields): Use
5042 val_print_optimized_out.
5043 * jv-valprint.c (java_print_value_fields): Ditto.
5044 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5045 * printcmd.c (print_formatted): Ditto.
5046 * valprint.c (valprint_check_validity): Ditto.
5047 (value_check_printable): Ditto.
5048 (val_print_optimized_out): New.
5052 * infcmd.c (default_print_registers_info): Allocate values so to
5053 never pass a NULL value to val_print.
5057 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5058 boolean. Make sure to always pass a value that matches the
5059 contents buffer to callees. Preserve `address' for following
5061 * value.c (value_contents_for_printing_const): New.
5062 (value_address): Constify value argument.
5063 * value.h (value_contents_for_printing_const): Declare.
5064 (value_address): Constify value argument.
5068 * regcache.c (struct regcache_descr): Rename
5069 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5070 and sizeof_cooked_register_valid_p to
5071 sizeof_cooked_register_status.
5072 (init_regcache_descr): Adjust.
5073 (struct regcache): Rename register_valid_p field to
5075 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5076 (do_cooked_read): Adjust.
5077 (regcache_valid_p): Rename to ...
5078 (regcache_register_status): ... this. Adjust.
5079 (regcache_invalidate): Adjust.
5080 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5082 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5083 as unavailable, not valid.
5084 (regcache_dump): Adjust.
5085 * regcache.h (enum register_status): New.
5086 (regcache_register_status): Declare.
5087 (regcache_invalidate): Delete declaration.
5088 * corelow.c (get_core_registers): Adjust.
5089 * tracepoint.c (tfile_fetch_registers): Adjust.
5090 * trad-frame.c (REG_VALUE): Rename to ...
5091 (TF_REG_VALUE): ... this.
5092 (REG_UNKNOWN): Rename to ...
5093 (TF_REG_UNKNOWN): ... this.
5094 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5095 * mi/mi-main.c (register_changed_p): Adjust.
5099 * regcache.c (struct regcache_descr): Remove outdated comment.
5100 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5102 (regcache_xmalloc): Rename to ...
5103 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5104 Allocate the regcache type accordingly.
5105 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5106 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5107 cooked registers, not raw.
5108 (regcache_dup_no_passthrough): Delete.
5109 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5110 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5111 mention obsolete write_register_bytes.
5112 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5116 Stop remote_read_bytes from handling partial reads itself.
5118 * remote-fileio.c: Include target.h.
5119 (remote_fileio_write_bytes): Delete.
5120 (remote_fileio_func_open, remote_fileio_func_write)
5121 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5123 (remote_fileio_func_stat): Use target_read_memory and
5124 target_write_memory.
5125 (remote_fileio_func_gettimeofday): Use target_write_memory.
5126 (remote_fileio_func_system): Use target_read_memory.
5127 * remote.c (remote_write_bytes): Make it static.
5128 (remote_read_bytes): Don't handle partial reads here.
5129 * remote.h (remote_read_bytes): Delete declaration.
5133 Simplify XML parsing a bit.
5135 * xml-support.h (gdb_xml_parse_quick): Declare.
5136 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5137 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5139 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5140 gdb_xml_create_parser_and_cleanup_1.
5141 (gdb_xml_parse_quick): New.
5142 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5143 * osdata.c (osdata_parse): Ditto.
5144 * remote.c (remote_threads_info): Ditto.
5145 * solib-target.c (solib_target_parse_libraries): Ditto.
5146 * xml-syscall.c (syscall_parse_xml): Ditto.
5147 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5151 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5152 with remote-mips.o added to gdb_target_obs.
5153 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5157 * ada-valprint.c (val_print_packed_array_elements): Pass the
5158 correct struct value to val_print.
5159 (ada_val_print_1): Ditto.
5163 Don't lose embedded_offset in printing routines throughout.
5165 * valprint.h (val_print_array_elements): Change prototype.
5166 * valprint.c (val_print_array_elements): Add `embedded_offset'
5167 parameter, and adjust to pass it down to val_print, while passing
5168 `valaddr' or `address' unmodified. Take embedded_offset into
5169 account when checking repetitions.
5170 * c-valprint.c (c_val_print): Pass embedded_offset to
5171 val_print_array_elements instead of adjusting `valaddr' and
5173 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5174 embedded_offset to val_print_array_elements instead of adjusting
5176 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5177 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5178 val_print_array_elements and pascal_object_print_value_fields
5179 instead of adjusting `valaddr'.
5180 (pascal_object_print_value_fields): Add `offset' parameter, and
5182 (pascal_object_print_value): Add `offset' parameter, and adjust to
5184 (pascal_object_print_static_field): Use
5185 value_contents_for_printing/value_embedded_offset, rather than
5187 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5188 parameter, and adjust to use it. Use
5189 value_contents_for_printing/value_embedded_offset, rather than
5191 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5192 (ada_val_print_array): Add `offset' parameter, and adjust to use
5194 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5195 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5196 Instead work with offsets. Use
5197 value_contents_for_printing/value_embedded_offset, rather than
5198 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5199 and use value_from_pointer to extract a target pointer, rather
5200 than value_from_longest.
5201 (print_variant_part): Add `offset' parameter. Replace
5202 `outer_valaddr' parameter by a new `outer_offset' parameter.
5203 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5204 (ada_value_print): Use
5205 value_contents_for_printing/value_embedded_offset, rather than
5207 (print_record): Add `offset' parameter, and adjust to pass it
5209 (print_field_values): Add `offset' parameter. Replace
5210 `outer_valaddr' parameter by a new `outer_offset' parameter.
5211 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5212 Use value_contents_for_printing/value_embedded_offset, rather than
5214 * d-valprint.c (dynamic_array_type): Use
5215 value_contents_for_printing/value_embedded_offset, rather than
5217 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5218 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5219 (java_print_value_fields): Take `offset' into account. Don't
5220 re-adjust `valaddr'. Instead pass down adjusted offsets.
5221 (java_val_print): Take `embedded_offset' into account. Pass it to
5222 java_print_value_fields.
5223 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5224 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5225 down adjusted offsets.
5226 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5227 (f_val_print): Take `embedded_offset' into account.
5231 * inflow.c: Include "gdbcmd.h".
5232 (interactive_mode): New static global, moved here from top.c.
5233 (show_interactive_mode): New function, moved here from top.c.
5234 use gdb_has_a_terminal instead of input_from_terminal_p to
5235 determine the current mode.
5236 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5238 (_initialize_inflow): Add the "set/show interactive-mode"
5239 commands. Moved here from top.c, after having adjusted slightly
5241 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5243 (input_from_terminal_p): Remove handling of "interactive-mode"
5244 setting, moved to infow.c.
5245 (init_main): Remove creation of the "set/show interactive-mode"
5246 commands, moved to inflow.c.
5250 * NEWS: Add entry for native ia64-hpux support.
5255 * thread.c (free_thread): Free 'name'.
5256 (print_thread_info): Emit thread name. Change CLI output.
5257 (thread_name_command): New function.
5258 (do_captured_thread_select): Emit newline.
5259 (_initialize_thread): Register 'thread name' command.
5260 * target.h (struct target_ops) <to_thread_name>: New field.
5261 (target_thread_name): New macro.
5262 * target.c (update_current_target): Handle to_thread_name.
5263 * python/py-infthread.c (thpy_get_name): New function.
5264 (thpy_set_name): Likewise.
5265 (thread_object_getset): Add "name".
5266 * linux-nat.c (linux_nat_thread_name): New function.
5267 (linux_nat_add_target): Set to_thread_name.
5268 * gdbthread.h (struct thread_info) <name>: New field.
5272 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5273 (ada_val_print_1): Likewise.
5277 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5278 upper limit address is not greater than the function end address
5279 when the upper limit could not be computed using the debugging
5284 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5286 * utils.c: Include gdb_regex.h.
5287 (do_regfree_cleanup): New function.
5288 (make_regfree_cleanup): Likewise.
5289 (get_regcomp_error): Likewise.
5290 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5294 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5299 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5300 for internal variables.
5301 (last_was_structop): New static variable.
5302 (COMPLETE): New token.
5303 (field_exp): New rule to group all '.' suffix handling.
5304 Add mark_struct_expression calls when approriate to be able
5305 to correctly find fields for completion.
5306 (yylex): Adapt to handle field completion and set INTVAR when
5311 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5312 save_reggroup, restore_reggroup and all_reggroup.
5316 * ada-valprint. (ada_printchar): Use the correct type length
5317 in call to ada_emit_char.
5318 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5322 * solib-som.h (hpux_major_release): Declare variable here.
5323 * solib-som.c: Remove <sys/utsname.h> header.
5324 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5325 (hpux_major_release): Make global, change default value to
5326 DEFAULT_HPUX_MAJOR_RELEASE.
5327 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5328 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5329 Add "solib-som.h" header.
5330 (set_hpux_major_release): New function.
5331 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5335 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5339 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5340 new-line at end of warning message.
5341 (ia64_hpux_store_register): Remove trailing new-line at end of
5343 * ia64-hpux-tdep.c: Rephrase comment.
5344 * solib-ia64-hpux.c (struct dld_info): Change type of field
5345 dld_flags from "long long" to ULONGEST.
5349 * target.h (deprecated_child_ops): Delete declaration.
5350 * target.c (deprecated_child_ops): Delete definition.
5354 * Makefile.in (hpux-thread.o): Delete rule.
5355 * configure.ac: Don't check for HPUX DCE threads support.
5356 * configure, config.in: Regenerate.
5357 * hppa-hpux-nat.c (child_suppress_run): Delete.
5358 (hppa_hpux_child_can_run): Delete.
5359 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5360 * hpux-thread.c: Delete.
5364 * hpux-thread.c (hpux_pid_to_str): Delete.
5368 * ada-valprint.c (ada_emit_char): Remove strange code.
5369 Check that c is <= UCHAR_MAX before passing it to isascii.
5370 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5374 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5375 to the case where instream is stdin.
5379 * ia64-tdep.h (struct regcache): Forward declare.
5380 (struct ia64_infcall_ops): New struct type.
5381 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5383 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5384 Renames ia64_find_global_pointer.
5385 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5386 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5387 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5389 (ia64_infcall_ops): New static global constant.
5390 (ia64_gdbarch_init): Set tdep->infcall_ops.
5391 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5392 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5393 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5394 (ia64_hpux_dummy_code): New static global constant.
5395 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5396 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5397 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5399 (ia64_hpux_infcall_ops): New static global constant.
5400 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5401 for inferior function calls to work properly on ia64-hpux.
5405 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5406 * ia64-tdep.h (struct frame_info): forward declaration.
5407 (struct gdbarch_tdep): Add field size_of_register_frame.
5408 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5409 to determine the size of the register frame.
5410 (ia64_size_of_register_frame): New function.
5411 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5412 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5413 (IA64_HPUX_UREG_REASON): New macro.
5414 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5416 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5417 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5418 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5423 Add support for ia64-hpux.
5424 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5425 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5427 * configure.host: Add handling for ia64-hpux hosts. Add associated
5429 * configure.tgt: Add handling for ia64-hpux targets.
5430 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5431 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5432 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5436 [ttrace] Compute thread list immediately after attach.
5437 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5439 (inf_ttrace_attach): Use it.
5443 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5444 if we could not determine the frame's function address. Instead,
5445 use the frame's PC, and then continue.
5449 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5450 not already defined.
5454 * ia64-tdep.c (ia64_struct_type_p): New function.
5455 (ia64_extract_return_value): Handle integral values that are
5456 less than 8 bytes long.
5457 (ia64_push_dummy_call): Likewise.
5461 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5462 floatformat_ia64_ext.
5463 (floatformat_ia64_ext_big): New static const.
5464 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5468 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5470 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5471 (mi_cmd_thread_list_ids): Likewise.
5472 (mi_cmd_data_list_changed_registers): Likewise.
5473 (mi_cmd_data_list_register_values): Likewise.
5474 (mi_cmd_data_write_register_values): Likewise.
5475 (mi_cmd_data_evaluate_expression): Likewise.
5476 (mi_cmd_data_read_memory): Likewise.
5477 (mi_cmd_data_read_memory_bytes): Likewise.
5478 (mi_cmd_data_write_memory): Likewise.
5479 (mi_cmd_enable_timings): Likewise.
5480 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5481 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5482 (mi_cmd_var_delete): Likewise.
5483 (mi_cmd_var_set_format): Likewise.
5484 (mi_cmd_var_show_format): Likewise.
5485 (mi_cmd_var_info_num_children): Likewise.
5486 (mi_cmd_var_list_children): Likewise.
5487 (mi_cmd_var_info_type): Likewise.
5488 (mi_cmd_var_info_expression): Likewise.
5489 (mi_cmd_var_show_attributes): Likewise.
5490 (mi_cmd_var_assign): Likewise.
5491 (mi_cmd_var_update): Likewise.
5492 (mi_cmd_enable_pretty_printing): Likewise.
5493 (mi_cmd_var_set_update_range): Likewise.
5494 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5496 (mi_cmd_target_file_put): Likewise.
5497 (mi_cmd_target_file_delete): Likewise.
5498 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5500 (mi_cmd_stack_info_depth): Likewise.
5501 (mi_cmd_stack_list_locals): Likewise.
5502 (mi_cmd_stack_list_args): Likewise.
5503 (mi_cmd_stack_select_frame): Likewise.
5504 (mi_cmd_stack_select_frame): Likewise.
5505 (mi_cmd_stack_info_frame): Likewise.
5506 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5508 (mi_cmd_file_list_exec_source_files): Likewise.
5509 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5510 (mi_cmd_env_cd): Likewise.
5511 (mi_cmd_env_path): Likewise.
5512 (mi_cmd_env_dir): Likewise.
5513 (mi_cmd_inferior_tty_show): Likewise.
5514 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5515 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5516 (mi_cmd_break_watch): Likewise.
5520 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5521 (ppc_linux_insert_hw_breakpoint): Likewise.
5522 (ppc_linux_remove_hw_breakpoint): Likewise.
5523 (ppc_linux_insert_watchpoint): Likewise.
5528 PR fortran/11104 and DWARF unbound arrays detection.
5529 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5530 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5531 unspecified upper bound.
5532 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5533 variables array_size_array, tmp_type and offset_item. New variable
5534 array. Remove call to f77_get_upperbound. New variables array_type
5535 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5536 the final call to deprecated_set_value_type.
5540 Make value allocations more lazy.
5541 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5542 instead of allocate_value and set_value_lazy when possible.
5543 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5544 instead of allocate_value and set_value_lazy.
5545 * findvar.c (value_of_register_lazy): Likewise.
5546 (read_var_value): Remove V preallocation, call just check_typedef in
5547 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5548 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5549 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5550 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5551 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5552 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5553 the end, remove set_value_lazy there.
5554 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5555 instead of allocate_value and set_value_lazy when possible.
5556 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5557 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5558 of allocate_value and set_value_lazy.
5559 (value_from_contents_and_address): Use allocate_value_lazy instead of
5560 allocate_value and set_value_lazy when possible.
5564 * disasm.c (dump_insns): Support dumping opcodes for MI.
5565 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5566 dumping of instruction opcodes.
5570 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5575 * thread.c (do_captured_thread_select): Emit newline before
5580 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5581 * score-tdep.c: Ditto.
5582 * score-tdep.h: Ditto.
5583 * ser-base.c: Ditto.
5584 * ser-go32.c: Ditto.
5587 * ser-mingw.c: Ditto.
5588 * ser-pipe.c: Ditto.
5590 * ser-unix.c: Ditto.
5591 * sh64-tdep.c: Ditto.
5592 * shnbsd-nat.c: Ditto.
5596 * solib-darwin.c: Ditto.
5597 * solib-frv.c: Ditto.
5599 * solib-irix.c: Ditto.
5600 * solib-osf.c: Ditto.
5601 * solib-pa64.c: Ditto.
5602 * solib-som.c: Ditto.
5603 * solib-spu.c: Ditto.
5604 * solib-sunos.c: Ditto.
5605 * solib-svr4.c: Ditto.
5607 * sol-thread.c: Ditto.
5611 * sparc64-linux-tdep.c: Ditto.
5612 * sparc64-tdep.c: Ditto.
5613 * sparc-linux-nat.c: Ditto.
5614 * sparc-linux-tdep.c: Ditto.
5615 * sparc-sol2-nat.c: Ditto.
5616 * sparc-sol2-tdep.c: Ditto.
5617 * sparc-tdep.c: Ditto.
5618 * sparc-tdep.h: Ditto.
5619 * spu-tdep.c: Ditto.
5620 * stabsread.c: Ditto.
5621 * stabsread.h: Ditto.
5629 * target-descriptions.c: Ditto.
5630 * target-descriptions.h: Ditto.
5632 * target-memory.c: Ditto.
5633 * terminal.h: Ditto.
5636 * tracepoint.c: Ditto.
5637 * tracepoint.h: Ditto.
5638 * trad-frame.h: Ditto.
5639 * typeprint.c: Ditto.
5643 * ui-file.c: Comment cleanup, mostly periods and spaces.
5648 * v850-tdep.c: Ditto.
5649 * valarith.c: Ditto.
5651 * valprint.c: Ditto.
5652 * valprint.h: Ditto.
5657 * vax-tdep.c: Ditto.
5661 * windows-nat.c: Ditto.
5662 * windows-tdep.c: Ditto.
5663 * xcoffread.c: Ditto.
5664 * xcoffsolib.c: Ditto.
5665 * xml-support.c: Ditto.
5666 * xstormy16-tdep.c: Ditto.
5667 * xtensa-tdep.c: Ditto.
5668 * xtensa-tdep.h: Ditto.
5672 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5673 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5678 Implement support for PowerPC BookE ranged watchpoints.
5680 (struct breakpoint_ops) <resources_needed>: New method.
5681 Initialize to NULL in all existing breakpoint_ops instances.
5682 (struct breakpoint) <exact>: New field.
5683 (target_exact_watchpoints): Declare external global.
5684 * breakpoint.c (target_exact_watchpoints): New global flag.
5685 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5686 b->enable_state to bp_enabled before calling
5687 hw_watchpoint_used_count.
5688 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5689 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5691 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5692 if the watchpoint is exact.
5693 (resources_needed_watchpoint): New function.
5694 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5695 (watch_command_1): Set b->exact if the user asked for an exact
5696 watchpoint and one can be set.
5697 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5698 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5699 the user asks for an exact watchpoint and one can be set. Return
5700 number of needed debug registers to watch the expression.
5701 * gdbtypes.c (is_scalar_type): New function, based on
5702 valprint.c:scalar_type_p.
5703 (is_scalar_type_recursive): New function.
5704 * gdbtypes.h (is_scalar_type_recursive): Declare.
5705 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5706 handle regions when ranged watchpoints are available.
5707 (create_watchpoint_request): New function.
5708 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5709 create_watchpoint_request.
5710 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5711 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5712 `set powerpc' and `show powerpc' commands.
5713 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5714 Mention documentation comment in the target macro.
5715 (target_region_ok_for_hw_watchpoint): Document return value.
5719 * breakpoint.c (update_watchpoint): Decide on using a software or
5720 hardware watchpoint after the bp_locations are created.
5724 Convert hardware watchpoints to use breakpoint_ops.
5725 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5726 <insert_location>: ... this. Return int instead of void.
5727 Accept pointer to struct bp_location instead of pointer to
5728 struct breakpoint. Adapt all implementations.
5729 (breakpoint_ops) <remove>: Rename to...
5730 <remove_location>: ... this. Accept pointer to struct bp_location
5731 instead of pointer to struct breakpoint. Adapt all implementations.
5732 * breakpoint.c (insert_catchpoint): Delete function.
5733 (insert_bp_location): Call the watchpoint or catchpoint's
5734 breakpoint_ops.insert method.
5735 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5736 breakpoint_ops.remove method.
5737 (insert_watchpoint, remove_watchpoint): New functions.
5738 (watchpoint_breakpoint_ops): New structure.
5739 (watch_command_1): Initialize the OPS field.
5740 * inf-child.c (inf_child_insert_fork_catchpoint)
5741 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5742 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5743 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5745 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5746 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5747 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5748 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5749 * target.c (update_current_target): Change default implementation of
5750 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5751 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5752 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5753 to_set_syscall_catchpoint to return_one.
5754 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5755 (debug_to_insert_exec_catchpoint): Report return value.
5756 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5757 (to_insert_exec_catchpoint): Change declaration to return int instead
5762 * arm-tdep.c: Internationalization.
5765 * fork-child.c: Ditto.
5766 * nto-procfs.c: Ditto.
5767 * ppc-sysv-tdep.c: Ditto.
5769 * remote-mips.c: Ditto.
5771 * rs6000-nat.c: Ditto.
5772 * rs6000-tdep.c: Ditto.
5776 * xml-support.c: Ditto.
5777 * mi/mi-cmd-break.c: Ditto.
5778 * mi/mi-cmd-var.c: Ditto.
5779 * mi/mi-interp.c: Ditto.
5780 * mi/mi-main.c: Ditto.
5784 * remote-sim.c (gdbsim_store_register): Update API to
5785 sim_store_register to check more error conditions.
5789 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5790 * nto-tdep.c: Ditto.
5791 * nto-tdep.h: Ditto.
5792 * objc-exp.y: Ditto.
5793 * objc-lang.c: Ditto.
5794 * objfiles.c: Ditto.
5795 * objfiles.h: Ditto.
5796 * observer.c: Ditto.
5797 * opencl-lang.c: Ditto.
5800 * parser-defs.h: Ditto.
5803 * posix-hdep.c: Ditto.
5804 * ppcbug-rom.c: Ditto.
5805 * ppc-linux-nat.c: Ditto.
5806 * ppc-linux-tdep.c: Ditto.
5807 * ppc-linux-tdep.h: Ditto.
5808 * ppcnbsd-tdep.c: Ditto.
5809 * ppcobsd-tdep.c: Ditto.
5810 * ppcobsd-tdep.h: Ditto.
5811 * ppc-sysv-tdep.c: Ditto.
5812 * ppc-tdep.h: Ditto.
5813 * printcmd.c: Ditto.
5814 * proc-abi.c: Ditto.
5815 * proc-flags.c: Ditto.
5817 * proc-utils.h: Ditto.
5818 * progspace.h: Ditto.
5819 * prologue-value.c: Ditto.
5820 * prologue-value.h: Ditto.
5821 * psympriv.h: Ditto.
5823 * p-typeprint.c: Ditto.
5824 * p-valprint.c: Ditto.
5825 * ravenscar-sparc-thread.c: Ditto.
5826 * ravenscar-thread.c: Ditto.
5827 * ravenscar-thread.h: Ditto.
5829 * regcache.c: Ditto.
5830 * regcache.h: Ditto.
5832 * remote-fileio.c: Ditto.
5833 * remote-fileio.h: Ditto.
5835 * remote-m32r-sdi.c: Ditto.
5836 * remote-mips.c: Ditto.
5837 * remote-sim.c: Ditto.
5838 * rs6000-aix-tdep.c: Ditto.
5839 * rs6000-nat.c: Ditto.
5840 * rs6000-tdep.c: Ditto.
5844 * charset.c (validate): Internationalization.
5845 * coffread.c (read_one_sym): Ditto.
5846 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5847 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5848 * inflow.c (new_tty): Ditto.
5849 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5850 * m32c-tdep.c (m32c_return_value): Ditto.
5851 * mep-tdep.c (mep_store_return_value): Ditto.
5852 * score-tdep.c (score7_fetch_insn): Ditto.
5853 * ser-mingw.c (pipe_windows_open): Ditto.
5854 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5855 * spu-tdep.c (spu_register_type): Ditto.
5856 * tracepoint.c (trace_find_command): Ditto.
5857 * valarith.c (value_pos): Ditto.
5861 * ada-valprint.c (printstr): Minor comment reformatting.
5865 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5870 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5871 * hppa-hpux-tdep.c: Ditto.
5872 * hppa-linux-nat.c: Ditto.
5873 * hppa-linux-tdep.c: Ditto.
5874 * hppanbsd-tdep.c: Ditto.
5875 * hppa-tdep.c: Ditto.
5876 * hppa-tdep.h: Ditto.
5877 * hpux-thread.c: Ditto.
5878 * i386-cygwin-tdep.c: Ditto.
5879 * i386-darwin-nat.c: Ditto.
5880 * i386gnu-nat.c: Ditto.
5881 * i386-linux-nat.c: Ditto.
5882 * i386-linux-tdep.c: Ditto.
5883 * i386-nat.c: Ditto.
5884 * i386-nat.h: Ditto.
5885 * i386nbsd-tdep.c: Ditto.
5886 * i386-sol2-nat.c: Ditto.
5887 * i386-stub.c: Ditto.
5888 * i386-tdep.c: Ditto.
5889 * i386-tdep.h: Ditto.
5890 * i387-tdep.c: Ditto.
5891 * ia64-linux-nat.c: Ditto.
5892 * ia64-linux-tdep.c: Ditto.
5893 * ia64-tdep.c: Ditto.
5897 * inferior.c: Ditto.
5898 * inferior.h: Ditto.
5904 * iq2000-tdep.c: Ditto.
5905 * irix5-nat.c: Ditto.
5911 * jv-typeprint.c: Ditto.
5912 * jv-valprint.c: Ditto.
5913 * language.c: Ditto.
5914 * language.h: Ditto.
5915 * linespec.c: Ditto.
5916 * linux-fork.c: Ditto.
5917 * linux-nat.c: Ditto.
5918 * linux-thread-db.c: Ditto.
5919 * lm32-tdep.c: Ditto.
5923 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5925 * m2-typeprint.c: Ditto.
5926 * m2-valprint.c: Ditto.
5927 * m32c-tdep.c: Ditto.
5928 * m32r-linux-nat.c: Ditto.
5929 * m32r-rom.c: Ditto.
5930 * m32r-tdep.c: Ditto.
5931 * m32r-tdep.h: Ditto.
5932 * m68hc11-tdep.c: Ditto.
5933 * m58klinux-nat.c: Ditto.
5934 * m68k-tdep.c: Ditto.
5935 * m88k-tdep.c: Ditto.
5936 * m88k-tdep.h: Ditto.
5937 * machoread.c: Ditto.
5938 * macrocmd.c: Ditto.
5939 * macroexp.c: Ditto.
5940 * macrotab.c: Ditto.
5943 * mdebugread.c: Ditto.
5944 * mdebugread.h: Ditto.
5947 * memory-map.h: Ditto.
5948 * mep-tdep.c: Ditto.
5949 * microblaze-rom.c: Ditto.
5950 * microblaze-tdep.c: Ditto.
5952 * mips-irix-tdep.c: Ditto.
5953 * mips-linux-nat.c: Ditto.
5954 * mips-linux-tdep.c: Ditto.
5955 * mips-linux-tdep.h: Ditto.
5956 * mipsnbsd-nat.c: Ditto.
5957 * mipsnbsd-tdep.c: Ditto.
5958 * mipsread.c: Ditto.
5959 * mips-tdep.c: Ditto.
5960 * mips-tdep.h: Ditto.
5961 * mn10300-linux-tdep.c: Ditto.
5962 * mn10300-tdep.c: Ditto.
5963 * mn10300-tdep.h: Ditto.
5966 * moxie-tdep.c: Ditto.
5967 * moxie-tdep.h: Ditto.
5972 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5976 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5980 * charset.c (_initialize_charset): Fix typo in string.
5984 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5986 * tui/tui-layout.c (tui_set_layout_for_display_command):
5987 Split line so that operator goes to beginning of line.
5988 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5989 assignment out of if statement.
5993 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5994 * ada-lang.h: Ditto.
5995 * ada-tasks.c: Ditto.
5996 * ada-valprint.c: Ditto.
5997 * aix-threads.c: Ditto.
5998 * alpha-linux-nat.c: Ditto.
5999 * alpha-linux-tdep.c: Ditto.
6000 * alpha-mdebug-tdep.c: Ditto.
6001 * alpha-nat.c: Ditto.
6002 * alpha-osf1-tdep.c: Ditto.
6003 * alpha-tdep.c: Ditto.
6004 * alphabsd-nat.c: Ditto.
6005 * alphabsd-tdep.c: Ditto.
6006 * amd64-darwin-tdep.c: Ditto.
6007 * amd64-linux-nat.c: Ditto.
6008 * amd64-linux-tdep.c: Ditto.
6009 * amd64-sol2-tdep.c: Ditto.
6010 * amd64-tdep.c: Ditto.
6011 * amd64-fbsd-tdep.c: Ditto.
6012 * amd64-nbsd-tdep.c: Ditto.
6013 * amd64-obsd-tdep.c: Ditto.
6014 * amd64-linux-nat.c: Ditto.
6015 * amd64-linux-tdep.c: Ditto.
6016 * arm-tdep.c: Ditto.
6017 * arm-tdep.h: Ditto.
6018 * armnbsd-nat.c: Ditto.
6019 * avr-tdep.c: Ditto.
6020 * bfin-tdep.c: Ditto.
6022 * c-typeprintc: Ditto.
6023 * c-valprint.c: Ditto.
6024 * coff-pe-read.h: Ditto.
6025 * coffreead.c: Ditto.
6026 * cris-tdep.c: Ditto.
6028 * darwin-nat-info.c: Ditto.
6029 * darwin-nat.c: Ditto.
6030 * dbug-rom.c: Ditto.
6034 * dec-thread.c: Ditto.
6036 * demangle.c: Ditto.
6037 * dicos-tdep.c: Ditto.
6038 * dictionary.c: Ditto.
6039 * dictionary.h: Ditto.
6040 * dink32-rom.c: Ditto.
6042 * doublest.c: Ditto.
6044 * dummy-frame.c: Ditto.
6045 * dwarf2-frame.c: Ditto.
6046 * dwarf2expr.c: Ditto.
6047 * dwarf2loc.c: Ditto.
6048 * dwarf2read.c: Ditto.
6052 * event-top.h: Ditto.
6053 * exceptions.c: Ditto.
6054 * exceptions.h: Ditto.
6056 * expprint.c: Ditto.
6057 * expression.h: Ditto.
6061 * f-typeprint.c: Ditto.
6062 * f-valprint.c: Ditto.
6063 * fbsd-nat.c: Ditto.
6065 * fork-child.c: Ditto.
6068 * frv-linux-tdep.c: Ditto.
6069 * frv-tdep.c: Ditto.
6071 * gdb-stabs.h: Ditto.
6072 * gdb_assert.h: Ditto.
6073 * gdb_string.h: Ditto.
6074 * gdb_thread_db.h: Ditto.
6075 * gdb_wait.h: Ditto.
6076 * gdbarch.sh: Ditto.
6078 * gdbthread.h: Ditto.
6079 * gdbtypes.c: Ditto.
6080 * gdbtypes.h: Ditto.
6083 * gnu-v2-abi.c: Ditto.
6084 * gnu-v3-abi.c: Ditto.
6085 * go32-nat.c: Ditto.
6086 * gdbarch.c: Regenerate.
6087 * gdbarch.h: Regenerate.
6091 * ax-gdb.c: Adjust some long output strings.
6092 * breakpoint.c: Ditto.
6097 * linux-nat.c: Ditto.
6098 * solib-pa64.c: Ditto.
6099 * solib-som.c: Ditto.
6105 * python/python.c (GdbMethods): Add "newest_frame" method.
6106 * python/python-internal.h (gdbpy_newest_frame): Declare.
6107 * python/py-frame.c (gdbpy_newest_frame): New function.
6111 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6112 * jit.c (jit_debug): New variable.
6113 (show_jit_debug): New function.
6114 (struct target_buffer): Use ULONGEST.
6115 (bfd_open_from_target_memory): Likewise.
6116 (jit_register_code, jit_inferior_init): Add debug output.
6117 (_initialize_jit): Register "debug jit" command.
6121 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6122 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6127 * python/py-frame.c (frapy_block): Use get_frame_block.
6131 Do not stop on SIGPRIO signals by default
6132 * infrun.c (_initialize_infrun): Unset signal_stop and
6133 signal_print for TARGET_SIGNAL_PRIO.
6137 * ada-tasks.c: Fix style violation in comment.
6141 * linespec.c (decode_compound, find_method): Remove trailing \n
6142 at end of error string.
6143 * solib-irix.c (irix_current_sos): Likewise.
6144 * varobj.c (uninstall_variable): Likewise.
6148 * copyright.py: New script.
6149 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6150 Launch emacs without exec'ing. Call copyright.py afterwards.
6154 * addrmap.c: Shorten lines of >= 80 columns.
6155 * arch-utils.c: Ditto.
6156 * arch-utils.h: Ditto.
6158 * ax-general.c: Ditto.
6160 * blockframe.c: Ditto.
6161 * breakpoint.c: Ditto.
6162 * buildsym.c: Ditto.
6164 * c-typeprint.c: Ditto.
6166 * coffread.c: Ditto.
6170 * cp-namespace.c: Ditto.
6171 * cp-support.c: Ditto.
6172 * dbug-rom.c: Ditto.
6177 * dictionary.c: Ditto.
6179 * doublest.c: Ditto.
6180 * dwarf2-frame.c: Ditto.
6181 * dwarf2expr.c: Ditto.
6182 * dwarf2loc.c: Ditto.
6183 * dwarf2read.c: Ditto.
6186 * event-loop.c: Ditto.
6187 * event-loop.h: Ditto.
6188 * exceptions.h: Ditto.
6190 * expprint.c: Ditto.
6191 * expression.h: Ditto.
6193 * f-valprint.c: Ditto.
6195 * frame-base.c: Ditto.
6196 * frame-unwind.c: Ditto.
6197 * frame-unwind.h: Ditto.
6201 * gdb-stabs.h: Ditto.
6202 * gdb_assert.h: Ditto.
6203 * gdb_dirent.h: Ditto.
6204 * gdb_obstack.h: Ditto.
6206 * gdbtypes.c: Ditto.
6207 * gdbtypes.h: Ditto.
6208 * inf-ttrace.c: Ditto.
6213 * inline-frame.h: Ditto.
6214 * language.c: Ditto.
6215 * language.h: Ditto.
6216 * libunwind-frame.c: Ditto.
6217 * libunwind-frame.h: Ditto.
6218 * linespec.c: Ditto.
6219 * linux-nat.c: Ditto.
6220 * linux-nat.h: Ditto.
6221 * linux-thread-db.c: Ditto.
6222 * machoread.c: Ditto.
6223 * macroexp.c: Ditto.
6224 * macrotab.c: Ditto.
6227 * mdebugread.c: Ditto.
6232 * objfiles.c: Ditto.
6233 * objfiles.h: Ditto.
6235 * p-typeprint.c: Ditto.
6236 * p-valprint.c: Ditto.
6238 * printcmd.c: Ditto.
6239 * proc-events.c: Ditto.
6241 * progspace.c: Ditto.
6242 * progspace.h: Ditto.
6243 * psympriv.h: Ditto.
6246 * regcache.c: Ditto.
6247 * regcache.h: Ditto.
6248 * remote-fileio.c: Ditto.
6250 * ser-mingw.c: Ditto.
6252 * ser-unix.c: Ditto.
6255 * solib-frv.c: Ditto.
6256 * solib-irix.c: Ditto.
6257 * solib-osf.c: Ditto.
6258 * solib-pa64.c: Ditto.
6259 * solib-som.c: Ditto.
6260 * solib-sunos.c: Ditto.
6261 * solib-svr4.c: Ditto.
6262 * solib-target.c: Ditto.
6266 * stabsread.c: Ditto.
6267 * stabsread.c: Ditto.
6270 * symfile-mem.c: Ditto.
6276 * target-descriptions.c: Ditto.
6277 * target-memory.c: Ditto.
6280 * terminal.h: Ditto.
6283 * tracepoint.c: Ditto.
6284 * tracepoint.h: Ditto.
6288 * user-regs.c: Ditto.
6289 * user-regs.h: Ditto.
6291 * valarith.c: Ditto.
6293 * valprint.c: Ditto.
6294 * valprint.h: Ditto.
6299 * xcoffread.c: Ditto.
6300 * xcoffsolib.c: Ditto.
6301 * xcoffsolib.h: Ditto.
6302 * xml-syscall.c: Ditto.
6303 * xml-tdesc.c: Ditto.
6307 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6308 * cli/cli-decode.c: Ditto.
6309 * cli/cli-dump.c: Ditto.
6310 * cli/cli-logging.c: Ditto.
6311 * cli/cli-script.c: Ditto.
6312 * cli/cli-setshow.c: Ditto.
6313 * common/signals.c: Ditto.
6314 * mi/mi-cmd-break.c: Ditto.
6315 * mi/mi-cmd-disas.c: Ditto.
6316 * mi/mi-cmd-stack.c: Ditto.
6317 * mi/mi-cmd-var.c: Ditto.
6318 * mi/mi-cmds.c: Ditto.
6319 * mi/mi-common.h: Ditto.
6320 * mi/mi-console.c: Ditto.
6321 * mi/mi-interp.c: Ditto.
6322 * mi/mi-main.c: Ditto.
6323 * osf-share/cma_attr.c: Ditto.
6324 * osf-share/cma_deb_core.h: Ditto.
6325 * osf-share/cma_debug_client.h: Ditto.
6326 * osf-share/cma_handle.h: Ditto.
6327 * osf-share/cma_mutex.h: Ditto.
6328 * osf-share/cma_stack_int.h: Ditto.
6329 * osf-share/cma_tcb_defs.h: Ditto.
6330 * python/py-auto-load.c: Ditto.
6331 * python/py-breakpoint.c: Ditto.
6332 * python/py-cmd.c: Ditto.
6333 * python/py-frame.c: Ditto.
6334 * python/py-objfile.c: Ditto.
6335 * python/py-param.c: Ditto.
6336 * python/py-progspace.c: Ditto.
6337 * python/py-symbol.c: Ditto.
6338 * python/py-value.c: Ditto.
6339 * python/python-internal.h: Ditto.
6340 * python/python.c: Ditto.
6341 * tui/tui-data.c: Ditto.
6342 * tui/tui-disasm.c: Ditto.
6343 * tui/tui-hooks.c: Ditto.
6344 * tui/tui-io.c: Ditto.
6345 * tui/tui-layout.c: Ditto.
6346 * tui/tui-regs.c: Ditto.
6347 * tui/tui-source.c: Ditto.
6348 * tui/tui-stack.c: Ditto.
6349 * tui/tui-win.c: Ditto.
6350 * tui/tui-windata.c: Ditto.
6351 * tui/tui-winsource.c: Ditto.
6355 * configure.ac, gdb.1: Copyright year update.
6359 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6360 this_pc_in_block, morestack_msym and morestack_name. Check for
6361 "__morestack" minimal symbol there.
6365 * symfile.c (find_sym_fns): Add call to dont_repeat.
6369 Copyright year update in most files (performed by copyright.sh).
6373 * top.c (print_gdb_version): Update copyright year in version output.
6375 For older changes see ChangeLog-2010.
6381 version-control: never