3 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
6 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9 (linux_nat_get_siginfo): Likewise.
10 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
11 (linux_nat_get_siginfo): Likewise.
12 * linux-tdep.c (linux_get_siginfo_type): Likewise.
13 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
14 * procfs.c (gdb_siginfo_t): Likewise.
18 * .gitignore: Ignore more files.
22 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
27 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
32 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
33 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
34 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
36 * dwarf2expr.h (cu_offset, sect_offset): New types.
37 (struct dwarf_expr_context_funcs) <dwarf_call>
38 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
40 (struct dwarf_expr_context) <len>: Improve the comment.
41 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
42 cu_offset and sect_offset.
43 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
44 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
45 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
46 * dwarf2loc.h: Include dwarf2expr.h.
47 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
49 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
51 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
52 (struct signatured_type, struct line_header, struct partial_die_info)
53 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
54 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
55 (get_die_type_at_offset, create_cus_from_index)
56 (create_signatured_type_table_from_index, dw2_get_file_names)
57 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
58 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
59 (create_debug_types_hash_table, process_psymtab_comp_unit)
60 (load_partial_comp_unit, create_all_comp_units)
61 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
62 (load_full_comp_unit, dwarf2_physname, read_import_statement)
63 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
64 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
65 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
66 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
67 (find_partial_die, read_attribute_value, lookup_die_type)
68 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
69 (is_ref_attr): New function comment.
70 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
71 Use cu_offset and sect_offset.
72 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
73 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
74 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
75 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
76 (offset_and_type_hash, offset_and_type_eq, set_die_type)
77 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
78 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
84 * python/py-auto-load.c (source_section_scripts): New variable back_to.
85 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
87 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
91 * NEWS: Describe new options --init-command=FILE, -ix and
92 --init-eval-command=COMMAND, -iex.
93 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
95 (captured_main): New enum items OPT_IX and OPT_IEX. Add
96 "init-command", "init-eval-command", "ix" and "iex" to the variable
97 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
98 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
99 (print_gdb_help): Describe --init-command=FILE, -ix and
100 --init-eval-command=COMMAND, -iex.
105 * main.c (struct cmdarg): Move it here from main. Add more comments.
106 (cmdarg_s, VEC (cmdarg_s)): New.
107 (main): Move struct cmdarg from here. New variables cmdarg_vec and
108 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
109 Install cleanup for cmdarg_vec. Update filling for options 'x' and
110 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
115 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
120 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
125 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
130 * source.c (add_path): Use memmove instead of strcpy because the
135 * value.h (set_value_parent): Add declaration.
136 * value.c (set_value_parent): New function.
137 (value_address): If VALUE->PARENT is not NULL, then use it as
138 the base address instead of VALUE->LOCATION.address.
139 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
140 the same as OBJ's address. Adjust V's offset accordingly.
146 * dwarf2read.c (use_deprecated_index_sections): New global.
147 (struct partial_die_info): New member may_be_inlined.
148 (read_partial_die): Set may_be_inlined where appropriate.
149 (add_partial_subprogram): Add partial symbols for partial
150 DIEs that may be inlined.
151 (new_symbol_full): Add inlined subroutines to the current
153 (write_psymtabs_to_index): Bump version number.
154 (dwarf2_read_index): Read only version 6 indices unless
155 use_deprecated_index_sections is set.
156 * linespec.c (symbol_and_data_callback): New structure.
157 (iterate_inline_only): New function.
158 (iterate_over_all_matching_symtabs): New argument
159 "include_inline". If nonzero, also call the callback for
160 symbols representing inlined subroutines.
161 (lookup_prefix_sym): Pass extra argument to the above.
162 (find_function_symbols): Likewise.
163 (add_matching_symbols_to_info): Likewise.
164 * NEWS: Mention that GDB can now set breakpoints on inlined
169 * p-typeprint.c (pascal_type_print_method_args):
170 Fix display of parameter of methods.
174 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
175 Add missing prototype.
180 Fix false compilation warning.
181 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
186 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
187 (arm_register_g_packet_guesses): New function.
188 (arm_gdbarch_init): Don't force a target description with
189 registers when the executable is detected as M-profile. Instead
190 set gdbarch->tdep->is_m. Register `g' packet guesses.
191 (_initialize_arm_tdep): Initialize the new target description.
192 * features/arm-with-m-fpa-layout.xml: New description.
193 * features/arm-with-m-fpa-layout.c: New, generated.
197 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
198 Update function description.
199 (insert_bp_location): Do not wipe bl->target_info out.
200 * mem-break.c: #include "gdb_string.h".
201 (default_memory_insert_breakpoint): Do not call target_read_memory
202 with a pointer to the breakpoint's shadow_contents buffer. Use
203 a local buffer instead.
204 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
208 * NEWS: Mention "info vtbl", not "info vtable".
209 * cp-support.c (info_vtbl_command): Fix comment.
210 (_initialize_cp_support): Fix text.
214 * cp-valprint.c (cp_print_value_fields): Use
215 print_function_pointer_address for vtable slot.
219 * gnu-v3-abi.c (struct value_and_voffset): New.
220 (hash_value_and_voffset, eq_value_and_voffset)
221 (compare_value_and_voffset, compute_vtable_size)
222 (print_one_vtable, gnuv3_print_vtable): New functions.
223 (init_gnuv3_ops): Initialize 'print_vtable' field.
224 * cp-support.c (info_vtbl_command): New function.
225 (_initialize_cp_support): Add "info vtbl".
226 * cp-abi.h (cplus_print_vtable): Declare.
227 (struct cp_abi_ops) <print_vtable>: New field.
228 * cp-abi.c (cplus_print_vtable): New function.
233 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
234 iterate_over_symbols.
238 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
239 DW_OP_GNU_parameter_ref.
243 Fix double prompt of 'interpreter-exec mi'.
244 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
245 (mi_interpreter_resume): use it.
246 (mi_execute_command_input_handler): New function.
247 * mi/mi-main.c (mi_execute_command): Move prompt printing to
248 mi_execute_command_input_handler.
252 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
254 (darwin_debug_port_info): Make static.
255 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
256 * machoread.c (_initialize_machoread): Add prototype.
257 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
258 (i386_darwin_set_control, i386_darwin_get_control)
259 i386_darwin_dr_set_addr, i386_darwin_get_addr)
260 i386_darwin_get_status, i386_darwin_get_control):
261 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
265 * ax-gdb.c (gen_usual_unary): Remove special handling of
270 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
274 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
278 * aix-thread.c (fill_sprs): Store the floating point registers
279 at the correct offsets into vals.
283 * NEWS: Mention symbol-reloading has been deleted.
284 * symfile.c (symbol_reloading): Delete.
285 (show_symbol_reloading): Delete.
286 (_initialize_symfile): Delete set/show symbol-reloading.
288 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
289 read_in_chain until we have successfully read it in.
290 (load_full_comp_unit): Ditto.
291 (read_signatured_type): Add comment.
295 * stabsread.c (fix_common_block): Change type of valu argument
300 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
305 * common/linux-procfs.c (linux_proc_get_int): New, from
306 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
308 (linux_proc_get_tgid): Only call linux_proc_get_int.
309 (linux_proc_get_tracerpid): New.
310 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
311 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
312 linux_proc_pid_has_state.
313 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
314 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
315 (linux_ptrace_attach_warnings): New.
316 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
318 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
319 (linux_nat_attach): New variables ex, buffer, message and message_s.
320 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
324 * Makefile.in (linux-ptrace.o): New.
325 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
327 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
328 * common/linux-ptrace.c: New file.
329 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
330 * config/arm/linux.mh: Likewise.
331 * config/i386/linux.mh: Likewise.
332 * config/i386/linux64.mh: Likewise.
333 * config/ia64/linux.mh: Likewise.
334 * config/m32r/linux.mh: Likewise.
335 * config/m68k/linux.mh: Likewise.
336 * config/mips/linux.mh: Likewise.
337 * config/pa/linux.mh: Likewise.
338 * config/powerpc/linux.mh: Likewise.
339 * config/powerpc/ppc64-linux.mh: Likewise.
340 * config/powerpc/spu-linux.mh: Likewise.
341 * config/s390/s390.mh: Likewise.
342 * config/sparc/linux.mh: Likewise.
343 * config/sparc/linux64.mh: Likewise.
344 * config/xtensa/linux.mh: Likewise.
345 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
346 common/linux-procfs.c.
347 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
352 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
353 CREATE_BREAKPOINT_FLAGS_INSERTED.
354 (create_breakpoint_sal, create_breakpoints_sal)
355 (base_breakpoint_create_breakpoints_sal)
356 (tracepoint_create_breakpoints_sal)
357 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
359 (break_command_1, handle_gnu_v3_exceptions, trace_command)
360 (ftrace_command, strace_command): Adjust.
361 (create_tracepoint_from_upload): Pass
362 CREATE_BREAKPOINT_FLAGS_INSERTED.
363 * breakpoint.h (enum breakpoint_create_flags): New.
364 (create_breakpoint): New flags parameter.
365 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
366 * python/py-breakpoint.c (bppy_init): Adjust.
367 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
368 * spu-tdep.c (spu_catch_start): Adjust.
374 * remote.c (struct remote_state): New field `starting_up'.
375 (remote_start_remote): Set and clear it.
376 (remote_can_download_tracepoint): If starting up, return false.
380 * inferior.h (struct inferior): Remove fields any_syscall_count,
381 syscalls_counts and total_syscalls_count. Move them to new
382 struct catch_syscall_inferior_data in breakpoint.c.
383 * breakpoint.c: Call DEF_VEC_I(int).
384 (struct catch_syscall_inferior_data): New.
385 (get_catch_syscall_inferior_data): New.
386 (catch_syscall_inferior_data_cleanup): New.
387 (insert_catch_syscall): Update to access data in
388 struct catch_syscall_inferior_data.
389 (insert_catch_syscall): Likewise.
390 (remove_catch_syscall): Likewise.
391 (remove_catch_syscall): Likewise.
392 (is_syscall_catchpoint_enabled): Likewise.
393 (add_catch_command): Likewise.
394 (_initialize_breakpoint): Register cleanup.
395 * breakpoint.h: Removed DEF_VEC_I(int).
396 * dwarf2loc.c: Call DEF_VEC_I(int).
397 * mi/mi-main.c: Likewise.
401 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
405 * aix-thread.c (_initialize_aix_thread): Add prototype.
406 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
407 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
411 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
412 include of "amd64-nat.h".
416 * buildsym.c (record_pending_block): Now static.
417 * buildsym.h: (record_pending_block): Remove.
421 * amd64bsd-nat.c: Include amd64bsd-nat.h.
425 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
426 producer_is_gxx_lt_4_6>: New fields.
427 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
431 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
435 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
440 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
444 Fix -Wmissing-prototypes build.
445 * arm-linux-nat.c (get_thread_id): Make it static.
446 * xtensa-linux-nat.c (get_thread_id): Likewise.
450 * server.c (process_point_options): If a conditional expression
451 is found, only print a message if remote_debug is nonzero.
455 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
456 of internal error for unknown/unsupported types.
460 Fix CU relative vs. absolute DIE offsets.
461 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
462 offset to offset_in_cu.
463 * dwarf2read.c (process_enumeration_scope): Add CU offset to
465 (dwarf2_fetch_die_location_block): Rename parameter offset to
466 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
470 * libunwind-frame.c: Rename to ...
471 * ia64-libunwind-tdep.c: ... here.
472 * libunwind-frame.h: Rename to ...
473 * ia64-libunwind-tdep.h: ... here.
474 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
475 ia64-libunwind-tdep.h.
476 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
477 * README (--with-libunwind): Rename to ...
478 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
479 * config.in: Regenerate.
480 * configure: Regenerate.
481 * configure.ac: New option --with-libunwind-ia64, make the
482 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
483 Remove AC_DEFINE for HAVE_LIBUNWIND.
484 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
485 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
486 Rename libunwind-frame in the general comment.
487 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
488 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
489 Move forward declarations inside #ifndef. Rename libunwind-frame in
491 * ia64-tdep.c: Rename libunwind-frame.h #include to
492 ia64-libunwind-tdep.h.
493 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
494 (ia64_libunwind_descr): Rename libunwind-frame to
495 ia64-libunwind-tdep in these function comments.
496 * ia64-tdep.h: Rename libunwind-frame.h #include to
497 ia64-libunwind-tdep.h.
498 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
499 ia64-libunwind-tdep in that data comment.
503 * libunwind-frame.h (struct frame_unwind): New declaration.
507 * breakpoint.c (_initialize_breakpoint): Fix error in help of
508 "set breakpoint condition-evaluation" command.
512 * sparc-stub.c: Move to stubs/
513 * sh-stub.c: Likewise.
514 * m68k-stub.c: Likewise.
515 * m32r-stub.c: Likewise.
516 * i386-stub.c: Likewise.
520 * m68klinux-tdep.c (m68k_linux_init_abi): Register
521 linux_get_siginfo_type.
523 * m68klinux-nat.c: Include "gdb_proc_service.h".
524 (PTRACE_GET_THREAD_AREA): Define.
525 (ps_get_thread_area): New function.
529 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
531 (remote_query_attached): Likewise.
532 (remote_static_tracepoint_marker_at): Likewise.
533 (remote_set_permissions): Likewise.
534 (remote_detach_1, extended_remote_attach_1): Likewise.
535 (send_g_packet, remote_vkill): Likewise.
536 (extended_remote_disable_randomization): Likewise.
537 (remote_add_target_side_condition): Likewise.
538 (remote_insert_breakpoint): Likewise.
539 (remote_remove_breakpoint): Likewise.
540 (remote_insert_watchpoint): Likewise.
541 (remote_remove_watchpoint): Likewise.
542 (remote_insert_hw_breakpoint): Likewise.
543 (remote_insert_hw_breakpoint): Likewise.
544 (remote_remove_hw_breakpoint): Likewise.
545 (remote_download_command_source): Likewise.
546 (remote_download_tracepoint): Likewise.
547 (remote_download_trace_state_variable): Likewise.
548 (remote_disable_tracepoint): Likewise.
549 (remote_trace_set_readonly_regions): Likewise.
550 (remote_get_tracepoint_status): Likewise.
551 (remote_trace_find): Likewise.
552 (remote_get_trace_state_variable_value): Likewise.
553 (remote_set_disconnected_tracing): Likewise.
554 (remote_set_circular_trace_buffer): Likewise.
555 (remote_get_min_fast_tracepoint_insn_len): Likewise.
556 (remote_use_agent): Likewise.
557 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
562 * NEWS: Mention QProgramSignals.
563 * inferior.h (update_signals_program_target): Declare.
564 * infrun.c: (update_signals_program_target): New.
565 (handle_command): Update the target of the new program signals
567 * remote.c (PACKET_QProgramSignals): New enum.
568 (last_program_signals_packet): New global.
569 (remote_program_signals): New.
570 (remote_start_remote): Update the target with the program signals
572 (remote_protocol_features): Add entry for QPassSignals.
573 (remote_open_1): Free anc clear last_program_signals_packet.
574 (init_remote_ops): Install remote_program_signals.
575 * target.c (update_current_target): Adjust.
576 (target_program_signals): New.
577 * target.h (struct target_ops) <to_program_signals>: New field.
578 (target_program_signals): Declare.
582 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
587 * m68klinux-nat.c (getregs_supplies): Make static.
588 (getfpregs_supplies): Likewise.
589 (have_ptrace_getregs): Likewise.
593 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
594 in call to get_die_type_at_offset.
598 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
599 * mi/mi-cmd-disas.c: Ditto.
600 * mi/mi-cmd-env.c: Ditto.
601 * mi/mi-cmd-file.c: Ditto.
602 * mi/mi-cmd-stack.c: Ditto.
603 * mi/mi-cmd-target.c: Ditto.
604 * mi/mi-cmd-var.c: Ditto.
605 * mi/mi-cmds.c: Ditto.
606 * mi/mi-cmds.h: Ditto.
607 * mi/mi-console.c: Ditto.
608 * mi/mi-getopt.c: Ditto.
609 * mi/mi-getopt.h: Ditto.
610 * mi/mi-interp.c: Ditto.
611 * mi/mi-main.c: Ditto.
612 * mi/mi-out.c: Ditto.
613 * mi/mi-parse.c: Ditto.
614 * mi/mi-parse.h: Ditto.
615 * mi/mi-symbol-cmds.c: Ditto.
617 * mi/mi-getopt.h: Move mi_opt struct up.
618 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
620 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
624 * proc-service.c (ps_pglobal_lookup): Set the current program
629 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
633 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
638 * common/linux-osdata.c (linux_common_core_of_thread): New function
640 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
641 call by linux_common_core_of_thread.
642 (linux_nat_core_of_thread_1): Remove.
643 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
644 * linux-thread-db.c: Include linux-osdata.h.
645 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
646 linux_common_core_of_thread.
650 * value.c (value_primitive_field): Don't fetch contents for
655 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
659 * s390-nat.c: Include "gregset.h".
663 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
664 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
665 (libunwind_load): New variable so_error, use it for dlerror. Try to
666 load also LIBUNWIND_SO_7.
670 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
671 is not NULL, and remove resulting dead code.
675 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
676 prologue to sh_analyze_prologue.
677 (sh_analyze_prologue): Make better use of such an upper limit, and
678 generally be more cautious about accessing memory.
682 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
683 _initialize_ia64_hpux_tdep.
689 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
690 the register state is clear, supply explicit zero, instead of
691 marking the register unavailable.
695 * NEWS: Mention OpenVMS ia64 new target.
699 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
700 (ia64_unw_accessors, ia64_unw_rse_accessors)
701 (ia64_libunwind_descr): Declare.
702 * ia64-vms-tdep.c: New file.
703 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
704 (ia64_libunwind_descr): Make them public.
705 * configure.tgt: Add ia64-*-*vms*.
706 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
707 (ALLDEPFILES): Add ia64-vms-tdep.c
711 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
712 * remote.c (PACKET_qXfer_uib): New enum value.
713 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
714 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
715 (_initialize_remote): Call add_packet_config_cmd for
720 * osabi.c (gdb_osabi_names): Add OpenVMS.
721 (generic_elf_osabi_sniffer): Likewise.
722 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
727 * libunwind-frame.c (libunwind_frame_unwind)
728 (libunwind_frame_base_address): Remove.
729 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
733 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
734 remove trailing new line.
735 (agent_run_command, agent_run_command): Add _ markup.
736 (agent_capability_check): Likewise.
740 * breakpoint.c (set_condition_evaluation_mode): Set
741 CONDITION_EVALUATION_MODE unconditionally.
745 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
746 * common/agent.h: Update declaration.
747 * inf-child.c (inf_child_use_agent): New.
748 (inf_child_can_use_agent): New.
749 (inf_child_target): Initialize fields `to_use_agent'
750 and `to_can_use_agent'.
751 * agent.c (agent_new_objfile): New.
752 (_initialize_agent): Add agent_new_objfile to new_objfile
755 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
757 (linux_target_install_ops): Initialize field
758 `to_static_tracepoint_markers_by_strid'.
759 * remote.c (free_current_marker): Move it to ...
760 * tracepoint.c (free_current_marker): ... here. New.
761 (cleanup_target_stop): New.
762 * tracepoint.h: Declare free_current_marker.
763 * NEWS: Add one entry about `info static-tracepoint-marker'.
767 * common/agent.c (agent_loaded_p): New.
768 (agent_look_up_symbols): New global.
769 * common/agent.h: Declare agent_loaded_p.
773 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
774 (agent_capability_check, agent_capability_invalidate): New.
775 (symbol_list): New array element.
776 * common/agent.h (enum agent_capa): New.
777 * target.c (target_pre_inferior): Call agent_capability_invalidate.
781 * target.h (struct target_ops) <to_use_agent>: New field.
782 (struct target_ops) <to_can_use_agent>: New field.
783 (target_use_agent, target_can_use_agent): New macro.
784 * target.c (update_current_target): Update.
785 * remote.c: New enum `PACKET_QAgent'.
786 (remote_protocol_features): Add a new element.
787 (remote_use_agent, remote_can_use_agent): New.
788 (init_remote_ops): Initialize field `can_use_agent' with
789 remote_can_use_agent. Intiailize field `use_agent' with
791 * common/agent.c (use_agent): New global.
792 * common/agent.h: Declare it.
793 * tracepoint.c (info_static_tracepoint_markers_command): Add
795 * Makefile.in (SFILES): Add common/agent.c and agent.c.
796 (COMMON_OBS): Add common/agent.o and agent.o
797 (common-agent.o): New rule.
802 * common/agent.c: New.
803 * common/agent.h: New.
804 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
806 * configure, configh.in: Regenerated.
810 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
811 unless it exists for this architecture.
815 * language.h (struct language_defn): New "method" la_read_var_value.
816 * findvar.c: #include "language.h".
817 (default_read_var_value): Renames read_var_value. Rewrite
818 function description.
819 (read_var_value): New function.
820 * value.h (default_read_var_value): Add prototype.
821 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
823 (ada_language_defn): Add entry for la_read_var_value.
824 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
825 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
826 language_defn structures to add entry for new la_read_var_value
832 PR breakpoints/13776:
833 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
835 (delete_longjmp_breakpoint_at_next_stop): New.
836 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
837 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
838 before deleting the inferior. Add comments.
839 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
840 breakpoints immediately, but only on next stop. Move that code
841 next to where we mark other breakpoints for deletion.
845 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
847 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
852 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
856 Fix -Wmissing-prototypes build.
857 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
858 * remote-sim.c (gdbsim_has_all_memory): Likewise.
859 (gdbsim_has_memory): Likewise.
863 Fix -Wmissing-prototypes build.
864 * charset.c (phony_iconv_open): Make static.
865 (phony_iconv_close, phony_iconv): Likewise.
866 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
867 * i386-windows-nat.c (_initialize_i386_windows_nat): New
869 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
870 * ser-mingw.c (create_select_thread): Make static.
871 * windows-termcap.c (tgetent): New prototype.
872 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
876 Fix -Wmissing-prototypes build.
877 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
878 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
879 (_initialize_loadable): New prototypes.
883 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
884 abbrev table, read_comp_unit will do it.
888 Fix -Wmissing-prototypes build.
889 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
890 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
891 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
892 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
893 (_initialize_arm_symbian_tdep): New prototype.
894 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
895 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
896 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
898 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
899 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
901 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
902 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
903 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
905 * moxie-tdep.c (moxie_process_record): Likewise.
906 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
907 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
908 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
909 (_initialize_rl78_tdep): New prototype.
910 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
911 (_initialize_rx_tdep): New prototype.
912 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
913 (_initialize_darwin_solib): New prototype.
914 * solib-spu.c: Include solib-spu.h.
915 (_initialize_spu_solib): New prototype.
916 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
917 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
918 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
919 (tic6x_software_single_step): Make it static.
920 (_initialize_tic6x_tdep): New prototype.
924 Fix -Wmissing-prototypes build.
925 * cris-tdep.c (cris_can_use_hardware_watchpoint)
926 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
930 Fix -Wmissing-prototypes build.
931 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
932 (frv_have_stopped_data_address): Remove.
936 Fix -Wmissing-prototypes build.
937 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
938 * sh-tdep.c: Include sh64-tdep.h.
939 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
940 * sh64-tdep.c: Include sh64-tdep.h.
941 * sh64-tdep.h: New file.
945 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
949 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
950 sp_regnum once the gdbarch_init_osabi hook has been called.
954 * mips-tdep.c (mips32_bc1_pc): New function.
955 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
956 BPOSGE32 and BPOSGE64 instructions.
957 (deal_with_atomic_sequence): Likewise.
958 (mips32_instruction_has_delay_slot): Likewise.
965 * features/mips-dsp.xml: New file.
966 * features/mips64-dsp.xml: New file.
967 * features/mips-dsp-linux.xml: New file.
968 * features/mips64-dsp-linux.xml: New file.
969 * features/Makefile (WHICH): Add mips-dsp-linux and
971 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
972 * features/mips-dsp-linux.c: New file.
973 * features/mips64-dsp-linux.c: New file.
974 * regformats/mips-dsp-linux.dat: New file.
975 * regformats/mips64-dsp-linux.dat: New file.
976 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
978 (mips64_linux_register_addr): Likewise.
979 (mips64_linux_regsets_fetch_registers): Likewise.
980 (mips64_linux_regsets_store_registers): Likewise.
981 (mips64_linux_fetch_registers): Update call to
982 mips64_linux_regsets_fetch_registers.
983 (mips64_linux_store_registers): Update call to
984 mips64_linux_regsets_store_registers.
985 (mips_linux_read_description): Probe for DSP registers.
986 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
987 and initialize_tdesc_mips64_dsp_linux.
988 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
989 Remove padding of no longer used embedded register slots.
990 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
991 (MIPS_RESTART_REGNUM): Redefine enum value.
992 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
994 (mips_tx39_reg_names): Likewise.
995 (mips_linux_reg_names): New array of register names for Linux
997 (mips_register_name): Check for a null pointer in
998 mips_processor_reg_names and return an empty string.
999 (mips_register_type): Exclude embedded registers for the IRIX
1001 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
1002 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
1004 (mips_stab_reg_to_regnum): Handle DSP accumulators.
1005 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
1006 (mips_gdbarch_init): Likewise. Initialize internal register
1007 indices for the Linux ABI. Use dynamic numbers to refer to
1008 registers, as applicable, while parsing the target description.
1009 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
1013 * frame.h (read_frame_register_unsigned): Fix typo in function
1018 * jit-reader.in [!__cplusplus]
1019 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
1023 * configure.ac (build_warnings): Add -Wmissing-prototypes.
1024 * configure: Regenerate.
1028 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
1029 * breakpoint.c (create_exception_master_breakpoint, trace_command)
1030 (ftrace_command, strace_command): Make static.
1031 * d-lang.c (_initialize_d_language): Declare.
1032 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
1033 * dwarf2loc.c (_initialize_dwarf2loc):
1034 * dwarf2read.c (process_psymtab_comp_unit): Make static.
1035 * exec.c (exec_get_section_table): Make static.
1036 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
1037 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
1038 * inferior.c (remove_inferior_command, add_inferior_command)
1039 (clone_inferior_command): Make static.
1040 * linux-nat.c (linux_nat_thread_address_space)
1041 (linux_nat_core_of_thread): Make static.
1042 * linux-tdep.c (_initialize_linux_tdep): Declare.
1043 * objc-lang.c (_initialize_objc_lang): Declare.
1044 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
1046 (_initialize_opencl_language): Declare.
1047 * record.c (_initialize_record): Declare.
1048 * remote.c (demand_private_info, remote_get_tib_address)
1049 (remote_supports_cond_tracepoints)
1050 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
1052 * skip.c (_initialize_step_skip): Declare.
1053 * symtab.c (skip_prologue_using_lineinfo): Make static.
1054 * tracepoint.c (delete_trace_state_variable)
1055 (trace_variable_command, delete_trace_variable_command)
1056 (get_uploaded_tsv, find_matching_tracepoint_location)
1057 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
1059 * value.c (pack_unsigned_long): Make static.
1060 * varobj.c (varobj_ensure_python_env): Make static.
1061 * windows-tdep.c (_initialize_windows_tdep): Declare.
1062 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
1066 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
1068 (linux_init_abi): Install it as has_shared_address_space gdbarch
1073 * observer.c (observer_test_first_notification_function)
1074 (observer_test_second_notification_function)
1075 (observer_test_third_notification_function): Add declarations.
1079 * common/signals.c (default_target_signal_to_host)
1080 (default_target_signal_from_host): Move ...
1081 * arch-utils.c: ... here.
1082 * arch-utils.h (default_target_signal_to_host)
1083 (default_target_signal_from_host): Declare.
1085 * common/signals.c (target_signal_from_command): Move ...
1086 * infrun.c: ... here.
1087 * inferior.h (target_signal_from_command): Declare.
1088 * target.h (target_signal_from_command)
1089 (default_target_signal_from_host, default_target_signal_to_host):
1090 Delete declarations.
1092 * common/signals.c (_initialize_signals): Delete.
1096 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
1097 both __cplusplus and !__cplusplus.
1101 * psymtab.c (find_and_open_source): Delete declaration.
1102 * source.c (find_and_open_source): Move comment ...
1103 * source.h (find_and_open_source): ... to this new declaration.
1107 * inline-frame.c: Include inline-frame.h.
1111 * tui/tui-data.c (set_gen_win_origin): Delete.
1112 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
1113 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
1117 * remote.c (encode_actions): Delete declaration.
1118 * tracepoint.c (encode_actions): Make extern.
1119 * tracepoint.h (encode_actions): Declare.
1123 * python/py-breakpoint.c: Include python.h.
1124 * python/py-continueevent.c (create_continue_event_object): Make
1126 * python/py-lazy-string.c (stpy_get_type): Make static.
1127 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1129 * python/py-utils.c (unicode_to_target_python_string): Make
1131 * python/py-value.c: Include python.h.
1135 * inferior.c (delete_threads_of_inferior): Delete.
1139 Import fallback definitions from glibc.
1141 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
1142 ps_prochandle): Forward declare.
1143 (ps_err_e): Use glibc's comments.
1144 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
1145 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
1146 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
1147 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
1148 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
1149 (struct ps_prochandle): Adjust comment.
1153 * ada-lang.c (ada_modulus_from_name): Delete.
1154 * ada-lex.l (lexer_init): Make static.
1160 * frame.c (read_frame_register_unsigned): New.
1161 * frame.h (read_frame_register_unsigned): Declare.
1162 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
1164 (print_i387_control_word): New parameter `control_p'. Handle it.
1165 (i387_print_float_info): Handle unavailable float registers.
1169 * linespec.c (decode_line_2): Sort the list of methods
1170 alphabetically before presenting the user with a selection
1175 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
1177 (dwarf2_read_abbrevs): Remove corresponding initialization.
1181 * NEWS: Mention new python command class gdb.COMMAND_USER.
1182 * cli/cli-cmds.c (show_user): Print error when used on a python
1184 (init_cli_cmds): Update documentation strings for "show user" and
1185 "set/show max-user-call-depth" to clarify that it does not apply to
1187 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
1189 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
1191 * top.c (execute_command): Only execute a user-defined command as a
1192 legacy macro if c->user_commands is set.
1196 * valprint.h (struct generic_val_print_decorations): New.
1197 (generic_val_print): Declare.
1198 * valprint.c (generic_val_print): New function.
1199 * p-valprint.c (p_decorations): New global.
1200 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
1201 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
1202 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
1203 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
1204 * m2-valprint.c (m2_decorations): New global.
1205 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
1206 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
1207 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
1208 TYPE_CODE_ERROR>: Call generic_val_print.
1209 * f-valprint.c (f_decorations): New global.
1210 (f_val_print): Use print_function_pointer_address.
1211 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
1212 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
1213 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
1215 * c-valprint.c (c_decorations): New global.
1216 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
1217 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
1218 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
1219 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
1220 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
1221 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
1226 * valprint.c (val_print): Update.
1227 * p-valprint (pascal_val_print): Return void.
1228 * p-lang.h (pascal_val_print): Return void.
1229 * m2-valprint.c (m2_val_print): Return void.
1230 * m2-lang.h (m2_val_print): Return void.
1231 * language.h (struct language_defn) <la_val_print>: Return void.
1232 * language.c (unk_lang_val_print): Return void.
1233 * jv-valprint.c (java_val_print): Return void.
1234 * jv-lang.h (java_val_print): Return void.
1235 * f-valprint.c (f_val_print): Return void.
1236 * f-lang.h (f_val_print): Return void.
1237 * d-valprint.c (d_val_print): Return void.
1238 (dynamic_array_type): Update.
1239 * d-lang.h (d_val_print): Return void.
1240 * c-valprint.c (c_val_print): Return void.
1241 * c-lang.h (c_val_print): Return void.
1242 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
1244 * ada-lang.h (ada_val_print): Return void.
1248 * value.h (val_print): Return void.
1249 * valprint.c (val_print): Return void.
1253 * value.h (common_val_print): Return void.
1254 * valprint.c (common_val_print): Return void.
1258 * value.h (value_print): Return void.
1259 * valprint.c (value_print): Return void.
1260 * p-valprint.c (pascal_value_print): Return void.
1261 * p-lang.h (pascal_value_print): Return void.
1262 * language.h (struct language_defn) <la_value_print>: Return
1264 * language.c (unk_lang_value_print): Return void.
1265 * jv-valprint.c (java_value_print): Return void.
1266 * jv-lang.h (java_value_print): Return void.
1267 * f-valprint.c (c_value_print): Don't declare.
1269 * c-valprint.c (c_value_print): Return void.
1270 * c-lang.h (c_value_print): Return void.
1271 * ada-valprint.c (ada_value_print): Return void.
1272 * ada-lang.h (ada_value_print): Return void.
1276 * value.c (value_primitive_field): Handle virtual base classes.
1280 * gdbtypes.h (struct vbase): Remove.
1284 * c-valprint.c (print_function_pointer_address): Move...
1285 * valprint.c: ... here. Make non-static.
1286 * m2-valprint.c (print_function_pointer_address): Remove.
1287 * valprint.h (print_function_pointer_address): Declare.
1291 * NEWS: Document the fact that one can provide a condition when
1292 creating an Ada exception catchpoint.
1296 * valprint.c (val_print_type_code_flags): Fix placement of
1301 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
1302 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
1303 environment variable before calling update-copyright.
1307 * gnulib/extra/update-copyright: Update to the latest from
1308 gnulib's git repository.
1309 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
1310 variable to 2 instead of 1.
1314 * varobj.c (c_value_of_variable): Remove dead code.
1318 * ada-lex.p (processId): Do not modify already encoded IDs.
1319 Update function documentation.
1323 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
1324 "name" with "struct symbol *name_sym".
1325 * ada-exp.y (write_var_or_type): Update call to
1326 ada_find_renaming_symbol.
1327 "name" with "struct symbol *name_sym". Adjust Implementation
1328 accordingly. Adjust the function documentation.
1332 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
1333 * ada-lang.c (ada_find_any_type): Add advance declaration.
1334 Make static. Replace ada_find_any_symbol by
1335 ada_find_any_type_symbol.
1336 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
1337 Improve function description. Make static.
1338 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
1339 Replace ada_find_any_symbol by ada_find_any_type_symbol.
1343 * ada-lang.c (struct tag_args): Delete.
1344 (ada_get_tsd_type): Function body moved up in source file.
1345 (ada_tag_name_1, ada_tag_name_2): Delete.
1346 (ada_get_tsd_from_tag): New function.
1347 (ada_tag_name_from_tsd): New function.
1348 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
1349 to determine the tag name.
1353 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
1355 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
1360 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
1364 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
1369 * ada-lang.c (constrained_packed_array_type): If there is a
1370 parallel XA type, use it to determine the array index type.
1374 * ada-valprint.c (ada_val_print_1): If our value is a reference
1375 to an array descriptor, dereference it before converting it
1380 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
1381 creating fixed value.
1382 (ada_value_ind, ada_coerce_ref, assign_component)
1383 (ada_evaluate_subexp): Remove call to unwrap_value before
1384 call to ada_to_fixed_value.
1388 * ada-lang.c (to_fixed_array_type): Set result's type name.
1392 * ada-lang.c (catch_ada_exception_command_split): Add new
1393 argument cond_string. Add support for condition at end of
1394 "catch exception" commands.
1395 (ada_decode_exception_location): Add new argument cond_string.
1396 Update call to catch_ada_exception_command_split.
1397 (create_ada_exception_catchpoint): Add new argument cond_string.
1398 Set the breakpoint condition if needed.
1399 (catch_ada_exception_command): Update call to
1400 ada_decode_exception_location.
1401 (ada_decode_assert_location): Add function documentation.
1402 Add support for condition at end of "catch assert" command.
1403 (catch_assert_command): Update calls to ada_decode_assert_location
1404 and create_ada_exception_catchpoint.
1408 Fix disp-step-syscall.exp: fork: single step over fork.
1409 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
1410 (i386_linux_get_syscall_number_from_regcache): ... here, new function
1411 comment, change parameters gdbarch and ptid to regcache. Remove
1412 parameter regcache, initialize gdbarch from regcache here.
1413 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
1415 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
1417 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
1418 'syscall'. Make the 'int' check more strict.
1422 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
1423 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
1424 (i386_linux_intx80_sysenter_syscall_record): ... here.
1425 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
1426 Use the renamed function name.
1430 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
1431 * breakpoint.c (until_break_command): Likewise.
1432 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
1433 * infcall.c (call_function_by_hand): Likewise.
1434 * infcmd.c (finish_forward): Likewise.
1435 * infrun.c (insert_exception_resume_breakpoint): Likewise.
1439 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
1440 avoid variable assignments inside condition.
1444 Fix static analysis issue found by cppcheck.
1445 * microblaze-tdep.c (microblaze_extract_return_value): Fix
1446 uninitialized BUF for size 2.
1452 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
1453 (mips16_instruction_has_delay_slot): Likewise.
1454 (mips_segment_boundary): Likewise.
1455 (mips_adjust_breakpoint_address): Likewise.
1456 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
1461 * infrun.c (handle_inferior_event): Don't proceed through
1462 shared library trampolines if stepping at the machine
1467 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
1472 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
1473 (sh_stub_unwind_sniffer): New functions.
1474 (sh_stub_unwind): New variable.
1475 (sh_gdbarch_init): Wire everything.
1479 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
1480 (linux_nat_post_attach_wait): Adjust to use
1481 linux_proc_pid_is_stopped.
1482 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
1483 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
1484 based on pid_is_stopped from both linux-nat.c and
1485 gdbserver/linux-low.c, and renamed.
1489 * remote.c (remote_watchpoint_addr_within_range): New function.
1490 (init_remote_ops): Use it.
1494 * target.h (target_watchpoint_addr_within_range): Document macro.
1498 * stack.c (set_last_displayed_sal): Issue internal_error instead
1499 of warning, and issue it after clearing the last displayed sal.
1504 * breakpoint.c (until_break_command): Install breakpoints after
1505 all frame manipulations.
1509 * remote.c (remote_supports_cond_breakpoints): New forward
1511 (remote_add_target_side_condition): New function.
1512 (remote_insert_breakpoint): Add target-side breakpoint
1513 conditional if supported.
1514 (remote_insert_hw_breakpoint): Likewise.
1515 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
1518 * target.c (update_current_target): Inherit
1519 to_supports_evaluation_of_breakpoint_conditions.
1520 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
1522 * target.h (struct target_ops)
1523 <to_supports_evaluation_of_breakpoint_conditions>: New field.
1524 (target_supports_evaluation_of_breakpoint_conditions): New #define.
1526 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
1527 (condition_evaluation_both, condition_evaluation_auto,
1528 condition_evaluation_host, condition_evaluation_target,
1529 condition_evaluation_enums, condition_evaluation_mode_1,
1530 condition_evaluation_mode): New static globals.
1531 (translate_condition_evaluation_mode): New function.
1532 (breakpoint_condition_evaluation_mode): New function.
1533 (gdb_evaluates_breakpoint_condition_p): New function.
1534 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
1535 (mark_breakpoint_modified): New function.
1536 (mark_breakpoint_location_modified): New function.
1537 (set_condition_evaluation_mode): New function.
1538 (show_condition_evaluation_mode): New function.
1539 (bp_location_compare_addrs): New function.
1540 (get_first_location_gte_addr): New helper function.
1541 (set_breakpoint_condition): Free condition bytecode if locations
1542 has become unconditional. Call mark_breakpoint_modified (...).
1543 (condition_command): Call update_global_location_list (1) for
1545 (breakpoint_xfer_memory): Use is_breakpoint (...).
1546 (is_breakpoint): New function.
1547 (parse_cond_to_aexpr): New function.
1548 (build_target_condition_list): New function.
1549 (insert_bp_location): Handle target-side conditional
1550 breakpoints and call build_target_condition_list (...).
1551 (update_inserted_breakpoint_locations): New function.
1552 (insert_breakpoint_locations): Handle target-side conditional
1554 (bpstat_check_breakpoint_conditions): Add comment.
1555 (bp_condition_evaluator): New function.
1556 (bp_location_condition_evaluator): New function.
1557 (print_breakpoint_location): Print information on where the condition
1559 (print_one_breakpoint_location): Likewise.
1560 (init_bp_location): Call mark_breakpoint_location_modified (...) for
1561 breakpoint location.
1562 (force_breakpoint_reinsertion): New functions.
1563 (update_global_location_list): Handle target-side breakpoint
1565 Reinsert locations that are already inserted if conditions have
1567 (bp_location_dtor): Free agent expression bytecode.
1568 (disable_breakpoint): Call mark_breakpoint_modified (...).
1569 Call update_global_location_list (...) with parameter 1 for breakpoints.
1570 (disable_command): Call mark_breakpoint_location_modified (...).
1571 Call update_global_location_list (...) with parameter 1 for breakpoints.
1572 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
1573 (enable_command): mark_breakpoint_location_modified (...).
1574 (_initialize_breakpoint): Update documentation and add
1575 condition-evaluation breakpoint subcommand.
1577 * breakpoint.h: Include ax.h.
1578 (condition_list): New data structure.
1579 (condition_status): New enum.
1580 (bp_target_info) <cond_list>: New field.
1581 (bp_location) <condition_changed, cond_bytecode>: New fields.
1582 (is_breakpoint): New prototype.
1586 * remote.c (remote_state) <cond_breakpoints>: New field.
1587 (PACKET_ConditionalBreakpoints): New enum.
1588 (remote_cond_breakpoint_feature): New function.
1589 (remote_protocol_features): Add new ConditionalBreakpoints entry.
1590 (remote_supports_cond_breakpoints): New function.
1591 (_initialize_remote): Add new packet configuration for
1592 target-side conditional breakpoints.
1596 * NEWS: Mention target-side conditional breakpoint support,
1597 new condition-evaluation breakpoint subcommand and remote
1602 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
1607 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
1608 (after_prologue): Remove.
1612 * jv-valprint.c (java_val_print): Remove dead code.
1616 * ada-tasks.c (struct ada_tasks_inferior_data): Add
1617 known_tasks_element and known_tasks_length fields.
1618 (read_known_tasks_array): Change argument type. Use pointer type
1619 and number of elements from DATA. Adjust.
1620 (read_known_tasks_list): Likewise.
1621 (get_known_tasks_addr): Remove.
1622 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
1623 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
1624 type and array length. Merge former get_known_tasks_addr code.
1629 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
1630 it after set_momentary_breakpoint.
1635 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
1639 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
1640 (find_slot_in_mapped_hash): Likewise.
1645 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
1646 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
1647 * configure: Regenerate.
1652 * ia64-tdep.c: Do not include libunwind-ia64.h.
1653 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
1654 Include libunwind-ia64.h instead of libunwind.h.
1655 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
1656 for libunwind.h existence.
1657 * configure, config.in: Regenerate.
1661 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
1662 instead of value_rtti_target_type.
1663 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
1664 instead of value_rtti_target_type.
1665 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
1666 value_rtti_target_type.
1667 * valops.c (value_ind): Extract function readjust_indirect_value_type.
1668 (value_rtti_target_type): Rename to ...
1669 (value_rtti_indirect_type): ... here and make it indirect. Update
1671 * value.c (readjust_indirect_value_type): New function.
1672 (coerce_ref): Support for enclosing type setting for references
1673 with readjust_indirect_value_type.
1674 * value.h (readjust_value_type): New declaration.
1675 (value_rtti_target_type): Rename to ...
1676 (value_rtti_indirect_type): ... here.
1680 * MAINTAINERS (Write After Approval): Add myself to the list.
1684 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
1685 Rename objfile_p_char parameter to objfilep.
1686 (build_objfile_section_table): Result is now void. All callers
1688 * objfiles.h (struct objfile): Tweak comments, whitespace.
1689 (build_objfile_section_table): Update.
1691 * elfread.c (elf_symfile_segments): Fix warning text.
1696 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
1697 particular set of file names once.
1698 (dw2_map_symbol_filenames): Likewise.
1703 * main.c (write_files): Remove the declaration.
1704 (external_editor_command): Move the declaration ...
1705 [GDBTK] (external_editor_command): ... here. Fix the comment.
1709 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
1714 * darwin-nat.h (enum darwin_msg_state): Add comments.
1718 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
1723 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
1724 between function description and implementation.
1729 * python/py-event.c (event_object_getset): New global.
1730 (event_object_type): Reference it.
1731 * python/py-type.c (field_object_getset): New global.
1732 (field_object_type): Reference it.
1733 * python/python-internal.h (gdb_py_generic_dict): Declare.
1734 * python/py-utils.c (gdb_py_generic_dict): New function.
1738 * solib-darwin.c (darwin_current_sos): Check magic and filetype
1742 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
1743 TYPE_CALLING_CONVENTION annotation.
1747 * MAINTAINERS: Add rx to target ISA section.
1748 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
1749 (ALLDEPFILES): Add rx-tdep.c.
1753 * symfile.c (symbol_file_add_main_1): Use inferior's
1755 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
1756 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
1758 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
1760 (follow_exec): Use inferior's symfile_flags.
1761 * inferior.h (struct inferior) <symfile_flags>: New field.
1766 * remote-sim.c (gdbsim_create_inferior): Call error() when
1767 sim_create_inferior() fails.
1771 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
1776 * thread.c (struct current_thread_cleanup) <was_removable>: New
1778 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
1779 (make_cleanup_restore_current_thread): Initialize new field.
1783 * MAINTAINERS: Add rl78 to target ISA section.
1784 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
1785 (ALLDEPFILES): Add rl78-tdep.c.
1786 * NEWS: Mention rl78 as a new target.
1790 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
1792 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
1797 * infcmd.c (registers_info): Print just the current register's
1802 * python/py-symbol.c (sympy_value): Use _().
1806 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
1807 output to be like native targets'.
1808 (remote_pid_to_str): Special case the null ptid.
1812 * NEWS: Mention enable count command.
1813 * breakpoint.h (struct breakpoint): New field enable_count.
1814 * breakpoint.c (enable_breakpoint_disp): Add count argument.
1815 (enable_breakpoint): Add arg to call.
1816 (struct disp_data): New struct.
1817 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
1818 (do_map_enable_once_breakpoint): Create a struct and pass it.
1819 (do_map_enable_delete_breakpoint): Ditto.
1820 (do_map_enable_count_breakpoint): New function.
1821 (enable_count_command): New function.
1822 (bpstat_stop_status): Decrement enable_count.
1823 (print_one_breakpoint_location): Report enable count.
1824 (_initialize_breakpoint): Add enable count command.
1828 * rl78-tdep.c (reggroups.h): Include.
1829 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
1830 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
1831 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
1832 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
1833 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
1834 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
1835 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
1836 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
1837 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
1838 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
1839 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
1840 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
1841 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
1842 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
1843 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
1844 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
1845 beginning of register list.
1846 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
1847 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
1848 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
1849 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
1850 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
1851 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
1852 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
1853 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
1854 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
1855 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
1856 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
1857 the pseudo registers. Rearrange other pseudo registers too so
1858 that the bank registers appear at the end.
1859 (rl78_register_type): Account for the fact that the byte sized
1860 bank registers are now pseudo-registers.
1861 (rl78_register_name): Rearrange the register name array. Make
1862 initial set of raw banked registers inaccessible.
1863 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
1864 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
1865 case for copying bytes back and forth between raw and pseudo
1866 versions of the banked registers. Update other cases to reflect
1868 (rl78_return_value): Update to account for changed names of
1870 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
1871 rl78_register_sim_regno().
1875 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
1876 the name parameter being passed to find_pc_partial_function().
1880 * MAINTAINERS: Step down from being ia64 target maintainer.
1884 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
1885 compilation warning.
1889 Fix crash on loaded shlibs without loaded exec_bfd.
1890 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
1891 (set_section_command): Replace exec_bfd by p->bfd.
1895 * linespec.c (decode_line_internal): Skip symtabs_from_filename
1896 when we have a C++ qualified name.
1900 * inferior.c (inferior_pid_to_str): New.
1901 (print_inferior, inferior_command): Use it.
1905 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
1907 * configure: Regenerate.
1911 * linespec.c (decode_line_internal): Fix comment correctness.
1916 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
1917 * amd64bsd-nat.c: Add support for debug registers (adapted from
1919 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
1920 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
1921 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
1922 (amd64bsd_dr_get_control): New functions.
1923 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
1924 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
1925 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
1926 watchpoints initialization.
1927 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
1931 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
1933 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
1937 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
1941 * language.h (symbol_name_cmp_ftype): Renames
1942 symbol_name_match_p_ftype.
1943 (struct language_defn)[la_get_symbol_name_cmp]: Renames
1944 la_get_symbol_name_match_p.
1945 * ada-lang.c (ada_get_symbol_name_cmp): Renames
1946 ada_get_symbol_name_match_p. Update comment.
1947 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
1948 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
1949 Renames symbol_name_match_p. Update field type.
1950 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
1951 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
1952 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
1953 "la_get_symbol_name_cmp" in comments.
1954 * language.c: Likewise.
1958 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
1960 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
1961 (amd64_sol2_gregset32_reg_offs): Likewise.
1965 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
1966 of the returned BFD is allocated by GDB.
1971 * python/python-internal.h (frame_object_type): Declare.
1972 * python/py-symbol.c (sympy_needs_frame): New function.
1973 (sympy_value): New function.
1974 (symbol_object_getset): Add "needs_frame".
1975 (symbol_object_methods): Add "value".
1976 * python/py-frame.c (frame_object_type): No longer static.
1981 * python/py-symbol.c (sympy_line): New function.
1982 (symbol_object_getset): Add "line".
1986 * charset.c (find_charset_names): Check 'in' against NULL.
1990 * gdbtypes.h (struct main_type): Change type of name,tag_name,
1991 and fields.name members from char * to const char *. All uses updated.
1992 (struct cplus_struct_type): Change type of fn_fieldlists.name member
1993 from char * to const char *. All uses updated.
1994 (type_name_no_tag): Update.
1995 (lookup_unsigned_typename, lookup_signed_typename): Update.
1996 * gdbtypes.c (type_name_no_tag): Change result type
1997 from char * to const char *. All callers updated.
1998 (lookup_unsigned_typename, lookup_signed_typename): Change type of
1999 name parameter from char * to const char *.
2000 * symtab.h (struct cplus_specific): Change type of demangled_name
2001 member from char * to const char *. All uses updated.
2002 (struct general_symbol_info): Change type of name and
2003 mangled_lang.demangled_name members from char * to const char *.
2005 (symbol_get_demangled_name, symbol_natural_name): Update.
2006 (symbol_demangled_name, symbol_search_name): Update.
2007 * symtab.c (symbol_get_demangled_name): Change result type
2008 from char * to const char *. All callers updated.
2009 (symbol_natural_name, symbol_demangled_name): Ditto.
2010 (symbol_search_name): Ditto.
2011 (completion_list_add_name): Change type of symname,sym_text,
2012 text,word parameters from char * to const char *.
2013 (completion_list_objc_symbol): Change type of sym_text,
2014 text,word parameters from char * to const char *.
2015 * ada-lang.c (find_struct_field): Change type of name parameter
2016 from char * to const char *.
2017 (encoded_ordered_before): Similarly for N0,N1 parameters.
2018 (old_renaming_is_invisible): Similarly for function_name parameter.
2019 (ada_type_name): Change result type from char * to const char *.
2020 All callers updated.
2021 * ada-lang.h (ada_type_name): Update.
2022 * buildsym.c (hashname): Change type of name parameter
2023 from char * to const char *.
2024 * buildsym.h (hashname): Update.
2025 * dbxread.c (end_psymtab): Change type of include_list parameter
2026 from char ** to const char **.
2027 * dwarf2read.c (determine_prefix): Change result type
2028 from char * to const char *. All callers updated.
2029 * f-lang.c (find_common_for_function): Change type of name, funcname
2030 parameters from char * to const char *.
2031 * f-lang.c (find_common_for_function): Update.
2032 * f-valprint.c (list_all_visible_commons): Change type of funcname
2033 parameters from char * to const char *.
2034 * gdbarch.sh (static_transform_name): Change type of name parameter
2035 and result from char * to const char *.
2036 * gdbarch.c: Regenerate.
2037 * gdbarch.h: Regenerate.
2038 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
2039 of name parameter from char * to const char *.
2040 * jv-lang.c (java_primitive_type_from_name): Ditto.
2041 (java_demangled_signature_length): Similarly for signature parameter.
2042 (java_demangled_signature_copy): Ditto.
2043 (java_demangle_type_signature): Ditto.
2044 * jv-lang.h (java_primitive_type_from_name): Update.
2045 (java_demangle_type_signature): Update.
2046 * objc-lang.c (specialcmp): Change type of a,b parameters
2047 from char * to const char *.
2048 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
2049 from char * to const char *. All callers updated.
2050 * p-lang.h (is_pascal_string_type): Update.
2051 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
2052 of name parameter from char * to const char *.
2053 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
2054 * utils.c (fprintf_symbol_filtered): Ditto.
2055 * defs.h (fprintf_symbol_filtered): Update.
2056 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
2057 * stabsread.h (end_psymtab): Update.
2058 * stack.c (find_frame_funname): Change type of funname parameter
2059 from char ** to const char **.
2060 * stack.h (find_frame_funname): Update.
2061 * typeprint.c (type_print): Change type of varstring parameter
2062 from char * to const char *.
2063 * value.h (type_print): Update.
2064 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
2065 from char * to const char *. All callers updated.
2066 (xcoff_end_psymtab): Change type of include_list parameter
2067 from char ** to const char **. All callers updated.
2068 (swap_sym): Similarly for name parameter. All callers updated.
2069 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
2071 (process_coff_symbol): Use xstrdup.
2072 * stabsread.c (stabs_method_name_from_physname): Renamed from
2073 update_method_name_from_physname. Change result type from void
2074 to char *. All callers updated.
2075 (read_member_functions): In has_destructor case, store name in objfile
2076 obstack instead of malloc space. In !has_stub case, fix mem leak.
2080 * configure: Rebuild.
2081 * configure.ac: Put -L../bfd and -L../libiberty at the front of
2086 * configure.tgt (rl78-*-elf): New target.
2087 * rl78-tdep.c: New file.
2091 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
2092 and continue the loop. Add QUIT statement.
2097 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
2098 bfd_lookup_symbol_from_symtab.
2099 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2100 gdb_bfd_lookup_symbol_from_symtab.
2104 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
2105 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
2106 symbol. Add assertion that sym2 is never NULL.
2110 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
2111 "name" parameter to const char ** from char **. All callers updated.
2112 (find_pc_partial_function): Ditto.
2113 (cache_pc_function_name): Change type to const char * from char *.
2114 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
2115 (find_pc_partial_function): Update.
2116 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
2117 type of "name" parameter to const char * from char *.
2119 * arch-utils.c (generic_in_solib_return_trampoline): Change
2120 type of "name" parameter to const char * from char *.
2121 * arch-utils.h (generic_in_solib_return_trampoline): Update.
2122 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
2123 type of "name" parameter to const char * from char *.
2124 * gdbarch.sh (in_solib_return_trampoline): Ditto.
2125 * gdbarch.c: Regenerate.
2126 * gdbarch.h: Regenerate.
2127 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
2128 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
2129 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
2130 type of "name" parameter to const char * from char *.
2131 * skip.c (skip_function_pc): Ditto.
2132 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
2133 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
2134 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
2135 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
2136 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
2137 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
2138 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
2139 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
2140 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
2144 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
2145 the current inferior has no execution. Make sure the current
2146 remote process matches gdb's current inferior.
2151 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
2157 * symtab.c (lookup_language_this): Set block_found.
2162 * jit.c (struct jit_inferior_data): Rewrite.
2163 (struct jit_objfile_data): New.
2164 (get_jit_objfile_data): New function.
2165 (add_objfile_entry): Update.
2166 (jit_read_descriptor): Return int. Replace descriptor_addr
2167 argument with inf_data. Update. Don't call error.
2168 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
2170 (jit_inferior_init): Don't look up descriptor. Don't call error.
2171 (jit_reset_inferior_data_and_breakpoints)
2172 (jit_inferior_created_observer): Remove.
2173 (jit_inferior_exit_hook): Update.
2174 (jit_executable_changed_observer): Remove.
2175 (jit_event_handler): Update.
2176 (free_objfile_data): Reset inferior data if needed.
2177 (_initialize_jit): Update.
2181 * jit.c (bfd_open_from_target_memory): Move higher in file.
2185 * libunwind-frame.c (libunwind_load): Display message if dlopen
2190 * symtab.h (symbol_found_callback_ftype): New typedef.
2191 (iterate_over_symbols): Use the above.
2192 * symtab.c (iterate_over_symbols): Likewise.
2193 * language.h (language_defn->la_iterate_over_symbols): Likewise.
2194 * ada-lang.c (ada_iterate_over_symbols): Likewise.
2195 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
2196 (iterate_name_matcher): Document return values.
2197 (collect_one_symbol): Likewise.
2198 (collect_function_symbols): Likewise.
2199 (collect_symbols): Likewise.
2203 * ada-lang.c (resolve_subexp): Update.
2204 (ada_lookup_symbol_list): Add 'full_search' argument.
2205 (ada_iterate_over_symbols): Pass 0 as full_search argument to
2206 ada_lookup_symbol_list.
2207 (ada_lookup_encoded_symbol): Update.
2208 (get_var_value): Update.
2209 * ada-exp.y (block_lookup): Update.
2210 (write_var_or_type): Update.
2211 (write_name_assoc): Update.
2212 * ada-lang.h (ada_lookup_symbol_list): Update.
2216 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
2221 * symtab.h: Remove outdated comment.
2222 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
2226 Fix build error in Darwin port.
2227 * i386-darwin-nat.c: Include i386-nat.h.
2231 PR breakpoints/13568:
2232 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
2233 argument. Check for recursive includes.
2234 (dwarf_decode_macros): Create an include hash.
2238 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
2239 * ppc-linux-tdep.c: Include glibc-tdep.h.
2240 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
2241 (powerpc_linux_in_plt_stub): New function.
2242 (powerpc_linux_in_dynsym_resolve_code): New function.
2243 (ppc_skip_trampoline_code): New function.
2244 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
2245 Use glibc_skip_solib_resolver.
2249 Code cleanup: Make 1440 bytes of data segment read-only.
2250 * arch-utils.c (endian_enum): Make it const char *const [].
2251 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
2253 * breakpoint.c (always_inserted_enums): Likewise.
2254 * cli/cli-cmds.c (script_ext_enums): Likewise.
2255 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
2256 enumlist parameter const char *const *.
2257 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
2258 const char *const *.
2259 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
2260 parameter const char *const *.
2261 * cris-tdep.c (cris_modes): Make it const char *const [].
2262 * filesystem.c (target_file_system_kinds): Likewise.
2263 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
2264 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
2265 (can_use_displaced_stepping_enum, scheduler_enums)
2266 (exec_direction_names): Likewise.
2267 * language.c (_initialize_language): Make the type_or_range_names and
2268 case_sensitive_names variables const char *const [].
2269 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
2270 * python/python.c (python_excp_enums): Likewise.
2271 * remote.c (interrupt_sequence_modes): Likewise.
2272 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
2273 * serial.c (logbase_enums): Likewise.
2274 * sh-tdep.c (sh_cc_enum): Likewise.
2275 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
2277 * symtab.c (multiple_symbols_modes): Likewise.
2278 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
2280 * utils.c (internal_problem_modes): Likewise.
2284 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
2285 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
2290 * configure.ac (with_python): Fix absolute path handling for win32.
2291 * configure: Regenerate.
2295 * symtab.c: Whitespace cleanup, no code changes.
2297 * symtab.c (lookup_symbol_in_language): Improve comment.
2298 (lookup_symbol_aux): Fix comment.
2300 * psymtab.c (add_psymbol_to_list): Result is now "void".
2301 * psympriv.h (add_psymbol_to_list): Update.
2303 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
2307 Do not open script filenames twice.
2308 * cli/cli-cmds.c (source_script_from_stream): Pass to
2309 source_python_script also STREAM.
2310 * python/py-auto-load.c (source_section_scripts): Pass to
2311 source_python_script_for_objfile also STREAM.
2312 (auto_load_objfile_script): Pass to source_python_script_for_objfile
2314 * python/python-internal.h (source_python_script_for_objfile): New
2315 parameter file, rename parameter file to filename.
2316 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
2317 instead if !_WIN32. Update the function comment.
2318 (source_python_script, source_python_script_for_objfile)
2319 (source_python_script): New parameter file, rename parameter file to
2320 filename. Pass FILENAME to python_run_simple_file.
2321 * python/python.h (source_python_script): New parameter file, rename
2322 parameter file to filename.
2326 * corelow.c (core_has_fake_pid): Delete.
2327 (core_close): Delete references to `core_has_fake_pid'.
2328 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
2329 (core_open): Delete references to `core_has_fake_pid'.
2330 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
2335 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
2336 Remove language parameter from name_matcher. Adjust the comment.
2337 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
2338 Remove language parameter.
2339 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
2340 * linespec.c (iterate_name_matcher): Likewise.
2341 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
2342 name_matcher. Adjust call accordingly.
2343 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
2344 (maintenance_check_symtabs): Adjust type of parameter "fun".
2345 * psymtab.h (maintenance_check_symtabs): Likewise.
2349 * language.h (symbol_name_match_p_ftype): New typedef.
2350 (struct language_defn): Replace field la_symbol_name_compare
2351 by la_get_symbol_name_match_p.
2352 * ada-lang.c (ada_get_symbol_name_match_p): New function.
2353 (ada_language_defn): Use it.
2354 * linespec.c (struct symbol_matcher_data): New type.
2355 (iterate_name_matcher): Rewrite.
2356 (iterate_over_all_matching_symtabs): Pass a pointer to
2357 a symbol_matcher_data struct to expand_symtabs_matching
2358 instead of just the lookup name.
2359 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
2360 opencl-lang.c, p-lang.c, language.c: Delete field
2361 la_symbol_name_compare, and replace by NULL for new field
2362 la_get_symbol_name_match_p.
2363 * symfile.h (struct quick_symbol_functions): Update comment.
2367 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
2373 * solib.c (update_solib_list): Update the program space's
2374 added_solibs and deleted_solibs fields.
2375 * progspace.h (struct program_space) <added_solibs,
2376 deleted_solibs>: New fields.
2377 (clear_program_space_solib_cache): Declare.
2378 * progspace.c (release_program_space): Call
2379 clear_program_space_solib_cache.
2380 (clear_program_space_solib_cache): New function.
2381 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
2382 bpstat_stop_status. Use handle_solib_event.
2383 * breakpoint.c: Include gdb_regex.h.
2384 (print_solib_event): New function.
2385 (bpstat_print): Use print_solib_event.
2386 (bpstat_stop_status): Add special case for bp_shlib_event.
2387 (handle_solib_event): New function.
2388 (bpstat_what): Use handle_solib_event.
2389 (struct solib_catchpoint): New.
2390 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
2391 (breakpoint_hit_catch_solib, check_status_catch_solib)
2392 (print_it_catch_solib, print_one_catch_solib)
2393 (print_mention_catch_solib, print_recreate_catch_solib): New
2395 (catch_solib_breakpoint_ops): New global.
2396 (catch_load_or_unload, catch_load_command_1)
2397 (catch_unload_command_1): New functions.
2398 (internal_bkpt_check_status): Add special case for
2400 (internal_bkpt_print_it): Use print_solib_event.
2401 (initialize_breakpoint_ops): Initialize
2402 catch_solib_breakpoint_ops.
2403 (_initialize_breakpoint): Register "catch load" and "catch
2405 * breakpoint.h (handle_solib_event): Declare.
2406 * NEWS: Add entry for "catch load" and "catch unload".
2410 * ada-lang.c: Include gdb_vecs.h.
2411 * charset.c: Include gdb_vecs.h.
2412 * tracepoint.h: Include gdb_vecs.h.
2413 * gdb_vecs.h: New file.
2417 * breakpoint.c (breakpoint_hit_catch_fork)
2418 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
2419 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
2420 * infrun.c (inferior_has_forked, inferior_has_vforked)
2421 (inferior_has_execd, inferior_has_called_syscall): Delete.
2422 (handle_syscall_event): Get syscall_number from the execution
2423 control state's wait status.
2424 (wait_for_inferior): Don't clear syscall_number.
2428 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
2429 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
2430 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
2431 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
2433 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
2434 false for events other than TARGET_SIGNAL_TRAP.
2435 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
2437 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
2438 events other than TARGET_SIGNAL_TRAP.
2439 (tracepoint_breakpoint_hit): Add `ws' parameter.
2440 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
2442 (bpstat_stop_status): Same.
2443 (pc_at_non_inline_function): Same.
2444 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
2445 to pass the current event's waitstatus to bpstat_stop_status
2446 and pc_at_non_inline_function.
2451 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
2452 Update the function comment for it.
2453 (source_script_with_search): Call make_cleanup_fclose for STREAM.
2454 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
2459 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
2460 outside `bs->stop' block.
2461 (bpstat_what): Rework bp_shlib_event handling.
2462 (internal_bkpt_check_status): If the breakpoint is a
2463 bp_shlib_event, then set bs->stop and bs->print if
2464 stop_on_solib_events is set.
2468 Delete #if 0'd out code.
2469 * stack.c (print_frame_label_vars): Remove.
2470 (catch_info): Likewise.
2471 (_initialize_stack): Remove "info catch" command.
2472 * NEWS: Mention the above.
2476 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
2478 (remote_notice_new_inferior): If the remote end doesn't support
2479 the multiprocess extensions, then the PID is fake.
2480 (add_current_inferior_and_thread): New.
2481 (remote_start_remote): Use it.
2482 (extended_remote_attach_1): Adjust.
2483 (extended_remote_create_inferior_1): Use
2484 add_current_inferior_and_thread.
2488 Fix watchpoints to be specific for each inferior.
2489 * breakpoint.c (watchpoint_in_thread_scope): Verify also
2490 current_program_space.
2491 * i386-nat.c (i386_inferior_data_cleanup): New.
2492 (i386_inferior_data_get): Replace variable inf_data_local by an
2494 (i386_use_watchpoints): Initialize i386_inferior_data.
2495 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
2496 specific iterate_over_lwps.
2500 Fix watchpoints across inferior fork.
2501 * amd64-linux-nat.c (update_debug_registers_callback): Update the
2502 comment for linux_nat_iterate_watchpoint_lwps.
2503 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
2504 linux_nat_iterate_watchpoint_lwps.
2505 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
2506 * i386-linux-nat.c (update_debug_registers_callback): Update the
2507 comment for linux_nat_iterate_watchpoint_lwps.
2508 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
2509 linux_nat_iterate_watchpoint_lwps.
2510 (i386_linux_prepare_to_resume): New comment on Linux kernel.
2511 * i386-nat.c: Include inferior.h.
2512 (dr_mirror): Remove.
2513 (i386_inferior_data, struct i386_inferior_data)
2514 (i386_inferior_data_get): New.
2515 (i386_debug_reg_state): Use i386_inferior_data_get.
2516 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
2517 (i386_insert_watchpoint, i386_remove_watchpoint)
2518 (i386_stopped_data_address, i386_insert_hw_breakpoint)
2519 (i386_remove_hw_breakpoint): New variable state, use
2520 i386_debug_reg_state instead of DR_MIRROR.
2521 * linux-nat.c (delete_lwp): New declaration.
2522 (num_lwps): Move here from downwards.
2523 (delete_lwp_cleanup): New.
2524 (linux_child_follow_fork): Create new child_lp, call
2525 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
2527 (num_lwps): Move upwards.
2528 (linux_nat_iterate_watchpoint_lwps): New.
2529 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
2530 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
2538 * top.c (caution): Rename to ...
2539 (confirm): ... this.
2540 (show_caution): Rename to ...
2541 (show_confirm): ... this.
2542 (quit_cover): Adjust.
2543 (init_main): Adjust.
2544 * top.h (caution): Rename to ...
2545 (confirm): ... this.
2546 * utils.c (internal_vproblem, defaulted_query): Adjust.
2550 * top.c (caution): Update comment.
2551 (execute_command): Don't consider the current value of `caution'.
2555 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
2559 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2560 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
2561 * target.c (target_fileio_pwrite): Remove buffer address from
2563 (target_fileio_pread): Likewise.
2567 * NEWS: Document remote "info proc" and "generate-core-file".
2571 * gdbarch.sh (find_memory_regions): New callback.
2572 * gdbarch.c, gdbarch.h: Regenerate.
2574 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
2575 callback before falling back to target method.
2577 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
2578 (linux_target_install_ops): No longer install it.
2580 * linux-tdep.c (linux_find_memory_regions): New function.
2581 (linux_init_abi): Install it.
2585 * gdbarch.sh (make_corefile_notes): New architecture callback.
2586 * gdbarch.c: Regenerate.
2587 * gdbarch.h: Likewise.
2589 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
2590 before target_make_corefile_notes. If NULL is returned, the
2591 target does not support core file generation.
2593 * linux-nat.c: Include "linux-tdep.h".
2594 (find_signalled_thread, find_stop_signal): Remove.
2595 (linux_nat_do_thread_registers): Likewise.
2596 (struct linux_nat_corefile_thread_data): Likewise.
2597 (linux_nat_corefile_thread_callback): Likewise.
2598 (iterate_over_spus): Likewise.
2599 (struct linux_spu_corefile_data): Likewise.
2600 (linux_spu_corefile_callback): Likewise.
2601 (linux_spu_make_corefile_notes): Likewise.
2602 (linux_nat_collect_thread_registers): New function.
2603 (linux_nat_make_corefile_notes): Replace contents by call to
2604 linux_make_corefile_notes passing linux_nat_collect_thread_registers
2605 as native-only callback.
2607 * linux-tdep.h: Include "bfd.h".
2608 (struct regcache): Add forward declaration.
2609 (linux_collect_thread_registers_ftype): New typedef.
2610 (linux_make_corefile_notes): Add prototype.
2611 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
2612 "regset.h", and "elf-bfd.h".
2613 (find_signalled_thread, find_stop_signal): New functions.
2614 (linux_spu_make_corefile_notes): Likewise.
2615 (linux_collect_thread_registers): Likewise.
2616 (struct linux_corefile_thread_data): New data structure.
2617 (linux_corefile_thread_callback): New funcion.
2618 (linux_make_corefile_notes): Likewise.
2619 (linux_make_corefile_notes_1): Likewise.
2620 (linux_init_abi): Install it.
2624 * gdbarch.sh (info_proc): New callback.
2625 * gdbarch.c, gdbarch.h: Regenerate.
2627 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
2628 before falling back to the target info_proc callback.
2630 * linux-nat.c: Do not include "cli/cli-utils.h".
2631 (linux_nat_info_proc): Remove.
2632 (linux_target_install_ops): No longer install it.
2634 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
2635 (read_mapping): New function.
2636 (linux_info_proc): Likewise.
2637 (linux_init_abi): Install it.
2641 * defs.h (enum info_proc_what): Moved here from linux-nat.c
2642 * infcmd.c: (info_proc_cmd_1): New function.
2643 (info_proc_cmd): New function, moved here from equivalent routine
2644 orignally in linux-nat.c.
2645 (info_proc_cmd_mappings): Likewise.
2646 (info_proc_cmd_stat): Likewise.
2647 (info_proc_cmd_status): Likewise.
2648 (info_proc_cmd_cwd): Likewise.
2649 (info_proc_cmd_cmdline): Likewise.
2650 (info_proc_cmd_exe): Likewise.
2651 (info_proc_cmd_all): Likewise.
2652 (_initialize_infcmd): Install "info proc" command and subcommands.
2654 * target.h (struct target_ops): Add to_info_proc.
2655 (target_info_proc): Add prototype.
2656 * target.c (target_info_proc): New function.
2658 * procfs.c (procfs_info_proc): Add prototype.
2659 (info_proc_cmd): Rename into ...
2660 (procfs_info_proc): ... this. Update argument types as appropriate
2661 for a to_info_proc implementation. Handle "what" argument.
2662 (procfs_target): Install procfs_info_proc.
2663 (_initialize_procfs): No longer install "info proc" command.
2665 * linux-nat.c: (enum info_proc_what): Remove.
2666 (linux_nat_info_proc_cmd_1): Rename into ...
2667 (linux_nat_info_proc): ... this. Update argument types as appropriate
2668 for a to_info_proc implementation.
2669 (linux_nat_info_proc_cmd): Remove.
2670 (linux_nat_info_proc_cmd_mappings): Likewise.
2671 (linux_nat_info_proc_cmd_stat): Likewise.
2672 (linux_nat_info_proc_cmd_status): Likewise.
2673 (linux_nat_info_proc_cmd_cwd): Likewise.
2674 (linux_nat_info_proc_cmd_cmdline): Likewise.
2675 (linux_nat_info_proc_cmd_exe): Likewise.
2676 (linux_nat_info_proc_cmd_all): Likewise.
2677 (linux_target_install_ops): Install linux_nat_info_proc.
2678 (_initialize_linux_nat): No longer install "info proc" command
2683 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
2684 * config.in, configure: Regenerate.
2686 * target.h (struct target_ops): Add to_fileio_readlink.
2687 (target_fileio_readlink): Add prototype.
2688 * target.c (target_fileio_readlink): New function.
2690 * inf-child.c: Conditionally include <sys/param.h>.
2691 (inf_child_fileio_readlink): New function.
2692 (inf_child_target): Install it.
2694 * remote.c (PACKET_vFile_readlink): New enum value.
2695 (remote_hostio_readlink): New function.
2696 (init_remote_ops): Install it.
2697 (_initialize_remote): Handle vFile:readlink packet type.
2702 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
2703 * config.in, configure: Regenerate.
2705 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
2706 to_fileio_pread, to_fileio_close, to_fileio_unlink.
2707 (target_fileio_open): Add prototype.
2708 (target_fileio_pwrite): Likewise.
2709 (target_fileio_pread): Likewise.
2710 (target_fileio_close): Likewise.
2711 (target_fileio_unlink): Likewise.
2712 (target_fileio_read_alloc): Likewise.
2713 (target_fileio_read_stralloc): Likewise.
2715 * target.c: Include "gdb/fileio.h".
2716 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
2717 (default_fileio_target): New function.
2718 (target_fileio_open): Likewise.
2719 (target_fileio_pwrite): Likewise.
2720 (target_fileio_pread): Likewise.
2721 (target_fileio_close): Likewise.
2722 (target_fileio_unlink): Likewise.
2723 (target_fileio_close_cleanup): Likewise.
2724 (target_fileio_read_alloc_1): Likewise.
2725 (target_fileio_read_alloc): Likewise.
2726 (target_fileio_read_stralloc): Likewise.
2728 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
2729 <fcntl.h>, and <unistd.h>.
2730 (inf_child_fileio_open_flags_to_host): New function.
2731 (inf_child_errno_to_fileio_error): Likewise.
2732 (inf_child_fileio_open): Likewise.
2733 (inf_child_fileio_pwrite): Likewise.
2734 (inf_child_fileio_pread): Likewise.
2735 (inf_child_fileio_close): Likewise.
2736 (inf_child_fileio_unlink): Likewise.
2737 (inf_child_target): Install to_fileio routines.
2739 * remote.c (init_remote_ops): Install to_fileio routines.
2744 * remote.c (remote_multi_process_p): Only check for multi-process
2745 protocol feature, do not check for extended protocol.
2746 (remote_supports_multi_process): Check for extended protocol here.
2747 (set_general_process): Likewise.
2748 (extended_remote_kill): Likewise.
2749 (remote_pid_to_str): Likewise.
2750 (remote_query_supported): Always query multiprocess mode.
2755 * inferior.h (struct inferior): Add fake_pid_p.
2756 * inferior.c (exit_inferior_1): Clear fake_pid_p.
2757 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
2758 magic_null_ptid since the remote side doesn't provide a real PID.
2762 * NEWS: Combine the two Python sections.
2766 * target.h (target_close): Update comment on the target's unpush state.
2770 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
2771 linux_nat_async directly instead of going through the target
2773 * target.c (unpush_target): Close target after unpushing it, not
2778 * mdebugread.c (sort_blocks): Replace integer constants with ones
2779 derived from FIRST_LOCAL_BLOCK.
2785 * symfile.c (find_separate_debug_file): New function.
2786 (terminate_after_last_dir_separator): Likewise.
2787 (find_separate_debug_file_by_debuglink): Also try realpath.
2788 * configure.ac (AC_CHECK_FUNCS): Add lstat.
2789 * configure: Regenerate.
2790 * config.in: Regenerate.
2794 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
2795 (main.o): Remove rule.
2796 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
2797 (--with-sysroot): Rewrite.
2798 * configure: Regenerate.
2799 * config.in: Regenerate.
2803 * parse.c (initialize_expout): New function.
2804 (reallocate_expout): Likewise.
2805 (parse_exp_in_context): Use `initialize_expout' and
2806 `reallocate_expout' when appropriate.
2810 * record.c (struct record_breakpoint, record_breakpoint_p)
2811 (record_breakpoints): New.
2812 (record_insert_breakpoint, record_remove_breakpoint): Manage
2813 record breakpoints list. Only remove breakpoints from the
2814 inferior if they had been inserted there in the first place.
2818 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
2819 if we know we don't have a file name to look for.
2823 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
2824 the frame's stop reason is UNWIND_UNAVAILABLE.
2828 Fix compilation error.
2829 * m2-exp.y (yyerror): Use ANSI C prototype.
2833 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
2834 (growbuf_by_size): Likewise.
2835 (yyerror): Likewise.
2836 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
2837 (modblock): Remove variable (was #if 0'ed).
2838 (parse_number): Convert prototype from K&R to ANSI C.
2839 (yyerror): Likewise.
2840 * objc-exp.y (parse_number): Likewise.
2841 (yyerror): Likewise.
2842 (yylex): Remove #if 0'ed code.
2843 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
2844 (yyerror): Likewise.
2849 * symtab.h (compare_filenames_for_search): Declare.
2850 * symtab.c (compare_filenames_for_search): New function.
2851 (iterate_over_some_symtabs): Use it.
2852 * symfile.h (struct quick_symbol_functions)
2853 <map_symtabs_matching_filename>: Change spec.
2854 * psymtab.c (partial_map_symtabs_matching_filename): Use
2855 compare_filenames_for_search. Update for new spec.
2856 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
2857 compare_filenames_for_search. Update for new spec.
2858 * breakpoint.c (clear_command): Use compare_filenames_for_search.
2863 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
2864 (struct main_type) <flag_flag_enum>: New field.
2865 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
2866 * NEWS: Add entries.
2867 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
2869 * python/lib/gdb/printing.py (_EnumInstance): New class.
2870 (FlagEnumerationPrinter): Likewise.
2874 * breakpoint.c (create_sals_from_address_default): New function.
2875 (create_breakpoints_sal_default): Likewise.
2876 (decode_linespec_default): Likewise.
2877 (is_marker_spec): Removed.
2878 (strace_marker_p): New function.
2879 (init_breakpoint_sal): Using `strace_marker_p' instead of
2881 (create_breakpoint): Call method `create_sals_from_address' from
2882 breakpoint_ops, replacing code that created SALs conditionally
2883 on the type of the breakpoint. Call method `create_breakpoints_sal',
2884 replacing code that created breakpoints conditionally on the type
2886 (base_breakpoint_create_sals_from_address): New function.
2887 (base_breakpoint_create_breakpoints_sal): Likewise.
2888 (base_breakpoint_decode_linespec): Likewise.
2889 (base_breakpoint_ops): Add methods
2890 `base_breakpoint_create_sals_from_address',
2891 `base_breakpoint_create_breakpoints_sal' and
2892 `base_breakpoint_decode_linespec'.
2893 (bkpt_create_sals_from_address): New function.
2894 (bkpt_create_breakpoints_sal): Likewise.
2895 (bkpt_decode_linespec): Likewise.
2896 (tracepoint_create_sals_from_address): Likewise.
2897 (tracepoint_create_breakpoints_sal): Likewise.
2898 (tracepoint_decode_linespec): Likewise.
2899 (strace_marker_create_sals_from_address): Likewise.
2900 (strace_marker_create_breakpoints_sal): Likewise.
2901 (strace_marker_decode_linespec): Likewise.
2902 (strace_marker_breakpoint_ops): New variable.
2903 (addr_string_to_sals): Remove `marker_spec'. Call method
2904 `decode_linespec' from breakpoint_ops, replacing code that decoded
2905 an address string into a SAL. Use `strace_marker_p' instead of
2907 (strace_command): Decide whether we are dealing with a static
2908 tracepoint with marker or not. Use the appropriate breakpoint_ops.
2909 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
2910 * breakpoint.h (linespec_result, linespec_sals): New forward
2912 (breakpoint_ops) <create_sals_from_address>,
2913 <create_breakpoints_sal>, <decode_linespec>: New methods.
2917 * NEWS: Update text for "maint set python print-stack".
2918 It is deprecated in gdb 7.4 and deleted in 7.5.
2922 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
2927 * configure: Regenerate.
2928 * config.in: Regenerate.
2933 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
2934 (ANONYMOUS_UNION_NAME): Define.
2935 (is_path_expr_parent): New function.
2936 (get_path_expr_parent): New function.
2937 (is_anonymous_child): New function.
2938 (create_child_with_value): If the child is anonymous and without
2939 a name, assign an object name to it.
2940 (c_describe_child): Use get_path_expr_parent to determine
2941 the parent expression.
2942 If there field represents an anonymous struct or union and
2943 has no name, set an appropriate display name and expression.
2944 (cplus_describe_child): Likewise.
2948 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
2949 available when %ebp is found to be zero (outermost).
2953 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
2954 an internal gdb_static_assert.
2955 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
2960 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
2961 catch" and "catch throw".
2965 * blockframe.c (block_innermost_frame): Start search from selected
2966 frame, if present, or otherwise the current frame.
2968 * c-exp.y (variable): Update innermost_block for
2969 'block COLONCOLON NAME' clause.
2970 * m2-exp.y (variable): Ditto.
2971 * objc-exp.y (variable): Ditto.
2976 * python/python.c (finish_python_initialization): Set sys.argv.
2980 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
2981 "want_line_info". All callers updated.
2982 (dwarf_decode_lines_1): New function.
2983 (handle_DW_AT_stmt_list): Add function comment.
2984 New arg "want_line_info". All callers updated.
2985 (read_file_scope,read_type_unit_scope): Move comment from
2986 handle_DW_AT_stmt_list to here.
2990 Fix regression after libiberty/ update for GCC PR 6057 and others.
2991 * c-exp.y (operator) <OPERATOR DELETE>
2992 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
2993 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
2994 (make_builtin_type, make_name): New variable i, add gdb_assert.
2995 (operator) <OPERATOR NEW>: Update ARGS to 3.
2996 (operator) <OPERATOR DELETE>: Add trailing space.
2997 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
2998 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
2999 * cp-support.c (cp_canonicalize_string): Check NULL from
3000 cp_comp_to_string, call warning and return.
3004 Fix duplicate .o files after omitting libbfd.a.
3005 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
3006 (SFILES): Add corelow.c.
3007 (COMMON_OBS): Add corelow.o.
3008 (ALLDEPFILES): Remove corelow.c.
3009 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
3010 * config/alpha/alpha-osf3.mh: Likewise.
3011 * config/alpha/fbsd.mh: Likewise.
3012 * config/arm/nbsdaout.mh: Likewise.
3013 * config/arm/nbsdelf.mh: Likewise.
3014 * config/i386/i386gnu.mh: Likewise.
3015 * config/ia64/hpux.mh: Likewise.
3016 * config/ia64/linux.mh: Likewise.
3017 * config/m32r/linux.mh: Likewise.
3018 * config/m68k/linux.mh: Likewise.
3019 * config/mips/irix5.mh: Likewise.
3020 * config/mips/irix6.mh: Likewise.
3021 * config/pa/hpux.mh: Likewise.
3022 * config/pa/linux.mh: Likewise.
3023 * config/powerpc/aix.mh: Likewise.
3024 * config/sparc/linux.mh: Likewise.
3025 * config/sparc/linux64.mh: Likewise.
3026 * config/sparc/sol2.mh: Likewise.
3027 * config/vax/vax.mh: Likewise.
3028 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
3029 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
3030 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
3031 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
3032 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
3033 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
3034 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
3035 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
3036 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
3037 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
3038 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
3039 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
3040 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
3041 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
3042 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
3043 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
3044 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
3045 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
3046 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
3047 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
3048 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
3049 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
3050 corelow.o from gdb_target_obs.
3051 * corefile.c (core_target): Update the comment on NULL value.
3052 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
3053 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
3054 MATCHES. Drop YUMMY set on NULL.
3055 (core_close): Do not call exit_inferior_silent on zero PID. Do not
3056 reclaim CORE_DATA if it is already NULL.
3060 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
3061 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
3065 * breakpoint.c (wrapper.h): Don't include.
3069 * Makefile.in (SFILES): Remove wrapper.c.
3070 (HFILES_NO_SRCDIR): Remove wrapper.h.
3071 (COMMON_OBS): Remove wrapper.o.
3072 * cli/cli-interp.c: Don't inlude wrapper.h.
3073 * corelow.c: Likewise.
3074 (core_open): Replace gdb_target_find_new_threads with
3075 TRY_CATCH around target_find_new_threads.
3076 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
3077 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
3078 * varobj.c (varobj_create): Likewise for parse_exp_1 and
3079 evaluate_expression.
3080 (varobj_set_value): Likewise for evaluate_expression and
3082 (install_new_variable): Likewise for value_fetch_lazy.
3083 (adjust_value_for_child_access): Likewise for value_ind.
3084 (c_describe_child): Likewise for value_subscript and
3086 (c_value_of_root): Likewise for evaluate_expression.
3087 * wrapper.c: Remove.
3088 * wrapper.h: Remove.
3092 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
3093 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
3094 "abfd" args with "section". All callers updated.
3095 Error checking code moved ...
3096 (error_check_comp_unit_head): ... here. New function.
3097 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
3098 Delete arg "abfd". New arg "type_offset". All callers updated.
3099 (create_debug_types_hash_table): Simplify by using
3100 read_and_check_type_unit_head.
3102 * parser-defs.h (namecopy): Delete.
3103 * parse.c (namecopy, namecopy_size): Move into copy_name.
3107 Partially fix duplicate .o files after omitting libbfd.a.
3108 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
3109 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3110 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
3111 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3112 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
3113 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
3114 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
3118 * MAINTAINERS: Update my email address.
3122 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
3123 n_type_units. Rename type_comp_units to all_type_units.
3125 (add_signatured_type_cu_to_table): Renamed from
3126 add_signatured_type_cu_to_list. All callers updated.
3128 * gdbtypes.h (struct cplus_struct_type): Delete member
3129 nfn_fields_total. All uses removed.
3133 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
3135 (dwarf2_find_comp_unit): Delete.
3136 (process_psymtab_comp_unit): Make result "void".
3137 Delete args buffer, info_ptr, buffer_size, and replace with
3138 "section". All callers updated.
3139 (dwarf2_build_psymtabs_hard): Simplify.
3144 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
3145 before `struct gdb_exception'.
3146 * breakpoint.c (update_global_location_list_nothrow)
3147 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
3148 * cp-abi.c (value_rtti_type): Likewise.
3149 * cp-support.c (cp_validate_operator): Likewise.
3150 * infrun.c (insert_exception_resume_breakpoint)
3151 (check_exception_resume, keep_going): Likewise.
3152 * mi-interp.c (mi_breakpoint_created)
3153 (mi_breakpoint_modified): Likewise.
3154 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
3155 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
3156 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
3160 * dwarf2read.c (statement_prologue): Delete, unused.
3162 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
3163 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
3165 * dwarf2read.c (comp_unit_header): Delete, unused.
3169 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
3170 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
3174 * infrun.c (normal_stop): Don't skip calling the normal_stop
3175 observers if the thread was doing a multi-step, but stopped for
3176 some reason other than stepping.
3180 * cli/cli-decode.h: Add comments.
3181 (CMD_LIST_AMBIGUOUS): Moved to command.h
3182 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
3183 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
3184 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
3185 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
3186 (add_com, add_com_alias, add_info, add_info_alias)
3187 (complete_on_cmdlist, complete_on_enum, help_list): Remove
3189 * command.h: Add and adjust comments.
3190 (CMD_LIST_AMBIGUOUS): Moved here.
3191 (help_cmd, help_cmd_list): Delete declarations.
3195 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
3196 All callers updated.
3197 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
3198 Replace all arguments with "per_cu". All callers updated.
3200 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
3202 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
3203 New arg "per_cu". All callers updated.
3205 Delete #if 0'd out code.
3206 * language.c (binop_result_type): Delete.
3207 (simple_type, ordered_type, same_type, integral_type): Delete.
3208 (numeric_type, character_type, string_type, boolean_type): Delete.
3209 (float_type, structured_type): Delete.
3210 * language.h: Update.
3214 * python/py-value.c (valpy_binop): Initialize 'res_val'.
3218 * corefile.c (close_exec_file): Delete.
3219 (reopen_exec_file): Remove commented out code that seems related
3220 to close_exec_file, which is being deleted here.
3221 * inferior.h (close_exec_file): Delete.
3222 * fork-child.c (fork_inferior): Remove call to fork_inferior.
3226 * ada-lang.c: #include "cli/cli-utils.h".
3227 (get_selections): Use skip_spaces.
3228 (ada_get_next_arg): Use skip_spaces and skip_to_space.
3229 (catch_ada_exception_command_split): Use skip_spaces.
3230 (ada_decode_assert_location): Likewise.
3234 * linespec.c (decode_line_internal): Check for C++ or Java
3235 compound constructs only if the current language is C, C++
3243 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
3244 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
3246 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
3247 fall through into AT_ENTRY_POINT.
3248 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
3250 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
3251 PPC_INSN_SIZE skip to 3 times.
3255 * linespec.c (add_minsym): Preserve function descriptors.
3259 * breakpoint.c (all_locations_are_pending): Consider locations
3260 in program spaces executing during startup pending as well.
3264 Copyright year update in most files of the GDB Project.
3268 * copyright.sh: Delete.
3269 * copyright.py: Rewrite.
3273 * gnulib/extra/update-copyright: New file, imported from gnulib.
3277 * README (Copyright and License Notices): New section.
3282 * python/py-value.c (valpy_dereference, valpy_get_address
3283 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
3284 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
3285 (valpy_absolute, valpy_richcompare): Free intermediate values.
3289 * ada-lang.c: Reformat the copyright notice.
3293 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3294 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
3295 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
3296 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
3297 Revert this part of:
3299 Build gdb directly from *.o files not using libgdb.a.
3300 * Makefile.in (COMMON_OBS): Remove solib-target.o.
3304 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
3305 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
3306 Reformat the copyright header.
3310 Revert this part of:
3312 Remove the gdbtui binary.
3313 * gdb.c (main): Remove args.interpreter_p initialization.
3314 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
3315 * main.h (struct captured_main_args): Remove interpreter_p.
3319 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
3323 * top.c (print_gdb_version): Update copyright year.
3327 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
3332 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
3333 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
3335 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
3336 fall through into AT_ENTRY_POINT.
3337 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
3339 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
3340 PPC_INSN_SIZE skip to 3 times.
3344 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
3346 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
3350 Build gdb directly from *.o files not using libgdb.a.
3351 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
3352 (COMMON_OBS): Remove solib-target.o.
3353 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
3354 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
3355 (LIBGDB_OBS, libgdb.a): Move it above.
3356 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
3357 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
3358 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
3359 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
3360 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
3361 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
3362 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
3363 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
3364 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
3365 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
3366 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3367 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
3368 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
3369 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
3370 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
3371 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
3372 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
3373 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
3374 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
3375 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
3376 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
3377 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
3378 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
3379 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
3380 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
3381 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
3382 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
3386 Remove the gdbtui binary.
3387 * .gitignore (/gdbtui): Remove.
3388 * Makefile.in (TUI): Remove.
3389 (SUBDIR_TUI_OBS): Remove tui-main.o.
3390 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
3391 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
3392 (tui-main.o): Remove.
3393 (all_object_files): Remove tui-main.o.
3394 * NEWS: New note for the gdbtui removal.
3395 * configure: Rebuilt.
3396 * configure.ac: No longer add all-tui, clean-tui, install-tui and
3397 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
3398 CONFIG_UNINSTALL respectively.
3399 * gdb.c (main): Remove args.interpreter_p initialization.
3400 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
3401 * main.h (struct captured_main_args): Remove interpreter_p.
3402 * tui/tui-main.c: Remove.
3406 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
3407 (dwarf2_physname, read_import_statement): Ditto.
3408 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
3409 (process_structure_scope read_subroutine_type): Ditto.
3410 (read_typedef, load_partial_dies, read_partial_die): Ditto.
3411 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
3412 (dwarf2_fetch_die_location_block): Ditto.
3413 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
3415 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
3416 All callers updated.
3417 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
3418 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
3419 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
3421 * dwarf2read.c (load_cu): Move assert to more useful location.
3423 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
3424 All callers updated.
3426 * dwarf2read.c (dwarf2_per_objfile): Add comment.
3427 (dwarf2_elf_names): Minor reformat.
3428 (dwarf2_per_cu_data): Tweak comment.
3429 (dwarf2_read_section): Fix comment.
3430 (create_all_comp_units): Fix comment.
3431 (load_full_comp_unit): Fix comment.
3432 (process_full_comp_unit): Fix comment.
3433 (read_signatured_type): Fix comment.
3435 For older changes see ChangeLog-2011.
3441 version-control: never