3 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
4 only when inf->private->no_ptrace.
8 * ada-lang.c (print_it_exception): Print temporary catchpoints
9 as "Temporary catchpoint".
10 (print_mention_exception): Likewise.
14 * jv-lang.c (java_language_defn): Use java_printchar,
16 (java_get_encoding): New function.
17 (java_emit_char): Use generic_emit_char.
18 (java_printchar): New function.
19 (java_printstr): Likewise.
23 * ada-typeprint.c (print_record_type): If unable to decode
24 the name of the parent type, use the encoded name.
28 * ada-typeprint.c (ada_print_type): Fix both PAD type and
29 pointer to constrained packed array type output.
30 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
35 * ada-typeprint.c (print_array_type): removed if condition on show
36 being negative for bounds printing.
40 * ada-lang.c (ada_identical_enum_types_p): New function.
41 (symbols_are_identical_enums): New function.
42 (remove_extra_symbols): Do nothing if NSYMS < 2.
43 Use symbols_are_identical_enums.
47 * ada-valprint.c (ada_value_print): Handle typedefs.
51 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
55 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
56 (decode_constrained_packed_array): Likewise.
57 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
61 * ada-exp.y (convert_char_literal): Handle typedef types.
65 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
69 * varobj.c (varobj_create): Call do_cleanups on early exit path.
70 * valops.c (find_overload_match): Call do_cleanups on early exit
72 * solib.c (solib_find): Call do_cleanups on early exit path.
76 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
77 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
78 return paths. Defer final do_cleanups until last return.
79 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
84 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
88 * MAINTAINERS (Write After Approval): Add myself to the list.
92 Disable epilogue unwinders on recent GCCs.
93 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
94 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
95 * dwarf2read.c (process_full_comp_unit): Initialize
96 EPILOGUE_UNWIND_VALID.
97 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
98 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
99 * symtab.h (struct symtab): New field epilogue_unwind_valid.
103 Code cleanup - reformatting.
104 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
105 (producer_is_gcc_ge_4): ... here, change the return value.
106 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
111 Fix non-only rename list for Fortran modules import.
112 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
113 cp_add_using_directive caller.
114 (cp_add_using_directive): New parameter excludes, describe it. New
115 variables ix and param. Compare if also excludes match. Allocate NEW
116 with variable size, initialize EXCLUDES there.
117 (cp_lookup_symbol_imports): New variable excludep, test
118 current->EXCLUDES with it.
119 * cp-support.h: Include vec.h.
120 (struct using_direct): New field excludes, describe it.
121 (DEF_VEC_P (const_char_ptr)): New.
122 (cp_add_using_directive): New parameter excludes.
123 * defs.h (const_char_ptr): New typedef.
124 * dwarf2read.c (read_import_statement): New variables child_die,
125 excludes and cleanups, read in excludes.
126 (read_namespace): Adjust the cp_add_using_directive caller.
131 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
132 negative comparisons.
136 * mi/mi-main.c (mi_cmd_list_features): Emit
137 breakpoint-notifications.
142 * valprint.h (generic_emit_char, generic_printstr): Declare.
143 * valprint.c (wchar_printable, append_string_as_wide)
144 (print_wchar): Move from c-lang.c.
145 (generic_emit_char): New function; mostly taken from c_emit_char.
146 (generic_printstr): New function; mostly taken from c_printstr.
147 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
148 represented as arrays.
149 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
151 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
152 identically to TYPE_CODE_INT.
153 * f-lang.c (f_get_encoding): New function.
154 (f_emit_char): Use generic_emit_char.
155 (f_printchar): Replace comment.
156 (f_printstr): Use generic_printstr.
157 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
158 "character" types specially.
159 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
161 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
163 (c_emit_char): Call generic_emit_char.
164 (c_printstr): Call generic_printstr.
168 * breakpoint.c (bpstat_what): Removed duplicated case.
172 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
176 * valops.c (find_overload_match): Call do_cleanups before early
178 * top.c (execute_command): Call do_cleanups before early return.
179 (command_loop): Likewise.
180 * stack.c (backtrace_command): Make a null cleanup early. Don't
181 conditionally call do_cleanups.
182 * python/py-value.c (TRY_CATCH): Move cleanup handling into
184 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
185 so cleanups are always run.
186 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
187 * findcmd.c (parse_find_args): Call do_cleanups on early return
189 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
190 Don't conditionally call do_cleanups.
191 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
196 * MAINTAINERS (Write After Approval): Use default email address.
200 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
204 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
205 saved_regs_mask and copied_regs_mask fields.
206 (sparc_record_save_insn): New prototype.
207 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
208 (sparc_record_save_insn): New function.
209 (sparc_analyze_prologue): Add head comment. Recognize store insns
210 of call-saved registers. Use OFFSET consistently. Recognize flat
211 frames and cache their settings.
212 (sparc32_skip_prologue): Handle flat frames.
213 (sparc_frame_cache): Add frame_offset to the base address.
214 (sparc32_frame_cache): Adjust to new frame description.
215 (sparc32_frame_prev_register): Likewise.
216 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
217 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
218 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
219 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
220 frame by calling sparc_record_save_insn.
221 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
222 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
223 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
227 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
228 field by map_addr and map_len.
229 (dwarf2_read_section): Adjust for the new bfd_mmap api.
230 (munmap_section_buffer): Likewise.
234 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
235 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
236 * python/python.c (gdbpy_parameter): Make 'arg' const.
237 (execute_gdb_command): Likewise.
238 (gdbpy_decode_line): Likewise. Copy it.
239 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
240 (gdbpy_write): Make 'arg' const.
241 * python/py-type.c (typy_lookup_typename): Make 'type_name'
243 (gdbpy_lookup_type): Likewise.
244 * python/py-prettyprint.c (print_children): Make 'name' const.
245 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
246 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
248 * python/py-function.c (fnpy_init): Make 'name' const.
249 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
250 (gdbpy_string_to_argv): Make 'input' const.
251 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
253 * gdbtypes.h (lookup_typename): Update.
254 * gdbtypes.c (lookup_typename): Make 'name' const.
255 (lookup_struct): Likewise.
256 (lookup_union): Likewise.
257 (lookup_enum): Likewise.
261 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
262 gdb_thread_db.h. Move all common/ entries to be together.
263 (TAGS): Don't depend on DEPFILES.
267 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
268 * remote.c (remote_start_remote): ... here.
269 * monitor.c (monitor_open): ... here.
273 * gdbtypes.c (append_composite_type_field_aligned): Fix
274 calculation of bit position based on alignment.
278 * breakpoint.c (bpstat_stop_status): Call the check_status
279 breakpoint_ops method.
280 (print_one_breakpoint_location): Also print the condition for Ada
281 exception catchpoints.
282 (allocate_bp_location): New, factored out from
283 allocate_bp_location.
284 (allocate_bp_location): Adjust. Call the owner breakpoint's
285 allocate_location method, if there is one.
286 (free_bp_location): Call the locations's dtor method, if there is
288 (init_raw_breakpoint_without_location): New breakpoint_ops
290 (set_raw_breakpoint_without_location): Adjust.
291 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
292 (set_raw_breakpoint): Adjust.
293 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
294 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
295 re_set and check_status methods.
296 (init_catchpoint): Don't memset, initialize thread, addr_string
297 and enable_state. Pass the ops down to init_raw_breakpoint.
298 (install_catchpoint): Rename to ...
299 (install_breakpoint): ... this, and make extern.
300 (create_fork_vfork_event_catchpoint): Adjust.
301 (catch_exec_breakpoint_ops): Install NULL allocate_location,
302 re_set and check_status methods.
303 (create_syscall_event_catchpoint): Adjust.
304 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
305 (masked_watchpoint_breakpoint_ops): Install NULL
306 allocate_location, re_set and check_status methods.
307 (catch_exec_command_1): Adjust.
308 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
309 re_set and check_status methods.
310 (create_ada_exception_breakpoint): Rename to ...
311 (init_ada_exception_breakpoint): ... this. Add a struct
312 breakpoint parameter, and delete the exp_string, cond_string and
313 cond parameters. Use init_raw_breakpoint, and don't install or
314 mention the breakpoint yet. Don't clear breakpoint fields that
315 init_raw_breakpoint already clears.
316 (re_set_breakpoint): Delete, split into ...
317 (breakpoint_re_set_default, prepare_re_set_context): ... these new
319 (breakpoint_re_set_one): Call the breakpoint's
320 breakpoint_ops->re_set implementation, if there's one. Adjust.
321 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
322 (struct bp_location_ops): New type.
323 (struct bp_location): New field `ops'.
324 (struct breakpoint_ops): New `allocate_location', `re_set' and
325 `check_status' fields. Make `breakpoint_hit''s description match
327 (init_bp_location): Declare.
328 (breakpoint_re_set_default): Declare.
329 (create_ada_exception_breakpoint): Rename to ...
330 (init_ada_exception_breakpoint): ... this. Add a struct
331 breakpoint parameter, and delete the exp_string, cond_string and
333 (install_breakpoint): Declare.
334 * ada-lang.c: Include exceptions.h.
335 <Ada exceptions description>: Update.
336 (struct ada_catchpoint_location): New type.
337 (ada_catchpoint_location_dtor): New function.
338 (ada_catchpoint_location_ops): New global.
339 (ada_catchpoint): New type.
340 (create_excep_cond_exprs): New function.
341 (dtor_exception, allocate_location_exception, re_set_exception)
342 (should_stop_exception, check_status_exception): New functions.
343 (print_one_exception, print_mention_exception)
344 (print_recreate_exception): Adjust.
345 (dtor_catch_exception, allocate_location_catch_exception)
346 (re_set_catch_exception, check_status_catch_exception): New
348 (catch_exception_breakpoint_ops): Install them.
349 (dtor_catch_exception_unhandled)
350 (allocate_location_catch_exception_unhandled)
351 (re_set_catch_exception_unhandled)
352 (check_status_catch_exception_unhandled): New functions.
353 (catch_exception_unhandled_breakpoint_ops): Install them.
354 (dtor_catch_assert, allocate_location_catch_assert)
355 (re_set_catch_assert, check_status_catch_assert): New functions.
356 (catch_assert_breakpoint_ops): Install them.
357 (ada_exception_catchpoint_p): Delete.
358 (catch_ada_exception_command_split)
359 (ada_exception_catchpoint_cond_string): Rename exp_string
360 parameter to excep_string. Adjust.
361 (ada_parse_catchpoint_condition): Delete.
362 (ada_exception_sal): Rename the exp_string parameter to
363 excep_string. Delete the cond_string and cond parameters.
365 (ada_decode_exception_location): Rename the exp_string parameter
366 to excep_string. Delete the cond_string and cond parameters.
368 (create_ada_exception_catchpoint): New function.
369 (catch_ada_exception_command, ada_decode_assert_location)
370 (catch_assert_command): Adjust.
371 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
375 * ada-lang.c: Include arch-utils.h.
376 (ada_decode_exception_location): Make static.
377 (catch_ada_exception_command): Moved here from breakpoint.c.
378 (ada_decode_assert_location): Make static.
379 (catch_assert_command): Moved here from breakpoint.c.
380 (_initialize_ada_lang): Install the exception and assert
381 catchpoint commands here.
382 * ada-lang.h (ada_decode_exception_location)
383 (ada_decode_assert_location): Delete declarations.
384 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
386 (create_ada_exception_breakpoint): Make extern.
387 (catch_ada_exception_command, catch_assert_command): Moved to
389 (add_catch_command): Make extern.
390 (_initilize_breakpoint): Don't install the exception and assert
391 catchpoint commands here.
392 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
394 (add_catch_command, create_ada_exception_breakpoint): Declare.
398 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
399 the breakpoint to the breakpoint chain here.
400 (set_raw_breakpoint_without_location): Add the breakpoint to the
401 breakpoint chain here.
402 (init_raw_breakpoint): Adjust comments.
403 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
405 (init_catchpoint): Don't set the catchpoint's breakpoint number
407 (install_catchpoint): New function.
408 (create_fork_vfork_event_catchpoint)
409 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
410 use install_catchpoint.
414 * breakpoint.c (create_catchpoint_without_mention)
415 (create_catchpoint): Delete.
419 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
420 * breakpoint.c (init_raw_breakpoint_without_location): Remove
421 reference to exec_pathname.
422 (struct exec_catchpoint): New type.
423 (dtor_catch_exec): New function.
424 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
425 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
426 (catch_exec_command_1): Adjust to use init_catchpoint.
427 (delete_breakpoint): Remove reference to exec_pathname.
431 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
432 (struct breakpoint): Delete field `syscalls_to_be_caught'.
433 * breakpoint.c (init_raw_breakpoint_without_location): Remove
434 reference to syscalls_to_be_caught.
435 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
437 (struct syscall_catchpoint): New type.
438 (dtor_catch_syscall): New function.
439 (insert_catch_syscall, remove_catch_syscall)
440 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
441 (print_recreate_catch_syscall): Adjust.
442 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
443 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
444 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
445 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
446 (masked_watchpoint_breakpoint_ops)
447 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
448 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
449 there is one. Remove references to syscalls_to_be_caught.
450 (catching_syscall_number): Adjust.
451 * ada-lang.c (catch_exception_breakpoint_ops)
452 (catch_exception_unhandled_breakpoint_ops)
453 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
457 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
459 * breakpoint.c (init_raw_breakpoint_without_location): Remove
460 reference to forked_inferior_pid.
461 (struct fork_catchpoint): New type.
462 (breakpoint_hit_catch_fork, print_it_catch_fork)
463 (print_one_catch_fork, breakpoint_hit_catch_vfork)
464 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
465 (create_fork_vfork_event_catchpoint): Adjust to use
470 * breakpoint.c (add_to_breakpoint_chain)
471 (init_raw_breakpoint_without_location): New functions, factored
473 (set_raw_breakpoint_without_location): ... this one.
474 (init_raw_breakpoint): New function, factored out from
475 set_raw_breakpoint and adjusted to use
476 init_raw_breakpoint_without_location.
477 (set_raw_breakpoint): Adjust.
478 (init_catchpoint): New function, factored out from
479 create_catchpoint_without_mention and adjusted to use
481 (create_catchpoint_without_mention): Adjust.
485 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
486 argument of 0 specially.
490 * infrun.c (handle_inferior_event): Remove write-only local variable
491 `sw_single_step_trap_p'.
495 * symtab.c (lookup_language_this): End loop if block is NULL.
499 * valops.c (value_of_this): Use lookup_language_this.
500 * symtab.h (lookup_language_this): Declare.
501 * symtab.c (lookup_language_this): New function.
502 (lookup_symbol_aux): Use lookup_language_this.
503 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
507 * value.h (value_of_this): Update.
508 (value_of_local): Remove.
509 * valops.c (value_of_this): Rename from value_of_local. Change
511 * p-exp.y (exp): Update.
512 (variable): Likewise.
513 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
517 * valops.c (value_of_local): Complain if NAME is NULL.
518 * std-operator.def (OP_OBJC_SELF): Remove.
519 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
520 * objc-exp.y (name_not_typename): Use OP_THIS.
521 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
523 <OP_OBJC_SELF>: Remove.
524 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
528 * python/py-events.h (gdb_py_events): Make it extern.
529 * python/py-evtregistry.c (gdb_py_events): Declare.
533 * remote.c (remote_trace_set_readonly_regions): Add check for
534 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
539 * arm-linux-tdep.c: Include "auxv.h".
541 (ARM_LINUX_SIZEOF_VFP): Define.
542 (arm_linux_supply_vfp): New function.
543 (arm_linux_collect_vfp): Likewise.
544 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
545 (arm_linux_fpa_regset_sections): New variable.
546 (arm_linux_vfp_regset_sections): Likewise.
547 (arm_linux_core_read_description): New function.
548 (arm_linux_init_abi): Install arm_linux_core_read_description and
549 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
550 appropriate for the architecture.
551 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
552 (tdesc_arm_with_m): Declare.
553 (tdesc_arm_with_iwmmxt): Likewise.
554 (tdesc_arm_with_vfpv2): Likewise.
555 (tdesc_arm_with_vfpv3): Likewise.
556 (tdesc_arm_with_neon): Likewise.
557 * arm-linux-nat.c: Move features/*.c includes ...
558 * arm-tdep.c: ... here.
559 * arm-linux-nat.c (arm_linux_read_description): Move initializing
560 target description data structures ...
561 * arm-tdep.c (_initialize_arm_tdep): ... here.
562 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
563 HWCAP_VFPv3D16): Move definitions ...
564 * arm-linux-tdep.h: ... here.
568 * remote.c (remote_trace_set_readonly_regions): Add a check for
573 * coffread.c (coffread_objfile): Rename from current_objfile.
574 * dbxread.c (dbxread_objfile): Rename from current_objfile.
575 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
579 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
580 (class_symtab): Remove.
581 (jv_dynamics_progspace_key): New global.
582 (jv_per_objfile_free): Reset program space data. Update assert.
584 (get_dynamics_objfile): Use and set program space data.
585 (get_java_class_symtab): Use get_dynamics_objfile.
586 (add_class_symbol): Likewise.
587 (java_link_class_type): Likewise.
588 (java_object_type, jv_clear_object_type, set_java_object_type):
590 (get_java_object_type): Update. Don't cache result.
591 (is_object_type): Don't call set_java_object_type.
592 (_initialize_java_language): Don't set jv_type_objfile_data_key;
593 initialize jv_dynamics_progspace_key.
597 * symtab.h (current_objfile): Don't declare.
598 * objfiles.h (current_objfile): Don't declare.
599 * objfiles.c (current_objfile): Remove.
600 * mdebugread.c (current_objfile): New file-scope global.
601 * dbxread.c (current_objfile): New file-scope global.
602 * coffread.c (current_objfile): New file-scope global.
606 * top.h (line): Rename to ...
607 (saved_command_line): ... this.
608 (linesize): Rename to ...
609 (saved_command_line_size): ... this.
610 * top.c (line): Rename to ...
611 (saved_command_line): ... this.
612 (linesize): Rename to ...
613 (saved_command_line_size): ... this.
614 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
615 * event-top.c (command_line_handler): Adjust.
616 * main.c (captured_main): Adjust.
620 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
621 get_frame_func instead of get_frame_pc to determine the code
622 address used to construct the frame ID.
623 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
624 (i386_epilogue_frame_this_id): Likewise.
625 (i386_epilogue_frame_prev_register): New function.
626 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
627 (i386_stack_tramp_frame_sniffer): Fix coding style.
628 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
629 (i386_gdbarch_init): Fix comments.
633 * i386-tdep.c (i386_match_insn_block): Use length of the proper
634 instruction when walking back through the instruction stream.
638 * symtab.c (output_partial_symbol_filename): Exchange the filename and
639 fullname parameters order.
644 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
646 * psymtab.c (map_symbol_filenames_psymtab)
647 (map_partial_symbol_filenames): Likewise.
648 * psymtab.h: Include symfile.h.
649 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
650 * symfile.h (symbol_filename_ftype): New.
651 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
652 map_symbol_filenames, clarify more the naming in comment.
656 * cc-with-index.sh: Fix typos in comment.
657 Look for ../../gdb, for fullname.exp.
662 * cli/cli-cmds.c (shell_escape): Use waitpid.
663 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
667 * xcoffread.c (dwarf2_xcoff_names): New variable.
668 (aix_process_linenos): Add a guard.
669 (xcoff_symfile_finish): Free dwarf2.
670 (xcoff_initial_scan): Add dwarf2 support.
674 * infcall.c (run_inferior_call): Don't mask async. Instead force
675 a synchronous wait, if the target can async.
677 * target.h (struct target_ops): Delete to_async_mask.
678 (target_async_mask): Delete.
679 * target.c (update_current_target): Delete references to to_async_mask.
680 * linux-nat.c (linux_nat_async_mask_value): Delete.
681 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
682 to linux_nat_async_mask_value.
683 (linux_nat_async_mask): Delete.
684 (linux_nat_async, linux_nat_close): Remove references to
685 linux_nat_async_mask_value.
686 * record.c (record_async_mask_value): Delete.
687 (record_async): Remove references to record_async_mask_value.
688 (record_async_mask): Delete.
689 (record_can_async_p, record_is_async_p): Remove references to
690 record_async_mask_value.
691 (init_record_ops, init_record_core_ops): Remove references to
693 * remote.c (remote_async_mask_value): Delete.
694 (init_remote_ops): Remove reference to remote_async_mask.
695 (remote_can_async_p, remote_is_async_p): Remove references to
696 remote_async_mask_value.
697 (remote_async): Remove references to remote_async_mask_value.
698 (remote_async_mask): Delete.
700 * infrun.c (fetch_inferior_event): Don't claim registers changed
701 if the current thread is already not executing.
706 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
707 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
711 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
712 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
716 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
718 * python/py-exitedevent.c (create_exited_event_object): Change
719 type of 'exit_code'. Optionally add exit_code attribute.
720 (emit_exited_event): Change type of 'exit_code'.
721 * python/py-event.h (emit_exited_event): Update.
722 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
723 * infrun.c (handle_inferior_event): Set exit code fields on
725 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
727 * inferior.c (exit_inferior_1): Initialize new fields.
731 * dwarf2expr.c (get_signed_type): New function.
732 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
736 * objc-lang.c (find_methods): Increment objfile_csym earlier.
740 * top.h (simplified_command_loop): Delete declaration.
744 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
745 gdb_sysroot to the "len" variable. Append both to "arg_buf".
749 * objfiles.h (obj_section_addr): Update reference to objfile from
751 (obj_section_endaddr): Likewise.
755 * MAINTAINERS: Update my email address and affiliation. Also
761 * linespec.c (get_search_block): New function.
762 (find_methods): Add FILE_SYMTATB parameter and use it and
763 get_search_block to pass an appropriate block to
764 lookup_symbol_in_namespace.
765 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
766 Check if *ARGPTR starts with a filename first.
767 If it does, call locate_first_half again to locate the next
768 "first half" of the linespec.
769 Pass FILE_SYMTATB to decode_objc and decode_compound.
770 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
771 (locate_first_half): Stop on the first colon seen.
772 (decode_compound): Add FILE_SYMTAB parameter.
773 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
774 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
775 get_search_block with lookup_symbol.
776 (find_method): Add FILE_SYMTAB parameter and pass it to
778 (decode_objc): Use get_search_block.
783 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
784 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
785 and CP_ANONYMOUS_NAMESPACE_LEN.
786 (cp_is_anonymous): Likewise.
787 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
788 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
789 * dwarf2read.c (namespace_name): Likewise.
790 (fixup_partial_die): Likewise.
791 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
792 seen in the input, keep it.
796 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
797 * inf-loop.h (inferior_event_handler_wrapper): Delete.
798 * inf-loop.c (inferior_event_handler_wrapper): Delete.
799 (inferior_event_handler): Don't handle INF_QUIT_REQ.
800 * remote.c (_initialize_remote): Register
801 async_remote_interrupt_twice directly as
802 sigint_remote_twice_token event.
806 * target.h (enum inferior_event_type): Delete INF_ERROR.
807 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
811 * interps.c (interp_set): Don't cancel continuations.
815 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
819 * continuations.h (continuation_ftype): Add `err' parameter.
821 (do_all_continuations, do_all_continuations_thread)
822 (do_all_intermediate_continuations)
823 (do_all_intermediate_continuations_thread)
824 (do_all_inferior_continuations): Add `err' parameter.
825 * continuations.c (do_my_continuations_1, do_my_continuations)
826 (do_all_inferior_continuations, do_all_continuations_ptid)
827 (do_all_continuations_thread_callback)
828 (do_all_continuations_thread, do_all_continuations)
829 (do_all_intermediate_continuations_thread_callback)
830 (do_all_intermediate_continuations_thread)
831 (do_all_intermediate_continuations): Add `err' parameter, and pass
832 it down all the way to the continuations proper.
833 * inf-loop.c (inferior_event_handler): If fetching an inferior
834 event throws an error, don't pop the target, and still call the
835 continuations, but with `err' set. Adjust all other continuation
837 * breakpoint.c (until_break_command_continuation): Add `err'
839 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
840 issue another step if `err' is set.
841 (struct until_next_continuation_args): New.
842 (until_next_continuation): Add `err' parameter. Adjust.
843 (until_next_command): Adjust.
844 (struct finish_command_continuation_args): Add `thread' field.
845 (finish_command_continuation): Add `err' parameter. Handle it.
846 (finish_forward): Adjust.
847 (attach_command_continuation): Add `err' parameter. Handle it.
848 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
849 cancel the continuations.
850 * interps.c (interp_set): Adjust to cancel the continuations.
851 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
852 continuations rather than discarding.
853 (free_thread): Don't clear thread inferior resources here.
854 (delete_thread_1): Do it here instead. And do it before removing
855 the thread from the threads list. Tag the thread as exited before
856 clearing thread inferior resources.
860 * infcall.c (call_function_by_hand): Rephrase error message.
864 * defs.h (struct thread_info, struct inferior): Delete forward
866 * breakpoint.h (struct thread_info): New forward declaration.
867 * observer.sh (struct inferior): New forward declaration.
868 * python/python-internal.h (struct inferior): New forward
873 * defs.h (struct continuation, continuation_ftype)
874 (continuation_free_arg_ftype, add_continuation)
875 (do_all_continuations, do_all_continuations_thread)
876 (discard_all_continuations, discard_all_continuations_thread)
877 (add_intermediate_continuation, do_all_intermediate_continuations)
878 (do_all_intermediate_continuations_thread)
879 (discard_all_intermediate_continuations)
880 (discard_all_intermediate_continuations_thread)
881 (add_inferior_continuation, do_all_inferior_continuations)
882 (discard_all_inferior_continuations): Move to ...
883 * continuations.h: ... this new file.
884 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
885 infcmd.c, inferior.c, infrun.c, interps.c: Include
891 Fix PR 10970, PR 12702.
892 * linux-nat.c (linux_lwp_is_zombie): New function.
893 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
894 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
898 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
900 (add_continuation, add_intermediate_continuation)
901 (add_inferior_continuation): Use them.
902 * continuations.c (struct continuation): Use them.
903 (make_continuation_ftype): Delete.
904 (make_continuation, add_inferior_continuation, add_continuation)
905 (add_intermediate_continuation): Use continuation_ftype and
906 continuation_free_arg_ftype. Rename parameters to shorter names.
910 * continuations.c (make_continuation): Make it return void.
911 (do_my_continuations): Rename to ...
912 (do_my_continuations_1): ... this. Remove old_chain parameter and
914 (do_my_continuations): New.
915 (discard_my_continuations): Rename to ...
916 (discard_my_continuations_1): ... this. Remove old_chain
917 parameter and adjust.
918 (discard_my_continuations): New.
919 (add_inferior_continuation): Simplify.
920 (do_all_inferior_continuations): Reimplement on top
922 (discard_all_inferior_continuations): Simplify.
923 (add_continuation): Simplify.
924 (do_all_continuations_ptid): Simplify.
925 (discard_all_continuations_thread_callback): Simplify.
926 (add_intermediate_continuation): Simplify.
927 (discard_all_intermediate_continuations_thread_callback):
932 * utils.c (struct continuation, add_continuation)
933 (add_inferior_continuation)
934 (do_all_inferior_continuations, discard_all_inferior_continuations)
935 (restore_thread_cleanup, do_all_continuations_ptid)
936 (do_all_continuations_thread_callback)
937 (do_all_continuations_thread, do_all_continuations)
938 (discard_all_continuations_thread_callback)
939 (discard_all_continuations_thread, discard_all_continuations)
940 (add_intermediate_continuation)
941 (do_all_intermediate_continuations_thread_callback)
942 (do_all_intermediate_continuations_thread)
943 (do_all_intermediate_continuations)
944 (discard_all_intermediate_continuations_thread_callback)
945 (discard_all_intermediate_continuations_thread)
946 (discard_all_intermediate_continuations): Move to ...
947 * continuations.c: ... this new file, and adjust to no longer
948 implement continuations on top of cleanups.
949 * Makefile.in (SFILES): Add continuations.c.
950 (COMMON_OBS): Add continuations.o.
954 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
955 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
956 Internal error on invalid values.
957 * reverse.c: Don't handle EXEC_ERROR.
958 * mi/mi-main.c: Don't handle EXEC_ERROR.
962 * record.c: Include event-loop.h, inf-loop.h.
963 (record_beneath_to_async): New global.
964 (tmp_to_async): New global.
965 (record_async_inferior_event_token): New global.
966 (record_open_1): Don't error out if async is enabled.
967 (record_open): Handle to_async. Create an async event source in
969 (record_close): Delete the async event source.
970 (record_resumed): New global.
971 (record_execution_dir): New global.
972 (record_resume, record_core_resume): Set them. Register the
973 target on the event loop.
974 (record_wait): Rename to ...
975 (record_wait_1): ... this. Add more debug output. Handle
976 TARGET_WNOHANG, and the target beneath returning
977 TARGET_WAITKIND_IGNORE.
978 (record_wait): Reimplement on top of record_wait_1.
979 (record_async_mask_value): New global.
980 (record_async, record_async_mask, record_can_async_p)
981 (record_is_async_p, record_execution_direction): New functions.
982 (init_record_ops, init_record_core_ops): Install new methods.
983 * infrun.c (fetch_inferior_event): Temporarily switch the global
984 execution direction to the direction the target was going.
985 (execution_direction): Change type to int.
986 * target.c (default_execution_direction): New function.
987 (update_current_target): Inherit and de_fault
988 to_execution_direction.
989 * target.h (struct target_ops) <to_execution_direction>: New
991 (target_execution_direction): New macro.
992 * inferior.h (execution_direction): Change type to int.
996 * infcall.c (call_function_by_hand): Don't allow calling functions
997 in reverse execution mode.
1001 * infcmd.c (finish_command): Allow async finish in reverse.
1005 * gdb_thread_db.h: Delete. Move to ...
1006 * common/gdb_thread_db.h: ... here.
1010 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
1011 function's entry point instead of a manually managed momentary
1012 breakpoint, and only ever issue one proceed call.
1013 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
1014 doing a reverse-finish, switch to stepi mode, to do another step.
1015 (insert_step_resume_breakpoint_at_sal): Make public.
1016 (normal_stop): No need to save function value return registers if
1018 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
1022 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
1023 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
1024 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
1026 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
1027 step-resume breakpoints.
1028 (print_it_typical): Handle bp_hp_step_resume.
1029 (bpstat_what): Ditto.
1030 (bptype_string): Ditto.
1031 (print_one_breakpoint_location): Ditto.
1032 (allocate_bp_location): Ditto.
1034 (breakpoint_re_set_one): Ditto.
1035 * infrun.c (handle_inferior_event): Adjust. Split
1036 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
1037 BPSTAT_WHAT_HP_STEP_RESUME.
1038 (insert_step_resume_breakpoint_at_sal): Rename to ...
1039 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
1040 parameter. Handle it.
1041 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
1042 insert_step_resume_breakpoint_at_sal_1.
1043 (insert_step_resume_breakpoint_at_frame): Rename to ...
1044 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
1045 set a high-priority step-resume breakpoint.
1046 (insert_step_resume_breakpoint_at_frame): Adjust comment.
1047 (insert_step_resume_breakpoint_at_caller): Ditto.
1051 * breakpoint.c (iterate_over_related_breakpoints): New.
1052 (do_map_delete_breakpoint): New.
1053 (delete_command): Pass do_map_delete_breakpoint to
1054 map_breakpoint_numbers.
1055 (do_disable_breakpoint): New.
1056 (do_map_disable_breakpoint): Iterate over the breakpoint's related
1058 (do_enable_breakpoint): Rename to ...
1059 (enable_breakpoint_disp): ... this.
1060 (enable_breakpoint): Adjust.
1061 (do_enable_breakpoint): New.
1062 (enable_once_breakpoint): Delete.
1063 (do_map_enable_breakpoint): New.
1064 (do_map_enable_once_breakpoint): New.
1065 (enable_once_command, enable_delete_command)
1066 (delete_trace_command): Iterate over the breakpoint's related
1071 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
1072 for ALPHA_ZERO_REGNUM.
1073 (alpha_supply_int_regs): Explicitly supply zero as the value for
1074 ALPHA_ZERO_REGNUM in the register cache.
1075 * alpha-nat.c (fetch_osf_core_registers): Ditto.
1079 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
1083 * symfile.h (struct dwarf2_section_names): New type.
1084 (struct dwarf2_debug_sections): New type.
1085 (dwarf2_has_info): Add parameter.
1086 * dwarf2read.c (dwarf2_elf_names): New variable.
1087 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
1088 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
1089 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
1090 (dwarf2_has_info): Add names parameter. Pass names
1091 to dwarf2_locate_sections.
1092 (section_is_p): Rewrite using the names parameter.
1093 (dwarf2_locate_sections): Use section names from the names parameter.
1094 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
1095 * elfread.c (read_psyms): Ditto.
1096 * machoread.c (macho_symfile_read): Ditto.
1101 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
1106 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
1107 (decode_compound): Unconditionally call keep_name_info.
1111 * breakpoint.c (watchpoint_check): If the watchpoint went out of
1112 scope, clear its command list.
1113 (map_breakpoint_numbers): Don't walk the related breakpoints list
1118 * MAINTAINERS: Move Jim Blandy to past maintainers.
1122 * symfile.h (enum dwarf2_section_enum): New type.
1123 (dwarf2_get_section_info): New prototype.
1124 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
1125 section_name by sect. Use a switch to select the info.
1126 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
1127 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
1131 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
1132 shared library event breakpoint if there's no execution.
1136 * breakpont.c (remove_hw_watchpoints): Remove unused function.
1137 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
1141 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
1146 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
1147 entry for RuntimeError to doc string.
1151 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
1152 sequence for probing loops.
1156 * infrun.c (user_visible_resume_ptid): Fix typos in describing
1161 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
1162 zero as the value for %g0 in the register cache.
1163 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
1164 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
1168 * infrun.c (proceed): Set previous_inferior_ptid here.
1169 (init_wait_for_inferior): Initialize previous_inferior_ptid from
1170 inferior_ptid, not null_ptid.
1171 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
1172 (fetch_inferior_event): Nor here.
1176 * inf-loop.c (inferior_event_handler): Only output a message if
1181 * MAINTAINERS: Update my e-mail address.
1185 * infrun.c (proceed): Switch the inferior event loop to
1186 INF_EXEC_COMPLETE if the target refused to resume from a
1191 * infcmd.c: Include "inf-loop.h".
1192 (step_once): When stepping into an inline subroutine, pretend the
1193 target has run. If the target can async, switch the inferior
1194 event loop to INF_EXEC_COMPLETE.
1195 * inferior.h (user_visible_resume_ptid): Declare.
1196 * infrun.c (user_visible_resume_ptid): New function, factored out
1199 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
1200 that the current thread is running. Merge async and sync
1205 * infcmd.c (step_1): Simplify synchronous case.
1209 * tracepoint.c: Include exceptions.h.
1210 (TFILE_PID): Move higher in file.
1211 (tfile_open): Delay pushing the tfile target until we're assured
1212 the tfile header is present in the file. Wrap reading the initial
1213 newline-terminated lines in TRY_CATCH. Pop the target if the
1214 initial setup failed. Add the tfile's thread immediately
1215 aftwards, before any non-essential setup. Don't skip
1216 post_create_inferior if there are no traceframes present in the
1218 (tfile_close): Remove redundant check for null before xfree call.
1219 (tfile_thread_alive): New function.
1220 (init_tfile_ops): Register it as to_thread_alive callback.
1224 * tracepoint.c (tfile_open): Delete #if 0'd code.
1228 Fix -readnow for -gdwarf-4 unused type units.
1229 * dwarf2read.c (struct signatured_type): Remove the field offset.
1230 (create_signatured_type_table_from_index): Remove its initialization.
1231 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
1232 instead. Add a complaint call.
1233 (process_psymtab_comp_unit): Change assignment to gdb_assert.
1234 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
1235 (lookup_signatured_type_at_offset, read_signatured_type)
1236 (write_one_signatured_type): Update the field for per_cu.
1240 * python/py-inferior.c (python_inferior_exit): Use
1242 (python_on_resume): Likewise.
1246 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
1250 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
1254 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
1258 * dwarf2read.c (dwarf2_add_field): Constify.
1259 * value.c (value_static_field): Constify.
1260 * gdbtypes.h (struct main_type) <field.field_location.physname>:
1262 * ax-gdb.c (gen_static_field): Constify
1266 * linux-nat.c (kill_callback): Use SIGKILL first.
1270 * ada-lang.c (print_it_exception): Avoid use of sprintf.
1274 * value.c (value_fn_field): Constify.
1275 * symtab.c (gdb_mangle_name): Constify.
1276 * stabsread.c (update_method_name_from_physname): Make 'physname'
1278 * p-typeprint.c (pascal_type_print_method_args): Make arguments
1279 const. Use explicit fputc_filtered loop.
1280 (pascal_type_print_base): Constify.
1281 * p-lang.h (pascal_type_print_method_args): Update.
1282 * linespec.c (add_matching_methods): Constify.
1283 (add_constructors): Likewise.
1284 * jv-typeprint.c (java_type_print_base): Constify.
1285 * gdbtypes.h (struct cplus_struct_type)
1286 <fn_fieldlist.fn_field.physname>: Now const.
1287 * dwarf2read.c (compute_delayed_physnames): Constify.
1288 (dwarf2_add_member_fn): Likewise.
1289 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
1293 * infrun.c (resume): Mention which is the current thread, and its
1294 current PC in debug output.
1295 (prepare_to_proceed): Mention the thread switching in debug
1300 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
1301 path check. Use xmalloc and cleanups.
1302 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
1306 * cp-valprint.c (cp_print_value_fields): Catch errors from
1311 * dwarf2read.c (dwarf2_get_die_type): Call
1312 get_die_type_at_offset.
1313 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
1314 get_base_type function.
1318 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
1323 * python/py-auto-load.c (source_section_scripts): Mention objfile
1328 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
1329 (try_thread_db_load_from_pdir): Call it. If unable to find
1330 libthread_db in directory of libpthread, see if we're looking at
1331 the separate-debug-info copy.
1333 * python/py-autoload.c (print_script): Print "Missing" instead of
1334 "No" for missing scripts.
1335 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
1339 * ui-file.c (stdio_file_write_async_safe): Add comment.
1343 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
1347 Support $pdir and $sdir in libthread-db-search-path.
1348 * NEWS: Mention $sdir,$pdir.
1349 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
1350 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
1351 (try_thread_db_load_from_sdir): New function.
1352 (try_thread_db_load_from_dir): New function.
1353 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
1354 system directories if search of libthread-db-search-path fails,
1355 that is now done via $sdir.
1356 (has_libpthread): New function.
1357 (thread_db_load): Remove search for libthread_db in directory of
1358 libpthread, that is now done via $pdir.
1360 * NEWS: Mention "info auto-load-scripts".
1361 * python/py-auto-load.c (struct auto_load_pspace_info): New member
1362 script_not_found_warning_printed.
1363 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
1364 all callers updated. Initialize script_not_found_warning_printed.
1365 (get_auto_load_pspace_data_for_loading): New function.
1366 (maybe_add_script): New function.
1367 (source_section_scripts): Simplify. Only print one warning regardless
1368 of the number of auto-load scripts not found.
1369 (clear_section_scripts): Clear script_not_found_warning_printed.
1370 (auto_load_objfile_script): Record script in hash table.
1371 (count_matching_scripts): New function.
1372 (maybe_print_script): Renamed from maybe_print_section_script, all
1373 callers updated. Rewrite to use ui_out_*.
1374 (info_auto_load_scripts): Renamed from
1375 maintenance_print_section_scripts, all callers updated.
1376 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
1377 renamed as "info auto-load-scripts".
1381 * dwarf2expr.c (read_uleb128): Cast intermediate result.
1382 (read_sleb128): Likewise.
1386 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
1391 * linux-nat.c (debug_linux_nat_async): Delete.
1392 Replace all references to use debug_linux_nat instead.
1393 (show_debug_linux_nat_async): Delete.
1394 (sigchld_handler): Call ui_file_write_async_safe instead of
1396 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
1397 * ui-file.c (struct ui_file): New member to_write_async_safe.
1398 (null_file_write_async_safe): New function.
1399 (ui_file_write_async_safe): New function.
1400 (set_ui_file_write_async_safe): New function.
1401 (ui_file_new): Initialize to_write_async_safe.
1402 (stdio_file_write_async_safe): New function.
1403 (struct stdio_file): New member fd.
1404 (stdio_file_new): Initialize to_write_async_safe, fd.
1405 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
1407 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
1408 (set_ui_file_write_async_safe): Declare.
1409 (ui_file_write_async_safe): Declare.
1413 * utils.c (do_value_free): New function.
1414 (make_cleanup_value_free): Likewise.
1415 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
1417 (dwarf2_loc_desc_needs_frame): Call
1418 make_cleanup_value_free_to_mark.
1419 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
1420 * dwarf2expr.c (free_dwarf_expr_context): Don't call
1422 (new_dwarf_expr_context): Don't call value_mark.
1423 * dwarf2-frame.c (execute_stack_op): Call
1424 make_cleanup_value_free_to_mark.
1425 * defs.h (make_cleanup_value_free): Declare.
1429 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
1430 prepare_execute_command.
1431 * top.c (prepare_execute_command): Return cleanup.
1432 (execute_command): Use cleanup from prepare_execute_command.
1433 * top.h (prepare_execute_command): Change prototype to return
1435 * defs.h (struct value): Add opaque declaration.
1436 (make_cleanup_value_free_to_mark): Add prototype.
1437 * utils.c (do_value_free_to_mark): New function.
1438 (make_cleanup_value_free_to_mark): Likewise.
1442 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
1443 cast left-hand-side to unsigned.
1448 * value.h (value_from_contents): Declare.
1449 * value.c (value_from_contents): New function.
1450 * dwarf2read.c (dwarf_stack_op_name): Add new values.
1451 (dwarf2_get_die_type): New function.
1452 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
1453 (allocate_piece_closure): Acquire reference to values.
1454 (read_pieced_value): Update for value-based expressions.
1455 (write_pieced_value): Likewise.
1456 (free_pieced_value_closure): Call value_free as needed.
1457 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
1458 Update for value-based expressions.
1459 * dwarf2loc.h (dwarf2_get_die_type): Declare.
1460 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
1461 <get_base_type>: New field.
1462 (struct dwarf_expr_piece) <v.value>: Change type.
1463 <v.regno>: New field.
1464 (struct dwarf_expr_context) <mark>: New field.
1465 (dwarf_expr_piece, dwarf_expr_fetch): Update.
1466 (dwarf_expr_pop, dwarf_expr_push): Remove.
1467 (dwarf_expr_push_address): Declare.
1468 * dwarf2expr.c (dwarf_arch_cookie): New global.
1469 (struct dwarf_gdbarch_types): New.
1470 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
1472 (dwarf_expr_push): Change type of 'value' argument. Update. Now
1474 (dwarf_expr_push_address): New function.
1475 (dwarf_expr_pop): Now static.
1476 (dwarf_expr_fetch): Change return type.
1477 (dwarf_require_integral): New function.
1478 (dwarf_expr_fetch): Simplify.
1479 (add_piece): Update.
1480 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
1482 (execute_stack_op) <sign_ext>: Remove.
1483 Use values for DWARF stack.
1484 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
1485 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
1487 (_initialize_dwarf2expr): New function.
1488 (add_piece): Update.
1489 (new_dwarf_expr_context): Set new field.
1490 (free_dwarf_expr_context): Call value_free_to_mark.
1491 * dwarf2-frame.c (no_base_type): New function.
1492 (execute_stack_op): Set get_base_type field. Update.
1496 * dwarf2read.c (read_common_block): Fix formatting.
1500 * breakpoint.c (disable_breakpoint): Disable all locations
1501 associated with a tracepoint on target if a trace experiment is
1503 (disable_command): Disable a specific tracepoint location on target if
1504 a trace experiment is running.
1505 (do_enable_breakpoint): Enable all locations associated with a
1506 tracepoint on target if a trace experiment is running.
1507 (enable_command) Enable a specific tracepoint location on target if a
1508 trace experiment is running.
1509 * target.c (update_current_target): Add INHERIT and de_fault clauses for
1510 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1511 to_disable_tracepoint.
1512 * target.h: Add declaration of struct bp_location.
1513 (struct target_ops): Add new functions
1514 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
1515 to_disable_tracepoint to target operations.
1516 (target_supports_enable_disable_tracepoint): New macro.
1517 (target_enable_tracepoint): New macro.
1518 (target_disable_tracepoint): New macro.
1519 * remote.c (struct remote_state): Add new field.
1520 (remote_enable_disable_tracepoint_feature): New.
1521 (remote_protocol_features): Add new entry.
1522 (remote_supports_enable_disable_tracepoint): New.
1523 (remote_enable_tracepoint): New.
1524 (remote_disable_tracepoint): New.
1525 (init_remote_ops): Add remote_enable_tracepoint,
1526 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
1527 to remote operations.
1528 * tracepoint.c (start_tracing): Allow tracing to start without any
1529 tracepoints enabled with just a warning if they can be re-enabled
1531 * NEWS: Add news item for the new behaviour of the enable and disable
1532 GDB commands when applied to tracepoints.
1533 Add news items for the new remote packets QTEnable and QTDisable.
1537 * config.in: Regenerate.
1538 * configure: Regenerate.
1539 * configure.ac <--with-system-readline> (for readline_echoing_p):
1541 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
1542 (tui_old_rl_echoing_p): ... here.
1543 (tui_setup_io): Rename extern declaration readline_echoing_p to
1544 _rl_echoing_p. Adjust assignments for the both renames.
1548 * symtab.c (lookup_symtab): Run cleanup before returning.
1552 * dwarf2read.c (handle_data_member_location): New function.
1553 (dwarf2_add_field): Use it.
1554 (read_common_block): Likewise.
1558 Make addrs->SECTINDEX always defined.
1559 * symfile.c (relative_addr_info_to_section_offsets): Check for
1560 SECTINDEX -1, not for zero ADDR.
1561 (addrs_section_compar): Remove checking for invalid SECTINDEX.
1562 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
1563 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
1568 * linux-thread-db.c: Whitespace cleanup.
1569 (try_thread_db_load_1): Fix comment.
1571 * linux-thread-db.c (set_libthread_db_search_path): New function.
1572 (_initialize_thread_db): Add setter for libthread-db-search-path.
1576 * NEWS: Mention --with-iconv-bin.
1577 * configure.ac: New option --with-iconv-bin.
1578 * configure: Regenerate.
1579 * config.in: Regenerate.
1580 * defs.h (relocate_gdb_directory): Declare.
1581 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
1582 removed progname parameter, and exported. All callers updated.
1583 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
1585 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
1586 adding missing call to restore_child_signals_mask.
1590 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
1592 * infrun.c (proceed, start_remote): Adjust.
1593 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
1594 and adjust to not handle it.
1595 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
1596 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
1597 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
1598 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
1599 * windows-nat.c (do_initial_windows_stuff): Adjust.
1600 * infcmd.c (attach_command): Adjust.
1601 (notice_new_inferior): Adjust.
1605 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
1606 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
1607 * spu-tdep.c (op_selb): Use correct value.
1611 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
1612 "parent" parameter to symbol_file_add_from_bfd call.
1617 Implement support for PowerPC BookE masked watchpoints.
1618 * NEWS: Mention masked watchpoint support. Create "Changed commands"
1620 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
1621 method. Initialize to NULL in all existing breakpoint_ops instances.
1622 (struct breakpoint) <hw_wp_mask>: New field.
1623 * breakpoint.c (is_masked_watchpoint): Add prototype.
1624 (update_watchpoint): Don't set b->val for masked watchpoints. Call
1625 breakpoint's breakpoint_ops.works_in_software_mode if available.
1626 (watchpoints_triggered): Handle the case of a hardware masked
1628 (watchpoint_check): Likewise.
1629 (works_in_software_mode_watchpoint): New function.
1630 (insert_masked_watchpoint, remove_masked_watchpoint)
1631 (resources_needed_masked_watchpoint)
1632 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
1633 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
1634 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
1636 (masked_watchpoint_breakpoint_ops): New structure.
1637 (watch_command_1): Check for the existence of the `mask' parameter.
1638 Set b->ops according to the type of hardware watchpoint being created.
1639 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
1640 (ppc_linux_remove_mask_watchpoint)
1641 (ppc_linux_masked_watch_num_registers): New functions.
1642 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
1643 to_remove_mask_watchpoint and to_masked_watch_num_registers.
1644 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
1645 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
1646 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1647 (target_masked_watch_num_registers): New functions.
1648 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
1649 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
1651 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
1652 (target_masked_watch_num_registers): Add prototypes.
1657 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
1658 (producer_is_gcc_ge_4_0): New function.
1659 (process_full_comp_unit): Set also symtab->locations_valid. Move the
1660 symtab->language code.
1661 (var_decode_location): Set cu->has_loclist.
1662 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
1663 skip. Intialize force_skip from locations_valid. Move the prologue
1664 skipping code into two passes.
1665 * symtab.h (struct symtab): Make the primary field a bitfield. New
1666 field locations_valid.
1670 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
1671 (classify_inner_name): Call cp_lookup_nested_type with
1673 * cp-namespace.c (cp_lookup_nested_type): New variable
1674 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
1675 type_name_no_tag_or_error with saved_parent_type.
1676 * dwarf2read.c (load_partial_dies): Read in any children of
1677 DW_TAG_typedef with complaint in such case.
1678 * gdbtypes.c (type_name_no_tag_or_error): New function.
1679 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
1680 * valops.c (destructor_name_p): New comment for parameter type. Remove
1681 type const. Make dname and cp const. Call type_name_no_tag_or_error.
1682 * value.h (destructor_name_p): Remove type const.
1686 * symtab.c (compare_symbol_name): New function.
1687 (completion_list_add_name, expand_partial_symbol_name): Call it,
1688 remove the variable ncmp.
1689 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
1694 Demote to sw watchpoint only in update_watchpoint.
1695 * breakpoint.c (update_watchpoint): Change between software and
1696 hardware watchpoint for all kinds of watchpoints, not just
1697 read/write ones. Determine b->exact value here instead of
1698 in watch_command_1. Error out if there are not enough resources
1699 for a read or access hardware watchpoint.
1700 (watch_command_1): Remove logic of checking whether there are
1701 enough resources available, since update_watchpoint will do that
1702 work now. Don't set b->exact here. Catch exceptions thrown by
1703 update_watchpoint and delete the watchpoint.
1704 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
1705 Use target_exact_watchpoints instead.
1706 (delete_breakpoint): Notify observers only if deleted watchpoint
1707 has a breakpoint number assigned to it.
1711 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1715 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
1717 (i386_stack_tramp_frame_unwind): New static global.
1718 (i386_match_pattern): New function, extracted from i386_match_insn.
1719 (i386_match_insn): Use i386_match_pattern.
1720 (i386_match_insn_block): New function.
1721 (i386_tramp_chain_in_reg_insns)
1722 (i386_tramp_chain_on_stack_insns): New static variables.
1723 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
1728 * configure.host (xscale*): Don't handle target.
1729 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
1734 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
1740 | * elfread.c (elf_symtab_read): Stop memory leak.
1744 * nto-tdep.c (nto_target): Replace deprecated call to
1745 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
1749 Fix false GCC warning.
1750 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
1754 * breakpoint.c (update_watchpoint): Move code to change
1755 the enable state of breakpoint from here ...
1756 (do_enable_breakpoint): ... to here.
1760 * valprint.c (val_print_array_elements): Fixed poor performance
1761 of printing very large arrays with repeat_count_threshold set
1762 to unlimited. New comment.
1766 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
1767 (mi_parse): Likewise.
1768 * breakpoint.c (break_range_command): Use sizeof char*, not
1770 (create_breakpoint): Likewise.
1771 (parse_breakpoint_sals): Likewise.
1775 * linux-nat.c (linux_child_remove_fork_catchpoint)
1776 (linux_child_remove_vfork_catchpoint)
1777 (linux_child_remove_exec_catchpoint): New functions.
1778 (linux_target_install_ops): Install them.
1784 * varobj.c (install_default_visualizer): Do not install a
1785 visualizer if the varobj is CPLUS_FAKE_CHILD.
1786 (construct_visualizer): Likewise.
1790 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
1791 case insensitive comparison.
1795 * infrun.c (proceed): Revert previous change.
1796 (resume): Instead, handle the case of signal delivery while stepping
1797 off a breakpoint location here, and only if software single-stepping
1798 is used. Handle nested signals.
1802 * arm-tdep.c (copy_unmodified): Rename to ...
1803 (arm_copy_unmodified): .. this. New.
1804 (copy_preload): Move common part to ...
1805 (install_preload): .. this. New.
1806 (arm_copy_preload): New.
1807 (copy_preload_reg): Move common part to ...
1808 (install_preload_reg): ... this. New.
1809 (arm_copy_preload_reg): New.
1810 (copy_b_bl_blx): Move common part to ...
1811 (install_b_bl_blx): .. this. New.
1812 (arm_copy_b_bl_blx): New.
1813 (copy_bx_blx_reg): Move common part to ...
1814 (install_bx_blx_reg): ... this. New.
1815 (arm_copy_bx_blx_reg): New.
1816 (copy_alu_reg): Move common part to ...
1817 (install_alu_reg): ... this. New.
1818 (arm_copy_alu_reg): New.
1819 (copy_alu_shifted_reg): Move common part to ...
1820 (install_alu_shifted_reg): ... this. New.
1821 (copy_ldr_str_ldrb_strb): Move common part to ...
1822 (install_ldr_str_ldrb_strb): ... this. New.
1823 (arm_copy_ldr_str_ldrb_strb): New.
1824 (copy_copro_load_store): Move some common part to ...
1825 (install_copy_copro_load_store): ... this. New.
1826 (arm_copy_copro_load_store): New.
1828 (arm_copy_svc): Renamed from copy_svc.
1829 (copy_undef): Delete.
1830 (arm_copy_undef): Renamed from copy_undef.
1831 (decode_ext_reg_ld_st): Delete.
1832 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1833 (decode_svc_copro): Delete.
1834 (arm_decode_svc_copro): Renamed from decode_svc_copro.
1835 (copy_copro_load_store, copy_alu_imm): update callers.
1836 (copy_extra_ld_st, copy_block_xfer): Likewise.
1837 (decode_misc_memhint_neon, decode_unconditional): Likewise.
1838 (decode_miscellaneous, decode_dp_misc): Likewise.
1839 (decode_ld_st_word_ubyte, decode_media): Likewise.
1840 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
1841 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
1842 (decode_unconditional, decode_miscellaneous): Likewise.
1843 (decode_media, decode_b_bl_ldmstm): Likewise.
1844 (arm_process_displaced_insn): Likewise..
1845 (decode_misc_memhint_neon): Delete.
1846 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
1847 (decode_miscellaneous): Delete.
1848 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
1849 (decode_dp_misc): Delete.
1850 (arm_decode_dp_misc): Renamed from decode_dp_misc.
1851 (decode_ld_st_word_ubyte): Delete.
1852 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
1853 (decode_media): Delete.
1854 (arm_decode_media): Renamed from decode_media.
1855 (decode_b_bl_ldmstm): Delete.
1856 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
1857 (decode_ext_reg_ld_st): Delete.
1858 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
1859 (decode_unconditional): Delete.
1860 (arm_decode_unconditional): Renamed from decode_unconditional.
1864 Case insensitive lookups implementation.
1865 * dwarf2read.c: Include ctype.h.
1866 (struct mapped_index): New field version.
1867 (mapped_index_string_hash): New parameter index_version. New comment
1868 for it. Call tolower appropriately.
1869 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
1870 Choose the right index version for mapped_index_string_hash.
1871 (dwarf2_read_index): Support also the index version 5. Initialize the
1872 new struct mapped_index field version.
1873 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
1874 (find_slot): Explain the version needs. Pass INT_MAX for the new
1876 (write_psymtabs_to_index): Produce version 5.
1877 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
1878 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
1879 * psymtab.c (lookup_partial_symbol): Find the
1880 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
1882 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
1884 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
1885 (completion_list_add_name): New variable ncmp, initialize it, use it.
1886 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1887 * utils.c (strcmp_iw): Support case_sensitive_off.
1888 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1889 New function comment part. New variables saved_string1,
1890 saved_string2 and case_pass. Add a proper second pass.
1894 Replace re_comp/re_exec by regcomp/regexec.
1895 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1896 (search_symbols_name_matches): Use them, use regexec.
1897 (search_symbols): New variable retval_chain, adjust the use of
1898 old_chain against it. Replace re_comp by regcomp. Use the new struct
1899 search_symbols_data fields, use regexec instead of re_exec.
1903 Format the code for the next patch.
1904 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1905 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1906 New variables c1 and c2.
1910 * infrun.c (proceed): Do not single-step into signal delivery
1911 when stepping off a breakpoint location.
1912 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1913 (insert_step_resume_breakpoint_at_caller): Likewise.
1914 (insert_step_resume_breakpoint_at_sal): Likewise.
1915 (insert_longjmp_resume_breakpoint): Likewise.
1919 * common/linux-ptrace.h: Remove include <sys/wait.h>.
1923 * procfs.c (procfs_pass_signals): Fix advance declaration.
1927 * target.h (struct target_ops): Remove to_notice_signals;
1928 add to_pass_signals.
1929 (target_notice_signals): Remove.
1930 (target_pass_signals): Add prototype.
1931 * target.c (update_current_target): Remove to_notice_signals;
1932 mention to_pass_signals.
1933 (target_pass_signals): New function.
1934 (debug_to_notice_signals): Remove.
1935 (setup_target_debug): Do not install debug_to_notice_signals.
1937 * infrun.c (signal_pass): New global.
1938 (resume): Call target_pass_signals.
1939 (handle_inferior_event): Report all signals while stepping over
1940 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1941 are re-inserted when stepping over a signal handler.
1942 (signal_cache_update): New function.
1943 (signal_stop_update): Call it.
1944 (signal_print_update): Likewise.
1945 (signal_pass_update): Likewise.
1946 (handle_command): Call signal_cache_update and target_pass_signals
1947 instead of target_notice_signals.
1948 (_initialize_infrun): Initialize signal_pass.
1950 * linux-nat.c (pass_mask): New global.
1951 (linux_nat_pass_signals): New function.
1952 (linux_nat_create_inferior): Report all signals initially.
1953 (linux_nat_attach): Likewise.
1954 (linux_nat_resume): Use pass_mask to decide whether to directly
1955 handle an inferior signal.
1956 (linux_nat_wait_1): Likewise.
1957 (linux_nat_add_target): Install to_pass_signals callback.
1959 * nto-procfs.c (notice_signals): Remove.
1960 (procfs_resume): Do not call notice_signals.
1961 (procfs_notice_signals): Remove.
1962 (procfs_pass_signals): New function.
1963 (init_procfs_ops): Install to_pass_signals callback instead of
1964 to_notice_signals callback.
1965 (_initialize_procfs): Report all signals initially.
1967 * procfs.c (procfs_notice_signals): Remove.
1968 (procfs_pass_signals): New function.
1969 (procfs_target): Install to_pass_signals callback instead of
1970 to_notice_signals callback.
1971 (register_gdb_signals): Remove.
1972 (procfs_debug_inferior): Report all signals initially.
1973 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1975 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1976 parameters; use them instead of calling signal_..._state routines.
1977 (remote_notice_signals): Remove.
1978 (remote_start_remote): Report all signals initially.
1979 (remote_resume): Do not call remote_pass_signals.
1980 (_initialize_remote): Install to_pass_signals callback instead of
1981 to_notice_signals callback.
1985 * breakpoint.c (user_settable_breakpoint): Delete.
1986 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1987 (delete_command): Check user_breakpoint_p instead of looking at
1988 the breakpoint's type.
1989 (disable_command): Ditto.
1990 (enable_command): Ditto.
1991 (delete_trace_command): Use user_breakpoint_p instead of looking
1992 at the breakpoint number directly. When checking if there are
1993 user visible tracepoints, in order to know whether to ask the user
1994 for confirmation, check whether the breakpoint is actually a
1999 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
2004 MI breakpoint notifications.
2006 * annotate.c (breakpoint_changed): Adjust parameter type.
2007 * breakpoint.c (set_breakpoint_condition): Adjust to change
2008 in breakpoint_modified type.
2009 (breakpoint_set_commands): Likewise.
2010 (do_map_commands_command): Likewise.
2011 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
2012 changed after bumping hit count.
2013 (bpstat_stop_status): Likewise.
2014 (print_one_breakpoint_location): Don't wrap in tuple here.
2015 (print_one_breakpoint): Always print individual locations.
2016 For locations, use unnamed tuple.
2017 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
2019 (create_catchpoint, create_syscall_event_catchpoint): Call
2020 breakpoint_created obsever.
2021 (mention): Don't call breakpoint_created observer.
2022 (create_breakpoint_sal): Call breakpoint_created observer.
2023 (create_breakpoint, watch_command_1): Likewise.
2024 (create_ada_exception_breakpoint): Likewise.
2025 (delete_breakpoint): Call breakpoint_deleted breakpoint.
2026 (locations_are_equal): New.
2027 (update_breakpoint_locations): If locations were changed, notify.
2028 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
2029 Call breakpoint_modified observer.
2031 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
2032 (mi_cmd_break_insert): Don't set observers for modify and delete.
2033 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
2034 (mi_breakpoint_created, mi_breakpoint_deleted)
2035 (mi_breakpoint_modified): New.
2036 (mi_interpreter_init): Hook the above.
2037 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
2038 while -break-* commands are executing.
2039 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
2040 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
2042 (mi_ui_out_impl): Hook in mi_redirect.
2043 (mi_field_skip): True to the name, skip the field, don't output
2044 a field with an empty value.
2046 * python/py-breakpoint.c (gdbpy_breakpoint_created)
2047 (gdbpy_breakpoint_deleted): Adjust.
2048 * tui/tui-hooks.c (tui_event_create_breakpoint)
2049 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
2053 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
2054 (procfs_remove_hw_watchpoint): Likewise.
2058 * remote.c (remote_start_remote): Ack packet after sending the
2063 * linux-nat.c: Move common macros to ...
2064 Include linux-ptrace.h.
2065 * common/linux-ptrace.h: ... here. New.
2069 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
2070 !objfile_has_partial_symbols. New comment.
2071 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
2072 SYM_READ_PSYMBOLS is not present. Extend the comment.
2073 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
2077 * defs.h (ENUM_BITFIELD): Remove.
2082 * NEWS: Document the new gdbserver --once option.
2086 * MAINTAINERS: Update my email address.
2090 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
2091 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
2092 function call if __STDC_ISO_10646__ macro is defined.
2093 (intermediate_encoding): New prototype.
2094 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
2095 to generate compile time error for unsupported gdb_wchar_t size.
2096 (ENDIAN_SUFFIX): New macro.
2097 (intermediate_encoding): New function.
2101 * ada-lang.c (struct add_partial_datum): Update the comment for
2102 expand_partial_symbol_name.
2103 (ada_add_partial_symbol_completions): Rename to ...
2104 (ada_expand_partial_symbol_name): ... here, change return type, update
2105 function comment, call symbol_completion_match instead of
2106 symbol_completion_add.
2107 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
2108 and ada_expand_partial_symbol_name.
2109 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
2111 (dw2_map_symbol_names): Remove.
2112 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
2113 * psymtab.c (map_symbol_names_psymtab): Remove.
2114 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
2115 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
2117 (psym_functions): Unlist map_symbol_names_psymtab.
2118 (map_partial_symbol_names): Rename to ...
2119 (expand_partial_symbol_names): ... here, change the FUN type, call
2120 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
2121 * psymtab.h (map_partial_symbol_names): Rename to ...
2122 (expand_partial_symbol_names): ... here, change the FUN type.
2123 * symfile.h (struct quick_symbol_functions): Update the description of
2124 expand_symtabs_matching. Remove map_symbol_names.
2125 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
2126 (struct add_name_data): Update the comment for
2127 expand_partial_symbol_name.
2128 (add_partial_symbol_name): Rename to ...
2129 (expand_partial_symbol_name): ... here. Replace
2130 completion_list_add_name call by strncmp.
2131 (default_make_symbol_completion_list_break_on): Use now
2132 expand_partial_symbol_names and expand_partial_symbol_name.
2133 * symtab.h (enum search_domain): New element ALL_DOMAIN.
2137 * dwarf2read.c (save_gdb_index_command): Replace format
2138 documentation with a pointer to the manual.
2142 * regcache.c: Include remote.h.
2143 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
2144 (regcache_dump): Handle regcache_dump_remote.
2145 (maintenance_print_remote_registers): New function.
2146 (_initialize_regcache): Install "maint print remote-registers"
2148 * remote.c (map_regcache_remote_table): New function, factored out
2150 (init_remote_state): ... here.
2151 (remote_register_number_and_offset): New.
2152 * remote.h (remote_register_number_and_offset): Declare.
2156 * regcache.c (get_thread_arch_regcache): If creating a regcache for
2157 null_ptid, assume and allow a NULL address space, instead of
2158 asking the target for the ptid's address space.
2159 * infrun.c (ptid_is_pid): Remove assertion.
2163 * windows-tdep.c (windows_xfer_shared_library):
2164 * windows-nat.c (get_module_name, windows_make_so):
2165 * v850-tdep.c (v850_handle_pushm):
2166 * utils.c (null_cleanup, gdb_realpath):
2167 * ui-out.c (get_next_header):
2168 * tracepoint.c (clear_traceframe_info):
2169 * symtab.c (lookup_symtab):
2170 * serial.h (struct serial_ops):
2171 * mipsread.c (read_alphacoff_dynamic_symtab):
2172 * infcmd.c (print_return_value):
2173 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
2174 * f-exp.y (parse_number):
2175 * exceptions.c (catch_exceptions):
2176 * dummy-frame.c (dummy_frame_this_id):
2177 * defs.h (struct cleanup):
2178 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
2179 * arm-tdep.c (arm_push_dummy_call):
2180 * amd64-tdep.h (amd64_collect_xsave):
2181 * amd64-tdep.c (amd64_collect_xsave):
2182 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
2183 * README (typing): Remove duplicate words.
2184 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
2185 * infrun.c (siginfo_value_read): Fix typo.
2186 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
2187 * top.c (source_line_number): Add comma.
2191 * thread.c (any_live_thread_of_process): Prioritize threads
2192 that are not executing.
2193 * gdbthread.h (any_live_thread_of_process): Update comment
2194 as per above change.
2198 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
2199 (scan_xcoff_symtab): Likewise.
2203 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
2209 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
2210 variables to simplify code and avoid == operator at end of
2211 line as this is against GNU coding standards.
2215 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
2216 lm_name to name_lm to avoid conflict with lm_name function.
2220 ARI fixes: Use only lowercase function name for static functions.
2221 * nto-tdep.c (LM_ADDR): Rename to...
2222 (lm_addr): New function name.
2223 (nto_relocate_section_addresses): Adapt to change above.
2224 * solib-sunos.c (LM_ADDR): Rename to...
2225 (lm_addr): New function name.
2226 (LM_NEXT): Rename to...
2227 (lm_next): New function name.
2228 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
2229 function name changes above.
2230 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
2231 (lm_addr_from_link_map): New function name.
2232 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2233 (has_lm_dynamic_from_link_map): New function name.
2234 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
2235 (lm_dynamic_from_link_map): New function name.
2236 (LM_ADDR_CHECK): Rename to...
2237 (lm_addr_check): New function name.
2238 (LM_NEXT): Rename to...
2239 (lm_next): New function name.
2240 (LM_PREV): Rename to...
2241 (lm_prev): New function name.
2242 (LM_NAME): Rename to...
2243 (lm_name): New function name.
2244 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
2245 (ignore_first_link_map_entry): New function name.
2246 (svr4_keep_data_in_core): Adapt to function name changes above.
2247 (svr4_current_sos): Likewise.
2248 (enable_break): Likewise.
2249 (svr4_relocate_section_addresses): Likewise.
2254 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
2255 sprintf. Simplify code and avoid loosing memory.
2256 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
2257 (call0_frame_cache): Remove && operator from end of line.
2261 Fix libraries displacement if they change whether they were prelinked.
2262 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
2263 does not match. Comment why.
2267 * corelow.c: Include wrapper.h.
2268 (core_open): Call now gdb_target_find_new_threads.
2269 * wrapper.c: Include target.h.
2270 (gdb_target_find_new_threads): New.
2271 * wrapper.h (gdb_target_find_new_threads): New declaration.
2275 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
2276 even if !TARGET_HAS_EXECUTION.
2280 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
2281 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
2282 bfd_get_synthetic_symtab.
2283 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
2284 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
2285 parameter parent, remove the call to add_separate_debug_objfile.
2286 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
2287 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
2288 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
2289 parent, new comment for it, call add_separate_debug_objfile for it.
2290 (symbol_file_add_separate): Pass objfile as the parameter parent,
2291 remove the call to add_separate_debug_objfile.
2292 (symbol_file_add_from_bfd): New parameter parent, pass it.
2293 (symbol_file_add): Pass NULL to the new parameter parent.
2294 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
2298 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
2303 Fix Python access to inlined frames.
2304 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
2305 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
2309 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
2313 * MAINTAINERS: Add myself to write-after-approval section.
2317 * remote-sim.c (sim_command_completer): New function.
2318 (_initialize_remote_sim): Set completer to sim_command_completer.
2322 * breakpoint.c (print_exception_catchpoint): Rename to ...
2323 (print_it_exception_catchpoint): ... this.
2324 (gnu_v3_exception_catchpoint_ops): Update with new name
2325 for print_it_exception_catchpoint.
2329 * MAINTAINERS: Add myself for write after approval privileges.
2333 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2337 * breakpoint.c (watch_command_1): Remove colon from exp_string.
2341 * breakpoint.c (save_breakpoints): Verify whether
2342 breakpoint_ops.print_recreate is defined before calling it.
2346 Fix failure with --enable-maintainer-mode.
2347 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
2352 * symtab.c (search_symbols): Reorder the KIND description in the
2353 function comment. Remove the unused 4th element of types, types2,
2354 types3 and types4. New gdb_assert on KIND.
2355 (symtab_symbol_info): Remove the unused 4th element of classnames.
2356 New gdb_assert on KIND.
2357 * symtab.h (enum search_domain): New warning in the enum comment.
2358 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
2363 Fix crash of gdb save-index on a STABS file.
2364 * dwarf2read.c (write_psymtabs_to_index): Return also on no
2369 Fix DW_AT_accessibility compatibility with gcc-4.6+.
2370 * dwarf2read.c: Include ctype.h.
2371 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
2373 (dwarf2_add_field): Fix new_field->accessibility by calling
2374 dwarf2_default_access_attribute. Restructure setting accessibility
2376 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
2377 is_private and is_protected by calling
2378 dwarf2_default_access_attribute.
2382 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
2383 to the initialization.
2387 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
2392 Remove support for old Cygwin 1.5 versions.
2393 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
2394 function on old Cygwin version.
2395 * windows-nat.c: Remove cygwin version check and always define
2396 __USEWIDE for Cygwin compilation.
2400 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
2402 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
2403 (arm_copy_svc): Remove parameters INSN and TO.
2404 (decode_svc_copro): Update caller.
2405 * arm-tdep.h (struct displaced_step_closure): Remove parameters
2406 from function pointer `copy_svc_os'.
2410 * arm-tdep.c (cleanup_branch): Set a correct return address in
2411 LR for ARM and Thumb.
2416 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
2417 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
2418 in the function comment, a new note on values compatibility.
2419 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
2420 * symtab.h (SYMBOL_HASH_NEXT): New.
2424 * ppc-linux-nat.c (check_condition): Add len output parameter.
2425 Set it based on the memory region referenced in the condition
2426 expression. Update all callers.
2430 Fix crash regression on systems featuring .gdb_index.
2431 * objfiles.c (free_objfile): Move the
2432 forget_cached_source_info_for_objfile call earlier. Comment it.
2433 Extend the comment for objfile_free_data.
2437 Fix regression of displaying the debug format.
2438 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
2443 * cli/cli-interp.c (struct captured_execute_command_args):
2445 (do_captured_execute_command): Remove.
2446 (safe_execute_command): Use TRY_CATCH.
2447 * cli/cli-script.c (struct wrapped_read_command_file_args):
2449 (wrapped_read_command_file): Remove.
2450 (script_from_file): Use TRY_CATCH.
2451 * exceptions.c (catch_exception): Remove.
2452 * exceptions.h (catch_exception): Remove.
2453 (deprecated_throw_reason): Update comment.
2454 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
2455 argument to 'context'.
2456 (mi_execute_command): Use TRY_CATCH.
2457 * remote.c (struct start_remote_args): Remove.
2458 (remote_start_remote): Update; change arguments.
2459 (remote_open_1): Use TRY_CATCH.
2463 * tracepoint.c (scope_info): Update.
2464 * symtab.c (decode_line_spec): Update.
2465 * python/python.c (gdbpy_decode_line): Update.
2466 * linespec.h (decode_line_1): Update.
2467 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
2468 (decode_compound, find_method, symtab_from_filename)
2469 (decode_variable): Likewise.
2470 * cli/cli-cmds.c (edit_command): Update.
2471 (list_command): Update.
2472 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
2474 (create_breakpoint): Update.
2475 (until_break_command): Update.
2476 (addr_string_to_sals): Update.
2477 (decode_line_spec_1): Update.
2481 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
2482 (do_captured_parse_breakpoint): Remove.
2483 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
2484 Use TRY_CATCH directly.
2488 * symtab.h (free_symtab): Remove.
2489 (forget_cached_source_info_for_objfile): Declare.
2490 * symmisc.c (free_symtab): Remove.
2491 * source.c (forget_cached_source_info_for_objfile): New function.
2492 (forget_cached_source_info): Use it.
2493 * objfiles.c (free_objfile): Simplify check before calling
2494 clear_current_source_symtab_and_line. Call
2495 forget_cached_source_info_for_objfile.
2499 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
2500 (new_symtab): Don't set `free_code' on symtab.
2501 (new_linetable): Properly handle size==0.
2502 * symtab.h (struct symtab) <free_code, free_func>: Remove.
2503 * symmisc.c (free_symtab): Don't free the linetable. Don't call
2505 * jv-lang.c (struct jv_per_objfile_data): New.
2506 (jv_per_objfile_free): Free the data.
2507 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
2508 (get_java_class_symtab): Set the `dict' field on the
2509 jv_per_objfile_data.
2510 (free_class_block): Remove.
2511 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
2516 * symfile.c (reread_symbols): Update.
2517 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
2519 * objfiles.c (allocate_objfile): Update.
2520 * cp-support.h (cp_check_possible_namespace_symbols): Don't
2522 * cp-namespace.c (lookup_symbol_file): Don't call
2523 lookup_possible_namespace_symbol.
2524 (initialize_namespace_symtab, get_possible_namespace_block)
2525 (free_namespace_block, cp_check_possible_namespace_symbols)
2526 (check_possible_namespace_symbols_loop)
2527 (check_one_possible_namespace_symbol)
2528 (lookup_possible_namespace_symbol): Remove.
2529 (maintenance_cplus_namespace): Replace with notice.
2530 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
2534 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
2535 * symtab.h (struct symtab) <producer, debugformat>: Now const.
2536 * symmisc.c (free_symtab): Don't free debugformat.
2537 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
2538 (record_debugformat, record_producer): Document.
2539 * buildsym.c (end_symtab): Don't save debugformat and producer
2541 (end_symtab): Don't free debugformat and producer fields.
2542 (record_debugformat): Don't call xstrdup.
2543 (record_producer): Likewise.
2547 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
2548 (source_line_charpos, source_charpos_line): Remove.
2552 * symtab.h (domain_enum): Split in two...
2553 (enum search_domain): New.
2554 (search_symbols): Update.
2555 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
2556 redundant declarations.
2557 (search_symbols): Change 'kind' argument to search_domain.
2559 (print_symbol_info): Likewise.
2560 (symtab_symbol_info): Likewise.
2561 * symfile.h (struct quick_symbol_functions)
2562 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
2563 <expand_symtabs_matching>: Likewise.
2564 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
2565 (expand_symtabs_matching_via_partial): Update.
2566 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
2567 (dw2_expand_symtabs_for_function): Update.
2568 * block.h: Moved anonymous enum...
2569 * defs.h (enum block_enum): ... here. Now named.
2573 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
2574 * version.in: Bump version to 7.3.50.20110403-cvs.
2578 * NEWS: Create a new section for the next release branch.
2579 Rename the section of the current branch, now that it has
2584 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
2585 for "fpscr" in target description.
2589 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
2590 initialize it. Delay HASH initialization. Strip the part after open
2591 parenthesis for languages with qualifiers. Call do_cleanups.
2595 * utils.c (report_command_stats): Don't print `-' for negative
2600 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
2601 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
2606 * breakpoint.h (bpdisp_text): Add declaration.
2607 * breakpoint.c (bpdisp_text): Make non-static.
2608 * ada-lang.c: #include "mi/mi-common.h".
2609 (print_it_exception): Rewrite to improve GDB/MI output.
2613 * arm-tdep.h (struct address_space): Add forward declaration.
2617 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
2618 * arm-tdep.c (arm_override_mode): New global.
2619 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
2620 execution mode heuristics.
2621 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
2622 second single-step breakpoint if needed, using
2623 arm_insert_single_step_breakpoint.
2624 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
2625 ARM execution mode, do not call thumb_get_next_pc_raw.
2626 (arm_get_next_pc): Encode execution mode in return value. Call
2627 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
2628 (arm_insert_single_step_breakpoint): New function.
2629 (arm_software_single_step): Call it.
2630 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
2631 argument to return execution mode of sigreturn target.
2632 (arm_linux_syscall_next_pc): Use it.
2633 (arm_linux_copy_svc): Update call.
2634 (arm_linux_software_single_step): Call
2635 arm_insert_single_step_breakpoint.
2639 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
2644 * varobj.c (update_dynamic_varobj_children): Properly handle
2645 errors from iterator.
2649 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
2650 struct linkage name twice.
2654 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
2655 missing ">" to message.
2659 * varobj.c (instantiate_pretty_printer): Remove duplicate
2664 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
2665 if neither saved value nor register available (e.g. signal frame).
2669 * macroexp.c (expand): Avoid uninitialized variable
2674 * breakpoint.c (break_range_command): Fix typo in comment.
2679 Implement support for PowerPC BookE ranged breakpoints.
2680 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
2681 * breakpoint.h (struct bp_target_info) <length>: New member
2683 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
2684 instead of struct breakpoint as argument, and also add ASPACE
2685 and BP_ADDR arguments. Update all callers.
2686 (struct breakpoint_ops) <print_one_detail>: New method.
2687 (struct breakpoint) <addr_string_range_end>: New member variable.
2688 * breakpoint.c (breakpoint_location_address_match): Add function
2690 (insert_bp_location): Set bl->target_info.length.
2691 (breakpoint_here_p): Call breakpoint_location_address_match.
2692 (moribund_breakpoint_here_p): Likewise.
2693 (regular_breakpoint_inserted_here_p): Likewise.
2694 (breakpoint_thread_match): Likewise.
2695 (bpstat_stop_status): Likewise.
2696 (bpstat_check_location): Move call to
2697 breakpoint_ops.breakpoint_hit to the top.
2698 (print_one_breakpoint_location): Call
2699 breakpoint_ops.print_one_detail if available.
2700 (breakpoint_address_match_range): New function.
2701 (breakpoint_location_address_match): Likewise.
2702 (breakpoint_locations_match): Compare the length field of the
2704 (hw_breakpoint_used_count): Count resources used by all locations
2705 in a breakpoint, and use breakpoint_ops.resources_needed if
2707 (breakpoint_hit_ranged_breakpoint): New function.
2708 (resources_needed_ranged_breakpoint): Likewise.
2709 (print_it_ranged_breakpoint): Likewise.
2710 (print_one_ranged_breakpoint): Likewise.
2711 (print_one_detail_ranged_breakpoint): Likewise.
2712 (print_mention_ranged_breakpoint): Likewise.
2713 (print_recreate_ranged_breakpoint): Likewise.
2714 (ranged_breakpoint_ops): New structure.
2715 (find_breakpoint_range_end): New function.
2716 (break_range_command): Likewise.
2717 (delete_breakpoint): Free addr_string_range_end.
2718 (update_breakpoint_locations): Add SALS_END argument. Update
2719 all callers. Calculate breakpoint length if a non-zero SALS_END
2720 is given. Call breakpoint_locations_match instead of
2721 breakpoint_address_match.
2722 (reset_breakpoint): Find SaL of the end of the range if B is a
2724 (_initialize_breakpoint): Register break-range command.
2725 * defs.h (print_core_address): Add function prototype.
2726 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
2728 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
2729 (ppc_linux_remove_hw_breakpoint): Likewise.
2730 (_initialize_ppc_linux_nat): Initialize
2731 to_ranged_break_num_registers.
2732 * target.c (update_current_target): Add comment about
2733 to_ranged_break_num_registers.
2734 (target_ranged_break_num_registers): New function.
2735 * target.h (struct target_ops) <to_ranged_break_num_registers>:
2737 (target_ranged_break_num_registers): Add function prototype.
2738 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
2739 * utils.c (print_core_address): ... here.
2743 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
2744 variable compiler warning.
2748 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
2750 (re_set_breakpoint): ... to here ...
2751 (addr_string_to_sals): ... and here.
2755 * Makefile.in (SFILES): Add missing C sources.
2756 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
2757 Add missing headers.
2761 * .gitignore: New file.
2765 * NEWS: Mention new cfi device simulation.
2769 * dwarf2read.c (fixup_partial_die): Handle linkage name on
2770 otherwise anonymous types.
2771 (dwarf2_name): Likewise.
2772 * valops.c (value_struct_elt_for_reference): Refine artificial
2773 type logic. Call error if j==-1.
2777 Fix false GCC warning.
2778 * infcall.c (find_function_addr): Initialize funaddr.
2782 Fix mingw compilation with --enable-targets=all.
2783 * remote-mips.c (gdb_usleep.h): Include header.
2784 (mips_enter_debug): Use gdb_usleep instead of sleep.
2788 Support resolution of STT_GNU_IFUNC via breakpoints.
2789 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
2790 bp_gnu_ifunc_resolver_return.
2791 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
2792 the loop. Support bp_gnu_ifunc_resolver and
2793 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
2794 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
2796 (bptype_string, print_one_breakpoint_location): Support
2797 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
2798 (user_settable_breakpoint): Return true also for
2799 bp_gnu_ifunc_resolver.
2800 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
2801 bp_gnu_ifunc_resolver_return.
2802 (set_breakpoint_location_function): New parameter explicit_loc,
2803 describe it. Call find_pc_partial_function_gnu_ifunc with new
2804 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
2805 EXPLICIT_LOC is not set.
2806 (set_raw_breakpoint): Set EXPLICIT_LOC for
2807 set_breakpoint_location_function.
2808 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
2809 set_breakpoint_location_function.
2810 (mention): Support bp_gnu_ifunc_resolver and
2811 bp_gnu_ifunc_resolver_return.
2812 (add_location_to_breakpoint): Set EXPLICIT_LOC for
2813 set_breakpoint_location_function.
2814 (update_breakpoint_locations): Remove static.
2815 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
2816 bp_gnu_ifunc_resolver_return.
2817 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
2818 bp_gnu_ifunc_resolver_return.
2819 (update_breakpoint_locations): New declaration.
2820 * elfread.c: Include gdbthread.h and regcache.h.
2821 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
2823 (elf_gnu_ifunc_fns): Install them.
2824 * minsyms.c (stub_gnu_ifunc_resolver_stop)
2825 (stub_gnu_ifunc_resolver_return_stop): New functions.
2826 (stub_gnu_ifunc_fns): Install them.
2827 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
2828 and gnu_ifunc_resolver_return_stop.
2829 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
2833 STT_GNU_IFUNC reader implementation.
2834 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
2835 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
2836 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
2837 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
2838 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
2839 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
2840 (elf_gnu_ifunc_resolve_addr): New.
2841 (elf_symfile_read): Call elf_rel_plt_read.
2842 (elf_gnu_ifunc_fns): New.
2843 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
2844 Install elf_gnu_ifunc_fns.
2845 * infcall.c (find_function_return_type): New function.
2846 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
2847 * minsyms.c (stub_gnu_ifunc_resolve_addr)
2848 (stub_gnu_ifunc_resolve_name): New functions.
2849 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
2850 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
2851 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
2855 Code cleanup for later STT_GNU_IFUNC support.
2856 * infcall.c (find_function_addr): Remove variable code, use explicit
2857 dereferences for it. Move VALUE_TYPE initialization later.
2861 GDB find_pc_partial_function support for STT_GNU_IFUNC.
2862 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
2863 (clear_pc_function_cache): Clear it.
2864 (find_pc_partial_function): Rename to ...
2865 (find_pc_partial_function_gnu_ifunc): ... this function. New
2866 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
2867 (find_pc_partial_function): New wrapper for this function.
2868 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
2872 GDB internal type support for STT_GNU_IFUNC.
2873 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
2874 (elf_symtab_read): Set mst_text_gnu_ifunc for
2875 BSF_GNU_INDIRECT_FUNCTION.
2876 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
2877 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
2878 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
2879 nodebug_got_plt_symbol.
2880 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
2881 (TYPE_GNU_IFUNC): New.
2882 (struct main_type): New field flag_gnu_ifunc.
2883 (struct builtin_type): New field builtin_func_func.
2884 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
2885 nodebug_got_plt_symbol.
2886 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2887 (in_gnu_ifunc_stub): New.
2888 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2890 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
2891 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
2892 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2894 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2895 * symtab.c (search_symbols): Likewise.
2896 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2897 and mst_slot_got_plt.
2898 (in_gnu_ifunc_stub): New declaration.
2902 Support a ring of related breakpoints.
2903 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2904 other functions, add gdb_assert.
2905 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
2906 watchpoint_del_at_next_stop.
2907 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2908 (bpstat_stop_status): Handle ring in related_breakpoint.
2909 (set_raw_breakpoint_without_location): Initialize ring in
2911 (delete_breakpoint): Handle ring in related_breakpoint, use
2912 watchpoint_del_at_next_stop.
2913 (map_breakpoint_numbers): Handle ring in related_breakpoint.
2918 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2919 with `language_minimal'.
2923 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2924 instead of checking for STT_ARM_TFUNC symbol type.
2928 * linespec.c (symbol_found): Restore line-based result for
2929 non-LOC_LABEL symbols.
2933 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2934 instead of strcmp for comparison.
2935 (tui_source_is_displayed): Likewise.
2936 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2940 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2942 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2943 (find_partial_die_in_comp_unit): Likewise in comment.
2944 (read_attribute_value): Likewise.
2945 (lookup_die_type): Likewise.
2946 (dwarf_form_name): Likewise.
2947 (dump_die_shallow): Likewise.
2948 (follow_die_ref_or_sig): Likewise.
2952 PR breakpoints/11816:
2953 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2954 (decode_compound): Update.
2955 (find_function_symbol): New function.
2956 (decode_dollar): Update.
2957 (decode_label): Add 'function_symbol' parameter. Handle
2958 function-relative labels.
2959 (decode_variable): Update.
2960 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2961 not its line. Set `special_display' and canonical name for
2966 * linespec.h (struct linespec_result) <special_display>: New
2968 * breakpoint.h (struct breakpoint) <display_canonical>: New
2970 * breakpoint.c (print_breakpoint_location): Respect
2972 (create_breakpoint_sal): Add 'display_canonical' parameter.
2973 (create_breakpoints_sal): Update.
2974 (create_breakpoint): Update.
2978 * symtab.c (decode_line_spec): Update.
2979 * linespec.c (build_canonical_line_spec): Change type of
2981 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2982 (find_method, decode_all_digits, decode_dollar, decode_label)
2983 (symbol_found): Likewise.
2984 (init_linespec_result): New function.
2985 * breakpoint.c (struct captured_parse_breakpoint_args)
2986 <canonical_p>: New field, replaces addr_string_p.
2987 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2989 (parse_breakpoint_sals): Likewise.
2990 (do_captured_parse_breakpoint): Update.
2991 (create_breakpoint): Use struct linespec_result.
2992 (until_break_command): Update.
2993 (breakpoint_re_set_one): Update.
2994 (decode_line_spec_1): Update.
2995 * linespec.h (struct linespec_result): New.
2996 (init_linespec_result): Declare.
3000 * regcache.c (regcache_raw_read): If the target didn't supply a
3001 given raw register, mark it as unavailable.
3005 * breakpoint.c (clear_command): Use filename_cmp
3006 instead of strcmp for comparison.
3007 * buildsym.c (watch_main_source_file_lossage): Likewise.
3008 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
3009 checking just for slash.
3010 * dbxread.c (read_dbx_symtab): Use lbasename instead of
3011 strrchr and filename_cmp instead of strcmp for filenames.
3012 (add_old_header_file): Use filename_cmp
3013 instead of strcmp for comparison.
3014 * exec.c (exec_set_section_address): Likewise.
3015 * macrotab.c (macro_lookup_inclusion): Likewise.
3016 (macro_lookup_inclusion): Likewise.
3017 * elfread.c (_initialize_elfread): Likewise.
3018 (elfstab_offset_sections): Likewise.
3019 (elfstab_offset_sections): Use lbasename instead of
3021 * mdebugread.c (parse_partial_symbols): Likewise.
3022 (arse_partial_symbols): Use filename_(n)cmp instead of
3023 str(n)cmp for comparison.
3024 * minsyms.c (lookup_minimal_symbol): Likewise.
3025 * psymtab.c (read_psymtabs_with_filename): Likewise.
3026 * solib.c (solib_read_symbols): Likewise.
3027 (reload_shared_libraries_1): Likewise.
3028 * symmisc.c (maintenance_print_symbols): Likewise.
3029 * symfile.c (separate_debug_file_exists): Likewise.
3030 (reread_symbols): Likewise.
3031 (find_separate_debug_file_by_debuglink): Likewise.
3032 * remote-fileio.c (remote_fileio_func_rename): Likewise.
3033 * source.c (add_path): Likewise.
3034 * symtab.c (filename_seen): Likewise.
3035 (file_matches): Likewise.
3036 (print_symbol_info): Likewise.
3037 (maybe_add_partial_symtab_filename): Likewise.
3038 (make_source_files_completion_list): Likewise.
3039 * xml-syscall.c (init_sysinfo): Likewise.
3040 * windows-nat.c (_initialize_check_for_gdb_ini): Use
3041 IS_DIR_SEPARATOR for checking for trailing path separator.
3045 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
3046 label abort_expression.
3047 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
3048 DWARF_VALUE_OPTIMIZED_OUT.
3053 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
3054 to linkage_name. Invert its value. Update the function comment.
3055 (c_type_print_varspec_suffix): Invert it at the caller.
3056 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
3060 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
3061 errors when reading the `stop_pc'.
3062 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
3067 * NEWS: Document gdb.Write stream keyword.
3073 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3074 (dwarf2_add_field): Fix new_field->accessibility for
3075 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3081 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
3082 other error classes. Do not print stack trace.
3086 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
3087 (dwarf2_add_field): Fix new_field->accessibility for
3088 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
3092 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
3093 encountering a load via a non-SP register.
3097 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
3098 field in returned unwinder.
3102 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
3106 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
3111 * frame.c (frame_unwind_register): Throw an error if unwinding the
3113 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
3114 an unwind stop reason.
3115 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
3116 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
3117 UNWIND_UNAVAILABLE>: New.
3118 * inline-frame.c (inline_frame_unwind): Install
3119 default_frame_unwind_stop_reason.
3120 * frame-unwind.c: Include "exceptions.h".
3121 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
3122 (default_frame_unwind_stop_reason): New.
3123 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
3124 (default_frame_unwind_stop_reason): Declare.
3125 (struct frame_unwind) <stop_reason>: New function pointer.
3127 * dummy-frame.c: Install default_frame_unwind_stop_reason.
3128 * dwarf2-frame.c: Include exceptions.h.
3129 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
3130 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
3131 computing the CFA. If such an error was thrown, set
3132 unavailable_retaddr.
3133 (dwarf2_frame_unwind_stop_reason): New.
3134 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
3136 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
3137 (dwarf2_signal_frame_unwind): Ditto.
3139 * amd64-tdep.c: Include "exceptions.h".
3140 (struct amd64_frame_cache): New field "base_p".
3141 (amd64_init_frame_cache): Clear it.
3142 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
3143 Avoid reading registers with functions that throw if the register
3144 is not necessary to compute the frame base.
3145 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3146 swallowing NOT_AVAILABLE_ERROR.
3147 (amd64_frame_unwind_stop_reason): New.
3148 (amd64_frame_this_id): Don't build a frame id if the frame base
3150 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
3151 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3152 base_p if the frame base was computable.
3153 (amd64_sigtramp_frame_unwind_stop_reason): New.
3154 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
3155 frame base was unavailable.
3156 (amd64_sigtramp_frame_unwind): Install
3157 amd64_sigtramp_frame_unwind_stop_reason.
3158 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3159 base_p if the frame base was computable.
3160 (amd64_epilogue_frame_unwind_stop_reason): New.
3161 (amd64_epilogue_frame_this_id): Don't build a frame id if the
3162 frame base was unavailable.
3163 (amd64_epilogue_frame_unwind): Install
3164 amd64_epilogue_frame_unwind_stop_reason.
3165 * i386-tdep.c: Include "exceptions.h".
3166 (struct i386_frame_cache): New field "base_p".
3167 (i386_init_frame_cache): Clear it.
3168 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
3169 Avoid reading registers with functions that throw if the register
3170 is not necessary to compute the frame base.
3171 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
3172 swallowing NOT_AVAILABLE_ERROR.
3173 (i386_frame_unwind_stop_reason): New.
3174 (i386_frame_this_id): Don't build a frame id if the frame base was
3176 (i386_frame_prev_register): Handle unavailable SP.
3177 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
3178 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3179 base_p if the frame base was computable.
3180 (i386_epilogue_frame_unwind_stop_reason): New.
3181 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
3182 base was unavailable.
3183 (i386_epilogue_frame_unwind): Install
3184 i386_epilogue_frame_unwind_stop_reason.
3185 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
3186 base_p if the frame base was computable.
3187 (i386_sigtramp_frame_unwind_stop_reason): New.
3188 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
3189 base was unavailable.
3190 (i386_sigtramp_frame_unwind): Install
3191 i386_sigtramp_frame_unwind_stop_reason.
3192 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
3193 type's size, not the register's.
3194 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
3196 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
3197 default_frame_unwind_stop_reason.
3198 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
3199 (alpha_heuristic_frame_unwind): Ditto.
3200 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
3201 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
3202 * avr-tdep.c (avr_frame_unwind): Ditto.
3203 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
3205 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
3206 * frv-tdep.c (frv_frame_unwind): Ditto.
3207 * h8300-tdep.c (h8300_frame_unwind): Ditto.
3208 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
3209 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
3210 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
3211 (hppa_stub_frame_unwind): Ditto.
3212 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
3213 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
3214 (ia64_libunwind_frame_unwind)
3215 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
3216 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
3217 * lm32-tdep.c (lm32_frame_unwind): Ditto.
3218 * m32c-tdep.c (m32c_unwind): Ditto.
3219 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
3220 * m32r-tdep.c (m32r_frame_unwind): Ditto.
3221 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
3222 * m68k-tdep.c (m68k_frame_unwind): Ditto.
3223 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
3224 * m88k-tdep.c (m88k_frame_unwind): Ditto.
3225 * mep-tdep.c (mep_frame_unwind): Ditto.
3226 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
3227 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
3228 (mips_stub_frame_unwind): Ditto.
3229 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
3230 * moxie-tdep.c (moxie_frame_unwind): Ditto.
3231 * mt-tdep.c (mt_frame_unwind): Ditto.
3232 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
3233 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
3234 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
3235 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
3236 (s390_sigtramp_frame_unwind): Ditto.
3237 * score-tdep.c (score_prologue_unwind): Ditto.
3238 * sh-tdep.c (sh_frame_unwind): Ditto.
3239 * sh64-tdep.c (sh64_frame_unwind): Ditto.
3240 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
3241 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
3242 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
3243 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
3244 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
3245 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
3246 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
3247 (sparc64obsd_trapframe_unwind): Ditto.
3248 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
3249 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
3250 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
3251 * v850-tdep.c (v850_frame_unwind): Ditto.
3252 * vax-tdep.c (vax_frame_unwind): Ditto.
3253 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
3254 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
3255 * xtensa-tdep.c (xtensa_unwind): Ditto.
3259 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
3260 there's always a frame. Use get_frame_pc_if_available instead of
3261 get_frame_pc, and if there's no PC available, don't look up a
3266 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
3271 * tracepoint.c (set_traceframe_context): Handle unavailable PC
3276 * frame.h (frame_unwind_caller_pc_if_available): Declare.
3277 * frame.c (frame_unwind_caller_pc_if_available): New.
3278 * stack.c (frame_info): Handle unavailable PC.
3282 * frame.c (frame_unwind_pc): Rename to ...
3283 (frame_unwind_pc_if_available): ... this. New `pc' output
3284 parameter. Change return type to int. Gracefully handle
3285 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
3286 happened, or 1 otherwise.
3287 (frame_unwind_pc): Reimplement on top of
3288 frame_unwind_pc_if_available.
3289 (get_frame_func): Rename to ...
3290 (get_frame_func_if_available): New `pc' output parameter. Change
3291 return type to int. Gracefully handle the PC not being available.
3292 (get_frame_func): Reimplement on top of
3293 get_frame_func_if_available.
3294 (select_frame): Handle the PC being unavailable.
3295 (get_prev_frame): Handle the PC being unavailable.
3296 (get_frame_pc_if_available): New.
3297 (get_frame_address_in_block_if_available): New.
3298 (find_frame_sal): Handle the frame PC not being available.
3299 * frame.h (get_frame_pc_if_available): Declare.
3300 (get_frame_address_in_block_if_available): Declare.
3301 (get_frame_func_if_available): Declare.
3302 * stack.c (print_frame_info): Handle the PC being unavailable.
3303 (find_frame_funname): Ditto.
3304 (print_frame): Handle the PC being unavailable.
3305 (get_frame_language): Ditto.
3306 * blockframe.c (get_frame_block): Ditto.
3307 * macroscope.c (default_macro_scope): Ditto.
3308 * tui/tui-stack.c (tui_show_frame_info): Ditto.
3312 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
3313 NOT_AVAILABLE_ERROR when evaluating the location expression.
3317 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
3318 returning that the register piece is unavailable/optimized out.
3319 (write_pieced_value): Handle get_frame_register_bytes returning
3320 that the register piece is unavailable/optimized out when doing a
3321 read-modify write of a bitfield.
3322 * findvar.c (value_from_register): Handle get_frame_register_bytes
3323 returning that the register piece is unavailable/optimized out.
3324 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
3325 and `unavailablep'. Throw error on bad debug info. Use
3326 frame_register instead of frame_register_read, to fill in the new
3328 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
3330 * valops.c: (value_assign): Adjust, and handle
3331 get_frame_register_bytes failing.
3332 * spu-tdep.c: Include exceptions.h.
3333 (spu_software_single_step): Adjust, and handle
3334 get_frame_register_bytes failing.
3335 (spu_get_longjmp_target): Ditto.
3336 * gdbarch.sh (register_to_value): Change to return int. New
3337 parameters `optimizedp' and `unavailablep'.
3338 * gdbarch.h, gdbarch.c: Regenerate.
3339 * i386-tdep.c (i386_register_to_value): Adjust to new
3340 gdbarch_register_to_value interface.
3341 * i387-tdep.c (i387_register_to_value): Ditto.
3342 * i387-tdep.h (i387_register_to_value): Ditto.
3343 * alpha-tdep.c (alpha_register_to_value): Ditto.
3344 * ia64-tdep.c (ia64_register_to_value): Ditto.
3345 * m68k-tdep.c (m68k_register_to_value): Ditto.
3346 * mips-tdep.c (mips_register_to_value): Ditto.
3347 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
3351 * findvar.c (value_of_register): Mark the value as unavailable, if
3352 the register is unavailable.
3353 * frame.h (frame_register_unwind): New `unavailablep' parameter.
3354 (frame_register): New `unavailablep' parameter.
3355 (frame_register_read): Update comment.
3356 * frame.c (frame_register_unwind): New `unavailablep' parameter.
3357 Set it if the register is unavailable. If the register is
3358 unavailable, clear the output buffer.
3359 (frame_register): New `unavailablep' parameter. Pass it down.
3360 (frame_unwind_register): Adjust.
3361 (put_frame_register): Adjust.
3362 (frame_register_read): Adjust. Also return false if the register
3364 (frame_register_unwind_location): Adjust.
3365 * sentinel-frame.c (sentinel_frame_prev_register): If the register
3366 is unavailable, mark the value accordingly.
3367 * stack.c (frame_info): Handle unavailable registers.
3371 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
3372 simplify, using regcache_cooked_read.
3376 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
3377 (regcache_raw_read_unsigned, regcache_raw_read_signed)
3378 (regcache_raw_read_unsigned, regcache_raw_read_part)
3379 (regcache_cooked_read, regcache_cooked_read_signed)
3380 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
3381 (regcache_cooked_read_ftype): Change return to enum
3383 * regcache.c: Include exceptions.h
3384 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
3385 (do_cooked_read): Change return to enum register_status. Always
3386 forward to regcache_cooked_read.
3387 (regcache_raw_read): Change return to enum register_status. If
3388 the register is not REG_VALID, memset the buffer. Return the
3390 (regcache_raw_read_signed): Handle non-REG_VALID registers and
3391 return the register's status.
3392 (regcache_raw_read_unsigned): Ditto.
3393 (regcache_cooked_read): Change return to enum register_status.
3394 Assert that with read-only regcaches, the register's status must
3395 be known. If the regcache is read-only, and the register is not
3396 REG_VALID, memset the buffer. Return the register's status.
3397 (regcache_cooked_read_signed): Change return to enum
3398 register_status. Handle non-REG_VALID registers and return the
3400 (regcache_cooked_read_unsigned): Change return to enum
3401 register_status. Handle non-REG_VALID registers and return the
3403 (regcache_xfer_part, regcache_raw_read_part)
3404 (regcache_cooked_read_part): Change return to enum
3405 register_status. Return the register's status.
3406 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
3408 (regcache_dump): Handle unavailable cooked registers.
3409 * frame.c (do_frame_register_read): Adjust interface to match
3410 regcache_cooked_read_ftype.
3411 * gdbarch.sh (pseudo_register_read): Change return to enum
3413 * gdbarch.h, gdbarch.c: Regenerate.
3415 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
3417 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
3418 register_status. If reading a raw register indicates the raw
3419 register is not valid, return the raw register's status,
3420 otherwise, return REG_VALID.
3421 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
3422 register_status. Handle non-REG_VALID raw registers and return
3423 the register's status.
3424 * arm-tdep.c (arm_neon_quad_read)
3425 (arm_pseudo_read): Change return to enum register_status. Handle
3426 non-REG_VALID raw registers and return the register's status.
3427 * avr-tdep.c (avr_pseudo_register_read): Ditto.
3428 * frv-tdep.c (frv_pseudo_register_read): Ditto.
3429 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
3430 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
3431 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
3433 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
3434 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
3435 (m32c_part_write, m32c_cat_read, m32c_cat_write)
3436 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
3437 (m32c_pseudo_register_read): Change return to enum
3438 register_status. Adjust.
3439 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
3440 enum register_status. Return the register's status.
3441 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
3442 register_status. Return the register's status.
3443 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
3444 * mips-tdep.c (mips_pseudo_register_read): Ditto.
3445 * mt-tdep.c (mt_pseudo_register_read): Ditto.
3446 * rs6000-tdep.c (move_ev_register_func): New typedef.
3447 (e500_move_ev_register): Use it. Change return to enum
3448 register_status. Return the register's status.
3449 (do_regcache_raw_read): New function.
3450 (do_regcache_raw_write): New function.
3451 (e500_pseudo_register_read): Change return to enum
3452 register_status. Return the register's status. Use
3453 do_regcache_raw_read.
3454 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
3455 (dfp_pseudo_register_read): Change return to enum register_status.
3456 Return the register's status.
3457 (vsx_pseudo_register_read): Ditto.
3458 (efpr_pseudo_register_read): Ditto.
3459 (rs6000_pseudo_register_read): Ditto.
3460 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
3461 register_status. Return the register's status.
3462 * sh64-tdep.c (pseudo_register_read_portions): New function.
3463 (sh64_pseudo_register_read): Change return to enum
3464 register_status. Use pseudo_register_read_portions. Return the
3466 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
3467 register_status. Return the register's status.
3468 * sh-tdep.c (pseudo_register_read_portions): New function.
3469 (sh_pseudo_register_read): Change return to enum register_status.
3470 Use pseudo_register_read_portions. Return the register's status.
3471 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
3472 enum register_status. Return the register's status.
3473 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
3474 * spu-tdep.c (spu_pseudo_register_read_spu)
3475 (spu_pseudo_register_read): Ditto.
3476 * xtensa-tdep.c (xtensa_register_read_masked)
3477 (xtensa_pseudo_register_read): Ditto.
3478 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
3482 * python/py-value.c (valpy_getitem): Fix formatting of error function
3487 ARI fixes: Add missing internationalization markups throughout
3489 * darwin-nat-info.c: Ditto.
3492 * mi/mi-main.c: Ditto.
3496 ARI fixes: Add missing internationalization markups throughout
3499 * cp-name-parser.y: Ditto.
3502 * objc-exp.y: Ditto.
3507 ARI fixes: Messages should have no trailing new lines.
3508 * darwin-nat.c (mach_check_error): Remove trailing new line from
3509 warning function call message.
3510 * record.c (bfdcore_read): Idem for error call.
3514 * common/signals.c (target_signal_from_host): Add _ markup to error
3515 function call message.
3516 (target_signal_to_host): Add _ markup and remove trailing new line
3517 from warning call message.
3518 (target_signal_from_command): Add _ markup to error function call
3525 * python/python.c (gdbpy_write): Accept a stream argument and
3526 operate to the appropriate stream.
3527 (gdbpy_flush): Likewise.
3528 (_initialize_python): Add stream constants.
3529 (finish_python_initialization): Add GdbOutputErrorFile class.
3533 * MAINTAINERS: Add myself as a write-after-approval maintainer.
3537 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
3538 to store_signed_integer. Add debug message when relocating CALL
3539 instructions. Fix formatting of debug message.
3540 * i386-tdep.c (i386_relocate_instruction): Ditto.
3544 * target.h (struct target_ops): Remove to_lookup_symbol field.
3545 (target_lookup_symbol): Delete macro.
3546 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
3547 (update_current_target, setup_target_debug): Remove handling
3548 of to_lookup_symbol target_ops field.
3549 * ada-tasks.c (get_known_tasks_addr): Remove use of
3550 target_lookup_symbol.
3551 * coffread.c (coff_symtab_read): Likewise.
3552 * dbxread.c (read_dbx_symtab): Ditto.
3557 * configure.ac: Add getthrds declaration check.
3558 * configure, config.in: Regenerate.
3559 * aix-thread.c (getthrds): Declare only if not already declared
3560 in procinfo.h. More declaration out of get_signaled_thread to
3565 * python/py-symtab.c: Populate symtab_object_methods,
3567 (stpy_is_valid): New function.
3568 (salpy_is_valid): Ditto.
3569 * python/py-symbol.c: Declare symbol_object_methods. Populate.
3570 (sympy_is_valid): New function.
3571 * python/py-objfile.c: Declare objfile_object_methods. Populate.
3572 (objfpy_is_valid): New function.
3573 * python/py-inferior.c: Populate inferior_object_methods.
3574 (infpy_is_valid): New function.
3575 * python/py-infthread.c: Populate thread_object_methods.
3576 (thpy_is_valid): New function.
3577 * python/py-block.c: Declare block_object_methods. Populate. Declare
3578 block_iterator_object_methods. Populate.
3579 (blpy_is_valid): New function.
3580 (blpy_iter_is_valid): Ditto.
3584 * linespec.c (find_methods): Canonicalize NAME before looking
3586 (name_end): New function.
3587 (keep_name_info): New function.
3588 (decode_line_1): Use keep_name_info.
3589 (decode_compound): Likewise.
3590 * cli/cli-utils.h (remove_trailing_whitespace): New function.
3591 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
3594 * linespec.c (locate_first_half): Keep overload information, too.
3595 (decode_compound): Use a string to represent break characters
3597 If P points to a break character, do not increment it.
3598 For C++ and Java, keep overload information and relevant keywords.
3599 If we cannot find a symbol, search the minimal symbols.
3602 * linespec.c (decode_compound): Rename SAVED_ARG to
3604 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
3606 Pass a valid block to lookup_symbol.
3607 (lookup_prefix_sym): Likewise.
3608 (find_method): Construct search name based on SYM_CLASS instead
3610 * psymtab.c (lookup_partial_symbol): Add language parameter.
3611 (lookup_symbol_aux_psymtabs): Likewise.
3612 Don't assume that the psymtab we found was the right one. Search
3613 for the desired symbol in the symtab to be certain.
3614 (psymtab_search_name): New function.
3615 (lookup_partial_symbol): Use psymtab_search_name.
3616 Add language parameter.
3617 (read_symtabs_for_function): Add language parameter and pass to
3618 lookup_partial_symbol.
3619 (find_symbol_file_from_partial): Likewise.
3624 * dwarf2read.c (noop_record_line): New function.
3625 (dwarf_decode_lines): Ignore line tables for GCd functions.
3629 Fix ARI warnings about new lines at the end of messages, which
3630 are unneeded as there is a new line added at the end of the message
3632 * darwin-nat.c (darwin_stop_inferior): Ditto.
3633 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
3634 * dfp.c (decimal_to_number): Ditto.
3635 * exec.c (print_section_info): Ditto.
3636 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
3637 * osdata.c (get_osdata): Ditto.
3638 * record.c (bfdcore_write): Ditto.
3639 * remote-mips.c (mips_readchar): Ditto.
3640 * remote.c (read_ptid): Ditto.
3641 * ser-mingw.c (ser_windows_raw): Ditto.
3642 * tracepoint.c (add_local_symbols): Ditto.
3643 * windows-nat.c (fake_create_process): Ditto.
3647 * tracepoint.c (stop_tracing): Don't declare.
3648 * event-top.c (after_char_processing_hook): Add `(void)'.
3652 * NEWS: Add Parameter sub-classing description.
3656 * MAINTAINERS: Update my e-mail address.
3660 * MAINTAINERS: Add myself for write after approval privileges.
3664 * frame.c (find_frame_sal): Assert sym is not null.
3666 * dbxread.c (process_one_symbol): Assert 'name' is not null.
3668 * objc-lang.c (selectors_info): Check strchr for null result.
3670 * stabsread.c (define_symbol): Guard against bad stabstring input.
3674 Remove trailing spaces and tabulations from pascal language
3679 p-valprint.c: Ditto.
3683 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
3684 than LOW. Comment it.
3685 (read_partial_die): Call complaint for inappropriate zero LOWPC or
3686 HIGHPC not strictly higher than LOWPC.
3690 Fix formatting of function declarations returning a pointer in
3692 * varobj.c (varobj_add_child): Ditto.
3693 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
3694 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
3698 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
3699 for the "generic" vector ABI used with GCC 4.3 and later.
3700 (ppc64_sysv_abi_return_value): Likewise.
3704 * infcall.c (call_function_by_hand): Function return value is
3705 always a non_lval, even when using struct_return.
3709 * printcmd.c (ALL_DISPLAYS_SAFE): New.
3710 (map_display_numbers): New.
3711 (do_delete_display): New.
3712 (undisplay_command): Use map_display_numbers.
3713 (do_enable_disable_display): New.
3714 (enable_disable_display_command): New function.
3715 (enable_display): Delete.
3716 (enable_display_command): New.
3717 (disable_display_command): Reimplement.
3718 (_initialize_printcmd): Adjust "enable display" command to use
3719 `enable_display_command' as callback.
3723 * NEWS: Add Python breakpoint 'stop' operation.
3727 * NEWS: Delete duplicate entry. Fix typo.
3731 Fix ARI warning about function names in first column.
3732 Put prototype declaration on same line as return type.
3733 * objc-exp.y: Ditto.
3735 * python/py-stopevent.h: Ditto.
3736 For long function names, split parameters to
3737 allow function name on same line as return type.
3738 * solib-pa64.c: Ditto.
3741 For long function declaration, use single line.
3742 * hppa-tdep.h: Ditto.
3743 * inferior.h: Ditto.
3747 * python/python.h: Declare gdbpy_should_stop and
3748 gdbpy_breakpoint_has_py_cond.
3749 * python/python.c: Add python.h to includes. Remove python.h from
3750 HAVE_PYTHON definition
3751 (gdbpy_should_stop): New dummy function.
3752 (gdbpy_breakpoint_has_py_cond): New dummy function.
3753 * python/py-breakpoint.c (bppy_init): Rewrite to allow
3754 sub-classing capabilities.
3755 (gdbpy_should_stop): New function.
3756 (gdbpy_breakpoint_has_py_cond): New function.
3757 (local_setattro): New function.
3758 * breakpoint.c (condition_command): Add check for Python 'stop'
3760 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
3761 operation function as part of stop/continue tests.
3766 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
3767 (needs_frame_dwarf_call): Likewise.
3771 Fix ARI warning about functions without parameters that do not
3773 * breakpoint.c (all_tracepoints): Replace () by (void).
3774 * f-exp.y (match_string_literal): Ditto.
3776 * m2-exp.y (yylex): Ditto.
3777 * mep-tdep.c (current_me_module): Ditto.
3778 (current_options): Ditto.
3779 (current_cop_data_bus_width): Ditto.
3780 (current_cr_names): Ditto.
3781 (current_cr_is_float): Ditto.
3782 (current_ccr_names): Ditto.
3783 * objc-exp.y (yylex): Ditto.
3784 * p-exp.y (yylex): Ditto.
3785 * remote.c (send_interrupt_sequence): Ditto.
3786 * tracepoint.c (current_trace_status): Ditto.
3787 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
3788 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
3792 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
3793 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
3794 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
3795 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
3796 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
3798 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
3799 (delete_async_event_handler): Ditto.
3801 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
3803 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
3805 * top.c (set_verbose): Assert showcmd was found.
3809 * xtensa-tdep.c (warning_once): Correct style issues.
3813 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
3817 * common/aclocal.m4: Remove.
3821 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
3822 (xtensa_write_register, xtensa_read_register): Likewise.
3823 (xtensa_hextochar): Removed.
3824 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
3828 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
3829 (xtensa_call0_frame_cache_t): Update comments. New fields added.
3830 (xtensa_alloc_frame_cache): Add initialization for new fields.
3831 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
3832 (warning_once): New function.
3833 (xtensa_insn_kind): New item c0opc_and.
3834 (call0_classify_opcode): Add the case for AND instruction.
3835 (call0_track_op): Change arguments. New local variable litbase.
3836 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
3837 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
3839 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
3840 (call0_analyze_prologue): Update the comments. Change arguments.
3841 Add the variety of updates to handle extended prologues, which now can
3842 conduct dynamic stack adjustments.
3843 (call0_frame_cache): Likewise.
3844 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
3845 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
3849 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
3850 (cmd_qtframe): Ditto.
3851 (cmd_qtbuffer): Ditto.
3852 (cmd_bigqtbuffer): Ditto.
3856 * tracepoint.c (trace_actions_command): Update.
3857 * thread.c (thread_apply_command): Update.
3858 * reverse.c (delete_bookmark_command): Update.
3859 (bookmarks_info): Update.
3860 * printcmd.c (undisplay_command): Update.
3861 * memattr.c (mem_enable_command): Update.
3862 (mem_disable_command): Update.
3863 (mem_delete_command): Update.
3864 * inferior.c (detach_inferior_command): Update.
3865 (kill_inferior_command): Update.
3866 (remove_inferior_command): Update.
3867 * cli/cli-utils.h (struct get_number_or_range_state): New.
3868 (init_number_or_range): Declare.
3869 (get_number_or_range): Update.
3870 * cli/cli-utils.c (init_number_or_range): New function.
3871 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
3873 (number_is_in_list): Update.
3874 * breakpoint.h (get_tracepoint_by_number): Update.
3875 * breakpoint.c (map_breakpoint_numbers): Update for change to
3876 get_number_or_range.
3877 (find_location_by_number): Use get_number, not
3878 get_number_or_range.
3879 (trace_pass_set_count): New function.
3880 (trace_pass_command): Update for change to get_number_or_range.
3882 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
3887 * python/py-param.c (add_setshow_generic): Add set/show callback
3888 parameters. Register Python object context.
3889 (get_show_value): New function.
3890 (get_set_value): New function.
3891 (call_doc_function): New function.
3892 (get_doc_string): Move behind get_show_value/get_set_value.
3896 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3900 * xtensa-tdep.c (xtensa_read_register): Add comment.
3901 (xtensa_write_register): Likewise.
3902 (xtensa_hextochar): Add comment and update to match coding conventions.
3903 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3904 (execute_l32e, execute_s32e, execute_code): Update comments.
3905 (xtensa_exception_handler_t): Update to match coding conventions.
3906 (xtensa_insn_kind): Likewise.
3910 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3914 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3918 * thread.c (restore_selected_frame): Handle frame_level == -1.
3919 (make_cleanup_restore_current_thread): Use
3920 get_selected_frame_if_set.
3921 * frame.h (get_selected_frame_if_set): Declare.
3922 * frame.c (get_selected_frame_if_set): New function.
3926 * cli/cli-cmds.c (shell_escape): Use lbasename.
3927 * coffread.c (coff_start_symtab): Constify parameter.
3928 (complete_symtab): Constify `name' parameter.
3929 (coff_symtab_read): Constify `filestring' local.
3930 (coff_getfilename): Constify return and `result' local.
3932 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3933 * linux-fork.c (info_checkpoints_command): Use lbasename.
3934 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3935 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3936 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3937 * procfs.c (procfs_make_note_section): Use lbasename.
3938 * tui/tui-io.c (printable_part): Constity return and parameter.
3940 (print_filename): Constify parameters, and local `s'.
3941 (tui_rl_display_match_list): Constify local `temp'.
3947 Fix DWARF-3+ DW_AT_accessibility default assumption.
3948 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3949 cu->header.version >= 3.
3953 * common/Makefile.in: Remove.
3954 * common/configure: Remove.
3955 * common/configure.ac: Remove.
3962 * common/Makefile.in: Add copyright header.
3966 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3968 * configure.ac: Add common to sub dir.
3969 * configure: Regenerate.
3973 * xtensa-tdep.c (call0_ret): New function.
3974 (xtensa_skip_prologue): Speed up analysis.
3978 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3979 while executing MI command -data-list-changed-registers.
3983 * xtensa-tdep.c (xtensa_read_register): New function.
3984 (xtensa_write_register): New function.
3985 (xtensa_find_register_by_name): New function.
3986 (xtensa_windowed_frame_cache): Update comments in type description.
3987 (xtensa_frame_cache): Likewise.
3988 (xtensa_window_interrupt_insn): New function.
3989 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3990 (xtensa_insn_kind): Add new instructions.
3991 (rwx_special_register): New function.
3992 (call0_classify_opcode): Add new instructions to the analysis.
3993 (a0_saved, a7_saved, a11_saved): New variables.
3994 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3995 (execute_l32e): New function.
3996 (execute_s32e): New function.
3997 (xtensa_exception_handler_t): New type.
3998 (execute_code): New function.
3999 (xtensa_window_interrupt_frame_cache): New function to conduct frame
4000 analysis for Xtensa Window Exception handlers.
4004 * xtensa-tdep.c (TX_PS): New.
4005 (windowing_enabled): Update to count for Call0 ABI.
4006 (xtensa_hextochar): New.
4007 (xtensa_init_reggroups): Make algorithm generic.
4008 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
4012 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4016 * i386-tdep.c (i386_follow_jump): Check return value of
4018 (i386_analyze_struct_return): Ditto.
4019 (i386_skip_probe): Ditto.
4020 (i386_match_insn): Ditto.
4021 (i386_skip_noop): Ditto.
4022 (i386_analyze_frame_setup): Ditto.
4023 (i386_analyze_register_saves): Ditto.
4024 (i386_skip_prologue): Ditto.
4025 (i386_skip_main_prologue): Ditto.
4027 * target.c (read_whatever_is_readable): Fix memory leak.
4029 * i386-tdep.c (i386_process_record): Document fall through.
4033 Fix DWARF-3+ DW_AT_accessibility default assumption.
4034 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
4035 cu->header.version >= 3.
4039 * remote.c (remote_check_symbols): Skip if the target has no
4044 * target.c (read_whatever_is_readable): Reformat comment,
4045 with a minor typo fix. Minor reformatting of the code.
4049 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
4050 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
4051 Use cached result instead of calling displaced_in_arm_mode again.
4052 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
4053 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
4054 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
4055 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
4056 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
4057 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
4058 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
4059 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
4060 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4061 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
4062 (arm_catch_kernel_helper_return): Likewise.
4063 * gdb/arm-tdep.h : Update function declarations.
4067 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
4069 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
4071 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
4073 * elfread.c (elf_symtab_read): Stop memory leak.
4075 * main.c (captured_main): Fix memory leak.
4079 * ada-lang.c (compare_names): Call is_name_suffix with string1
4084 * xcoffread.c (xcoff_sym_fns): Update.
4085 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
4086 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
4087 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
4088 (symbol_file_add_with_addrs_or_offsets): Likewise.
4089 (reread_symbols): Handle OBJF_PSYMTABS_READ.
4090 * somread.c (som_sym_fns): Update.
4091 * psymtab.h (require_partial_symbols): Declare.
4092 * psymtab.c (require_partial_symbols): New function.
4093 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
4094 (ALL_OBJFILE_PSYMTABS): Undef.
4095 (ALL_PSYMTABS): Move from psympriv.h.
4096 (lookup_partial_symtab, find_pc_sect_psymtab)
4097 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
4098 (find_last_source_symtab_from_partial)
4099 (forget_cached_source_info_partial)
4100 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
4101 (expand_partial_symbol_tables, read_psymtabs_with_filename)
4102 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
4103 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
4104 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
4105 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
4106 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
4107 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
4108 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
4110 * mipsread.c (ecoff_sym_fns): Update.
4111 * machoread.c (macho_sym_fns): Update.
4112 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
4113 (read_psyms): New function.
4114 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
4115 (elf_sym_fns_lazy_psyms): New global.
4116 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
4117 dwarf2_build_psymtabs.
4118 * dbxread.c (aout_sym_fns): Update.
4119 * coffread.c (coff_sym_fns): Update.
4123 * infrun.c (print_exited_reason): Include inferior id and pid in
4128 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
4130 (target_has_execution_1): Update.
4131 (target_has_execution_current): Declare.
4132 (target_has_execution): Call target_has_execution_current.
4133 (default_child_has_execution): Update.
4134 * target.c (default_child_has_execution): Add 'the_ptid'
4136 (target_has_execution_1): Likewise.
4137 (target_has_execution_current): New function.
4138 (add_target): Update.
4139 (init_dummy_target): Update.
4140 * remote-m32r-sdi.c (m32r_has_execution): New function.
4141 (init_m32r_ops): Use it.
4142 * record.c (record_core_has_execution): Now static. Add
4143 'the_ptid' parameter.
4144 * inferior.c (have_live_inferiors): Don't save current thread.
4145 Use target_has_execution_1.
4149 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
4153 * elfread.c (elf_symtab_read): Minor reformatting.
4157 * objc-lang.c (selectors_info): Minor reformatting.
4161 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
4166 * ada-valprint.c (ada_val_print_array): Move the declaration of
4167 "byte_order" and "elttype" inside the block where these variables
4168 are actually used. Remove some special handling for the case
4169 where "elttype" and "eltlen" are null. Replace by a comment
4170 and a couple of assertion checks.
4174 * source.c (add_path): Replace semicolon at end of block.
4175 * dwarf2expr.c (execute_stack_op): Ditto.
4179 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
4180 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
4181 (bfin-*-*): Likewise.
4185 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
4186 * mdebugread.c (parse_symbol): Ditto.
4187 * parse.c (parse_exp_in_context): Ditto.
4188 * source.c (add_path): Ditto.
4189 * utils.c (gnu_debuglink_crc32): Ditto.
4190 * varobj.c (variable_language): Ditto.
4192 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
4196 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
4198 * symfile.c (simple_overlay_update): Check for null return value
4199 from lookup_minimal_symbol.
4201 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
4205 * eval.c (parse_and_eval_address_1): Remove function.
4206 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
4207 instead of parse_and_eval_address_1.
4208 * value.h (parse_and_eval_address_1): Remove prototype.
4212 * remote.c (putpkt_binary): Document that case stmt falls through.
4216 * breakpointc (print_it_typical): Move NULL check from here...
4217 (print_bp_stop_message): ... to here.
4221 * breakpoint.c (enable_command): Use break instead of continue,
4222 and fill in a missing break.
4223 (disable_command): Ditto.
4227 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
4228 (terminal_save_ours): Remove misleading comment.
4229 (inflow_inferior_data_cleanup): Free ttystate.
4230 (inflow_inferior_exit): Likewise.
4231 (copy_terminal_info): Copy ttystate.
4233 * serial.c (serial_copy_tty_state): New function.
4234 * serial.h (serial_copy_tty_state): Add prototype.
4235 (struct serial_ops): Add copy_tty_state callback.
4236 * ser-base.c (ser_base_copy_tty_state): New function.
4237 * ser-base.h (ser_base_copy_tty_state): Add prototype.
4238 * ser-go32.c (dos_copy_tty_state): New function.
4239 (dos_ops): Install copy_tty_state callback.
4240 * ser-mingw.c (_initialize_ser_windows): Likewise.
4241 * ser-pipe.c (_initialize_ser_pipe): Likewise.
4242 * ser-unix.c (hardwire_copy_tty_state): New function.
4243 (_initialize_ser_hardwire): Install it.
4247 * breakpoint.c (create_breakpoint): Add missing break statement.
4249 Reverting this patch:
4250 * infcall.c (call_function_by_hand): Add break statements for lint.
4252 Reverting this patch:
4253 * cli/cli-script.c (script_from_file): Add break for lint.
4257 * solib.c (reload_shared_libraries_1): Close memory leak.
4262 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
4267 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
4268 fields of struct 'st' to zero.
4270 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
4271 sal.pspace before calling set_current_source_symtab_and_line.
4275 * Makefile.in (configure-common): Remove. Let Makefile
4276 in dir common to rebuild itself.
4277 (common/Makefile): Likewise.
4281 * utils.c (parse_escape): Add i18n markup in error message.
4285 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
4287 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
4288 (displaced_write_reg, displaced_read_reg): Likewise.
4289 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
4290 (cleanup_block_load_pc, copy_block_xfer): Likewise.
4291 (cleanup_branch): Replace magic number 14 and 15 with
4292 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
4296 * maint.c (maintenance_do_deprecate): No need to check for NULL.
4298 * cli/cli-script.c (script_from_file): Add break for lint.
4300 * mdebugread.c (parse_partial_symbols): Fix indent.
4302 * target-descriptions.c (tdesc_gdb_type): No need to call
4303 xstrdup, callee saves a copy.
4305 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
4307 * infcall.c (call_function_by_hand): Add break statements for lint.
4309 * utils.c (parse_escape): Escape the escape char.
4311 * python/py-inferior.c (build_inferior_list): Error out if
4312 PyList_Append fails.
4313 (gdbpy_inferiors): Error out if build_inferior_list fails.
4315 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
4318 * record.c (record_restore): Move printf to before error return.
4322 * arm-tdep.h (struct displaced_step_closure): Add two new fields
4323 is_thumb and insn_size.
4324 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
4325 on both ARM and Thumb mode.
4326 (arm_process_displaced_insn): Set is_thumb and insn_size.
4327 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
4328 (arm_displaced_step_fixup): Likewise.
4332 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
4334 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
4336 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
4338 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
4340 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
4343 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
4344 which shadows function parameter.
4346 * tracepoint.c (create_tsv_from_upload): Superfluous call
4347 to xstrdup. Callee already calls xstrdup.
4349 * linespec.c (decode_line_1): Remove unnecessary null check.
4351 * tracepoint.c (scope_info): Fix mem leak, remove underused
4354 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
4355 superfluous null check.
4357 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
4358 (value_of_builtin_frame_fp_reg): Ditto.
4360 * event-top.c (display_gdb_prompt): Remove superfluous null check.
4362 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
4365 * linespec.c (decode_line_1): Check for null before dereference.
4367 * reverse.c (record_restore): Move null-check to before pointer
4370 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
4372 * objc-lang.c (selectors_info): Add explanitory comment.
4373 (classes_info): Ditto.
4377 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
4378 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
4379 versions of the trampoline. Handle Thumb vs. ARM addresses.
4380 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
4381 (arm_linux_init_abi): Install it.
4382 * arm-tdep.c (arm_psr_thumb_bit): Make global.
4383 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
4387 * ui-out.c (ui_out_field_core_addr): Make local char buffer
4388 a little bigger, to avoid possibility of an overflow.
4390 * breakpoint.c (breakpoint_adjustment_warning): Make local char
4391 buffers a little bigger, to avoid possibility of an overflow.
4393 * coffread.c (coff_getfilename): Add check to avoid overflow.
4395 * objc-lang.c (selectors_info): Add a small safety margin to
4397 (classes_info): Error out on too long REGEXP.
4399 * infrun.c (handle_inferior_event): Remove unused function call.
4401 * fork-child.c (fork_inferior): Remove ifdef'd code and
4404 * linux-thread-db.c (attach_thread): Discard unused value.
4406 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
4408 * remote.c (remote_get_noisy_reply): Discard unused value.
4409 (remote_vcont_resume): Ditto.
4410 (remote_stop_ns): Ditto.
4412 * linespec.c (decode_objc): Delete unused variable.
4414 * tui/tui-regs.c (tui_register_format): Delete unused variable.
4416 * dwarf2read.c (add_partial_symbol): Discard unused values.
4417 (read_base_type): Delete unused variable.
4419 * dbxread.c (read_dbx_symtab): Discard unused value.
4421 * eval.c (evaluate_subexp_standard): Delete unused variable,
4422 and discard unused values.
4424 * infcmd.c (_initialize_infcmd): Discard unused values.
4426 * stabsread.c (rs6000_builtin_type): Missing break statement.
4428 * dbxread.c (process_one_symbol): Discard unused value.
4430 * coffread.c (coff_end_symtab): Delete unused variable.
4432 * dwarf2read.c (dw2_get_file_names): Discard unused value.
4433 (dwarf2_add_typedef): Delete unused variable.
4434 (read_namespace): Ditto.
4435 (dwarf_decode_macros): Ditto.
4437 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
4439 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
4441 * p-valprint.c (pascal_val_print): Discard unused value.
4443 * utils.c (nquery): Call va_end before return;
4447 * proc-service.c (ps_plog): Call va_end before return.
4451 * python/python.c (gdbpy_value_cst): New global.
4452 (_initialize_python): Initialize it.
4453 * python/python-internal.h (gdbpy_value_cst): Declare.
4454 * python/py-value.c (convert_value_from_python): Use
4459 * python/py-cmd.c (cmdpy_init): Fix memory leak.
4461 * breakpoint.c (catch_syscall_completer): Free malloced list.
4463 * jv-lang.c (java_primitive_type_from_name): Add missing break.
4465 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
4466 (lval_func_check_synthetic_pointer): Ditto.
4467 (lval_func_free_closure): Fix use-after-free.
4471 * psymtab.c (expand_partial_symbol_tables): Use
4472 ALL_OBJFILE_PSYMTABS.
4476 * objc-lang.c (selectors_info): Error on too long REGEXP.
4480 * python/py-param.c (set_parameter_value): Add missing
4483 * linux-record.c (record_linux_system_call): Add missing
4488 * breakpoint.c (print_one_breakpoint_location): Remove unused
4489 argument PRINT_ADDRESS_BITS. Update callers.
4490 (print_one_breakpoint): Likewise.
4494 * breakpoint.c (wrap_indent_at_field): New function.
4495 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
4496 Allocate ui_stream locally instead of using STB argument.
4497 (print_one_breakpoint_location): Update call.
4498 * ui-out.c (ui_out_query_field): New function.
4499 * ui-out.h (ui_out_query_field): Add prototype.
4504 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
4508 * objc-lang.c (selectors_info): Prevent string overrun.
4510 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
4513 * symtab.c (rbreak_command): Move variable 'file_name' to
4516 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
4517 param with a local variable of the same name.
4521 * value.c (value_from_history_ref): New function.
4522 * value.h (value_from_history_ref): Export.
4523 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
4524 to parse value history references.
4525 * cli/cli-utils.h (get_number_trailer): Update comment.
4529 * inferior.c (detach_inferior_command): Use get_number_or_range.
4530 (kill_inferior_command): Ditto.
4531 (remove_inferior_command): Ditto.
4532 (initialize_inferiors): Make command names plural.
4533 Update help strings.
4537 * darwin-nat-info.c: Fix comment typo.
4538 * dwarf2expr.h: Ditto.
4539 * fbsd-nat.c: Ditto.
4540 * fbsd-nat.h: Ditto.
4541 * frame-unwind.h: Ditto.
4543 * hppa-hpux-tdep.c: Ditto.
4544 * i386-linux-nat.c: Ditto.
4545 * linux-nat.c: Ditto.
4546 * nbsd-nat.c: Ditto.
4547 * nbsd-nat.h: Ditto.
4548 * ppc-linux-tdep.c: Ditto.
4551 * tui/tui-winsource.c: Ditto.
4555 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
4557 * maint.c (maintenance_do_deprecate): Plug a memory leak.
4559 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
4560 with a local variable of the same name.
4562 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
4563 param with a local variable of the same name.
4564 (i387_supply_xsave): Ditto.
4566 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
4567 that it does not shadow a function parameter.
4569 * i386-nat.c (i386_length_and_rw_bits): Document that case
4570 statement is meant to fall through.
4572 * expprint.c (dump_subexp_body_standard): Document that case
4573 statement is meant to fall through.
4575 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
4576 dead if statement. Condition can't be false.
4580 * arm-tdep.c: Fix typos in comments.
4581 * bsd-uthread.c: Ditto.
4582 * completer.c: Ditto.
4584 * cp-namespace.c: Ditto.
4585 * cp-support.c: Ditto.
4586 * cris-tdep.c: Ditto.
4588 * dwarf2read.c: Ditto.
4590 * gdbtypes.h: Ditto.
4591 * inferior.h: Ditto.
4592 * mdebugread.c: Ditto.
4593 * mips-tdep.c: Ditto.
4594 * ppc-linux-nat.c: Ditto.
4595 * ppc-linux-tdep.c: Ditto.
4596 * printcmd.c: Ditto.
4597 * sol-thread.c: Ditto.
4598 * solib-frv.c: Ditto.
4600 * sparc64-tdep.c: Ditto.
4601 * spu-tdep.c: Ditto.
4602 * stabsread.c: Ditto.
4607 * python/py-block.c: Ditto.
4608 * python/py-symbol.c: Ditto.
4609 * python/py-symtab.c: Ditto.
4610 * python/py-value.c: Ditto.
4611 * tui/tui-win.c: Ditto.
4615 * inferior.c (print_inferior): Accept a string instead of an int
4616 for requested_inferiors, and use get_number_or_range to parse it.
4617 (info_inferiors_command): Pass args string to print_inferior.
4618 (initialize_inferiors): Change help string for info inferiors.
4619 * inferior.h (print_inferior): Export prototype change.
4623 * common/ax.def (invalid2): Set to 0x31.
4627 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
4629 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
4631 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
4635 * Makefile.in (clean): Make clean should remove generated files
4636 observer.h and observer.inc.
4640 Revert the following patch (not approved yet):
4642 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4643 * ax-gdb.c (gen_printf_expr_callback): New function.
4644 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4645 * ax-general.c (ax_memcpy): New function.
4646 (ax_print): Handle "printf".
4648 * ax.h (ax_memcpy): Forward declare.
4649 * common/ax.def (invalid2): Removed.
4650 (printf): New entry.
4651 * printcmd.c (printcmd.h): New include.
4652 (string_printf): New function.
4653 (ui_printf): Removed.
4654 (printf_command): Remove static. Call string_printf.
4655 (eval_command): Call string_printf.
4656 * printcmd.h: New file.
4657 * tracepoint.c (validate_actionline,
4658 encode_actions_1): handle printf_command.
4662 * ax-general.c (ax_pick): Add missing newline.
4666 * breakpoint.c (breakpoint_1): Change first argument from an int
4667 to a char pointer, so that the function now accepts a list of
4668 breakpoints rather than just one. Use new function
4669 'number_is_in_list' to implement.
4670 (breakpoints_info): Pass char * instead of int to breakpoint_1.
4671 (watchpoints_info): Ditto.
4672 (tracepoints_info): Ditto.
4673 (maintenance_info_breakpoints): Ditto.
4674 (_initialize_breakpoint): Update help strings to reflect the fact
4675 that these functions can now take more than one argument.
4676 * cli/cli-utils.c (number_is_in_list): New function.
4677 * cli/cli-utils.h (number_is_in_list): Export.
4681 * memattr.c (mem_enable_command): Use get_number_or_range.
4682 (mem_disable_command): Ditto.
4683 (mem_delete_command): Ditto.
4684 (_initialize_mem): Tweak usage message to reflect multiple
4689 Add gdb.lookup_global_symbol python function.
4691 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
4692 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
4693 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
4697 * language.c (language_class_name_from_physname): Rename
4698 'curr_language' argument to 'lang'; use in body.
4702 * cli/cli-utils.c (number_is_in_list): Check for zero return.
4706 * frame-unwind.h: Fix comment to mention the this frame, not the
4711 * symfile.c (auto_solib_limit): Remove.
4712 * symfile.h (auto_solib_limit): Remove.
4716 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
4720 * gdbthread.h (print_thread_info): Change prototype.
4721 * thread.c (print_thread_info): Accept char* instead of int for
4722 requested_threads argument. Use new function number_is_in_list
4723 to determine which threads to list.
4724 (info_threads_command): Pass char* to print_thread_info.
4725 * cli/cli-utils.c (number_is_in_list): New function.
4726 * cli/cli-utils.h (number_is_in_list): Export.
4727 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
4729 (print_one_inferior): Ditto.
4730 (mi_cmd_list_thread_groups): Ditto.
4734 * common/Makefile.in (CFLAGS): New.
4735 (COMPILE): Add $(CFLAGS).
4739 * breakpoint.c (catch_syscall_command_1): Fix typo.
4743 * reverse.c: Include cli-utils.h.
4744 * printcmd.c: Include cli-utils.h.
4745 (string_printf): Use skip_spaces.
4746 * cli/cli-utils.h: New file.
4747 * cli/cli-utils.c: New file.
4748 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
4749 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
4750 * breakpoint.h (get_number, get_number_or_range): Move to
4752 * breakpoint.c: Include cli-utils.h.
4753 (get_number_trailer, get_number, get_number_or_range)
4754 (ep_skip_leading_whitespace): Move to cli-utils.c.
4755 (create_breakpoint_sal, find_condition_and_thread)
4756 (decode_static_tracepoint_spec, watch_command_1)
4757 (watch_maybe_just_location, ep_parse_optional_if_clause)
4758 (catch_fork_command_1, catch_exec_command_1)
4759 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
4760 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
4761 (SUBDIR_CLI_SRCS): Add cli-utils.c.
4762 (HFILES_NO_SRCDIR): Add cli-utils.h.
4763 (cli-utils.o): New target.
4767 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
4768 before calling discard_all_inferiors.
4772 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
4773 (struct builtin_opencl_type): Remove.
4774 (builtin_opencl_type): Change return type to "struct type **".
4775 (lookup_opencl_vector_type): Update caller.
4776 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
4777 (build_opencl_types): Install plain array of "struct type *"
4778 instead of "struct builtin_opencl_type".
4783 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
4784 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
4785 (struct arm_linux_hwbp_cap): New type.
4786 (arm_linux_get_hwbp_cap): New function.
4787 (arm_linux_get_hw_breakpoint_count): Likewise.
4788 (arm_linux_get_hw_watchpoint_count): Likewise.
4789 (arm_linux_can_use_hw_breakpoint): Likewise.
4790 (arm_hwbp_type): New type.
4791 (arm_hwbp_control_t): Likewise.
4792 (struct arm_linux_hw_breakpoint): Likewise.
4793 (struct arm_linux_thread_points): Likewise.
4794 (arm_threads): New global variable.
4795 (arm_linux_find_breakpoints_by_tid): New function.
4796 (arm_hwbp_control_initialize): Likewise.
4797 (arm_hwbp_control_is_enabled): Likewise.
4798 (arm_hwbp_control_disable): Likewise.
4799 (arm_linux_hw_breakpoint_initialize): Likewise.
4800 (arm_linux_get_hwbp_type): Likewise.
4801 (arm_linux_hw_watchpoint_initialize): Likewise.
4802 (arm_linux_hw_breakpoint_equal): Likewise.
4803 (arm_linux_insert_hw_breakpoint1): Likewise.
4804 (arm_linux_remove_hw_breakpoint1): Likewise.
4805 (arm_linux_insert_hw_breakpoint): Likewise.
4806 (arm_linux_remove_hw_breakpoint): Likewise.
4807 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
4808 (arm_linux_insert_watchpoint): Likewise.
4809 (arm_linux_remove_watchpoint): Likewise.
4810 (arm_linux_stopped_data_address): Likewise.
4811 (arm_linux_stopped_by_watchpoint): Likewise.
4812 (arm_linux_watchpoint_addr_within_range): Likewise.
4813 (arm_linux_new_thread): Likewise.
4814 (arm_linux_thread_exit): Likewise.
4815 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
4816 related target callbacks. Register arm_linux_new_thread and
4817 arm_linux_thread_exit.
4818 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
4819 * arm-tdep.c (arm_pc_is_thumb): Make global.
4820 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
4824 * breakpoint.c (update_watchpoint): Do not attempt to recreate
4825 per-frame locations while within a function epilogue.
4829 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
4830 to GNU coding standards.
4834 Allow use of mingw native on Windows 95 OS.
4835 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4836 (ser_windows_close): Only call CancelIo if function exists.
4837 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
4838 to check for existence of CancelIo function in kernel32 DLL.
4842 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
4843 * ax-gdb.c (gen_printf_expr_callback): New function.
4844 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
4845 * ax-general.c (ax_memcpy): New function.
4846 (ax_print): Handle "printf".
4848 * ax.h (ax_memcpy): Forward declare.
4849 * common/ax.def (invalid2): Removed.
4850 (printf): New entry.
4851 * printcmd.c (printcmd.h): New include.
4852 (string_printf): New function.
4853 (ui_printf): Removed.
4854 (printf_command): Remove static. Call string_printf.
4855 (eval_command): Call string_printf.
4856 * printcmd.h: New file.
4857 * tracepoint.c (validate_actionline,
4858 encode_actions_1): handle printf_command.
4862 * reverse.c (delete_one_bookmark): Argument is now bookmark
4863 id rather than pointer to bookmark struct.
4864 (delete_bookmark_command): Use get_number_or_range.
4865 (goto_bookmark_command): Parse with get_number instead of strtoul.
4866 (bookmark_1): New function. Print info for one bookmark.
4867 (bookmarks_info): Use get_number_or_range and bookmark_1.
4871 * thread.c (info_threads_command): Re-implement using
4872 get_number_or_range.
4873 (thread_apply_command): Ditto.
4877 * common/ax.def: New file.
4878 * ax.h (enum agent_op): Use ax.def.
4879 * ax-general.c (aop_map): Use ax.def.
4883 * ax-general.c (aop_map): Add pick and rot.
4884 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
4885 <DW_OP_rot>: Implement.
4886 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4888 * ax-general.c (ax_pick): New function.
4892 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4897 * cp-support.c (make_symbol_overload_list_namespace): Do not call
4898 make_symbol_overload_list_block with NULL BLOCK.
4899 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4903 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4904 * breakpoint.h (get_number_or_range): Declare.
4905 * printcmd.c (ALL_DISPLAYS): Declare.
4906 (delete_display): Reimplement taking a display pointer.
4907 (undisplay_command): Accept a range of displays to delete, using
4908 get_number_or_range.
4912 * c-valprint.c (c_val_print): Add embedded_offset to address
4913 for arrays of unspecified length.
4914 * p-valprint.c (pascal_val_print): Likewise.
4918 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4919 (arm_process_displaced_insn): .. here. Remove parameter INSN.
4920 (thumb_process_displaced_insn): New.
4921 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4922 call to arm_process_displaced_insn.
4923 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4927 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4928 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4929 compile_dwarf_to_ax. No longer static. Call
4930 dwarf2_compile_cfa_to_ax.
4931 (locexpr_tracepoint_var_ref): Update.
4932 (loclist_tracepoint_var_ref): Update.
4933 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4934 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4935 argument; add 'gdbarch' and 'pc'.
4936 (dwarf2_compile_cfa_to_ax): New function.
4937 (dwarf2_frame_cache): Update.
4941 * ada-lang.c (ada_type_of_array): Fix the size of the array
4942 in the case of an unconstrained packed array.
4946 * common/Makefile.in: Add more targets for make.
4950 * dwarf2loc.c (unimplemented): Fix typo.
4954 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4955 (compile_dwarf_to_ax) <default>: Use unimplemented.
4956 <DW_OP_deref>: Update.
4957 (disassemble_dwarf_expression): Update.
4958 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4959 (decode_locdesc): Update.
4960 * dwarf2expr.h (dwarf_stack_op_name): Update.
4964 * ax.h (struct aop_map) <name>: Now const.
4968 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4973 * infrun.c (get_displaced_step_closure_by_addr): New.
4974 * inferior.h: Declare it.
4975 * arm-tdep.c: (arm_pc_is_thumb): Call
4976 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4983 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4988 * value.c (value_contents_copy_raw): Extend describing comment.
4989 Assert that the destination contents we're overwriting are wholly
4991 (value_contents_copy): Extend describing comment.
4996 * value.c (value_available_contents_eq): Remove redundant local
4997 variables. Fix available contents comparision.
4998 * value.h (value_available_contents_eq): Extend describing
5003 * thread.c (info_threads_command): Add missing i18n markup and remove
5008 * breakpoint.c (longjmp_names): New variable.
5009 (struct breakpoint_objfile_data): New type.
5010 (breakpoint_objfile_key): New variable.
5011 (msym_not_found): New variable.
5012 (msym_not_found_p): New predicate.
5013 (get_breakpoint_objfile_data): New function.
5014 (create_overlay_event_breakpoint): Check per-objfile cache for
5016 (create_longjmp_master_breakpoint): Likewise.
5017 (create_std_terminate_master_breakpoint): Likewise.
5018 (create_exception_master_breakpoint): Likewise.
5019 (_initialize_breakpoint): Register per-objfile data key.
5023 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
5025 (create_longjmp_master_breakpoint): Loop over longjmp names.
5026 (create_std_terminate_master_breakpoint): Const-propagate parameter
5028 (update_breakpoints_after_exec): Adjust.
5029 (breakpoint_re_set): Adjust.
5033 * thread.c (info_threads_command): Process arg as thread id,
5034 or list of thread ids.
5035 (thread_find_command): New command.
5036 (_initialize_thread): Document argument for info threads.
5037 Document 'thread find' command.
5038 * NEWS: Document new command "thread find".
5042 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
5043 * aclocal.m4: Regenerated with aclocal-1.11.1.
5044 * common/configure: Regenerate with autoconf-2.64.
5048 * opencl-lang.c (build_opencl_types): Set the size of the built-in
5049 bool data type to a size of one byte.
5054 * target.c (memory_xfer_live_readonly_partial): Document where to
5055 look for interface description.
5060 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
5061 order to store PC value on stack instead of text section.
5065 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
5066 the EFP register set size.
5067 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
5068 data from the VMX register.
5069 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
5070 and write data from/to the VMX register.
5074 * command.h (enum command_class): New class 'no_set_class', for
5075 "show" commands without a corresponding "set" command.
5076 * value.c (_initialize_values): Use 'no_set_class' for "show values".
5077 * copying.c (_initialize_copying): Ditto for "show copying" and
5079 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
5081 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
5082 which there is no corresponding "set" command (eg. "show copying").
5087 * exec.c (section_table_available_memory): Change `len' parameter
5089 * exec.h (section_table_available_memory): Ditto.
5090 * value.h (read_value_memory): Rename the `offset' parameter to
5096 * memrange.c (compare_mem_ranges): Mention sort order in
5098 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
5099 * tracepoint.c (traceframe_available_memory): Extend comment to
5100 mention what happens to RESULT when the target does not support
5106 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
5111 * value.c (value_bits_valid, value_bits_synthetic_pointer):
5112 No longer handle NULL values.
5116 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
5117 * value.c: Include "exceptions.h".
5118 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
5120 * cp-abi.c: Include gdb_assert.h.
5121 (baseclass_offset): Add `embedded_offset' and `val' parameters.
5122 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
5124 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
5125 parameters. No longer returns -1 on error.
5126 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
5128 * cp-valprint.c: Include exceptions.h.
5129 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
5130 the baseclass_offset. Handle unavailable base classes. Use
5131 val_print_invalid_address.
5132 * p-valprint.c: Include exceptions.h.
5133 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
5134 when fetching the baseclass_offset. No longer expect
5135 baseclass_offset returning -1. Handle unavailable base classes.
5136 Use val_print_invalid_address.
5137 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
5138 `valaddr' parameter, and change its type to gdb_byte pointer. Add
5139 `embedded_offset' and `val' parameters. Adjust.
5140 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
5141 parameter, and change its type to gdb_byte pointer. Add
5142 `embedded_offset' and `val' parameters. Adjust. No longer expect
5143 baseclass_offset returning -1.
5144 (value_dynamic_cast): Use value_contents_for_printing rather than
5145 value_contents. Adjust.
5146 (search_struct_field): No longer expect baseclass_offset returning
5148 (search_struct_method): If reading memory from the target is
5149 necessary, wrap it in a new value to pass to baseclass_offset. No
5150 longer expect baseclass_offset returning -1.
5151 (find_method_list): No longer expect baseclass_offset returning
5152 -1. Use value_contents_for_printing rather than value_contents.
5153 * valprint.c (val_print_invalid_address): New function.
5154 * valprint.h (val_print_invalid_address): Declare.
5155 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
5156 and `val' parameters. No longer expect baseclass_offset returning
5158 * gnu-v2-abi.c: Include "exceptions.h".
5159 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
5160 parameters. Handle unavailable memory. Recurse through
5161 gnuv2_baseclass_offset directly, rather than through
5162 baseclass_offset. No longer returns -1 on not found, instead
5164 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
5165 `val' parameters. Adjust.
5169 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
5170 almost but not quite adjacent.
5174 * value.h (value_entirely_available): Declare.
5175 * value.c (value_entirely_available): New function.
5176 * c-valprint.c (c_value_print): Don't try fetching the pointer's
5177 real type if the pointer is unavailable.
5181 * valops.c (value_repeat): Use read_value_memory instead of
5186 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
5187 * value.c (value_contents_copy_raw, value_contents_copy): New
5189 (value_primitive_field): Use value_contents_copy_raw instead of
5191 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
5193 (value_array, value_slice): Ditto.
5194 * valarith.c (value_subscripted_rvalue): Use
5195 value_contents_copy_raw instead of memcpy.
5199 <unavailable> references.
5201 * valops.c (get_value_at): Use value_from_contents_and_address,
5202 avoiding read_memory.
5206 * c-valprint.c (c_val_print): Print a string with unavailable
5207 contents as an array.
5211 * value.h (unpack_bits_as_long): Delete declaration.
5212 (unpack_value_bits_as_long): Declare.
5213 (unpack_value_field_as_long): Declare.
5214 (value_field_bitfield): Declare.
5215 * value.c (unpack_bits_as_long): Rename to...
5216 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
5217 value parameters. Return the extracted result in a new output
5218 parameter. If the value contents are unavailable, return false,
5219 otherwise return true.
5220 (unpack_value_bits_as_long): New.
5221 (unpack_field_as_long): Rename to...
5222 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
5223 Add embedded_offset and value parameters. Return the extracted
5224 result in a new output parameter. If the value contents are
5225 unavailable, return false, otherwise return true.
5226 (unpack_value_field_as_long): New.
5227 (unpack_field_as_long_1): New.
5228 (unpack_field_as_long): Reimplement as wrapper around
5229 unpack_value_field_as_long_1.
5230 (value_field_bitfield): New function.
5231 * valops.c (value_fetch_lazy): When fetching a bitfield, use
5232 unpack_value_bits_as_long. Mark the value as unavailable, if it
5234 * jv-valprint.c (java_print_value_fields): Use
5235 value_field_bitfield.
5236 * p-valprint.c (pascal_object_print_value_fields): Use
5237 value_field_bitfield.
5238 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
5242 * value.c (get_internalvar_integer): Also return the int value of
5243 TYPE_CODE_INT INTERNALVAR_VALUE values.
5244 (set_internalvar): Don't special case TYPE_CODE_INT.
5248 * value.c (struct internalvar) <enum internalvar_kind>: Remove
5249 INTERNALVAR_POINTER.
5251 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
5252 (set_internalvar): Remove special TYPE_CODE_PTR handling.
5253 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
5257 * value.h (value_available_contents_eq): Declare.
5258 * value.c (find_first_range_overlap): New function.
5259 (value_available_contents_eq): New function.
5260 * valprint.c (val_print_array_elements): Use
5261 value_available_contents_eq.
5262 * ada-valprint.c (val_print_packed_array_elements): Use
5263 value_available_contents_eq.
5264 * jv-valprint.c (java_value_print): Use
5265 value_available_contents_eq.
5269 * target.c (target_read_live_memory): New function.
5270 (memory_xfer_live_readonly_partial): New.
5271 (memory_xfer_partial): If reading from a traceframe, fallback to
5272 reading unavailable read-only memory from read-only regions of
5274 * tracepoint.c (disconnect_tracing): Adjust.
5275 (set_current_traceframe): New, factored out from
5276 set_traceframe_number.
5277 (set_traceframe_number): Reimplement to only change the traceframe
5278 number on the GDB side.
5279 (do_restore_current_traceframe_cleanup): Adjust.
5280 (make_cleanup_restore_traceframe_number): New.
5281 (cur_traceframe_number): New global.
5282 (tfile_open): Set cur_traceframe_number to no traceframe.
5283 (set_tfile_traceframe): New function.
5284 (tfile_trace_find): If looking up a traceframe using any method
5285 other than by number, make sure the current tfile traceframe
5286 matches gdb's current traceframe. Update the current tfile
5287 traceframe if the lookup succeeded.
5288 (tfile_fetch_registers, tfile_xfer_partial)
5289 (tfile_get_trace_state_variable_value): Make sure the remote
5290 traceframe matches gdb's current traceframe.
5291 * remote.c (remote_traceframe_number): New global.
5292 (remote_open_1): Set it to -1.
5293 (set_remote_traceframe): New function.
5294 (remote_fetch_registers, remote_store_registers)
5295 (remote_xfer_memory, remote_xfer_partial)
5296 (remote_get_trace_state_variable_value): Make sure the remote
5297 traceframe matches gdb's current traceframe.
5298 (remote_trace_find): If looking up a traceframe using any method
5299 other than by number, make sure the current remote traceframe
5300 matches gdb's current traceframe. Update the current remote
5301 traceframe if the lookup succeeded.
5302 * infrun.c (fetch_inferior_event): Adjust.
5303 * tracepoint.h (set_current_traceframe): Declare.
5304 (get_traceframe_number, set_traceframe_number): Add describing
5309 Mark pieces of values as unavailable if the corresponding memory
5312 * valops.c: Include tracepoint.h.
5313 (value_fetch_lazy): Use read_value_memory.
5314 (read_value_memory): New.
5315 * value.h (read_value_memory): Declare.
5316 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
5317 * exec.c (section_table_available_memory): New function.
5318 * exec.h (section_table_available_memory): Declare.
5322 * Makefile.in (SFILES): Add memrange.c.
5323 (HFILES_NO_SRCDIR): Add memrange.h.
5324 (COMMON_OBS): Add memrange.o.
5325 * memrange.c: New file.
5326 * memrange.h: New file.
5327 * tracepoint.c: Include memrange.h.
5328 (struct mem_range): Delete.
5329 (mem_range_s): Delete.
5330 (traceframe_available_memory): New function.
5331 * tracepoint.h (traceframe_available_memory): Declare.
5335 * target.h (struct traceframe_info): Forward declare.
5336 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
5337 (struct target_ops) <to_traceframe_info>: New field.
5338 (target_traceframe_info): New.
5339 * target.c (update_current_target): Inherit and default
5341 * remote.c (PACKET_qXfer_traceframe_info): New.
5342 (remote_protocol_features): Register qXfer:traceframe-info:read.
5343 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
5344 (remote_traceframe_info): New.
5345 (init_remote_ops): Install it.
5346 (_initialize_remote): Install "set/show remote traceframe-info"
5348 * tracepoint.h (parse_traceframe_info): Declare.
5349 * tracepoint.c (struct mem_range): New.
5350 (mem_range_s): New typedef.
5351 (struct traceframe_info): New.
5352 (traceframe_info): New global.
5353 (free_traceframe_info): New function.
5354 (clear_traceframe_info): New function.
5355 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
5357 (build_traceframe_info): New function.
5358 (tfile_traceframe_info): New function.
5359 (init_tfile_ops): Install tfile_traceframe_info.
5360 (traceframe_info_start_memory, free_result): New functions.
5361 (memory_attributes, traceframe_info_elements): New globals.
5362 (parse_traceframe_info, get_traceframe_info): New functions.
5363 * features/traceframe-info.dtd: New file.
5364 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
5368 Base support for <unavailable> value contents.
5370 * value.h (value_bytes_available): Declare.
5371 (mark_value_bytes_unavailable): Declare.
5372 * value.c (struct range): New struct.
5373 (range_s): New typedef.
5374 (ranges_overlap): New function.
5375 (range_lessthan): New function.
5376 (ranges_contain_p): New function.
5377 (struct value) <unavailable>: New field.
5378 (value_bytes_available): New function.
5379 (mark_value_bytes_unavailable): New function.
5380 (require_not_optimized_out): Constify parameter.
5381 (require_available): New function.
5382 (value_contents_all, value_contents): Require all bytes be
5384 (value_free): Free `unavailable'.
5385 (value_copy): Copy `unavailable'.
5386 * valprint.h (val_print_unavailable): Declare.
5387 * valprint.c (valprint_check_validity): Rename `offset' parameter
5388 to `embedded_offset'. If printing a scalar, check whether the
5389 value chunk is available.
5390 (val_print_unavailable): New.
5391 (val_print_scalar_formatted): Check whether the value is
5393 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
5394 pretty-printing unavailable values.
5398 Fix const/volatile qualifiers of C++ types, PR c++/12328.
5399 * c-typeprint.c (c_type_print_args): Update the function comment. New
5400 variable param_type, initialize it. Remove const/volatile qualifiers
5401 for language_cplus and !show_artificial. Use param_type.
5405 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
5406 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
5407 * symtab.h (struct symtab) <next>: Comment extension.
5411 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
5415 * common/Makefile.in: Add copyright header.
5419 * infrun.c (proceed): Move switching out and in of tfind mode from
5421 (fetch_inferior_event): ... to here.
5425 * Makefile.in: Remove signals.o from COMMON_OBS. Link
5427 * configure.ac: Add common to sub dir.
5428 * configure: Regenerate.
5434 * common/Makefile.in: New.
5435 * common/configure.ac: New.
5436 * common/aclocal.m4: New.
5437 * common/configure: Generate.
5441 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
5442 side of the parenthesis.
5446 * vec.h (VEC_block_remove): Fix comment.
5450 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
5454 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
5455 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
5461 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
5463 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
5464 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
5468 * dwarf2read.c (read_subroutine_type): Set special calling
5469 convention flag for functions compiled by IBM XL C for OpenCL.
5470 * ppc-sysv-tdep.c: Include "dwarf2.h"
5471 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
5473 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
5474 IBM OpenCL vector types calling convention.
5475 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
5476 (ppc_sysv_abi_broken_return_value): Likewise.
5477 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
5478 types calling convention.
5479 (ppc64_sysv_abi_return_value): Likewise.
5480 * spu-tdep.c: Include "dwarf2.h"
5481 (spu_return_value): Implement IBM OpenCL vector types calling
5486 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
5487 correct ABI for AltiVec vector arguments.
5491 * valprint.c (val_print): Extend comment.
5492 * ada-valprint.c (ada_valprint): Rewrite comment deferring
5493 interface explanation to val_print.
5494 (ada_val_print_array): Adjust comment to current interface.
5495 (print_field_values): Adjust comment to current interface.
5496 * c-valprint.c (c_val_print): Rewrite comment deferring interface
5497 explanation to val_print.
5498 * f-valprint.c (f_val_print): Ditto.
5499 * jv-valprint.c (java_val_print): Ditto.
5500 * m2-valprint.c (m2_val_print): Ditto.
5501 * p-valprint.c (pascal_val_print): Ditto.
5505 * breakpoint.c (parse_breakpoint_sals): Fix description.
5510 * python/py-inferior.c (python_on_normal_stop): New function.
5511 (python_on_resume): New function.
5512 (python_inferior_exit): New function.
5513 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
5514 inferior_exit observers.
5515 * python/py-evtregistry.c: New file.
5516 * python/py-threadevent.c : New file.
5517 * python/py-event.c: New file.
5518 * python/py-evts.c: New file.
5519 * python/py-continueevent.c: New file.
5520 * python/py-bpevent.c: New file.
5521 * python/py-signalevent.c: New file.
5522 * python/py-exetiedevent.c: New file.
5523 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
5524 Move struct breakpoint_object from here...
5525 * python/python-internal.h: ... to here.
5526 * python/py-event.h: New file.
5527 * python/py-events.h: New file.
5528 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
5529 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
5530 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
5531 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
5532 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
5533 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
5534 Add build rules for all the above.
5538 * dwarf2read.c (dwarf2_section_empty_p): New function.
5539 (dwarf2_read_section): Use dwarf2_section_empty_p.
5540 (dwarf2_section_size): New function.
5541 (dwarf2_get_section_info): Unconditionally read section.
5542 (dwarf2_read_index): Use dwarf2_section_empty_p.
5543 (partial_read_comp_unit_head): Use dwarf2_section_size.
5544 (dwarf2_symbol_mark_computed): Likewise.
5548 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
5552 * mips-linux-tdep.c: Include xml-syscall.h.
5553 (mips_linux_get_syscall_number): New function.
5554 (mips_linux_init_abi): Add calls to
5555 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
5556 * data-directory/Makefile.in (SYSCALLS_FILES): Add
5557 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
5558 * syscalls/mips-n32-linux.xml: New file.
5559 * syscalls/mips-n64-linux.xml: New file.
5560 * syscalls/mips-o32-linux.xml: New file.
5564 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
5565 Complain about inverted range entries.
5566 (dwarf2_record_block_ranges): Likewise.
5571 * breakpoint.c (update_watchpoint): Fix name of the
5572 update_global_location_list function.
5573 (print_one_breakpoint): Fix typo.
5574 (_initialize_breakpoint): Remove extra space in hbreak help
5576 * breakpoint.h (struct bp_location) <length>: Fix field
5581 * regcache.c (registers_changed_ptid): Don't explictly always
5582 clear `current_regcache'. Only clear current_thread_ptid and
5583 current_thread_arch when PTID matches. Only reinit the frame
5584 cache if PTID matches the current inferior_ptid. Move alloca(0)
5586 (registers_changed): ... here.
5590 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
5591 starts with __stack_chk_guard as stack guard symbol.
5595 * disasm.c (compare_lines): Handle the end of sequence markers
5596 within the line table to better support disassembling over
5597 compilation unit boundaries.
5601 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
5602 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
5603 implementation even if no symbols are available.
5604 (thumb_analyze_prologue): Update call to skip_prologue_function.
5605 (arm_analyze_prologue): Likewise.
5609 * arm-tdep.c: Include "observer.h".
5610 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
5611 (arm_exidx_data_key): New static variable.
5612 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
5613 (struct arm_exidx_data): Likewise.
5614 (arm_exidx_data_free): New function.
5615 (arm_compare_exidx_entries): Likewise.
5616 (arm_obj_section_from_vma): Likewise.
5617 (arm_exidx_new_objfile): Likewise.
5618 (arm_find_exidx_entry): Likewise.
5619 (arm_exidx_fill_cache): Likewise.
5620 (arm_exidx_unwind_sniffer): Likewise.
5621 (arm_exidx_unwind): New global variable.
5622 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
5623 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
5624 observer. Register arm_exidx_data_key as objfile data.
5628 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
5629 due to accessing uninitialized variable. Fix indentation.
5633 * c-valprint.c (c_value_print): When doing virtual base pointer
5634 adjustment, create a new value with adjusted contents rather than
5635 changing the contents of the value being printed (and getting it
5640 * xml-support.c (xml_find_attribute): New.
5641 (xinclude_start_include): Use it.
5642 * xml-support.h (xml_find_attribute): Declare.
5643 * memory-map.c (memory_map_start_memory)
5644 (memory_map_start_property): Use xml_find_attribute.
5645 * osdata.c (osdata_start_osdata, osdata_start_column): Use
5647 * remote.c (start_thread): Use xml_find_attribute.
5648 * solib-target.c (library_list_start_segment)
5649 (library_list_start_section, library_list_start_library)
5650 (library_list_start_list): Use xml_find_attribute.
5651 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
5652 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
5653 (tdesc_start_field): Use xml_find_attribute.
5657 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
5658 (BUILD_OCL_VTYPES): Update.
5662 * configure.ac: Work around non-GNU sed limitation when computing
5663 python version number.
5664 * configure: Regenerate.
5668 Fix debug printing of TYPE_INSTANCE.
5669 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
5670 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
5674 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
5675 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
5676 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
5677 * ada-operator.inc: Rename the file to ...
5678 * ada-operator.def: ... here, wrap all the entries by macro OP.
5679 * expprint.c (op_name_standard): Remove all the entries. Include
5680 "std-operator.def" instead.
5681 * expression.h (enum exp_opcode): Include "std-operator.def" and
5682 "ada-operator.def". Move all the entries ...
5683 * std-operator.def: ... here, wrap all the entries by macro OP.
5687 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
5688 * breakpoint.c (remove_jit_event_breakpoints): New function.
5689 * jit.c (jit_descriptor_addr): Delete.
5690 (registering_code): Delete.
5691 (clear_int): Delete.
5692 (jit_inferior_data): New variable.
5693 (struct jit_inferior_data): New type.
5694 (get_jit_inferior_data): New function.
5695 (jit_inferior_data_cleanup): New function.
5696 (jit_read_descriptor): Adjust.
5697 (jit_register_code): Adjust.
5698 (jit_breakpoint_re_set_internal): New function; move code here ...
5699 (jit_inferior_init): ... from here.
5700 (jit_breakpoint_re_set): Adjust.
5701 (jit_reset_inferior_data_and_breakpoints): New function.
5702 (jit_inferior_created_observer): Adjust.
5703 (jit_inferior_exit_hook): Adjust.
5704 (jit_executable_changed_observer): New function.
5705 (jit_event_handler): Adjust.
5706 (_initialize_jit): Adjust.
5710 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
5716 * python/python.c (execute_gdb_command): Call
5717 prevent_dont_repeat.
5718 * top.c (suppress_dont_repeat): New global.
5719 (dont_repeat): Use it.
5720 (prevent_dont_repeat): New function.
5721 * command.h (prevent_dont_repeat): Declare.
5725 * infcmd.c (finish_backward): Use breakpoint_set_silent.
5726 * python/py-breakpoint.c (bppy_set_silent): Use
5727 breakpoint_set_silent.
5728 (bppy_set_thread): Use breakpoint_set_thread.
5729 (bppy_set_task): Use breakpoint_set_task.
5730 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
5731 (breakpoint_set_task): Declare.
5732 (make_breakpoint_silent): Remove.
5733 * breakpoint.c (breakpoint_set_silent): New function.
5734 (breakpoint_set_thread): Likewise.
5735 (breakpoint_set_task): Likewise.
5736 (make_breakpoint_silent): Remove.
5740 * breakpoint.h (user_breakpoint_p): Declare.
5741 * breakpoint.c (user_breakpoint_p): New function.
5742 (breakpoint_1): Use it.
5743 (save_breakpoints): Likewise.
5747 * configure.ac: Add handling of Python distribution on Windows.
5748 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
5749 sysconfig variables are not defined, then do not use them.
5750 On Windows, if LIBPL is not defined, then use prefix + '/libs'
5751 instead. On Windows, return all paths using forward-slashes
5752 rather than backslashes.
5756 * configure.ac: Remove fallback behavior for building
5757 against Python. Remove tweaking of Python include path.
5758 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
5759 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
5760 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
5761 Always restore CPPFLAGS and LIBS after linking test.
5762 * configure: Regenerated.
5763 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
5764 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
5765 * python/python-internal.h: Adjust includes of Python .h files.
5769 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
5774 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
5779 * arm-linux-nat.c: Update calls to regcache_register_status
5780 instead of regcache_valid_p.
5781 * aix-thread.c: Likewise.
5782 * i386gnu-nat.c: Likewise.
5787 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
5788 touching TYPE_FIELD_ARTIFICIAL.
5792 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
5797 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
5798 selected, don't try iterating over the traceframe's blocks.
5799 (tfile_has_stack): If there's no traceframe selected, then there's
5801 (tfile_has_registers): If there's no traceframe selected, then
5802 there's no registers.
5806 * target.c (memory_xfer_partial): No need to restore shadows if we
5807 haven't read anything.
5811 * mips-tdep.c (mips_print_register): Use get_frame_register_value
5812 and val_print_scalar_formatted.
5816 * tracepoint.c (tfile_read): New.
5817 (tfile_open): Use it.
5818 (tfile_get_traceframe_address): Use it.
5819 (tfile_trace_find): Use it.
5820 (walk_blocks_callback_func): New typedef.
5821 (match_blocktype): New function.
5822 (traceframe_walk_blocks): New function.
5823 (traceframe_find_block_type): New function.
5824 (tfile_fetch_registers, tfile_xfer_partial)
5825 (tfile_get_trace_state_variable_value): Use
5826 traceframe_find_block_type and tfile_read.
5830 * remote-mips.c: Add internationalization mark ups. Remove
5831 trailing \n from already marked up strings.
5835 * python/py-prettyprint.c (print_string_repr): Clear
5836 'addressprint' option when calling val_print_string.
5837 (print_children): Handle Val_pretty_default. Clear 'addressprint'
5838 option when calling val_print_string.
5842 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
5844 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
5846 (gdb_py_longest, gdb_py_ulongest): New typedefs.
5847 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
5848 (gdb_py_long_as_ulongest): New defines.
5849 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
5850 (gdb_py_int_as_long): Declare.
5851 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
5852 GDB_PY_LL_ARG, gdb_py_object_from_longest.
5853 (valpy_long): Add comment.
5854 * python/py-utils.c (get_addr_from_python): Use
5855 gdb_py_long_as_ulongest. Handle overflow properly.
5856 (gdb_py_object_from_longest): New function.
5857 (gdb_py_object_from_ulongest): Likewise.
5858 (gdb_py_int_as_long): Likewise.
5859 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
5860 * python/py-symtab.c (salpy_get_pc): Use
5861 gdb_py_long_from_ulongest.
5862 (salpy_get_line): Use PyInt_FromLong.
5863 * python/py-param.c (set_parameter_value): Use
5865 * python/py-lazy-string.c (stpy_get_address): Use
5866 gdb_py_long_from_ulongest.
5867 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
5868 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
5869 * python/py-breakpoint.c (bppy_set_thread): Use
5871 (bppy_set_task): Likewise.
5872 (bppy_set_ignore_count): Likewise.
5873 (bppy_set_hit_count): Likewise.
5874 * python/py-block.c (blpy_get_start): Use
5875 gdb_py_object_from_ulongest.
5876 (blpy_get_end): Likewise.
5877 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
5882 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
5883 * gdb/solib.c (solib_read_symbols): Check for addr_low in
5884 equality test for objfile, initialize addr_low if needed.
5888 * tui/tui-regs.c (tui_register_format): Remove dead code.
5892 * printcmd.c (print_formatted): Use val_print_scalar_formatted
5893 instead of print_scalar_formatted.
5894 (print_scalar_formatted): Don't handle 's' format strings here,
5895 and add an assertion that we never see such format here.
5896 * valprint.h (val_print_scalar_formatted): Declare.
5897 * valprint.c (val_print_scalar_formatted): New.
5898 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5899 instead of print_scalar_formatted.
5900 * jv-valprint.c (java_val_print): Ditto.
5901 * p-valprint.c (pascal_val_print): Ditto.
5902 * ada-valprint.c (ada_val_print_1): Ditto.
5903 * f-valprint.c (f_val_print): Ditto.
5904 * infcmd.c (registers_info): Ditto.
5905 * m2-valprint.c (m2_val_print): Ditto.
5909 * m2-valprint.c (print_unbounded_array): Pass
5910 value_contents_for_printing rather than value_contents, to
5911 m2_print_array_contents. Also pass in the value.
5915 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5916 (save_gdb_index_command): Switch to .gdb_index version 4.
5920 * mi/mi-main.c (get_register): Use get_frame_register_value rather
5921 than frame_register, and always pass a valid value to val_print.
5925 Centralize printing "<optimized out>".
5927 * valprint.h (val_print_optimized_out): Declare.
5928 * cp-valprint.c (cp_print_value_fields): Use
5929 val_print_optimized_out.
5930 * jv-valprint.c (java_print_value_fields): Ditto.
5931 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5932 * printcmd.c (print_formatted): Ditto.
5933 * valprint.c (valprint_check_validity): Ditto.
5934 (value_check_printable): Ditto.
5935 (val_print_optimized_out): New.
5939 * infcmd.c (default_print_registers_info): Allocate values so to
5940 never pass a NULL value to val_print.
5944 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5945 boolean. Make sure to always pass a value that matches the
5946 contents buffer to callees. Preserve `address' for following
5948 * value.c (value_contents_for_printing_const): New.
5949 (value_address): Constify value argument.
5950 * value.h (value_contents_for_printing_const): Declare.
5951 (value_address): Constify value argument.
5955 * regcache.c (struct regcache_descr): Rename
5956 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5957 and sizeof_cooked_register_valid_p to
5958 sizeof_cooked_register_status.
5959 (init_regcache_descr): Adjust.
5960 (struct regcache): Rename register_valid_p field to
5962 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5963 (do_cooked_read): Adjust.
5964 (regcache_valid_p): Rename to ...
5965 (regcache_register_status): ... this. Adjust.
5966 (regcache_invalidate): Adjust.
5967 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5969 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5970 as unavailable, not valid.
5971 (regcache_dump): Adjust.
5972 * regcache.h (enum register_status): New.
5973 (regcache_register_status): Declare.
5974 (regcache_invalidate): Delete declaration.
5975 * corelow.c (get_core_registers): Adjust.
5976 * tracepoint.c (tfile_fetch_registers): Adjust.
5977 * trad-frame.c (REG_VALUE): Rename to ...
5978 (TF_REG_VALUE): ... this.
5979 (REG_UNKNOWN): Rename to ...
5980 (TF_REG_UNKNOWN): ... this.
5981 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5982 * mi/mi-main.c (register_changed_p): Adjust.
5986 * regcache.c (struct regcache_descr): Remove outdated comment.
5987 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5989 (regcache_xmalloc): Rename to ...
5990 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5991 Allocate the regcache type accordingly.
5992 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5993 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5994 cooked registers, not raw.
5995 (regcache_dup_no_passthrough): Delete.
5996 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5997 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5998 mention obsolete write_register_bytes.
5999 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
6003 Stop remote_read_bytes from handling partial reads itself.
6005 * remote-fileio.c: Include target.h.
6006 (remote_fileio_write_bytes): Delete.
6007 (remote_fileio_func_open, remote_fileio_func_write)
6008 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
6010 (remote_fileio_func_stat): Use target_read_memory and
6011 target_write_memory.
6012 (remote_fileio_func_gettimeofday): Use target_write_memory.
6013 (remote_fileio_func_system): Use target_read_memory.
6014 * remote.c (remote_write_bytes): Make it static.
6015 (remote_read_bytes): Don't handle partial reads here.
6016 * remote.h (remote_read_bytes): Delete declaration.
6020 Simplify XML parsing a bit.
6022 * xml-support.h (gdb_xml_parse_quick): Declare.
6023 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
6024 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
6026 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
6027 gdb_xml_create_parser_and_cleanup_1.
6028 (gdb_xml_parse_quick): New.
6029 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
6030 * osdata.c (osdata_parse): Ditto.
6031 * remote.c (remote_threads_info): Ditto.
6032 * solib-target.c (solib_target_parse_libraries): Ditto.
6033 * xml-syscall.c (syscall_parse_xml): Ditto.
6034 * xml-tdesc.c (tdesc_parse_xml): Ditto.
6038 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
6039 with remote-mips.o added to gdb_target_obs.
6040 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
6044 * ada-valprint.c (val_print_packed_array_elements): Pass the
6045 correct struct value to val_print.
6046 (ada_val_print_1): Ditto.
6050 Don't lose embedded_offset in printing routines throughout.
6052 * valprint.h (val_print_array_elements): Change prototype.
6053 * valprint.c (val_print_array_elements): Add `embedded_offset'
6054 parameter, and adjust to pass it down to val_print, while passing
6055 `valaddr' or `address' unmodified. Take embedded_offset into
6056 account when checking repetitions.
6057 * c-valprint.c (c_val_print): Pass embedded_offset to
6058 val_print_array_elements instead of adjusting `valaddr' and
6060 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
6061 embedded_offset to val_print_array_elements instead of adjusting
6063 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
6064 * p-valprint.c (pascal_val_print): Pass embedded_offset to
6065 val_print_array_elements and pascal_object_print_value_fields
6066 instead of adjusting `valaddr'.
6067 (pascal_object_print_value_fields): Add `offset' parameter, and
6069 (pascal_object_print_value): Add `offset' parameter, and adjust to
6071 (pascal_object_print_static_field): Use
6072 value_contents_for_printing/value_embedded_offset, rather than
6074 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
6075 parameter, and adjust to use it. Use
6076 value_contents_for_printing/value_embedded_offset, rather than
6078 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
6079 (ada_val_print_array): Add `offset' parameter, and adjust to use
6081 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
6082 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
6083 Instead work with offsets. Use
6084 value_contents_for_printing/value_embedded_offset, rather than
6085 value_contents. Change `defer_val_int' local type to CORE_ADDR,
6086 and use value_from_pointer to extract a target pointer, rather
6087 than value_from_longest.
6088 (print_variant_part): Add `offset' parameter. Replace
6089 `outer_valaddr' parameter by a new `outer_offset' parameter.
6090 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6091 (ada_value_print): Use
6092 value_contents_for_printing/value_embedded_offset, rather than
6094 (print_record): Add `offset' parameter, and adjust to pass it
6096 (print_field_values): Add `offset' parameter. Replace
6097 `outer_valaddr' parameter by a new `outer_offset' parameter.
6098 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6099 Use value_contents_for_printing/value_embedded_offset, rather than
6101 * d-valprint.c (dynamic_array_type): Use
6102 value_contents_for_printing/value_embedded_offset, rather than
6104 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
6105 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
6106 (java_print_value_fields): Take `offset' into account. Don't
6107 re-adjust `valaddr'. Instead pass down adjusted offsets.
6108 (java_val_print): Take `embedded_offset' into account. Pass it to
6109 java_print_value_fields.
6110 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
6111 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
6112 down adjusted offsets.
6113 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
6114 (f_val_print): Take `embedded_offset' into account.
6118 * inflow.c: Include "gdbcmd.h".
6119 (interactive_mode): New static global, moved here from top.c.
6120 (show_interactive_mode): New function, moved here from top.c.
6121 use gdb_has_a_terminal instead of input_from_terminal_p to
6122 determine the current mode.
6123 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
6125 (_initialize_inflow): Add the "set/show interactive-mode"
6126 commands. Moved here from top.c, after having adjusted slightly
6128 * top.c (interactive_mode, show_interactive_mode): Delete, moved
6130 (input_from_terminal_p): Remove handling of "interactive-mode"
6131 setting, moved to infow.c.
6132 (init_main): Remove creation of the "set/show interactive-mode"
6133 commands, moved to inflow.c.
6137 * NEWS: Add entry for native ia64-hpux support.
6142 * thread.c (free_thread): Free 'name'.
6143 (print_thread_info): Emit thread name. Change CLI output.
6144 (thread_name_command): New function.
6145 (do_captured_thread_select): Emit newline.
6146 (_initialize_thread): Register 'thread name' command.
6147 * target.h (struct target_ops) <to_thread_name>: New field.
6148 (target_thread_name): New macro.
6149 * target.c (update_current_target): Handle to_thread_name.
6150 * python/py-infthread.c (thpy_get_name): New function.
6151 (thpy_set_name): Likewise.
6152 (thread_object_getset): Add "name".
6153 * linux-nat.c (linux_nat_thread_name): New function.
6154 (linux_nat_add_target): Set to_thread_name.
6155 * gdbthread.h (struct thread_info) <name>: New field.
6159 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
6160 (ada_val_print_1): Likewise.
6164 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
6165 upper limit address is not greater than the function end address
6166 when the upper limit could not be computed using the debugging
6171 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
6173 * utils.c: Include gdb_regex.h.
6174 (do_regfree_cleanup): New function.
6175 (make_regfree_cleanup): Likewise.
6176 (get_regcomp_error): Likewise.
6177 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
6181 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
6186 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
6187 for internal variables.
6188 (last_was_structop): New static variable.
6189 (COMPLETE): New token.
6190 (field_exp): New rule to group all '.' suffix handling.
6191 Add mark_struct_expression calls when approriate to be able
6192 to correctly find fields for completion.
6193 (yylex): Adapt to handle field completion and set INTVAR when
6198 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
6199 save_reggroup, restore_reggroup and all_reggroup.
6203 * ada-valprint. (ada_printchar): Use the correct type length
6204 in call to ada_emit_char.
6205 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
6209 * solib-som.h (hpux_major_release): Declare variable here.
6210 * solib-som.c: Remove <sys/utsname.h> header.
6211 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
6212 (hpux_major_release): Make global, change default value to
6213 DEFAULT_HPUX_MAJOR_RELEASE.
6214 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
6215 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
6216 Add "solib-som.h" header.
6217 (set_hpux_major_release): New function.
6218 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
6222 * configure.tgt (*-*-uclinux*): Match more Linux os targets
6226 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
6227 new-line at end of warning message.
6228 (ia64_hpux_store_register): Remove trailing new-line at end of
6230 * ia64-hpux-tdep.c: Rephrase comment.
6231 * solib-ia64-hpux.c (struct dld_info): Change type of field
6232 dld_flags from "long long" to ULONGEST.
6236 * target.h (deprecated_child_ops): Delete declaration.
6237 * target.c (deprecated_child_ops): Delete definition.
6241 * Makefile.in (hpux-thread.o): Delete rule.
6242 * configure.ac: Don't check for HPUX DCE threads support.
6243 * configure, config.in: Regenerate.
6244 * hppa-hpux-nat.c (child_suppress_run): Delete.
6245 (hppa_hpux_child_can_run): Delete.
6246 (_initialize_hppa_hpux_nat): Don't override to_can_run.
6247 * hpux-thread.c: Delete.
6251 * hpux-thread.c (hpux_pid_to_str): Delete.
6255 * ada-valprint.c (ada_emit_char): Remove strange code.
6256 Check that c is <= UCHAR_MAX before passing it to isascii.
6257 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
6261 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
6262 to the case where instream is stdin.
6266 * ia64-tdep.h (struct regcache): Forward declare.
6267 (struct ia64_infcall_ops): New struct type.
6268 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
6270 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
6271 Renames ia64_find_global_pointer.
6272 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
6273 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
6274 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
6276 (ia64_infcall_ops): New static global constant.
6277 (ia64_gdbarch_init): Set tdep->infcall_ops.
6278 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
6279 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
6280 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
6281 (ia64_hpux_dummy_code): New static global constant.
6282 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
6283 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
6284 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
6286 (ia64_hpux_infcall_ops): New static global constant.
6287 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
6288 for inferior function calls to work properly on ia64-hpux.
6292 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
6293 * ia64-tdep.h (struct frame_info): forward declaration.
6294 (struct gdbarch_tdep): Add field size_of_register_frame.
6295 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
6296 to determine the size of the register frame.
6297 (ia64_size_of_register_frame): New function.
6298 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
6299 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
6300 (IA64_HPUX_UREG_REASON): New macro.
6301 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
6303 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
6304 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
6305 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
6310 Add support for ia64-hpux.
6311 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
6312 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
6314 * configure.host: Add handling for ia64-hpux hosts. Add associated
6316 * configure.tgt: Add handling for ia64-hpux targets.
6317 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
6318 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
6319 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
6323 [ttrace] Compute thread list immediately after attach.
6324 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
6326 (inf_ttrace_attach): Use it.
6330 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
6331 if we could not determine the frame's function address. Instead,
6332 use the frame's PC, and then continue.
6336 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
6337 not already defined.
6341 * ia64-tdep.c (ia64_struct_type_p): New function.
6342 (ia64_extract_return_value): Handle integral values that are
6343 less than 8 bytes long.
6344 (ia64_push_dummy_call): Likewise.
6348 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
6349 floatformat_ia64_ext.
6350 (floatformat_ia64_ext_big): New static const.
6351 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
6355 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
6357 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
6358 (mi_cmd_thread_list_ids): Likewise.
6359 (mi_cmd_data_list_changed_registers): Likewise.
6360 (mi_cmd_data_list_register_values): Likewise.
6361 (mi_cmd_data_write_register_values): Likewise.
6362 (mi_cmd_data_evaluate_expression): Likewise.
6363 (mi_cmd_data_read_memory): Likewise.
6364 (mi_cmd_data_read_memory_bytes): Likewise.
6365 (mi_cmd_data_write_memory): Likewise.
6366 (mi_cmd_enable_timings): Likewise.
6367 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
6368 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
6369 (mi_cmd_var_delete): Likewise.
6370 (mi_cmd_var_set_format): Likewise.
6371 (mi_cmd_var_show_format): Likewise.
6372 (mi_cmd_var_info_num_children): Likewise.
6373 (mi_cmd_var_list_children): Likewise.
6374 (mi_cmd_var_info_type): Likewise.
6375 (mi_cmd_var_info_expression): Likewise.
6376 (mi_cmd_var_show_attributes): Likewise.
6377 (mi_cmd_var_assign): Likewise.
6378 (mi_cmd_var_update): Likewise.
6379 (mi_cmd_enable_pretty_printing): Likewise.
6380 (mi_cmd_var_set_update_range): Likewise.
6381 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
6383 (mi_cmd_target_file_put): Likewise.
6384 (mi_cmd_target_file_delete): Likewise.
6385 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
6387 (mi_cmd_stack_info_depth): Likewise.
6388 (mi_cmd_stack_list_locals): Likewise.
6389 (mi_cmd_stack_list_args): Likewise.
6390 (mi_cmd_stack_select_frame): Likewise.
6391 (mi_cmd_stack_select_frame): Likewise.
6392 (mi_cmd_stack_info_frame): Likewise.
6393 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
6395 (mi_cmd_file_list_exec_source_files): Likewise.
6396 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
6397 (mi_cmd_env_cd): Likewise.
6398 (mi_cmd_env_path): Likewise.
6399 (mi_cmd_env_dir): Likewise.
6400 (mi_cmd_inferior_tty_show): Likewise.
6401 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
6402 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
6403 (mi_cmd_break_watch): Likewise.
6407 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
6408 (ppc_linux_insert_hw_breakpoint): Likewise.
6409 (ppc_linux_remove_hw_breakpoint): Likewise.
6410 (ppc_linux_insert_watchpoint): Likewise.
6415 PR fortran/11104 and DWARF unbound arrays detection.
6416 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
6417 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
6418 unspecified upper bound.
6419 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
6420 variables array_size_array, tmp_type and offset_item. New variable
6421 array. Remove call to f77_get_upperbound. New variables array_type
6422 and index. Call value_subscripted_rvalue for each dimenasion. Remove
6423 the final call to deprecated_set_value_type.
6427 Make value allocations more lazy.
6428 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
6429 instead of allocate_value and set_value_lazy when possible.
6430 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
6431 instead of allocate_value and set_value_lazy.
6432 * findvar.c (value_of_register_lazy): Likewise.
6433 (read_var_value): Remove V preallocation, call just check_typedef in
6434 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
6435 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
6436 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
6437 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
6438 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
6439 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
6440 the end, remove set_value_lazy there.
6441 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
6442 instead of allocate_value and set_value_lazy when possible.
6443 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
6444 * value.c (allocate_computed_value): Use allocate_value_lazy instead
6445 of allocate_value and set_value_lazy.
6446 (value_from_contents_and_address): Use allocate_value_lazy instead of
6447 allocate_value and set_value_lazy when possible.
6451 * disasm.c (dump_insns): Support dumping opcodes for MI.
6452 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
6453 dumping of instruction opcodes.
6457 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
6462 * thread.c (do_captured_thread_select): Emit newline before
6467 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
6468 * score-tdep.c: Ditto.
6469 * score-tdep.h: Ditto.
6470 * ser-base.c: Ditto.
6471 * ser-go32.c: Ditto.
6474 * ser-mingw.c: Ditto.
6475 * ser-pipe.c: Ditto.
6477 * ser-unix.c: Ditto.
6478 * sh64-tdep.c: Ditto.
6479 * shnbsd-nat.c: Ditto.
6483 * solib-darwin.c: Ditto.
6484 * solib-frv.c: Ditto.
6486 * solib-irix.c: Ditto.
6487 * solib-osf.c: Ditto.
6488 * solib-pa64.c: Ditto.
6489 * solib-som.c: Ditto.
6490 * solib-spu.c: Ditto.
6491 * solib-sunos.c: Ditto.
6492 * solib-svr4.c: Ditto.
6494 * sol-thread.c: Ditto.
6498 * sparc64-linux-tdep.c: Ditto.
6499 * sparc64-tdep.c: Ditto.
6500 * sparc-linux-nat.c: Ditto.
6501 * sparc-linux-tdep.c: Ditto.
6502 * sparc-sol2-nat.c: Ditto.
6503 * sparc-sol2-tdep.c: Ditto.
6504 * sparc-tdep.c: Ditto.
6505 * sparc-tdep.h: Ditto.
6506 * spu-tdep.c: Ditto.
6507 * stabsread.c: Ditto.
6508 * stabsread.h: Ditto.
6516 * target-descriptions.c: Ditto.
6517 * target-descriptions.h: Ditto.
6519 * target-memory.c: Ditto.
6520 * terminal.h: Ditto.
6523 * tracepoint.c: Ditto.
6524 * tracepoint.h: Ditto.
6525 * trad-frame.h: Ditto.
6526 * typeprint.c: Ditto.
6530 * ui-file.c: Comment cleanup, mostly periods and spaces.
6535 * v850-tdep.c: Ditto.
6536 * valarith.c: Ditto.
6538 * valprint.c: Ditto.
6539 * valprint.h: Ditto.
6544 * vax-tdep.c: Ditto.
6548 * windows-nat.c: Ditto.
6549 * windows-tdep.c: Ditto.
6550 * xcoffread.c: Ditto.
6551 * xcoffsolib.c: Ditto.
6552 * xml-support.c: Ditto.
6553 * xstormy16-tdep.c: Ditto.
6554 * xtensa-tdep.c: Ditto.
6555 * xtensa-tdep.h: Ditto.
6559 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
6560 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
6565 Implement support for PowerPC BookE ranged watchpoints.
6567 (struct breakpoint_ops) <resources_needed>: New method.
6568 Initialize to NULL in all existing breakpoint_ops instances.
6569 (struct breakpoint) <exact>: New field.
6570 (target_exact_watchpoints): Declare external global.
6571 * breakpoint.c (target_exact_watchpoints): New global flag.
6572 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
6573 b->enable_state to bp_enabled before calling
6574 hw_watchpoint_used_count.
6575 (hw_watchpoint_used_count): Iterate over all bp_locations in a
6576 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
6578 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
6579 if the watchpoint is exact.
6580 (resources_needed_watchpoint): New function.
6581 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
6582 (watch_command_1): Set b->exact if the user asked for an exact
6583 watchpoint and one can be set.
6584 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
6585 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
6586 the user asks for an exact watchpoint and one can be set. Return
6587 number of needed debug registers to watch the expression.
6588 * gdbtypes.c (is_scalar_type): New function, based on
6589 valprint.c:scalar_type_p.
6590 (is_scalar_type_recursive): New function.
6591 * gdbtypes.h (is_scalar_type_recursive): Declare.
6592 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
6593 handle regions when ranged watchpoints are available.
6594 (create_watchpoint_request): New function.
6595 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
6596 create_watchpoint_request.
6597 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
6598 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
6599 `set powerpc' and `show powerpc' commands.
6600 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6601 Mention documentation comment in the target macro.
6602 (target_region_ok_for_hw_watchpoint): Document return value.
6606 * breakpoint.c (update_watchpoint): Decide on using a software or
6607 hardware watchpoint after the bp_locations are created.
6611 Convert hardware watchpoints to use breakpoint_ops.
6612 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
6613 <insert_location>: ... this. Return int instead of void.
6614 Accept pointer to struct bp_location instead of pointer to
6615 struct breakpoint. Adapt all implementations.
6616 (breakpoint_ops) <remove>: Rename to...
6617 <remove_location>: ... this. Accept pointer to struct bp_location
6618 instead of pointer to struct breakpoint. Adapt all implementations.
6619 * breakpoint.c (insert_catchpoint): Delete function.
6620 (insert_bp_location): Call the watchpoint or catchpoint's
6621 breakpoint_ops.insert method.
6622 (remove_breakpoint_1): Call the watchpoint or catchpoint's
6623 breakpoint_ops.remove method.
6624 (insert_watchpoint, remove_watchpoint): New functions.
6625 (watchpoint_breakpoint_ops): New structure.
6626 (watch_command_1): Initialize the OPS field.
6627 * inf-child.c (inf_child_insert_fork_catchpoint)
6628 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
6629 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
6630 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
6632 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
6633 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
6634 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
6635 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
6636 * target.c (update_current_target): Change default implementation of
6637 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
6638 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
6639 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
6640 to_set_syscall_catchpoint to return_one.
6641 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
6642 (debug_to_insert_exec_catchpoint): Report return value.
6643 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
6644 (to_insert_exec_catchpoint): Change declaration to return int instead
6649 * arm-tdep.c: Internationalization.
6652 * fork-child.c: Ditto.
6653 * nto-procfs.c: Ditto.
6654 * ppc-sysv-tdep.c: Ditto.
6656 * remote-mips.c: Ditto.
6658 * rs6000-nat.c: Ditto.
6659 * rs6000-tdep.c: Ditto.
6663 * xml-support.c: Ditto.
6664 * mi/mi-cmd-break.c: Ditto.
6665 * mi/mi-cmd-var.c: Ditto.
6666 * mi/mi-interp.c: Ditto.
6667 * mi/mi-main.c: Ditto.
6671 * remote-sim.c (gdbsim_store_register): Update API to
6672 sim_store_register to check more error conditions.
6676 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
6677 * nto-tdep.c: Ditto.
6678 * nto-tdep.h: Ditto.
6679 * objc-exp.y: Ditto.
6680 * objc-lang.c: Ditto.
6681 * objfiles.c: Ditto.
6682 * objfiles.h: Ditto.
6683 * observer.c: Ditto.
6684 * opencl-lang.c: Ditto.
6687 * parser-defs.h: Ditto.
6690 * posix-hdep.c: Ditto.
6691 * ppcbug-rom.c: Ditto.
6692 * ppc-linux-nat.c: Ditto.
6693 * ppc-linux-tdep.c: Ditto.
6694 * ppc-linux-tdep.h: Ditto.
6695 * ppcnbsd-tdep.c: Ditto.
6696 * ppcobsd-tdep.c: Ditto.
6697 * ppcobsd-tdep.h: Ditto.
6698 * ppc-sysv-tdep.c: Ditto.
6699 * ppc-tdep.h: Ditto.
6700 * printcmd.c: Ditto.
6701 * proc-abi.c: Ditto.
6702 * proc-flags.c: Ditto.
6704 * proc-utils.h: Ditto.
6705 * progspace.h: Ditto.
6706 * prologue-value.c: Ditto.
6707 * prologue-value.h: Ditto.
6708 * psympriv.h: Ditto.
6710 * p-typeprint.c: Ditto.
6711 * p-valprint.c: Ditto.
6712 * ravenscar-sparc-thread.c: Ditto.
6713 * ravenscar-thread.c: Ditto.
6714 * ravenscar-thread.h: Ditto.
6716 * regcache.c: Ditto.
6717 * regcache.h: Ditto.
6719 * remote-fileio.c: Ditto.
6720 * remote-fileio.h: Ditto.
6722 * remote-m32r-sdi.c: Ditto.
6723 * remote-mips.c: Ditto.
6724 * remote-sim.c: Ditto.
6725 * rs6000-aix-tdep.c: Ditto.
6726 * rs6000-nat.c: Ditto.
6727 * rs6000-tdep.c: Ditto.
6731 * charset.c (validate): Internationalization.
6732 * coffread.c (read_one_sym): Ditto.
6733 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
6734 * h8300-tdep.c (H8300_extract_return_value): Ditto.
6735 * inflow.c (new_tty): Ditto.
6736 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
6737 * m32c-tdep.c (m32c_return_value): Ditto.
6738 * mep-tdep.c (mep_store_return_value): Ditto.
6739 * score-tdep.c (score7_fetch_insn): Ditto.
6740 * ser-mingw.c (pipe_windows_open): Ditto.
6741 * sh64-tdep.c (sh64_extract_return_value): Ditto.
6742 * spu-tdep.c (spu_register_type): Ditto.
6743 * tracepoint.c (trace_find_command): Ditto.
6744 * valarith.c (value_pos): Ditto.
6748 * ada-valprint.c (printstr): Minor comment reformatting.
6752 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
6757 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
6758 * hppa-hpux-tdep.c: Ditto.
6759 * hppa-linux-nat.c: Ditto.
6760 * hppa-linux-tdep.c: Ditto.
6761 * hppanbsd-tdep.c: Ditto.
6762 * hppa-tdep.c: Ditto.
6763 * hppa-tdep.h: Ditto.
6764 * hpux-thread.c: Ditto.
6765 * i386-cygwin-tdep.c: Ditto.
6766 * i386-darwin-nat.c: Ditto.
6767 * i386gnu-nat.c: Ditto.
6768 * i386-linux-nat.c: Ditto.
6769 * i386-linux-tdep.c: Ditto.
6770 * i386-nat.c: Ditto.
6771 * i386-nat.h: Ditto.
6772 * i386nbsd-tdep.c: Ditto.
6773 * i386-sol2-nat.c: Ditto.
6774 * i386-stub.c: Ditto.
6775 * i386-tdep.c: Ditto.
6776 * i386-tdep.h: Ditto.
6777 * i387-tdep.c: Ditto.
6778 * ia64-linux-nat.c: Ditto.
6779 * ia64-linux-tdep.c: Ditto.
6780 * ia64-tdep.c: Ditto.
6784 * inferior.c: Ditto.
6785 * inferior.h: Ditto.
6791 * iq2000-tdep.c: Ditto.
6792 * irix5-nat.c: Ditto.
6798 * jv-typeprint.c: Ditto.
6799 * jv-valprint.c: Ditto.
6800 * language.c: Ditto.
6801 * language.h: Ditto.
6802 * linespec.c: Ditto.
6803 * linux-fork.c: Ditto.
6804 * linux-nat.c: Ditto.
6805 * linux-thread-db.c: Ditto.
6806 * lm32-tdep.c: Ditto.
6810 * m2-exp.y: Comment cleanup, mostly periods and spaces.
6812 * m2-typeprint.c: Ditto.
6813 * m2-valprint.c: Ditto.
6814 * m32c-tdep.c: Ditto.
6815 * m32r-linux-nat.c: Ditto.
6816 * m32r-rom.c: Ditto.
6817 * m32r-tdep.c: Ditto.
6818 * m32r-tdep.h: Ditto.
6819 * m68hc11-tdep.c: Ditto.
6820 * m58klinux-nat.c: Ditto.
6821 * m68k-tdep.c: Ditto.
6822 * m88k-tdep.c: Ditto.
6823 * m88k-tdep.h: Ditto.
6824 * machoread.c: Ditto.
6825 * macrocmd.c: Ditto.
6826 * macroexp.c: Ditto.
6827 * macrotab.c: Ditto.
6830 * mdebugread.c: Ditto.
6831 * mdebugread.h: Ditto.
6834 * memory-map.h: Ditto.
6835 * mep-tdep.c: Ditto.
6836 * microblaze-rom.c: Ditto.
6837 * microblaze-tdep.c: Ditto.
6839 * mips-irix-tdep.c: Ditto.
6840 * mips-linux-nat.c: Ditto.
6841 * mips-linux-tdep.c: Ditto.
6842 * mips-linux-tdep.h: Ditto.
6843 * mipsnbsd-nat.c: Ditto.
6844 * mipsnbsd-tdep.c: Ditto.
6845 * mipsread.c: Ditto.
6846 * mips-tdep.c: Ditto.
6847 * mips-tdep.h: Ditto.
6848 * mn10300-linux-tdep.c: Ditto.
6849 * mn10300-tdep.c: Ditto.
6850 * mn10300-tdep.h: Ditto.
6853 * moxie-tdep.c: Ditto.
6854 * moxie-tdep.h: Ditto.
6859 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
6863 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
6867 * charset.c (_initialize_charset): Fix typo in string.
6871 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
6873 * tui/tui-layout.c (tui_set_layout_for_display_command):
6874 Split line so that operator goes to beginning of line.
6875 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
6876 assignment out of if statement.
6880 * ada-lang.c: Comment cleanup, mostly periods and spaces.
6881 * ada-lang.h: Ditto.
6882 * ada-tasks.c: Ditto.
6883 * ada-valprint.c: Ditto.
6884 * aix-threads.c: Ditto.
6885 * alpha-linux-nat.c: Ditto.
6886 * alpha-linux-tdep.c: Ditto.
6887 * alpha-mdebug-tdep.c: Ditto.
6888 * alpha-nat.c: Ditto.
6889 * alpha-osf1-tdep.c: Ditto.
6890 * alpha-tdep.c: Ditto.
6891 * alphabsd-nat.c: Ditto.
6892 * alphabsd-tdep.c: Ditto.
6893 * amd64-darwin-tdep.c: Ditto.
6894 * amd64-linux-nat.c: Ditto.
6895 * amd64-linux-tdep.c: Ditto.
6896 * amd64-sol2-tdep.c: Ditto.
6897 * amd64-tdep.c: Ditto.
6898 * amd64-fbsd-tdep.c: Ditto.
6899 * amd64-nbsd-tdep.c: Ditto.
6900 * amd64-obsd-tdep.c: Ditto.
6901 * amd64-linux-nat.c: Ditto.
6902 * amd64-linux-tdep.c: Ditto.
6903 * arm-tdep.c: Ditto.
6904 * arm-tdep.h: Ditto.
6905 * armnbsd-nat.c: Ditto.
6906 * avr-tdep.c: Ditto.
6907 * bfin-tdep.c: Ditto.
6909 * c-typeprintc: Ditto.
6910 * c-valprint.c: Ditto.
6911 * coff-pe-read.h: Ditto.
6912 * coffreead.c: Ditto.
6913 * cris-tdep.c: Ditto.
6915 * darwin-nat-info.c: Ditto.
6916 * darwin-nat.c: Ditto.
6917 * dbug-rom.c: Ditto.
6921 * dec-thread.c: Ditto.
6923 * demangle.c: Ditto.
6924 * dicos-tdep.c: Ditto.
6925 * dictionary.c: Ditto.
6926 * dictionary.h: Ditto.
6927 * dink32-rom.c: Ditto.
6929 * doublest.c: Ditto.
6931 * dummy-frame.c: Ditto.
6932 * dwarf2-frame.c: Ditto.
6933 * dwarf2expr.c: Ditto.
6934 * dwarf2loc.c: Ditto.
6935 * dwarf2read.c: Ditto.
6939 * event-top.h: Ditto.
6940 * exceptions.c: Ditto.
6941 * exceptions.h: Ditto.
6943 * expprint.c: Ditto.
6944 * expression.h: Ditto.
6948 * f-typeprint.c: Ditto.
6949 * f-valprint.c: Ditto.
6950 * fbsd-nat.c: Ditto.
6952 * fork-child.c: Ditto.
6955 * frv-linux-tdep.c: Ditto.
6956 * frv-tdep.c: Ditto.
6958 * gdb-stabs.h: Ditto.
6959 * gdb_assert.h: Ditto.
6960 * gdb_string.h: Ditto.
6961 * gdb_thread_db.h: Ditto.
6962 * gdb_wait.h: Ditto.
6963 * gdbarch.sh: Ditto.
6965 * gdbthread.h: Ditto.
6966 * gdbtypes.c: Ditto.
6967 * gdbtypes.h: Ditto.
6970 * gnu-v2-abi.c: Ditto.
6971 * gnu-v3-abi.c: Ditto.
6972 * go32-nat.c: Ditto.
6973 * gdbarch.c: Regenerate.
6974 * gdbarch.h: Regenerate.
6978 * ax-gdb.c: Adjust some long output strings.
6979 * breakpoint.c: Ditto.
6984 * linux-nat.c: Ditto.
6985 * solib-pa64.c: Ditto.
6986 * solib-som.c: Ditto.
6992 * python/python.c (GdbMethods): Add "newest_frame" method.
6993 * python/python-internal.h (gdbpy_newest_frame): Declare.
6994 * python/py-frame.c (gdbpy_newest_frame): New function.
6998 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6999 * jit.c (jit_debug): New variable.
7000 (show_jit_debug): New function.
7001 (struct target_buffer): Use ULONGEST.
7002 (bfd_open_from_target_memory): Likewise.
7003 (jit_register_code, jit_inferior_init): Add debug output.
7004 (_initialize_jit): Register "debug jit" command.
7008 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
7009 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
7014 * python/py-frame.c (frapy_block): Use get_frame_block.
7018 Do not stop on SIGPRIO signals by default
7019 * infrun.c (_initialize_infrun): Unset signal_stop and
7020 signal_print for TARGET_SIGNAL_PRIO.
7024 * ada-tasks.c: Fix style violation in comment.
7028 * linespec.c (decode_compound, find_method): Remove trailing \n
7029 at end of error string.
7030 * solib-irix.c (irix_current_sos): Likewise.
7031 * varobj.c (uninstall_variable): Likewise.
7035 * copyright.py: New script.
7036 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
7037 Launch emacs without exec'ing. Call copyright.py afterwards.
7041 * addrmap.c: Shorten lines of >= 80 columns.
7042 * arch-utils.c: Ditto.
7043 * arch-utils.h: Ditto.
7045 * ax-general.c: Ditto.
7047 * blockframe.c: Ditto.
7048 * breakpoint.c: Ditto.
7049 * buildsym.c: Ditto.
7051 * c-typeprint.c: Ditto.
7053 * coffread.c: Ditto.
7057 * cp-namespace.c: Ditto.
7058 * cp-support.c: Ditto.
7059 * dbug-rom.c: Ditto.
7064 * dictionary.c: Ditto.
7066 * doublest.c: Ditto.
7067 * dwarf2-frame.c: Ditto.
7068 * dwarf2expr.c: Ditto.
7069 * dwarf2loc.c: Ditto.
7070 * dwarf2read.c: Ditto.
7073 * event-loop.c: Ditto.
7074 * event-loop.h: Ditto.
7075 * exceptions.h: Ditto.
7077 * expprint.c: Ditto.
7078 * expression.h: Ditto.
7080 * f-valprint.c: Ditto.
7082 * frame-base.c: Ditto.
7083 * frame-unwind.c: Ditto.
7084 * frame-unwind.h: Ditto.
7088 * gdb-stabs.h: Ditto.
7089 * gdb_assert.h: Ditto.
7090 * gdb_dirent.h: Ditto.
7091 * gdb_obstack.h: Ditto.
7093 * gdbtypes.c: Ditto.
7094 * gdbtypes.h: Ditto.
7095 * inf-ttrace.c: Ditto.
7100 * inline-frame.h: Ditto.
7101 * language.c: Ditto.
7102 * language.h: Ditto.
7103 * libunwind-frame.c: Ditto.
7104 * libunwind-frame.h: Ditto.
7105 * linespec.c: Ditto.
7106 * linux-nat.c: Ditto.
7107 * linux-nat.h: Ditto.
7108 * linux-thread-db.c: Ditto.
7109 * machoread.c: Ditto.
7110 * macroexp.c: Ditto.
7111 * macrotab.c: Ditto.
7114 * mdebugread.c: Ditto.
7119 * objfiles.c: Ditto.
7120 * objfiles.h: Ditto.
7122 * p-typeprint.c: Ditto.
7123 * p-valprint.c: Ditto.
7125 * printcmd.c: Ditto.
7126 * proc-events.c: Ditto.
7128 * progspace.c: Ditto.
7129 * progspace.h: Ditto.
7130 * psympriv.h: Ditto.
7133 * regcache.c: Ditto.
7134 * regcache.h: Ditto.
7135 * remote-fileio.c: Ditto.
7137 * ser-mingw.c: Ditto.
7139 * ser-unix.c: Ditto.
7142 * solib-frv.c: Ditto.
7143 * solib-irix.c: Ditto.
7144 * solib-osf.c: Ditto.
7145 * solib-pa64.c: Ditto.
7146 * solib-som.c: Ditto.
7147 * solib-sunos.c: Ditto.
7148 * solib-svr4.c: Ditto.
7149 * solib-target.c: Ditto.
7153 * stabsread.c: Ditto.
7154 * stabsread.c: Ditto.
7157 * symfile-mem.c: Ditto.
7163 * target-descriptions.c: Ditto.
7164 * target-memory.c: Ditto.
7167 * terminal.h: Ditto.
7170 * tracepoint.c: Ditto.
7171 * tracepoint.h: Ditto.
7175 * user-regs.c: Ditto.
7176 * user-regs.h: Ditto.
7178 * valarith.c: Ditto.
7180 * valprint.c: Ditto.
7181 * valprint.h: Ditto.
7186 * xcoffread.c: Ditto.
7187 * xcoffsolib.c: Ditto.
7188 * xcoffsolib.h: Ditto.
7189 * xml-syscall.c: Ditto.
7190 * xml-tdesc.c: Ditto.
7194 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
7195 * cli/cli-decode.c: Ditto.
7196 * cli/cli-dump.c: Ditto.
7197 * cli/cli-logging.c: Ditto.
7198 * cli/cli-script.c: Ditto.
7199 * cli/cli-setshow.c: Ditto.
7200 * common/signals.c: Ditto.
7201 * mi/mi-cmd-break.c: Ditto.
7202 * mi/mi-cmd-disas.c: Ditto.
7203 * mi/mi-cmd-stack.c: Ditto.
7204 * mi/mi-cmd-var.c: Ditto.
7205 * mi/mi-cmds.c: Ditto.
7206 * mi/mi-common.h: Ditto.
7207 * mi/mi-console.c: Ditto.
7208 * mi/mi-interp.c: Ditto.
7209 * mi/mi-main.c: Ditto.
7210 * osf-share/cma_attr.c: Ditto.
7211 * osf-share/cma_deb_core.h: Ditto.
7212 * osf-share/cma_debug_client.h: Ditto.
7213 * osf-share/cma_handle.h: Ditto.
7214 * osf-share/cma_mutex.h: Ditto.
7215 * osf-share/cma_stack_int.h: Ditto.
7216 * osf-share/cma_tcb_defs.h: Ditto.
7217 * python/py-auto-load.c: Ditto.
7218 * python/py-breakpoint.c: Ditto.
7219 * python/py-cmd.c: Ditto.
7220 * python/py-frame.c: Ditto.
7221 * python/py-objfile.c: Ditto.
7222 * python/py-param.c: Ditto.
7223 * python/py-progspace.c: Ditto.
7224 * python/py-symbol.c: Ditto.
7225 * python/py-value.c: Ditto.
7226 * python/python-internal.h: Ditto.
7227 * python/python.c: Ditto.
7228 * tui/tui-data.c: Ditto.
7229 * tui/tui-disasm.c: Ditto.
7230 * tui/tui-hooks.c: Ditto.
7231 * tui/tui-io.c: Ditto.
7232 * tui/tui-layout.c: Ditto.
7233 * tui/tui-regs.c: Ditto.
7234 * tui/tui-source.c: Ditto.
7235 * tui/tui-stack.c: Ditto.
7236 * tui/tui-win.c: Ditto.
7237 * tui/tui-windata.c: Ditto.
7238 * tui/tui-winsource.c: Ditto.
7242 * configure.ac, gdb.1: Copyright year update.
7246 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
7247 this_pc_in_block, morestack_msym and morestack_name. Check for
7248 "__morestack" minimal symbol there.
7252 * symfile.c (find_sym_fns): Add call to dont_repeat.
7256 Copyright year update in most files (performed by copyright.sh).
7260 * top.c (print_gdb_version): Update copyright year in version output.
7262 For older changes see ChangeLog-2010.
7268 version-control: never