3 * symfile.h (struct dwarf2_section_names): New type.
4 (struct dwarf2_debug_sections): New type.
5 (dwarf2_has_info): Add parameter.
6 * dwarf2read.c (dwarf2_elf_names): New variable.
7 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
8 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
9 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
10 (dwarf2_has_info): Add names parameter. Pass names
11 to dwarf2_locate_sections.
12 (section_is_p): Rewrite using the names parameter.
13 (dwarf2_locate_sections): Use section names from the names parameter.
14 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
15 * elfread.c (read_psyms): Ditto.
16 * machoread.c (macho_symfile_read): Ditto.
21 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
26 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
27 (decode_compound): Unconditionally call keep_name_info.
31 * breakpoint.c (watchpoint_check): If the watchpoint went out of
32 scope, clear its command list.
33 (map_breakpoint_numbers): Don't walk the related breakpoints list
38 * MAINTAINERS: Move Jim Blandy to past maintainers.
42 * symfile.h (enum dwarf2_section_enum): New type.
43 (dwarf2_get_section_info): New prototype.
44 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
45 section_name by sect. Use a switch to select the info.
46 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
47 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
51 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
52 shared library event breakpoint if there's no execution.
56 * breakpont.c (remove_hw_watchpoints): Remove unused function.
57 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
61 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
66 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
67 entry for RuntimeError to doc string.
71 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
72 sequence for probing loops.
76 * infrun.c (user_visible_resume_ptid): Fix typos in describing
81 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
82 zero as the value for %g0 in the register cache.
83 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
84 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
88 * infrun.c (proceed): Set previous_inferior_ptid here.
89 (init_wait_for_inferior): Initialize previous_inferior_ptid from
90 inferior_ptid, not null_ptid.
91 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
92 (fetch_inferior_event): Nor here.
96 * inf-loop.c (inferior_event_handler): Only output a message if
101 * MAINTAINERS: Update my e-mail address.
105 * infrun.c (proceed): Switch the inferior event loop to
106 INF_EXEC_COMPLETE if the target refused to resume from a
111 * infcmd.c: Include "inf-loop.h".
112 (step_once): When stepping into an inline subroutine, pretend the
113 target has run. If the target can async, switch the inferior
114 event loop to INF_EXEC_COMPLETE.
115 * inferior.h (user_visible_resume_ptid): Declare.
116 * infrun.c (user_visible_resume_ptid): New function, factored out
119 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
120 that the current thread is running. Merge async and sync
125 * infcmd.c (step_1): Simplify synchronous case.
129 * tracepoint.c: Include exceptions.h.
130 (TFILE_PID): Move higher in file.
131 (tfile_open): Delay pushing the tfile target until we're assured
132 the tfile header is present in the file. Wrap reading the initial
133 newline-terminated lines in TRY_CATCH. Pop the target if the
134 initial setup failed. Add the tfile's thread immediately
135 aftwards, before any non-essential setup. Don't skip
136 post_create_inferior if there are no traceframes present in the
138 (tfile_close): Remove redundant check for null before xfree call.
139 (tfile_thread_alive): New function.
140 (init_tfile_ops): Register it as to_thread_alive callback.
144 * tracepoint.c (tfile_open): Delete #if 0'd code.
148 Fix -readnow for -gdwarf-4 unused type units.
149 * dwarf2read.c (struct signatured_type): Remove the field offset.
150 (create_signatured_type_table_from_index): Remove its initialization.
151 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
152 instead. Add a complaint call.
153 (process_psymtab_comp_unit): Change assignment to gdb_assert.
154 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
155 (lookup_signatured_type_at_offset, read_signatured_type)
156 (write_one_signatured_type): Update the field for per_cu.
160 * python/py-inferior.c (python_inferior_exit): Use
162 (python_on_resume): Likewise.
166 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
170 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
174 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
178 * dwarf2read.c (dwarf2_add_field): Constify.
179 * value.c (value_static_field): Constify.
180 * gdbtypes.h (struct main_type) <field.field_location.physname>:
182 * ax-gdb.c (gen_static_field): Constify
186 * linux-nat.c (kill_callback): Use SIGKILL first.
190 * ada-lang.c (print_it_exception): Avoid use of sprintf.
194 * value.c (value_fn_field): Constify.
195 * symtab.c (gdb_mangle_name): Constify.
196 * stabsread.c (update_method_name_from_physname): Make 'physname'
198 * p-typeprint.c (pascal_type_print_method_args): Make arguments
199 const. Use explicit fputc_filtered loop.
200 (pascal_type_print_base): Constify.
201 * p-lang.h (pascal_type_print_method_args): Update.
202 * linespec.c (add_matching_methods): Constify.
203 (add_constructors): Likewise.
204 * jv-typeprint.c (java_type_print_base): Constify.
205 * gdbtypes.h (struct cplus_struct_type)
206 <fn_fieldlist.fn_field.physname>: Now const.
207 * dwarf2read.c (compute_delayed_physnames): Constify.
208 (dwarf2_add_member_fn): Likewise.
209 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
213 * infrun.c (resume): Mention which is the current thread, and its
214 current PC in debug output.
215 (prepare_to_proceed): Mention the thread switching in debug
220 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
221 path check. Use xmalloc and cleanups.
222 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
226 * cp-valprint.c (cp_print_value_fields): Catch errors from
231 * dwarf2read.c (dwarf2_get_die_type): Call
232 get_die_type_at_offset.
233 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
234 get_base_type function.
238 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
243 * python/py-auto-load.c (source_section_scripts): Mention objfile
248 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
249 (try_thread_db_load_from_pdir): Call it. If unable to find
250 libthread_db in directory of libpthread, see if we're looking at
251 the separate-debug-info copy.
253 * python/py-autoload.c (print_script): Print "Missing" instead of
254 "No" for missing scripts.
255 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
259 * ui-file.c (stdio_file_write_async_safe): Add comment.
263 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
267 Support $pdir and $sdir in libthread-db-search-path.
268 * NEWS: Mention $sdir,$pdir.
269 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
270 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
271 (try_thread_db_load_from_sdir): New function.
272 (try_thread_db_load_from_dir): New function.
273 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
274 system directories if search of libthread-db-search-path fails,
275 that is now done via $sdir.
276 (has_libpthread): New function.
277 (thread_db_load): Remove search for libthread_db in directory of
278 libpthread, that is now done via $pdir.
280 * NEWS: Mention "info auto-load-scripts".
281 * python/py-auto-load.c (struct auto_load_pspace_info): New member
282 script_not_found_warning_printed.
283 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
284 all callers updated. Initialize script_not_found_warning_printed.
285 (get_auto_load_pspace_data_for_loading): New function.
286 (maybe_add_script): New function.
287 (source_section_scripts): Simplify. Only print one warning regardless
288 of the number of auto-load scripts not found.
289 (clear_section_scripts): Clear script_not_found_warning_printed.
290 (auto_load_objfile_script): Record script in hash table.
291 (count_matching_scripts): New function.
292 (maybe_print_script): Renamed from maybe_print_section_script, all
293 callers updated. Rewrite to use ui_out_*.
294 (info_auto_load_scripts): Renamed from
295 maintenance_print_section_scripts, all callers updated.
296 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
297 renamed as "info auto-load-scripts".
301 * dwarf2expr.c (read_uleb128): Cast intermediate result.
302 (read_sleb128): Likewise.
306 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
311 * linux-nat.c (debug_linux_nat_async): Delete.
312 Replace all references to use debug_linux_nat instead.
313 (show_debug_linux_nat_async): Delete.
314 (sigchld_handler): Call ui_file_write_async_safe instead of
316 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
317 * ui-file.c (struct ui_file): New member to_write_async_safe.
318 (null_file_write_async_safe): New function.
319 (ui_file_write_async_safe): New function.
320 (set_ui_file_write_async_safe): New function.
321 (ui_file_new): Initialize to_write_async_safe.
322 (stdio_file_write_async_safe): New function.
323 (struct stdio_file): New member fd.
324 (stdio_file_new): Initialize to_write_async_safe, fd.
325 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
327 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
328 (set_ui_file_write_async_safe): Declare.
329 (ui_file_write_async_safe): Declare.
333 * utils.c (do_value_free): New function.
334 (make_cleanup_value_free): Likewise.
335 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
337 (dwarf2_loc_desc_needs_frame): Call
338 make_cleanup_value_free_to_mark.
339 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
340 * dwarf2expr.c (free_dwarf_expr_context): Don't call
342 (new_dwarf_expr_context): Don't call value_mark.
343 * dwarf2-frame.c (execute_stack_op): Call
344 make_cleanup_value_free_to_mark.
345 * defs.h (make_cleanup_value_free): Declare.
349 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
350 prepare_execute_command.
351 * top.c (prepare_execute_command): Return cleanup.
352 (execute_command): Use cleanup from prepare_execute_command.
353 * top.h (prepare_execute_command): Change prototype to return
355 * defs.h (struct value): Add opaque declaration.
356 (make_cleanup_value_free_to_mark): Add prototype.
357 * utils.c (do_value_free_to_mark): New function.
358 (make_cleanup_value_free_to_mark): Likewise.
362 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
363 cast left-hand-side to unsigned.
368 * value.h (value_from_contents): Declare.
369 * value.c (value_from_contents): New function.
370 * dwarf2read.c (dwarf_stack_op_name): Add new values.
371 (dwarf2_get_die_type): New function.
372 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
373 (allocate_piece_closure): Acquire reference to values.
374 (read_pieced_value): Update for value-based expressions.
375 (write_pieced_value): Likewise.
376 (free_pieced_value_closure): Call value_free as needed.
377 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
378 Update for value-based expressions.
379 * dwarf2loc.h (dwarf2_get_die_type): Declare.
380 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
381 <get_base_type>: New field.
382 (struct dwarf_expr_piece) <v.value>: Change type.
383 <v.regno>: New field.
384 (struct dwarf_expr_context) <mark>: New field.
385 (dwarf_expr_piece, dwarf_expr_fetch): Update.
386 (dwarf_expr_pop, dwarf_expr_push): Remove.
387 (dwarf_expr_push_address): Declare.
388 * dwarf2expr.c (dwarf_arch_cookie): New global.
389 (struct dwarf_gdbarch_types): New.
390 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
392 (dwarf_expr_push): Change type of 'value' argument. Update. Now
394 (dwarf_expr_push_address): New function.
395 (dwarf_expr_pop): Now static.
396 (dwarf_expr_fetch): Change return type.
397 (dwarf_require_integral): New function.
398 (dwarf_expr_fetch): Simplify.
400 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
402 (execute_stack_op) <sign_ext>: Remove.
403 Use values for DWARF stack.
404 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
405 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
407 (_initialize_dwarf2expr): New function.
409 (new_dwarf_expr_context): Set new field.
410 (free_dwarf_expr_context): Call value_free_to_mark.
411 * dwarf2-frame.c (no_base_type): New function.
412 (execute_stack_op): Set get_base_type field. Update.
416 * dwarf2read.c (read_common_block): Fix formatting.
420 * breakpoint.c (disable_breakpoint): Disable all locations
421 associated with a tracepoint on target if a trace experiment is
423 (disable_command): Disable a specific tracepoint location on target if
424 a trace experiment is running.
425 (do_enable_breakpoint): Enable all locations associated with a
426 tracepoint on target if a trace experiment is running.
427 (enable_command) Enable a specific tracepoint location on target if a
428 trace experiment is running.
429 * target.c (update_current_target): Add INHERIT and de_fault clauses for
430 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
431 to_disable_tracepoint.
432 * target.h: Add declaration of struct bp_location.
433 (struct target_ops): Add new functions
434 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
435 to_disable_tracepoint to target operations.
436 (target_supports_enable_disable_tracepoint): New macro.
437 (target_enable_tracepoint): New macro.
438 (target_disable_tracepoint): New macro.
439 * remote.c (struct remote_state): Add new field.
440 (remote_enable_disable_tracepoint_feature): New.
441 (remote_protocol_features): Add new entry.
442 (remote_supports_enable_disable_tracepoint): New.
443 (remote_enable_tracepoint): New.
444 (remote_disable_tracepoint): New.
445 (init_remote_ops): Add remote_enable_tracepoint,
446 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
447 to remote operations.
448 * tracepoint.c (start_tracing): Allow tracing to start without any
449 tracepoints enabled with just a warning if they can be re-enabled
451 * NEWS: Add news item for the new behaviour of the enable and disable
452 GDB commands when applied to tracepoints.
453 Add news items for the new remote packets QTEnable and QTDisable.
457 * config.in: Regenerate.
458 * configure: Regenerate.
459 * configure.ac <--with-system-readline> (for readline_echoing_p):
461 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
462 (tui_old_rl_echoing_p): ... here.
463 (tui_setup_io): Rename extern declaration readline_echoing_p to
464 _rl_echoing_p. Adjust assignments for the both renames.
468 * symtab.c (lookup_symtab): Run cleanup before returning.
472 * dwarf2read.c (handle_data_member_location): New function.
473 (dwarf2_add_field): Use it.
474 (read_common_block): Likewise.
478 Make addrs->SECTINDEX always defined.
479 * symfile.c (relative_addr_info_to_section_offsets): Check for
480 SECTINDEX -1, not for zero ADDR.
481 (addrs_section_compar): Remove checking for invalid SECTINDEX.
482 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
483 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
488 * linux-thread-db.c: Whitespace cleanup.
489 (try_thread_db_load_1): Fix comment.
491 * linux-thread-db.c (set_libthread_db_search_path): New function.
492 (_initialize_thread_db): Add setter for libthread-db-search-path.
496 * NEWS: Mention --with-iconv-bin.
497 * configure.ac: New option --with-iconv-bin.
498 * configure: Regenerate.
499 * config.in: Regenerate.
500 * defs.h (relocate_gdb_directory): Declare.
501 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
502 removed progname parameter, and exported. All callers updated.
503 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
505 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
506 adding missing call to restore_child_signals_mask.
510 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
512 * infrun.c (proceed, start_remote): Adjust.
513 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
514 and adjust to not handle it.
515 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
516 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
517 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
518 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
519 * windows-nat.c (do_initial_windows_stuff): Adjust.
520 * infcmd.c (attach_command): Adjust.
521 (notice_new_inferior): Adjust.
525 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
526 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
527 * spu-tdep.c (op_selb): Use correct value.
531 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
532 "parent" parameter to symbol_file_add_from_bfd call.
537 Implement support for PowerPC BookE masked watchpoints.
538 * NEWS: Mention masked watchpoint support. Create "Changed commands"
540 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
541 method. Initialize to NULL in all existing breakpoint_ops instances.
542 (struct breakpoint) <hw_wp_mask>: New field.
543 * breakpoint.c (is_masked_watchpoint): Add prototype.
544 (update_watchpoint): Don't set b->val for masked watchpoints. Call
545 breakpoint's breakpoint_ops.works_in_software_mode if available.
546 (watchpoints_triggered): Handle the case of a hardware masked
548 (watchpoint_check): Likewise.
549 (works_in_software_mode_watchpoint): New function.
550 (insert_masked_watchpoint, remove_masked_watchpoint)
551 (resources_needed_masked_watchpoint)
552 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
553 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
554 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
556 (masked_watchpoint_breakpoint_ops): New structure.
557 (watch_command_1): Check for the existence of the `mask' parameter.
558 Set b->ops according to the type of hardware watchpoint being created.
559 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
560 (ppc_linux_remove_mask_watchpoint)
561 (ppc_linux_masked_watch_num_registers): New functions.
562 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
563 to_remove_mask_watchpoint and to_masked_watch_num_registers.
564 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
565 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
566 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
567 (target_masked_watch_num_registers): New functions.
568 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
569 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
571 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
572 (target_masked_watch_num_registers): Add prototypes.
577 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
578 (producer_is_gcc_ge_4_0): New function.
579 (process_full_comp_unit): Set also symtab->locations_valid. Move the
580 symtab->language code.
581 (var_decode_location): Set cu->has_loclist.
582 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
583 skip. Intialize force_skip from locations_valid. Move the prologue
584 skipping code into two passes.
585 * symtab.h (struct symtab): Make the primary field a bitfield. New
586 field locations_valid.
590 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
591 (classify_inner_name): Call cp_lookup_nested_type with
593 * cp-namespace.c (cp_lookup_nested_type): New variable
594 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
595 type_name_no_tag_or_error with saved_parent_type.
596 * dwarf2read.c (load_partial_dies): Read in any children of
597 DW_TAG_typedef with complaint in such case.
598 * gdbtypes.c (type_name_no_tag_or_error): New function.
599 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
600 * valops.c (destructor_name_p): New comment for parameter type. Remove
601 type const. Make dname and cp const. Call type_name_no_tag_or_error.
602 * value.h (destructor_name_p): Remove type const.
606 * symtab.c (compare_symbol_name): New function.
607 (completion_list_add_name, expand_partial_symbol_name): Call it,
608 remove the variable ncmp.
609 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
614 Demote to sw watchpoint only in update_watchpoint.
615 * breakpoint.c (update_watchpoint): Change between software and
616 hardware watchpoint for all kinds of watchpoints, not just
617 read/write ones. Determine b->exact value here instead of
618 in watch_command_1. Error out if there are not enough resources
619 for a read or access hardware watchpoint.
620 (watch_command_1): Remove logic of checking whether there are
621 enough resources available, since update_watchpoint will do that
622 work now. Don't set b->exact here. Catch exceptions thrown by
623 update_watchpoint and delete the watchpoint.
624 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
625 Use target_exact_watchpoints instead.
626 (delete_breakpoint): Notify observers only if deleted watchpoint
627 has a breakpoint number assigned to it.
631 * MAINTAINERS: Add myself as a write-after-approval maintainer.
635 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
637 (i386_stack_tramp_frame_unwind): New static global.
638 (i386_match_pattern): New function, extracted from i386_match_insn.
639 (i386_match_insn): Use i386_match_pattern.
640 (i386_match_insn_block): New function.
641 (i386_tramp_chain_in_reg_insns)
642 (i386_tramp_chain_on_stack_insns): New static variables.
643 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
648 * configure.host (xscale*): Don't handle target.
649 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
654 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
660 | * elfread.c (elf_symtab_read): Stop memory leak.
664 * nto-tdep.c (nto_target): Replace deprecated call to
665 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
669 Fix false GCC warning.
670 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
674 * breakpoint.c (update_watchpoint): Move code to change
675 the enable state of breakpoint from here ...
676 (do_enable_breakpoint): ... to here.
680 * valprint.c (val_print_array_elements): Fixed poor performance
681 of printing very large arrays with repeat_count_threshold set
682 to unlimited. New comment.
686 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
687 (mi_parse): Likewise.
688 * breakpoint.c (break_range_command): Use sizeof char*, not
690 (create_breakpoint): Likewise.
691 (parse_breakpoint_sals): Likewise.
695 * linux-nat.c (linux_child_remove_fork_catchpoint)
696 (linux_child_remove_vfork_catchpoint)
697 (linux_child_remove_exec_catchpoint): New functions.
698 (linux_target_install_ops): Install them.
704 * varobj.c (install_default_visualizer): Do not install a
705 visualizer if the varobj is CPLUS_FAKE_CHILD.
706 (construct_visualizer): Likewise.
710 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
711 case insensitive comparison.
715 * infrun.c (proceed): Revert previous change.
716 (resume): Instead, handle the case of signal delivery while stepping
717 off a breakpoint location here, and only if software single-stepping
718 is used. Handle nested signals.
722 * arm-tdep.c (copy_unmodified): Rename to ...
723 (arm_copy_unmodified): .. this. New.
724 (copy_preload): Move common part to ...
725 (install_preload): .. this. New.
726 (arm_copy_preload): New.
727 (copy_preload_reg): Move common part to ...
728 (install_preload_reg): ... this. New.
729 (arm_copy_preload_reg): New.
730 (copy_b_bl_blx): Move common part to ...
731 (install_b_bl_blx): .. this. New.
732 (arm_copy_b_bl_blx): New.
733 (copy_bx_blx_reg): Move common part to ...
734 (install_bx_blx_reg): ... this. New.
735 (arm_copy_bx_blx_reg): New.
736 (copy_alu_reg): Move common part to ...
737 (install_alu_reg): ... this. New.
738 (arm_copy_alu_reg): New.
739 (copy_alu_shifted_reg): Move common part to ...
740 (install_alu_shifted_reg): ... this. New.
741 (copy_ldr_str_ldrb_strb): Move common part to ...
742 (install_ldr_str_ldrb_strb): ... this. New.
743 (arm_copy_ldr_str_ldrb_strb): New.
744 (copy_copro_load_store): Move some common part to ...
745 (install_copy_copro_load_store): ... this. New.
746 (arm_copy_copro_load_store): New.
748 (arm_copy_svc): Renamed from copy_svc.
749 (copy_undef): Delete.
750 (arm_copy_undef): Renamed from copy_undef.
751 (decode_ext_reg_ld_st): Delete.
752 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
753 (decode_svc_copro): Delete.
754 (arm_decode_svc_copro): Renamed from decode_svc_copro.
755 (copy_copro_load_store, copy_alu_imm): update callers.
756 (copy_extra_ld_st, copy_block_xfer): Likewise.
757 (decode_misc_memhint_neon, decode_unconditional): Likewise.
758 (decode_miscellaneous, decode_dp_misc): Likewise.
759 (decode_ld_st_word_ubyte, decode_media): Likewise.
760 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
761 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
762 (decode_unconditional, decode_miscellaneous): Likewise.
763 (decode_media, decode_b_bl_ldmstm): Likewise.
764 (arm_process_displaced_insn): Likewise..
765 (decode_misc_memhint_neon): Delete.
766 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
767 (decode_miscellaneous): Delete.
768 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
769 (decode_dp_misc): Delete.
770 (arm_decode_dp_misc): Renamed from decode_dp_misc.
771 (decode_ld_st_word_ubyte): Delete.
772 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
773 (decode_media): Delete.
774 (arm_decode_media): Renamed from decode_media.
775 (decode_b_bl_ldmstm): Delete.
776 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
777 (decode_ext_reg_ld_st): Delete.
778 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
779 (decode_unconditional): Delete.
780 (arm_decode_unconditional): Renamed from decode_unconditional.
784 Case insensitive lookups implementation.
785 * dwarf2read.c: Include ctype.h.
786 (struct mapped_index): New field version.
787 (mapped_index_string_hash): New parameter index_version. New comment
788 for it. Call tolower appropriately.
789 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
790 Choose the right index version for mapped_index_string_hash.
791 (dwarf2_read_index): Support also the index version 5. Initialize the
792 new struct mapped_index field version.
793 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
794 (find_slot): Explain the version needs. Pass INT_MAX for the new
796 (write_psymtabs_to_index): Produce version 5.
797 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
798 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
799 * psymtab.c (lookup_partial_symbol): Find the
800 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
802 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
804 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
805 (completion_list_add_name): New variable ncmp, initialize it, use it.
806 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
807 * utils.c (strcmp_iw): Support case_sensitive_off.
808 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
809 New function comment part. New variables saved_string1,
810 saved_string2 and case_pass. Add a proper second pass.
814 Replace re_comp/re_exec by regcomp/regexec.
815 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
816 (search_symbols_name_matches): Use them, use regexec.
817 (search_symbols): New variable retval_chain, adjust the use of
818 old_chain against it. Replace re_comp by regcomp. Use the new struct
819 search_symbols_data fields, use regexec instead of re_exec.
823 Format the code for the next patch.
824 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
825 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
826 New variables c1 and c2.
830 * infrun.c (proceed): Do not single-step into signal delivery
831 when stepping off a breakpoint location.
832 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
833 (insert_step_resume_breakpoint_at_caller): Likewise.
834 (insert_step_resume_breakpoint_at_sal): Likewise.
835 (insert_longjmp_resume_breakpoint): Likewise.
839 * common/linux-ptrace.h: Remove include <sys/wait.h>.
843 * procfs.c (procfs_pass_signals): Fix advance declaration.
847 * target.h (struct target_ops): Remove to_notice_signals;
849 (target_notice_signals): Remove.
850 (target_pass_signals): Add prototype.
851 * target.c (update_current_target): Remove to_notice_signals;
852 mention to_pass_signals.
853 (target_pass_signals): New function.
854 (debug_to_notice_signals): Remove.
855 (setup_target_debug): Do not install debug_to_notice_signals.
857 * infrun.c (signal_pass): New global.
858 (resume): Call target_pass_signals.
859 (handle_inferior_event): Report all signals while stepping over
860 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
861 are re-inserted when stepping over a signal handler.
862 (signal_cache_update): New function.
863 (signal_stop_update): Call it.
864 (signal_print_update): Likewise.
865 (signal_pass_update): Likewise.
866 (handle_command): Call signal_cache_update and target_pass_signals
867 instead of target_notice_signals.
868 (_initialize_infrun): Initialize signal_pass.
870 * linux-nat.c (pass_mask): New global.
871 (linux_nat_pass_signals): New function.
872 (linux_nat_create_inferior): Report all signals initially.
873 (linux_nat_attach): Likewise.
874 (linux_nat_resume): Use pass_mask to decide whether to directly
875 handle an inferior signal.
876 (linux_nat_wait_1): Likewise.
877 (linux_nat_add_target): Install to_pass_signals callback.
879 * nto-procfs.c (notice_signals): Remove.
880 (procfs_resume): Do not call notice_signals.
881 (procfs_notice_signals): Remove.
882 (procfs_pass_signals): New function.
883 (init_procfs_ops): Install to_pass_signals callback instead of
884 to_notice_signals callback.
885 (_initialize_procfs): Report all signals initially.
887 * procfs.c (procfs_notice_signals): Remove.
888 (procfs_pass_signals): New function.
889 (procfs_target): Install to_pass_signals callback instead of
890 to_notice_signals callback.
891 (register_gdb_signals): Remove.
892 (procfs_debug_inferior): Report all signals initially.
893 (procfs_init_inferior): Remove redundant register_gdb_signals call.
895 * remote.c (remote_pass_signals): Add numsigs and pass_signals
896 parameters; use them instead of calling signal_..._state routines.
897 (remote_notice_signals): Remove.
898 (remote_start_remote): Report all signals initially.
899 (remote_resume): Do not call remote_pass_signals.
900 (_initialize_remote): Install to_pass_signals callback instead of
901 to_notice_signals callback.
905 * breakpoint.c (user_settable_breakpoint): Delete.
906 (user_breakpoint_p): Remove check on user_settable_breakpoint.
907 (delete_command): Check user_breakpoint_p instead of looking at
908 the breakpoint's type.
909 (disable_command): Ditto.
910 (enable_command): Ditto.
911 (delete_trace_command): Use user_breakpoint_p instead of looking
912 at the breakpoint number directly. When checking if there are
913 user visible tracepoints, in order to know whether to ask the user
914 for confirmation, check whether the breakpoint is actually a
919 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
924 MI breakpoint notifications.
926 * annotate.c (breakpoint_changed): Adjust parameter type.
927 * breakpoint.c (set_breakpoint_condition): Adjust to change
928 in breakpoint_modified type.
929 (breakpoint_set_commands): Likewise.
930 (do_map_commands_command): Likewise.
931 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
932 changed after bumping hit count.
933 (bpstat_stop_status): Likewise.
934 (print_one_breakpoint_location): Don't wrap in tuple here.
935 (print_one_breakpoint): Always print individual locations.
936 For locations, use unnamed tuple.
937 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
939 (create_catchpoint, create_syscall_event_catchpoint): Call
940 breakpoint_created obsever.
941 (mention): Don't call breakpoint_created observer.
942 (create_breakpoint_sal): Call breakpoint_created observer.
943 (create_breakpoint, watch_command_1): Likewise.
944 (create_ada_exception_breakpoint): Likewise.
945 (delete_breakpoint): Call breakpoint_deleted breakpoint.
946 (locations_are_equal): New.
947 (update_breakpoint_locations): If locations were changed, notify.
948 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
949 Call breakpoint_modified observer.
951 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
952 (mi_cmd_break_insert): Don't set observers for modify and delete.
953 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
954 (mi_breakpoint_created, mi_breakpoint_deleted)
955 (mi_breakpoint_modified): New.
956 (mi_interpreter_init): Hook the above.
957 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
958 while -break-* commands are executing.
959 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
960 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
962 (mi_ui_out_impl): Hook in mi_redirect.
963 (mi_field_skip): True to the name, skip the field, don't output
964 a field with an empty value.
966 * python/py-breakpoint.c (gdbpy_breakpoint_created)
967 (gdbpy_breakpoint_deleted): Adjust.
968 * tui/tui-hooks.c (tui_event_create_breakpoint)
969 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
973 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
974 (procfs_remove_hw_watchpoint): Likewise.
978 * remote.c (remote_start_remote): Ack packet after sending the
983 * linux-nat.c: Move common macros to ...
984 Include linux-ptrace.h.
985 * common/linux-ptrace.h: ... here. New.
989 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
990 !objfile_has_partial_symbols. New comment.
991 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
992 SYM_READ_PSYMBOLS is not present. Extend the comment.
993 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
997 * defs.h (ENUM_BITFIELD): Remove.
1002 * NEWS: Document the new gdbserver --once option.
1006 * MAINTAINERS: Update my email address.
1010 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1011 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1012 function call if __STDC_ISO_10646__ macro is defined.
1013 (intermediate_encoding): New prototype.
1014 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1015 to generate compile time error for unsupported gdb_wchar_t size.
1016 (ENDIAN_SUFFIX): New macro.
1017 (intermediate_encoding): New function.
1021 * ada-lang.c (struct add_partial_datum): Update the comment for
1022 expand_partial_symbol_name.
1023 (ada_add_partial_symbol_completions): Rename to ...
1024 (ada_expand_partial_symbol_name): ... here, change return type, update
1025 function comment, call symbol_completion_match instead of
1026 symbol_completion_add.
1027 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1028 and ada_expand_partial_symbol_name.
1029 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1031 (dw2_map_symbol_names): Remove.
1032 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1033 * psymtab.c (map_symbol_names_psymtab): Remove.
1034 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1035 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1037 (psym_functions): Unlist map_symbol_names_psymtab.
1038 (map_partial_symbol_names): Rename to ...
1039 (expand_partial_symbol_names): ... here, change the FUN type, call
1040 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1041 * psymtab.h (map_partial_symbol_names): Rename to ...
1042 (expand_partial_symbol_names): ... here, change the FUN type.
1043 * symfile.h (struct quick_symbol_functions): Update the description of
1044 expand_symtabs_matching. Remove map_symbol_names.
1045 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1046 (struct add_name_data): Update the comment for
1047 expand_partial_symbol_name.
1048 (add_partial_symbol_name): Rename to ...
1049 (expand_partial_symbol_name): ... here. Replace
1050 completion_list_add_name call by strncmp.
1051 (default_make_symbol_completion_list_break_on): Use now
1052 expand_partial_symbol_names and expand_partial_symbol_name.
1053 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1057 * dwarf2read.c (save_gdb_index_command): Replace format
1058 documentation with a pointer to the manual.
1062 * regcache.c: Include remote.h.
1063 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1064 (regcache_dump): Handle regcache_dump_remote.
1065 (maintenance_print_remote_registers): New function.
1066 (_initialize_regcache): Install "maint print remote-registers"
1068 * remote.c (map_regcache_remote_table): New function, factored out
1070 (init_remote_state): ... here.
1071 (remote_register_number_and_offset): New.
1072 * remote.h (remote_register_number_and_offset): Declare.
1076 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1077 null_ptid, assume and allow a NULL address space, instead of
1078 asking the target for the ptid's address space.
1079 * infrun.c (ptid_is_pid): Remove assertion.
1083 * windows-tdep.c (windows_xfer_shared_library):
1084 * windows-nat.c (get_module_name, windows_make_so):
1085 * v850-tdep.c (v850_handle_pushm):
1086 * utils.c (null_cleanup, gdb_realpath):
1087 * ui-out.c (get_next_header):
1088 * tracepoint.c (clear_traceframe_info):
1089 * symtab.c (lookup_symtab):
1090 * serial.h (struct serial_ops):
1091 * mipsread.c (read_alphacoff_dynamic_symtab):
1092 * infcmd.c (print_return_value):
1093 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1094 * f-exp.y (parse_number):
1095 * exceptions.c (catch_exceptions):
1096 * dummy-frame.c (dummy_frame_this_id):
1097 * defs.h (struct cleanup):
1098 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1099 * arm-tdep.c (arm_push_dummy_call):
1100 * amd64-tdep.h (amd64_collect_xsave):
1101 * amd64-tdep.c (amd64_collect_xsave):
1102 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1103 * README (typing): Remove duplicate words.
1104 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1105 * infrun.c (siginfo_value_read): Fix typo.
1106 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1107 * top.c (source_line_number): Add comma.
1111 * thread.c (any_live_thread_of_process): Prioritize threads
1112 that are not executing.
1113 * gdbthread.h (any_live_thread_of_process): Update comment
1114 as per above change.
1118 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1119 (scan_xcoff_symtab): Likewise.
1123 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1129 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1130 variables to simplify code and avoid == operator at end of
1131 line as this is against GNU coding standards.
1135 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1136 lm_name to name_lm to avoid conflict with lm_name function.
1140 ARI fixes: Use only lowercase function name for static functions.
1141 * nto-tdep.c (LM_ADDR): Rename to...
1142 (lm_addr): New function name.
1143 (nto_relocate_section_addresses): Adapt to change above.
1144 * solib-sunos.c (LM_ADDR): Rename to...
1145 (lm_addr): New function name.
1146 (LM_NEXT): Rename to...
1147 (lm_next): New function name.
1148 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1149 function name changes above.
1150 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1151 (lm_addr_from_link_map): New function name.
1152 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1153 (has_lm_dynamic_from_link_map): New function name.
1154 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1155 (lm_dynamic_from_link_map): New function name.
1156 (LM_ADDR_CHECK): Rename to...
1157 (lm_addr_check): New function name.
1158 (LM_NEXT): Rename to...
1159 (lm_next): New function name.
1160 (LM_PREV): Rename to...
1161 (lm_prev): New function name.
1162 (LM_NAME): Rename to...
1163 (lm_name): New function name.
1164 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1165 (ignore_first_link_map_entry): New function name.
1166 (svr4_keep_data_in_core): Adapt to function name changes above.
1167 (svr4_current_sos): Likewise.
1168 (enable_break): Likewise.
1169 (svr4_relocate_section_addresses): Likewise.
1174 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1175 sprintf. Simplify code and avoid loosing memory.
1176 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1177 (call0_frame_cache): Remove && operator from end of line.
1181 Fix libraries displacement if they change whether they were prelinked.
1182 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1183 does not match. Comment why.
1187 * corelow.c: Include wrapper.h.
1188 (core_open): Call now gdb_target_find_new_threads.
1189 * wrapper.c: Include target.h.
1190 (gdb_target_find_new_threads): New.
1191 * wrapper.h (gdb_target_find_new_threads): New declaration.
1195 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1196 even if !TARGET_HAS_EXECUTION.
1200 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1201 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1202 bfd_get_synthetic_symtab.
1203 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1204 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1205 parameter parent, remove the call to add_separate_debug_objfile.
1206 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1207 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1208 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1209 parent, new comment for it, call add_separate_debug_objfile for it.
1210 (symbol_file_add_separate): Pass objfile as the parameter parent,
1211 remove the call to add_separate_debug_objfile.
1212 (symbol_file_add_from_bfd): New parameter parent, pass it.
1213 (symbol_file_add): Pass NULL to the new parameter parent.
1214 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1218 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1223 Fix Python access to inlined frames.
1224 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1225 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1229 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1233 * MAINTAINERS: Add myself to write-after-approval section.
1237 * remote-sim.c (sim_command_completer): New function.
1238 (_initialize_remote_sim): Set completer to sim_command_completer.
1242 * breakpoint.c (print_exception_catchpoint): Rename to ...
1243 (print_it_exception_catchpoint): ... this.
1244 (gnu_v3_exception_catchpoint_ops): Update with new name
1245 for print_it_exception_catchpoint.
1249 * MAINTAINERS: Add myself for write after approval privileges.
1253 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1257 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1261 * breakpoint.c (save_breakpoints): Verify whether
1262 breakpoint_ops.print_recreate is defined before calling it.
1266 Fix failure with --enable-maintainer-mode.
1267 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1272 * symtab.c (search_symbols): Reorder the KIND description in the
1273 function comment. Remove the unused 4th element of types, types2,
1274 types3 and types4. New gdb_assert on KIND.
1275 (symtab_symbol_info): Remove the unused 4th element of classnames.
1276 New gdb_assert on KIND.
1277 * symtab.h (enum search_domain): New warning in the enum comment.
1278 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1283 Fix crash of gdb save-index on a STABS file.
1284 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1289 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1290 * dwarf2read.c: Include ctype.h.
1291 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1293 (dwarf2_add_field): Fix new_field->accessibility by calling
1294 dwarf2_default_access_attribute. Restructure setting accessibility
1296 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1297 is_private and is_protected by calling
1298 dwarf2_default_access_attribute.
1302 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1303 to the initialization.
1307 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1312 Remove support for old Cygwin 1.5 versions.
1313 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1314 function on old Cygwin version.
1315 * windows-nat.c: Remove cygwin version check and always define
1316 __USEWIDE for Cygwin compilation.
1320 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1322 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1323 (arm_copy_svc): Remove parameters INSN and TO.
1324 (decode_svc_copro): Update caller.
1325 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1326 from function pointer `copy_svc_os'.
1330 * arm-tdep.c (cleanup_branch): Set a correct return address in
1331 LR for ARM and Thumb.
1336 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1337 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1338 in the function comment, a new note on values compatibility.
1339 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1340 * symtab.h (SYMBOL_HASH_NEXT): New.
1344 * ppc-linux-nat.c (check_condition): Add len output parameter.
1345 Set it based on the memory region referenced in the condition
1346 expression. Update all callers.
1350 Fix crash regression on systems featuring .gdb_index.
1351 * objfiles.c (free_objfile): Move the
1352 forget_cached_source_info_for_objfile call earlier. Comment it.
1353 Extend the comment for objfile_free_data.
1357 Fix regression of displaying the debug format.
1358 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1363 * cli/cli-interp.c (struct captured_execute_command_args):
1365 (do_captured_execute_command): Remove.
1366 (safe_execute_command): Use TRY_CATCH.
1367 * cli/cli-script.c (struct wrapped_read_command_file_args):
1369 (wrapped_read_command_file): Remove.
1370 (script_from_file): Use TRY_CATCH.
1371 * exceptions.c (catch_exception): Remove.
1372 * exceptions.h (catch_exception): Remove.
1373 (deprecated_throw_reason): Update comment.
1374 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1375 argument to 'context'.
1376 (mi_execute_command): Use TRY_CATCH.
1377 * remote.c (struct start_remote_args): Remove.
1378 (remote_start_remote): Update; change arguments.
1379 (remote_open_1): Use TRY_CATCH.
1383 * tracepoint.c (scope_info): Update.
1384 * symtab.c (decode_line_spec): Update.
1385 * python/python.c (gdbpy_decode_line): Update.
1386 * linespec.h (decode_line_1): Update.
1387 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1388 (decode_compound, find_method, symtab_from_filename)
1389 (decode_variable): Likewise.
1390 * cli/cli-cmds.c (edit_command): Update.
1391 (list_command): Update.
1392 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1394 (create_breakpoint): Update.
1395 (until_break_command): Update.
1396 (addr_string_to_sals): Update.
1397 (decode_line_spec_1): Update.
1401 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1402 (do_captured_parse_breakpoint): Remove.
1403 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1404 Use TRY_CATCH directly.
1408 * symtab.h (free_symtab): Remove.
1409 (forget_cached_source_info_for_objfile): Declare.
1410 * symmisc.c (free_symtab): Remove.
1411 * source.c (forget_cached_source_info_for_objfile): New function.
1412 (forget_cached_source_info): Use it.
1413 * objfiles.c (free_objfile): Simplify check before calling
1414 clear_current_source_symtab_and_line. Call
1415 forget_cached_source_info_for_objfile.
1419 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1420 (new_symtab): Don't set `free_code' on symtab.
1421 (new_linetable): Properly handle size==0.
1422 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1423 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1425 * jv-lang.c (struct jv_per_objfile_data): New.
1426 (jv_per_objfile_free): Free the data.
1427 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1428 (get_java_class_symtab): Set the `dict' field on the
1429 jv_per_objfile_data.
1430 (free_class_block): Remove.
1431 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1436 * symfile.c (reread_symbols): Update.
1437 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1439 * objfiles.c (allocate_objfile): Update.
1440 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1442 * cp-namespace.c (lookup_symbol_file): Don't call
1443 lookup_possible_namespace_symbol.
1444 (initialize_namespace_symtab, get_possible_namespace_block)
1445 (free_namespace_block, cp_check_possible_namespace_symbols)
1446 (check_possible_namespace_symbols_loop)
1447 (check_one_possible_namespace_symbol)
1448 (lookup_possible_namespace_symbol): Remove.
1449 (maintenance_cplus_namespace): Replace with notice.
1450 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1454 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1455 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1456 * symmisc.c (free_symtab): Don't free debugformat.
1457 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1458 (record_debugformat, record_producer): Document.
1459 * buildsym.c (end_symtab): Don't save debugformat and producer
1461 (end_symtab): Don't free debugformat and producer fields.
1462 (record_debugformat): Don't call xstrdup.
1463 (record_producer): Likewise.
1467 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1468 (source_line_charpos, source_charpos_line): Remove.
1472 * symtab.h (domain_enum): Split in two...
1473 (enum search_domain): New.
1474 (search_symbols): Update.
1475 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1476 redundant declarations.
1477 (search_symbols): Change 'kind' argument to search_domain.
1479 (print_symbol_info): Likewise.
1480 (symtab_symbol_info): Likewise.
1481 * symfile.h (struct quick_symbol_functions)
1482 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1483 <expand_symtabs_matching>: Likewise.
1484 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1485 (expand_symtabs_matching_via_partial): Update.
1486 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1487 (dw2_expand_symtabs_for_function): Update.
1488 * block.h: Moved anonymous enum...
1489 * defs.h (enum block_enum): ... here. Now named.
1493 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1494 * version.in: Bump version to 7.3.50.20110403-cvs.
1498 * NEWS: Create a new section for the next release branch.
1499 Rename the section of the current branch, now that it has
1504 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1505 for "fpscr" in target description.
1509 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1510 initialize it. Delay HASH initialization. Strip the part after open
1511 parenthesis for languages with qualifiers. Call do_cleanups.
1515 * utils.c (report_command_stats): Don't print `-' for negative
1520 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1521 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1526 * breakpoint.h (bpdisp_text): Add declaration.
1527 * breakpoint.c (bpdisp_text): Make non-static.
1528 * ada-lang.c: #include "mi/mi-common.h".
1529 (print_it_exception): Rewrite to improve GDB/MI output.
1533 * arm-tdep.h (struct address_space): Add forward declaration.
1537 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1538 * arm-tdep.c (arm_override_mode): New global.
1539 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1540 execution mode heuristics.
1541 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1542 second single-step breakpoint if needed, using
1543 arm_insert_single_step_breakpoint.
1544 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1545 ARM execution mode, do not call thumb_get_next_pc_raw.
1546 (arm_get_next_pc): Encode execution mode in return value. Call
1547 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1548 (arm_insert_single_step_breakpoint): New function.
1549 (arm_software_single_step): Call it.
1550 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1551 argument to return execution mode of sigreturn target.
1552 (arm_linux_syscall_next_pc): Use it.
1553 (arm_linux_copy_svc): Update call.
1554 (arm_linux_software_single_step): Call
1555 arm_insert_single_step_breakpoint.
1559 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1564 * varobj.c (update_dynamic_varobj_children): Properly handle
1565 errors from iterator.
1569 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1570 struct linkage name twice.
1574 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1575 missing ">" to message.
1579 * varobj.c (instantiate_pretty_printer): Remove duplicate
1584 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1585 if neither saved value nor register available (e.g. signal frame).
1589 * macroexp.c (expand): Avoid uninitialized variable
1594 * breakpoint.c (break_range_command): Fix typo in comment.
1599 Implement support for PowerPC BookE ranged breakpoints.
1600 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1601 * breakpoint.h (struct bp_target_info) <length>: New member
1603 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1604 instead of struct breakpoint as argument, and also add ASPACE
1605 and BP_ADDR arguments. Update all callers.
1606 (struct breakpoint_ops) <print_one_detail>: New method.
1607 (struct breakpoint) <addr_string_range_end>: New member variable.
1608 * breakpoint.c (breakpoint_location_address_match): Add function
1610 (insert_bp_location): Set bl->target_info.length.
1611 (breakpoint_here_p): Call breakpoint_location_address_match.
1612 (moribund_breakpoint_here_p): Likewise.
1613 (regular_breakpoint_inserted_here_p): Likewise.
1614 (breakpoint_thread_match): Likewise.
1615 (bpstat_stop_status): Likewise.
1616 (bpstat_check_location): Move call to
1617 breakpoint_ops.breakpoint_hit to the top.
1618 (print_one_breakpoint_location): Call
1619 breakpoint_ops.print_one_detail if available.
1620 (breakpoint_address_match_range): New function.
1621 (breakpoint_location_address_match): Likewise.
1622 (breakpoint_locations_match): Compare the length field of the
1624 (hw_breakpoint_used_count): Count resources used by all locations
1625 in a breakpoint, and use breakpoint_ops.resources_needed if
1627 (breakpoint_hit_ranged_breakpoint): New function.
1628 (resources_needed_ranged_breakpoint): Likewise.
1629 (print_it_ranged_breakpoint): Likewise.
1630 (print_one_ranged_breakpoint): Likewise.
1631 (print_one_detail_ranged_breakpoint): Likewise.
1632 (print_mention_ranged_breakpoint): Likewise.
1633 (print_recreate_ranged_breakpoint): Likewise.
1634 (ranged_breakpoint_ops): New structure.
1635 (find_breakpoint_range_end): New function.
1636 (break_range_command): Likewise.
1637 (delete_breakpoint): Free addr_string_range_end.
1638 (update_breakpoint_locations): Add SALS_END argument. Update
1639 all callers. Calculate breakpoint length if a non-zero SALS_END
1640 is given. Call breakpoint_locations_match instead of
1641 breakpoint_address_match.
1642 (reset_breakpoint): Find SaL of the end of the range if B is a
1644 (_initialize_breakpoint): Register break-range command.
1645 * defs.h (print_core_address): Add function prototype.
1646 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1648 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1649 (ppc_linux_remove_hw_breakpoint): Likewise.
1650 (_initialize_ppc_linux_nat): Initialize
1651 to_ranged_break_num_registers.
1652 * target.c (update_current_target): Add comment about
1653 to_ranged_break_num_registers.
1654 (target_ranged_break_num_registers): New function.
1655 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1657 (target_ranged_break_num_registers): Add function prototype.
1658 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1659 * utils.c (print_core_address): ... here.
1663 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1664 variable compiler warning.
1668 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1670 (re_set_breakpoint): ... to here ...
1671 (addr_string_to_sals): ... and here.
1675 * Makefile.in (SFILES): Add missing C sources.
1676 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1677 Add missing headers.
1681 * .gitignore: New file.
1685 * NEWS: Mention new cfi device simulation.
1689 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1690 otherwise anonymous types.
1691 (dwarf2_name): Likewise.
1692 * valops.c (value_struct_elt_for_reference): Refine artificial
1693 type logic. Call error if j==-1.
1697 Fix false GCC warning.
1698 * infcall.c (find_function_addr): Initialize funaddr.
1702 Fix mingw compilation with --enable-targets=all.
1703 * remote-mips.c (gdb_usleep.h): Include header.
1704 (mips_enter_debug): Use gdb_usleep instead of sleep.
1708 Support resolution of STT_GNU_IFUNC via breakpoints.
1709 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1710 bp_gnu_ifunc_resolver_return.
1711 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1712 the loop. Support bp_gnu_ifunc_resolver and
1713 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1714 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1716 (bptype_string, print_one_breakpoint_location): Support
1717 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1718 (user_settable_breakpoint): Return true also for
1719 bp_gnu_ifunc_resolver.
1720 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1721 bp_gnu_ifunc_resolver_return.
1722 (set_breakpoint_location_function): New parameter explicit_loc,
1723 describe it. Call find_pc_partial_function_gnu_ifunc with new
1724 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1725 EXPLICIT_LOC is not set.
1726 (set_raw_breakpoint): Set EXPLICIT_LOC for
1727 set_breakpoint_location_function.
1728 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1729 set_breakpoint_location_function.
1730 (mention): Support bp_gnu_ifunc_resolver and
1731 bp_gnu_ifunc_resolver_return.
1732 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1733 set_breakpoint_location_function.
1734 (update_breakpoint_locations): Remove static.
1735 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1736 bp_gnu_ifunc_resolver_return.
1737 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1738 bp_gnu_ifunc_resolver_return.
1739 (update_breakpoint_locations): New declaration.
1740 * elfread.c: Include gdbthread.h and regcache.h.
1741 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1743 (elf_gnu_ifunc_fns): Install them.
1744 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1745 (stub_gnu_ifunc_resolver_return_stop): New functions.
1746 (stub_gnu_ifunc_fns): Install them.
1747 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1748 and gnu_ifunc_resolver_return_stop.
1749 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1753 STT_GNU_IFUNC reader implementation.
1754 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1755 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1756 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1757 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1758 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1759 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1760 (elf_gnu_ifunc_resolve_addr): New.
1761 (elf_symfile_read): Call elf_rel_plt_read.
1762 (elf_gnu_ifunc_fns): New.
1763 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1764 Install elf_gnu_ifunc_fns.
1765 * infcall.c (find_function_return_type): New function.
1766 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1767 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1768 (stub_gnu_ifunc_resolve_name): New functions.
1769 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1770 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1771 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1775 Code cleanup for later STT_GNU_IFUNC support.
1776 * infcall.c (find_function_addr): Remove variable code, use explicit
1777 dereferences for it. Move VALUE_TYPE initialization later.
1781 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1782 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1783 (clear_pc_function_cache): Clear it.
1784 (find_pc_partial_function): Rename to ...
1785 (find_pc_partial_function_gnu_ifunc): ... this function. New
1786 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1787 (find_pc_partial_function): New wrapper for this function.
1788 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1792 GDB internal type support for STT_GNU_IFUNC.
1793 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1794 (elf_symtab_read): Set mst_text_gnu_ifunc for
1795 BSF_GNU_INDIRECT_FUNCTION.
1796 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1797 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1798 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1799 nodebug_got_plt_symbol.
1800 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1801 (TYPE_GNU_IFUNC): New.
1802 (struct main_type): New field flag_gnu_ifunc.
1803 (struct builtin_type): New field builtin_func_func.
1804 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1805 nodebug_got_plt_symbol.
1806 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
1807 (in_gnu_ifunc_stub): New.
1808 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
1810 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
1811 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
1812 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
1814 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
1815 * symtab.c (search_symbols): Likewise.
1816 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
1817 and mst_slot_got_plt.
1818 (in_gnu_ifunc_stub): New declaration.
1822 Support a ring of related breakpoints.
1823 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
1824 other functions, add gdb_assert.
1825 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
1826 watchpoint_del_at_next_stop.
1827 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1828 (bpstat_stop_status): Handle ring in related_breakpoint.
1829 (set_raw_breakpoint_without_location): Initialize ring in
1831 (delete_breakpoint): Handle ring in related_breakpoint, use
1832 watchpoint_del_at_next_stop.
1833 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1838 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1839 with `language_minimal'.
1843 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1844 instead of checking for STT_ARM_TFUNC symbol type.
1848 * linespec.c (symbol_found): Restore line-based result for
1849 non-LOC_LABEL symbols.
1853 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1854 instead of strcmp for comparison.
1855 (tui_source_is_displayed): Likewise.
1856 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1860 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1862 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1863 (find_partial_die_in_comp_unit): Likewise in comment.
1864 (read_attribute_value): Likewise.
1865 (lookup_die_type): Likewise.
1866 (dwarf_form_name): Likewise.
1867 (dump_die_shallow): Likewise.
1868 (follow_die_ref_or_sig): Likewise.
1872 PR breakpoints/11816:
1873 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1874 (decode_compound): Update.
1875 (find_function_symbol): New function.
1876 (decode_dollar): Update.
1877 (decode_label): Add 'function_symbol' parameter. Handle
1878 function-relative labels.
1879 (decode_variable): Update.
1880 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1881 not its line. Set `special_display' and canonical name for
1886 * linespec.h (struct linespec_result) <special_display>: New
1888 * breakpoint.h (struct breakpoint) <display_canonical>: New
1890 * breakpoint.c (print_breakpoint_location): Respect
1892 (create_breakpoint_sal): Add 'display_canonical' parameter.
1893 (create_breakpoints_sal): Update.
1894 (create_breakpoint): Update.
1898 * symtab.c (decode_line_spec): Update.
1899 * linespec.c (build_canonical_line_spec): Change type of
1901 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1902 (find_method, decode_all_digits, decode_dollar, decode_label)
1903 (symbol_found): Likewise.
1904 (init_linespec_result): New function.
1905 * breakpoint.c (struct captured_parse_breakpoint_args)
1906 <canonical_p>: New field, replaces addr_string_p.
1907 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1909 (parse_breakpoint_sals): Likewise.
1910 (do_captured_parse_breakpoint): Update.
1911 (create_breakpoint): Use struct linespec_result.
1912 (until_break_command): Update.
1913 (breakpoint_re_set_one): Update.
1914 (decode_line_spec_1): Update.
1915 * linespec.h (struct linespec_result): New.
1916 (init_linespec_result): Declare.
1920 * regcache.c (regcache_raw_read): If the target didn't supply a
1921 given raw register, mark it as unavailable.
1925 * breakpoint.c (clear_command): Use filename_cmp
1926 instead of strcmp for comparison.
1927 * buildsym.c (watch_main_source_file_lossage): Likewise.
1928 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1929 checking just for slash.
1930 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1931 strrchr and filename_cmp instead of strcmp for filenames.
1932 (add_old_header_file): Use filename_cmp
1933 instead of strcmp for comparison.
1934 * exec.c (exec_set_section_address): Likewise.
1935 * macrotab.c (macro_lookup_inclusion): Likewise.
1936 (macro_lookup_inclusion): Likewise.
1937 * elfread.c (_initialize_elfread): Likewise.
1938 (elfstab_offset_sections): Likewise.
1939 (elfstab_offset_sections): Use lbasename instead of
1941 * mdebugread.c (parse_partial_symbols): Likewise.
1942 (arse_partial_symbols): Use filename_(n)cmp instead of
1943 str(n)cmp for comparison.
1944 * minsyms.c (lookup_minimal_symbol): Likewise.
1945 * psymtab.c (read_psymtabs_with_filename): Likewise.
1946 * solib.c (solib_read_symbols): Likewise.
1947 (reload_shared_libraries_1): Likewise.
1948 * symmisc.c (maintenance_print_symbols): Likewise.
1949 * symfile.c (separate_debug_file_exists): Likewise.
1950 (reread_symbols): Likewise.
1951 (find_separate_debug_file_by_debuglink): Likewise.
1952 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1953 * source.c (add_path): Likewise.
1954 * symtab.c (filename_seen): Likewise.
1955 (file_matches): Likewise.
1956 (print_symbol_info): Likewise.
1957 (maybe_add_partial_symtab_filename): Likewise.
1958 (make_source_files_completion_list): Likewise.
1959 * xml-syscall.c (init_sysinfo): Likewise.
1960 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1961 IS_DIR_SEPARATOR for checking for trailing path separator.
1965 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1966 label abort_expression.
1967 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1968 DWARF_VALUE_OPTIMIZED_OUT.
1973 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1974 to linkage_name. Invert its value. Update the function comment.
1975 (c_type_print_varspec_suffix): Invert it at the caller.
1976 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1980 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1981 errors when reading the `stop_pc'.
1982 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1987 * NEWS: Document gdb.Write stream keyword.
1993 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1994 (dwarf2_add_field): Fix new_field->accessibility for
1995 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2001 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2002 other error classes. Do not print stack trace.
2006 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2007 (dwarf2_add_field): Fix new_field->accessibility for
2008 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2012 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2013 encountering a load via a non-SP register.
2017 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2018 field in returned unwinder.
2022 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2026 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2031 * frame.c (frame_unwind_register): Throw an error if unwinding the
2033 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2034 an unwind stop reason.
2035 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2036 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2037 UNWIND_UNAVAILABLE>: New.
2038 * inline-frame.c (inline_frame_unwind): Install
2039 default_frame_unwind_stop_reason.
2040 * frame-unwind.c: Include "exceptions.h".
2041 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2042 (default_frame_unwind_stop_reason): New.
2043 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2044 (default_frame_unwind_stop_reason): Declare.
2045 (struct frame_unwind) <stop_reason>: New function pointer.
2047 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2048 * dwarf2-frame.c: Include exceptions.h.
2049 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2050 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2051 computing the CFA. If such an error was thrown, set
2052 unavailable_retaddr.
2053 (dwarf2_frame_unwind_stop_reason): New.
2054 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2056 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2057 (dwarf2_signal_frame_unwind): Ditto.
2059 * amd64-tdep.c: Include "exceptions.h".
2060 (struct amd64_frame_cache): New field "base_p".
2061 (amd64_init_frame_cache): Clear it.
2062 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2063 Avoid reading registers with functions that throw if the register
2064 is not necessary to compute the frame base.
2065 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2066 swallowing NOT_AVAILABLE_ERROR.
2067 (amd64_frame_unwind_stop_reason): New.
2068 (amd64_frame_this_id): Don't build a frame id if the frame base
2070 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2071 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2072 base_p if the frame base was computable.
2073 (amd64_sigtramp_frame_unwind_stop_reason): New.
2074 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2075 frame base was unavailable.
2076 (amd64_sigtramp_frame_unwind): Install
2077 amd64_sigtramp_frame_unwind_stop_reason.
2078 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2079 base_p if the frame base was computable.
2080 (amd64_epilogue_frame_unwind_stop_reason): New.
2081 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2082 frame base was unavailable.
2083 (amd64_epilogue_frame_unwind): Install
2084 amd64_epilogue_frame_unwind_stop_reason.
2085 * i386-tdep.c: Include "exceptions.h".
2086 (struct i386_frame_cache): New field "base_p".
2087 (i386_init_frame_cache): Clear it.
2088 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2089 Avoid reading registers with functions that throw if the register
2090 is not necessary to compute the frame base.
2091 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2092 swallowing NOT_AVAILABLE_ERROR.
2093 (i386_frame_unwind_stop_reason): New.
2094 (i386_frame_this_id): Don't build a frame id if the frame base was
2096 (i386_frame_prev_register): Handle unavailable SP.
2097 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2098 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2099 base_p if the frame base was computable.
2100 (i386_epilogue_frame_unwind_stop_reason): New.
2101 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2102 base was unavailable.
2103 (i386_epilogue_frame_unwind): Install
2104 i386_epilogue_frame_unwind_stop_reason.
2105 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2106 base_p if the frame base was computable.
2107 (i386_sigtramp_frame_unwind_stop_reason): New.
2108 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2109 base was unavailable.
2110 (i386_sigtramp_frame_unwind): Install
2111 i386_sigtramp_frame_unwind_stop_reason.
2112 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2113 type's size, not the register's.
2114 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2116 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2117 default_frame_unwind_stop_reason.
2118 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2119 (alpha_heuristic_frame_unwind): Ditto.
2120 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2121 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2122 * avr-tdep.c (avr_frame_unwind): Ditto.
2123 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2125 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2126 * frv-tdep.c (frv_frame_unwind): Ditto.
2127 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2128 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2129 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2130 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2131 (hppa_stub_frame_unwind): Ditto.
2132 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2133 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2134 (ia64_libunwind_frame_unwind)
2135 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2136 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2137 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2138 * m32c-tdep.c (m32c_unwind): Ditto.
2139 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2140 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2141 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2142 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2143 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2144 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2145 * mep-tdep.c (mep_frame_unwind): Ditto.
2146 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2147 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2148 (mips_stub_frame_unwind): Ditto.
2149 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2150 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2151 * mt-tdep.c (mt_frame_unwind): Ditto.
2152 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2153 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2154 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2155 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2156 (s390_sigtramp_frame_unwind): Ditto.
2157 * score-tdep.c (score_prologue_unwind): Ditto.
2158 * sh-tdep.c (sh_frame_unwind): Ditto.
2159 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2160 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2161 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2162 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2163 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2164 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2165 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2166 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2167 (sparc64obsd_trapframe_unwind): Ditto.
2168 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2169 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2170 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2171 * v850-tdep.c (v850_frame_unwind): Ditto.
2172 * vax-tdep.c (vax_frame_unwind): Ditto.
2173 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2174 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2175 * xtensa-tdep.c (xtensa_unwind): Ditto.
2179 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2180 there's always a frame. Use get_frame_pc_if_available instead of
2181 get_frame_pc, and if there's no PC available, don't look up a
2186 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2191 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2196 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2197 * frame.c (frame_unwind_caller_pc_if_available): New.
2198 * stack.c (frame_info): Handle unavailable PC.
2202 * frame.c (frame_unwind_pc): Rename to ...
2203 (frame_unwind_pc_if_available): ... this. New `pc' output
2204 parameter. Change return type to int. Gracefully handle
2205 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2206 happened, or 1 otherwise.
2207 (frame_unwind_pc): Reimplement on top of
2208 frame_unwind_pc_if_available.
2209 (get_frame_func): Rename to ...
2210 (get_frame_func_if_available): New `pc' output parameter. Change
2211 return type to int. Gracefully handle the PC not being available.
2212 (get_frame_func): Reimplement on top of
2213 get_frame_func_if_available.
2214 (select_frame): Handle the PC being unavailable.
2215 (get_prev_frame): Handle the PC being unavailable.
2216 (get_frame_pc_if_available): New.
2217 (get_frame_address_in_block_if_available): New.
2218 (find_frame_sal): Handle the frame PC not being available.
2219 * frame.h (get_frame_pc_if_available): Declare.
2220 (get_frame_address_in_block_if_available): Declare.
2221 (get_frame_func_if_available): Declare.
2222 * stack.c (print_frame_info): Handle the PC being unavailable.
2223 (find_frame_funname): Ditto.
2224 (print_frame): Handle the PC being unavailable.
2225 (get_frame_language): Ditto.
2226 * blockframe.c (get_frame_block): Ditto.
2227 * macroscope.c (default_macro_scope): Ditto.
2228 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2232 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2233 NOT_AVAILABLE_ERROR when evaluating the location expression.
2237 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2238 returning that the register piece is unavailable/optimized out.
2239 (write_pieced_value): Handle get_frame_register_bytes returning
2240 that the register piece is unavailable/optimized out when doing a
2241 read-modify write of a bitfield.
2242 * findvar.c (value_from_register): Handle get_frame_register_bytes
2243 returning that the register piece is unavailable/optimized out.
2244 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2245 and `unavailablep'. Throw error on bad debug info. Use
2246 frame_register instead of frame_register_read, to fill in the new
2248 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2250 * valops.c: (value_assign): Adjust, and handle
2251 get_frame_register_bytes failing.
2252 * spu-tdep.c: Include exceptions.h.
2253 (spu_software_single_step): Adjust, and handle
2254 get_frame_register_bytes failing.
2255 (spu_get_longjmp_target): Ditto.
2256 * gdbarch.sh (register_to_value): Change to return int. New
2257 parameters `optimizedp' and `unavailablep'.
2258 * gdbarch.h, gdbarch.c: Regenerate.
2259 * i386-tdep.c (i386_register_to_value): Adjust to new
2260 gdbarch_register_to_value interface.
2261 * i387-tdep.c (i387_register_to_value): Ditto.
2262 * i387-tdep.h (i387_register_to_value): Ditto.
2263 * alpha-tdep.c (alpha_register_to_value): Ditto.
2264 * ia64-tdep.c (ia64_register_to_value): Ditto.
2265 * m68k-tdep.c (m68k_register_to_value): Ditto.
2266 * mips-tdep.c (mips_register_to_value): Ditto.
2267 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2271 * findvar.c (value_of_register): Mark the value as unavailable, if
2272 the register is unavailable.
2273 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2274 (frame_register): New `unavailablep' parameter.
2275 (frame_register_read): Update comment.
2276 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2277 Set it if the register is unavailable. If the register is
2278 unavailable, clear the output buffer.
2279 (frame_register): New `unavailablep' parameter. Pass it down.
2280 (frame_unwind_register): Adjust.
2281 (put_frame_register): Adjust.
2282 (frame_register_read): Adjust. Also return false if the register
2284 (frame_register_unwind_location): Adjust.
2285 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2286 is unavailable, mark the value accordingly.
2287 * stack.c (frame_info): Handle unavailable registers.
2291 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2292 simplify, using regcache_cooked_read.
2296 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2297 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2298 (regcache_raw_read_unsigned, regcache_raw_read_part)
2299 (regcache_cooked_read, regcache_cooked_read_signed)
2300 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2301 (regcache_cooked_read_ftype): Change return to enum
2303 * regcache.c: Include exceptions.h
2304 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2305 (do_cooked_read): Change return to enum register_status. Always
2306 forward to regcache_cooked_read.
2307 (regcache_raw_read): Change return to enum register_status. If
2308 the register is not REG_VALID, memset the buffer. Return the
2310 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2311 return the register's status.
2312 (regcache_raw_read_unsigned): Ditto.
2313 (regcache_cooked_read): Change return to enum register_status.
2314 Assert that with read-only regcaches, the register's status must
2315 be known. If the regcache is read-only, and the register is not
2316 REG_VALID, memset the buffer. Return the register's status.
2317 (regcache_cooked_read_signed): Change return to enum
2318 register_status. Handle non-REG_VALID registers and return the
2320 (regcache_cooked_read_unsigned): Change return to enum
2321 register_status. Handle non-REG_VALID registers and return the
2323 (regcache_xfer_part, regcache_raw_read_part)
2324 (regcache_cooked_read_part): Change return to enum
2325 register_status. Return the register's status.
2326 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2328 (regcache_dump): Handle unavailable cooked registers.
2329 * frame.c (do_frame_register_read): Adjust interface to match
2330 regcache_cooked_read_ftype.
2331 * gdbarch.sh (pseudo_register_read): Change return to enum
2333 * gdbarch.h, gdbarch.c: Regenerate.
2335 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2337 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2338 register_status. If reading a raw register indicates the raw
2339 register is not valid, return the raw register's status,
2340 otherwise, return REG_VALID.
2341 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2342 register_status. Handle non-REG_VALID raw registers and return
2343 the register's status.
2344 * arm-tdep.c (arm_neon_quad_read)
2345 (arm_pseudo_read): Change return to enum register_status. Handle
2346 non-REG_VALID raw registers and return the register's status.
2347 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2348 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2349 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2350 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2351 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2353 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2354 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2355 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2356 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2357 (m32c_pseudo_register_read): Change return to enum
2358 register_status. Adjust.
2359 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2360 enum register_status. Return the register's status.
2361 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2362 register_status. Return the register's status.
2363 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2364 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2365 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2366 * rs6000-tdep.c (move_ev_register_func): New typedef.
2367 (e500_move_ev_register): Use it. Change return to enum
2368 register_status. Return the register's status.
2369 (do_regcache_raw_read): New function.
2370 (do_regcache_raw_write): New function.
2371 (e500_pseudo_register_read): Change return to enum
2372 register_status. Return the register's status. Use
2373 do_regcache_raw_read.
2374 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2375 (dfp_pseudo_register_read): Change return to enum register_status.
2376 Return the register's status.
2377 (vsx_pseudo_register_read): Ditto.
2378 (efpr_pseudo_register_read): Ditto.
2379 (rs6000_pseudo_register_read): Ditto.
2380 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2381 register_status. Return the register's status.
2382 * sh64-tdep.c (pseudo_register_read_portions): New function.
2383 (sh64_pseudo_register_read): Change return to enum
2384 register_status. Use pseudo_register_read_portions. Return the
2386 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2387 register_status. Return the register's status.
2388 * sh-tdep.c (pseudo_register_read_portions): New function.
2389 (sh_pseudo_register_read): Change return to enum register_status.
2390 Use pseudo_register_read_portions. Return the register's status.
2391 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2392 enum register_status. Return the register's status.
2393 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2394 * spu-tdep.c (spu_pseudo_register_read_spu)
2395 (spu_pseudo_register_read): Ditto.
2396 * xtensa-tdep.c (xtensa_register_read_masked)
2397 (xtensa_pseudo_register_read): Ditto.
2398 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2402 * python/py-value.c (valpy_getitem): Fix formatting of error function
2407 ARI fixes: Add missing internationalization markups throughout
2409 * darwin-nat-info.c: Ditto.
2412 * mi/mi-main.c: Ditto.
2416 ARI fixes: Add missing internationalization markups throughout
2419 * cp-name-parser.y: Ditto.
2422 * objc-exp.y: Ditto.
2427 ARI fixes: Messages should have no trailing new lines.
2428 * darwin-nat.c (mach_check_error): Remove trailing new line from
2429 warning function call message.
2430 * record.c (bfdcore_read): Idem for error call.
2434 * common/signals.c (target_signal_from_host): Add _ markup to error
2435 function call message.
2436 (target_signal_to_host): Add _ markup and remove trailing new line
2437 from warning call message.
2438 (target_signal_from_command): Add _ markup to error function call
2445 * python/python.c (gdbpy_write): Accept a stream argument and
2446 operate to the appropriate stream.
2447 (gdbpy_flush): Likewise.
2448 (_initialize_python): Add stream constants.
2449 (finish_python_initialization): Add GdbOutputErrorFile class.
2453 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2457 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
2458 to store_signed_integer. Add debug message when relocating CALL
2459 instructions. Fix formatting of debug message.
2460 * i386-tdep.c (i386_relocate_instruction): Ditto.
2464 * target.h (struct target_ops): Remove to_lookup_symbol field.
2465 (target_lookup_symbol): Delete macro.
2466 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2467 (update_current_target, setup_target_debug): Remove handling
2468 of to_lookup_symbol target_ops field.
2469 * ada-tasks.c (get_known_tasks_addr): Remove use of
2470 target_lookup_symbol.
2471 * coffread.c (coff_symtab_read): Likewise.
2472 * dbxread.c (read_dbx_symtab): Ditto.
2477 * configure.ac: Add getthrds declaration check.
2478 * configure, config.in: Regenerate.
2479 * aix-thread.c (getthrds): Declare only if not already declared
2480 in procinfo.h. More declaration out of get_signaled_thread to
2485 * python/py-symtab.c: Populate symtab_object_methods,
2487 (stpy_is_valid): New function.
2488 (salpy_is_valid): Ditto.
2489 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2490 (sympy_is_valid): New function.
2491 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2492 (objfpy_is_valid): New function.
2493 * python/py-inferior.c: Populate inferior_object_methods.
2494 (infpy_is_valid): New function.
2495 * python/py-infthread.c: Populate thread_object_methods.
2496 (thpy_is_valid): New function.
2497 * python/py-block.c: Declare block_object_methods. Populate. Declare
2498 block_iterator_object_methods. Populate.
2499 (blpy_is_valid): New function.
2500 (blpy_iter_is_valid): Ditto.
2504 * linespec.c (find_methods): Canonicalize NAME before looking
2506 (name_end): New function.
2507 (keep_name_info): New function.
2508 (decode_line_1): Use keep_name_info.
2509 (decode_compound): Likewise.
2510 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2511 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2514 * linespec.c (locate_first_half): Keep overload information, too.
2515 (decode_compound): Use a string to represent break characters
2517 If P points to a break character, do not increment it.
2518 For C++ and Java, keep overload information and relevant keywords.
2519 If we cannot find a symbol, search the minimal symbols.
2522 * linespec.c (decode_compound): Rename SAVED_ARG to
2524 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2526 Pass a valid block to lookup_symbol.
2527 (lookup_prefix_sym): Likewise.
2528 (find_method): Construct search name based on SYM_CLASS instead
2530 * psymtab.c (lookup_partial_symbol): Add language parameter.
2531 (lookup_symbol_aux_psymtabs): Likewise.
2532 Don't assume that the psymtab we found was the right one. Search
2533 for the desired symbol in the symtab to be certain.
2534 (psymtab_search_name): New function.
2535 (lookup_partial_symbol): Use psymtab_search_name.
2536 Add language parameter.
2537 (read_symtabs_for_function): Add language parameter and pass to
2538 lookup_partial_symbol.
2539 (find_symbol_file_from_partial): Likewise.
2544 * dwarf2read.c (noop_record_line): New function.
2545 (dwarf_decode_lines): Ignore line tables for GCd functions.
2549 Fix ARI warnings about new lines at the end of messages, which
2550 are unneeded as there is a new line added at the end of the message
2552 * darwin-nat.c (darwin_stop_inferior): Ditto.
2553 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2554 * dfp.c (decimal_to_number): Ditto.
2555 * exec.c (print_section_info): Ditto.
2556 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2557 * osdata.c (get_osdata): Ditto.
2558 * record.c (bfdcore_write): Ditto.
2559 * remote-mips.c (mips_readchar): Ditto.
2560 * remote.c (read_ptid): Ditto.
2561 * ser-mingw.c (ser_windows_raw): Ditto.
2562 * tracepoint.c (add_local_symbols): Ditto.
2563 * windows-nat.c (fake_create_process): Ditto.
2567 * tracepoint.c (stop_tracing): Don't declare.
2568 * event-top.c (after_char_processing_hook): Add `(void)'.
2572 * NEWS: Add Parameter sub-classing description.
2576 * MAINTAINERS: Update my e-mail address.
2580 * MAINTAINERS: Add myself for write after approval privileges.
2584 * frame.c (find_frame_sal): Assert sym is not null.
2586 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2588 * objc-lang.c (selectors_info): Check strchr for null result.
2590 * stabsread.c (define_symbol): Guard against bad stabstring input.
2594 Remove trailing spaces and tabulations from pascal language
2599 p-valprint.c: Ditto.
2603 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2604 than LOW. Comment it.
2605 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2606 HIGHPC not strictly higher than LOWPC.
2610 Fix formatting of function declarations returning a pointer in
2612 * varobj.c (varobj_add_child): Ditto.
2613 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2614 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2618 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2619 for the "generic" vector ABI used with GCC 4.3 and later.
2620 (ppc64_sysv_abi_return_value): Likewise.
2624 * infcall.c (call_function_by_hand): Function return value is
2625 always a non_lval, even when using struct_return.
2629 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2630 (map_display_numbers): New.
2631 (do_delete_display): New.
2632 (undisplay_command): Use map_display_numbers.
2633 (do_enable_disable_display): New.
2634 (enable_disable_display_command): New function.
2635 (enable_display): Delete.
2636 (enable_display_command): New.
2637 (disable_display_command): Reimplement.
2638 (_initialize_printcmd): Adjust "enable display" command to use
2639 `enable_display_command' as callback.
2643 * NEWS: Add Python breakpoint 'stop' operation.
2647 * NEWS: Delete duplicate entry. Fix typo.
2651 Fix ARI warning about function names in first column.
2652 Put prototype declaration on same line as return type.
2653 * objc-exp.y: Ditto.
2655 * python/py-stopevent.h: Ditto.
2656 For long function names, split parameters to
2657 allow function name on same line as return type.
2658 * solib-pa64.c: Ditto.
2661 For long function declaration, use single line.
2662 * hppa-tdep.h: Ditto.
2663 * inferior.h: Ditto.
2667 * python/python.h: Declare gdbpy_should_stop and
2668 gdbpy_breakpoint_has_py_cond.
2669 * python/python.c: Add python.h to includes. Remove python.h from
2670 HAVE_PYTHON definition
2671 (gdbpy_should_stop): New dummy function.
2672 (gdbpy_breakpoint_has_py_cond): New dummy function.
2673 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2674 sub-classing capabilities.
2675 (gdbpy_should_stop): New function.
2676 (gdbpy_breakpoint_has_py_cond): New function.
2677 (local_setattro): New function.
2678 * breakpoint.c (condition_command): Add check for Python 'stop'
2680 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2681 operation function as part of stop/continue tests.
2686 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2687 (needs_frame_dwarf_call): Likewise.
2691 Fix ARI warning about functions without parameters that do not
2693 * breakpoint.c (all_tracepoints): Replace () by (void).
2694 * f-exp.y (match_string_literal): Ditto.
2696 * m2-exp.y (yylex): Ditto.
2697 * mep-tdep.c (current_me_module): Ditto.
2698 (current_options): Ditto.
2699 (current_cop_data_bus_width): Ditto.
2700 (current_cr_names): Ditto.
2701 (current_cr_is_float): Ditto.
2702 (current_ccr_names): Ditto.
2703 * objc-exp.y (yylex): Ditto.
2704 * p-exp.y (yylex): Ditto.
2705 * remote.c (send_interrupt_sequence): Ditto.
2706 * tracepoint.c (current_trace_status): Ditto.
2707 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2708 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2712 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2713 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2714 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2715 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2716 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2718 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2719 (delete_async_event_handler): Ditto.
2721 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2723 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2725 * top.c (set_verbose): Assert showcmd was found.
2729 * xtensa-tdep.c (warning_once): Correct style issues.
2733 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2737 * common/aclocal.m4: Remove.
2741 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2742 (xtensa_write_register, xtensa_read_register): Likewise.
2743 (xtensa_hextochar): Removed.
2744 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2748 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
2749 (xtensa_call0_frame_cache_t): Update comments. New fields added.
2750 (xtensa_alloc_frame_cache): Add initialization for new fields.
2751 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2752 (warning_once): New function.
2753 (xtensa_insn_kind): New item c0opc_and.
2754 (call0_classify_opcode): Add the case for AND instruction.
2755 (call0_track_op): Change arguments. New local variable litbase.
2756 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2757 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2759 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
2760 (call0_analyze_prologue): Update the comments. Change arguments.
2761 Add the variety of updates to handle extended prologues, which now can
2762 conduct dynamic stack adjustments.
2763 (call0_frame_cache): Likewise.
2764 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2765 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2769 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2770 (cmd_qtframe): Ditto.
2771 (cmd_qtbuffer): Ditto.
2772 (cmd_bigqtbuffer): Ditto.
2776 * tracepoint.c (trace_actions_command): Update.
2777 * thread.c (thread_apply_command): Update.
2778 * reverse.c (delete_bookmark_command): Update.
2779 (bookmarks_info): Update.
2780 * printcmd.c (undisplay_command): Update.
2781 * memattr.c (mem_enable_command): Update.
2782 (mem_disable_command): Update.
2783 (mem_delete_command): Update.
2784 * inferior.c (detach_inferior_command): Update.
2785 (kill_inferior_command): Update.
2786 (remove_inferior_command): Update.
2787 * cli/cli-utils.h (struct get_number_or_range_state): New.
2788 (init_number_or_range): Declare.
2789 (get_number_or_range): Update.
2790 * cli/cli-utils.c (init_number_or_range): New function.
2791 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2793 (number_is_in_list): Update.
2794 * breakpoint.h (get_tracepoint_by_number): Update.
2795 * breakpoint.c (map_breakpoint_numbers): Update for change to
2796 get_number_or_range.
2797 (find_location_by_number): Use get_number, not
2798 get_number_or_range.
2799 (trace_pass_set_count): New function.
2800 (trace_pass_command): Update for change to get_number_or_range.
2802 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2807 * python/py-param.c (add_setshow_generic): Add set/show callback
2808 parameters. Register Python object context.
2809 (get_show_value): New function.
2810 (get_set_value): New function.
2811 (call_doc_function): New function.
2812 (get_doc_string): Move behind get_show_value/get_set_value.
2816 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
2820 * xtensa-tdep.c (xtensa_read_register): Add comment.
2821 (xtensa_write_register): Likewise.
2822 (xtensa_hextochar): Add comment and update to match coding conventions.
2823 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
2824 (execute_l32e, execute_s32e, execute_code): Update comments.
2825 (xtensa_exception_handler_t): Update to match coding conventions.
2826 (xtensa_insn_kind): Likewise.
2830 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2834 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2838 * thread.c (restore_selected_frame): Handle frame_level == -1.
2839 (make_cleanup_restore_current_thread): Use
2840 get_selected_frame_if_set.
2841 * frame.h (get_selected_frame_if_set): Declare.
2842 * frame.c (get_selected_frame_if_set): New function.
2846 * cli/cli-cmds.c (shell_escape): Use lbasename.
2847 * coffread.c (coff_start_symtab): Constify parameter.
2848 (complete_symtab): Constify `name' parameter.
2849 (coff_symtab_read): Constify `filestring' local.
2850 (coff_getfilename): Constify return and `result' local.
2852 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2853 * linux-fork.c (info_checkpoints_command): Use lbasename.
2854 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2855 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2856 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2857 * procfs.c (procfs_make_note_section): Use lbasename.
2858 * tui/tui-io.c (printable_part): Constity return and parameter.
2860 (print_filename): Constify parameters, and local `s'.
2861 (tui_rl_display_match_list): Constify local `temp'.
2867 Fix DWARF-3+ DW_AT_accessibility default assumption.
2868 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2869 cu->header.version >= 3.
2873 * common/Makefile.in: Remove.
2874 * common/configure: Remove.
2875 * common/configure.ac: Remove.
2882 * common/Makefile.in: Add copyright header.
2886 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2888 * configure.ac: Add common to sub dir.
2889 * configure: Regenerate.
2893 * xtensa-tdep.c (call0_ret): New function.
2894 (xtensa_skip_prologue): Speed up analysis.
2898 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2899 while executing MI command -data-list-changed-registers.
2903 * xtensa-tdep.c (xtensa_read_register): New function.
2904 (xtensa_write_register): New function.
2905 (xtensa_find_register_by_name): New function.
2906 (xtensa_windowed_frame_cache): Update comments in type description.
2907 (xtensa_frame_cache): Likewise.
2908 (xtensa_window_interrupt_insn): New function.
2909 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2910 (xtensa_insn_kind): Add new instructions.
2911 (rwx_special_register): New function.
2912 (call0_classify_opcode): Add new instructions to the analysis.
2913 (a0_saved, a7_saved, a11_saved): New variables.
2914 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2915 (execute_l32e): New function.
2916 (execute_s32e): New function.
2917 (xtensa_exception_handler_t): New type.
2918 (execute_code): New function.
2919 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2920 analysis for Xtensa Window Exception handlers.
2924 * xtensa-tdep.c (TX_PS): New.
2925 (windowing_enabled): Update to count for Call0 ABI.
2926 (xtensa_hextochar): New.
2927 (xtensa_init_reggroups): Make algorithm generic.
2928 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2932 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
2936 * i386-tdep.c (i386_follow_jump): Check return value of
2938 (i386_analyze_struct_return): Ditto.
2939 (i386_skip_probe): Ditto.
2940 (i386_match_insn): Ditto.
2941 (i386_skip_noop): Ditto.
2942 (i386_analyze_frame_setup): Ditto.
2943 (i386_analyze_register_saves): Ditto.
2944 (i386_skip_prologue): Ditto.
2945 (i386_skip_main_prologue): Ditto.
2947 * target.c (read_whatever_is_readable): Fix memory leak.
2949 * i386-tdep.c (i386_process_record): Document fall through.
2953 Fix DWARF-3+ DW_AT_accessibility default assumption.
2954 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2955 cu->header.version >= 3.
2959 * remote.c (remote_check_symbols): Skip if the target has no
2964 * target.c (read_whatever_is_readable): Reformat comment,
2965 with a minor typo fix. Minor reformatting of the code.
2969 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2970 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2971 Use cached result instead of calling displaced_in_arm_mode again.
2972 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2973 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2974 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2975 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2976 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2977 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2978 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2979 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2980 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2981 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2982 (arm_catch_kernel_helper_return): Likewise.
2983 * gdb/arm-tdep.h : Update function declarations.
2987 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2989 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2991 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2993 * elfread.c (elf_symtab_read): Stop memory leak.
2995 * main.c (captured_main): Fix memory leak.
2999 * ada-lang.c (compare_names): Call is_name_suffix with string1
3004 * xcoffread.c (xcoff_sym_fns): Update.
3005 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3006 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3007 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3008 (symbol_file_add_with_addrs_or_offsets): Likewise.
3009 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3010 * somread.c (som_sym_fns): Update.
3011 * psymtab.h (require_partial_symbols): Declare.
3012 * psymtab.c (require_partial_symbols): New function.
3013 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3014 (ALL_OBJFILE_PSYMTABS): Undef.
3015 (ALL_PSYMTABS): Move from psympriv.h.
3016 (lookup_partial_symtab, find_pc_sect_psymtab)
3017 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3018 (find_last_source_symtab_from_partial)
3019 (forget_cached_source_info_partial)
3020 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3021 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3022 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3023 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3024 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3025 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3026 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3027 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3028 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3030 * mipsread.c (ecoff_sym_fns): Update.
3031 * machoread.c (macho_sym_fns): Update.
3032 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3033 (read_psyms): New function.
3034 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3035 (elf_sym_fns_lazy_psyms): New global.
3036 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3037 dwarf2_build_psymtabs.
3038 * dbxread.c (aout_sym_fns): Update.
3039 * coffread.c (coff_sym_fns): Update.
3043 * infrun.c (print_exited_reason): Include inferior id and pid in
3048 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3050 (target_has_execution_1): Update.
3051 (target_has_execution_current): Declare.
3052 (target_has_execution): Call target_has_execution_current.
3053 (default_child_has_execution): Update.
3054 * target.c (default_child_has_execution): Add 'the_ptid'
3056 (target_has_execution_1): Likewise.
3057 (target_has_execution_current): New function.
3058 (add_target): Update.
3059 (init_dummy_target): Update.
3060 * remote-m32r-sdi.c (m32r_has_execution): New function.
3061 (init_m32r_ops): Use it.
3062 * record.c (record_core_has_execution): Now static. Add
3063 'the_ptid' parameter.
3064 * inferior.c (have_live_inferiors): Don't save current thread.
3065 Use target_has_execution_1.
3069 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3073 * elfread.c (elf_symtab_read): Minor reformatting.
3077 * objc-lang.c (selectors_info): Minor reformatting.
3081 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3086 * ada-valprint.c (ada_val_print_array): Move the declaration of
3087 "byte_order" and "elttype" inside the block where these variables
3088 are actually used. Remove some special handling for the case
3089 where "elttype" and "eltlen" are null. Replace by a comment
3090 and a couple of assertion checks.
3094 * source.c (add_path): Replace semicolon at end of block.
3095 * dwarf2expr.c (execute_stack_op): Ditto.
3099 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3100 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3101 (bfin-*-*): Likewise.
3105 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3106 * mdebugread.c (parse_symbol): Ditto.
3107 * parse.c (parse_exp_in_context): Ditto.
3108 * source.c (add_path): Ditto.
3109 * utils.c (gnu_debuglink_crc32): Ditto.
3110 * varobj.c (variable_language): Ditto.
3112 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3116 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3118 * symfile.c (simple_overlay_update): Check for null return value
3119 from lookup_minimal_symbol.
3121 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3125 * eval.c (parse_and_eval_address_1): Remove function.
3126 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3127 instead of parse_and_eval_address_1.
3128 * value.h (parse_and_eval_address_1): Remove prototype.
3132 * remote.c (putpkt_binary): Document that case stmt falls through.
3136 * breakpointc (print_it_typical): Move NULL check from here...
3137 (print_bp_stop_message): ... to here.
3141 * breakpoint.c (enable_command): Use break instead of continue,
3142 and fill in a missing break.
3143 (disable_command): Ditto.
3147 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3148 (terminal_save_ours): Remove misleading comment.
3149 (inflow_inferior_data_cleanup): Free ttystate.
3150 (inflow_inferior_exit): Likewise.
3151 (copy_terminal_info): Copy ttystate.
3153 * serial.c (serial_copy_tty_state): New function.
3154 * serial.h (serial_copy_tty_state): Add prototype.
3155 (struct serial_ops): Add copy_tty_state callback.
3156 * ser-base.c (ser_base_copy_tty_state): New function.
3157 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3158 * ser-go32.c (dos_copy_tty_state): New function.
3159 (dos_ops): Install copy_tty_state callback.
3160 * ser-mingw.c (_initialize_ser_windows): Likewise.
3161 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3162 * ser-unix.c (hardwire_copy_tty_state): New function.
3163 (_initialize_ser_hardwire): Install it.
3167 * breakpoint.c (create_breakpoint): Add missing break statement.
3169 Reverting this patch:
3170 * infcall.c (call_function_by_hand): Add break statements for lint.
3172 Reverting this patch:
3173 * cli/cli-script.c (script_from_file): Add break for lint.
3177 * solib.c (reload_shared_libraries_1): Close memory leak.
3182 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3187 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3188 fields of struct 'st' to zero.
3190 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3191 sal.pspace before calling set_current_source_symtab_and_line.
3195 * Makefile.in (configure-common): Remove. Let Makefile
3196 in dir common to rebuild itself.
3197 (common/Makefile): Likewise.
3201 * utils.c (parse_escape): Add i18n markup in error message.
3205 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3207 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3208 (displaced_write_reg, displaced_read_reg): Likewise.
3209 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3210 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3211 (cleanup_branch): Replace magic number 14 and 15 with
3212 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3216 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3218 * cli/cli-script.c (script_from_file): Add break for lint.
3220 * mdebugread.c (parse_partial_symbols): Fix indent.
3222 * target-descriptions.c (tdesc_gdb_type): No need to call
3223 xstrdup, callee saves a copy.
3225 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3227 * infcall.c (call_function_by_hand): Add break statements for lint.
3229 * utils.c (parse_escape): Escape the escape char.
3231 * python/py-inferior.c (build_inferior_list): Error out if
3232 PyList_Append fails.
3233 (gdbpy_inferiors): Error out if build_inferior_list fails.
3235 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3238 * record.c (record_restore): Move printf to before error return.
3242 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3243 is_thumb and insn_size.
3244 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3245 on both ARM and Thumb mode.
3246 (arm_process_displaced_insn): Set is_thumb and insn_size.
3247 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3248 (arm_displaced_step_fixup): Likewise.
3252 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3254 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3256 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3258 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3260 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3263 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3264 which shadows function parameter.
3266 * tracepoint.c (create_tsv_from_upload): Superfluous call
3267 to xstrdup. Callee already calls xstrdup.
3269 * linespec.c (decode_line_1): Remove unnecessary null check.
3271 * tracepoint.c (scope_info): Fix mem leak, remove underused
3274 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3275 superfluous null check.
3277 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
3278 (value_of_builtin_frame_fp_reg): Ditto.
3280 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3282 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3285 * linespec.c (decode_line_1): Check for null before dereference.
3287 * reverse.c (record_restore): Move null-check to before pointer
3290 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3292 * objc-lang.c (selectors_info): Add explanitory comment.
3293 (classes_info): Ditto.
3297 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3298 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3299 versions of the trampoline. Handle Thumb vs. ARM addresses.
3300 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3301 (arm_linux_init_abi): Install it.
3302 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3303 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3307 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3308 a little bigger, to avoid possibility of an overflow.
3310 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3311 buffers a little bigger, to avoid possibility of an overflow.
3313 * coffread.c (coff_getfilename): Add check to avoid overflow.
3315 * objc-lang.c (selectors_info): Add a small safety margin to
3317 (classes_info): Error out on too long REGEXP.
3319 * infrun.c (handle_inferior_event): Remove unused function call.
3321 * fork-child.c (fork_inferior): Remove ifdef'd code and
3324 * linux-thread-db.c (attach_thread): Discard unused value.
3326 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3328 * remote.c (remote_get_noisy_reply): Discard unused value.
3329 (remote_vcont_resume): Ditto.
3330 (remote_stop_ns): Ditto.
3332 * linespec.c (decode_objc): Delete unused variable.
3334 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3336 * dwarf2read.c (add_partial_symbol): Discard unused values.
3337 (read_base_type): Delete unused variable.
3339 * dbxread.c (read_dbx_symtab): Discard unused value.
3341 * eval.c (evaluate_subexp_standard): Delete unused variable,
3342 and discard unused values.
3344 * infcmd.c (_initialize_infcmd): Discard unused values.
3346 * stabsread.c (rs6000_builtin_type): Missing break statement.
3348 * dbxread.c (process_one_symbol): Discard unused value.
3350 * coffread.c (coff_end_symtab): Delete unused variable.
3352 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3353 (dwarf2_add_typedef): Delete unused variable.
3354 (read_namespace): Ditto.
3355 (dwarf_decode_macros): Ditto.
3357 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3359 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3361 * p-valprint.c (pascal_val_print): Discard unused value.
3363 * utils.c (nquery): Call va_end before return;
3367 * proc-service.c (ps_plog): Call va_end before return.
3371 * python/python.c (gdbpy_value_cst): New global.
3372 (_initialize_python): Initialize it.
3373 * python/python-internal.h (gdbpy_value_cst): Declare.
3374 * python/py-value.c (convert_value_from_python): Use
3379 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3381 * breakpoint.c (catch_syscall_completer): Free malloced list.
3383 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3385 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3386 (lval_func_check_synthetic_pointer): Ditto.
3387 (lval_func_free_closure): Fix use-after-free.
3391 * psymtab.c (expand_partial_symbol_tables): Use
3392 ALL_OBJFILE_PSYMTABS.
3396 * objc-lang.c (selectors_info): Error on too long REGEXP.
3400 * python/py-param.c (set_parameter_value): Add missing
3403 * linux-record.c (record_linux_system_call): Add missing
3408 * breakpoint.c (print_one_breakpoint_location): Remove unused
3409 argument PRINT_ADDRESS_BITS. Update callers.
3410 (print_one_breakpoint): Likewise.
3414 * breakpoint.c (wrap_indent_at_field): New function.
3415 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3416 Allocate ui_stream locally instead of using STB argument.
3417 (print_one_breakpoint_location): Update call.
3418 * ui-out.c (ui_out_query_field): New function.
3419 * ui-out.h (ui_out_query_field): Add prototype.
3424 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3428 * objc-lang.c (selectors_info): Prevent string overrun.
3430 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3433 * symtab.c (rbreak_command): Move variable 'file_name' to
3436 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3437 param with a local variable of the same name.
3441 * value.c (value_from_history_ref): New function.
3442 * value.h (value_from_history_ref): Export.
3443 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3444 to parse value history references.
3445 * cli/cli-utils.h (get_number_trailer): Update comment.
3449 * inferior.c (detach_inferior_command): Use get_number_or_range.
3450 (kill_inferior_command): Ditto.
3451 (remove_inferior_command): Ditto.
3452 (initialize_inferiors): Make command names plural.
3453 Update help strings.
3457 * darwin-nat-info.c: Fix comment typo.
3458 * dwarf2expr.h: Ditto.
3459 * fbsd-nat.c: Ditto.
3460 * fbsd-nat.h: Ditto.
3461 * frame-unwind.h: Ditto.
3463 * hppa-hpux-tdep.c: Ditto.
3464 * i386-linux-nat.c: Ditto.
3465 * linux-nat.c: Ditto.
3466 * nbsd-nat.c: Ditto.
3467 * nbsd-nat.h: Ditto.
3468 * ppc-linux-tdep.c: Ditto.
3471 * tui/tui-winsource.c: Ditto.
3475 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3477 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3479 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3480 with a local variable of the same name.
3482 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
3483 param with a local variable of the same name.
3484 (i387_supply_xsave): Ditto.
3486 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3487 that it does not shadow a function parameter.
3489 * i386-nat.c (i386_length_and_rw_bits): Document that case
3490 statement is meant to fall through.
3492 * expprint.c (dump_subexp_body_standard): Document that case
3493 statement is meant to fall through.
3495 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3496 dead if statement. Condition can't be false.
3500 * arm-tdep.c: Fix typos in comments.
3501 * bsd-uthread.c: Ditto.
3502 * completer.c: Ditto.
3504 * cp-namespace.c: Ditto.
3505 * cp-support.c: Ditto.
3506 * cris-tdep.c: Ditto.
3508 * dwarf2read.c: Ditto.
3510 * gdbtypes.h: Ditto.
3511 * inferior.h: Ditto.
3512 * mdebugread.c: Ditto.
3513 * mips-tdep.c: Ditto.
3514 * ppc-linux-nat.c: Ditto.
3515 * ppc-linux-tdep.c: Ditto.
3516 * printcmd.c: Ditto.
3517 * sol-thread.c: Ditto.
3518 * solib-frv.c: Ditto.
3520 * sparc64-tdep.c: Ditto.
3521 * spu-tdep.c: Ditto.
3522 * stabsread.c: Ditto.
3527 * python/py-block.c: Ditto.
3528 * python/py-symbol.c: Ditto.
3529 * python/py-symtab.c: Ditto.
3530 * python/py-value.c: Ditto.
3531 * tui/tui-win.c: Ditto.
3535 * inferior.c (print_inferior): Accept a string instead of an int
3536 for requested_inferiors, and use get_number_or_range to parse it.
3537 (info_inferiors_command): Pass args string to print_inferior.
3538 (initialize_inferiors): Change help string for info inferiors.
3539 * inferior.h (print_inferior): Export prototype change.
3543 * common/ax.def (invalid2): Set to 0x31.
3547 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3549 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3551 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3555 * Makefile.in (clean): Make clean should remove generated files
3556 observer.h and observer.inc.
3560 Revert the following patch (not approved yet):
3562 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3563 * ax-gdb.c (gen_printf_expr_callback): New function.
3564 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3565 * ax-general.c (ax_memcpy): New function.
3566 (ax_print): Handle "printf".
3568 * ax.h (ax_memcpy): Forward declare.
3569 * common/ax.def (invalid2): Removed.
3570 (printf): New entry.
3571 * printcmd.c (printcmd.h): New include.
3572 (string_printf): New function.
3573 (ui_printf): Removed.
3574 (printf_command): Remove static. Call string_printf.
3575 (eval_command): Call string_printf.
3576 * printcmd.h: New file.
3577 * tracepoint.c (validate_actionline,
3578 encode_actions_1): handle printf_command.
3582 * ax-general.c (ax_pick): Add missing newline.
3586 * breakpoint.c (breakpoint_1): Change first argument from an int
3587 to a char pointer, so that the function now accepts a list of
3588 breakpoints rather than just one. Use new function
3589 'number_is_in_list' to implement.
3590 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3591 (watchpoints_info): Ditto.
3592 (tracepoints_info): Ditto.
3593 (maintenance_info_breakpoints): Ditto.
3594 (_initialize_breakpoint): Update help strings to reflect the fact
3595 that these functions can now take more than one argument.
3596 * cli/cli-utils.c (number_is_in_list): New function.
3597 * cli/cli-utils.h (number_is_in_list): Export.
3601 * memattr.c (mem_enable_command): Use get_number_or_range.
3602 (mem_disable_command): Ditto.
3603 (mem_delete_command): Ditto.
3604 (_initialize_mem): Tweak usage message to reflect multiple
3609 Add gdb.lookup_global_symbol python function.
3611 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3612 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3613 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3617 * language.c (language_class_name_from_physname): Rename
3618 'curr_language' argument to 'lang'; use in body.
3622 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3626 * frame-unwind.h: Fix comment to mention the this frame, not the
3631 * symfile.c (auto_solib_limit): Remove.
3632 * symfile.h (auto_solib_limit): Remove.
3636 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3640 * gdbthread.h (print_thread_info): Change prototype.
3641 * thread.c (print_thread_info): Accept char* instead of int for
3642 requested_threads argument. Use new function number_is_in_list
3643 to determine which threads to list.
3644 (info_threads_command): Pass char* to print_thread_info.
3645 * cli/cli-utils.c (number_is_in_list): New function.
3646 * cli/cli-utils.h (number_is_in_list): Export.
3647 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
3649 (print_one_inferior): Ditto.
3650 (mi_cmd_list_thread_groups): Ditto.
3654 * common/Makefile.in (CFLAGS): New.
3655 (COMPILE): Add $(CFLAGS).
3659 * breakpoint.c (catch_syscall_command_1): Fix typo.
3663 * reverse.c: Include cli-utils.h.
3664 * printcmd.c: Include cli-utils.h.
3665 (string_printf): Use skip_spaces.
3666 * cli/cli-utils.h: New file.
3667 * cli/cli-utils.c: New file.
3668 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3669 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3670 * breakpoint.h (get_number, get_number_or_range): Move to
3672 * breakpoint.c: Include cli-utils.h.
3673 (get_number_trailer, get_number, get_number_or_range)
3674 (ep_skip_leading_whitespace): Move to cli-utils.c.
3675 (create_breakpoint_sal, find_condition_and_thread)
3676 (decode_static_tracepoint_spec, watch_command_1)
3677 (watch_maybe_just_location, ep_parse_optional_if_clause)
3678 (catch_fork_command_1, catch_exec_command_1)
3679 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3680 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3681 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3682 (HFILES_NO_SRCDIR): Add cli-utils.h.
3683 (cli-utils.o): New target.
3687 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3688 before calling discard_all_inferiors.
3692 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3693 (struct builtin_opencl_type): Remove.
3694 (builtin_opencl_type): Change return type to "struct type **".
3695 (lookup_opencl_vector_type): Update caller.
3696 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3697 (build_opencl_types): Install plain array of "struct type *"
3698 instead of "struct builtin_opencl_type".
3703 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3704 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3705 (struct arm_linux_hwbp_cap): New type.
3706 (arm_linux_get_hwbp_cap): New function.
3707 (arm_linux_get_hw_breakpoint_count): Likewise.
3708 (arm_linux_get_hw_watchpoint_count): Likewise.
3709 (arm_linux_can_use_hw_breakpoint): Likewise.
3710 (arm_hwbp_type): New type.
3711 (arm_hwbp_control_t): Likewise.
3712 (struct arm_linux_hw_breakpoint): Likewise.
3713 (struct arm_linux_thread_points): Likewise.
3714 (arm_threads): New global variable.
3715 (arm_linux_find_breakpoints_by_tid): New function.
3716 (arm_hwbp_control_initialize): Likewise.
3717 (arm_hwbp_control_is_enabled): Likewise.
3718 (arm_hwbp_control_disable): Likewise.
3719 (arm_linux_hw_breakpoint_initialize): Likewise.
3720 (arm_linux_get_hwbp_type): Likewise.
3721 (arm_linux_hw_watchpoint_initialize): Likewise.
3722 (arm_linux_hw_breakpoint_equal): Likewise.
3723 (arm_linux_insert_hw_breakpoint1): Likewise.
3724 (arm_linux_remove_hw_breakpoint1): Likewise.
3725 (arm_linux_insert_hw_breakpoint): Likewise.
3726 (arm_linux_remove_hw_breakpoint): Likewise.
3727 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3728 (arm_linux_insert_watchpoint): Likewise.
3729 (arm_linux_remove_watchpoint): Likewise.
3730 (arm_linux_stopped_data_address): Likewise.
3731 (arm_linux_stopped_by_watchpoint): Likewise.
3732 (arm_linux_watchpoint_addr_within_range): Likewise.
3733 (arm_linux_new_thread): Likewise.
3734 (arm_linux_thread_exit): Likewise.
3735 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3736 related target callbacks. Register arm_linux_new_thread and
3737 arm_linux_thread_exit.
3738 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3739 * arm-tdep.c (arm_pc_is_thumb): Make global.
3740 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3744 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3745 per-frame locations while within a function epilogue.
3749 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3750 to GNU coding standards.
3754 Allow use of mingw native on Windows 95 OS.
3755 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
3756 (ser_windows_close): Only call CancelIo if function exists.
3757 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3758 to check for existence of CancelIo function in kernel32 DLL.
3762 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3763 * ax-gdb.c (gen_printf_expr_callback): New function.
3764 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3765 * ax-general.c (ax_memcpy): New function.
3766 (ax_print): Handle "printf".
3768 * ax.h (ax_memcpy): Forward declare.
3769 * common/ax.def (invalid2): Removed.
3770 (printf): New entry.
3771 * printcmd.c (printcmd.h): New include.
3772 (string_printf): New function.
3773 (ui_printf): Removed.
3774 (printf_command): Remove static. Call string_printf.
3775 (eval_command): Call string_printf.
3776 * printcmd.h: New file.
3777 * tracepoint.c (validate_actionline,
3778 encode_actions_1): handle printf_command.
3782 * reverse.c (delete_one_bookmark): Argument is now bookmark
3783 id rather than pointer to bookmark struct.
3784 (delete_bookmark_command): Use get_number_or_range.
3785 (goto_bookmark_command): Parse with get_number instead of strtoul.
3786 (bookmark_1): New function. Print info for one bookmark.
3787 (bookmarks_info): Use get_number_or_range and bookmark_1.
3791 * thread.c (info_threads_command): Re-implement using
3792 get_number_or_range.
3793 (thread_apply_command): Ditto.
3797 * common/ax.def: New file.
3798 * ax.h (enum agent_op): Use ax.def.
3799 * ax-general.c (aop_map): Use ax.def.
3803 * ax-general.c (aop_map): Add pick and rot.
3804 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3805 <DW_OP_rot>: Implement.
3806 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
3808 * ax-general.c (ax_pick): New function.
3812 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
3817 * cp-support.c (make_symbol_overload_list_namespace): Do not call
3818 make_symbol_overload_list_block with NULL BLOCK.
3819 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
3823 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
3824 * breakpoint.h (get_number_or_range): Declare.
3825 * printcmd.c (ALL_DISPLAYS): Declare.
3826 (delete_display): Reimplement taking a display pointer.
3827 (undisplay_command): Accept a range of displays to delete, using
3828 get_number_or_range.
3832 * c-valprint.c (c_val_print): Add embedded_offset to address
3833 for arrays of unspecified length.
3834 * p-valprint.c (pascal_val_print): Likewise.
3838 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3839 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3840 (thumb_process_displaced_insn): New.
3841 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3842 call to arm_process_displaced_insn.
3843 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3847 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3848 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3849 compile_dwarf_to_ax. No longer static. Call
3850 dwarf2_compile_cfa_to_ax.
3851 (locexpr_tracepoint_var_ref): Update.
3852 (loclist_tracepoint_var_ref): Update.
3853 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3854 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3855 argument; add 'gdbarch' and 'pc'.
3856 (dwarf2_compile_cfa_to_ax): New function.
3857 (dwarf2_frame_cache): Update.
3861 * ada-lang.c (ada_type_of_array): Fix the size of the array
3862 in the case of an unconstrained packed array.
3866 * common/Makefile.in: Add more targets for make.
3870 * dwarf2loc.c (unimplemented): Fix typo.
3874 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3875 (compile_dwarf_to_ax) <default>: Use unimplemented.
3876 <DW_OP_deref>: Update.
3877 (disassemble_dwarf_expression): Update.
3878 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3879 (decode_locdesc): Update.
3880 * dwarf2expr.h (dwarf_stack_op_name): Update.
3884 * ax.h (struct aop_map) <name>: Now const.
3888 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3893 * infrun.c (get_displaced_step_closure_by_addr): New.
3894 * inferior.h: Declare it.
3895 * arm-tdep.c: (arm_pc_is_thumb): Call
3896 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3903 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3908 * value.c (value_contents_copy_raw): Extend describing comment.
3909 Assert that the destination contents we're overwriting are wholly
3911 (value_contents_copy): Extend describing comment.
3916 * value.c (value_available_contents_eq): Remove redundant local
3917 variables. Fix available contents comparision.
3918 * value.h (value_available_contents_eq): Extend describing
3923 * thread.c (info_threads_command): Add missing i18n markup and remove
3928 * breakpoint.c (longjmp_names): New variable.
3929 (struct breakpoint_objfile_data): New type.
3930 (breakpoint_objfile_key): New variable.
3931 (msym_not_found): New variable.
3932 (msym_not_found_p): New predicate.
3933 (get_breakpoint_objfile_data): New function.
3934 (create_overlay_event_breakpoint): Check per-objfile cache for
3936 (create_longjmp_master_breakpoint): Likewise.
3937 (create_std_terminate_master_breakpoint): Likewise.
3938 (create_exception_master_breakpoint): Likewise.
3939 (_initialize_breakpoint): Register per-objfile data key.
3943 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3945 (create_longjmp_master_breakpoint): Loop over longjmp names.
3946 (create_std_terminate_master_breakpoint): Const-propagate parameter
3948 (update_breakpoints_after_exec): Adjust.
3949 (breakpoint_re_set): Adjust.
3953 * thread.c (info_threads_command): Process arg as thread id,
3954 or list of thread ids.
3955 (thread_find_command): New command.
3956 (_initialize_thread): Document argument for info threads.
3957 Document 'thread find' command.
3958 * NEWS: Document new command "thread find".
3962 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3963 * aclocal.m4: Regenerated with aclocal-1.11.1.
3964 * common/configure: Regenerate with autoconf-2.64.
3968 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3969 bool data type to a size of one byte.
3974 * target.c (memory_xfer_live_readonly_partial): Document where to
3975 look for interface description.
3980 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3981 order to store PC value on stack instead of text section.
3985 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3986 the EFP register set size.
3987 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3988 data from the VMX register.
3989 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3990 and write data from/to the VMX register.
3994 * command.h (enum command_class): New class 'no_set_class', for
3995 "show" commands without a corresponding "set" command.
3996 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3997 * copying.c (_initialize_copying): Ditto for "show copying" and
3999 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4001 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4002 which there is no corresponding "set" command (eg. "show copying").
4007 * exec.c (section_table_available_memory): Change `len' parameter
4009 * exec.h (section_table_available_memory): Ditto.
4010 * value.h (read_value_memory): Rename the `offset' parameter to
4016 * memrange.c (compare_mem_ranges): Mention sort order in
4018 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4019 * tracepoint.c (traceframe_available_memory): Extend comment to
4020 mention what happens to RESULT when the target does not support
4026 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4031 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4032 No longer handle NULL values.
4036 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4037 * value.c: Include "exceptions.h".
4038 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4040 * cp-abi.c: Include gdb_assert.h.
4041 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4042 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4044 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4045 parameters. No longer returns -1 on error.
4046 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4048 * cp-valprint.c: Include exceptions.h.
4049 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4050 the baseclass_offset. Handle unavailable base classes. Use
4051 val_print_invalid_address.
4052 * p-valprint.c: Include exceptions.h.
4053 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4054 when fetching the baseclass_offset. No longer expect
4055 baseclass_offset returning -1. Handle unavailable base classes.
4056 Use val_print_invalid_address.
4057 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4058 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4059 `embedded_offset' and `val' parameters. Adjust.
4060 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4061 parameter, and change its type to gdb_byte pointer. Add
4062 `embedded_offset' and `val' parameters. Adjust. No longer expect
4063 baseclass_offset returning -1.
4064 (value_dynamic_cast): Use value_contents_for_printing rather than
4065 value_contents. Adjust.
4066 (search_struct_field): No longer expect baseclass_offset returning
4068 (search_struct_method): If reading memory from the target is
4069 necessary, wrap it in a new value to pass to baseclass_offset. No
4070 longer expect baseclass_offset returning -1.
4071 (find_method_list): No longer expect baseclass_offset returning
4072 -1. Use value_contents_for_printing rather than value_contents.
4073 * valprint.c (val_print_invalid_address): New function.
4074 * valprint.h (val_print_invalid_address): Declare.
4075 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4076 and `val' parameters. No longer expect baseclass_offset returning
4078 * gnu-v2-abi.c: Include "exceptions.h".
4079 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4080 parameters. Handle unavailable memory. Recurse through
4081 gnuv2_baseclass_offset directly, rather than through
4082 baseclass_offset. No longer returns -1 on not found, instead
4084 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4085 `val' parameters. Adjust.
4089 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4090 almost but not quite adjacent.
4094 * value.h (value_entirely_available): Declare.
4095 * value.c (value_entirely_available): New function.
4096 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4097 real type if the pointer is unavailable.
4101 * valops.c (value_repeat): Use read_value_memory instead of
4106 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4107 * value.c (value_contents_copy_raw, value_contents_copy): New
4109 (value_primitive_field): Use value_contents_copy_raw instead of
4111 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4113 (value_array, value_slice): Ditto.
4114 * valarith.c (value_subscripted_rvalue): Use
4115 value_contents_copy_raw instead of memcpy.
4119 <unavailable> references.
4121 * valops.c (get_value_at): Use value_from_contents_and_address,
4122 avoiding read_memory.
4126 * c-valprint.c (c_val_print): Print a string with unavailable
4127 contents as an array.
4131 * value.h (unpack_bits_as_long): Delete declaration.
4132 (unpack_value_bits_as_long): Declare.
4133 (unpack_value_field_as_long): Declare.
4134 (value_field_bitfield): Declare.
4135 * value.c (unpack_bits_as_long): Rename to...
4136 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4137 value parameters. Return the extracted result in a new output
4138 parameter. If the value contents are unavailable, return false,
4139 otherwise return true.
4140 (unpack_value_bits_as_long): New.
4141 (unpack_field_as_long): Rename to...
4142 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4143 Add embedded_offset and value parameters. Return the extracted
4144 result in a new output parameter. If the value contents are
4145 unavailable, return false, otherwise return true.
4146 (unpack_value_field_as_long): New.
4147 (unpack_field_as_long_1): New.
4148 (unpack_field_as_long): Reimplement as wrapper around
4149 unpack_value_field_as_long_1.
4150 (value_field_bitfield): New function.
4151 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4152 unpack_value_bits_as_long. Mark the value as unavailable, if it
4154 * jv-valprint.c (java_print_value_fields): Use
4155 value_field_bitfield.
4156 * p-valprint.c (pascal_object_print_value_fields): Use
4157 value_field_bitfield.
4158 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4162 * value.c (get_internalvar_integer): Also return the int value of
4163 TYPE_CODE_INT INTERNALVAR_VALUE values.
4164 (set_internalvar): Don't special case TYPE_CODE_INT.
4168 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4169 INTERNALVAR_POINTER.
4171 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4172 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4173 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4177 * value.h (value_available_contents_eq): Declare.
4178 * value.c (find_first_range_overlap): New function.
4179 (value_available_contents_eq): New function.
4180 * valprint.c (val_print_array_elements): Use
4181 value_available_contents_eq.
4182 * ada-valprint.c (val_print_packed_array_elements): Use
4183 value_available_contents_eq.
4184 * jv-valprint.c (java_value_print): Use
4185 value_available_contents_eq.
4189 * target.c (target_read_live_memory): New function.
4190 (memory_xfer_live_readonly_partial): New.
4191 (memory_xfer_partial): If reading from a traceframe, fallback to
4192 reading unavailable read-only memory from read-only regions of
4194 * tracepoint.c (disconnect_tracing): Adjust.
4195 (set_current_traceframe): New, factored out from
4196 set_traceframe_number.
4197 (set_traceframe_number): Reimplement to only change the traceframe
4198 number on the GDB side.
4199 (do_restore_current_traceframe_cleanup): Adjust.
4200 (make_cleanup_restore_traceframe_number): New.
4201 (cur_traceframe_number): New global.
4202 (tfile_open): Set cur_traceframe_number to no traceframe.
4203 (set_tfile_traceframe): New function.
4204 (tfile_trace_find): If looking up a traceframe using any method
4205 other than by number, make sure the current tfile traceframe
4206 matches gdb's current traceframe. Update the current tfile
4207 traceframe if the lookup succeeded.
4208 (tfile_fetch_registers, tfile_xfer_partial)
4209 (tfile_get_trace_state_variable_value): Make sure the remote
4210 traceframe matches gdb's current traceframe.
4211 * remote.c (remote_traceframe_number): New global.
4212 (remote_open_1): Set it to -1.
4213 (set_remote_traceframe): New function.
4214 (remote_fetch_registers, remote_store_registers)
4215 (remote_xfer_memory, remote_xfer_partial)
4216 (remote_get_trace_state_variable_value): Make sure the remote
4217 traceframe matches gdb's current traceframe.
4218 (remote_trace_find): If looking up a traceframe using any method
4219 other than by number, make sure the current remote traceframe
4220 matches gdb's current traceframe. Update the current remote
4221 traceframe if the lookup succeeded.
4222 * infrun.c (fetch_inferior_event): Adjust.
4223 * tracepoint.h (set_current_traceframe): Declare.
4224 (get_traceframe_number, set_traceframe_number): Add describing
4229 Mark pieces of values as unavailable if the corresponding memory
4232 * valops.c: Include tracepoint.h.
4233 (value_fetch_lazy): Use read_value_memory.
4234 (read_value_memory): New.
4235 * value.h (read_value_memory): Declare.
4236 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4237 * exec.c (section_table_available_memory): New function.
4238 * exec.h (section_table_available_memory): Declare.
4242 * Makefile.in (SFILES): Add memrange.c.
4243 (HFILES_NO_SRCDIR): Add memrange.h.
4244 (COMMON_OBS): Add memrange.o.
4245 * memrange.c: New file.
4246 * memrange.h: New file.
4247 * tracepoint.c: Include memrange.h.
4248 (struct mem_range): Delete.
4249 (mem_range_s): Delete.
4250 (traceframe_available_memory): New function.
4251 * tracepoint.h (traceframe_available_memory): Declare.
4255 * target.h (struct traceframe_info): Forward declare.
4256 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4257 (struct target_ops) <to_traceframe_info>: New field.
4258 (target_traceframe_info): New.
4259 * target.c (update_current_target): Inherit and default
4261 * remote.c (PACKET_qXfer_traceframe_info): New.
4262 (remote_protocol_features): Register qXfer:traceframe-info:read.
4263 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4264 (remote_traceframe_info): New.
4265 (init_remote_ops): Install it.
4266 (_initialize_remote): Install "set/show remote traceframe-info"
4268 * tracepoint.h (parse_traceframe_info): Declare.
4269 * tracepoint.c (struct mem_range): New.
4270 (mem_range_s): New typedef.
4271 (struct traceframe_info): New.
4272 (traceframe_info): New global.
4273 (free_traceframe_info): New function.
4274 (clear_traceframe_info): New function.
4275 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4277 (build_traceframe_info): New function.
4278 (tfile_traceframe_info): New function.
4279 (init_tfile_ops): Install tfile_traceframe_info.
4280 (traceframe_info_start_memory, free_result): New functions.
4281 (memory_attributes, traceframe_info_elements): New globals.
4282 (parse_traceframe_info, get_traceframe_info): New functions.
4283 * features/traceframe-info.dtd: New file.
4284 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4288 Base support for <unavailable> value contents.
4290 * value.h (value_bytes_available): Declare.
4291 (mark_value_bytes_unavailable): Declare.
4292 * value.c (struct range): New struct.
4293 (range_s): New typedef.
4294 (ranges_overlap): New function.
4295 (range_lessthan): New function.
4296 (ranges_contain_p): New function.
4297 (struct value) <unavailable>: New field.
4298 (value_bytes_available): New function.
4299 (mark_value_bytes_unavailable): New function.
4300 (require_not_optimized_out): Constify parameter.
4301 (require_available): New function.
4302 (value_contents_all, value_contents): Require all bytes be
4304 (value_free): Free `unavailable'.
4305 (value_copy): Copy `unavailable'.
4306 * valprint.h (val_print_unavailable): Declare.
4307 * valprint.c (valprint_check_validity): Rename `offset' parameter
4308 to `embedded_offset'. If printing a scalar, check whether the
4309 value chunk is available.
4310 (val_print_unavailable): New.
4311 (val_print_scalar_formatted): Check whether the value is
4313 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4314 pretty-printing unavailable values.
4318 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4319 * c-typeprint.c (c_type_print_args): Update the function comment. New
4320 variable param_type, initialize it. Remove const/volatile qualifiers
4321 for language_cplus and !show_artificial. Use param_type.
4325 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4326 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4327 * symtab.h (struct symtab) <next>: Comment extension.
4331 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4335 * common/Makefile.in: Add copyright header.
4339 * infrun.c (proceed): Move switching out and in of tfind mode from
4341 (fetch_inferior_event): ... to here.
4345 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4347 * configure.ac: Add common to sub dir.
4348 * configure: Regenerate.
4354 * common/Makefile.in: New.
4355 * common/configure.ac: New.
4356 * common/aclocal.m4: New.
4357 * common/configure: Generate.
4361 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4362 side of the parenthesis.
4366 * vec.h (VEC_block_remove): Fix comment.
4370 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4374 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4375 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4381 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4383 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4384 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4388 * dwarf2read.c (read_subroutine_type): Set special calling
4389 convention flag for functions compiled by IBM XL C for OpenCL.
4390 * ppc-sysv-tdep.c: Include "dwarf2.h"
4391 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4393 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4394 IBM OpenCL vector types calling convention.
4395 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4396 (ppc_sysv_abi_broken_return_value): Likewise.
4397 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4398 types calling convention.
4399 (ppc64_sysv_abi_return_value): Likewise.
4400 * spu-tdep.c: Include "dwarf2.h"
4401 (spu_return_value): Implement IBM OpenCL vector types calling
4406 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4407 correct ABI for AltiVec vector arguments.
4411 * valprint.c (val_print): Extend comment.
4412 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4413 interface explanation to val_print.
4414 (ada_val_print_array): Adjust comment to current interface.
4415 (print_field_values): Adjust comment to current interface.
4416 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4417 explanation to val_print.
4418 * f-valprint.c (f_val_print): Ditto.
4419 * jv-valprint.c (java_val_print): Ditto.
4420 * m2-valprint.c (m2_val_print): Ditto.
4421 * p-valprint.c (pascal_val_print): Ditto.
4425 * breakpoint.c (parse_breakpoint_sals): Fix description.
4430 * python/py-inferior.c (python_on_normal_stop): New function.
4431 (python_on_resume): New function.
4432 (python_inferior_exit): New function.
4433 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4434 inferior_exit observers.
4435 * python/py-evtregistry.c: New file.
4436 * python/py-threadevent.c : New file.
4437 * python/py-event.c: New file.
4438 * python/py-evts.c: New file.
4439 * python/py-continueevent.c: New file.
4440 * python/py-bpevent.c: New file.
4441 * python/py-signalevent.c: New file.
4442 * python/py-exetiedevent.c: New file.
4443 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4444 Move struct breakpoint_object from here...
4445 * python/python-internal.h: ... to here.
4446 * python/py-event.h: New file.
4447 * python/py-events.h: New file.
4448 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4449 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4450 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4451 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4452 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4453 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4454 Add build rules for all the above.
4458 * dwarf2read.c (dwarf2_section_empty_p): New function.
4459 (dwarf2_read_section): Use dwarf2_section_empty_p.
4460 (dwarf2_section_size): New function.
4461 (dwarf2_get_section_info): Unconditionally read section.
4462 (dwarf2_read_index): Use dwarf2_section_empty_p.
4463 (partial_read_comp_unit_head): Use dwarf2_section_size.
4464 (dwarf2_symbol_mark_computed): Likewise.
4468 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4472 * mips-linux-tdep.c: Include xml-syscall.h.
4473 (mips_linux_get_syscall_number): New function.
4474 (mips_linux_init_abi): Add calls to
4475 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4476 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4477 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4478 * syscalls/mips-n32-linux.xml: New file.
4479 * syscalls/mips-n64-linux.xml: New file.
4480 * syscalls/mips-o32-linux.xml: New file.
4484 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4485 Complain about inverted range entries.
4486 (dwarf2_record_block_ranges): Likewise.
4491 * breakpoint.c (update_watchpoint): Fix name of the
4492 update_global_location_list function.
4493 (print_one_breakpoint): Fix typo.
4494 (_initialize_breakpoint): Remove extra space in hbreak help
4496 * breakpoint.h (struct bp_location) <length>: Fix field
4501 * regcache.c (registers_changed_ptid): Don't explictly always
4502 clear `current_regcache'. Only clear current_thread_ptid and
4503 current_thread_arch when PTID matches. Only reinit the frame
4504 cache if PTID matches the current inferior_ptid. Move alloca(0)
4506 (registers_changed): ... here.
4510 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4511 starts with __stack_chk_guard as stack guard symbol.
4515 * disasm.c (compare_lines): Handle the end of sequence markers
4516 within the line table to better support disassembling over
4517 compilation unit boundaries.
4521 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4522 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4523 implementation even if no symbols are available.
4524 (thumb_analyze_prologue): Update call to skip_prologue_function.
4525 (arm_analyze_prologue): Likewise.
4529 * arm-tdep.c: Include "observer.h".
4530 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4531 (arm_exidx_data_key): New static variable.
4532 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4533 (struct arm_exidx_data): Likewise.
4534 (arm_exidx_data_free): New function.
4535 (arm_compare_exidx_entries): Likewise.
4536 (arm_obj_section_from_vma): Likewise.
4537 (arm_exidx_new_objfile): Likewise.
4538 (arm_find_exidx_entry): Likewise.
4539 (arm_exidx_fill_cache): Likewise.
4540 (arm_exidx_unwind_sniffer): Likewise.
4541 (arm_exidx_unwind): New global variable.
4542 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4543 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4544 observer. Register arm_exidx_data_key as objfile data.
4548 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4549 due to accessing uninitialized variable. Fix indentation.
4553 * c-valprint.c (c_value_print): When doing virtual base pointer
4554 adjustment, create a new value with adjusted contents rather than
4555 changing the contents of the value being printed (and getting it
4560 * xml-support.c (xml_find_attribute): New.
4561 (xinclude_start_include): Use it.
4562 * xml-support.h (xml_find_attribute): Declare.
4563 * memory-map.c (memory_map_start_memory)
4564 (memory_map_start_property): Use xml_find_attribute.
4565 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4567 * remote.c (start_thread): Use xml_find_attribute.
4568 * solib-target.c (library_list_start_segment)
4569 (library_list_start_section, library_list_start_library)
4570 (library_list_start_list): Use xml_find_attribute.
4571 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4572 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4573 (tdesc_start_field): Use xml_find_attribute.
4577 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4578 (BUILD_OCL_VTYPES): Update.
4582 * configure.ac: Work around non-GNU sed limitation when computing
4583 python version number.
4584 * configure: Regenerate.
4588 Fix debug printing of TYPE_INSTANCE.
4589 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4590 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4594 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4595 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4596 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4597 * ada-operator.inc: Rename the file to ...
4598 * ada-operator.def: ... here, wrap all the entries by macro OP.
4599 * expprint.c (op_name_standard): Remove all the entries. Include
4600 "std-operator.def" instead.
4601 * expression.h (enum exp_opcode): Include "std-operator.def" and
4602 "ada-operator.def". Move all the entries ...
4603 * std-operator.def: ... here, wrap all the entries by macro OP.
4607 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4608 * breakpoint.c (remove_jit_event_breakpoints): New function.
4609 * jit.c (jit_descriptor_addr): Delete.
4610 (registering_code): Delete.
4611 (clear_int): Delete.
4612 (jit_inferior_data): New variable.
4613 (struct jit_inferior_data): New type.
4614 (get_jit_inferior_data): New function.
4615 (jit_inferior_data_cleanup): New function.
4616 (jit_read_descriptor): Adjust.
4617 (jit_register_code): Adjust.
4618 (jit_breakpoint_re_set_internal): New function; move code here ...
4619 (jit_inferior_init): ... from here.
4620 (jit_breakpoint_re_set): Adjust.
4621 (jit_reset_inferior_data_and_breakpoints): New function.
4622 (jit_inferior_created_observer): Adjust.
4623 (jit_inferior_exit_hook): Adjust.
4624 (jit_executable_changed_observer): New function.
4625 (jit_event_handler): Adjust.
4626 (_initialize_jit): Adjust.
4630 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4636 * python/python.c (execute_gdb_command): Call
4637 prevent_dont_repeat.
4638 * top.c (suppress_dont_repeat): New global.
4639 (dont_repeat): Use it.
4640 (prevent_dont_repeat): New function.
4641 * command.h (prevent_dont_repeat): Declare.
4645 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4646 * python/py-breakpoint.c (bppy_set_silent): Use
4647 breakpoint_set_silent.
4648 (bppy_set_thread): Use breakpoint_set_thread.
4649 (bppy_set_task): Use breakpoint_set_task.
4650 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4651 (breakpoint_set_task): Declare.
4652 (make_breakpoint_silent): Remove.
4653 * breakpoint.c (breakpoint_set_silent): New function.
4654 (breakpoint_set_thread): Likewise.
4655 (breakpoint_set_task): Likewise.
4656 (make_breakpoint_silent): Remove.
4660 * breakpoint.h (user_breakpoint_p): Declare.
4661 * breakpoint.c (user_breakpoint_p): New function.
4662 (breakpoint_1): Use it.
4663 (save_breakpoints): Likewise.
4667 * configure.ac: Add handling of Python distribution on Windows.
4668 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4669 sysconfig variables are not defined, then do not use them.
4670 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4671 instead. On Windows, return all paths using forward-slashes
4672 rather than backslashes.
4676 * configure.ac: Remove fallback behavior for building
4677 against Python. Remove tweaking of Python include path.
4678 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4679 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4680 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4681 Always restore CPPFLAGS and LIBS after linking test.
4682 * configure: Regenerated.
4683 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4684 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4685 * python/python-internal.h: Adjust includes of Python .h files.
4689 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4694 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4699 * arm-linux-nat.c: Update calls to regcache_register_status
4700 instead of regcache_valid_p.
4701 * aix-thread.c: Likewise.
4702 * i386gnu-nat.c: Likewise.
4707 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4708 touching TYPE_FIELD_ARTIFICIAL.
4712 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4717 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4718 selected, don't try iterating over the traceframe's blocks.
4719 (tfile_has_stack): If there's no traceframe selected, then there's
4721 (tfile_has_registers): If there's no traceframe selected, then
4722 there's no registers.
4726 * target.c (memory_xfer_partial): No need to restore shadows if we
4727 haven't read anything.
4731 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4732 and val_print_scalar_formatted.
4736 * tracepoint.c (tfile_read): New.
4737 (tfile_open): Use it.
4738 (tfile_get_traceframe_address): Use it.
4739 (tfile_trace_find): Use it.
4740 (walk_blocks_callback_func): New typedef.
4741 (match_blocktype): New function.
4742 (traceframe_walk_blocks): New function.
4743 (traceframe_find_block_type): New function.
4744 (tfile_fetch_registers, tfile_xfer_partial)
4745 (tfile_get_trace_state_variable_value): Use
4746 traceframe_find_block_type and tfile_read.
4750 * remote-mips.c: Add internationalization mark ups. Remove
4751 trailing \n from already marked up strings.
4755 * python/py-prettyprint.c (print_string_repr): Clear
4756 'addressprint' option when calling val_print_string.
4757 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4758 option when calling val_print_string.
4762 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4764 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4766 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4767 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4768 (gdb_py_long_as_ulongest): New defines.
4769 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4770 (gdb_py_int_as_long): Declare.
4771 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4772 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4773 (valpy_long): Add comment.
4774 * python/py-utils.c (get_addr_from_python): Use
4775 gdb_py_long_as_ulongest. Handle overflow properly.
4776 (gdb_py_object_from_longest): New function.
4777 (gdb_py_object_from_ulongest): Likewise.
4778 (gdb_py_int_as_long): Likewise.
4779 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4780 * python/py-symtab.c (salpy_get_pc): Use
4781 gdb_py_long_from_ulongest.
4782 (salpy_get_line): Use PyInt_FromLong.
4783 * python/py-param.c (set_parameter_value): Use
4785 * python/py-lazy-string.c (stpy_get_address): Use
4786 gdb_py_long_from_ulongest.
4787 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4788 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4789 * python/py-breakpoint.c (bppy_set_thread): Use
4791 (bppy_set_task): Likewise.
4792 (bppy_set_ignore_count): Likewise.
4793 (bppy_set_hit_count): Likewise.
4794 * python/py-block.c (blpy_get_start): Use
4795 gdb_py_object_from_ulongest.
4796 (blpy_get_end): Likewise.
4797 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4802 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4803 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4804 equality test for objfile, initialize addr_low if needed.
4808 * tui/tui-regs.c (tui_register_format): Remove dead code.
4812 * printcmd.c (print_formatted): Use val_print_scalar_formatted
4813 instead of print_scalar_formatted.
4814 (print_scalar_formatted): Don't handle 's' format strings here,
4815 and add an assertion that we never see such format here.
4816 * valprint.h (val_print_scalar_formatted): Declare.
4817 * valprint.c (val_print_scalar_formatted): New.
4818 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
4819 instead of print_scalar_formatted.
4820 * jv-valprint.c (java_val_print): Ditto.
4821 * p-valprint.c (pascal_val_print): Ditto.
4822 * ada-valprint.c (ada_val_print_1): Ditto.
4823 * f-valprint.c (f_val_print): Ditto.
4824 * infcmd.c (registers_info): Ditto.
4825 * m2-valprint.c (m2_val_print): Ditto.
4829 * m2-valprint.c (print_unbounded_array): Pass
4830 value_contents_for_printing rather than value_contents, to
4831 m2_print_array_contents. Also pass in the value.
4835 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4836 (save_gdb_index_command): Switch to .gdb_index version 4.
4840 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4841 than frame_register, and always pass a valid value to val_print.
4845 Centralize printing "<optimized out>".
4847 * valprint.h (val_print_optimized_out): Declare.
4848 * cp-valprint.c (cp_print_value_fields): Use
4849 val_print_optimized_out.
4850 * jv-valprint.c (java_print_value_fields): Ditto.
4851 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4852 * printcmd.c (print_formatted): Ditto.
4853 * valprint.c (valprint_check_validity): Ditto.
4854 (value_check_printable): Ditto.
4855 (val_print_optimized_out): New.
4859 * infcmd.c (default_print_registers_info): Allocate values so to
4860 never pass a NULL value to val_print.
4864 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4865 boolean. Make sure to always pass a value that matches the
4866 contents buffer to callees. Preserve `address' for following
4868 * value.c (value_contents_for_printing_const): New.
4869 (value_address): Constify value argument.
4870 * value.h (value_contents_for_printing_const): Declare.
4871 (value_address): Constify value argument.
4875 * regcache.c (struct regcache_descr): Rename
4876 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4877 and sizeof_cooked_register_valid_p to
4878 sizeof_cooked_register_status.
4879 (init_regcache_descr): Adjust.
4880 (struct regcache): Rename register_valid_p field to
4882 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4883 (do_cooked_read): Adjust.
4884 (regcache_valid_p): Rename to ...
4885 (regcache_register_status): ... this. Adjust.
4886 (regcache_invalidate): Adjust.
4887 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4889 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4890 as unavailable, not valid.
4891 (regcache_dump): Adjust.
4892 * regcache.h (enum register_status): New.
4893 (regcache_register_status): Declare.
4894 (regcache_invalidate): Delete declaration.
4895 * corelow.c (get_core_registers): Adjust.
4896 * tracepoint.c (tfile_fetch_registers): Adjust.
4897 * trad-frame.c (REG_VALUE): Rename to ...
4898 (TF_REG_VALUE): ... this.
4899 (REG_UNKNOWN): Rename to ...
4900 (TF_REG_UNKNOWN): ... this.
4901 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4902 * mi/mi-main.c (register_changed_p): Adjust.
4906 * regcache.c (struct regcache_descr): Remove outdated comment.
4907 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4909 (regcache_xmalloc): Rename to ...
4910 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4911 Allocate the regcache type accordingly.
4912 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4913 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4914 cooked registers, not raw.
4915 (regcache_dup_no_passthrough): Delete.
4916 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4917 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4918 mention obsolete write_register_bytes.
4919 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4923 Stop remote_read_bytes from handling partial reads itself.
4925 * remote-fileio.c: Include target.h.
4926 (remote_fileio_write_bytes): Delete.
4927 (remote_fileio_func_open, remote_fileio_func_write)
4928 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4930 (remote_fileio_func_stat): Use target_read_memory and
4931 target_write_memory.
4932 (remote_fileio_func_gettimeofday): Use target_write_memory.
4933 (remote_fileio_func_system): Use target_read_memory.
4934 * remote.c (remote_write_bytes): Make it static.
4935 (remote_read_bytes): Don't handle partial reads here.
4936 * remote.h (remote_read_bytes): Delete declaration.
4940 Simplify XML parsing a bit.
4942 * xml-support.h (gdb_xml_parse_quick): Declare.
4943 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4944 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4946 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4947 gdb_xml_create_parser_and_cleanup_1.
4948 (gdb_xml_parse_quick): New.
4949 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4950 * osdata.c (osdata_parse): Ditto.
4951 * remote.c (remote_threads_info): Ditto.
4952 * solib-target.c (solib_target_parse_libraries): Ditto.
4953 * xml-syscall.c (syscall_parse_xml): Ditto.
4954 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4958 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4959 with remote-mips.o added to gdb_target_obs.
4960 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4964 * ada-valprint.c (val_print_packed_array_elements): Pass the
4965 correct struct value to val_print.
4966 (ada_val_print_1): Ditto.
4970 Don't lose embedded_offset in printing routines throughout.
4972 * valprint.h (val_print_array_elements): Change prototype.
4973 * valprint.c (val_print_array_elements): Add `embedded_offset'
4974 parameter, and adjust to pass it down to val_print, while passing
4975 `valaddr' or `address' unmodified. Take embedded_offset into
4976 account when checking repetitions.
4977 * c-valprint.c (c_val_print): Pass embedded_offset to
4978 val_print_array_elements instead of adjusting `valaddr' and
4980 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4981 embedded_offset to val_print_array_elements instead of adjusting
4983 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4984 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4985 val_print_array_elements and pascal_object_print_value_fields
4986 instead of adjusting `valaddr'.
4987 (pascal_object_print_value_fields): Add `offset' parameter, and
4989 (pascal_object_print_value): Add `offset' parameter, and adjust to
4991 (pascal_object_print_static_field): Use
4992 value_contents_for_printing/value_embedded_offset, rather than
4994 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4995 parameter, and adjust to use it. Use
4996 value_contents_for_printing/value_embedded_offset, rather than
4998 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4999 (ada_val_print_array): Add `offset' parameter, and adjust to use
5001 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5002 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5003 Instead work with offsets. Use
5004 value_contents_for_printing/value_embedded_offset, rather than
5005 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5006 and use value_from_pointer to extract a target pointer, rather
5007 than value_from_longest.
5008 (print_variant_part): Add `offset' parameter. Replace
5009 `outer_valaddr' parameter by a new `outer_offset' parameter.
5010 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5011 (ada_value_print): Use
5012 value_contents_for_printing/value_embedded_offset, rather than
5014 (print_record): Add `offset' parameter, and adjust to pass it
5016 (print_field_values): Add `offset' parameter. Replace
5017 `outer_valaddr' parameter by a new `outer_offset' parameter.
5018 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5019 Use value_contents_for_printing/value_embedded_offset, rather than
5021 * d-valprint.c (dynamic_array_type): Use
5022 value_contents_for_printing/value_embedded_offset, rather than
5024 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5025 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5026 (java_print_value_fields): Take `offset' into account. Don't
5027 re-adjust `valaddr'. Instead pass down adjusted offsets.
5028 (java_val_print): Take `embedded_offset' into account. Pass it to
5029 java_print_value_fields.
5030 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5031 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5032 down adjusted offsets.
5033 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5034 (f_val_print): Take `embedded_offset' into account.
5038 * inflow.c: Include "gdbcmd.h".
5039 (interactive_mode): New static global, moved here from top.c.
5040 (show_interactive_mode): New function, moved here from top.c.
5041 use gdb_has_a_terminal instead of input_from_terminal_p to
5042 determine the current mode.
5043 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5045 (_initialize_inflow): Add the "set/show interactive-mode"
5046 commands. Moved here from top.c, after having adjusted slightly
5048 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5050 (input_from_terminal_p): Remove handling of "interactive-mode"
5051 setting, moved to infow.c.
5052 (init_main): Remove creation of the "set/show interactive-mode"
5053 commands, moved to inflow.c.
5057 * NEWS: Add entry for native ia64-hpux support.
5062 * thread.c (free_thread): Free 'name'.
5063 (print_thread_info): Emit thread name. Change CLI output.
5064 (thread_name_command): New function.
5065 (do_captured_thread_select): Emit newline.
5066 (_initialize_thread): Register 'thread name' command.
5067 * target.h (struct target_ops) <to_thread_name>: New field.
5068 (target_thread_name): New macro.
5069 * target.c (update_current_target): Handle to_thread_name.
5070 * python/py-infthread.c (thpy_get_name): New function.
5071 (thpy_set_name): Likewise.
5072 (thread_object_getset): Add "name".
5073 * linux-nat.c (linux_nat_thread_name): New function.
5074 (linux_nat_add_target): Set to_thread_name.
5075 * gdbthread.h (struct thread_info) <name>: New field.
5079 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5080 (ada_val_print_1): Likewise.
5084 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5085 upper limit address is not greater than the function end address
5086 when the upper limit could not be computed using the debugging
5091 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5093 * utils.c: Include gdb_regex.h.
5094 (do_regfree_cleanup): New function.
5095 (make_regfree_cleanup): Likewise.
5096 (get_regcomp_error): Likewise.
5097 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5101 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5106 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5107 for internal variables.
5108 (last_was_structop): New static variable.
5109 (COMPLETE): New token.
5110 (field_exp): New rule to group all '.' suffix handling.
5111 Add mark_struct_expression calls when approriate to be able
5112 to correctly find fields for completion.
5113 (yylex): Adapt to handle field completion and set INTVAR when
5118 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5119 save_reggroup, restore_reggroup and all_reggroup.
5123 * ada-valprint. (ada_printchar): Use the correct type length
5124 in call to ada_emit_char.
5125 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5129 * solib-som.h (hpux_major_release): Declare variable here.
5130 * solib-som.c: Remove <sys/utsname.h> header.
5131 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5132 (hpux_major_release): Make global, change default value to
5133 DEFAULT_HPUX_MAJOR_RELEASE.
5134 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
5135 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5136 Add "solib-som.h" header.
5137 (set_hpux_major_release): New function.
5138 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5142 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5146 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5147 new-line at end of warning message.
5148 (ia64_hpux_store_register): Remove trailing new-line at end of
5150 * ia64-hpux-tdep.c: Rephrase comment.
5151 * solib-ia64-hpux.c (struct dld_info): Change type of field
5152 dld_flags from "long long" to ULONGEST.
5156 * target.h (deprecated_child_ops): Delete declaration.
5157 * target.c (deprecated_child_ops): Delete definition.
5161 * Makefile.in (hpux-thread.o): Delete rule.
5162 * configure.ac: Don't check for HPUX DCE threads support.
5163 * configure, config.in: Regenerate.
5164 * hppa-hpux-nat.c (child_suppress_run): Delete.
5165 (hppa_hpux_child_can_run): Delete.
5166 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5167 * hpux-thread.c: Delete.
5171 * hpux-thread.c (hpux_pid_to_str): Delete.
5175 * ada-valprint.c (ada_emit_char): Remove strange code.
5176 Check that c is <= UCHAR_MAX before passing it to isascii.
5177 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5181 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5182 to the case where instream is stdin.
5186 * ia64-tdep.h (struct regcache): Forward declare.
5187 (struct ia64_infcall_ops): New struct type.
5188 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5190 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5191 Renames ia64_find_global_pointer.
5192 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5193 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5194 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5196 (ia64_infcall_ops): New static global constant.
5197 (ia64_gdbarch_init): Set tdep->infcall_ops.
5198 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5199 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5200 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5201 (ia64_hpux_dummy_code): New static global constant.
5202 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5203 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5204 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5206 (ia64_hpux_infcall_ops): New static global constant.
5207 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5208 for inferior function calls to work properly on ia64-hpux.
5212 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5213 * ia64-tdep.h (struct frame_info): forward declaration.
5214 (struct gdbarch_tdep): Add field size_of_register_frame.
5215 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5216 to determine the size of the register frame.
5217 (ia64_size_of_register_frame): New function.
5218 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5219 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5220 (IA64_HPUX_UREG_REASON): New macro.
5221 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5223 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5224 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5225 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5230 Add support for ia64-hpux.
5231 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5232 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5234 * configure.host: Add handling for ia64-hpux hosts. Add associated
5236 * configure.tgt: Add handling for ia64-hpux targets.
5237 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5238 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5239 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5243 [ttrace] Compute thread list immediately after attach.
5244 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5246 (inf_ttrace_attach): Use it.
5250 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5251 if we could not determine the frame's function address. Instead,
5252 use the frame's PC, and then continue.
5256 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5257 not already defined.
5261 * ia64-tdep.c (ia64_struct_type_p): New function.
5262 (ia64_extract_return_value): Handle integral values that are
5263 less than 8 bytes long.
5264 (ia64_push_dummy_call): Likewise.
5268 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5269 floatformat_ia64_ext.
5270 (floatformat_ia64_ext_big): New static const.
5271 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5275 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5277 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5278 (mi_cmd_thread_list_ids): Likewise.
5279 (mi_cmd_data_list_changed_registers): Likewise.
5280 (mi_cmd_data_list_register_values): Likewise.
5281 (mi_cmd_data_write_register_values): Likewise.
5282 (mi_cmd_data_evaluate_expression): Likewise.
5283 (mi_cmd_data_read_memory): Likewise.
5284 (mi_cmd_data_read_memory_bytes): Likewise.
5285 (mi_cmd_data_write_memory): Likewise.
5286 (mi_cmd_enable_timings): Likewise.
5287 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5288 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5289 (mi_cmd_var_delete): Likewise.
5290 (mi_cmd_var_set_format): Likewise.
5291 (mi_cmd_var_show_format): Likewise.
5292 (mi_cmd_var_info_num_children): Likewise.
5293 (mi_cmd_var_list_children): Likewise.
5294 (mi_cmd_var_info_type): Likewise.
5295 (mi_cmd_var_info_expression): Likewise.
5296 (mi_cmd_var_show_attributes): Likewise.
5297 (mi_cmd_var_assign): Likewise.
5298 (mi_cmd_var_update): Likewise.
5299 (mi_cmd_enable_pretty_printing): Likewise.
5300 (mi_cmd_var_set_update_range): Likewise.
5301 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5303 (mi_cmd_target_file_put): Likewise.
5304 (mi_cmd_target_file_delete): Likewise.
5305 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5307 (mi_cmd_stack_info_depth): Likewise.
5308 (mi_cmd_stack_list_locals): Likewise.
5309 (mi_cmd_stack_list_args): Likewise.
5310 (mi_cmd_stack_select_frame): Likewise.
5311 (mi_cmd_stack_select_frame): Likewise.
5312 (mi_cmd_stack_info_frame): Likewise.
5313 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5315 (mi_cmd_file_list_exec_source_files): Likewise.
5316 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5317 (mi_cmd_env_cd): Likewise.
5318 (mi_cmd_env_path): Likewise.
5319 (mi_cmd_env_dir): Likewise.
5320 (mi_cmd_inferior_tty_show): Likewise.
5321 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5322 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5323 (mi_cmd_break_watch): Likewise.
5327 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5328 (ppc_linux_insert_hw_breakpoint): Likewise.
5329 (ppc_linux_remove_hw_breakpoint): Likewise.
5330 (ppc_linux_insert_watchpoint): Likewise.
5335 PR fortran/11104 and DWARF unbound arrays detection.
5336 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5337 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5338 unspecified upper bound.
5339 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5340 variables array_size_array, tmp_type and offset_item. New variable
5341 array. Remove call to f77_get_upperbound. New variables array_type
5342 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5343 the final call to deprecated_set_value_type.
5347 Make value allocations more lazy.
5348 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5349 instead of allocate_value and set_value_lazy when possible.
5350 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
5351 instead of allocate_value and set_value_lazy.
5352 * findvar.c (value_of_register_lazy): Likewise.
5353 (read_var_value): Remove V preallocation, call just check_typedef in
5354 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
5355 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5356 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5357 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5358 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5359 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5360 the end, remove set_value_lazy there.
5361 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5362 instead of allocate_value and set_value_lazy when possible.
5363 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5364 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5365 of allocate_value and set_value_lazy.
5366 (value_from_contents_and_address): Use allocate_value_lazy instead of
5367 allocate_value and set_value_lazy when possible.
5371 * disasm.c (dump_insns): Support dumping opcodes for MI.
5372 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5373 dumping of instruction opcodes.
5377 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5382 * thread.c (do_captured_thread_select): Emit newline before
5387 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5388 * score-tdep.c: Ditto.
5389 * score-tdep.h: Ditto.
5390 * ser-base.c: Ditto.
5391 * ser-go32.c: Ditto.
5394 * ser-mingw.c: Ditto.
5395 * ser-pipe.c: Ditto.
5397 * ser-unix.c: Ditto.
5398 * sh64-tdep.c: Ditto.
5399 * shnbsd-nat.c: Ditto.
5403 * solib-darwin.c: Ditto.
5404 * solib-frv.c: Ditto.
5406 * solib-irix.c: Ditto.
5407 * solib-osf.c: Ditto.
5408 * solib-pa64.c: Ditto.
5409 * solib-som.c: Ditto.
5410 * solib-spu.c: Ditto.
5411 * solib-sunos.c: Ditto.
5412 * solib-svr4.c: Ditto.
5414 * sol-thread.c: Ditto.
5418 * sparc64-linux-tdep.c: Ditto.
5419 * sparc64-tdep.c: Ditto.
5420 * sparc-linux-nat.c: Ditto.
5421 * sparc-linux-tdep.c: Ditto.
5422 * sparc-sol2-nat.c: Ditto.
5423 * sparc-sol2-tdep.c: Ditto.
5424 * sparc-tdep.c: Ditto.
5425 * sparc-tdep.h: Ditto.
5426 * spu-tdep.c: Ditto.
5427 * stabsread.c: Ditto.
5428 * stabsread.h: Ditto.
5436 * target-descriptions.c: Ditto.
5437 * target-descriptions.h: Ditto.
5439 * target-memory.c: Ditto.
5440 * terminal.h: Ditto.
5443 * tracepoint.c: Ditto.
5444 * tracepoint.h: Ditto.
5445 * trad-frame.h: Ditto.
5446 * typeprint.c: Ditto.
5450 * ui-file.c: Comment cleanup, mostly periods and spaces.
5455 * v850-tdep.c: Ditto.
5456 * valarith.c: Ditto.
5458 * valprint.c: Ditto.
5459 * valprint.h: Ditto.
5464 * vax-tdep.c: Ditto.
5468 * windows-nat.c: Ditto.
5469 * windows-tdep.c: Ditto.
5470 * xcoffread.c: Ditto.
5471 * xcoffsolib.c: Ditto.
5472 * xml-support.c: Ditto.
5473 * xstormy16-tdep.c: Ditto.
5474 * xtensa-tdep.c: Ditto.
5475 * xtensa-tdep.h: Ditto.
5479 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5480 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5485 Implement support for PowerPC BookE ranged watchpoints.
5487 (struct breakpoint_ops) <resources_needed>: New method.
5488 Initialize to NULL in all existing breakpoint_ops instances.
5489 (struct breakpoint) <exact>: New field.
5490 (target_exact_watchpoints): Declare external global.
5491 * breakpoint.c (target_exact_watchpoints): New global flag.
5492 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5493 b->enable_state to bp_enabled before calling
5494 hw_watchpoint_used_count.
5495 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5496 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5498 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5499 if the watchpoint is exact.
5500 (resources_needed_watchpoint): New function.
5501 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5502 (watch_command_1): Set b->exact if the user asked for an exact
5503 watchpoint and one can be set.
5504 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5505 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5506 the user asks for an exact watchpoint and one can be set. Return
5507 number of needed debug registers to watch the expression.
5508 * gdbtypes.c (is_scalar_type): New function, based on
5509 valprint.c:scalar_type_p.
5510 (is_scalar_type_recursive): New function.
5511 * gdbtypes.h (is_scalar_type_recursive): Declare.
5512 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5513 handle regions when ranged watchpoints are available.
5514 (create_watchpoint_request): New function.
5515 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5516 create_watchpoint_request.
5517 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5518 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5519 `set powerpc' and `show powerpc' commands.
5520 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5521 Mention documentation comment in the target macro.
5522 (target_region_ok_for_hw_watchpoint): Document return value.
5526 * breakpoint.c (update_watchpoint): Decide on using a software or
5527 hardware watchpoint after the bp_locations are created.
5531 Convert hardware watchpoints to use breakpoint_ops.
5532 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5533 <insert_location>: ... this. Return int instead of void.
5534 Accept pointer to struct bp_location instead of pointer to
5535 struct breakpoint. Adapt all implementations.
5536 (breakpoint_ops) <remove>: Rename to...
5537 <remove_location>: ... this. Accept pointer to struct bp_location
5538 instead of pointer to struct breakpoint. Adapt all implementations.
5539 * breakpoint.c (insert_catchpoint): Delete function.
5540 (insert_bp_location): Call the watchpoint or catchpoint's
5541 breakpoint_ops.insert method.
5542 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5543 breakpoint_ops.remove method.
5544 (insert_watchpoint, remove_watchpoint): New functions.
5545 (watchpoint_breakpoint_ops): New structure.
5546 (watch_command_1): Initialize the OPS field.
5547 * inf-child.c (inf_child_insert_fork_catchpoint)
5548 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5549 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5550 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5552 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5553 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5554 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5555 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5556 * target.c (update_current_target): Change default implementation of
5557 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5558 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5559 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5560 to_set_syscall_catchpoint to return_one.
5561 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5562 (debug_to_insert_exec_catchpoint): Report return value.
5563 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5564 (to_insert_exec_catchpoint): Change declaration to return int instead
5569 * arm-tdep.c: Internationalization.
5572 * fork-child.c: Ditto.
5573 * nto-procfs.c: Ditto.
5574 * ppc-sysv-tdep.c: Ditto.
5576 * remote-mips.c: Ditto.
5578 * rs6000-nat.c: Ditto.
5579 * rs6000-tdep.c: Ditto.
5583 * xml-support.c: Ditto.
5584 * mi/mi-cmd-break.c: Ditto.
5585 * mi/mi-cmd-var.c: Ditto.
5586 * mi/mi-interp.c: Ditto.
5587 * mi/mi-main.c: Ditto.
5591 * remote-sim.c (gdbsim_store_register): Update API to
5592 sim_store_register to check more error conditions.
5596 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5597 * nto-tdep.c: Ditto.
5598 * nto-tdep.h: Ditto.
5599 * objc-exp.y: Ditto.
5600 * objc-lang.c: Ditto.
5601 * objfiles.c: Ditto.
5602 * objfiles.h: Ditto.
5603 * observer.c: Ditto.
5604 * opencl-lang.c: Ditto.
5607 * parser-defs.h: Ditto.
5610 * posix-hdep.c: Ditto.
5611 * ppcbug-rom.c: Ditto.
5612 * ppc-linux-nat.c: Ditto.
5613 * ppc-linux-tdep.c: Ditto.
5614 * ppc-linux-tdep.h: Ditto.
5615 * ppcnbsd-tdep.c: Ditto.
5616 * ppcobsd-tdep.c: Ditto.
5617 * ppcobsd-tdep.h: Ditto.
5618 * ppc-sysv-tdep.c: Ditto.
5619 * ppc-tdep.h: Ditto.
5620 * printcmd.c: Ditto.
5621 * proc-abi.c: Ditto.
5622 * proc-flags.c: Ditto.
5624 * proc-utils.h: Ditto.
5625 * progspace.h: Ditto.
5626 * prologue-value.c: Ditto.
5627 * prologue-value.h: Ditto.
5628 * psympriv.h: Ditto.
5630 * p-typeprint.c: Ditto.
5631 * p-valprint.c: Ditto.
5632 * ravenscar-sparc-thread.c: Ditto.
5633 * ravenscar-thread.c: Ditto.
5634 * ravenscar-thread.h: Ditto.
5636 * regcache.c: Ditto.
5637 * regcache.h: Ditto.
5639 * remote-fileio.c: Ditto.
5640 * remote-fileio.h: Ditto.
5642 * remote-m32r-sdi.c: Ditto.
5643 * remote-mips.c: Ditto.
5644 * remote-sim.c: Ditto.
5645 * rs6000-aix-tdep.c: Ditto.
5646 * rs6000-nat.c: Ditto.
5647 * rs6000-tdep.c: Ditto.
5651 * charset.c (validate): Internationalization.
5652 * coffread.c (read_one_sym): Ditto.
5653 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5654 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5655 * inflow.c (new_tty): Ditto.
5656 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5657 * m32c-tdep.c (m32c_return_value): Ditto.
5658 * mep-tdep.c (mep_store_return_value): Ditto.
5659 * score-tdep.c (score7_fetch_insn): Ditto.
5660 * ser-mingw.c (pipe_windows_open): Ditto.
5661 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5662 * spu-tdep.c (spu_register_type): Ditto.
5663 * tracepoint.c (trace_find_command): Ditto.
5664 * valarith.c (value_pos): Ditto.
5668 * ada-valprint.c (printstr): Minor comment reformatting.
5672 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5677 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5678 * hppa-hpux-tdep.c: Ditto.
5679 * hppa-linux-nat.c: Ditto.
5680 * hppa-linux-tdep.c: Ditto.
5681 * hppanbsd-tdep.c: Ditto.
5682 * hppa-tdep.c: Ditto.
5683 * hppa-tdep.h: Ditto.
5684 * hpux-thread.c: Ditto.
5685 * i386-cygwin-tdep.c: Ditto.
5686 * i386-darwin-nat.c: Ditto.
5687 * i386gnu-nat.c: Ditto.
5688 * i386-linux-nat.c: Ditto.
5689 * i386-linux-tdep.c: Ditto.
5690 * i386-nat.c: Ditto.
5691 * i386-nat.h: Ditto.
5692 * i386nbsd-tdep.c: Ditto.
5693 * i386-sol2-nat.c: Ditto.
5694 * i386-stub.c: Ditto.
5695 * i386-tdep.c: Ditto.
5696 * i386-tdep.h: Ditto.
5697 * i387-tdep.c: Ditto.
5698 * ia64-linux-nat.c: Ditto.
5699 * ia64-linux-tdep.c: Ditto.
5700 * ia64-tdep.c: Ditto.
5704 * inferior.c: Ditto.
5705 * inferior.h: Ditto.
5711 * iq2000-tdep.c: Ditto.
5712 * irix5-nat.c: Ditto.
5718 * jv-typeprint.c: Ditto.
5719 * jv-valprint.c: Ditto.
5720 * language.c: Ditto.
5721 * language.h: Ditto.
5722 * linespec.c: Ditto.
5723 * linux-fork.c: Ditto.
5724 * linux-nat.c: Ditto.
5725 * linux-thread-db.c: Ditto.
5726 * lm32-tdep.c: Ditto.
5730 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5732 * m2-typeprint.c: Ditto.
5733 * m2-valprint.c: Ditto.
5734 * m32c-tdep.c: Ditto.
5735 * m32r-linux-nat.c: Ditto.
5736 * m32r-rom.c: Ditto.
5737 * m32r-tdep.c: Ditto.
5738 * m32r-tdep.h: Ditto.
5739 * m68hc11-tdep.c: Ditto.
5740 * m58klinux-nat.c: Ditto.
5741 * m68k-tdep.c: Ditto.
5742 * m88k-tdep.c: Ditto.
5743 * m88k-tdep.h: Ditto.
5744 * machoread.c: Ditto.
5745 * macrocmd.c: Ditto.
5746 * macroexp.c: Ditto.
5747 * macrotab.c: Ditto.
5750 * mdebugread.c: Ditto.
5751 * mdebugread.h: Ditto.
5754 * memory-map.h: Ditto.
5755 * mep-tdep.c: Ditto.
5756 * microblaze-rom.c: Ditto.
5757 * microblaze-tdep.c: Ditto.
5759 * mips-irix-tdep.c: Ditto.
5760 * mips-linux-nat.c: Ditto.
5761 * mips-linux-tdep.c: Ditto.
5762 * mips-linux-tdep.h: Ditto.
5763 * mipsnbsd-nat.c: Ditto.
5764 * mipsnbsd-tdep.c: Ditto.
5765 * mipsread.c: Ditto.
5766 * mips-tdep.c: Ditto.
5767 * mips-tdep.h: Ditto.
5768 * mn10300-linux-tdep.c: Ditto.
5769 * mn10300-tdep.c: Ditto.
5770 * mn10300-tdep.h: Ditto.
5773 * moxie-tdep.c: Ditto.
5774 * moxie-tdep.h: Ditto.
5779 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5783 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5787 * charset.c (_initialize_charset): Fix typo in string.
5791 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5793 * tui/tui-layout.c (tui_set_layout_for_display_command):
5794 Split line so that operator goes to beginning of line.
5795 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5796 assignment out of if statement.
5800 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5801 * ada-lang.h: Ditto.
5802 * ada-tasks.c: Ditto.
5803 * ada-valprint.c: Ditto.
5804 * aix-threads.c: Ditto.
5805 * alpha-linux-nat.c: Ditto.
5806 * alpha-linux-tdep.c: Ditto.
5807 * alpha-mdebug-tdep.c: Ditto.
5808 * alpha-nat.c: Ditto.
5809 * alpha-osf1-tdep.c: Ditto.
5810 * alpha-tdep.c: Ditto.
5811 * alphabsd-nat.c: Ditto.
5812 * alphabsd-tdep.c: Ditto.
5813 * amd64-darwin-tdep.c: Ditto.
5814 * amd64-linux-nat.c: Ditto.
5815 * amd64-linux-tdep.c: Ditto.
5816 * amd64-sol2-tdep.c: Ditto.
5817 * amd64-tdep.c: Ditto.
5818 * amd64-fbsd-tdep.c: Ditto.
5819 * amd64-nbsd-tdep.c: Ditto.
5820 * amd64-obsd-tdep.c: Ditto.
5821 * amd64-linux-nat.c: Ditto.
5822 * amd64-linux-tdep.c: Ditto.
5823 * arm-tdep.c: Ditto.
5824 * arm-tdep.h: Ditto.
5825 * armnbsd-nat.c: Ditto.
5826 * avr-tdep.c: Ditto.
5827 * bfin-tdep.c: Ditto.
5829 * c-typeprintc: Ditto.
5830 * c-valprint.c: Ditto.
5831 * coff-pe-read.h: Ditto.
5832 * coffreead.c: Ditto.
5833 * cris-tdep.c: Ditto.
5835 * darwin-nat-info.c: Ditto.
5836 * darwin-nat.c: Ditto.
5837 * dbug-rom.c: Ditto.
5841 * dec-thread.c: Ditto.
5843 * demangle.c: Ditto.
5844 * dicos-tdep.c: Ditto.
5845 * dictionary.c: Ditto.
5846 * dictionary.h: Ditto.
5847 * dink32-rom.c: Ditto.
5849 * doublest.c: Ditto.
5851 * dummy-frame.c: Ditto.
5852 * dwarf2-frame.c: Ditto.
5853 * dwarf2expr.c: Ditto.
5854 * dwarf2loc.c: Ditto.
5855 * dwarf2read.c: Ditto.
5859 * event-top.h: Ditto.
5860 * exceptions.c: Ditto.
5861 * exceptions.h: Ditto.
5863 * expprint.c: Ditto.
5864 * expression.h: Ditto.
5868 * f-typeprint.c: Ditto.
5869 * f-valprint.c: Ditto.
5870 * fbsd-nat.c: Ditto.
5872 * fork-child.c: Ditto.
5875 * frv-linux-tdep.c: Ditto.
5876 * frv-tdep.c: Ditto.
5878 * gdb-stabs.h: Ditto.
5879 * gdb_assert.h: Ditto.
5880 * gdb_string.h: Ditto.
5881 * gdb_thread_db.h: Ditto.
5882 * gdb_wait.h: Ditto.
5883 * gdbarch.sh: Ditto.
5885 * gdbthread.h: Ditto.
5886 * gdbtypes.c: Ditto.
5887 * gdbtypes.h: Ditto.
5890 * gnu-v2-abi.c: Ditto.
5891 * gnu-v3-abi.c: Ditto.
5892 * go32-nat.c: Ditto.
5893 * gdbarch.c: Regenerate.
5894 * gdbarch.h: Regenerate.
5898 * ax-gdb.c: Adjust some long output strings.
5899 * breakpoint.c: Ditto.
5904 * linux-nat.c: Ditto.
5905 * solib-pa64.c: Ditto.
5906 * solib-som.c: Ditto.
5912 * python/python.c (GdbMethods): Add "newest_frame" method.
5913 * python/python-internal.h (gdbpy_newest_frame): Declare.
5914 * python/py-frame.c (gdbpy_newest_frame): New function.
5918 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5919 * jit.c (jit_debug): New variable.
5920 (show_jit_debug): New function.
5921 (struct target_buffer): Use ULONGEST.
5922 (bfd_open_from_target_memory): Likewise.
5923 (jit_register_code, jit_inferior_init): Add debug output.
5924 (_initialize_jit): Register "debug jit" command.
5928 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5929 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5934 * python/py-frame.c (frapy_block): Use get_frame_block.
5938 Do not stop on SIGPRIO signals by default
5939 * infrun.c (_initialize_infrun): Unset signal_stop and
5940 signal_print for TARGET_SIGNAL_PRIO.
5944 * ada-tasks.c: Fix style violation in comment.
5948 * linespec.c (decode_compound, find_method): Remove trailing \n
5949 at end of error string.
5950 * solib-irix.c (irix_current_sos): Likewise.
5951 * varobj.c (uninstall_variable): Likewise.
5955 * copyright.py: New script.
5956 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5957 Launch emacs without exec'ing. Call copyright.py afterwards.
5961 * addrmap.c: Shorten lines of >= 80 columns.
5962 * arch-utils.c: Ditto.
5963 * arch-utils.h: Ditto.
5965 * ax-general.c: Ditto.
5967 * blockframe.c: Ditto.
5968 * breakpoint.c: Ditto.
5969 * buildsym.c: Ditto.
5971 * c-typeprint.c: Ditto.
5973 * coffread.c: Ditto.
5977 * cp-namespace.c: Ditto.
5978 * cp-support.c: Ditto.
5979 * dbug-rom.c: Ditto.
5984 * dictionary.c: Ditto.
5986 * doublest.c: Ditto.
5987 * dwarf2-frame.c: Ditto.
5988 * dwarf2expr.c: Ditto.
5989 * dwarf2loc.c: Ditto.
5990 * dwarf2read.c: Ditto.
5993 * event-loop.c: Ditto.
5994 * event-loop.h: Ditto.
5995 * exceptions.h: Ditto.
5997 * expprint.c: Ditto.
5998 * expression.h: Ditto.
6000 * f-valprint.c: Ditto.
6002 * frame-base.c: Ditto.
6003 * frame-unwind.c: Ditto.
6004 * frame-unwind.h: Ditto.
6008 * gdb-stabs.h: Ditto.
6009 * gdb_assert.h: Ditto.
6010 * gdb_dirent.h: Ditto.
6011 * gdb_obstack.h: Ditto.
6013 * gdbtypes.c: Ditto.
6014 * gdbtypes.h: Ditto.
6015 * inf-ttrace.c: Ditto.
6020 * inline-frame.h: Ditto.
6021 * language.c: Ditto.
6022 * language.h: Ditto.
6023 * libunwind-frame.c: Ditto.
6024 * libunwind-frame.h: Ditto.
6025 * linespec.c: Ditto.
6026 * linux-nat.c: Ditto.
6027 * linux-nat.h: Ditto.
6028 * linux-thread-db.c: Ditto.
6029 * machoread.c: Ditto.
6030 * macroexp.c: Ditto.
6031 * macrotab.c: Ditto.
6034 * mdebugread.c: Ditto.
6039 * objfiles.c: Ditto.
6040 * objfiles.h: Ditto.
6042 * p-typeprint.c: Ditto.
6043 * p-valprint.c: Ditto.
6045 * printcmd.c: Ditto.
6046 * proc-events.c: Ditto.
6048 * progspace.c: Ditto.
6049 * progspace.h: Ditto.
6050 * psympriv.h: Ditto.
6053 * regcache.c: Ditto.
6054 * regcache.h: Ditto.
6055 * remote-fileio.c: Ditto.
6057 * ser-mingw.c: Ditto.
6059 * ser-unix.c: Ditto.
6062 * solib-frv.c: Ditto.
6063 * solib-irix.c: Ditto.
6064 * solib-osf.c: Ditto.
6065 * solib-pa64.c: Ditto.
6066 * solib-som.c: Ditto.
6067 * solib-sunos.c: Ditto.
6068 * solib-svr4.c: Ditto.
6069 * solib-target.c: Ditto.
6073 * stabsread.c: Ditto.
6074 * stabsread.c: Ditto.
6077 * symfile-mem.c: Ditto.
6083 * target-descriptions.c: Ditto.
6084 * target-memory.c: Ditto.
6087 * terminal.h: Ditto.
6090 * tracepoint.c: Ditto.
6091 * tracepoint.h: Ditto.
6095 * user-regs.c: Ditto.
6096 * user-regs.h: Ditto.
6098 * valarith.c: Ditto.
6100 * valprint.c: Ditto.
6101 * valprint.h: Ditto.
6106 * xcoffread.c: Ditto.
6107 * xcoffsolib.c: Ditto.
6108 * xcoffsolib.h: Ditto.
6109 * xml-syscall.c: Ditto.
6110 * xml-tdesc.c: Ditto.
6114 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6115 * cli/cli-decode.c: Ditto.
6116 * cli/cli-dump.c: Ditto.
6117 * cli/cli-logging.c: Ditto.
6118 * cli/cli-script.c: Ditto.
6119 * cli/cli-setshow.c: Ditto.
6120 * common/signals.c: Ditto.
6121 * mi/mi-cmd-break.c: Ditto.
6122 * mi/mi-cmd-disas.c: Ditto.
6123 * mi/mi-cmd-stack.c: Ditto.
6124 * mi/mi-cmd-var.c: Ditto.
6125 * mi/mi-cmds.c: Ditto.
6126 * mi/mi-common.h: Ditto.
6127 * mi/mi-console.c: Ditto.
6128 * mi/mi-interp.c: Ditto.
6129 * mi/mi-main.c: Ditto.
6130 * osf-share/cma_attr.c: Ditto.
6131 * osf-share/cma_deb_core.h: Ditto.
6132 * osf-share/cma_debug_client.h: Ditto.
6133 * osf-share/cma_handle.h: Ditto.
6134 * osf-share/cma_mutex.h: Ditto.
6135 * osf-share/cma_stack_int.h: Ditto.
6136 * osf-share/cma_tcb_defs.h: Ditto.
6137 * python/py-auto-load.c: Ditto.
6138 * python/py-breakpoint.c: Ditto.
6139 * python/py-cmd.c: Ditto.
6140 * python/py-frame.c: Ditto.
6141 * python/py-objfile.c: Ditto.
6142 * python/py-param.c: Ditto.
6143 * python/py-progspace.c: Ditto.
6144 * python/py-symbol.c: Ditto.
6145 * python/py-value.c: Ditto.
6146 * python/python-internal.h: Ditto.
6147 * python/python.c: Ditto.
6148 * tui/tui-data.c: Ditto.
6149 * tui/tui-disasm.c: Ditto.
6150 * tui/tui-hooks.c: Ditto.
6151 * tui/tui-io.c: Ditto.
6152 * tui/tui-layout.c: Ditto.
6153 * tui/tui-regs.c: Ditto.
6154 * tui/tui-source.c: Ditto.
6155 * tui/tui-stack.c: Ditto.
6156 * tui/tui-win.c: Ditto.
6157 * tui/tui-windata.c: Ditto.
6158 * tui/tui-winsource.c: Ditto.
6162 * configure.ac, gdb.1: Copyright year update.
6166 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6167 this_pc_in_block, morestack_msym and morestack_name. Check for
6168 "__morestack" minimal symbol there.
6172 * symfile.c (find_sym_fns): Add call to dont_repeat.
6176 Copyright year update in most files (performed by copyright.sh).
6180 * top.c (print_gdb_version): Update copyright year in version output.
6182 For older changes see ChangeLog-2010.
6188 version-control: never