1 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
5 (amd64_regset_from_core_section): Remove dynamic regset
7 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
9 (amd64obsd_regset_from_core_section): Remove dynamic regset
11 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
13 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
14 x86-common regset supply function.
15 * i386-tdep.c (i386_collect_gregset): Make static.
16 (i386_gregset): New global regset structure.
17 (i386_fpregset, i386_xstateregset): New static regset structures.
18 (i386_regset_from_core_section): Remove dynamic regset
20 (i386_gdbarch_init): Remove initialization of tdep fields
21 'gregset', 'fpregset', and 'xstateregset'.
22 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
23 'fpregset', and 'xstateregset'.
24 (i386_collect_gregset): Remove prototype.
25 (i386_gregset): New declaration.
26 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
28 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
31 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
33 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
34 (arm_linux_vfpregset): New static regset structures.
35 (arm_linux_regset_from_core_section): Remove dynamic allocation of
37 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
38 and 'vfpregset' fields.
40 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
42 * aarch64-linux-tdep.c (aarch64_linux_gregset)
43 (aarch64_linux_fpregset): New static regset structures.
44 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
46 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
49 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
51 * regset.h (struct regset): Remove gdbarch field.
52 * regset.c (regset_alloc): Drop initialization of gdbarch field.
53 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
54 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
56 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
57 (ppc32_linux_fpregset, ppc32_linux_vrregset)
58 (ppc32_linux_vsxregset): Likewise.
59 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
60 via the regcache instead of the regset.
61 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
62 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
63 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
64 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
67 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
69 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
71 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
72 (alphanbsd_aout_gregset): Likewise.
73 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
74 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
76 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
77 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
79 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
80 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
81 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
82 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
83 * m88k-tdep.c (m88k_gregset): Likewise.
84 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
85 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
86 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
87 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
88 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
89 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
90 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
91 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
92 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
94 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
95 * sh-tdep.h (sh_corefile_gregset): Likewise.
96 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
97 * vax-tdep.c (vax_gregset): Likewise.
99 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
101 Fix TLS access for -static -pthread.
102 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
103 (try_thread_db_load_1): Initialize it.
104 (thread_db_get_thread_local_address): Call it if LM is zero.
105 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
106 * target.h (struct target_ops) (to_get_thread_local_address): Add
107 load_module_addr comment.
109 2014-05-21 Pedro Alves <palves@redhat.com>
111 * dcache.c (dcache_read_memory_partial): If reading the cache line
112 fails, fallback to reading just the memory the caller wanted.
114 2014-05-20 Doug Evans <dje@google.com>
116 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
117 instead of get_current_arch.
119 2014-05-20 Pedro Alves <palves@redhat.com>
121 * NEWS: Mention that compare-sections now works with all targets.
123 * remote.c (PACKET_qCRC): New enum value.
124 (remote_verify_memory): Don't send qCRC if the target has no
125 execution. Use packet_support/packet_ok. If the target doesn't
126 support the qCRC packet, fallback to a deep memory copy.
127 (compare_sections_command): Say "target image" instead of "remote
129 (_initialize_remote): Add PACKET_qCRC to the list of config
130 packets that have no associated command. Extend comment.
131 * target.c (simple_verify_memory, default_verify_memory): New
133 * target.h (struct target_ops) <to_verify_memory>: Default to
134 default_verify_memory.
135 (simple_verify_memory): New declaration.
136 * target-delegates.c: Regenerate.
138 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
140 * record-btrace.c (record_btrace_step_thread): Check for empty history.
142 2014-05-20 Hui Zhu <hui@codesourcery.com>
143 Yao Qi <yao@codesourcery.com>
146 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
147 and change address of sp and pc.
149 2014-05-19 Tom Tromey <tromey@redhat.com>
151 * gdbtypes.c (rank_function): Use XNEWVEC.
152 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
154 2014-05-19 Doug Evans <dje@google.com>
156 * dwarf2read.c (build_type_psymtabs_1): Renamed from
157 build_type_unit_groups and moved closer to only caller. Remove
158 arguments. All references updated. Remove outdated .gdb_index
160 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
161 build_type_psymtabs_1.
163 2014-05-19 Doug Evans <dje@google.com>
165 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
166 n_type_unit_groups, all_type_unit_groups. All uses removed.
167 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
168 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
169 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
170 (add_type_unit_group_to_table): Delete.
172 2014-05-19 Doug Evans <dje@google.com>
174 * eval.c (evaluate_subexp_standard): Add some comments.
176 2014-05-17 Doug Evans <xdje42@gmail.com>
178 * progspace.c (remove_program_space): Delete, unused.
179 * progspace.h (remove_program_space): Ditto.
181 2014-05-17 Doug Evans <xdje42@gmail.com>
183 * inferior.c (prune_inferiors): Fix comment.
184 (remove_inferior_command): Call prune_program_spaces.
186 2014-05-16 Doug Evans <dje@google.com>
188 New command line option -D.
190 * main.c (set_gdb_data_directory): New function.
191 (captured_main): Recognize -D. Flag error for --data-directory "".
192 Call set_gdb_data_directory.
193 (print_gdb_help): Print --data-directory, -D.
194 * main.h (set_gdb_data_directory): Declare.
195 * top.c (staged_gdb_datadir): New static global.
196 (set_gdb_datadir): Call set_gdb_data_directory
197 (show_gdb_datadir): New function.
198 (init_main): Update init of data-directory parameter.
200 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
202 Import the "dirfd" gnulib module.
203 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
204 * gnulib/aclocal.m4: Update.
205 * gnulib/config.in: Update.
206 * gnulib/configure: Update.
207 * gnulib/import/Makefile.am: Update.
208 * gnulib/import/Makefile.in: Update.
209 * gnulib/import/dirfd.c: New.
210 * gnulib/import/m4/dirfd.m4: New.
211 * gnulib/import/m4/gnulib-cache.m4: Update.
212 * gnulib/import/m4/gnulib-comp.m4: Update.
214 2014-05-16 Pierre Muller <muller@sourceware.org>
215 Yao Qi <yao@codesourcery.com>
217 * valprint.c (print_wchar): Move the code on checking whether
218 W is a printable wide char to the default branch of switch
219 statement below. Call wchar_printable instead of gdb_iswprint.
221 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
223 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
224 ldr.w and ldrd instructions.
226 2014-05-15 Doug Evans <dje@google.com>
228 * dwarf2read.c (read_structure_type): Delete outdated comments.
230 2014-05-14 Tom Tromey <tromey@redhat.com>
232 * macrocmd.c (print_macro_definition): Reindent.
234 2014-05-13 Doug Evans <xdje42@gmail.com>
236 * python/py-cmd.c (cmdpy_completer): Add comment.
237 (completers): Make const.
239 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
241 * infrun.c (resume): Remove should_resume (unused). Move up
242 declaration of resume_ptid.
244 2014-05-13 Tom Tromey <tromey@redhat.com>
246 * language.h (unop_type_check): Remove.
247 (binop_type_check): Don't declare.
249 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
251 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
252 call to regcache_raw_collect.
254 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
256 * mi/mi-console.c (mi_console_raw_packet): Use the value from
257 mi_console->quote as the quoting character.
259 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
261 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
263 2014-04-29 Tom Tromey <tromey@redhat.com>
265 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
268 2014-05-07 Kyle McMartin <kyle@redhat.com>
270 Pushed by Joel Brobecker <brobecker@adacore.com>.
271 * aarch64-tdep.c (aarch64_software_single_step): New function.
272 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
273 with aarch64_software_single_step.
275 2014-05-05 Joel Brobecker <brobecker@adacore.com>
279 2014-05-05 Keith Seitz <keiths@redhat.com>
281 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
282 variable or history value is successfully parsed.
284 2014-05-05 Yao Qi <yao@codesourcery.com>
285 Pedro Alves <palves@redhat.com>
287 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
288 address of blocks that intersects the requested range. Trim
289 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
291 * ctf.c (ctf_xfer_partial): Likewise.
293 2014-05-05 Yao Qi <yao@codesourcery.com>
295 * printcmd.c (display_command): Remove the check to
296 target_has_execution.
298 2014-05-03 Mark Kettenis <kettenis@gnu.org>
300 * ppcobsd-nat.c: Include "obsd-nat.h".
301 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
303 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
305 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
307 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
308 and 16-bit signed and unsigned arguments. Update comment.
309 (stap_parse_probe_arguments): Extend code to handle such
310 arguments. Use warning instead of complaint to notify about
311 unrecognized bitness.
313 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
316 * stap-probe.c (stap_parse_probe_arguments): Simplify
317 check for non-prefixed probes (i.e., probes whose
318 arguments do not start with "N@"). Always set the
319 argument type to a sane value.
321 2014-05-01 David Taylor <dtaylor@emc.com>
323 * remote.c (compare_sections_command): Add -r option to compare
324 all loadable read-only sections.
326 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
328 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
329 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
331 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
332 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
333 Remove unused CORE_ADDR argument. Update all callers.
335 2014-04-29 Pedro Alves <palves@redhat.com>
337 * remote.c (struct packet_config) <detect>: Extend comment.
338 (add_packet_config_cmd): Don't set the config's detect or support
340 (init_all_packet_configs): Also initialize the config's 'detect'
342 (reset_all_packet_configs_support): New function.
343 (remote_open_1): Call reset_all_packet_configs_support instead of
344 init_all_packet_configs.
345 (_initialize_remote): Initialize all packet configs. Assert that
346 all packets have an associated command, except a few known
349 2014-04-28 Joel Brobecker <brobecker@adacore.com>
351 * dwarf2read.c (read_subrange_type): Handle dynamic
352 DW_AT_lower_bound attributes.
354 2014-04-28 Joel Brobecker <brobecker@adacore.com>
356 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
357 dynamic bounds before computing its upper bound.
358 (ada_discrete_type_low_bound): Same as above with the lower bound.
360 2014-04-28 Joel Brobecker <brobecker@adacore.com>
362 * dwarf2read.c (is_dynamic_type): Return true for dynamic
363 range types. Adjust the array handling implementation to
364 take advantage of this change.
365 (resolve_dynamic_range): New function, mostly extracted from
366 resolve_dynamic_bounds.
367 (resolve_dynamic_array): New function, mostly extracted from
368 resolve_dynamic_bounds.
369 (resolve_dynamic_bounds): Delete.
370 (resolve_dynamic_type): Reimplement. Add handling of
371 TYPE_CODE_RANGE types.
373 2014-04-28 Joel Brobecker <brobecker@adacore.com>
375 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
376 handling of parallel ___XA types.
378 2014-04-28 Joel Brobecker <brobecker@adacore.com>
380 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
381 unnecessary second call to static_unwrap_type.
383 2014-04-27 Hui Zhu <hui@codesourcery.com>
385 * stack.c (print_frame_info): Call do_gdb_disassembly with
386 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
388 2014-04-26 Doug Evans <xdje42@gmail.com>
390 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
392 2014-04-25 Pedro Alves <palves@redhat.com>
395 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
396 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
397 and newline from built string.
398 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
399 (linux_ptrace_attach_fail_reason): ... this.
400 * linux-nat.c (linux_nat_attach): Adjust to use
401 linux_ptrace_attach_fail_reason.
403 2014-04-25 Pedro Alves <palves@redhat.com>
405 * remote.c (struct remote_state): Remove multi_process_aware,
406 non_stop_aware, cond_tracepoints, cond_breakpoints,
407 breakpoint_commands, fast_tracepoints, static_tracepoints,
408 install_in_trace, disconnected_tracing,
409 enable_disable_tracepoints, string_tracing, and
410 augmented_libraries_svr4_read fields.
411 (remote_multi_process_p): Move further below in the file.
412 (struct packet_config): Add comments.
413 (update_packet_config): Delete function.
414 (show_packet_config_cmd): Use packet_config_support.
415 (add_packet_config_cmd): Use NULL as set callback.
416 (packet_ok): "set remote foo-packet"-style commands no longer
417 change config->supported -- adjust.
418 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
419 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
420 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
421 (PACKET_QNonStop, PACKET_multiprocess_feature)
422 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
423 (PACKET_DisconnectedTracing_feature)
424 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
425 (set_remote_protocol_packet_cmd): Delete function.
426 (packet_config_support, packet_support): New functions.
427 (set_remote_protocol_Z_packet_cmd): Don't call
428 update_packet_config.
429 (remote_query_attached, remote_pass_signals)
430 (remote_program_signals, remote_threads_info)
431 (remote_threads_extra_info, remote_start_remote): Use
433 (remote_start_remote): Use packet_config_support and
435 (init_all_packet_configs): Set all packets to unknown support,
436 instead of calling update_packet_config.
437 (remote_check_symbols): Use packet_support.
438 (remote_supported_packet): Unconditionally set the packet config's
440 (remote_multi_process_feature, remote_non_stop_feature)
441 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
442 (remote_breakpoint_commands_feature)
443 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
444 (remote_install_in_trace_feature)
445 (remote_disconnected_tracing_feature)
446 (remote_enable_disable_tracepoint_feature)
447 (remote_string_tracing_feature)
448 (remote_augmented_libraries_svr4_read_feature): Delete functions.
449 (remote_protocol_features): Adjust to use remote_supported_packet
450 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
451 "ConditionalTracepoints", "ConditionalBreakpoints",
452 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
453 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
454 "EnableDisableTracepoints", and "tracenz".
455 (remote_query_supported): Use packet_support.
456 (remote_open_1): Adjust.
457 (extended_remote_attach_1): Use packet_support. Switch on the
458 result of packet_ok instead of checking whether the packet ended
460 (remote_vcont_resume): Use packet_support.
461 (remote_resume, remote_stop_ns, fetch_register_using_p)
462 (remote_prepare_to_store, store_register_using_P)
463 (check_binary_download, remote_write_bytes): Use packet_support.
464 (remote_vkill): Use packet_support. Switch on the result of
465 packet_ok instead of checking whether the packet ended up
467 (extended_remote_supports_disable_randomization): Use
469 (extended_remote_run): Switch on the result of packet_ok instead
470 of checking whether the packet ended up disabled.
471 (remote_insert_breakpoint, remote_remove_breakpoint)
472 (remote_insert_watchpoint, remote_remove_watchpoint)
473 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
475 (remote_search_memory): Use packet_config_support.
476 (remote_get_thread_local_address, remote_get_tib_address)
477 (remote_hostio_send_command, remote_can_execute_reverse): Use
479 (remote_supports_cond_tracepoints)
480 (remote_supports_cond_breakpoints)
481 (remote_supports_fast_tracepoints)
482 (remote_supports_static_tracepoints)
483 (remote_supports_install_in_trace)
484 (remote_supports_enable_disable_tracepoint)
485 (remote_supports_string_tracing)
486 (remote_can_run_breakpoint_commands): Rewrite, checking whether
487 the packet config says the feature is enabled or disabled.
488 (remote_download_tracepoint, remote_trace_set_readonly_regions)
489 (remote_get_trace_status): Use packet_support.
490 (remote_set_disconnected_tracing): Adjust to check whether the
491 feature is enabled with packet_support.
492 (remote_set_trace_buffer_size, remote_use_agent)
493 (remote_can_use_agent, remote_supports_btrace): Use
495 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
496 Use packet_config_support.
497 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
498 the packet config says the feature is enabled or disabled.
499 (set_range_stepping): Use packet_support.
501 2014-04-25 Tom Tromey <tromey@redhat.com>
503 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
506 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
508 * NEWS: Mention support for C99 variable length arrays.
510 2014-04-24 Joel Brobecker <brobecker@adacore.com>
512 * ada-lang.c (standard_exc): Expand introductory comment.
514 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
515 Walfred Tedeschi <walfred.tedeschi@intel.com>
517 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
519 (amd64_linux_read_description): Add code to handle AVX512 xstate
520 mask and return respective tdesc.
521 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
522 and features/i386/x32-avx512-linux.c.
523 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
524 (amd64_linux_core_read_description): Add code to handle AVX512
525 xstate mask and return respective tdesc.
526 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
527 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
529 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
530 (tdesc_amd64_avx512_linux): New prototype.
531 (tdesc_x32_avx512_linux): Likewise.
532 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
533 features/i386/x32-avx512.c.
534 (amd64_ymm_avx512_names): New register names for pseudo
536 (amd64_ymmh_avx512_names): New register names for raw registers
538 (amd64_k_names): New register names for K registers.
539 (amd64_zmmh_names): New register names for ZMM raw registers.
540 (amd64_zmm_names): New registers names for ZMM pseudo registers.
541 (amd64_xmm_avx512_names): New register names for XMM16-31
543 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
545 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
546 if feature is present.
547 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
548 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
549 (AMD64_NUM_REGS): Adjust to new number of registers.
550 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
551 registers supplied via XSTATE by AVX512 registers.
552 (i386_linux_read_description): Add case for AVX512.
553 * i386-linux-tdep.c: Include i386-avx512-linux.c.
554 (i386_linux_gregset_reg_offset): Add AVX512 registers.
555 (i386_linux_core_read_description): Add case for AVX512.
556 (i386_linux_init_abi): Install supported register note section
558 (_initialize_i386_linux_tdep): Add call to tdesc init function for
560 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
561 registers to be number of zmm7h + 1.
562 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
563 * i386-tdep.c: Include features/i386/i386-avx512.c.
564 (i386_zmm_names): Add ZMM pseudo register names array.
565 (i386_zmmh_names): Add ZMM raw register names array.
566 (i386_k_names): Add K raw register names array.
567 (num_lower_zmm_regs): Add constant for the number of lower ZMM
568 registers. AVX512 has 16 more ZMM registers than there are YMM
570 (i386_zmmh_regnum_p): Add function to look up register number of
572 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
573 (i386_k_regnum_p): Likewise for K raw registers.
574 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
575 registers added by AVX512.
576 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
577 registers added by AVX512.
578 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
580 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
581 (i386_pseudo_register_name): Add ZMM pseudo registers.
582 (i386_zmm_type): Construct and return vector registers type for ZMM
584 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
585 ZMM0-31 pseudo registers and K registers.
586 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
587 and YMM16-31 registers from register cache.
588 (i386_pseudo_register_write): Add code to write K, ZMM and
590 (i386_register_reggroup_p): Add code to include/exclude AVX512
591 registers in/from respective register groups.
592 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
593 registers if feature is present in xcr0.
594 (i386_gdbarch_init): Add code to initialize AVX512 feature
595 variables in tdep structure, wire in pseudo registers and call
596 initialize_tdesc_i386_avx512.
597 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
599 (i386_regnum): Add AVX512 registers.
600 (I386_SSE_NUM_REGS): New define for number of SSE registers.
601 (I386_AVX_NUM_REGS): Likewise for AVX registers.
602 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
603 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
605 (i386_xmm_avx512_regnum_p): New prototype for register look up.
606 (i386_ymm_avx512_regnum_p): Likewise.
607 (i386_k_regnum_p): Likewise.
608 (i386_zmm_regnum_p): Likewise.
609 (i386_zmmh_regnum_p): Likewise.
610 * i387-tdep.c : Update year in copyright notice.
611 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
613 (XSAVE_YMM_AVX512_ADDR): New macro.
614 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
616 (XSAVE_XMM_AVX512_ADDR): New macro.
617 (xsave_avx512_k_offset): New table for K register offsets in
619 (XSAVE_AVX512_K_ADDR): New macro.
620 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
622 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
623 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
625 (i387_collect_xsave): Add code to collect AVX512 registers from
627 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
628 of XMM16-31 registers.
629 (I387_NUM_K_REGS): New define for number of K registers.
630 (I387_K0_REGNUM): New define for K0 register number.
631 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
632 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
633 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
635 (I387_YMM16H_REGNUM): New define for YMM16H register number.
636 (I387_XMM16_REGNUM): New define for XMM16 register number.
637 (I387_YMM0_REGNUM): New define for YMM0 register number.
638 (I387_KEND_REGNUM): New define for last K register number.
639 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
640 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
642 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
644 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
646 * features/Makefile: Add AVX512 related files.
647 * features/i386/32bit-avx512.xml: New file.
648 * features/i386/64bit-avx512.xml: Likewise.
649 * features/i386/amd64-avx512-linux.c: Likewise.
650 * features/i386/amd64-avx512-linux.xml: Likewise.
651 * features/i386/amd64-avx512.c: Likewise.
652 * features/i386/amd64-avx512.xml: Likewise.
653 * features/i386/i386-avx512-linux.c: Likewise.
654 * features/i386/i386-avx512-linux.xml: Likewise.
655 * features/i386/i386-avx512.c: Likewise.
656 * features/i386/i386-avx512.xml: Likewise.
657 * features/i386/x32-avx512-linux.c: Likewise.
658 * features/i386/x32-avx512-linux.xml: Likewise.
659 * features/i386/x32-avx512.c: Likewise.
660 * features/i386/x32-avx512.xml: Likewise.
661 * regformats/i386/amd64-avx512-linux.dat: New file.
662 * regformats/i386/amd64-avx512.dat: Likewise.
663 * regformats/i386/i386-avx512-linux.dat: Likewise.
664 * regformats/i386/i386-avx512.dat: Likewise.
665 * regformats/i386/x32-avx512-linux.dat: Likewise.
666 * regformats/i386/x32-avx512.dat: Likewise.
667 * NEWS: Add note about new support for AVX512.
670 2014-04-23 Pedro Alves <palves@redhat.com>
672 * breakpoint.c (insert_bp_location): Tolerate errors if the
673 breakpoint is set in a user-loaded objfile.
674 (remove_breakpoint_1): Likewise. Also tolerate errors if the
675 location is marked shlib_disabled. If the breakpoint is set in a
676 user-loaded objfile is a GDB-side memory breakpoint, validate it
677 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
678 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
680 * mem-break.c (memory_validate_breakpoint): New function.
681 * objfiles.c (userloaded_objfile_contains_address_p): New
683 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
684 * target.h (memory_validate_breakpoint): New declaration.
686 2014-04-23 Pedro Alves <palves@redhat.com>
688 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
689 the breakpoint is set in a shared library, only suppress
690 errors for software breakpoints, not hardware breakpoints.
692 2014-04-22 Pedro Alves <palves@redhat.com>
694 * infrun.c (schedlock_applies): New function, factored out from
695 find_thread_needs_step_over.
696 (find_thread_needs_step_over): Use it.
697 (switch_back_to_stepped_thread): Always clear trap_expected if the
698 step over is finished. Return early if scheduler locking applies.
699 Look for the stepping thread and a potential step-over thread with
701 (currently_stepping_or_nexting_callback): Delete.
703 2014-04-22 Nick Clifton <nickc@redhat.com>
705 * NEWS: Mention that ARM sim now supports tracing.
707 2014-04-22 Yao Qi <yao@codesourcery.com>
709 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
711 * tracefile.c (tracefile_fetch_registers): ... it. New
713 * tracefile.h (tracefile_fetch_registers): Declare.
714 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
715 tracefile_fetch_registers.
717 2014-04-19 Eli Zaretskii <eliz@gnu.org>
720 * windows-nat.c (thread_rec): Don't display a warning when
721 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
722 fails for any reason, set th->suspended to -1, so that we don't
723 try to resume such a thread. Also, don't return NULL in these
724 cases, to avoid completely ruin the session due to "PC register is
725 not available" error.
726 (do_windows_fetch_inferior_registers): Check errors in
727 GetThreadContext call.
728 (windows_continue): Accept an additional argument KILLED; if not
729 zero, ignore errors in the SetThreadContext call, since the
730 inferior was killed and is shutting down.
731 (windows_resume, get_windows_debug_event)
732 (windows_create_inferior, windows_mourn_inferior)
733 (windows_kill_inferior): All callers of windows_continue changed
734 to adjust to its new calling sequence.
736 2014-04-19 Yao Qi <yao@codesourcery.com>
738 * ctf.c (ctf_open): Call post_create_inferior.
740 2014-04-19 Yao Qi <yao@codesourcery.com>
742 * ctf.c (handle_id): New static variable.
743 (ctf_open_dir): Get handle_id from bt_context_add_trace return
744 value. Get the declaration of event "register" and get length
747 2014-04-19 Yao Qi <yao@codesourcery.com>
749 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
751 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
753 * valops.c (oload_method_static): Remove unnecessary argument
754 METHOD. Update all callers.
756 2014-04-18 Pedro alves <palves@redhat.com>
757 Tom Tromey <tromey@redhat.com>
760 * frame.c (get_prev_frame_1): Rename to ...
761 (get_prev_frame_always): ... this, and make extern. Adjust.
762 (skip_artificial_frames): Use get_prev_frame_always.
763 (frame_unwind_caller_id, frame_pop, get_prev_frame)
764 (get_frame_unwind_stop_reason): Adjust to rename.
765 * frame.h (get_prev_frame_always): Declare.
766 * inline-frame.c: Include frame.h.
767 (inline_frame_this_id): Use get_prev_frame_always.
769 2014-04-18 Tristan Gingold <gingold@adacore.com>
771 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
772 code by using bfd_mach_o_get_base_address.
774 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
776 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
777 (spu_ax_pseudo_register_collect): New function.
778 (spu_ax_pseudo_register_push_stack): Likewise.
779 (spu_dwarf_reg_to_regnum): Likewise.
780 (spu_gdbarch_init): Install them. Append DWARF unwinders.
782 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
784 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
785 Replace FRAME argument with FRAME_ID.
786 * gdbarch.c, gdbarch.h: Regenerate.
787 * findvar.c (default_value_from_register): Add GDBARCH argument;
788 replace FRAME by FRAME_ID. No longer call get_frame_id.
789 (value_from_register): Update call to gdbarch_value_from_register.
790 * value.h (default_value_from_register): Update prototype.
791 * s390-linux-tdep.c (s390_value_from_register): Update interface
792 and call to default_value_from_register.
793 * spu-tdep.c (spu_value_from_register): Likewise.
795 * findvar.c (address_from_register): Remove TYPE argument.
796 Do not call value_from_register; use gdbarch_value_from_register
797 with null_frame_id instead.
798 * value.h (address_from_register): Update prototype.
799 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
800 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
801 address_from_register interface change.
803 2014-04-17 Yao Qi <yao@codesourcery.com>
805 * gdbtypes.h: Update comments to link to types and macros'
808 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
810 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
812 2014-04-16 Keith Seitz <keiths@redhat.com>
815 * dwarf2read.c (skip_one_die): Check that all relative-offset
816 sibling DIEs fall within range of the current reader's buffer.
817 (read_partial_die): Likewise.
819 2014-04-16 Keith Seitz <keiths@redhat.com>
822 * cp-namespace.c (lookup_symbol_file): If the type name of
823 `this' is NULL, return immediately.
825 2014-04-14 Keith Seitz <keiths@redhat.com>
828 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
829 from symbol_matches_domain in symtab.c. All local callers
830 of symbol_matches_domain updated.
831 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
832 search STRUCT_DOMAIN.
833 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
834 independently. standard_lookup will do that automatically.
835 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
836 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
837 (cp_lookup_symbol_in_namespace): Likewise.
838 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
839 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
840 may return a STRUCT_DOMAIN match.
841 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
842 * cp-support.c: Include language.h.
843 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
845 * psymtab.c (match_partial_symbol): Compare the requested
846 domain with the symbol's domain directly.
847 (lookup_partial_symbol): Likewise.
848 * symtab.c (lookup_symbol_in_language): Explain when/why
849 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
850 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
851 appropriate languages.
852 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
853 and moved to ada-lang.c
854 (lookup_block_symbol): Explain that this function only returns
855 symbol matching the requested DOMAIN.
856 Compare the requested domain with the symbol's domain directly.
857 (iterate_over_symbols): Compare the requested domain with the
858 symbol's domain directly.
859 * symtab.h (symbol_matches_domain): Remove.
861 2014-04-14 Tom Tromey <tromey@redhat.com>
864 * c-exp.y (type_aggregate_p): New function.
865 (qualified_name, classify_inner_name): Use it.
866 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
867 and TYPE_TARGET_TYPE of an enum type.
868 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
870 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
871 handle TYPE_DECLARED_CLASS.
872 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
874 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
875 * valops.c (enum_constant_from_type): New function.
876 (value_aggregate_elt): Use it.
877 * cp-namespace.c (cp_lookup_nested_symbol): Handle
880 2014-04-14 Tom Tromey <tromey@redhat.com>
882 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
883 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
885 * value.h (value_aggregate_elt): Update.
887 2014-04-14 Tom Tromey <tromey@redhat.com>
889 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
891 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
893 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
894 (evaluate_subexp_standard): Pass noside argument.
895 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
896 if noside equals EVAL_NORMAL. If the subscript yields a vla type
897 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
898 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
899 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
901 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
903 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
904 points to a constant blob.
906 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
908 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
909 property and store it as the high bound and flag the range accordingly.
910 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
911 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
912 * gdbtypes.h (enum range_flags): New enum.
913 (struct range_bounds): Add flags member.
915 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
917 * c-typeprint.c (c_type_print_varspec_suffix): Added
918 check for not yet resolved high bound. If unresolved, print
919 "variable length" string to the console instead of random
922 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
924 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
926 (ada_template_to_fixed_record_type_1): Likewise.
927 (ada_to_fixed_type_1): Likewise.
928 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
929 (cp_print_value): Likewise.
930 * d-valprint.c (dynamic_array_type): Likewise.
931 * findvar.c (address_of_variable): Likewise.
932 * jv-valprint.c (java_value_print): Likewise.
933 * valops.c (value_ind): Likewise.
934 * value.c (coerce_ref): Likewise.
936 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
938 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
939 value and retrieve the dynamic type size.
941 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
943 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
944 passed to sizeof is dynamic evaluate the argument to compute the length.
946 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
947 Joel Brobecker <brobecker@adacore.com>
949 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
950 (dwarf2_evaluate_property): New function.
951 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
952 * dwarf2read.c (attr_to_dynamic_prop): New function.
953 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
955 * gdbtypes.c: Include dwarf2loc.h.
956 (is_dynamic_type): New function.
957 (resolve_dynamic_type): New function.
958 (resolve_dynamic_bounds): New function.
959 (get_type_length): New function.
960 (check_typedef): Use get_type_length to compute type length.
961 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
962 (TYPE_LOW_BOUND_KIND): New macro.
963 (is_dynamic_type): New function prototype.
964 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
965 to resolve dynamic properties of the type. Update comment.
966 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
968 2014-04-14 Richard Henderson <rth@redhat.com>
970 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
972 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
973 Doug Evans <xdje42@gmail.com>
975 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
976 dereference TYPE_CODE_REF values.
978 2014-04-11 Joel Brobecker <brobecker@adacore.com>
980 Revert the following changes due to regressions:
982 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
983 (dwarf2_evaluate_property): New function.
984 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
985 * dwarf2read.c (attr_to_dynamic_prop): New function.
986 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
988 * gdbtypes.c: Include dwarf2loc.h.
989 (is_dynamic_type): New function.
990 (resolve_dynamic_type): New function.
991 (resolve_dynamic_bounds): New function.
992 (get_type_length): New function.
993 (check_typedef): Use get_type_length to compute type length.
994 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
995 (TYPE_LOW_BOUND_KIND): New macro.
996 (is_dynamic_type): New function prototype.
997 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
998 to resolve dynamic properties of the type. Update comment.
999 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1001 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1002 passed to sizeof is dynamic evaluate the argument to compute the length.
1004 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1005 value and retrieve the dynamic type size.
1007 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1008 (ada_template_to_fixed_record_type_1): Likewise.
1009 (ada_to_fixed_type_1): Likewise.
1010 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1011 (cp_print_value): Likewise.
1012 * d-valprint.c (dynamic_array_type): Likewise.
1013 * eval.c (evaluate_subexp_with_coercion): Likewise.
1014 * findvar.c (address_of_variable): Likewise.
1015 * jv-valprint.c (java_value_print): Likewise.
1016 * valops.c (value_ind): Likewise.
1017 * value.c (coerce_ref): Likewise.
1019 * c-typeprint.c (c_type_print_varspec_suffix): Added
1020 check for not yet resolved high bound. If unresolved, print
1021 "variable length" string to the console instead of random
1024 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1025 property and store it as the high bound and flag the range accordingly.
1026 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1027 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1028 * gdbtypes.h (enum range_flags): New enum.
1029 (struct range_bounds): Add flags member.
1031 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1032 points to a constant blob.
1034 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1035 (evaluate_subexp_standard): Pass noside argument.
1036 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1037 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1038 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1039 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1040 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1042 2014-04-11 Keith Seitz <keiths@redhat.com>
1045 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1046 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1049 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1051 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1052 (evaluate_subexp_standard): Pass noside argument.
1053 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1054 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1055 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1056 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1057 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1059 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1061 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1062 points to a constant blob.
1064 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1066 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1067 property and store it as the high bound and flag the range accordingly.
1068 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1069 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1070 * gdbtypes.h (enum range_flags): New enum.
1071 (struct range_bounds): Add flags member.
1073 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1075 * c-typeprint.c (c_type_print_varspec_suffix): Added
1076 check for not yet resolved high bound. If unresolved, print
1077 "variable length" string to the console instead of random
1080 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1082 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1083 (ada_template_to_fixed_record_type_1): Likewise.
1084 (ada_to_fixed_type_1): Likewise.
1085 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1086 (cp_print_value): Likewise.
1087 * d-valprint.c (dynamic_array_type): Likewise.
1088 * eval.c (evaluate_subexp_with_coercion): Likewise.
1089 * findvar.c (address_of_variable): Likewise.
1090 * jv-valprint.c (java_value_print): Likewise.
1091 * valops.c (value_ind): Likewise.
1092 * value.c (coerce_ref): Likewise.
1094 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1096 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1097 value and retrieve the dynamic type size.
1099 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1101 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1102 passed to sizeof is dynamic evaluate the argument to compute the length.
1104 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1106 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1107 (dwarf2_evaluate_property): New function.
1108 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1109 * dwarf2read.c (attr_to_dynamic_prop): New function.
1110 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1112 * gdbtypes.c: Include dwarf2loc.h.
1113 (is_dynamic_type): New function.
1114 (resolve_dynamic_type): New function.
1115 (resolve_dynamic_bounds): New function.
1116 (get_type_length): New function.
1117 (check_typedef): Use get_type_length to compute type length.
1118 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1119 (TYPE_LOW_BOUND_KIND): New macro.
1120 (is_dynamic_type): New function prototype.
1121 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1122 to resolve dynamic properties of the type. Update comment.
1123 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1125 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1127 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1128 declaring high/low bounds and change uses accordingly. Call
1129 create_range_type instead of create_static_range_type.
1130 * gdbtypes.c (create_range_type): New function.
1131 (create_range_type): Convert bounds into struct bound_prop and pass
1132 them to create_range_type.
1133 * gdbtypes.h (struct bound_prop): New struct.
1134 (create_range_type): New function prototype.
1135 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1136 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1137 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1139 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1141 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1143 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1144 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1145 * ada-lang.c: All uses of create_range_type updated.
1146 * coffread.c: All uses of create_range_type updated.
1147 * dwarf2read.c: All uses of create_range_type updated.
1148 * f-exp.y: All uses of create_range_type updated.
1149 * m2-valprint.c: All uses of create_range_type updated.
1150 * mdebugread.c: All uses of create_range_type updated.
1151 * stabsread.c: All uses of create_range_type updated.
1152 * valops.c: All uses of create_range_type updated.
1153 * valprint.c: All uses of create_range_type updated.
1155 2014-04-10 Pedro Alves <palves@redhat.com>
1157 * breakpoint.c (single_step_breakpoints)
1158 (single_step_gdbarch): Move up in the file.
1159 (one_breakpoint_xfer_memory): New function, factored out from ...
1160 (breakpoint_xfer_memory): ... here. Also process single-step
1163 2014-04-09 Tristan Gingold <gingold@adacore.com>
1165 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1167 (darwin_decode_exception_message): Free port only after use.
1169 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1171 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1172 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1173 when setting the size of call_length.
1175 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1177 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1178 dereference TYPE_CODE_REF values.
1180 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1182 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1183 end of warning message.
1185 2014-04-03 Doug Evans <dje@google.com>
1187 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1188 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1190 2014-04-02 Alan Modra <amodra@gmail.com>
1192 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1193 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1194 (struct symbol_file_add_from_memory_args): Add size field.
1195 (find_vdso_size): New function.
1196 (add_vsyscall_page): Attempt to find vdso size.
1198 2014-04-01 Doug Evans <dje@google.com>
1200 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1202 2014-04-01 Tristan Gingold <gingold@adacore.com>
1204 * darwin-nat.c (darwin_encode_reply): Add prototype.
1205 (darwin_decode_exception_message): Reply to unknown inferiors.
1206 (darwin_decode_message): Handle message by id. Ignore message
1207 to unknown inferior.
1208 (darwin_wait): Discard unknown messages, add debug trace.
1210 2014-03-31 Doug Evans <dje@google.com>
1212 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1215 2014-03-31 Doug Evans <dje@google.com>
1217 New option "set print symbol-loading".
1219 * solib.c (solib_read_symbols): Only print symbol loading messages
1221 (solib_add): If symbol loading is in "brief" mode, notify user
1222 symbols are being loaded.
1223 (reload_shared_libraries_1): Ditto.
1224 * symfile.c (print_symbol_loading_off): New static global.
1225 (print_symbol_loading_brief): New static global.
1226 (print_symbol_loading_full): New static global.
1227 (print_symbol_loading_enums): New static global.
1228 (print_symbol_loading): New static global.
1229 (print_symbol_loading_p): New function.
1230 (symbol_file_add_with_addrs): Only print symbol loading messages
1232 (_initialize_symfile): Register "print symbol-loading" set/show
1234 * symfile.h (print_symbol_loading_p): Declare.
1236 2014-03-30 Doug Evans <xdje42@gmail.com>
1238 * infrun.c (set_last_target_status): New function.
1239 (handle_inferior_event): Call it.
1241 2014-03-30 Doug Evans <xdje42@gmail.com>
1243 * inferior.h (enum stop_kind): Improve comment.
1245 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1247 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1248 a reference, strip the reference layer before calling
1249 the lang_ops value_has_mutated callback.
1251 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1253 Remove some globals from our parser.
1254 * language.c (unk_lang_parser): Add "struct parser_state"
1256 * language.h (struct language_defn) <la_parser>: Likewise.
1257 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1258 (initialize_expout): Add "struct parser_state" argument.
1259 Rewrite function to use the parser state.
1260 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1261 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1262 write_exp_elt_longcst, write_exp_elt_dblcst,
1263 write_exp_elt_decfloatcst, write_exp_elt_type,
1264 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1265 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1266 write_dollar_variable): Likewise.
1267 (parse_exp_in_context_1): Use parser state.
1268 (insert_type_address_space): Add "struct parser_state" argument.
1270 (increase_expout_size): New function.
1271 * parser-defs.h: Forward declare "struct language_defn" and
1272 "struct parser_state".
1273 (expout, expout_size, expout_ptr): Remove extern declarations.
1274 (parse_gdbarch, parse_language): Rewrite macro declarations to
1275 accept the parser state.
1276 (struct parser_state): New struct.
1277 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1278 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1279 write_exp_elt_decfloatcst, write_exp_elt_type,
1280 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1281 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1282 write_exp_msymbol, write_dollar_variable,
1283 mark_struct_expression, insert_type_address_space): Add "struct
1284 parser_state" argument.
1285 (increase_expout_size): New function.
1286 * utils.c (do_clear_parser_state): New function.
1287 (make_cleanup_clear_parser_state): Likewise.
1288 * utils.h (make_cleanup_clear_parser_state): New function
1290 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1291 Update calls to write_exp* in order to pass the parser state.
1292 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1293 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1294 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1295 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1296 * stap-probe.c (stap_parse_register_operand): Likewise.
1297 (stap_parse_single_operand): Likewise.
1298 (stap_parse_argument_1): Likewise.
1299 (stap_parse_argument): Use parser state.
1300 * stap-probe.h: Include "parser-defs.h".
1301 (struct stap_parse_info) <pstate>: New field.
1302 * c-exp.y (parse_type): Rewrite to use parser state.
1303 (yyparse): Redefine to c_parse_internal.
1304 (pstate): New global variable.
1305 (parse_number): Add "struct parser_state" argument.
1306 (write_destructor_name): Likewise.
1307 (type_exp): Update calls to write_exp* and similars in order to
1309 (exp1, exp, variable, qualified_name, space_identifier,
1310 typename, typebase): Likewise.
1311 (write_destructor_name, parse_number, lex_one_token,
1312 classify_name, classify_inner_name, c_parse): Add "struct
1313 parser_state" argument. Update function to use parser state.
1314 * c-lang.h: Forward declare "struct parser_state".
1315 (c_parse): Add "struct parser_state" argument.
1316 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1317 (yyparse): Redefine macro to ada_parse_internal.
1318 (pstate): New variable.
1319 (write_int, write_object_renaming, write_var_or_type,
1320 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1321 type_int, type_long, type_long_long, type_float, type_double,
1322 type_long_double, type_char, type_boolean, type_system_address):
1323 Add "struct parser_state" argument.
1324 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1325 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1326 var_or_type, aggregate, aggregate_component_list,
1327 positional_list, others, component_group,
1328 component_associations): Update calls to write_exp* and similar
1329 functions in order to use parser state.
1330 (ada_parse, write_var_from_sym, write_int,
1331 write_exp_op_with_string, write_object_renaming,
1332 find_primitive_type, write_selectors, write_ambiguous_var,
1333 write_var_or_type, write_name_assoc, type_int, type_long,
1334 type_long_long, type_float, type_double, type_long_double,
1335 type_char, type_boolean, type_system_address): Add "struct
1336 parser_state" argument. Adjust function to use parser state.
1337 * ada-lang.c (parse): Likewise.
1338 * ada-lang.h: Forward declare "struct parser_state".
1339 (ada_parse): Add "struct parser_state" argument.
1340 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1341 calls to both functions.
1342 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1344 (yyparse): Redefine macro to f_parse_internal.
1345 (pstate): New variable.
1346 (parse_number): Add "struct parser_state" argument.
1347 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1348 and similars in order to use parser state.
1349 (parse_number): Adjust code to use parser state.
1351 (f_parse): New function.
1352 * f-lang.h: Forward declare "struct parser_state".
1353 (f_parse): Add "struct parser_state" argument.
1354 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1356 (yyparse): Redefine macro for java_parse_internal.
1357 (pstate): New variable.
1358 (push_expression_name, push_expression_name, insert_exp): Add
1359 "struct parser_state" argument.
1360 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1361 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1362 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1363 PostIncrementExpression, PostDecrementExpression,
1364 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1365 UnaryExpressionNotPlusMinus, CastExpression,
1366 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1367 RelationalExpression, EqualityExpression, AndExpression,
1368 ExclusiveOrExpression, InclusiveOrExpression,
1369 ConditionalAndExpression, ConditionalOrExpression,
1370 ConditionalExpression, Assignment, LeftHandSide): Update
1371 calls to write_exp* and similars in order to use parser state.
1372 (parse_number): Ajust code to use parser state.
1374 (java_parse): New function.
1375 (push_variable): Add "struct parser_state" argument. Adjust
1376 code to user parser state.
1377 (push_fieldnames, push_qualified_expression_name,
1378 push_expression_name, insert_exp): Likewise.
1379 * jv-lang.h: Forward declare "struct parser_state".
1380 (java_parse): Add "struct parser_state" argument.
1381 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1383 (yyparse): Redefine macro to m2_parse_internal.
1384 (pstate): New variable.
1385 (type_exp, exp, fblock, variable, type): Update calls to
1386 write_exp* and similars to use parser state.
1388 (m2_parse): New function.
1389 * m2-lang.h: Forward declare "struct parser_state".
1390 (m2_parse): Add "struct parser_state" argument.
1391 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1392 * objc-lang.h: Forward declare "struct parser_state".
1393 (end_msglist): Add "struct parser_state" argument.
1394 * p-exp.y (parse_type): Rewrite macro to use parser state.
1395 (yyparse): Redefine macro to pascal_parse_internal.
1396 (pstate): New variable.
1397 (parse_number): Add "struct parser_state" argument.
1398 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1399 write_exp* and similars in order to use parser state.
1400 (parse_number, yylex): Adjust code to use parser state.
1401 (pascal_parse): New function.
1402 * p-lang.h: Forward declare "struct parser_state".
1403 (pascal_parse): Add "struct parser_state" argument.
1404 * go-exp.y (parse_type): Rewrite macro to use parser state.
1405 (yyparse): Redefine macro to go_parse_internal.
1406 (pstate): New variable.
1407 (parse_number): Add "struct parser_state" argument.
1408 (type_exp, exp1, exp, variable, type): Update calls to
1409 write_exp* and similars in order to use parser state.
1410 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1411 to use parser state.
1412 (go_parse): Likewise.
1413 * go-lang.h: Forward declare "struct parser_state".
1414 (go_parse): Add "struct parser_state" argument.
1416 2014-03-27 Doug Evans <dje@google.com>
1418 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1420 2014-03-27 Doug Evans <dje@google.com>
1422 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1423 Remove argument abbrev_section. All callers updated.
1425 2014-03-27 Doug Evans <dje@google.com>
1427 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1428 addr_base, ranges_base.
1430 2014-03-26 Keith Seitz <keiths@redhat.com>
1432 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1433 types, not VAR_DOMAIN.
1435 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1437 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1439 * features/nios2-linux.c: Regenerated.
1440 * features/nios2.c: Regenerated.
1442 2014-03-25 Pedro Alves <palves@redhat.com>
1444 * cli/cli-script.c (script_from_file): Force the interpreter to
1447 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1449 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1450 small stack allocation.
1452 2014-03-24 Tristan Gingold <gingold@adacore.com>
1454 * darwin-nat.c (exc_server): Remove unused prototype.
1455 (darwin_dump_message): Correctly display data on x86_64.
1456 (darwin_encode_reply): Fix style.
1457 Add comments and fix indentation.
1459 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1461 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1463 2014-03-22 Doug Evans <xdje42@gmail.com>
1465 * infcmd.c: Whitespace fixes.
1466 (interrupt_command): Merge two function comments into one.
1468 2014-03-22 Doug Evans <xdje42@gmail.com>
1470 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1473 2014-03-22 Yao Qi <yao@codesourcery.com>
1475 * remote.c (target_read_live_memory): Remove.
1476 (memory_xfer_live_readonly_partial): Rename it to
1477 remote_xfer_live_readonly_partial. Remove argument 'object'.
1478 All callers updated. Call remote_read_bytes_1
1479 instead of target_read_live_memory.
1480 * tracepoint.c (set_traceframe_number): Remove.
1481 (make_cleanup_restore_traceframe_number): Likewise .
1482 * tracepoint.h (set_traceframe_number): Remove declaration.
1483 (make_cleanup_restore_traceframe_number): Likewise.
1485 2014-03-22 Yao Qi <yao@codesourcery.com>
1487 * remote.c (remote_read_bytes): Move code on reading from the
1489 (remote_read_bytes_1): ... here. New function.
1491 2014-03-22 Yao Qi <yao@codesourcery.com>
1493 * ctf.c (ctf_xfer_partial): Check the return value of
1494 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1495 return TARGET_XFER_UNAVAILABLE.
1496 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1497 * target.c (target_read_live_memory): Move it to remote.c.
1498 (memory_xfer_live_readonly_partial): Likewise.
1499 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1500 * remote.c (target_read_live_memory): Moved from target.c.
1501 (memory_xfer_live_readonly_partial): Likewise.
1502 (remote_read_bytes): Factored out from
1503 memory_xfer_partial_1.
1505 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1507 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1510 2014-03-21 Pedro Alves <palves@redhat.com>
1512 * infrun.c (normal_stop): Extend comment.
1514 2014-03-21 Hui Zhu <hui@codesourcery.com>
1515 Pedro Alves <palves@redhat.com>
1517 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1519 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1520 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1521 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1523 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1525 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1526 `z' formatted output modifier.
1528 2014-03-20 Tom Tromey <tromey@redhat.com>
1529 Sergio Durigan Junior <sergiodj@redhat.com>
1531 * probe.c (parse_probes): Turn assert into an ordinary error.
1532 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1533 exceptions when parsing probes. Rearrange the code for clarity.
1535 2014-03-20 Tom Tromey <tromey@redhat.com>
1538 * top.c (execute_command): Only dispatch events if the command
1541 2014-03-20 Tom Tromey <tromey@redhat.com>
1544 * infcall.c: Include event-top.h.
1545 (run_inferior_call): Call async_disable_stdin if needed.
1547 2014-03-20 Pedro Alves <palves@redhat.com>
1549 * infrun.c (prepare_to_proceed): Delete.
1550 (thread_still_needs_step_over): New function.
1551 (find_thread_needs_step_over): New function.
1552 (proceed): If the current thread needs a step-over, set its
1553 steping_over_breakpoint flag. Adjust to use
1554 find_thread_needs_step_over instead of prepare_to_proceed.
1555 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1556 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1558 (switch_back_to_stepped_thread): Step over breakpoints of all
1559 threads not the stepping thread, before switching back to the
1562 2014-03-20 Pedro Alves <palves@redhat.com>
1564 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1566 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1567 * infrun.c (saved_singlestep_ptid)
1568 (stepping_past_singlestep_breakpoint): Delete.
1569 (resume): Remove stepping_past_singlestep_breakpoint handling.
1570 (proceed): Store the prev_pc of the stepping thread too.
1571 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1573 (enum infwait_states): Delete infwait_thread_hop_state.
1574 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1576 (handle_inferior_event): Adjust.
1577 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1578 handling and the thread-hop code. Before removing single-step
1579 breakpoints, check whether the thread hit a single-step breakpoint
1580 of another thread. If it did, the trap is not a random signal.
1581 (switch_back_to_stepped_thread): If the event thread hit a
1582 single-step breakpoint, unblock it before switching to the
1583 stepping thread. Handle the case of the stepped thread having
1585 (keep_going): Handle the case of the current thread moving past a
1586 single-step breakpoint.
1588 2014-03-20 Pedro Alves <palves@redhat.com>
1591 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1592 are being stepped over.
1593 (breakpoint_address_match): Make extern.
1594 * breakpoint.h (breakpoint_address_match): New declaration.
1595 * inferior.h (stepping_past_instruction_at): New declaration.
1596 * infrun.c (struct step_over_info): New type.
1597 (step_over_info): New global.
1598 (set_step_over_info, clear_step_over_info)
1599 (stepping_past_instruction_at): New functions.
1600 (handle_inferior_event): Clear the step-over info when
1601 trap_expected is cleared.
1602 (resume): Remove now stale comment.
1603 (clear_proceed_status): Clear step-over info.
1604 (proceed): Adjust step-over handling to set or clear the step-over
1605 info instead of removing all breakpoints.
1606 (handle_signal_stop): When setting up a thread-hop, don't remove
1608 (stop_stepping): Clear step-over info.
1609 (keep_going): Adjust step-over handling to set or clear step-over
1610 info and then always inserting breakpoints, instead of removing
1611 all breakpoints when stepping over one.
1613 2014-03-20 Pedro Alves <palves@redhat.com>
1615 * infrun.c (previous_inferior_ptid): Adjust comment.
1616 (deferred_step_ptid): Delete.
1617 (infrun_thread_ptid_changed, prepare_to_proceed)
1618 (init_wait_for_inferior): Adjust.
1619 (handle_signal_stop): Delete deferred_step_ptid handling.
1621 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1624 * defs.h (sync_quit_force_run): New declaration.
1625 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1626 * event-top.c (async_sigterm_handler): New declaration.
1627 (async_sigterm_token): New variable.
1628 (async_init_signals): Create also async_sigterm_token.
1629 (async_sigterm_handler): New function.
1630 (sync_quit_force_run): New variable.
1631 (handle_sigterm): Replace quit_force call by other calls.
1632 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1634 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1636 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1637 offset into SPE pseudo registers.
1639 2014-03-18 Pedro Alves <palves@redhat.com>
1642 * inferior.h (print_stop_event): Declare.
1643 * infrun.c (print_stop_event): New, factored out from ...
1644 (normal_stop): ... this.
1645 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1646 of bpstat_print/print_stack_frame.
1648 2014-03-17 Tom Tromey <tromey@redhat.com>
1650 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1652 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1654 * ada-lang.c (decode_constrained_packed_array): Perform a
1655 minimal coercion for reference with coerce_ref instead of
1658 2014-03-17 Tristan Gingold <gingold@adacore.com>
1660 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1661 (darwin_solib_create_inferior_hook): Emit a warning if version
1664 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
1666 * python/py-value.c (get_field_flag): Cast flag_name argument to
1667 PyObject_GetAttrString to support Python 2.4.
1669 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1671 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1672 (Global Maintainers): Remove Jan Kratochvil.
1674 2014-03-14 Pedro Alves <palves@redhat.com>
1676 * inferior.h (terminal_ours_for_output): Rename to ...
1677 (child_terminal_ours_for_output): ... this.
1678 (terminal_save_ours): Rename to ...
1679 (child_terminal_save_ours): ... this.
1680 (terminal_ours): Rename to ...
1681 (child_terminal_ours): ... this.
1682 (terminal_inferior): Rename to ...
1683 (child_terminal_inferior): ... this.
1684 (terminal_init_inferior): Rename to ...
1685 (child_terminal_init_inferior): ... this.
1686 (terminal_init_inferior_with_pgrp): Rename to ...
1687 (child_terminal_init_inferior_with_pgrp): ... this.
1688 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1689 (child_terminal_init_with_pgrp): ... this.
1690 (terminal_save_ours): Rename to ...
1691 (child_terminal_save_ours): ... this.
1692 (terminal_init_inferior): Rename to ...
1693 (child_terminal_init): ... this. Adjust.
1694 (terminal_inferior): Rename to ...
1695 (child_terminal_inferior): ... this.
1696 (terminal_ours_for_output): Rename to ...
1697 (child_terminal_ours_for_output): ... this. Adjust.
1698 (terminal_ours): Rename to ...
1699 (child_terminal_ours): ... this.
1700 (terminal_ours_1): Rename to ...
1701 (child_terminal_ours_1): ... this. Adjust.
1702 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1703 * windows-nat.c (do_initial_windows_stuff): Adjust.
1704 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1705 (gnu_terminal_init): ... this. Adjust.
1706 (gnu_target): Adjust.
1707 * inf-child.c (inf_child_target): Adjust.
1709 2014-03-13 Doug Evans <xdje42@gmail.com>
1712 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1715 2014-03-13 Doug Evans <xdje42@gmail.com>
1717 * value.c (record_latest_value): Call release_value_or_incref
1718 instead of release_value.
1720 2014-03-13 Pedro Alves <palves@redhat.com>
1722 * procfs.c (procfs_target): Don't override to_shortname,
1723 to_longname or to_doc.
1725 2014-03-13 Pedro Alves <palves@redhat.com>
1727 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1728 Unix in user visible strings.
1730 2014-03-12 Stan Shebs <stan@codesourcery.com>
1732 * gdbtypes.h: Annotate comments for Doxygen, add a page
1733 block comment with some general info.
1735 2014-03-12 Pedro Alves <palves@redhat.com>
1737 * infcmd.c (prepare_execution_command): New function, factored out
1738 from several execution commands.
1739 (run_command_1, continue_command, step_1, jump_command)
1740 (signal_command, until_command, advance_command, finish_command)
1741 (attach_command): Use prepare_execution_command.
1743 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1745 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1748 (struct arm_linux_thread_points): Removed.
1749 (struct arm_linux_process_info): New.
1750 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1751 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1752 (arm_linux_find_breakpoints_by_tid): Removed.
1753 (struct arch_lwp_info): New.
1754 (arm_linux_find_process_pid): New functions.
1755 (arm_linux_add_process): New functions.
1756 (arm_linux_process_info_get): New functions.
1757 (arm_linux_forget_process): New function.
1758 (arm_linux_get_debug_reg_state): New function.
1759 (struct update_registers_data): New.
1760 (update_registers_callback): New function.
1761 (arm_linux_insert_hw_breakpoint1): Updated.
1762 (arm_linux_remove_hw_breakpoint1): Updated.
1763 (arm_linux_insert_hw_breakpoint): Updated.
1764 (arm_linux_remove_hw_breakpoint): Updated.
1765 (arm_linux_insert_watchpoint): Updated.
1766 (arm_linux_remove_watchpoint): Updated.
1767 (arm_linux_new_thread): Updated.
1768 (arm_linux_prepare_to_resume): New function.
1769 (arm_linux_new_fork): New function.
1770 (_initialize_arm_linux_nat): Updated.
1772 2014-03-12 Pedro Alves <palves@redhat.com>
1774 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1776 2014-03-12 Tom Tromey <tromey@redhat.com>
1778 * inf-child.c (return_zero): New function.
1779 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1780 * aix-thread.c (aix_thread_inferior_created): New function.
1781 (aix_thread_attach): Remove.
1782 (init_aix_thread_ops): Don't set to_attach.
1783 (_initialize_aix_thread): Register inferior_created observer.
1784 * corelow.c (init_core_ops): Don't set to_attach or
1786 * exec.c (init_exec_ops): Don't set to_attach or
1788 * infcmd.c (run_command_1): Use find_run_target. Make direct
1790 (attach_command): Use find_attach_target. Make direct target
1792 * record-btrace.c (init_record_btrace_ops): Don't set
1794 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1796 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1797 set to_create_inferior.
1798 * target.c (complete_target_initialization): Add assertion.
1799 (target_create_inferior): Remove.
1800 (find_default_attach, find_default_create_inferior): Remove.
1801 (find_attach_target, find_run_target): New functions.
1802 (find_default_is_async_p, find_default_can_async_p)
1803 (target_supports_non_stop, target_attach): Remove.
1804 (init_dummy_target): Don't set to_create_inferior or
1805 to_supports_non_stop.
1806 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1807 TARGET_DEFAULT_FUNC.
1808 <to_create_inferior>: Add comment.
1809 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1810 TARGET_DEFAULT_RETURN.
1811 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1812 (find_attach_target, find_run_target): Declare.
1813 (target_create_inferior): Remove.
1814 (target_has_execution_1): Update comment.
1815 (target_supports_non_stop): Remove.
1816 * target-delegates.c: Rebuild.
1818 2014-03-12 Pedro Alves <palves@redhat.com>
1820 * inf-child.h: Update comment to not mention Unix.
1822 2014-03-12 Pedro Alves <palves@redhat.com>
1824 * inf-child.c: Update top comment to not mention Unix. Add
1825 generic comment describing how this target is meant to be used.
1826 (inf_child_post_attach, inf_child_post_startup_inferior)
1827 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1830 2014-03-12 Pedro Alves <palves@redhat.com>
1832 * nto-procfs.c: Include inf-child.h.
1833 (procfs_ops): Delete global.
1834 (procfs_can_run): Delete method.
1835 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1836 target pointer instead of referencing procfs_ops.
1837 (procfs_prepare_to_store): Delete.
1838 (init_procfs_ops): Delete function.
1839 (procfs_target): New function, based on init_procfs_ops, but
1840 inherit inf_child_target.
1841 (_initialize_procfs): Use procfs_target.
1843 2014-03-12 Pedro Alves <palves@redhat.com>
1845 * windows-nat.c: Include inf-child.h.
1846 (windows_ops): Delete global.
1847 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1849 (init_windows_ops): Delete function.
1850 (windows_target): New function, based on init_windows_ops, but
1851 inherit inf_child_target.
1852 (_initialize_windows_nat): Use windows_target. Install x86
1853 specific target methods here.
1855 2014-03-10 Doug Evans <xdje42@gmail.com>
1857 * guile/guile.c (call_initialize_gdb_module): New function.
1858 (initialize_guile): Replace call to scm_init_guile with call to
1861 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1863 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1864 in call to TYPE_CODE macro.
1866 2014-03-10 Jerome Guitton <guitton@adacore.com>
1868 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1869 Resolve tagged types to full view.
1871 2014-03-10 Hui Zhu <hui@codesourcery.com>
1873 * target.h (target_insert_breakpoint): Remove "hardware" from its
1876 2014-03-07 Doug Evans <dje@google.com>
1878 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1880 2014-03-07 Doug Evans <dje@google.com>
1882 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1883 Remove unused local comp_dir_attr. Assert exactly one of
1884 stub_comp_unit_die, stub_comp_dir is non-NULL.
1886 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1888 * target.h (complete_target_initialization, add_target):
1891 2014-03-07 Pedro Alves <palves@redhat.com>
1893 * go32-nat.c: Include inf-child.h.
1894 (go32_ops): Delete global.
1895 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1897 (go32_create_inferior): Push the passed in target pointer instead
1898 of referencing go32_ops.
1899 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1900 (go32_target): New function, based on init_go32_ops, but inherit
1902 (_initialize_go32_nat): Use go32_target. Move parts of
1905 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1907 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1908 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1909 SYMBOL_VALUE_ADDRESS.
1910 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1912 2014-03-06 Yao Qi <yao@codesourcery.com>
1914 * breakpoint.c (get_tracepoint_by_number): Remove argument
1915 optional_p. All callers updated. Adjust comments. Update
1917 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1919 2014-03-06 Yao Qi <yao@codesourcery.com>
1921 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1922 early if get_number returns zero. Use 'p' instead of 'args'.
1924 2014-03-06 Yao Qi <yao@codesourcery.com>
1926 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1929 2014-03-06 Yao Qi <yao@codesourcery.com>
1931 PR breakpoints/16508
1932 * tracepoint.c (check_trace_running): New function.
1933 (trace_find_command): Move code to check_trace_running and
1934 call check_trace_running.
1935 (trace_find_pc_command): Likewise.
1936 (trace_find_tracepoint_command): Likewise.
1937 (trace_find_line_command): Likewise.
1938 (trace_find_range_command): Likewise.
1939 * tracepoint.h (check_trace_running): Likewise.
1940 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1942 2014-03-06 Yao Qi <yao@codesourcery.com>
1944 * target.h (struct target_ops) <to_traceframe_info>: Use
1945 TARGET_DEFAULT_NORETURN (tcomplain ()).
1946 * target-delegates.c: Regenerated.
1948 2014-03-05 Pedro Alves <palves@redhat.com>
1951 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1952 void. Update comment.
1953 (dcache_xfer_memory): Delete.
1954 (dcache_read_memory_partial): New, based on the read bits of
1956 (dcache_update): Add status parameter. Use ULONGEST for len, and
1957 adjust. Discard cache lines if the reason for the update was
1959 * dcache.h (dcache_xfer_memory): Delete declaration.
1960 (dcache_read_memory_partial): New declaration.
1961 (dcache_update): Update prototype.
1962 * target.c (raw_memory_xfer_partial): Update the dcache here.
1963 (memory_xfer_partial_1): Don't handle dcache writes here.
1965 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1967 * remote-sim.c (gdbsim_load): Add const to prog.
1969 2014-03-03 Tom Tromey <tromey@redhat.com>
1971 * elfread.c (probe_key): Change to bfd_data.
1972 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1973 now per-BFD, not per-objfile.
1974 * stap-probe.c (stap_probe_destroy): Update comment.
1975 (handle_stap_probe): Allocate on the per-BFD obstack.
1977 2014-03-03 Tom Tromey <tromey@redhat.com>
1979 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1980 * breakpoint.c (create_longjmp_master_breakpoint): Use
1982 (add_location_to_breakpoint, bkpt_probe_insert_location)
1983 (bkpt_probe_remove_location): Update.
1984 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1985 * elfread.c (elf_symfile_relocate_probe): Remove.
1986 (elf_probe_fns): Update.
1987 (insert_exception_resume_breakpoint): Change type of "probe"
1988 parameter to bound_probe.
1989 (check_exception_resume): Update.
1990 * objfiles.c (objfile_relocate1): Don't relocate probes.
1991 * probe.c (bound_probe_s): New typedef.
1992 (parse_probes): Use get_probe_address. Set sal's objfile.
1993 (find_probe_by_pc): Return a bound_probe.
1994 (collect_probes): Return a VEC(bound_probe_s).
1995 (compare_probes): Update.
1996 (gen_ui_out_table_header_info): Change type of "probes"
1998 (info_probes_for_ops): Update.
1999 (get_probe_address): New function.
2000 (probe_safe_evaluate_at_pc): Update.
2001 * probe.h (struct probe_ops) <get_probe_address>: New field.
2002 <set_semaphore, clear_semaphore>: Add objfile parameter.
2003 (struct probe) <objfile>: Remove field.
2005 <address>: Update comment.
2006 (struct bound_probe): New.
2007 (find_probe_by_pc): Return a bound_probe.
2008 (get_probe_address): Declare.
2009 * solib-svr4.c (struct probe_and_action) <address>: New field.
2010 (hash_probe_and_action, equal_probe_and_action): Update.
2011 (register_solib_event_probe): Add address parameter.
2012 (solib_event_probe_at): Update.
2013 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2015 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2016 (stap_get_probe_address): New function.
2017 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2018 (compile_probe_arg): Update.
2019 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2021 (handle_stap_probe): Don't relocate the probe.
2022 (stap_relocate): Remove.
2023 (stap_gen_info_probes_table_values): Update.
2024 (stap_probe_ops): Remove stap_relocate.
2025 * symfile-debug.c (debug_sym_relocate_probe): Remove.
2026 (debug_sym_probe_fns): Update.
2027 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2028 * symtab.c (init_sal): Use memset.
2029 * symtab.h (struct symtab_and_line) <objfile>: New field.
2030 * tracepoint.c (start_tracing, stop_tracing): Update.
2032 2014-03-03 Tom Tromey <tromey@redhat.com>
2034 * probe.h (parse_probes, find_probe_by_pc)
2035 (find_probes_in_objfile): Fix comments.
2037 2014-03-02 Doug Evans <xdje42@gmail.com>
2039 * infrun.c (handle_signal_stop): Replace test for
2040 TARGET_WAITKIND_STOPPED with an assert.
2042 2014-03-02 Doug Evans <xdje42@gmail.com>
2044 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2046 2014-03-02 Doug Evans <xdje42@gmail.com>
2048 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2050 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2052 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2054 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2056 * i386obsd-nat.c: Include "obsd-nat.h".
2057 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2059 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2061 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2063 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2065 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2067 * mips64obsd-nat.c: Include "obsd-nath".
2068 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2070 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2072 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2074 * amd64obsd-nat.c: Include "obsd-nat,h.
2075 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2077 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2079 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2081 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2082 (find_overload_match): Update call to find_oload_champ.
2083 (find_oload_champ_namespace_loop): Likewise
2085 2014-02-28 Mark Kettenis <kettenis@gnu.org>
2087 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2089 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2090 * config/sparc/obsd64.mh: New file.
2091 * sparc64obsd-nat.c: New file.
2093 * obsd-nat.h: New file.
2094 * obsd-nat.c: New file.
2095 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2096 (ALLDEPFILES): Add obsd-nat.c.
2098 2014-02-28 Tom Tromey <tromey@redhat.com>
2100 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2101 * cli-out.h (cli_ui_out_impl): Now const.
2102 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2103 * ui-out.c (struct ui_out) <impl>: Now const.
2104 (default_ui_out_impl): Now const.
2105 (ui_out_new): Make 'impl' parameter const.
2106 * ui-out.h (ui_out_new): Update.
2108 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2110 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2112 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2114 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2116 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2118 Additional PR 8882 fix.
2119 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2121 2014-02-27 Pedro Alves <palves@redhat.com>
2123 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2126 2014-02-27 Pedro Alves <palves@redhat.com>
2129 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2130 * nat/linux-waitpid.c: Include string.h.
2131 (status_to_str): Moved here and made extern.
2132 * nat/linux-waitpid.h (status_to_str): New declaration.
2134 2014-02-27 Hui Zhu <hui@codesourcery.com>
2137 * infrun.c (ptid_match): Move ...
2138 * common/ptid.c (ptid_match): ... here.
2139 * inferior.h (ptid_match): Move ...
2140 * common/ptid.h (ptid_match): ... here.
2142 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2144 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2145 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2148 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2150 * obsd-tdep.c (obsd_auxv_parse): New function.
2151 (obsd_init_abi): Set auxv_parse.
2153 * gdbarch.sh (auxv_parse): New.
2154 * gdbarch.h: Regenerated.
2155 * gdbarch.c: Regenerated.
2156 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2158 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2160 * guile/scm-value.c (gdbscm_history_append_x): New function.
2161 (value_functions): Add it.
2163 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2165 * dwarf2read.c (attr_value_as_address): New function.
2166 (dwarf2_find_base_address, read_call_site_scope): Use
2167 attr_value_as_address in place of DW_ADDR.
2168 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2169 the low and high addresses. Slight rework of the handling
2170 of the high pc being a constant form, and limit it to
2171 DWARF verson 4 or higher.
2172 (dwarf2_record_block_ranges): Likewise.
2173 (read_partial_die): Likewise.
2174 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2176 2014-02-26 Tom Tromey <tromey@redhat.com>
2178 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2180 2014-02-26 Tom Tromey <tromey@redhat.com>
2182 * elfread.c (elf_read_minimal_symbols): Return early if
2183 minimal symbols have already been read. Add "ei" parameter.
2184 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2185 * minsyms.c (prim_record_minimal_symbol_full): Update.
2186 * objfiles.h (struct objstats) <n_minsyms>: Move...
2187 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2188 * symmisc.c (print_objfile_statistics): Update.
2190 2014-02-26 Tom Tromey <tromey@redhat.com>
2192 * elfread.c (elf_read_minimal_symbols): New function, from
2194 (elf_symfile_read): Call it.
2196 2014-02-26 Tom Tromey <tromey@redhat.com>
2198 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2199 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2200 (lookup_minimal_symbol_solib_trampoline)
2201 (lookup_minimal_symbol_by_pc_section_1)
2202 (lookup_minimal_symbol_and_objfile): Update.
2203 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2204 Don't allocate a minimal symbol if minsyms have already been read.
2205 (build_minimal_symbol_hash_tables): Update.
2206 (install_minimal_symbols): Do nothing if minsyms already read.
2207 Use the per-BFD obstack.
2208 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2209 * objfiles.c (allocate_objfile): Call
2210 terminate_minimal_symbol_table later.
2211 (have_minimal_symbols): Update.
2212 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2213 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2214 Move from struct objfile.
2215 <minsyms_read>: New field.
2216 (struct objfile) <msymbols, minimal_symbol_count,
2217 msymbol_hash, msymbol_demangled_hash>: Move.
2218 (ALL_OBJFILE_MSYMBOLS): Update.
2219 * symfile.c (read_symbols): Set minsyms_read.
2220 (reread_symbols): Update.
2221 * symmisc.c (dump_objfile, dump_msymbols): Update.
2223 2014-02-26 Tom Tromey <tromey@redhat.com>
2225 * minsyms.c (msymbols_sort): Remove.
2226 * minsyms.h (msymbols_sort): Remove.
2227 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2228 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2229 * elfread.c (elf_symtab_read): Don't add section offsets.
2230 * xcoffread.c (record_minimal_symbol): Don't add section offset
2231 to minimal symbol address.
2232 * somread.c (text_offset, data_offset): Remove.
2233 (som_symtab_read): Don't add section offsets to minimal symbol
2235 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2236 Don't add section offsets to minimal symbols.
2237 * coffread.c (coff_symtab_read): Don't add section offsets
2238 to minimal symbol addresses.
2239 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2240 to minimal symbol addresses.
2241 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2242 section offset to minimal symbol addresses.
2243 * mdebugread.c (parse_partial_symbols): Don't add section
2244 offset to minimal symbol addresses.
2245 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2246 offset to minimal symbol addresses.
2248 2014-02-26 Tom Tromey <tromey@redhat.com>
2250 * ada-lang.c (ada_main_name): Update.
2251 (ada_add_standard_exceptions): Update.
2252 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2253 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2254 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2255 * auxv.c (ld_so_xfer_auxv): Update.
2256 * avr-tdep.c (avr_scan_prologue): Update.
2257 * ax-gdb.c (gen_var_ref): Update.
2258 * blockframe.c (get_pc_function_start)
2259 (find_pc_partial_function_gnu_ifunc): Update.
2260 * breakpoint.c (create_overlay_event_breakpoint)
2261 (create_longjmp_master_breakpoint)
2262 (create_std_terminate_master_breakpoint)
2263 (create_exception_master_breakpoint): Update.
2264 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2265 * c-valprint.c (c_val_print): Update.
2266 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2267 * common/agent.c (agent_look_up_symbols): Update.
2268 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2269 * dwarf2loc.c (call_site_to_target_addr): Update.
2270 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2271 * elfread.c (elf_gnu_ifunc_record_cache)
2272 (elf_gnu_ifunc_resolve_by_got): Update.
2273 * findvar.c (default_read_var_value): Update.
2274 * frame.c (inside_main_func): Update.
2275 * frv-tdep.c (frv_frame_this_id): Update.
2276 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2277 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2279 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2280 (hppa_hpux_find_dummy_bpaddr): Update.
2281 * hppa-tdep.c (hppa_symbol_address): Update.
2282 * infcmd.c (until_next_command): Update.
2283 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2285 * linespec.c (minsym_found, add_minsym): Update.
2286 * linux-nat.c (get_signo): Update.
2287 * linux-thread-db.c (inferior_has_bug): Update.
2288 * m32c-tdep.c (m32c_return_value)
2289 (m32c_m16c_address_to_pointer): Update.
2290 * m32r-tdep.c (m32r_frame_this_id): Update.
2291 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2292 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2293 * maint.c (maintenance_translate_address): Update.
2294 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2295 (frob_address): New function.
2296 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2297 frob_address. Rename parameter to "pc_in".
2298 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2300 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2302 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2303 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2304 * objc-lang.c (find_objc_msgsend): Update.
2305 * objfiles.c (objfile_relocate1): Update.
2306 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2307 * p-valprint.c (pascal_val_print): Update.
2308 * parse.c (write_exp_msymbol): Update.
2309 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2310 (ppc_elfv2_skip_entrypoint): Update.
2311 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2312 * printcmd.c (build_address_symbolic, msym_info)
2313 (address_info): Update.
2314 * proc-service.c (ps_pglobal_lookup): Update.
2315 * psymtab.c (find_pc_sect_psymtab_closer)
2316 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2317 Change msymbol parameter to bound_minimal_symbol.
2318 * ravenscar-thread.c (get_running_thread_id): Update.
2319 * remote.c (remote_check_symbols): Update.
2320 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2322 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2323 * solib-dsbt.c (lm_base): Update.
2324 * solib-frv.c (lm_base, main_got): Update.
2325 * solib-irix.c (locate_base): Update.
2326 * solib-som.c (som_solib_create_inferior_hook)
2327 (link_map_start): Update.
2328 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2329 * solib-svr4.c (elf_locate_base, enable_break): Update.
2330 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2331 (flush_ea_cache): Update.
2332 * stabsread.c (define_symbol, scan_file_globals): Update.
2333 * stack.c (find_frame_funname): Update.
2334 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2335 (debug_qf_find_pc_sect_symtab): Update.
2336 * symfile.c (simple_read_overlay_table)
2337 (simple_overlay_update): Update.
2338 * symfile.h (struct quick_symbol_functions)
2339 <find_pc_sect_symtab>: Change type of msymbol to
2340 bound_minimal_symbol.
2341 * symmisc.c (dump_msymbols): Update.
2342 * symtab.c (find_pc_sect_symtab_via_partial)
2343 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2344 (search_symbols, print_msymbol_info): Update.
2345 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2346 (MSYMBOL_VALUE_ADDRESS): Redefine.
2347 (BMSYMBOL_VALUE_ADDRESS): New macro.
2348 * tracepoint.c (scope_info): Update.
2349 * tui/tui-disasm.c (tui_find_disassembly_address)
2350 (tui_get_begin_asm_address): Update.
2351 * valops.c (find_function_in_inferior): Update.
2352 * value.c (value_static_field, value_fn_field): Update.
2354 2014-02-26 Tom Tromey <tromey@redhat.com>
2356 * ada-lang.c (ada_update_initial_language): Update.
2357 (ada_main_name, ada_has_this_exception_support): Update.
2358 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2359 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2360 * arm-tdep.c (arm_skip_stub): Update.
2361 * auxv.c (ld_so_xfer_auxv): Update.
2362 * avr-tdep.c (avr_scan_prologue): Update.
2363 * ax-gdb.c (gen_var_ref): Update.
2364 * breakpoint.c (struct breakpoint_objfile_data)
2365 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2366 type to bound_minimal_symbol.
2367 (create_overlay_event_breakpoint)
2368 (create_longjmp_master_breakpoint)
2369 (create_std_terminate_master_breakpoint)
2370 (create_exception_master_breakpoint): Update.
2371 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2372 * c-exp.y (classify_name): Update.
2373 * coffread.c (coff_symfile_read): Update.
2374 * common/agent.c (agent_look_up_symbols): Update.
2375 * d-lang.c (d_main_name): Update.
2376 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2377 * dec-thread.c (enable_dec_thread): Update.
2378 * dwarf2loc.c (call_site_to_target_addr): Update.
2379 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2380 * eval.c (evaluate_subexp_standard): Update.
2381 * findvar.c (struct minsym_lookup_data) <result>: Change type
2382 to bound_minimal_symbol.
2384 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2385 * frame.c (inside_main_func): Update.
2386 * frv-tdep.c (frv_frame_this_id): Update.
2387 * gcore.c (call_target_sbrk): Update.
2388 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2389 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2391 * go-lang.c (go_main_name): Update.
2392 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2393 (hppa_hpux_find_import_stub_for_addr): Update.
2394 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2395 Update. Change return type.
2396 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2398 * jit.c (jit_breakpoint_re_set_internal): Update.
2399 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2401 * linux-nat.c (get_signo): Update.
2402 * linux-thread-db.c (inferior_has_bug): Update
2403 * m32c-tdep.c (m32c_return_value)
2404 (m32c_m16c_address_to_pointer): Update.
2405 * m32r-tdep.c (m32r_frame_this_id): Update.
2406 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2407 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2408 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2409 lookup_minimal_symbol. Change return type.
2410 (lookup_minimal_symbol): Remove.
2411 (lookup_bound_minimal_symbol): Update.
2412 (lookup_minimal_symbol_text): Change return type.
2413 (lookup_minimal_symbol_solib_trampoline): Change return type.
2414 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2415 (lookup_minimal_symbol_solib_trampoline): Change return type.
2416 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2417 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2418 (value_nsstring, find_imps): Update.
2419 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2420 * p-lang.c (pascal_main_name): Update.
2421 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2422 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2423 * proc-service.c (ps_pglobal_lookup): Update.
2424 * ravenscar-thread.c (get_running_thread_msymbol): Change
2426 (has_ravenscar_runtime, get_running_thread_id): Update.
2427 * remote.c (remote_check_symbols): Update.
2428 * sol-thread.c (ps_pglobal_lookup): Update.
2429 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2430 * solib-dsbt.c (lm_base): Update.
2431 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2433 * solib-irix.c (locate_base): Update.
2434 * solib-som.c (som_solib_create_inferior_hook)
2435 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2437 * solib-spu.c (spu_enable_break): Update.
2438 * solib-svr4.c (elf_locate_base, enable_break): Update.
2439 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2440 (flush_ea_cache): Update.
2441 * stabsread.c (define_symbol): Update.
2442 * symfile.c (simple_read_overlay_table): Update.
2443 * symtab.c (find_pc_sect_line): Update.
2444 * tracepoint.c (scope_info): Update.
2445 * tui-disasm.c (tui_get_begin_asm_address): Update.
2446 * value.c (value_static_field): Update.
2448 2014-02-26 Tom Tromey <tromey@redhat.com>
2450 * minsyms.c (prim_record_minimal_symbol_full): Use
2451 SET_MSYMBOL_VALUE_ADDRESS.
2452 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2453 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2454 SET_MSYMBOL_VALUE_ADDRESS.
2455 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2456 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2458 2014-02-26 Tom Tromey <tromey@redhat.com>
2460 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2461 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2462 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2463 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2464 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2465 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2466 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2467 * ada-lang.c (ada_main_name): Update.
2468 (ada_lookup_simple_minsym): Update.
2469 (ada_make_symbol_completion_list): Update.
2470 (ada_add_standard_exceptions): Update.
2471 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2472 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2473 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2474 * arm-tdep.c (skip_prologue_function): Update.
2475 (arm_skip_stack_protector, arm_skip_stub): Update.
2476 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2477 (arm_wince_skip_main_prologue): Update.
2478 * auxv.c (ld_so_xfer_auxv): Update.
2479 * avr-tdep.c (avr_scan_prologue): Update.
2480 * ax-gdb.c (gen_var_ref): Update.
2481 * block.c (call_site_for_pc): Update.
2482 * blockframe.c (get_pc_function_start): Update.
2483 (find_pc_partial_function_gnu_ifunc): Update.
2484 * breakpoint.c (create_overlay_event_breakpoint): Update.
2485 (create_longjmp_master_breakpoint): Update.
2486 (create_std_terminate_master_breakpoint): Update.
2487 (create_exception_master_breakpoint): Update.
2488 (resolve_sal_pc): Update.
2489 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2490 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2492 * c-valprint.c (c_val_print): Update.
2493 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2494 * coffread.c (coff_symfile_read): Update.
2495 * common/agent.c (agent_look_up_symbols): Update.
2496 * dbxread.c (find_stab_function_addr): Update.
2497 (end_psymtab): Update.
2498 * dwarf2loc.c (call_site_to_target_addr): Update.
2499 (func_verify_no_selftailcall): Update.
2500 (tailcall_dump): Update.
2501 (call_site_find_chain_1): Update.
2502 (dwarf_expr_reg_to_entry_parameter): Update.
2503 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2504 (elf_gnu_ifunc_resolve_by_got): Update.
2505 * f-valprint.c (info_common_command): Update.
2506 * findvar.c (read_var_value): Update.
2507 * frame.c (get_prev_frame_1): Update.
2508 (inside_main_func): Update.
2509 * frv-tdep.c (frv_skip_main_prologue): Update.
2510 (frv_frame_this_id): Update.
2511 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2512 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2513 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2514 (gnuv3_skip_trampoline): Update.
2515 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2516 (hppa64_hpux_in_solib_call_trampoline): Update.
2517 (hppa_hpux_skip_trampoline_code): Update.
2518 (hppa64_hpux_search_dummy_call_sequence): Update.
2519 (hppa_hpux_find_import_stub_for_addr): Update.
2520 (hppa_hpux_find_dummy_bpaddr): Update.
2521 * hppa-tdep.c (hppa_symbol_address)
2522 (hppa_lookup_stub_minimal_symbol): Update.
2523 * i386-tdep.c (i386_skip_main_prologue): Update.
2524 (i386_pe_skip_trampoline_code): Update.
2525 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2526 * infcall.c (get_function_name): Update.
2527 * infcmd.c (until_next_command): Update.
2528 * jit.c (jit_breakpoint_re_set_internal): Update.
2529 (jit_inferior_init): Update.
2530 * linespec.c (minsym_found): Update.
2531 (add_minsym): Update.
2532 * linux-fork.c (info_checkpoints_command): Update.
2533 * linux-nat.c (get_signo): Update.
2534 * linux-thread-db.c (inferior_has_bug): Update.
2535 * m32c-tdep.c (m32c_return_value): Update.
2536 (m32c_m16c_address_to_pointer): Update.
2537 (m32c_m16c_pointer_to_address): Update.
2538 * m32r-tdep.c (m32r_frame_this_id): Update.
2539 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2540 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2541 * maint.c (maintenance_translate_address): Update.
2542 * minsyms.c (add_minsym_to_hash_table): Update.
2543 (add_minsym_to_demangled_hash_table): Update.
2544 (msymbol_objfile): Update.
2545 (lookup_minimal_symbol): Update.
2546 (iterate_over_minimal_symbols): Update.
2547 (lookup_minimal_symbol_text): Update.
2548 (lookup_minimal_symbol_by_pc_name): Update.
2549 (lookup_minimal_symbol_solib_trampoline): Update.
2550 (lookup_minimal_symbol_by_pc_section_1): Update.
2551 (lookup_minimal_symbol_and_objfile): Update.
2552 (prim_record_minimal_symbol_full): Update.
2553 (compare_minimal_symbols): Update.
2554 (compact_minimal_symbols): Update.
2555 (build_minimal_symbol_hash_tables): Update.
2556 (install_minimal_symbols): Update.
2557 (terminate_minimal_symbol_table): Update.
2558 (find_solib_trampoline_target): Update.
2559 (minimal_symbol_upper_bound): Update.
2560 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2561 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2562 (mips_skip_pic_trampoline_code): Update.
2563 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2564 * objc-lang.c (selectors_info): Update.
2565 (classes_info): Update.
2566 (find_methods): Update.
2567 (find_imps): Update.
2568 (find_objc_msgsend): Update.
2569 * objfiles.c (objfile_relocate1): Update.
2570 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2571 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2572 * p-valprint.c (pascal_val_print): Update.
2573 * parse.c (write_exp_msymbol): Update.
2574 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2575 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2576 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2577 * printcmd.c (build_address_symbolic): Update.
2579 (address_info): Update.
2580 * proc-service.c (ps_pglobal_lookup): Update.
2581 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2582 (find_pc_sect_psymtab): Update.
2583 * python/py-framefilter.c (py_print_frame): Update.
2584 * ravenscar-thread.c (get_running_thread_id): Update.
2585 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2587 * remote.c (remote_check_symbols): Update.
2588 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2589 (rs6000_skip_trampoline_code): Update.
2590 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2591 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2592 * solib-dsbt.c (lm_base): Update.
2593 * solib-frv.c (lm_base): Update.
2595 * solib-irix.c (locate_base): Update.
2596 * solib-som.c (som_solib_create_inferior_hook): Update.
2597 (som_solib_desire_dynamic_linker_symbols): Update.
2598 (link_map_start): Update.
2599 * solib-spu.c (spu_enable_break): Update.
2600 (ocl_enable_break): Update.
2601 * solib-svr4.c (elf_locate_base): Update.
2602 (enable_break): Update.
2603 * spu-tdep.c (spu_get_overlay_table): Update.
2604 (spu_catch_start): Update.
2605 (flush_ea_cache): Update.
2606 * stabsread.c (define_symbol): Update.
2607 (scan_file_globals): Update.
2608 * stack.c (find_frame_funname): Update.
2609 (frame_info): Update.
2610 * symfile.c (simple_read_overlay_table): Update.
2611 (simple_overlay_update): Update.
2612 * symmisc.c (dump_msymbols): Update.
2613 * symtab.c (fixup_section): Update.
2614 (find_pc_sect_line): Update.
2615 (skip_prologue_sal): Update.
2616 (search_symbols): Update.
2617 (print_msymbol_info): Update.
2618 (rbreak_command): Update.
2619 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2620 (completion_list_objc_symbol): Update.
2621 (default_make_symbol_completion_list_break_on): Update.
2622 * tracepoint.c (scope_info): Update.
2623 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2624 (tui_get_begin_asm_address): Update.
2625 * valops.c (find_function_in_inferior): Update.
2626 * value.c (value_static_field): Update.
2627 (value_fn_field): Update.
2629 2014-02-26 Tom Tromey <tromey@redhat.com>
2631 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2632 bound minimal symbols. Move code that knows about minsym
2634 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2636 * minsyms.h (minimal_symbol_upper_bound): Declare.
2637 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2638 minimal_symbol_upper_bound.
2640 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2642 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2643 Use the type's name if its basic type does not have a tag.
2645 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2647 * dwarf2read.c (read_subrange_type): Add comment.
2649 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2651 * dwarf2read.c (update_enumeration_type_from_children): New
2652 function, mostly extracted from process_structure_scope.
2653 (read_enumeration_type): Call update_enumeration_type_from_children.
2654 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2655 and flag_flag_enum fields.
2657 2014-02-26 Pedro Alves <palves@redhat.com>
2659 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2660 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2661 to_xfer_partial method.
2663 2014-02-26 Pedro Alves <palves@redhat.com>
2665 * target.c (complete_target_initialization): Don't install
2666 default_xfer_partial as to_xfer_partial hook.
2668 (update_current_target): Don't INHERIT nor de_fault
2669 deprecated_xfer_memory. Delete de_fault macro.
2670 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2671 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2672 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2675 2014-02-26 Pedro Alves <palves@redhat.com>
2677 * go32-nat.c (my_write_child): New function.
2678 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2679 (go32_xfer_partial): New function.
2680 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2681 Instead install a to_xfer_partial hook.
2683 2014-02-26 Pedro Alves <palves@redhat.com>
2685 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2686 to_xfer_partial helper. Rewrite.
2687 (procfs_xfer_partial): New function.
2688 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
2689 Install a to_xfer_partial hook.
2691 2014-02-26 Pedro Alves <palves@redhat.com>
2693 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
2694 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2695 (m32r_xfer_partial): New function.
2696 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2697 Install a to_xfer_partial hook.
2699 2014-02-26 Pedro Alves <palves@redhat.com>
2701 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2703 (mips_xfer_partial): New function.
2704 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2705 hook. Install a to_xfer_partial hook.
2707 2014-02-26 Joel Brobecker <brobecker@adacore.com>
2709 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2710 * gdbtypes.c (create_array_type_with_stride): New function,
2711 renaming create_array_type, but with an added parameter
2712 called "bit_stride".
2713 (create_array_type): Re-implement using
2714 create_array_type_with_stride.
2715 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2716 and DW_AT_bit_stride attributes.
2718 2014-02-26 Pedro Alves <palves@redhat.com>
2720 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2721 task-specific breakpoints.
2723 2014-02-25 Pedro Alves <palves@redhat.com>
2725 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2726 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2728 2014-02-25 Stan Shebs <stan@codesourcery.com>
2730 * defs.h: Annotate comments for Doxygen.
2732 2014-02-25 Tom Tromey <tromey@redhat.com>
2734 * target.h (target_ignore): Don't declare.
2735 * target.c (target_ignore): Remove.
2737 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2740 * auto-load.c (auto_load_objfile_script_1): Change filename to
2743 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2745 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2746 documentation. Adjust prototype to match the target_ops
2747 to_xfer_partial method. Adjust implementation accordingly.
2749 2014-02-25 Hui Zhu <hui@codesourcery.com>
2751 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2754 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2756 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2757 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2758 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2759 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2760 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2761 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2762 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2763 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2765 (rl78_register_type): Use a data pointer type for SP and
2766 new pseudo registers mentioned above. Use a 16 bit integer
2767 type for all other register pairs.
2768 (rl78_register_name, rl78_g10_register_name): Update for
2769 new pseudo registers.
2770 (rl78_pseudo_register_read): Likewise.
2771 (rl78_pseudo_register_write): Likewise.
2772 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2773 to the newly added pseudo registers.
2775 2014-02-24 Doug Evans <dje@google.com>
2777 * value.c (record_latest_value): Fix comment.
2778 * printcmd.c (print_command_1): Remove code to handle -1 return from
2779 record_latest_value.
2781 2014-02-24 Pedro Alves <palves@redhat.com>
2783 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2784 deprecated_xfer_memory hook.
2785 (procfs_xfer_partial): Call procfs_xfer_memory instead
2786 of the deprecated_xfer_memory target hook.
2787 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2790 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2792 * windows-nat.c (windows_xfer_shared_libraries): Return
2793 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2794 requested object is TARGET_OBJECT_LIBRARIES.
2796 2014-02-24 Yao Qi <yao@codesourcery.com>
2798 * target.h (enum target_xfer_status)
2799 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2800 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2802 * corefile.c (memory_error_message): User updated.
2803 * exec.c (section_table_read_available_memory): Likewise.
2804 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2805 * target.c (target_xfer_status_to_string): Likewise.
2806 (raw_memory_xfer_partial): Likewise.
2807 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2808 * valops.c (read_value_memory): Likewise.
2809 * exec.h: Update comments.
2811 2014-02-24 Yao Qi <yao@codesourcery.com>
2813 * target.c (target_xfer_status_to_string): Rename argument err
2815 * target.h (target_xfer_status_to_string): Update declaration.
2816 Replace target_xfer_error_to_string with
2817 target_xfer_status_to_string in comment.
2819 2014-02-24 Yao Qi <yao@codesourcery.com>
2821 * mips-linux-nat.c (super_close): Update its type.
2822 (mips_linux_close): Pass 'self' to super_close.
2824 2014-02-24 Yao Qi <yao@codesourcery.com>
2826 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2827 * corefile.c (read_memory): Adjusted.
2828 * target.c (target_write_with_progress): Adjusted.
2830 2014-02-23 Yao Qi <yao@codesourcery.com>
2834 2013-10-25 Yao Qi <yao@codesourcery.com>
2836 * remote.c (remote_traceframe_info): Return early if
2837 traceframe is not selected.
2839 2013-07-19 Yao Qi <yao@codesourcery.com>
2841 * target.c (update_current_target): Change the default action
2842 of 'to_traceframe_info' from tcomplain to return_zero.
2843 * target.h (struct target_ops) <to_traceframe_info>: Add more
2846 2014-02-23 Yao Qi <yao@codesourcery.com>
2848 * valops.c (read_value_memory): Rewrite it. Call
2849 target_xfer_partial in a loop.
2850 * exec.h (section_table_available_memory): Remove declaration.
2851 Move comments to ...
2852 * exec.c (section_table_available_memory): ... here. Make it
2855 2014-02-23 Yao Qi <yao@codesourcery.com>
2857 * exec.c (section_table_read_available_memory): New function.
2858 * exec.h (section_table_read_available_memory): Declare.
2859 * ctf.c (ctf_xfer_partial): Call
2860 section_table_read_available_memory.
2861 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2863 2014-02-23 Yao Qi <yao@codesourcery.com>
2865 * ctf.c (ctf_xfer_partial): Move code to ...
2866 * exec.c (exec_read_partial_read_only): ... it. New function.
2867 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2868 * tracefile.c: Include "exec.h".
2869 * exec.h (exec_read_partial_read_only): Declare.
2871 2014-02-23 Yao Qi <yao@codesourcery.com>
2873 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2874 (tfile_has_memory): Remove.
2875 (init_tfile_ops): Don't set fields to_has_all_memory and
2876 to_has_memory of tfile_ops.
2877 * tracefile.c (tracefile_has_all_memory): New function.
2878 (tracefile_has_memory): New function.
2879 (init_tracefile_ops): Initialize fields to_has_all_memory and
2880 to_has_memory of 'ops'.
2882 2014-02-23 Yao Qi <yao@codesourcery.com>
2884 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2885 (ctf_thread_alive, ctf_get_trace_status): Remove.
2886 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2888 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2889 (tfile_has_stack, tfile_has_registers): Remove.
2890 (tfile_thread_alive): Remove.
2891 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2893 * tracefile.c (tracefile_has_stack): New function.
2894 (tracefile_has_registers): New function.
2895 (tracefile_thread_alive): New function.
2896 (tracefile_get_trace_status): New function.
2897 (init_tracefile_ops): New function.
2898 * tracefile.h (init_tracefile_ops): Declare.
2900 2014-02-23 Yao Qi <yao@codesourcery.com>
2902 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2903 (O_LARGEFILE): Likewise.
2904 (tfile_ops): Likewise.
2905 (TRACE_HEADER_SIZE): Likewise.
2906 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2907 (cur_data_size): Likewise.
2908 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2909 (tfile_close, tfile_files_info): Likewise.
2910 (tfile_get_trace_status): Likewise.
2911 (tfile_get_tracepoint_status): Likewise.
2912 (tfile_get_traceframe_address): Likewise.
2913 (tfile_trace_find, match_blocktype): Likewise.
2914 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2915 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2916 (tfile_get_trace_state_variable_value): Likewise.
2917 (tfile_has_all_memory, tfile_has_memory): Likewise.
2918 (tfile_has_stack, tfile_has_registers): Likewise.
2919 (tfile_thread_alive, build_traceframe_info): Likewise.
2920 (tfile_traceframe_info, init_tfile_ops): Likewise.
2921 (_initialize_tracepoint): Don't call init_tfile_ops
2922 and add_target_with_completer.
2923 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2924 exec.h, completer.h and filenames.h.
2925 (_initialize_tracefile_tfile): New function.
2927 2014-02-23 Yao Qi <yao@codesourcery.com>
2929 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2931 (HFILES_NO_SRCDIR): Add tracefile.h.
2932 * ctf.c: Include "tracefile.h".
2933 * tracefile.h: New file.
2934 * tracefile.c: New file
2935 * tracefile-tfile.c: New file.
2936 * tracepoint.c: Include "tracefile.h".
2937 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2938 (stop_reason_names): Add const.
2939 (trace_file_writer_xfree): Move it to tracefile.c.
2940 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2941 (trace_save_ctf): Likewise.
2942 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2943 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2944 (tfile_write_header, tfile_write_regblock_type): Likewise.
2945 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2946 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2947 (tfile_write_raw_data, tfile_end): Likewise.
2948 (tfile_trace_file_writer_new): Likewise.
2949 (free_uploaded_tp): Make it extern.
2950 (free_uploaded_tsv): Make it extern.
2951 (_initialize_tracepoint): Move code to register command 'tsave'
2953 * tracepoint.h (stop_reason_names): Declare.
2954 (struct trace_frame_write_ops): Move it to tracefile.h.
2955 (struct trace_file_write_ops): Likewise.
2956 (struct trace_file_writer): Likewise.
2957 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2959 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2962 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2964 (get_cores_used_by_process): New parameter num_cores, use it.
2965 (linux_xfer_osdata_processes): Pass num_cores to it.
2966 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2969 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2971 * target.c (memory_xfer_partial): Fix length arg in call to
2972 breakpoint_xfer_memory.
2974 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2977 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2978 number comes after the + or - signs. Adjust length of register
2979 name to be extracted.
2981 2014-02-20 Tom Tromey <tromey@redhat.com>
2983 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2984 (ada_varobj_ops): Mark "extern".
2986 2014-02-20 Tom Tromey <tromey@redhat.com>
2988 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2990 2014-02-20 Doug Evans <xdje42@gmail.com>
2992 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2993 All callers updated.
2994 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2995 All callers updated.
2996 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2997 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2999 2014-02-20 lin zuojian <manjian2006@gmail.com>
3000 Joel Brobecker <brobecker@adacore.com>
3001 Doug Evans <xdje42@gmail.com>
3004 * dwarf2read.c (struct die_info): New member in_process.
3005 (reset_die_in_process): New function.
3006 (process_die): Set it at the start, reset when returning.
3007 (inherit_abstract_dies): Only call process_die if origin_child_die
3008 not already being processed.
3010 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3012 * windows-nat.c (handle_unload_dll): Add function documentation.
3013 (do_initial_windows_stuff): Add comment explaining why we wait
3014 until after inferior initialization has finished before
3015 processing all DLLs.
3017 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3019 * windows-nat.c (get_module_name): Delete.
3020 (windows_get_exec_module_filename): New function, mostly
3021 inspired from get_module_name.
3022 (windows_pid_to_exec_file): Replace call to get_module_name
3023 by call to windows_get_exec_module_filename.
3025 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3027 * windows-nat.c (handle_load_dll): Rewrite this function's
3028 introductory comment. Remove code using get_module_name
3029 to get the DLL's name.
3031 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3033 * windows-nat.c (get_windows_debug_event): Ignore
3034 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3035 if windows_initialization_done == 0.
3036 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3037 Adjust implementation to always load all DLLs.
3038 (do_initial_windows_stuff): Replace call to
3039 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3041 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3043 * windows-nat.c (_initialize_windows_nat): Deprecate the
3044 "dll-symbols" command. Turn the "add-shared-symbol-files"
3045 and "assf" aliases into commands, and deprecate them as well.
3046 * NEWS: Add entry explaining that "dll-symbols" and its two
3047 aliases are now deprecated.
3049 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3051 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3052 new-line in debug string. Remove trailing spaces.
3054 2014-02-19 Stan Shebs <stan@codesourcery.com>
3056 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3058 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3060 * NEWS: Add entry for the new feature
3061 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3064 2014-02-19 Stan Shebs <stan@codesourcery.com>
3066 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3068 2014-02-19 Pedro Alves <palves@redhat.com>
3070 * common/ptid.h (struct ptid): Mention that process_stratum
3071 targets should prefer ptid.lwp.
3073 2014-02-19 Pedro Alves <palves@redhat.com>
3075 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3076 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3077 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3078 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3079 store remote thread ids rather than ptid.tid.
3080 (_initialize_remote): Adjust.
3082 2014-02-19 Tom Tromey <tromey@redhat.com>
3084 * target.c (target_get_unwinder): Rewrite.
3085 (target_get_tailcall_unwinder): Rewrite.
3086 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3087 (record_btrace_to_get_tailcall_unwinder): New function.
3088 (init_record_btrace_ops): Update.
3089 * target.h (struct target_ops) <to_get_unwinder,
3090 to_get_tailcall_unwinder>: Now function pointers. Use
3091 TARGET_DEFAULT_RETURN.
3093 2014-02-19 Tom Tromey <tromey@redhat.com>
3095 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3097 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3099 2014-02-19 Tom Tromey <tromey@redhat.com>
3101 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3103 * target-delegates.c: Rebuild.
3104 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3105 TARGET_DEFAULT_FUNC.
3106 * target.c (default_target_decr_pc_after_break): Rename from
3107 forward_target_decr_pc_after_break. Simplify.
3108 (target_decr_pc_after_break): Rely on delegation.
3110 2014-02-19 Tom Tromey <tromey@redhat.com>
3112 * target.c (update_current_target): Do not INHERIT to_doc or
3113 to_magic. Do not de_fault to_open or to_close.
3115 2014-02-19 Tom Tromey <tromey@redhat.com>
3117 * gcore.h (objfile_find_memory_regions): Declare.
3118 * gcore.c (objfile_find_memory_regions): No longer static. Add
3120 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3121 * exec.c: Include gcore.h.
3122 (exec_set_find_memory_regions): Remove.
3123 (exec_find_memory_regions): Remove.
3124 (exec_do_find_memory_regions): Remove.
3125 (init_exec_ops): Update.
3126 * defs.h (exec_set_find_memory_regions): Remove.
3128 2014-02-19 Tom Tromey <tromey@redhat.com>
3130 * target-delegates.c: Rebuild.
3131 * target.h (struct target_ops) <to_extra_thread_info,
3132 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3133 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3134 not 0, in TARGET_DEFAULT_RETURN.
3136 2014-02-19 Tom Tromey <tromey@redhat.com>
3138 * target.c (complete_target_initialization): Remove casts. Use
3139 return_zero_has_execution.
3140 (return_zero): Add "ignore" argument.
3141 (return_zero_has_execution): New function.
3142 (init_dummy_target): Remove casts. Use
3143 return_zero_has_execution.
3145 2014-02-19 Tom Tromey <tromey@redhat.com>
3147 * target.c (update_current_target): Update comments. Do not
3150 2014-02-19 Tom Tromey <tromey@redhat.com>
3152 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3154 * corelow.c (core_read_description): Delegate when needed.
3155 * remote.c (remote_read_description): Delegate when needed.
3156 * target-delegates.c: Rebuild.
3157 * target.c (target_read_description): Rewrite.
3158 * target.h (struct target_ops) <to_read_description>: Update
3159 comment. Use TARGET_DEFAULT_RETURN.
3161 2014-02-19 Tom Tromey <tromey@redhat.com>
3163 * target-delegates.c: Rebuild.
3164 * target.c (update_current_target): Don't inherit or default
3166 (find_default_run_target): Check against delegate_can_run.
3167 * target.h (struct target_ops) <to_can_run>: Use
3168 TARGET_DEFAULT_RETURN.
3170 2014-02-19 Tom Tromey <tromey@redhat.com>
3172 * target-delegates.c: Rebuild.
3173 * target.c (target_disconnect): Unconditionally delegate.
3174 * target.h (struct target_ops) <to_disconnect>: Use
3175 TARGET_DEFAULT_NORETURN.
3177 2014-02-19 Tom Tromey <tromey@redhat.com>
3179 * record.c (record_stop): Unconditionally delegate.
3180 * target-delegates.c: Rebuild.
3181 * target.c (target_stop_recording): Unconditionally delegate.
3182 * target.h (struct target_ops) <to_stop_recording>: Use
3183 TARGET_DEFAULT_IGNORE.
3185 2014-02-19 Tom Tromey <tromey@redhat.com>
3187 * target-delegates.c: Rebuild.
3188 * target.c (target_enable_btrace): Unconditionally delegate.
3189 * target.h (struct target_ops) <to_enable_btrace>: Use
3190 TARGET_DEFAULT_NORETURN.
3192 2014-02-19 Tom Tromey <tromey@redhat.com>
3194 * target-delegates.c: Rebuild.
3195 * target.c (target_read_btrace): Unconditionally delegate.
3196 * target.h (struct target_ops) <to_read_btrace>: Use
3197 TARGET_DEFAULT_NORETURN.
3199 2014-02-19 Tom Tromey <tromey@redhat.com>
3201 * target-delegates.c: Rebuild.
3202 * target.c (target_teardown_btrace): Unconditionally delegate.
3203 * target.h (struct target_ops) <to_teardown_btrace>: Use
3204 TARGET_DEFAULT_NORETURN.
3206 2014-02-19 Tom Tromey <tromey@redhat.com>
3208 * target-delegates.c: Rebuild.
3209 * target.c (target_disable_btrace): Unconditionally delegate.
3210 * target.h (struct target_ops) <to_disable_btrace>: Use
3211 TARGET_DEFAULT_NORETURN.
3213 2014-02-19 Tom Tromey <tromey@redhat.com>
3215 * target-delegates.c: Rebuild.
3216 * target.c (default_search_memory): New function.
3217 (simple_search_memory): Update comment.
3218 (target_search_memory): Unconditionally delegate.
3219 * target.h (struct target_ops) <to_search_memory>: Use
3220 TARGET_DEFAULT_FUNC.
3222 2014-02-19 Tom Tromey <tromey@redhat.com>
3224 * auxv.c (default_auxv_parse): No longer static.
3225 (target_auxv_parse): Unconditionally delegate.
3226 * auxv.h (default_auxv_parse): Declare.
3227 * target-delegates.c: Rebuild.
3228 * target.c: Include auxv.h.
3229 * target.h (struct target_ops) <to_auxv_parse>: Use
3230 TARGET_DEFAULT_FUNC.
3232 2014-02-19 Tom Tromey <tromey@redhat.com>
3234 * target-delegates.c: Rebuild.
3235 * target.c (target_memory_map): Unconditionally delegate.
3236 * target.h (struct target_ops) <to_memory_map>: Use
3237 TARGET_DEFAULT_RETURN.
3239 2014-02-19 Tom Tromey <tromey@redhat.com>
3241 * target-delegates.c: Rebuild.
3242 * target.c (target_thread_alive): Unconditionally delegate.
3243 * target.h (struct target_ops) <to_thread_alive>: Use
3244 TARGET_DEFAULT_RETURN.
3246 2014-02-19 Tom Tromey <tromey@redhat.com>
3248 * target-delegates.c: Rebuild.
3249 * target.c (target_save_record): Unconditionally delegate.
3250 * target.h (struct target_ops) <to_save_record>: Use
3251 TARGET_DEFAULT_NORETURN.
3253 2014-02-19 Tom Tromey <tromey@redhat.com>
3255 * target-delegates.c: Rebuild.
3256 * target.c (target_delete_record): Unconditionally delegate.
3257 * target.h (struct target_ops) <to_delete_record>: Use
3258 TARGET_DEFAULT_NORETURN.
3260 2014-02-19 Tom Tromey <tromey@redhat.com>
3262 * target-delegates.c: Rebuild.
3263 * target.c (target_record_is_replaying): Unconditionally
3265 * target.h (struct target_ops) <to_record_is_replaying>: Use
3266 TARGET_DEFAULT_RETURN.
3268 2014-02-19 Tom Tromey <tromey@redhat.com>
3270 * target-delegates.c: Rebuild.
3271 * target.c (target_goto_record_begin): Unconditionally delegate.
3272 * target.h (struct target_ops) <to_goto_record_begin>: Use
3273 TARGET_DEFAULT_NORETURN.
3275 2014-02-19 Tom Tromey <tromey@redhat.com>
3277 * target-delegates.c: Rebuild.
3278 * target.c (target_goto_record_end): Unconditionally delegate.
3279 * target.h (struct target_ops) <to_goto_record_end>: Use
3280 TARGET_DEFAULT_NORETURN.
3282 2014-02-19 Tom Tromey <tromey@redhat.com>
3284 * target-delegates.c: Rebuild.
3285 * target.c (target_goto_record): Unconditionally delegate.
3286 * target.h (struct target_ops) <to_goto_record>: Use
3287 TARGET_DEFAULT_NORETURN.
3289 2014-02-19 Tom Tromey <tromey@redhat.com>
3291 * target-delegates.c: Rebuild.
3292 * target.c (target_insn_history): Unconditionally delegate.
3293 * target.h (struct target_ops) <to_insn_history>: Use
3294 TARGET_DEFAULT_NORETURN.
3296 2014-02-19 Tom Tromey <tromey@redhat.com>
3298 * target-delegates.c: Rebuild.
3299 * target.c (target_insn_history_from): Unconditionally delegate.
3300 * target.h (struct target_ops) <to_insn_history_from>: Use
3301 TARGET_DEFAULT_NORETURN.
3303 2014-02-19 Tom Tromey <tromey@redhat.com>
3305 * target-delegates.c: Rebuild.
3306 * target.c (target_insn_history_range): Unconditionally delegate.
3307 * target.h (struct target_ops) <to_insn_history_range>: Use
3308 TARGET_DEFAULT_NORETURN.
3310 2014-02-19 Tom Tromey <tromey@redhat.com>
3312 * target-delegates.c: Rebuild.
3313 * target.c (target_call_history): Unconditionally delegate.
3314 * target.h (struct target_ops) <to_call_history>: Use
3315 TARGET_DEFAULT_NORETURN.
3317 2014-02-19 Tom Tromey <tromey@redhat.com>
3319 * target-delegates.c: Rebuild.
3320 * target.c (target_call_history_from): Unconditionally delegate.
3321 * target.h (struct target_ops) <to_call_history_from>: Use
3322 TARGET_DEFAULT_NORETURN.
3324 2014-02-19 Tom Tromey <tromey@redhat.com>
3326 * target-delegates.c: Rebuild.
3327 * target.c (target_call_history_range): Unconditionally delegate.
3328 * target.h (struct target_ops) <to_call_history_range>: Use
3329 TARGET_DEFAULT_NORETURN.
3331 2014-02-19 Tom Tromey <tromey@redhat.com>
3333 * target-delegates.c: Rebuild.
3334 * target.c (target_verify_memory): Unconditionally delegate.
3335 * target.h (struct target_ops) <to_verify_memory>: Use
3336 TARGET_DEFAULT_NORETURN.
3338 2014-02-19 Tom Tromey <tromey@redhat.com>
3340 * target-delegates.c: Rebuild.
3341 * target.c (target_core_of_thread): Unconditionally delegate.
3342 * target.h (struct target_ops) <to_core_of_thread>: Use
3343 TARGET_DEFAULT_RETURN.
3345 2014-02-19 Tom Tromey <tromey@redhat.com>
3347 * target-delegates.c: Rebuild.
3348 * target.c (target_flash_done): Unconditionally delegate.
3349 * target.h (struct target_ops) <to_flash_done>: Use
3350 TARGET_DEFAULT_NORETURN.
3352 2014-02-19 Tom Tromey <tromey@redhat.com>
3354 * target-delegates.c: Rebuild.
3355 * target.c (target_flash_erase): Unconditionally delegate.
3356 * target.h (struct target_ops) <to_flash_erase>: Use
3357 TARGET_DEFAULT_NORETURN.
3359 2014-02-19 Tom Tromey <tromey@redhat.com>
3361 * target-delegates.c: Rebuild.
3362 * target.c (target_get_section_table): Unconditionally delegate.
3363 * target.h (struct target_ops) <to_get_section_table>: Use
3364 TARGET_DEFAULT_RETURN.
3366 2014-02-19 Tom Tromey <tromey@redhat.com>
3368 * target-delegates.c: Rebuild.
3369 * target.c (target_pid_to_str): Unconditionally delegate.
3370 (init_dummy_target): Don't initialize to_pid_to_str.
3371 (default_pid_to_str): Rename from dummy_pid_to_str.
3372 * target.h (struct target_ops) <to_pid_to_str>: Use
3373 TARGET_DEFAULT_FUNC.
3375 2014-02-19 Tom Tromey <tromey@redhat.com>
3377 * target-delegates.c: Rebuild.
3378 * target.c (target_find_new_threads): Unconditionally delegate.
3379 * target.h (struct target_ops) <to_find_new_threads>: Use
3380 TARGET_DEFAULT_RETURN.
3382 2014-02-19 Tom Tromey <tromey@redhat.com>
3384 * target-delegates.c: Rebuild.
3385 * target.c (target_program_signals): Unconditionally delegate.
3386 * target.h (struct target_ops) <to_program_signals>: Use
3387 TARGET_DEFAULT_IGNORE.
3389 2014-02-19 Tom Tromey <tromey@redhat.com>
3391 * target-delegates.c: Rebuild.
3392 * target.c (target_pass_signals): Unconditionally delegate.
3393 * target.h (struct target_ops) <to_pass_signals>: Use
3394 TARGET_DEFAULT_IGNORE.
3396 2014-02-19 Tom Tromey <tromey@redhat.com>
3398 * target-delegates.c: Rebuild.
3399 * target.c (default_mourn_inferior): New function.
3400 (target_mourn_inferior): Unconditionally delegate.
3401 * target.h (struct target_ops) <to_mourn_inferior>: Use
3402 TARGET_DEFAULT_FUNC.
3404 2014-02-19 Tom Tromey <tromey@redhat.com>
3406 * target-delegates.c: Rebuild.
3407 * target.c (default_follow_fork): New function.
3408 (target_follow_fork): Unconditionally delegate.
3409 * target.h (struct target_ops) <to_follow_fork>: Use
3410 TARGET_DEFAULT_FUNC.
3412 2014-02-19 Tom Tromey <tromey@redhat.com>
3414 * target-delegates.c: Rebuild.
3415 * target.c (target_kill): Unconditionally delegate.
3416 * target.h (struct target_ops) <to_kill>: Use
3417 TARGET_DEFAULT_NORETURN.
3419 2014-02-19 Tom Tromey <tromey@redhat.com>
3421 * target-delegates.c: Rebuild.
3422 * target.c (target_masked_watch_num_registers): Unconditionally
3424 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3425 Use TARGET_DEFAULT_RETURN.
3427 2014-02-19 Tom Tromey <tromey@redhat.com>
3429 * target-delegates.c: Rebuild.
3430 * target.c (target_remove_mask_watchpoint): Unconditionally
3432 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3433 TARGET_DEFAULT_RETURN.
3435 2014-02-19 Tom Tromey <tromey@redhat.com>
3437 * target-delegates.c: Rebuild.
3438 * target.c (target_insert_mask_watchpoint): Unconditionally
3440 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3441 TARGET_DEFAULT_RETURN.
3443 2014-02-19 Tom Tromey <tromey@redhat.com>
3445 * target-delegates.c: Rebuild.
3446 * target.c (target_ranged_break_num_registers): Unconditionally
3448 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3449 Use TARGET_DEFAULT_RETURN.
3451 2014-02-19 Tom Tromey <tromey@redhat.com>
3453 * target-delegates.c: Rebuild.
3454 * target.c (target_fetch_registers): Unconditionally delegate.
3455 * target.h (struct target_ops) <to_fetch_registers>: Use
3456 TARGET_DEFAULT_NORETURN.
3458 2014-02-19 Tom Tromey <tromey@redhat.com>
3460 * target-delegates.c: Rebuild.
3461 * target.c (update_current_target): Don't inherit or default
3463 * target.h (struct target_ops) <to_stop>: Use
3464 TARGET_DEFAULT_IGNORE.
3466 2014-02-19 Tom Tromey <tromey@redhat.com>
3468 * target-delegates.c: Rebuild.
3469 * target.c (update_current_target): Don't inherit or default
3470 to_can_run_breakpoint_commands.
3471 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3472 Use TARGET_DEFAULT_RETURN.
3474 2014-02-19 Tom Tromey <tromey@redhat.com>
3476 * target-delegates.c: Rebuild.
3477 * target.c (update_current_target): Don't inherit or default
3478 to_supports_evaluation_of_breakpoint_conditions.
3479 * target.h (struct target_ops)
3480 <to_supports_evaluation_of_breakpoint_conditions>: Use
3481 TARGET_DEFAULT_RETURN.
3483 2014-02-19 Tom Tromey <tromey@redhat.com>
3485 * target-delegates.c: Rebuild.
3486 * target.c (update_current_target): Don't inherit or default
3487 to_augmented_libraries_svr4_read.
3488 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3489 Use TARGET_DEFAULT_RETURN.
3491 2014-02-19 Tom Tromey <tromey@redhat.com>
3493 * target-delegates.c: Rebuild.
3494 * target.c (update_current_target): Don't inherit or default
3496 * target.h (struct target_ops) <to_can_use_agent>: Use
3497 TARGET_DEFAULT_RETURN.
3499 2014-02-19 Tom Tromey <tromey@redhat.com>
3501 * target-delegates.c: Rebuild.
3502 * target.c (update_current_target): Don't inherit or default
3504 * target.h (struct target_ops) <to_use_agent>: Use
3505 TARGET_DEFAULT_NORETURN.
3507 2014-02-19 Tom Tromey <tromey@redhat.com>
3509 * target-delegates.c: Rebuild.
3510 * target.c (update_current_target): Don't inherit or default
3512 (return_null): Remove.
3513 * target.h (struct target_ops) <to_traceframe_info>: Use
3514 TARGET_DEFAULT_RETURN.
3516 2014-02-19 Tom Tromey <tromey@redhat.com>
3518 * target-delegates.c: Rebuild.
3519 * target.c (update_current_target): Don't inherit or default
3520 to_static_tracepoint_markers_by_strid.
3521 * target.h (struct target_ops)
3522 <to_static_tracepoint_markers_by_strid>: Use
3523 TARGET_DEFAULT_NORETURN.
3525 2014-02-19 Tom Tromey <tromey@redhat.com>
3527 * target-delegates.c: Rebuild.
3528 * target.c (update_current_target): Don't inherit or default
3529 to_static_tracepoint_marker_at.
3530 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3531 Use TARGET_DEFAULT_RETURN.
3533 2014-02-19 Tom Tromey <tromey@redhat.com>
3535 * target-delegates.c: Rebuild.
3536 * target.c (update_current_target): Don't inherit or default
3538 * target.h (struct target_ops) <to_set_permissions>: Use
3539 TARGET_DEFAULT_IGNORE.
3541 2014-02-19 Tom Tromey <tromey@redhat.com>
3543 * target-delegates.c: Rebuild.
3544 * target.c (update_current_target): Don't inherit or default
3546 * target.h (struct target_ops) <to_get_tib_address>: Use
3547 TARGET_DEFAULT_NORETURN.
3549 2014-02-19 Tom Tromey <tromey@redhat.com>
3551 * target-delegates.c: Rebuild.
3552 * target.c (update_current_target): Don't inherit or default
3554 * target.h (struct target_ops) <to_set_trace_notes>: Use
3555 TARGET_DEFAULT_RETURN.
3557 2014-02-19 Tom Tromey <tromey@redhat.com>
3559 * target-delegates.c: Rebuild.
3560 * target.c (update_current_target): Don't initialize
3561 to_set_trace_buffer_size.
3562 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3563 TARGET_DEFAULT_IGNORE.
3565 2014-02-19 Tom Tromey <tromey@redhat.com>
3567 * target-delegates.c: Rebuild.
3568 * target.c (update_current_target): Don't inherit or default
3569 to_set_circular_trace_buffer.
3570 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3571 TARGET_DEFAULT_IGNORE.
3573 2014-02-19 Tom Tromey <tromey@redhat.com>
3575 * target-delegates.c: Rebuild.
3576 * target.c (update_current_target): Don't inherit or default
3577 to_set_disconnected_tracing.
3578 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3579 TARGET_DEFAULT_IGNORE.
3581 2014-02-19 Tom Tromey <tromey@redhat.com>
3583 * target-delegates.c: Rebuild.
3584 * target.c (update_current_target): Don't inherit or default
3585 to_get_min_fast_tracepoint_insn_len.
3586 (return_minus_one): Remove.
3587 * target.h (struct target_ops)
3588 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
3590 2014-02-19 Tom Tromey <tromey@redhat.com>
3592 * target-delegates.c: Rebuild.
3593 * target.c (update_current_target): Don't inherit or default
3594 to_get_raw_trace_data.
3595 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3596 TARGET_DEFAULT_NORETURN.
3598 2014-02-19 Tom Tromey <tromey@redhat.com>
3600 * target-delegates.c: Rebuild.
3601 * target.c (update_current_target): Don't inherit or default
3602 to_upload_trace_state_variables.
3603 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3604 Use TARGET_DEFAULT_RETURN.
3606 2014-02-19 Tom Tromey <tromey@redhat.com>
3608 * target-delegates.c: Rebuild.
3609 * target.c (update_current_target): Don't inherit or default
3610 to_upload_tracepoints.
3611 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3612 TARGET_DEFAULT_RETURN.
3614 2014-02-19 Tom Tromey <tromey@redhat.com>
3616 * target-delegates.c: Rebuild.
3617 * target.c (update_current_target): Don't inherit or default
3619 * target.h (struct target_ops) <to_save_trace_data>: Use
3620 TARGET_DEFAULT_NORETURN.
3622 2014-02-19 Tom Tromey <tromey@redhat.com>
3624 * target-delegates.c: Rebuild.
3625 * target.c (update_current_target): Don't inherit or default
3626 to_get_trace_state_variable_value.
3627 * target.h (struct target_ops)
3628 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3630 2014-02-19 Tom Tromey <tromey@redhat.com>
3632 * target-delegates.c: Rebuild.
3633 * target.c (update_current_target): Don't inherit or default
3635 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
3637 2014-02-19 Tom Tromey <tromey@redhat.com>
3639 * target-delegates.c: Rebuild.
3640 * target.c (update_current_target): Don't inherit or default
3642 * target.h (struct target_ops) <to_trace_stop>: Use
3643 TARGET_DEFAULT_NORETURN.
3645 2014-02-19 Tom Tromey <tromey@redhat.com>
3647 * target-delegates.c: Rebuild.
3648 * target.c (update_current_target): Don't inherit or default
3649 to_get_tracepoint_status.
3650 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3651 TARGET_DEFAULT_NORETURN.
3653 2014-02-19 Tom Tromey <tromey@redhat.com>
3655 * target-delegates.c: Rebuild.
3656 * target.c (update_current_target): Don't inherit or default
3657 to_get_trace_status.
3658 * target.h (struct target_ops) <to_get_trace_status>: Use
3659 TARGET_DEFAULT_RETURN.
3661 2014-02-19 Tom Tromey <tromey@redhat.com>
3663 * target-delegates.c: Rebuild.
3664 * target.c (update_current_target): Don't inherit or default
3666 * target.h (struct target_ops) <to_trace_start>: Use
3667 TARGET_DEFAULT_NORETURN.
3669 2014-02-19 Tom Tromey <tromey@redhat.com>
3671 * target-delegates.c: Rebuild.
3672 * target.c (update_current_target): Don't inherit or default
3673 to_trace_set_readonly_regions.
3674 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3675 Use TARGET_DEFAULT_NORETURN.
3677 2014-02-19 Tom Tromey <tromey@redhat.com>
3679 * target-delegates.c: Rebuild.
3680 * target.c (update_current_target): Don't inherit or default
3681 to_disable_tracepoint.
3682 * target.h (struct target_ops) <to_disable_tracepoint>: Use
3683 TARGET_DEFAULT_NORETURN.
3685 2014-02-19 Tom Tromey <tromey@redhat.com>
3687 * target-delegates.c: Rebuild.
3688 * target.c (update_current_target): Don't inherit or default
3689 to_enable_tracepoint.
3690 * target.h (struct target_ops) <to_enable_tracepoint>: Use
3691 TARGET_DEFAULT_NORETURN.
3693 2014-02-19 Tom Tromey <tromey@redhat.com>
3695 * target-delegates.c: Rebuild.
3696 * target.c (update_current_target): Don't inherit or default
3697 to_download_trace_state_variable.
3698 * target.h (struct target_ops) <to_download_trace_state_variable>:
3699 Use TARGET_DEFAULT_NORETURN.
3701 2014-02-19 Tom Tromey <tromey@redhat.com>
3703 * target-delegates.c: Rebuild.
3704 * target.c (update_current_target): Don't inherit or default
3705 to_can_download_tracepoint.
3706 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3707 TARGET_DEFAULT_RETURN.
3709 2014-02-19 Tom Tromey <tromey@redhat.com>
3711 * target-delegates.c: Rebuild.
3712 * target.c (update_current_target): Don't inherit or default
3713 to_download_tracepoint.
3714 * target.h (struct target_ops) <to_download_tracepoint>: Use
3715 TARGET_DEFAULT_NORETURN.
3717 2014-02-19 Tom Tromey <tromey@redhat.com>
3719 * target-delegates.c: Rebuild.
3720 * target.c (update_current_target): Don't inherit or default
3722 * target.h (struct target_ops) <to_trace_init>: Use
3723 TARGET_DEFAULT_RETURN.
3725 2014-02-19 Tom Tromey <tromey@redhat.com>
3727 * target-delegates.c: Rebuild.
3728 * target.c (update_current_target): Don't inherit or default
3729 to_supports_string_tracing.
3730 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3731 TARGET_DEFAULT_RETURN.
3733 2014-02-19 Tom Tromey <tromey@redhat.com>
3735 * target-delegates.c: Rebuild.
3736 * target.c (update_current_target): Don't inherit or default
3737 to_supports_enable_disable_tracepoint.
3738 * target.h (struct target_ops)
3739 <to_supports_enable_disable_tracepoint>: Use
3740 TARGET_DEFAULT_RETURN.
3742 2014-02-19 Tom Tromey <tromey@redhat.com>
3744 * target-delegates.c: Rebuild.
3745 * target.c (update_current_target): Don't inherit or default
3746 to_supports_multi_process.
3747 * target.h (struct target_ops) <to_supports_multi_process>: Use
3748 TARGET_DEFAULT_RETURN.
3750 2014-02-19 Tom Tromey <tromey@redhat.com>
3752 * target-delegates.c: Rebuild.
3753 * target.c (update_current_target): Don't inherit or default
3754 to_get_ada_task_ptid.
3755 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3756 TARGET_DEFAULT_FUNC.
3758 2014-02-19 Tom Tromey <tromey@redhat.com>
3760 * target-delegates.c: Rebuild.
3761 * target.c (update_current_target): Don't inherit or default
3762 to_thread_architecture.
3763 * target.h (struct target_ops) <to_thread_architecture>: Use
3764 TARGET_DEFAULT_FUNC.
3766 2014-02-19 Tom Tromey <tromey@redhat.com>
3768 * target-delegates.c: Rebuild.
3769 * target.c (update_current_target): Don't inherit or default
3770 to_execution_direction.
3771 * target.h (struct target_ops) <to_execution_direction>: Use
3772 TARGET_DEFAULT_FUNC.
3774 2014-02-19 Tom Tromey <tromey@redhat.com>
3776 * target-delegates.c: Rebuild.
3777 * target.c (update_current_target): Don't inherit or default
3778 to_can_execute_reverse.
3779 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3780 TARGET_DEFAULT_RETURN.
3781 (target_can_execute_reverse): Unconditionally delegate.
3783 2014-02-19 Tom Tromey <tromey@redhat.com>
3785 * target-delegates.c: Rebuild.
3786 * target.c (update_current_target): Don't inherit or default
3788 (dummy_goto_bookmark): Remove.
3789 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3790 * target.h (struct target_ops) <to_goto_bookmark>: Use
3791 TARGET_DEFAULT_NORETURN.
3793 2014-02-19 Tom Tromey <tromey@redhat.com>
3795 * target-delegates.c: Rebuild.
3796 * target.c (update_current_target): Don't inherit or default
3798 (dummy_get_bookmark): Remove.
3799 (init_dummy_target): Don't inherit or default to_get_bookmark.
3800 * target.h (struct target_ops) <to_get_bookmark>: Use
3801 TARGET_DEFAULT_NORETURN
3803 2014-02-19 Tom Tromey <tromey@redhat.com>
3805 * target-delegates.c: Rebuild.
3806 * target.c (update_current_target): Don't inherit or default
3807 to_make_corefile_notes.
3808 (init_dummy_target): Don't initialize to_make_corefile_notes.
3809 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3810 TARGET_DEFAULT_FUNC.
3812 2014-02-19 Tom Tromey <tromey@redhat.com>
3814 * target-delegates.c: Rebuild.
3815 * target.c (update_current_target): Don't inherit or default
3816 to_find_memory_regions.
3817 (init_dummy_target): Don't initialize to_find_memory_regions.
3818 * target.h (struct target_ops) <to_find_memory_regions>: Use
3819 TARGET_DEFAULT_FUNC.
3821 2014-02-19 Tom Tromey <tromey@redhat.com>
3823 * target-delegates.c: Rebuild.
3824 * target.c (update_current_target): Don't inherit or default
3826 * target.h (struct target_ops) <to_log_command>: Use
3827 TARGET_DEFAULT_IGNORE.
3828 (target_log_command): Unconditionally delegate.
3830 2014-02-19 Tom Tromey <tromey@redhat.com>
3832 * target-delegates.c: Rebuild.
3833 * target.c (update_current_target): Don't inherit or default
3834 to_pid_to_exec_file.
3835 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3836 TARGET_DEFAULT_RETURN.
3838 2014-02-19 Tom Tromey <tromey@redhat.com>
3840 * target-delegates.c: Rebuild.
3841 * target.c (update_current_target): Don't inherit or default
3843 (target_thread_name): Unconditionally delegate.
3844 * target.h (struct target_ops) <to_thread_name>: Use
3845 TARGET_DEFAULT_RETURN.
3847 2014-02-19 Tom Tromey <tromey@redhat.com>
3849 * target-delegates.c: Rebuild.
3850 * target.c (update_current_target): Don't inherit or default
3851 to_extra_thread_info.
3852 * target.h (struct target_ops) <to_extra_thread_info>: Use
3853 TARGET_DEFAULT_RETURN.
3855 2014-02-19 Tom Tromey <tromey@redhat.com>
3857 * target-delegates.c: Rebuild.
3858 * target.c (update_current_target): Don't inherit or default
3860 * target.h (struct target_ops) <to_has_exited>: Use
3861 TARGET_DEFAULT_RETURN..
3863 2014-02-19 Tom Tromey <tromey@redhat.com>
3865 * target-delegates.c: Rebuild.
3866 * target.c (update_current_target): Don't inherit or default
3867 to_set_syscall_catchpoint.
3868 (return_one): Remove.
3869 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3870 TARGET_DEFAULT_RETURN.
3872 2014-02-19 Tom Tromey <tromey@redhat.com>
3874 * target-delegates.c: Rebuild.
3875 * target.c (update_current_target): Don't inherit or default
3876 to_insert_exec_catchpoint.
3877 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3878 TARGET_DEFAULT_RETURN.
3880 2014-01-08 Tom Tromey <tromey@redhat.com>
3882 * target-delegates.c: Rebuild.
3883 * target.c (update_current_target): Don't inherit or default
3884 to_insert_exec_catchpoint.
3885 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3886 TARGET_DEFAULT_RETURN.
3888 2014-02-19 Tom Tromey <tromey@redhat.com>
3890 * target-delegates.c: Rebuild.
3891 * target.c (update_current_target): Don't inherit or default
3892 to_remove_vfork_catchpoint.
3893 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3894 TARGET_DEFAULT_RETURN.
3896 2014-02-19 Tom Tromey <tromey@redhat.com>
3898 * target-delegates.c: Rebuild.
3899 * target.c (update_current_target): Don't inherit or default
3900 to_insert_vfork_catchpoint.
3901 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3902 TARGET_DEFAULT_RETURN.
3904 2014-02-19 Tom Tromey <tromey@redhat.com>
3906 * target-delegates.c: Rebuild.
3907 * target.c (update_current_target): Don't inherit or default
3908 to_remove_fork_catchpoint.
3909 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3910 TARGET_DEFAULT_RETURN.
3912 2014-02-19 Tom Tromey <tromey@redhat.com>
3914 * target-delegates.c: Rebuild.
3915 * target.c (update_current_target): Don't inherit or default
3916 to_insert_fork_catchpoint.
3917 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3918 TARGET_DEFAULT_RETURN.
3920 2014-02-19 Tom Tromey <tromey@redhat.com>
3922 * target-delegates.c: Rebuild.
3923 * target.c (update_current_target): Don't inherit or default
3924 to_post_startup_inferior.
3925 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3926 TARGET_DEFAULT_IGNORE.
3928 2014-02-19 Tom Tromey <tromey@redhat.com>
3930 * target-delegates.c: Rebuild.
3931 * target.c (update_current_target): Don't inherit or default
3933 * target.h (struct target_ops) <to_load>: Use
3934 TARGET_DEFAULT_NORETURN.
3936 2014-02-19 Tom Tromey <tromey@redhat.com>
3938 * target-delegates.c: Rebuild.
3939 * target.c (update_current_target): Don't inherit or default
3941 * target.h (struct target_ops) <to_terminal_info>: Use
3942 TARGET_DEFAULT_FUNC.
3944 2014-02-19 Tom Tromey <tromey@redhat.com>
3946 * target-delegates.c: Rebuild.
3947 * target.c (update_current_target): Don't inherit or default
3948 to_terminal_save_ours.
3949 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3950 TARGET_DEFAULT_IGNORE.
3952 2014-02-19 Tom Tromey <tromey@redhat.com>
3954 * target-delegates.c: Rebuild.
3955 * target.c (update_current_target): Don't inherit or default
3957 * target.h (struct target_ops) <to_terminal_ours>: Use
3958 TARGET_DEFAULT_IGNORE.
3960 2014-02-19 Tom Tromey <tromey@redhat.com>
3962 * target-delegates.c: Rebuild.
3963 * target.c (update_current_target): Don't inherit or default
3964 to_terminal_ours_for_output.
3965 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3966 TARGET_DEFAULT_IGNORE.
3968 2014-02-19 Tom Tromey <tromey@redhat.com>
3970 * target-delegates.c: Rebuild.
3971 * target.c (update_current_target): Don't inherit or default
3972 to_terminal_inferior.
3973 * target.h (struct target_ops) <to_terminal_inferior>: Use
3974 TARGET_DEFAULT_IGNORE.
3976 2014-02-19 Tom Tromey <tromey@redhat.com>
3978 * target-delegates.c: Rebuild.
3979 * target.c (update_current_target): Don't inherit or default
3981 * target.h (struct target_ops) <to_terminal_init>: Use
3982 TARGET_DEFAULT_IGNORE.
3984 2014-02-19 Tom Tromey <tromey@redhat.com>
3986 * target-delegates.c: Rebuild.
3987 * target.c (update_current_target): Don't inherit or default
3988 to_can_accel_watchpoint_condition.
3989 * target.h (struct target_ops)
3990 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
3992 2014-02-19 Tom Tromey <tromey@redhat.com>
3994 * target-delegates.c: Rebuild.
3995 * target.c (update_current_target): Don't inherit or default
3996 to_region_ok_for_hw_watchpoint.
3997 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3998 Use TARGET_DEFAULT_FUNC.
4000 2014-02-19 Tom Tromey <tromey@redhat.com>
4002 * target-delegates.c: Rebuild.
4003 * target.c (update_current_target): Don't inherit or default
4004 to_watchpoint_addr_within_range.
4005 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4006 Use TARGET_DEFAULT_FUNC.
4008 2014-02-19 Tom Tromey <tromey@redhat.com>
4010 * target-delegates.c: Rebuild.
4011 * target.c (update_current_target): Don't inherit or default
4012 to_remove_watchpoint.
4013 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4014 TARGET_DEFAULT_NORETURN.
4016 2014-02-19 Tom Tromey <tromey@redhat.com>
4018 * target-delegates.c: Rebuild.
4019 * target.c (update_current_target): Don't inherit or default
4020 to_insert_watchpoint.
4021 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4022 TARGET_DEFAULT_RETURN.
4024 2014-02-19 Tom Tromey <tromey@redhat.com>
4026 * target-delegates.c: Rebuild.
4027 * target.c (update_current_target): Don't inherit or default
4028 to_remove_hw_breakpoint.
4029 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4030 TARGET_DEFAULT_RETURN.
4032 2014-02-19 Tom Tromey <tromey@redhat.com>
4034 * target-delegates.c: Rebuild.
4035 * target.c (update_current_target): Don't inherit or default
4036 to_insert_hw_breakpoint.
4037 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4038 TARGET_DEFAULT_RETURN.
4040 2014-02-19 Tom Tromey <tromey@redhat.com>
4042 * target-delegates.c: Rebuild.
4043 * target.c (update_current_target): Don't inherit or default
4044 to_can_use_hw_breakpoint.
4045 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4046 TARGET_DEFAULT_RETURN.
4048 2014-02-19 Tom Tromey <tromey@redhat.com>
4050 * target-delegates.c: Rebuild.
4051 * target.c (update_current_target): Don't inherit or default
4053 * target.h (struct target_ops) <to_files_info>: Use
4054 TARGET_DEFAULT_IGNORE.
4056 2014-02-19 Tom Tromey <tromey@redhat.com>
4058 * target-delegates.c: Rebuild.
4059 * target.c (update_current_target): Don't inherit or default
4061 * target.h (struct target_ops) <to_store>: Use
4062 TARGET_DEFAULT_NORETURN.
4064 2014-02-19 Tom Tromey <tromey@redhat.com>
4066 * target-delegates.c: Rebuild.
4067 * target.c (update_current_target): Don't inherit or default
4069 * target.h (struct target_ops) <to_post_attach>: Use
4070 TARGET_DEFAULT_IGNORE.
4072 2014-02-19 Tom Tromey <tromey@redhat.com>
4074 * target-delegates.c: Rebuild.
4075 * target.c (update_current_target): Don't inherit or default
4077 (default_rcmd): New function.
4078 (do_monitor_command): Unconditionally delegate.
4079 * target.h (struct target_ops) <to_rmcd>: Use
4080 TARGET_DEFAULT_FUNC.
4082 2014-02-19 Tom Tromey <tromey@redhat.com>
4084 * target-delegates.c: Rebuild.
4085 * target.c (init_dummy_target): Don't initialize to_attach.
4086 (target_attach): Unconditionally delegate.
4087 * target.h (struct target_ops) <to_attach>: Use
4088 TARGET_DEFAULT_FUNC.
4090 2014-02-19 Tom Tromey <tromey@redhat.com>
4092 * target-delegates.c: Rebuild.
4093 * target.c (target_detach): Unconditionally delegate.
4094 (init_dummy_target): Don't initialize to_detach.
4095 * target.h (struct target_ops) <to_detach>: Use
4096 TARGET_DEFAULT_IGNORE.
4098 2014-02-19 Tom Tromey <tromey@redhat.com>
4100 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4102 (target_augmented_libraries_svr4_read): Add argument.
4103 * target.c (update_current_target): Update.
4104 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4107 2014-02-19 Tom Tromey <tromey@redhat.com>
4109 * target.h (struct target_ops) <to_call_history_range>: Add
4111 * target.c (target_call_history_range): Add argument.
4112 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4114 (record_btrace_call_history_from): Update.
4116 2014-02-19 Tom Tromey <tromey@redhat.com>
4118 * target.h (struct target_ops) <to_call_history_from>: Add
4120 * target.c (target_call_history_from): Add argument.
4121 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4124 2014-02-19 Tom Tromey <tromey@redhat.com>
4126 * target.h (struct target_ops) <to_call_history>: Add argument.
4127 * target.c (target_call_history): Add argument.
4128 * record-btrace.c (record_btrace_call_history): Add 'self'
4131 2014-02-19 Tom Tromey <tromey@redhat.com>
4133 * target.h (struct target_ops) <to_insn_history_range>: Add
4135 * target.c (target_insn_history_range): Add argument.
4136 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4138 (record_btrace_insn_history_from): Update.
4140 2014-02-19 Tom Tromey <tromey@redhat.com>
4142 * target.h (struct target_ops) <to_insn_history_from>: Add
4144 * target.c (target_insn_history_from): Add argument.
4145 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4148 2014-02-19 Tom Tromey <tromey@redhat.com>
4150 * target.h (struct target_ops) <to_insn_history>: Add argument.
4151 * target.c (target_insn_history): Add argument.
4152 * record-btrace.c (record_btrace_insn_history): Add 'self'
4155 2014-02-19 Tom Tromey <tromey@redhat.com>
4157 * target.h (struct target_ops) <to_goto_record>: Add argument.
4158 * target.c (target_goto_record): Add argument.
4159 * record-full.c (record_full_goto): Add 'self' argument.
4160 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4162 2014-02-19 Tom Tromey <tromey@redhat.com>
4164 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4165 * target.c (target_goto_record_end): Add argument.
4166 * record-full.c (record_full_goto_end): Add 'self' argument.
4167 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4169 2014-02-19 Tom Tromey <tromey@redhat.com>
4171 * target.h (struct target_ops) <to_goto_record_begin>: Add
4173 * target.c (target_goto_record_begin): Add argument.
4174 * record-full.c (record_full_goto_begin): Add 'self' argument.
4175 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4178 2014-02-19 Tom Tromey <tromey@redhat.com>
4180 * target.h (struct target_ops) <to_record_is_replaying>: Add
4182 * target.c (target_record_is_replaying): Add argument.
4183 * record-full.c (record_full_is_replaying): Add 'self' argument.
4184 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4186 (record_btrace_xfer_partial, record_btrace_store_registers)
4187 (record_btrace_prepare_to_store, record_btrace_resume)
4188 (record_btrace_wait, record_btrace_decr_pc_after_break)
4189 (record_btrace_find_new_threads, record_btrace_thread_alive):
4192 2014-02-19 Tom Tromey <tromey@redhat.com>
4194 * target.h (struct target_ops) <to_delete_record>: Add argument.
4195 * target.c (target_delete_record): Add argument.
4196 * record-full.c (record_full_delete): Add 'self' argument.
4198 2014-02-19 Tom Tromey <tromey@redhat.com>
4200 * target.h (struct target_ops) <to_save_record>: Add argument.
4201 * target.c (target_save_record): Add argument.
4202 * record-full.c (record_full_save): Add 'self' argument.
4203 (record_full_save): Add 'self' argument.
4205 2014-02-19 Tom Tromey <tromey@redhat.com>
4207 * target.h (struct target_ops) <to_info_record>: Add argument.
4208 * target.c (target_info_record): Add argument.
4209 * record.c (info_record_command): Add argument.
4210 * record-full.c (record_full_info): Add 'self' argument.
4211 * record-btrace.c (record_btrace_info): Add 'self' argument.
4213 2014-02-19 Tom Tromey <tromey@redhat.com>
4215 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4216 * target.c (target_stop_recording): Add argument.
4217 * record.c (record_stop): Add argument.
4218 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4221 2014-02-19 Tom Tromey <tromey@redhat.com>
4223 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4224 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4225 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4227 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4228 (_initialize_amd64_linux_nat): Use it.
4229 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4230 (_initialize_i386_linux_nat): Use it.
4232 2014-02-19 Tom Tromey <tromey@redhat.com>
4234 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4235 * target.c (target_teardown_btrace): Add argument.
4236 * remote.c (remote_teardown_btrace): Add 'self' argument.
4237 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4239 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4242 2014-02-19 Tom Tromey <tromey@redhat.com>
4244 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4245 * target.c (target_disable_btrace): Add argument.
4246 * remote.c (remote_disable_btrace): Add 'self' argument.
4247 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4249 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4252 2014-02-19 Tom Tromey <tromey@redhat.com>
4254 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4255 * target.c (target_enable_btrace): Add argument.
4256 * remote.c (remote_enable_btrace): Add 'self' argument.
4257 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4259 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4262 2014-02-19 Tom Tromey <tromey@redhat.com>
4264 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4265 (target_can_use_agent): Add argument.
4266 * target.c (update_current_target): Update.
4267 * remote.c (remote_can_use_agent): Add 'self' argument.
4268 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4270 2014-02-19 Tom Tromey <tromey@redhat.com>
4272 * target.h (struct target_ops) <to_use_agent>: Add argument.
4273 (target_use_agent): Add argument.
4274 * target.c (update_current_target): Update.
4275 * remote.c (remote_use_agent): Add 'self' argument.
4276 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4278 2014-02-19 Tom Tromey <tromey@redhat.com>
4280 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4281 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4282 (target_traceframe_info): Add argument.
4283 * target.c (update_current_target): Update.
4284 * remote.c (remote_traceframe_info): Add 'self' argument.
4285 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4287 2014-02-19 Tom Tromey <tromey@redhat.com>
4289 * target.h (target_static_tracepoint_markers_by_strid): Add
4291 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4293 * target.c (update_current_target): Update.
4294 * remote.c (struct target_ops)
4295 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4296 * linux-nat.c (struct target_ops)
4297 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4299 2014-02-19 Tom Tromey <tromey@redhat.com>
4301 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4303 (target_static_tracepoint_marker_at): Add argument.
4304 * target.c (update_current_target): Update.
4305 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4308 2014-02-19 Tom Tromey <tromey@redhat.com>
4310 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4311 (target_set_permissions): Add argument.
4312 * target.c (update_current_target): Update.
4313 * remote.c (remote_set_permissions): Add 'self' argument.
4314 (remote_start_remote): Update.
4316 2014-02-19 Tom Tromey <tromey@redhat.com>
4318 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4319 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4320 (target_get_tib_address): Add argument.
4321 * target.c (update_current_target): Update.
4322 * remote.c (remote_get_tib_address): Add 'self' argument.
4324 2014-02-19 Tom Tromey <tromey@redhat.com>
4326 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4327 (target_set_trace_notes): Add argument.
4328 * target.c (update_current_target): Update.
4329 * remote.c (remote_set_trace_notes): Add 'self' argument.
4331 2014-02-19 Tom Tromey <tromey@redhat.com>
4333 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4335 (target_set_trace_buffer_size): Add argument.
4336 * target.c (update_current_target): Update.
4337 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4339 2014-02-19 Tom Tromey <tromey@redhat.com>
4341 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4343 (target_set_circular_trace_buffer): Add argument.
4344 * target.c (update_current_target): Update.
4345 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4348 2014-02-19 Tom Tromey <tromey@redhat.com>
4350 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4352 (target_set_disconnected_tracing): Add argument.
4353 * target.c (update_current_target): Update.
4354 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4356 2014-02-19 Tom Tromey <tromey@redhat.com>
4358 * target.h (struct target_ops)
4359 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4360 (target_get_min_fast_tracepoint_insn_len): Add argument.
4361 * target.c (update_current_target): Update.
4362 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4365 2014-02-19 Tom Tromey <tromey@redhat.com>
4367 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4369 (target_get_raw_trace_data): Add argument.
4370 * target.c (update_current_target): Update.
4371 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4373 2014-02-19 Tom Tromey <tromey@redhat.com>
4375 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4377 (target_upload_trace_state_variables): Add argument.
4378 * target.c (update_current_target): Update.
4379 * remote.c (remote_upload_trace_state_variables): Add 'self'
4381 (remote_start_remote): Update.
4383 2014-02-19 Tom Tromey <tromey@redhat.com>
4385 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4387 (target_upload_tracepoints): Add argument.
4388 * target.c (update_current_target): Update.
4389 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4390 (remote_start_remote): Update.
4392 2014-02-19 Tom Tromey <tromey@redhat.com>
4394 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4395 (target_save_trace_data): Add argument.
4396 * target.c (update_current_target): Update.
4397 * remote.c (remote_save_trace_data): Add 'self' argument.
4399 2014-02-19 Tom Tromey <tromey@redhat.com>
4401 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4403 * target.h (struct target_ops)
4404 <to_get_trace_state_variable_value>: Add argument.
4405 (target_get_trace_state_variable_value): Add argument.
4406 * target.c (update_current_target): Update.
4407 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4409 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4411 2014-02-19 Tom Tromey <tromey@redhat.com>
4413 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4414 * target.h (struct target_ops) <to_trace_find>: Add argument.
4415 (target_trace_find): Add argument.
4416 * target.c (update_current_target): Update.
4417 * remote.c (remote_trace_find): Add 'self' argument.
4418 * ctf.c (ctf_trace_find): Add 'self' argument.
4420 2014-02-19 Tom Tromey <tromey@redhat.com>
4422 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4423 (target_trace_stop): Add argument.
4424 * target.c (update_current_target): Update.
4425 * remote.c (remote_trace_stop): Add 'self' argument.
4427 2014-02-19 Tom Tromey <tromey@redhat.com>
4429 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4430 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4432 (target_get_tracepoint_status): Add argument.
4433 * target.c (update_current_target): Update.
4434 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4436 2014-02-19 Tom Tromey <tromey@redhat.com>
4438 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4439 * target.h (struct target_ops) <to_get_trace_status>: Add
4441 (target_get_trace_status): Add argument.
4442 * target.c (update_current_target): Update.
4443 * remote.c (remote_get_trace_status): Add 'self' argument.
4444 (remote_start_remote, remote_can_download_tracepoint): Update.
4445 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4447 2014-02-19 Tom Tromey <tromey@redhat.com>
4449 * target.h (struct target_ops) <to_trace_start>: Add argument.
4450 (target_trace_start): Add argument.
4451 * target.c (update_current_target): Update.
4452 * remote.c (remote_trace_start): Add 'self' argument.
4454 2014-02-19 Tom Tromey <tromey@redhat.com>
4456 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4458 (target_trace_set_readonly_regions): Add argument.
4459 * target.c (update_current_target): Update.
4460 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4463 2014-02-19 Tom Tromey <tromey@redhat.com>
4465 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4467 (target_disable_tracepoint): Add argument.
4468 * target.c (update_current_target): Update.
4469 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4471 2014-02-19 Tom Tromey <tromey@redhat.com>
4473 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4475 (target_enable_tracepoint): Add argument.
4476 * target.c (update_current_target): Update.
4477 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4479 2014-02-19 Tom Tromey <tromey@redhat.com>
4481 * target.h (struct target_ops) <to_download_trace_state_variable>:
4483 (target_download_trace_state_variable): Add argument.
4484 * target.c (update_current_target): Update.
4485 * remote.c (remote_download_trace_state_variable): Add 'self'
4488 2014-02-19 Tom Tromey <tromey@redhat.com>
4490 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4492 (target_can_download_tracepoint): Add argument.
4493 * target.c (update_current_target): Update.
4494 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4496 2014-02-19 Tom Tromey <tromey@redhat.com>
4498 * target.h (struct target_ops) <to_download_tracepoint>: Add
4500 (target_download_tracepoint): Add argument.
4501 * target.c (update_current_target): Update.
4502 * remote.c (remote_download_tracepoint): Add 'self' argument.
4504 2014-02-19 Tom Tromey <tromey@redhat.com>
4506 * target.h (struct target_ops) <to_trace_init>: Add argument.
4507 (target_trace_init): Add argument.
4508 * target.c (update_current_target): Update.
4509 * remote.c (remote_trace_init): Add 'self' argument.
4511 2014-02-19 Tom Tromey <tromey@redhat.com>
4513 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4514 * target.c (target_fileio_readlink): Add argument.
4515 * remote.c (remote_hostio_readlink): Add 'self' argument.
4516 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4518 2014-02-19 Tom Tromey <tromey@redhat.com>
4520 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4521 * target.c (target_fileio_unlink): Add argument.
4522 * remote.c (remote_hostio_unlink): Add 'self' argument.
4523 (remote_file_delete): Update.
4524 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4526 2014-02-19 Tom Tromey <tromey@redhat.com>
4528 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4529 * target.c (target_fileio_close): Add argument.
4530 * remote.c (remote_hostio_close): Add 'self' argument.
4531 (remote_hostio_close_cleanup): Update.
4532 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4534 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4536 2014-02-19 Tom Tromey <tromey@redhat.com>
4538 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4539 * target.c (target_fileio_pread): Add argument.
4540 * remote.c (remote_hostio_pread): Add 'self' argument.
4541 (remote_bfd_iovec_pread, remote_file_get): Update.
4542 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4544 2014-02-19 Tom Tromey <tromey@redhat.com>
4546 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4547 * target.c (target_fileio_pwrite): Add argument.
4548 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4549 (remote_file_put): Update.
4550 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4552 2014-02-19 Tom Tromey <tromey@redhat.com>
4554 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4555 * target.c (target_fileio_open): Add argument.
4556 * remote.c (remote_hostio_open): Add 'self' argument.
4557 (remote_bfd_iovec_open): Add 'self' argument.
4558 (remote_file_put): Add 'self' argument.
4559 (remote_file_get): Add 'self' argument.
4560 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4562 2014-02-19 Tom Tromey <tromey@redhat.com>
4564 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4566 (target_can_run_breakpoint_commands): Add argument.
4567 * target.c (update_current_target): Update.
4568 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4570 (remote_insert_breakpoint): Add 'self' argument.
4571 (remote_insert_hw_breakpoint): Add 'self' argument.
4572 (remote_can_run_breakpoint_commands): Add 'self' argument.
4574 2014-02-19 Tom Tromey <tromey@redhat.com>
4576 * target.h (struct target_ops)
4577 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4578 (target_supports_evaluation_of_breakpoint_conditions): Add
4580 * target.c (update_current_target): Update.
4581 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4583 (remote_insert_breakpoint): Add 'self' argument.
4584 (remote_insert_hw_breakpoint): Add 'self' argument.
4585 (remote_supports_cond_breakpoints): Add 'self' argument.
4587 2014-02-19 Tom Tromey <tromey@redhat.com>
4589 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4591 (target_supports_string_tracing): Add argument.
4592 * target.c (update_current_target): Update.
4593 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4595 2014-02-19 Tom Tromey <tromey@redhat.com>
4597 * target.h (struct target_ops)
4598 <to_supports_disable_randomization>: Add argument.
4599 * target.c (find_default_supports_disable_randomization): Add
4601 (target_supports_disable_randomization): Add argument.
4602 (find_default_supports_disable_randomization): Add 'self'
4604 * remote.c (extended_remote_supports_disable_randomization): Add
4606 (remote_supports_disable_randomization): Add 'self' argument.
4607 (extended_remote_create_inferior): Update.
4608 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4611 2014-02-19 Tom Tromey <tromey@redhat.com>
4613 * target.h (struct target_ops)
4614 <to_supports_enable_disable_tracepoint>: Add argument.
4615 (target_supports_enable_disable_tracepoint): Add argument.
4616 * target.c (update_current_target): Update.
4617 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4620 2014-02-19 Tom Tromey <tromey@redhat.com>
4622 * target.h (struct target_ops) <to_supports_multi_process>: Add
4624 (target_supports_multi_process): Add argument.
4625 * target.c (update_current_target): Update.
4626 * remote.c (remote_supports_multi_process): Add 'self' argument.
4627 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4629 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4632 2014-02-19 Tom Tromey <tromey@redhat.com>
4634 * target.h (struct target_ops) <to_execution_direction>: Add
4636 (target_execution_direction): Add argument.
4637 * target.c (default_execution_direction): Add 'self' argument.
4638 * record-full.c (record_full_execution_direction): Add 'self'
4641 2014-02-19 Tom Tromey <tromey@redhat.com>
4643 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4645 (target_can_execute_reverse): Add argument.
4646 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4647 * record-full.c (record_full_can_execute_reverse): Add 'self'
4649 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4652 2014-02-19 Tom Tromey <tromey@redhat.com>
4654 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4655 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4657 (target_get_ada_task_ptid): Add argument.
4658 * target.c (update_current_target): Update.
4659 (default_get_ada_task_ptid): Add 'self' argument.
4660 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4661 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4662 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4664 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4666 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4668 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4670 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4671 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4674 2014-02-19 Tom Tromey <tromey@redhat.com>
4676 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4677 (target_goto_bookmark): Add argument.
4678 * target.c (dummy_goto_bookmark): Add 'self' argument.
4679 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4681 2014-02-19 Tom Tromey <tromey@redhat.com>
4683 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4684 (target_get_bookmark): Add argument.
4685 * target.c (dummy_get_bookmark): Add 'self' argument.
4686 * record-full.c (record_full_get_bookmark): Add 'self' argument.
4688 2014-02-19 Tom Tromey <tromey@redhat.com>
4690 * target.h (struct target_ops) <to_make_corefile_notes>: Add
4692 (target_make_corefile_notes): Add argument.
4693 * target.c (dummy_make_corefile_notes): Add 'self' argument.
4694 * procfs.c (procfs_make_note_section): Add 'self' argument.
4695 (procfs_make_note_section): Add 'self' argument.
4696 (procfs_make_note_section): Add 'self' argument.
4697 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4699 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4700 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4701 * exec.c (exec_make_note_section): Add 'self' argument.
4702 (exec_make_note_section): Add 'self' argument.
4704 2014-02-19 Tom Tromey <tromey@redhat.com>
4706 * target.h (struct target_ops) <to_find_memory_regions>: Add
4708 (target_find_memory_regions): Add argument.
4709 * target.c (dummy_find_memory_regions): Add 'self' argument.
4710 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4711 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4712 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4713 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4714 * exec. (exec_do_find_memory_regions): New global.
4715 (exec_set_find_memory_regions): Rewrite.
4716 (exec_find_memory_regions): New function.
4717 (init_exec_ops): Use exec_find_memory_regions.
4719 2014-02-19 Tom Tromey <tromey@redhat.com>
4721 * target.h (struct target_ops) <to_supports_non_stop>: Add
4723 * target.c (find_default_supports_non_stop): Add argument.
4724 (target_supports_non_stop): Add argument.
4725 (find_default_supports_non_stop): Add 'self' argument.
4726 * remote.c (remote_supports_non_stop): Add 'self' argument.
4727 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4729 2014-02-19 Tom Tromey <tromey@redhat.com>
4731 * target.h (struct target_ops) <to_log_command>: Add argument.
4732 (target_log_command): Add argument.
4733 * serial.h (serial_log_command): Add 'self' argument.
4734 * serial.c (serial_log_command): Add 'self' argument.
4736 2014-02-19 Tom Tromey <tromey@redhat.com>
4738 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4739 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4741 (target_pid_to_exec_file): Add argument.
4742 * target.c (debug_to_pid_to_exec_file): Add argument.
4743 (update_current_target): Update.
4744 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4745 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4746 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4747 (linux_handle_extended_wait): Update.
4748 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4749 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4750 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4751 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4753 2014-02-19 Tom Tromey <tromey@redhat.com>
4755 * target.h (struct target_ops) <to_rcmd>: Add argument.
4756 (target_rcmd): Add argument.
4757 * target.c (debug_to_rcmd): Add argument.
4758 (update_current_target, do_monitor_command): Update.
4759 * remote.c (remote_rcmd): Add 'self' argument.
4760 * monitor.c (monitor_rcmd): Add 'self' argument.
4762 2014-02-19 Tom Tromey <tromey@redhat.com>
4764 * windows-nat.c (windows_stop): Add 'self' argument.
4765 * target.h (struct target_ops) <to_stop>: Add argument.
4766 * target.c (target_stop): Add argument.
4767 (debug_to_stop): Add argument.
4768 (update_current_target): Update.
4769 * remote.c (remote_stop): Add 'self' argument.
4770 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4771 (gdbsim_cntrl_c): Update.
4772 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4773 * procfs.c (procfs_stop): Add 'self' argument.
4774 * nto-procfs.c (procfs_stop): Add 'self' argument.
4775 * monitor.c (monitor_stop): Add 'self' argument.
4776 (monitor_open): Update.
4777 * linux-nat.c (linux_nat_stop): Add argument.
4778 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4779 * gnu-nat.c (gnu_stop): Add 'self' argument.
4780 * darwin-nat.c (darwin_stop): Add 'self' argument.
4782 2014-02-19 Tom Tromey <tromey@redhat.com>
4784 * target.h (struct target_ops) <to_thread_name>: Add argument.
4785 * target.c (target_thread_name): Add argument.
4786 (update_current_target): Update.
4787 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4789 2014-02-19 Tom Tromey <tromey@redhat.com>
4791 * target.h (struct target_ops) <to_extra_thread_info>: Add
4793 (target_extra_thread_info): Add argument.
4794 * target.c (update_current_target): Update.
4795 * remote.c (remote_threads_extra_info): Add 'self' argument.
4796 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4798 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4799 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4800 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4802 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4804 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4806 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4809 2014-02-19 Tom Tromey <tromey@redhat.com>
4811 * target.h (struct target_ops) <to_program_signals>: Add argument.
4812 * target.c (target_program_signals): Add argument.
4813 * remote.c (remote_program_signals): Add 'self' argument.
4815 2014-02-19 Tom Tromey <tromey@redhat.com>
4817 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4818 * target.c (target_pass_signals): Add argument.
4819 * remote.c (remote_pass_signals): Add 'self' argument.
4820 (remote_start_remote): Update.
4821 * procfs.c (procfs_pass_signals): Add 'self' argument.
4822 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4823 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4824 (linux_nat_create_inferior, linux_nat_attach): Update.
4826 2014-02-19 Tom Tromey <tromey@redhat.com>
4828 * windows-nat.c (windows_can_run): Add 'self' argument.
4829 * target.h (struct target_ops) <to_can_run>: Add argument.
4830 (target_can_run): Add argument.
4831 * target.c (debug_to_can_run): Add argument.
4832 (update_current_target): Update.
4833 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4834 * inf-child.c (inf_child_can_run): Add 'self' argument.
4835 * go32-nat.c (go32_can_run): Add 'self' argument.
4837 2014-02-19 Tom Tromey <tromey@redhat.com>
4839 * target.h (struct target_ops) <to_has_exited>: Add argument.
4840 (target_has_exited): Add argument.
4841 * target.c (debug_to_has_exited): Add argument.
4842 (update_current_target): Update.
4844 2014-02-19 Tom Tromey <tromey@redhat.com>
4846 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4848 (target_set_syscall_catchpoint): Add argument.
4849 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4851 * target.c (update_current_target): Update.
4853 2014-02-19 Tom Tromey <tromey@redhat.com>
4855 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4857 (target_remove_exec_catchpoint): Add argument.
4858 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4859 (update_current_target): Update.
4860 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4863 2014-02-19 Tom Tromey <tromey@redhat.com>
4865 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4867 (target_insert_exec_catchpoint): Add argument.
4868 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4869 (update_current_target): Update.
4870 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4873 2014-02-19 Tom Tromey <tromey@redhat.com>
4875 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4877 (target_remove_vfork_catchpoint): Add argument.
4878 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4879 (update_current_target): Update.
4880 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4883 2014-02-19 Tom Tromey <tromey@redhat.com>
4885 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4887 (target_insert_vfork_catchpoint): Add argument.
4888 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4889 (update_current_target): Update.
4890 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4893 2014-02-19 Tom Tromey <tromey@redhat.com>
4895 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4897 (target_remove_fork_catchpoint): Add argument.
4898 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4899 (update_current_target): Update.
4900 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4903 2014-02-19 Tom Tromey <tromey@redhat.com>
4905 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4907 (target_insert_fork_catchpoint): Add argument.
4908 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4909 (update_current_target): Update.
4910 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4913 2014-02-19 Tom Tromey <tromey@redhat.com>
4915 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4917 (target_post_startup_inferior): Add argument.
4918 * target.c (debug_to_post_startup_inferior): Add argument.
4919 (update_current_target): Update.
4920 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4922 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4924 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4926 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4928 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4930 (super_post_startup_inferior): Likewise.
4931 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4933 (super_post_startup_inferior): Likewise.
4934 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4935 Add 'self' argument.
4936 (super_post_startup_inferior): Likewise.
4938 2014-02-19 Tom Tromey <tromey@redhat.com>
4940 * target.h (struct target_ops) <to_load>: Add argument.
4941 * target.c (target_load): Add argument.
4942 (debug_to_load): Add argument.
4943 (update_current_target): Update.
4944 * remote.c (remote_load): Add 'self' argument.
4945 * remote-sim.c (gdbsim_load): Add 'self' argument.
4946 * remote-mips.c (mips_load): Add 'self' argument.
4947 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4948 * monitor.c (monitor_load): Add 'self' argument.
4949 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4951 2014-02-19 Tom Tromey <tromey@redhat.com>
4953 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4954 (target_terminal_info): Add argument.
4955 * target.c (debug_to_terminal_info): Add argument.
4956 (default_terminal_info): Likewise.
4957 * inflow.c (child_terminal_info): Add 'self' argument.
4958 * inferior.h (child_terminal_info): Add 'self' argument.
4959 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4961 2014-02-19 Tom Tromey <tromey@redhat.com>
4963 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4965 (target_terminal_save_ours): Add argument.
4966 * target.c (debug_to_terminal_save_ours): Add argument.
4967 (update_current_target): Update.
4968 * inflow.c (terminal_save_ours): Add 'self' argument.
4969 * inferior.h (terminal_save_ours): Add 'self' argument.
4971 2014-02-19 Tom Tromey <tromey@redhat.com>
4973 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4974 (target_terminal_ours): Add argument.
4975 * target.c (debug_to_terminal_ours): Add argument.
4976 (update_current_target): Update.
4977 * remote.c (remote_terminal_ours): Add 'self' argument.
4978 (remote_close): Update.
4979 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4980 * inflow.c (terminal_ours): Add 'self' argument.
4981 * inferior.h (terminal_ours): Add 'self' argument.
4982 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4984 2014-02-19 Pedro Alves <palves@redhat.com>
4985 Tom Tromey <tromey@redhat.com>
4987 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4989 (target_terminal_ours_for_output): Add argument.
4990 * target.c (debug_to_terminal_ours_for_output): Add argument.
4991 (update_current_target): Update.
4992 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4993 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4994 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4996 2014-02-19 Tom Tromey <tromey@redhat.com>
4998 * target.h (struct target_ops) <to_terminal_inferior>: Add
5000 * target.c (target_terminal_inferior): Add argument.
5001 (update_current_target): Update.
5002 * remote.c (remote_terminal_inferior): Add 'self' argument.
5003 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5004 * inflow.c (terminal_inferior): Add 'self' argument.
5005 * inferior.h (terminal_inferior): Add 'self' argument.
5006 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5007 (go32_terminal_inferior): Add 'self' argument.
5009 2014-02-19 Tom Tromey <tromey@redhat.com>
5011 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5012 (target_terminal_init): Add argument.
5013 * target.c (debug_to_terminal_init): Add argument.
5014 (update_current_target): Update.
5015 * inflow.c (terminal_init_inferior): Add 'self' argument.
5016 * inferior.h (terminal_init_inferior): Add 'self' argument.
5017 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5018 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5020 2014-02-19 Tom Tromey <tromey@redhat.com>
5022 * target.h (struct target_ops)
5023 <to_can_accel_watchpoint_condition>: Add argument.
5024 (target_can_accel_watchpoint_condition): Add argument.
5025 * target.c (debug_to_can_accel_watchpoint_condition): Add
5027 (update_current_target): Update.
5028 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5031 2014-02-19 Tom Tromey <tromey@redhat.com>
5033 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5035 (target_region_ok_for_hw_watchpoint): Add argument.
5036 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5037 (default_region_ok_for_hw_watchpoint): Add argument.
5038 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5039 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5041 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5043 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5045 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5047 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5049 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5051 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5052 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5054 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5055 Add 'self' argument.
5057 2014-02-19 Tom Tromey <tromey@redhat.com>
5059 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5061 (target_insert_watchpoint): Add argument.
5062 * target.c (debug_to_insert_watchpoint): Add argument.
5063 (update_current_target): Update.
5064 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5065 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5066 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5067 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5068 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5069 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5071 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5072 (procfs_insert_hw_watchpoint): Add 'self' argument.
5073 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5075 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5077 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5079 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5080 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5082 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5085 2014-02-19 Tom Tromey <tromey@redhat.com>
5087 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5089 (target_remove_watchpoint): Add argument.
5090 * target.c (debug_to_remove_watchpoint): Add argument.
5091 (update_current_target): Update.
5092 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5093 * remote.c (remote_remove_watchpoint): Add 'self' argument.
5094 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5095 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5096 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5097 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5099 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5100 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5102 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5104 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5106 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5107 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5109 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5112 2014-02-19 Tom Tromey <tromey@redhat.com>
5114 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5116 (target_remove_hw_breakpoint): Add argument.
5117 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5118 (update_current_target): Update.
5119 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5120 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5122 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5123 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5125 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5128 2014-02-19 Tom Tromey <tromey@redhat.com>
5130 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5132 (target_insert_hw_breakpoint): Add argument.
5133 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5134 (update_current_target): Update.
5135 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5136 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5138 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5139 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5140 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5142 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5145 2014-02-19 Tom Tromey <tromey@redhat.com>
5147 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5149 (target_can_use_hardware_watchpoint): Add argument.
5150 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5151 (update_current_target): Update.
5152 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5154 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5156 * remote.c (remote_check_watch_resources): Add 'self' argument.
5157 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5158 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5160 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5161 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5163 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5165 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5167 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5169 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5171 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5173 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5174 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5176 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5179 2014-02-19 Tom Tromey <tromey@redhat.com>
5181 * target.h (struct target_ops) <to_post_attach>: Add argument.
5182 (target_post_attach): Add argument.
5183 * target.c (debug_to_post_attach): Add argument.
5184 (update_current_target): Update.
5185 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5186 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5187 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5188 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5189 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5191 2014-02-19 Tom Tromey <tromey@redhat.com>
5193 * windows-nat.c (windows_close): Add 'self' argument.
5194 * tracepoint.c (tfile_close): Add 'self' argument.
5195 * target.h (struct target_ops) <to_close>: Add argument.
5196 * target.c (target_close): Add argument.
5197 (update_current_target): Update.
5198 * remote.c (remote_close): Add 'self' argument.
5199 * remote-sim.c (gdbsim_close): Add 'self' argument.
5200 * remote-mips.c (mips_close): Add 'self' argument.
5201 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5202 * record-full.c (record_full_close): Add 'self' argument.
5203 * record-btrace.c (record_btrace_close): Add 'self' argument.
5204 * monitor.h (monitor_close): Add 'self' argument.
5205 * monitor.c (monitor_close): Add 'self' argument.
5206 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5207 * linux-nat.c (linux_nat_close): Add argument.
5208 * go32-nat.c (go32_close): Add 'self' argument.
5209 * exec.c (exec_close_1): Add 'self' argument.
5210 * ctf.c (ctf_close): Add 'self' argument.
5211 * corelow.c (core_close): Add 'self' argument.
5212 (core_close_cleanup): Update.
5213 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5214 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5216 2014-02-19 Tom Tromey <tromey@redhat.com>
5218 * remote.c (remote_load): New function.
5219 (init_remote_ops): Use it.
5221 2014-02-19 Tom Tromey <tromey@redhat.com>
5223 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5225 * common/linux-btrace.h (linux_supports_btrace): Update.
5226 * remote.c (remote_supports_btrace): Add "self" argument.
5227 * target-delegates.c: Rebuild.
5228 * target.c (target_supports_btrace): Remove.
5229 * target.h (struct target_ops) <to_supports_btrace>: Add
5230 target_ops argument.
5231 (target_supports_btrace): New define.
5233 2014-02-19 Tom Tromey <tromey@redhat.com>
5235 * record-full.c (record_full_beneath_to_resume_ops)
5236 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5237 (record_full_beneath_to_wait)
5238 (record_full_beneath_to_store_registers_ops)
5239 (record_full_beneath_to_store_registers)
5240 (record_full_beneath_to_xfer_partial_ops)
5241 (record_full_beneath_to_xfer_partial)
5242 (record_full_beneath_to_insert_breakpoint_ops)
5243 (record_full_beneath_to_insert_breakpoint)
5244 (record_full_beneath_to_remove_breakpoint_ops)
5245 (record_full_beneath_to_remove_breakpoint)
5246 (record_full_beneath_to_stopped_by_watchpoint)
5247 (record_full_beneath_to_stopped_data_address)
5248 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5249 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5250 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5251 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5252 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5253 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5254 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5255 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5256 (record_full_resume, record_full_wait_1)
5257 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5258 (record_full_store_registers, record_full_xfer_partial)
5259 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5260 (record_full_async, record_full_core_xfer_partial): Use target
5262 * target-delegates.c: Rebuild.
5263 * target.c (current_xfer_partial): Remove.
5264 (update_current_target): Do not INHERIT or de_fault
5265 to_insert_breakpoint, to_remove_breakpoint,
5266 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5267 to_is_async_p, to_async. Do not set to_xfer_partial field.
5268 (default_xfer_partial): Simplify.
5269 (current_xfer_partial): Remove.
5270 (target_wait, target_resume): Simplify.
5271 (find_default_can_async_p, find_default_is_async_p): Update.
5272 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5273 to_xfer_partial, to_stopped_by_watchpoint,
5274 to_stopped_data_address.
5275 (target_store_registers): Simplify.
5276 (forward_target_remove_breakpoint)
5277 (forward_target_insert_breakpoint): Remove.
5278 (target_remove_breakpoint, target_insert_breakpoint)
5279 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5280 * target.h (struct target_ops) <to_resume, to_wait,
5281 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5282 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5283 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5285 (forward_target_remove_breakpoint)
5286 (forward_target_insert_breakpoint): Remove.
5287 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5289 (record_btrace_insert_breakpoint): Delegate directly.
5291 2014-02-19 Tom Tromey <tromey@redhat.com>
5294 * target-delegates.c: New file.
5295 * target.c: Include target-delegates.c.
5296 (init_dummy_target): Call install_dummy_methods.
5297 (complete_target_initialization): Call install_delegators.
5298 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5299 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5300 * make-target-delegates: New file.
5302 2014-02-19 Tom Tromey <tromey@redhat.com>
5304 * record.c (find_record_target): Use find_target_at.
5305 * target.c (find_target_at): New function.
5306 * target.h (find_target_at): Declare.
5308 2014-02-19 Tom Tromey <tromey@redhat.com>
5310 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5312 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5314 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5315 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5317 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5319 * linux-nat.c (save_sigtrap): Update.
5320 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5321 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5322 (linux_nat_close): Update.
5323 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5325 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5327 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5328 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5329 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5330 (tmp_to_async): Add 'ops' argument.
5331 (record_full_stopped_by_watchpoint, record_full_async)
5332 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5334 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5335 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5336 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5337 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5338 (remote_is_async_p, remote_async): Add 'ops' argument.
5339 (remote_stopped_data_address): Update.
5340 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5341 * target.c (update_current_target)
5342 (find_default_can_async_p, find_default_is_async_p): Update.
5343 (init_dummy_target): Update.
5344 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5345 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5346 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5347 (target_can_async_p, target_is_async_p, target_async)
5348 (target_stopped_by_watchpoint): Update.
5350 2014-02-19 Yao Qi <yao@codesourcery.com>
5353 * gdbarch.sh: Remove startup_gdbarch.
5354 * gdbarch.c: Regenerated.
5355 * gdbarch.h: Likewise.
5357 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5359 * rl78-tdep.c (rl78_g10_register_name): New function.
5360 (rl78_return_value): Add g10 support.
5361 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5364 2014-02-17 Doug Evans <xdje42@gmail.com>
5366 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5367 (SUBDIR_GUILE_SRCS): Ditto.
5368 (scm-gsmob.o): Ditto.
5370 2014-02-17 Yao Qi <yao@codesourcery.com>
5372 * gnu-nat.c (ILL_RPC): Declare defined function.
5374 2014-02-17 Yao Qi <yao@codesourcery.com>
5376 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5377 mach_msg_type_number_t.
5378 (gnu_write_inferior): Likewise.
5380 2014-02-17 Yao Qi <yao@codesourcery.com>
5382 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5384 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5385 (inf_validate_procs, inf_signal): Likewise.
5386 (S_exception_raise_request): Likewise.
5387 (do_mach_notify_dead_name): Likewise.
5388 (steal_exc_port): Likewise.
5389 (gnu_read_inferior): Change 'copy_count''s type to
5390 mach_msg_type_number_t.
5391 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5394 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5396 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5397 flag. Adjust all users; in particular...
5398 (gnu_wait): ..., don't decrement its value in here...
5399 (gnu_create_inferior): ..., and instead set the flag in here,
5400 around the startup_inferior call, and call that one with
5401 START_INFERIOR_TRAPS_EXPECTED.
5403 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5404 (ILL_RPC): ... new macro.
5405 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5406 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5407 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5408 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5409 functions with ILL_RPC macro.
5410 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5411 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5412 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5413 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5414 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5415 (S_proc_getlogin_reply, S_proc_getsid_reply)
5416 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5417 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5418 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5419 (S_proc_getnports_reply, S_proc_is_important_reply)
5420 (S_proc_get_code_reply): New stub functions, generated with
5423 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5424 collected the type check structures.
5426 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5428 2014-02-14 Doug Evans <dje@google.com>
5430 * target.c (target_write_partial): Fix result type.
5432 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5434 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5435 the proper offsets to access fpregset_t.
5437 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5439 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5440 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5441 * h8300-tdep.c (setmachinelist): Remove global.
5442 * hppa-tdep.c (hppa_sigtramp): Remove global.
5443 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5444 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5445 * ravenscar-thread.c (update_target_observer): Remove global.
5446 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5448 2014-02-12 Tom Tromey <tromey@redhat.com>
5450 * common/rsp-low.c: Update comments.
5451 * common/rsp-low.h: Update comments.
5453 2014-02-12 Tom Tromey <tromey@redhat.com>
5455 * common/rsp-low.c (convert_ascii_to_int): Remove.
5456 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5458 2014-02-12 Tom Tromey <tromey@redhat.com>
5460 * common/rsp-low.h (unhexify): Don't declare.
5461 * common/rsp-low.c (unhexify): Remove.
5463 2014-02-12 Tom Tromey <tromey@redhat.com>
5465 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5466 * common/rsp-low.c (convert_int_to_ascii): Remove.
5468 2014-02-12 Tom Tromey <tromey@redhat.com>
5470 * common/rsp-low.h (hexify): Don't declare.
5471 * common/rsp-low.c (hexify): Remove.
5473 2014-02-12 Tom Tromey <tromey@redhat.com>
5475 * common/rsp-low.c (hexify): Never take strlen of argument.
5477 2014-02-12 Tom Tromey <tromey@redhat.com>
5479 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5480 * remote.c (extended_remote_run, remote_rcmd)
5481 (remote_download_trace_state_variable, remote_save_trace_data)
5482 (remote_set_trace_notes): Update.
5483 * tracepoint.c (encode_source_string, tfile_write_status)
5484 (tfile_write_uploaded_tsv): Update.
5486 2014-02-12 Tom Tromey <tromey@redhat.com>
5488 * tracepoint.c: Include rsp-low.h.
5489 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5490 * remote.c: Include rsp-low.h.
5491 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5492 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5493 (remote_unescape_input): Move to common/rsp-low.c.
5494 * common/rsp-low.h: New file.
5495 * common/rsp-low.c: New file.
5496 * Makefile.in (SFILES): Add common/rsp-low.c.
5497 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5498 (COMMON_OBS): Add rsp-low.o.
5499 (rsp-low.o): New target.
5501 2014-02-12 Tom Tromey <tromey@redhat.com>
5503 * utils.h: Include print-utils.h.
5504 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5505 (int_string, core_addr_to_string, core_addr_to_string_nz)
5506 (hex_string, hex_string_custom): Don't declare.
5507 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5508 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5509 (hex_string_custom, int_string, core_addr_to_string)
5510 (core_addr_to_string_nz, host_address_to_string): Move to
5511 common/print-utils.c.
5512 * common/print-utils.h: New file.
5513 * common/print-utils.c: New file
5514 * Makefile.in (SFILES): Add common/print-utils.c.
5515 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5516 (COMMON_OBS): Add print-utils.o.
5517 (print-utils.o): New target.
5519 2014-02-12 Tom Tromey <tromey@redhat.com>
5521 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5523 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5525 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5527 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5529 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5530 if a PT_IO ptrace request returns sucessfully but indicates that 0
5531 bytes were transferred.
5533 2014-02-12 Pedro Alves <palves@redhat.com>
5534 Kevin Buettner <kevinb@redhat.com>
5536 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5537 TYPE_INSTANCE_FLAG_CODE_SPACE.
5539 2014-02-12 Pedro Alves <palves@redhat.com>
5541 * h8300-tdep.c (pseudo_from_raw_register)
5542 (raw_from_pseudo_register): New functions.
5543 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5546 2014-02-12 Pedro Alves <palves@redhat.com>
5548 * h8300-tdep.c (h8300_register_sim_regno): New function.
5549 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5550 gdbarch_register_sim_regno hook.
5552 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5554 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5556 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5558 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5560 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5562 * obsd-tdep.h (obsd_init_abi): New prototype.
5563 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5564 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5565 (obsd_init_abi): New functions.
5566 * i386obsd-tdep.c: Include "obsd-tdep.h".
5567 (i386obsd_init_abi): Call obsd_init_abi.
5568 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5569 (amd64obsd_init_abi): Call obsd_init_abi.
5570 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5571 obsd-tdep.c to gdb_target_obs.
5573 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5575 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5576 double float arguments to 16-byte in the argument slots.
5578 2014-02-11 Doug Evans <xdje42@gmail.com>
5580 * configure.ac: Don't crash if pkg-config is not found and guile
5581 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5583 * configure: Regenerate.
5585 2014-02-11 Yao Qi <yao@codesourcery.com>
5587 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5588 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5589 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5590 * gnu-nat.c (gnu_xfer_memory): Likewise.
5591 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5592 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5593 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5594 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5596 2014-02-11 Yao Qi <yao@codesourcery.com>
5598 * target.h (enum target_xfer_error): Rename to ...
5599 (enum target_xfer_status): ... it. New. All users updated.
5600 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5602 (TARGET_XFER_STATUS_ERROR_P): New macro.
5603 (target_xfer_error_to_string): Remove declaration.
5604 (target_xfer_status_to_string): Declare.
5605 (target_xfer_partial_ftype): Adjust it.
5606 (struct target_ops) <to_xfer_partial>: Return
5607 target_xfer_status. Add argument xfered_len. Update
5609 * target.c (target_xfer_error_to_string): Rename to ...
5610 (target_xfer_status_to_string): ... it. New. All callers
5612 (target_read_live_memory): Likewise. Call target_xfer_partial
5613 instead of target_read.
5614 (memory_xfer_live_readonly_partial): Return
5615 target_xfer_status. Add argument xfered_len.
5616 (raw_memory_xfer_partial): Likewise.
5617 (memory_xfer_partial_1): Likewise.
5618 (memory_xfer_partial): Likewise.
5619 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5620 properly. Update debug message.
5621 (default_xfer_partial, current_xfer_partial): Likewise.
5622 (target_write_partial): Likewise.
5623 (target_read_partial): Likewise. All callers updated.
5624 (read_whatever_is_readable): Likewise.
5625 (target_write_with_progress): Likewise.
5626 (target_read_alloc_1): Likewise.
5628 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5629 * auxv.c (procfs_xfer_auxv): Likewise.
5630 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5631 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5632 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5633 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5634 * corefile.c (read_memory): Adjust.
5635 * corelow.c (core_xfer_partial): Likewise.
5636 * ctf.c (ctf_xfer_partial): Likewise.
5637 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5639 (darwin_xfer_partial): Likewise.
5640 * exec.c (section_table_xfer_memory_partial): Likewise. All
5642 (exec_xfer_partial): Likewise.
5643 * exec.h (section_table_xfer_memory_partial): Update
5645 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5647 (gnu_xfer_partial): Likewise.
5648 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5649 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5650 (ia64_hpux_xfer_solib_got): Likewise.
5651 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5652 type of 'partial_len' to ULONGEST.
5653 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5654 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5655 (linux_nat_xfer_partial): Likewise.
5656 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5657 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5658 * monitor.c (monitor_xfer_memory): Likewise.
5659 (monitor_xfer_partial): Likewise.
5660 * procfs.c (procfs_xfer_partial): Likewise.
5661 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5662 * record-full.c (record_full_xfer_partial): Likewise.
5663 (record_full_core_xfer_partial): Likewise.
5664 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5665 (gdbsim_xfer_partial): Likewise.
5666 * remote.c (remote_write_bytes_aux): Likewise. All callers
5668 (remote_write_bytes, remote_read_bytes): Likewise. All
5670 (remote_flash_erase): Likewise. All callers updated.
5671 (remote_write_qxfer): Likewise. All callers updated.
5672 (remote_read_qxfer): Likewise. All callers updated.
5673 (remote_xfer_partial): Likewise.
5674 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5675 (rs6000_xfer_shared_libraries): Likewise.
5676 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5677 (sol_thread_xfer_partial): Likewise.
5678 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5679 (sparc_xfer_partial): Likewise.
5680 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
5682 (spu_xfer_partial): Likewise.
5683 * spu-multiarch.c (spu_xfer_partial): Likewise.
5684 * tracepoint.c (tfile_xfer_partial): Likewise.
5685 * windows-nat.c (windows_xfer_memory): Likewise.
5686 (windows_xfer_shared_libraries): Likewise.
5687 (windows_xfer_partial): Likewise.
5688 * valprint.c: Replace 'target_xfer_error' with
5689 'target_xfer_status' in comments.
5691 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
5693 Checked in by Joel Brobecker <brobecker@adacore.com>.
5694 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5696 2014-02-11 Joel Brobecker <brobecker@adacore.com>
5698 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5699 function parameters.
5701 2014-02-10 Will Newton <will.newton@linaro.org>
5703 * elfread.c (elf_rel_plt_read): Look for a .got section if
5704 looking up .got.plt fails.
5705 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5706 on address passed to elf_gnu_ifunc_record_cache.
5707 (elf_gnu_ifunc_resolve_addr): Likewise.
5708 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5710 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5712 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5713 (X_RETTURN): New macro.
5714 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5716 * sparc64-tdep.c (sparc64_init_abi): Hook
5717 sparc_in_function_epilogue_p.
5719 2014-02-10 Gary Benson <gbenson@redhat.com>
5721 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5722 Rename name_matcher to symbol_matcher.
5724 2014-02-10 Gary Benson <gbenson@redhat.com>
5726 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5727 Use expand_symtabs_file_matcher_ftype and
5728 expand_symtabs_symbol_matcher_ftype.
5730 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5732 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5733 (struct ada_symbol_cache): New.
5734 (ada_free_symbol_cache): Forward declare.
5735 (struct ada_pspace_data): New.
5736 (ada_pspace_data_handle): New static global.
5737 (get_ada_pspace_data, ada_pspace_data_cleanup)
5738 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5739 (cache_space, cache): Delete, now folded inside struct
5741 (ada_get_symbol_cache): New function.
5742 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5744 (_initialize_ada_language): Remove initialization of cache_space.
5745 Move call to observer_attach_inferior_exit up, grouping it
5746 with the other observer registrations inside this function.
5747 Rename command to be more general. Add call to
5748 register_program_space_data_with_cleanup.
5750 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5752 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5753 ada_new_objfile_observer.
5754 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5755 (_initialize_tasks): Update uses of ada_new_objfile_observer
5756 and ada_tasks_normal_stop_observer.
5758 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5760 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5761 returned by the 'Length attribute to integer.
5763 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5765 * ada-lang.c (_initialize_ada_language): Initialize
5766 cache_space obstack.
5768 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5770 * ada-lang.c (HASH_SIZE): New macro.
5771 (struct cache_entry): New type.
5772 (cache_space, cache): New static globals.
5773 (ada_clear_symbol_cache, find_entry): New functions.
5774 (lookup_cached_symbol, cache_symbol): Implement.
5775 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5776 (_initialize_ada_language): Attach ada_new_objfile_observer
5777 and ada_free_objfile_observer.
5779 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5781 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5782 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5783 struct block * parameter.
5784 (ada_lookup_symbol_list_worker): Constify local variable "block".
5785 Remove cast which is no longer necessary.
5787 2014-02-10 Doug Evans <xdje42@gmail.com>
5789 Add Guile as an extension language.
5790 * NEWS: Mention Guile scripting.
5791 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5792 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5793 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5794 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5795 (CLIBS): Add GUILE_LIBS.
5796 (install-guile): New rule.
5797 (guile.o): New rule.
5798 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5799 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5800 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5801 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5802 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5803 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5804 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5805 * configure.ac: New option --with-guile.
5806 * configure: Regenerate.
5807 * config.in: Regenerate.
5808 * auto-load.c: Remove #include "python/python.h". Add #include
5809 "gdb/section-scripts.h".
5810 (source_section_scripts): Handle Guile scripts.
5811 (_initialize_auto_load): Add name of Guile objfile script to
5812 scripts-directory help text.
5813 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5814 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5815 (struct breakpoint): New member scm_bp_object.
5816 * defs.h (enum command_control_type): New value guile_control.
5817 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5819 (show_user): Update comment.
5820 (_initialize_cli_cmds): Update help text for "show user". Update help
5821 text for max-user-call-depth.
5822 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5824 (multi_line_command_p): Add guile_control.
5825 (print_command_lines): Handle guile_control.
5826 (execute_control_command, recurse_read_control_structure): Ditto.
5827 (process_next_line): Recognize "guile" commands.
5828 * disasm.c (gdb_disassemble_info): Make non-static.
5829 * disasm.h: #include "dis-asm.h".
5830 (struct gdbarch): Add forward decl.
5831 (gdb_disassemble_info): Declare.
5832 * extension.c: #include "guile/guile.h".
5833 (extension_languages): Add guile.
5834 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5835 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5836 * gdbtypes.c (get_unsigned_type_max): New function.
5837 (get_signed_type_minmax): New function.
5838 * gdbtypes.h (get_unsigned_type_max): Declare.
5839 (get_signed_type_minmax): Declare.
5840 * guile/README: New file.
5841 * guile/guile-internal.h: New file.
5842 * guile/guile.c: New file.
5843 * guile/guile.h: New file.
5844 * guile/scm-arch.c: New file.
5845 * guile/scm-auto-load.c: New file.
5846 * guile/scm-block.c: New file.
5847 * guile/scm-breakpoint.c: New file.
5848 * guile/scm-disasm.c: New file.
5849 * guile/scm-exception.c: New file.
5850 * guile/scm-frame.c: New file.
5851 * guile/scm-gsmob.c: New file.
5852 * guile/scm-iterator.c: New file.
5853 * guile/scm-lazy-string.c: New file.
5854 * guile/scm-math.c: New file.
5855 * guile/scm-objfile.c: New file.
5856 * guile/scm-ports.c: New file.
5857 * guile/scm-pretty-print.c: New file.
5858 * guile/scm-safe-call.c: New file.
5859 * guile/scm-string.c: New file.
5860 * guile/scm-symbol.c: New file.
5861 * guile/scm-symtab.c: New file.
5862 * guile/scm-type.c: New file.
5863 * guile/scm-utils.c: New file.
5864 * guile/scm-value.c: New file.
5865 * guile/lib/gdb.scm: New file.
5866 * guile/lib/gdb/boot.scm: New file.
5867 * guile/lib/gdb/experimental.scm: New file.
5868 * guile/lib/gdb/init.scm: New file.
5869 * guile/lib/gdb/iterator.scm: New file.
5870 * guile/lib/gdb/printing.scm: New file.
5871 * guile/lib/gdb/types.scm: New file.
5872 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5873 (VPATH): Add $(GUILE_SRCDIR).
5874 (GUILE_DIR): New variable.
5875 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5876 (all): Add stamp-guile dependency.
5877 (stamp-guile): New rule.
5878 (clean-guile, install-guile, uninstall-guile): New rules.
5879 (install-only): Add install-guile dependency.
5880 (uninstall): Add uninstall-guile dependency.
5881 (clean): Add clean-guile dependency.
5883 2014-02-09 Doug Evans <xdje42@gmail.com>
5885 Revert this patch (which I approved, mea culpa).
5887 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5889 * Makefile.in (all-lib): Remove.
5890 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5892 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5894 Fix Python stack corruption.
5895 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5898 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5900 * Makefile.in (all-lib): Remove.
5901 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5903 2014-02-07 Doug Evans <dje@google.com>
5905 * extension-priv.h (extension_language_script_ops): Add comment.
5906 (extension_language_ops): Add comment.
5907 (active_ext_lang_state): Fix typo in comment.
5909 2014-02-07 Pedro Alves <palves@redhat.com>
5911 PR breakpoints/16292
5912 * infrun.c (handle_signal_stop) <signal arrives while stepping
5913 over a breakpoint>: Switch back to the stepping thread.
5915 2014-02-07 Yao Qi <yao@codesourcery.com>
5917 * target.c (target_xfer_partial): Return zero if LEN is zero.
5919 2014-02-07 Yao Qi <yao@codesourcery.com>
5921 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5922 (ld_so_xfer_auxv): Likewise.
5923 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5924 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5925 * corelow.c (core_xfer_partial): Likewise.
5926 * ctf.c (ctf_xfer_partial): Likewise.
5927 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5928 (darwin_xfer_partial): Likewise.
5929 * exec.c (exec_xfer_partial): Likewise.
5930 * gnu-nat.c (gnu_xfer_partial): Likewise.
5931 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5932 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5933 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5934 * linux-nat.c (linux_xfer_siginfo): Likewise.
5935 (linux_proc_xfer_spu): Likewise.
5936 * procfs.c (procfs_xfer_partial): Likewise.
5937 * record-full.c (record_full_xfer_partial): Likewise.
5938 (record_full_core_xfer_partial): Likewise.
5939 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5940 * remote.c (remote_write_qxfer): Likewise.
5941 (remote_write_qxfer, remote_read_qxfer): Likewise.
5942 (remote_xfer_partial): Likewise.
5943 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5944 (rs6000_xfer_shared_libraries): Likewise.
5945 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5946 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5947 (spu_xfer_partial): Likewise.
5948 * target.c (memory_xfer_partial_1): Likewise.
5949 * tracepoint.c (tfile_xfer_partial): Likewise.
5950 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5951 (windows_xfer_partial): Likewise.
5953 2014-02-07 Yao Qi <yao@codesourcery.com>
5955 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5957 (core_xfer_shared_libraries_aix): Likewise.
5958 * gdbarch.c, gdbarch.h: Regenerated.
5959 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5960 ULONGEST. Change 'len_avail' type to ULONGEST.
5961 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5962 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5964 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5966 2014-02-07 Yao Qi <yao@codesourcery.com>
5968 * corefile.c (memory_error): Get 'exception' from ERR and pass
5969 'exception' to throw_error.
5971 2014-02-06 Doug Evans <xdje42@gmail.com>
5973 * configure.ac (libpython checking): Remove all but python.o from
5974 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5975 * configure: Regenerate.
5977 * Makefile.in (SFILES): Add extension.c.
5978 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5979 (COMMON_OBS): Add extension.o.
5980 * extension.h: New file.
5981 * extension-priv.h: New file.
5982 * extension.c: New file.
5984 * python/python-internal.h: #include "extension.h".
5985 (gdbpy_auto_load_enabled): Declare.
5986 (gdbpy_apply_val_pretty_printer): Declare.
5987 (gdbpy_apply_frame_filter): Declare.
5988 (gdbpy_preserve_values): Declare.
5989 (gdbpy_breakpoint_cond_says_stop): Declare.
5990 (gdbpy_breakpoint_has_cond): Declare.
5991 (void source_python_script_for_objfile): Delete.
5992 * python/python.c: #include "extension-priv.h".
5993 Delete inclusion of "observer.h".
5994 (extension_language_python): Moved here and renamed from
5995 script_language_python in py-auto-load.c.
5996 Redefined to be of type extension_language_defn.
5997 (python_extension_script_ops): New global.
5998 (python_extension_ops): New global.
5999 (struct python_env): New member previous_active.
6000 (restore_python_env): Call restore_active_ext_lang.
6001 (ensure_python_env): Call set_active_ext_lang.
6002 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6004 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6006 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6008 (gdbpy_eval_from_control_command): Renamed from
6009 eval_python_from_control_command, made static. New arg extlang.
6010 (gdbpy_source_script) Renamed from source_python_script, made static.
6012 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6013 result to int. New arg extlang.
6014 (gdbpy_source_objfile_script): Renamed from
6015 source_python_script_for_objfile, made static. New arg extlang.
6016 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6017 static. New args extlang, extlang_printers. Change result type to
6019 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6020 static. New arg extlang. Rename arg printers to extlang_printers
6021 and change type to ext_lang_type_printers *.
6022 (gdbpy_free_type_printers): Renamed from free_type_printers, made
6023 static. Replace argument arg with extlang, extlang_printers.
6024 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6025 (!HAVE_PYTHON, source_python_script): Delete.
6026 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6027 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6028 (!HAVE_PYTHON, start_type_printers): Delete.
6029 (!HAVE_PYTHON, apply_type_printers): Delete.
6030 (!HAVE_PYTHON, free_type_printers): Delete.
6031 (_initialize_python): Delete call to observer_attach_before_prompt.
6032 (finalize_python): Set/restore active extension language.
6033 (gdbpy_finish_initialization) Renamed from
6034 finish_python_initialization, made static. New arg extlang.
6035 (gdbpy_initialized): New function.
6036 * python/python.h: #include "extension.h". Delete #include
6037 "value.h", "mi/mi-cmds.h".
6038 (extension_language_python): Declare.
6039 (GDBPY_AUTO_FILE_NAME): Delete.
6040 (enum py_bt_status): Moved to extension.h and renamed to
6042 (enum frame_filter_flags): Moved to extension.h.
6043 (enum py_frame_args): Moved to extension.h and renamed to
6044 ext_lang_frame_args.
6045 (finish_python_initialization): Delete.
6046 (eval_python_from_control_command): Delete.
6047 (source_python_script): Delete.
6048 (apply_val_pretty_printer): Delete.
6049 (apply_frame_filter): Delete.
6050 (preserve_python_values): Delete.
6051 (gdbpy_script_language_defn): Delete.
6052 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6053 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6055 * auto-load.c: #include "extension.h".
6056 (GDB_AUTO_FILE_NAME): Delete.
6057 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6058 (script_language_gdb): Delete, moved to extension.c and renamed to
6059 extension_language_gdb.
6060 (source_gdb_script_for_objfile): Delete.
6061 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6062 (loaded_script): Change type of language member to
6063 struct extension_language_defn *.
6064 (init_loaded_scripts_info): Initialize
6065 unsupported_script_warning_printed.
6066 (maybe_add_script): Make static. Change type of language arg to
6067 struct extension_language_defn *.
6068 (clear_section_scripts): Reset unsupported_script_warning_printed.
6069 (auto_load_objfile_script_1): Rewrite to use extension language API.
6070 (auto_load_objfile_script): Make public. Remove support-compiled-in
6071 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6072 (source_section_scripts): Rewrite to use extension language API.
6073 (load_auto_scripts_for_objfile): Rewrite to use
6074 auto_load_scripts_for_objfile.
6075 (collect_matching_scripts_data): Change type of language member to
6076 struct extension_language_defn *.
6077 (auto_load_info_scripts): Change type of language arg to
6078 struct extension_language_defn *.
6079 (unsupported_script_warning_print): New function.
6080 (script_not_found_warning_print): Make static.
6081 (_initialize_auto_load): Rewrite construction of scripts-directory
6083 * auto-load.h (struct objfile): Add forward decl.
6084 (struct script_language): Delete.
6085 (struct auto_load_pspace_info): Add forward decl.
6086 (struct extension_language_defn): Add forward decl.
6087 (maybe_add_script): Delete.
6088 (auto_load_objfile_script): Declare.
6089 (script_not_found_warning_print): Delete.
6090 (auto_load_info_scripts): Update prototype.
6091 (auto_load_gdb_scripts_enabled): Declare.
6092 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6093 auto_load_python_scripts_enabled and made public.
6094 (script_language_python): Delete, moved to python.c.
6095 (gdbpy_script_language_defn): Delete.
6096 (info_auto_load_python_scripts): Update to use
6097 extension_language_python.
6099 * breakpoint.c (condition_command): Replace call to
6100 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6101 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6102 with call to breakpoint_ext_lang_cond_says_stop.
6103 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6104 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6105 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6106 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6108 (local_setattro): Print name of extension language with existing
6111 * valprint.c (val_print, value_print): Update to call
6112 apply_ext_lang_val_pretty_printer.
6113 * cp-valprint.c (cp_print_value): Update call to
6114 apply_ext_lang_val_pretty_printer.
6115 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6116 (gdbpy_apply_val_pretty_printer): Renamed from
6117 apply_val_pretty_printer. New arg extlang.
6118 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6120 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6121 extension language API.
6122 * cli/cli-script.c (execute_control_command): Update to call
6123 eval_ext_lang_from_control_command.
6125 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6126 enum ext_lang_bt_status values. Update call to
6127 apply_ext_lang_frame_filter.
6128 (mi_cmd_stack_list_locals): Ditto.
6129 (mi_cmd_stack_list_args): Ditto.
6130 (mi_cmd_stack_list_variables): Ditto.
6131 * mi/mi-main.c: Delete #include "python/python-internal.h".
6132 Add #include "extension.h".
6133 (mi_cmd_list_features): Replace reference to python internal variable
6134 gdb_python_initialized with call to ext_lang_initialized_p.
6136 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6137 Update to use enum ext_lang_frame_args. Update to call
6138 apply_ext_lang_frame_filter.
6139 * python/py-framefilter.c (extract_sym): Update to use enum
6141 (extract_value, py_print_type, py_print_value): Ditto.
6142 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6143 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6144 (py_print_frame): Ditto.
6145 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6146 New arg extlang. Update to use enum ext_lang_bt_status.
6148 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6149 finish_python_initialization. Replace with call to
6150 finish_ext_lang_initialization.
6152 * typeprint.c (do_free_global_table): Update to call
6153 free_ext_lang_type_printers.
6154 (create_global_typedef_table): Update to call
6155 start_ext_lang_type_printers.
6156 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6157 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6158 (type_print_options): Change type of global_printers from "void *"
6159 to "struct ext_lang_type_printers *".
6161 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6162 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6163 (gdbpy_preserve_values): Renamed from preserve_python_values.
6165 (!HAVE_PYTHON, preserve_python_values): Delete.
6167 * utils.c (quit_flag): Delete, moved to extension.c.
6168 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6171 * eval.c: Delete #include "python/python.h".
6172 * main.c: Delete #include "python/python.h".
6174 * defs.h: Update comment.
6176 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6180 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6182 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6185 2014-02-05 Yao Qi <yao@codesourcery.com>
6187 * remote.c (remote_pass_signals): Remove local 'buf' and use
6189 (remote_program_signals): Likewise.
6191 2014-02-05 Yao Qi <yao@codesourcery.com>
6193 * ctf.c: Include "inferior.h" and "gdbthread.h".
6194 (CTF_PID): A new macro.
6195 (ctf_open): Call inferior_appeared and add_thread_silent.
6196 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6197 (ctf_thread_alive): New function.
6198 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6200 2014-02-05 Yao Qi <yao@codesourcery.com>
6204 2013-05-24 Yao Qi <yao@codesourcery.com>
6206 * tracepoint.c (TFILE_PID): Remove.
6207 (tfile_open): Don't add thread and inferior.
6208 (tfile_close): Don't set 'inferior_ptid'. Don't call
6209 exit_inferior_silent.
6210 (tfile_thread_alive): Remove.
6211 (init_tfile_ops): Don't set field 'to_thread_alive' of
6214 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6216 * remote.c (remote_start_remote): Call remote_check_symbols even
6217 if only symbol-file (not file) has been given.
6219 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6221 * gdbarch.sh (skip_entrypoint): New callback.
6222 * gdbarch.c, gdbarch.h: Regenerate.
6223 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6224 * infrun.c (fill_in_stop_func): Likewise.
6225 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6226 (ppc_elfv2_elf_make_msymbol_special): New function.
6227 (ppc_elfv2_skip_entrypoint): Likewise.
6228 (ppc_linux_init_abi): Install them for ELFv2.
6230 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6232 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6233 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6234 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6235 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6236 structures returned in GPRs.
6238 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6240 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6241 offset to the stack parameter list for the ELFv2 ABI.
6243 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6245 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6246 set_gdbarch_convert_from_func_ptr_addr and
6247 set_gdbarch_elf_make_msymbol_special for ELFv1.
6248 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6249 function descriptors on ELFv1.
6250 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6251 set up r12 at function entry.
6253 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6255 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6256 (struct gdbarch_tdep): New member elf_abi.
6258 * rs6000-tdep.c: Include "elf/ppc64.h".
6259 (rs6000_gdbarch_init): Detect ELF ABI version.
6261 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6263 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6264 within a register pair holding a DFP 128-bit value on little-endian.
6265 (ppc64_sysv_abi_return_value_base): Likewise.
6266 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6267 (dfp_pseudo_register_write): Likewise.
6269 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6271 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6272 offset on little-endian when passing _Decimal32.
6273 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6275 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6277 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6278 of the overlapped FP register within the VSX register on little-
6280 (efpr_pseudo_register_write): Likewise.
6282 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6284 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6285 offset on little-endian when passing small structures.
6287 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6289 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6290 (struct ppc64_sysv_argpos): New data structure.
6291 (ppc64_sysv_abi_push_float): Remove.
6292 (ppc64_sysv_abi_push_val): New function.
6293 (ppc64_sysv_abi_push_integer): Likewise.
6294 (ppc64_sysv_abi_push_freg): Likewise.
6295 (ppc64_sysv_abi_push_vreg): Likewise.
6296 (ppc64_sysv_abi_push_param): Likewise.
6297 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6298 (ppc64_sysv_abi_return_value_base): New function.
6299 (ppc64_sysv_abi_return_value): Refactor to use it.
6301 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6303 * NEWS: Document new target powerpc64le-*-linux*.
6305 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6307 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6308 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6310 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6311 register set used in ELF core dumps. Add floating-point register set.
6313 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6315 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6316 dwarf2_to_gdb[] table using symbolic constants. Adjust
6317 penultimate entry from number representing the PC register
6318 to symbolic constant representing the MDR register. Add
6319 constant for the PC register to the end of the table.
6321 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6323 * bsd-kvm.c: Include <sys/param.h>
6325 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6327 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6329 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6331 * ada-lang.h (clear_ada_sym_cache): Delete.
6333 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6335 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6337 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6339 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6340 the sigreturn register save area only if the syscall is
6343 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6345 * valops.c (value_slice): Minor reformatting.
6347 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6349 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6351 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6353 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6355 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6356 (ada_ignore_descriptive_types_p): New static global.
6357 (find_parallel_type_by_descriptive_type): Return immediately
6358 if ada_ignore_descriptive_types_p is set.
6359 (_initialize_ada_language): Register new commands "maintenance
6360 set ada", "maintenance show ada", "maintenance set ada
6361 ignore-descriptive-types" and "maintenance show ada
6362 ignore-descriptive-types".
6363 * NEWS: Add entry for new "maint ada set/show
6364 ignore-descriptive-types" commands.
6366 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6368 * record-btrace.c (record_btrace_close): Call btrace_teardown
6371 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6373 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6376 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6378 * ada-typeprint (type_is_full_subrange_of_target_type):
6380 (print_range): Add parameter bounds_prefered_p. If not set,
6381 try printing range types using the name of their base type.
6382 (print_range_type): Add parameter bounds_prefered_p.
6383 Use it in call to print_range.
6384 (print_array_type, ada_print_type): Update calls to print_range
6385 and print_range_type.
6387 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6389 * ada-typeprint.c (print_array_type, print_choices, print_range)
6390 (print_range_bound, print_dynamic_range_bound, print_range_type):
6393 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6395 * ada-typeprint.c (print_range): Add missing empty line
6396 after local declaration.
6398 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6400 * ada-valprint.c (print_optional_low_bound): Get index_type's
6401 target type for as long as it is a TYPE_CODE_RANGE.
6403 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6405 * procfs.c (procfs_make_note_section): Remove assertion and
6408 2014-01-24 Yao Qi <yao@codesourcery.com>
6410 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6411 * corelow.c (get_core_siginfo): Likewise.
6413 2014-01-24 Yao Qi <yao@codesourcery.com>
6415 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6416 ULONGEST. Don't check 'len' is negative.
6417 (remote_write_bytes): Change type of 'len' to ULONGEST.
6419 2014-01-23 Tom Tromey <tromey@redhat.com>
6422 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6423 Handle exception from frame.block.
6424 (FrameVars.fetch_frame_locals): Likewise.
6426 2014-01-23 Tom Tromey <tromey@redhat.com>
6429 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6430 on a NULL pointer. Move "goto error" to correct place.
6432 2014-01-23 Tom Tromey <tromey@redhat.com>
6435 * python/py-framefilter.c (apply_frame_filter): Call
6436 ensure_python_env after computing gdbarch.
6438 2014-01-23 Yao Qi <yao@codesourcery.com>
6440 * target.c (raw_memory_xfer_partial): Change argument type
6441 from void * to gdb_byte *.
6442 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6444 2014-01-22 Doug Evans <dje@google.com>
6446 New gdbserver option --debug-format=timestamp.
6449 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6451 * syscalls/s390x-linux.xml: New file.
6452 * syscalls/s390-linux.xml: New file.
6453 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6454 (XML_SYSCALL_FILENAME_S390X): Likewise.
6455 (op_svc): New enum value for SVC opcode.
6456 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6457 (s390_linux_get_syscall_number): New function.
6458 (s390_gdbarch_init): Register '*get_syscall_number' and the
6459 syscall xml file name.
6460 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6461 "s390-linux.xml" and "s390x-linux.xml".
6462 * NEWS: Announce new feature.
6464 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6466 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6468 2014-01-22 Pedro Alves <palves@redhat.com>
6470 * xtensa-config.c: Include defs.h.
6472 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6474 * common/common-utils.h: Add "ARI:" comment beside __func__
6477 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6479 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6480 documentation a bit.
6482 2014-01-21 Roland McGrath <mcgrathr@google.com>
6484 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6485 * configure: Regenerate.
6486 * aclocal.m4: Regenerate.
6487 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6488 New substituted variables.
6489 (install-strip): New target.
6490 (INSTALL_SCRIPT): New substituted variable.
6491 (FLAGS_TO_PASS): Add it.
6492 (install-only): Use $(INSTALL_SCRIPT) rather than
6493 $(INSTALL_PROGRAM) for gcore.
6495 2014-01-20 Tom Tromey <tromey@redhat.com>
6497 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6500 2014-01-20 Tom Tromey <tromey@redhat.com>
6502 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6503 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6504 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6505 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6506 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6507 (struct cmd_list_element) <flags>: Remove.
6508 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6509 doc_allocated>: New fields.
6510 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6512 * maint.c (maintenance_do_deprecate): Update.
6513 * top.c (execute_command): Update.
6515 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6517 * xtensa-linux-nat.c: Include asm/ptrace.h.
6519 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6521 * Makefile.in (SFILES): Add d-support.c.
6522 (COMMON_OBS): Add d-support.o.
6523 * d-lang.h (d_parse_symbol): Add comment, now defined in
6525 * d-lang.c (parse_call_convention)
6526 (parse_attributes, parse_function_types)
6527 (parse_function_args, parse_type, parse_identifier)
6528 (call_convention_p, d_parse_symbol): Move functions to ...
6529 * d-support.c: ... New file.
6531 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6533 * d-lang.h (d_parse_symbol): Add declaration.
6534 * d-lang.c (extract_identifiers)
6535 (extract_type_info): Remove functions.
6536 (parse_call_convention, parse_attributes)
6537 (parse_function_types, parse_function_args)
6538 (parse_type, parse_identifier, call_convention_p)
6539 (d_parse_symbol): New functions.
6540 (d_demangle): Use d_parse_symbol to demangle D symbols.
6542 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6544 * d-lang.h (struct builtin_d_type): New data type.
6545 (builtin_d_type): Add declaration.
6546 * d-lang.c (d_language_arch_info, build_d_types)
6547 (builtin_d_type): New functions.
6548 (enum d_primitive_types): New data type.
6549 (d_language_defn): Change c_language_arch_info to
6550 d_language_arch_info.
6551 (d_type_data): New static variable.
6552 (_initialize_d_language): Initialize d_type_data.
6554 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6556 * d-lang.h (d_main_name): Add declaration.
6557 * d-lang.c (d_main_name): New function.
6558 * symtab.c (find_main_name): Add call to d_main_name.
6560 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6562 * d-lang.c (d_language_defn): Change macro_expansion_c to
6565 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6567 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6569 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6571 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6572 gdb_exception" declaration.
6573 * remote.c (getpkt_or_notif_sane): Likewise.
6575 2014-01-17 Doug Evans <dje@google.com>
6577 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6578 function, contents of dirnames_to_char_ptr_vec_append moved here.
6579 (delim_string_to_char_ptr_vec): New function.
6580 (dirnames_to_char_ptr_vec_append): Rewrite.
6581 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6583 2014-01-17 Doug Evans <dje@google.com>
6585 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6587 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6588 #include "common-utils.h".
6589 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6590 * common/vec.h (VEC_ASSERT_PASS): Update.
6591 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6592 (MACH_CHECK_ERROR): Update.
6594 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6596 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6598 * gdbarch.h: Regenerate.
6600 2014-01-16 Tom Tromey <tromey@redhat.com>
6602 * value.c (struct value) <regnum>: Move earlier.
6604 2014-01-16 Tom Tromey <tromey@redhat.com>
6606 * remote.c (extended_remote_create_inferior): Rename from
6607 extended_remote_create_inferior_1. Add "ops" argument. Remove
6610 2014-01-16 Pedro Alves <palves@redhat.com>
6612 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6613 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6616 2014-01-16 Doug Evans <dje@google.com>
6618 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6620 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6622 * btrace.h (btrace_thread_flag): New.
6623 (struct btrace_thread_info) <flags>: New.
6624 * record-btrace.c (record_btrace_resume_thread)
6625 (record_btrace_find_thread_to_move, btrace_step_no_history)
6626 (btrace_step_stopped, record_btrace_start_replaying)
6627 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6628 (record_btrace_find_resume_thread): New.
6629 (record_btrace_resume, record_btrace_wait): Extend.
6630 (record_btrace_can_execute_reverse): New.
6631 (record_btrace_open): Fail in non-stop mode.
6632 (record_btrace_set_replay): Split into this, ...
6633 (record_btrace_stop_replaying): ... this, ...
6634 (record_btrace_clear_histories): ... and this.
6635 (init_record_btrace_ops): Init to_can_execute_reverse.
6636 * NEWS: Announce it.
6638 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6640 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6641 (forward_target_decr_pc_after_break)
6642 (target_decr_pc_after_break): New.
6643 * target.c (forward_target_decr_pc_after_break)
6644 (target_decr_pc_after_break): New.
6645 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6646 instead of gdbarch_decr_pc_after_break.
6647 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6648 instead of gdbarch_decr_pc_after_break.
6649 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6650 instead of gdbarch_decr_pc_after_break.
6651 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6652 instead of gdbarch_decr_pc_after_break.
6653 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6654 instead of gdbarch_decr_pc_after_break.
6655 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6656 instead of gdbarch_decr_pc_after_break.
6658 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6660 * btrace.c: Include regcache.h.
6661 (btrace_add_pc): New.
6662 (btrace_enable): Call btrace_add_pc.
6663 (btrace_is_empty): New.
6664 * btrace.h (btrace_is_empty): New.
6665 * record-btrace.c (require_btrace, record_btrace_info): Call
6668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6670 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6671 Support delta reads.
6672 (linux_disable_btrace): Change return type.
6673 * common/linux-btrace.h (linux_read_btrace): Change parameters
6674 and return type to allow error reporting. Update users.
6675 (linux_disable_btrace): Change return type. Update users.
6676 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6678 (btrace_error): New.
6679 (btrace_block) <begin>: Comment on BEGIN == 0.
6680 * btrace.c (btrace_compute_ftrace): Start from the end of
6682 (btrace_stitch_trace, btrace_clear_history): New.
6683 (btrace_fetch): Read delta trace, return if replaying.
6684 (btrace_clear): Move clear history code to btrace_clear_history.
6685 (parse_xml_btrace): Throw an error if parsing failed.
6686 * target.h (struct target_ops) <to_read_btrace>: Change parameters
6687 and return type to allow error reporting.
6688 (target_read_btrace): Change parameters and return type to allow
6690 * target.c (target_read_btrace): Update.
6691 * remote.c (remote_read_btrace): Support delta reads. Pass
6693 * NEWS: Announce it.
6695 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6697 * record.h (record_btrace_frame_unwind)
6698 (record_btrace_tailcall_frame_unwind): New declarations.
6699 * dwarf2-frame: Include record.h
6700 (dwarf2_frame_cfa): Throw an error for btrace frames.
6701 * record-btrace.c: Include hashtab.h.
6702 (btrace_get_bfun_name): New.
6703 (btrace_call_history): Call btrace_get_bfun_name.
6704 (struct btrace_frame_cache): New.
6706 (bfcache_hash, bfcache_eq, bfcache_new): New.
6707 (btrace_get_frame_function): New.
6708 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6709 (record_btrace_frame_this_id): Compute own id.
6710 (record_btrace_frame_prev_register): Provide PC, throw_error
6711 for all other registers.
6712 (record_btrace_frame_sniffer): Detect btrace frames.
6713 (record_btrace_tailcall_frame_sniffer): New.
6714 (record_btrace_frame_dealloc_cache): New.
6715 (record_btrace_frame_unwind): Add new functions.
6716 (record_btrace_tailcall_frame_unwind): New.
6717 (_initialize_record_btrace): Allocate cache.
6718 * btrace.c (btrace_clear): Call reinit_frame_cache.
6719 * NEWS: Announce it.
6721 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6723 * record-btrace.c (record_btrace_set_replay)
6724 (record_btrace_goto_begin, record_btrace_goto_end)
6725 (record_btrace_goto): New.
6726 (init_record_btrace_ops): Initialize them.
6727 * NEWS: Announce it.
6729 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6731 * record-btrace.c (record_btrace_find_new_threads)
6732 (record_btrace_thread_alive): New.
6733 (init_record_btrace_ops): Initialize to_find_new_threads and
6736 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6738 * record-btrace.c (record_btrace_resume): New.
6739 (record_btrace_wait): New.
6740 (init_record_btrace_ops): Initialize to_wait and to_resume.
6742 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6744 * record-btrace.c (record_btrace_xfer_partial)
6745 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6746 (record_btrace_allow_memory_access): New.
6747 (init_record_btrace_ops): Initialize new methods.
6748 * target.c (raw_memory_xfer_partial): Bail out if target reports
6749 that this memory is not available.
6751 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6753 * target.h (target_ops) <to_insert_breakpoint>
6754 <to_remove_breakpoint>: Add target_ops parameter.
6755 (forward_target_insert_breakpoint): New.
6756 (forward_target_remove_breakpoint): New.
6757 (memory_remove_breakpoint, memory_insert_breakpoint):
6758 Add target_ops parameter.
6759 * target.c (target_insert_breakpoint): Split into this and ...
6760 (forward_target_insert_breakpoint): ... this.
6761 (target_remove_breakpoint): Split into this and ...
6762 (forward_target_remove_breakpoint): ... this.
6763 (debug_to_insert_breakpoint): Add target_ops parameter.
6764 Call forward_target_insert_breakpoint.
6765 (debug_to_remove_breakpoint): Add target_ops parameter.
6766 Call forward_target_remove_breakpoint.
6767 (update_current_target): Do not inherit or default to_insert_breakpoint
6768 and to_remove_breakpoint.
6769 * corelow.c (ignore): Add target_ops parameter.
6770 * exec.c (ignore): Add target_ops parameter.
6771 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6772 Add target_ops parameter.
6773 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6774 Add target_ops parameter.
6775 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6776 Add target_ops parameter.
6777 * record-full.c (record_full_beneath_to_insert_breakpoint)
6778 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6779 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6780 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6781 (record_full_core_remove_breakpoint): Add target_ops parameter.
6783 (record_full_beneath_to_insert_breakpoint_ops)
6784 (record_full_beneath_to_remove_breakpoint_ops)
6785 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6786 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6787 tmp_to_remove_breakpoint_ops,
6788 record_full_beneath_to_insert_breakpoint_ops, and
6789 record_full_beneath_to_remove_breakpoint_ops.
6790 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6791 (m32r_remove_breakpoint): Add target_ops parameter.
6792 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6793 Add target_ops parameter.
6794 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6795 Add target_ops parameter.
6797 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6798 Markus Metzger <markus.t.metzger@intel.com>
6800 * record-btrace.c: Include frame-unwind.h.
6801 (record_btrace_frame_unwind_stop_reason)
6802 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6803 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6805 (init_record_btrace_ops): Install it.
6807 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6809 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6812 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6814 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6817 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6819 * frame-unwind.c: Include target.h.
6820 (frame_unwind_try_unwinder): New function with code from ...
6821 (frame_unwind_find_by_frame): ... here. New variable
6822 unwinder_from_target, call also target_get_unwinder)
6823 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6824 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6825 * target.h (struct target_ops): New fields to_get_unwinder and
6826 to_get_tailcall_unwinder.
6827 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6829 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6831 * record-btrace.c (record_btrace_fetch_registers)
6832 (record_btrace_store_registers)
6833 (record_btrace_to_prepare_to_store): New.
6834 (init_record_btrace_ops): Add the above.
6836 2014-01-16 Tom Tromey <tromey@redhat.com>
6838 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6839 * target.h (struct target_ops) <to_prepare_to_store>: Add
6841 (target_prepare_to_store): Add argument.
6842 * target.c (debug_to_prepare_to_store): Add argument.
6843 (update_current_target): Update.
6844 * remote.c (remote_prepare_to_store): Add 'self' argument.
6845 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6846 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6847 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6848 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6850 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6851 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6852 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6853 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6854 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6856 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6858 * btrace.h (replay) <replay>: New.
6859 (btrace_is_replaying): New.
6860 * btrace.c (btrace_clear): Free replay iterator.
6861 (btrace_is_replaying): New.
6862 * record-btrace.c (record_btrace_is_replaying): New.
6863 (record_btrace_info): Print insn number if replaying.
6864 (record_btrace_insn_history): Start at replay position.
6865 (record_btrace_call_history): Start at replay position.
6866 (init_record_btrace_ops): Init to_record_is_replaying.
6868 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6870 * record-btrace.c (record_btrace_insn_history_range): Include
6872 (record_btrace_insn_history_from): Adjust range.
6873 (record_btrace_call_history_range): Include
6875 (record_btrace_call_history_from): Adjust range.
6876 * NEWS: Announce changes.
6878 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6880 * record.h (enum record_print_flag)
6881 <record_print_indent_calls>: New.
6882 * record.c (get_call_history_modifiers): Recognize /c modifier.
6883 (_initialize_record): Document /c modifier.
6884 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6885 Reorder fields. Optionally indent the function name. Update
6887 * NEWS: Announce changes.
6889 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6891 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6893 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6895 * btrace.c (ftrace_new_function): Start counting at one.
6896 * record-btrace.c (record_btrace_info): Adjust number of calls
6898 * NEWS: Announce it.
6900 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6902 * record-btrace.c (btrace_call_history_insn_range): Print
6903 insn range as [begin, end].
6905 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6907 * btrace.h (struct btrace_func_link): New.
6908 (enum btrace_function_flag): New.
6909 (struct btrace_inst): Rename to ...
6910 (struct btrace_insn): ...this. Update all users.
6911 (struct btrace_func) <ibegin, iend>: Remove.
6912 (struct btrace_func_link): New.
6913 (struct btrace_func): Rename to ...
6914 (struct btrace_function): ...this. Update all users.
6915 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6916 (number, level, flags>: New.
6917 (struct btrace_insn_iterator): Rename to ...
6918 (struct btrace_insn_history): ...this.
6920 (struct btrace_insn_iterator, btrace_call_iterator): New.
6921 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6922 (struct btrace_target_info) <begin, end, level>
6923 <insn_history, call_history>: New.
6924 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6925 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6926 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6927 (btrace_call_number, btrace_call_begin, btrace_call_end)
6928 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6929 (btrace_find_function_by_number, btrace_set_insn_history)
6930 (btrace_set_call_history): New.
6931 * btrace.c (btrace_init_insn_iterator)
6932 (btrace_init_func_iterator, compute_itrace): Remove.
6933 (ftrace_print_function_name, ftrace_print_filename)
6934 (ftrace_skip_file): Change
6936 (ftrace_init_func): Remove.
6937 (ftrace_debug): Use new btrace_function fields.
6938 (ftrace_function_switched): Also consider gaining and
6939 losing symbol information).
6940 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6941 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6942 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6944 (ftrace_new_function): Move. Remove debug print.
6945 (ftrace_update_lines, ftrace_update_insns): New.
6946 (ftrace_update_function): Check for call, ret, and jump.
6947 (compute_ftrace): Renamed to ...
6948 (btrace_compute_ftrace): ...this. Rewritten to compute call
6950 (btrace_fetch, btrace_clear): Updated.
6951 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6952 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6953 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6954 (btrace_call_number, btrace_call_begin, btrace_call_end)
6955 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6956 (btrace_find_function_by_number, btrace_set_insn_history)
6957 (btrace_set_call_history): New.
6958 * record-btrace.c (require_btrace): Use new btrace thread
6960 (record_btrace_info, btrace_insn_history)
6961 (record_btrace_insn_history, record_btrace_insn_history_range):
6962 Use new btrace thread info fields and new iterator.
6963 (btrace_func_history_src_line): Rename to ...
6964 (btrace_call_history_src_line): ...this. Use new btrace
6966 (btrace_func_history): Rename to ...
6967 (btrace_call_history): ...this. Use new btrace thread info
6968 fields and new iterator.
6969 (record_btrace_call_history, record_btrace_call_history_range):
6970 Use new btrace thread info fields and new iterator.
6972 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6974 * frame.h (frame_id_build_unavailable_stack_special): New.
6975 * frame.c (frame_id_build_unavailable_stack_special): New.
6977 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6979 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6980 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6981 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6983 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6984 (i386_insn_is_jump, i386_jmp_p): New.
6985 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6986 insn_is_jump to gdbarch.
6987 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6988 * gdbarch.h: Regenerated.
6989 * gdbarch.c: Regenerated.
6990 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6991 (default_insn_is_jump): New.
6992 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6993 (default_insn_is_jump): New.
6995 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6997 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6999 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7000 (btrace_read_type) <btrace_read_new>: Change to ...
7001 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7003 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7005 * common/linux-btrace.c (linux_read_btrace): Free trace from
7008 2014-01-15 Doug Evans <dje@google.com>
7010 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7013 2014-01-15 Tom Tromey <tromey@redhat.com>
7015 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7016 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7017 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7018 (set_objfile_main_name): New function.
7019 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7020 language_of_main>: New fields.
7021 (set_objfile_main_name): Declare.
7022 * symtab.c (find_main_name): Loop over objfiles to find the main
7024 (set_main_name): Now static.
7025 (get_main_info): Add comment.
7026 * symtab.h (set_main_name): Don't declare.
7028 2014-01-15 Tom Tromey <tromey@redhat.com>
7030 * symtab.c (main_progspace_key): New global.
7031 (struct main_info): New.
7032 (name_of_main, language_of_main): Remove.
7033 (get_main_info, main_info_cleanup): New function.
7034 (set_main_name, main_name, main_language): Use get_main_info.
7035 (_initialize_symtab): Initialize main_progspace_key.
7037 2014-01-15 Tom Tromey <tromey@redhat.com>
7039 * dbxread.c (process_one_symbol): Update.
7040 * dwarf2read.c (read_partial_die): Update.
7041 * symfile.c (set_initial_language): Call main_language.
7042 * symtab.c (language_of_main): Now static.
7043 (set_main_name): Add 'lang' parameter.
7044 (find_main_name): Update.
7045 (main_language): New function.
7046 (symtab_observer_executable_changed): Update.
7047 * symtab.h (set_main_name): Update.
7048 (language_of_main): Remove.
7049 (main_language): Declare.
7051 2014-01-15 Tom Tromey <tromey@redhat.com>
7053 * symfile.c (init_entry_point_info): Use new "initialized" field.
7055 * objfiles.h (struct entry_point) <initialized>: New field.
7056 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7057 (struct objfile) <ei>: ...here. Remove.
7058 * objfiles.c (entry_point_address_query): Update.
7060 2014-01-15 Tom Tromey <tromey@redhat.com>
7062 * objfiles.c (entry_point_address_query): Relocate entry point
7064 (objfile_relocate1): Do not relocate entry point address.
7065 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7066 <the_bfd_section_index>: New field.
7067 * symfile.c (init_entry_point_info): Find the entry point's
7070 2014-01-15 Tom Tromey <tromey@redhat.com>
7072 * solib-frv.c (enable_break): Use entry_point_address_query.
7074 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7076 * NEWS: Add note on improved process record-replay on
7077 arm*-linux* targets.
7079 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7081 * arm-tdep.c (enum arm_record_result): New enum.
7082 (arm_record_unsupported_insn): New function.
7083 (arm_record_coproc_data_proc): Removed.
7084 (thumb2_record_ld_st_multiple): New function.
7085 (thumb2_record_ld_st_dual_ex_tbb): New function.
7086 (thumb2_record_data_proc_sreg_mimm): New function.
7087 (thumb2_record_ps_dest_generic): New function.
7088 (thumb2_record_branch_misc_cntrl): New function.
7089 (thumb2_record_str_single_data): New function.
7090 (thumb2_record_ld_mem_hints): New function.
7091 (thumb2_record_ld_word): New function.
7092 (thumb2_record_lmul_lmla_div): New function.
7093 (thumb2_record_decode_insn_handler): New function.
7094 (decode_insn): Add thumb32 instruction handlers.
7096 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7098 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7099 (struct arm_linux_record_tdep): Declare.
7100 (arm_canonicalize_syscall): New function.
7101 (arm_all_but_pc_registers_record): New function.
7102 (arm_linux_syscall_record): New function.
7103 (arm_linux_init_abi): Add syscall recording constructs.
7104 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7105 decoding. (arm_record_coproc_data_proc): Update arm syscall
7107 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7108 <arm_syscall_record>: New field.
7109 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7112 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7114 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7115 register for push instruction recording.
7117 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7119 * arm-tdep.c (thumb_record_misc): Update to correct logical
7120 error while recording ldm, ldmia and pop instructions.
7122 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7124 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7126 2014-01-15 Pedro Alves <palves@redhat.com>
7128 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7129 (go32_resume, go32_fetch_registers, store_register)
7130 (go32_store_registers, go32_prepare_to_store)
7131 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7132 (go32_create_inferior, go32_can_run, go32_terminal_init)
7133 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7136 2014-01-15 Tom Tromey <tromey@redhat.com>
7138 * target.h (async_callback_ftype): New typedef.
7139 (struct target_ops) <to_async>: Use it.
7141 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7143 * python/py-value.c (get_field_type): Remove unnecessary curly
7144 braces for single-statement if block.
7146 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7148 * python/py-type.c (convert_field): Add missing empty line
7151 2014-01-14 Doug Evans <dje@google.com>
7153 * symfile.h (expand_symtabs_matching): Renamed from
7154 expand_partial_symbol_names. Update prototype.
7155 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7156 * symfile.c (expand_symtabs_matching): Renamed from
7157 expand_partial_symbol_names. New args file_matcher, kind.
7158 Rename arg fun to symbol_matcher.
7159 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7160 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7161 ada_expand_partial_symbol_name.
7162 (ada_make_symbol_completion_list): Update to call
7163 expand_symtabs_matching.
7164 (ada_add_global_exceptions): Call expand_symtabs_matching.
7165 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7166 call map_symbol_filenames.
7167 * symtab.c (sources_info): Update to call map_symbol_filenames.
7168 (search_symbols): Call expand_symtabs_matching.
7169 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7170 (default_make_symbol_completion_list_break_on): Update to call
7171 expand_symtabs_matching.
7172 (make_source_files_completion_list): Update to call
7173 map_symbol_filenames.
7175 2014-01-14 Doug Evans <dje@google.com>
7177 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7178 (expand_symtabs_symbol_matcher_ftype): New typedef.
7179 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7180 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7181 * symfile.c (expand_partial_symbol_names): Update to use
7182 expand_symtabs_symbol_matcher_ftype.
7183 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7184 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7185 Arg name_matcher renamed to symbol_matcher.
7186 * psymtab.c (recursively_search_psymtabs): Update to use
7187 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7189 (expand_symtabs_matching_via_partial): Update to use
7190 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7191 Arg name_matcher renamed to symbol_matcher.
7193 2014-01-14 Doug Evans <dje@google.com>
7195 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7196 (map_partial_symbol_filenames): Ditto.
7197 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7198 (map_partial_symbol_filenames): Ditto.
7199 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7200 (map_partial_symbol_filenames): Ditto.
7201 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7202 (map_partial_symbol_filenames): Ditto.
7203 * symtab.c: Delete #include "psymtab.h".
7205 2014-01-14 Pedro Alves <palves@redhat.com>
7206 Tom Tromey <tromey@redhat.com>
7208 * infrun.c (use_displaced_stepping): Use find_record_target
7209 instead of RECORD_IS_USED.
7210 (adjust_pc_after_break): Use record_full_is_used instead of
7212 * record-btrace.c (record_btrace_open): Call record_preopen
7213 instead of checking RECORD_IS_USED.
7214 * record-full.c (record_full_shortname)
7215 (record_full_core_shortname): New globals.
7216 (record_full_is_used): New function.
7217 (find_full_open): Call record_preopen instead of checking
7219 (init_record_full_ops): Set the target's shortname to
7220 record_full_shortname.
7221 (init_record_full_core_ops): Set the target's shortname to
7222 record_full_core_shortname.
7223 * record-full.h (record_full_is_used): Declare.
7224 * record.c (find_record_target): Make extern.
7225 (record_preopen): New function.
7226 * record.h (RECORD_IS_USED): Delete macro.
7227 (find_record_target, record_preopen): Declare functions.
7229 2014-01-14 Yao Qi <yao@codesourcery.com>
7231 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7232 'len''s type to ULONGEST.
7233 (core_xfer_shared_libraries_aix): Likewise.
7234 * gdbarch.c, gdbarch.h: Regenerated.
7235 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7236 Change type of 'len' to ULONGEST.
7237 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7238 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7240 2014-01-14 Yao Qi <yao@codesourcery.com>
7242 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7243 type of 'len' to ULONGEST.
7244 (linux_xfer_osdata_processgroups): Likewise.
7245 (linux_xfer_osdata_threads): Likewise.
7246 (linux_xfer_osdata_fds): Likewise.
7247 (linux_xfer_osdata_isockets): Likewise.
7248 (linux_xfer_osdata_shm): Likewise.
7249 (linux_xfer_osdata_sem): Likewise.
7250 (linux_xfer_osdata_msg): Likewise.
7251 (linux_common_xfer_osdata): Likewise.
7252 (struct osdata_type) <getter>: Likewise.
7253 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7256 2014-01-14 Yao Qi <yao@codesourcery.com>
7258 * target.h (target_xfer_partial_ftype): Update.
7259 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7261 * aix-thread.c (aix_thread_xfer_partial): Change type of
7262 argument 'len' to ULONGEST.
7263 * auxv.c (procfs_xfer_auxv): Likewise.
7264 (ld_so_xfer_auxv): Likewise.
7265 (memory_xfer_auxv): Likewise.
7266 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7267 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7268 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7269 * corelow.c (core_xfer_partial): Likewise.
7270 * ctf.c (ctf_xfer_partial): Likewise.
7271 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7273 (darwin_read_dyld_info): Likewise.
7274 (darwin_xfer_partial): Likewise.
7275 * exec.c (section_table_xfer_memory_partial): Likewise.
7276 (exec_xfer_partial): Likewise.
7277 * exec.h (section_table_xfer_memory_partial): Update
7279 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7280 instead of plongest.
7281 (gnu_xfer_partial): Likewise.
7282 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7283 (ia64_hpux_xfer_solib_got): Likewise.
7284 (ia64_hpux_xfer_partial): Likewise.
7285 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7286 * inf-ptrace.c (inf_ptrace_xfer_partial):
7287 * inf-ttrace.c (inf_ttrace_xfer_partial):
7288 * linux-nat.c (linux_xfer_siginfo): Likewise.
7289 (linux_nat_xfer_partial): Likewise.
7290 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7291 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7292 * monitor.c (monitor_xfer_memory): Likewise.
7293 (monitor_xfer_partial): Likewise.
7294 * procfs.c (procfs_xfer_partial): Likewise.
7295 * record-full.c (record_full_xfer_partial): Likewise.
7296 (record_full_core_xfer_partial): Likewise.
7297 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7298 instead of plongest.
7299 (gdbsim_xfer_partial): Likewise.
7300 * remote.c (remote_xfer_partial): Likewise.
7301 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7302 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7304 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7305 (rs6000_xfer_shared_libraries): Likewise.
7306 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7307 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7308 (sparc_xfer_partial): Likewise.
7309 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7310 (spu_xfer_partial): Likewise.
7311 * spu-multiarch.c (spu_xfer_partial): Likewise.
7312 * target.c (target_read_live_memory): Likewise.
7313 (memory_xfer_live_readonly_partial): Likewise.
7314 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7315 (target_xfer_partial, default_xfer_partial): Likewise.
7316 (current_xfer_partial): Likewise.
7317 * tracepoint.c (tfile_xfer_partial): Likewise.
7318 * windows-nat.c (windows_xfer_memory): Likewise. Call
7319 pulongest instead of plongest.
7320 (windows_xfer_partial): Likewise.
7321 (windows_xfer_shared_libraries): Likewise.
7323 2014-01-14 Yao Qi <yao@codesourcery.com>
7325 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7326 target_xfer_partial_ftype.
7328 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7332 * valops.c (value_struct_elt_bitpos): New function
7333 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7334 object to 'None' if the field name is an empty string ("").
7335 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7336 attribute to look for a field when 'name' is 'None'.
7337 (get_field_type): New function
7339 2014-01-13 Doug Evans <dje@google.com>
7342 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7343 (try_open_dwop_file): Ditto.
7344 * gdb_bfd.c: #include "vec.h".
7345 (bfdp): New typedef.
7346 (struct gdb_bfd_data): New member included_bfds.
7347 (gdb_bfd_unref): Unref all included bfds.
7348 (gdb_bfd_record_inclusion): New function.
7349 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7351 2014-01-13 Tom Tromey <tromey@redhat.com>
7353 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7355 2014-01-13 Tom Tromey <tromey@redhat.com>
7357 * defs.h (use_windows): Remove.
7358 * gdb.c (main): Update.
7359 * main.c (captured_main, gdb_main): Update.
7360 * main.h (struct captured_main_args) <use_windows>: Remove.
7361 * top.c (use_windows): Remove.
7363 2014-01-13 Tom Tromey <tromey@redhat.com>
7365 * defs.h (deprecated_flush_hook): Remove.
7367 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7370 * linux-thread-db.c (try_thread_db_load): Add parameter
7371 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7372 (try_thread_db_load_from_pdir_1): Move it there from here.
7373 (try_thread_db_load_from_sdir): Update caller.
7374 (try_thread_db_load_from_dir): Move it there from here.
7376 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7378 * regformats/regdat.sh: Always rewrite the register file.
7380 2014-01-13 Pedro Alves <palves@redhat.com>
7382 * Makefile.in (CHECK_HEADERS): New variable.
7383 (check-headers:): New rule.
7385 2014-01-13 Tom Tromey <tromey@redhat.com>
7387 * cli/cli-setshow.c (do_set_command): Update.
7388 * defs.h (deprecated_set_hook): Remove.
7389 * top.c (deprecated_set_hook): Remove.
7391 2014-01-13 Pedro Alves <palves@redhat.com>
7393 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7394 the tracepoint if the PC is a pseudo-register.
7396 2014-01-13 Tom Tromey <tromey@redhat.com>
7398 * defs.h (XCALLOC): Remove.
7399 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7400 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7401 * dwarf2loc.c (allocate_piece_closure): Likewise.
7402 * elfread.c (elf_symfile_segments): Likewise.
7403 (elf_symfile_segments): Likewise.
7404 * gdbtypes.c (copy_type_recursive): Likewise.
7405 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7406 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7407 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7409 * mt-tdep.c (mt_gdbarch_init): Likewise.
7410 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7412 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7413 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7414 * registry.c (registry_alloc_data): Likewise.
7415 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7416 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7417 * serial.c (serial_fdopen_ops): Likewise.
7418 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7420 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7421 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7424 2014-01-13 Tom Tromey <tromey@redhat.com>
7426 * defs.h (XMALLOC): Remove.
7427 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7428 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7429 * cli-out.c (struct ui_out *): Likewise.
7430 * cli/cli-dump.c (add_dump_command): Likewise.
7431 (add_dump_command): Likewise.
7432 * complaints.c (get_complaints): Likewise.
7433 (find_complaint): Likewise.
7434 * dwarf2-frame.c (execute_cfa_program): Likewise.
7435 * dwarf2read.c (abbrev_table_read_table): Likewise.
7436 * gdbarch.sh: Likewise.
7437 * gdbarch.c: Rebuild.
7438 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7439 * interps.c (interp_new): Likewise.
7440 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7441 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7442 * mi/mi-console.c (mi_console_file_new): Likewise.
7443 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7444 * mi/mi-out.c (mi_out_new): Likewise.
7445 * mi/mi-parse.c (mi_parse): Likewise.
7446 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7447 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7448 * observer.c (xalloc_observer_list_node): Likewise.
7449 * regcache.c (regcache_xmalloc_1): Likewise.
7450 * reggroups.c (reggroup_new): Likewise.
7451 (_initialize_reggroup): Likewise.
7452 * registry.c (register_data_with_cleanup): Likewise.
7453 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7454 * ser-base.c (serial_ttystate): Likewise.
7455 * ser-mingw.c (make_pipe_state): Likewise.
7456 * ser-pipe.c (pipe_open): Likewise.
7457 * serial.c (serial_open): Likewise.
7458 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7459 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7460 (tui_alloc_win_info): Likewise.
7461 (tui_add_content_elements): Likewise.
7462 * tui/tui-file.c (tui_file_new): Likewise.
7463 * tui/tui-out.c (tui_out_new): Likewise.
7464 * ui-file.c (mem_file_new): Likewise.
7465 * ui-out.c (push_level): Likewise.
7466 (make_cleanup_ui_out_end): Likewise.
7467 (append_header_to_list): Likewise.
7468 (ui_out_new): Likewise.
7469 * user-regs.c (user_reg_add_builtin): Likewise.
7471 2014-01-13 Tom Tromey <tromey@redhat.com>
7473 * defs.h (XZALLOC): Remove.
7474 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7475 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7476 (get_ada_tasks_inferior_data): Likewise.
7477 * auto-load.c (get_auto_load_pspace_data): Likewise.
7478 * auxv.c (get_auxv_inferior_data): Likewise.
7479 * bfd-target.c (target_bfd_reopen): Likewise.
7480 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7481 (deprecated_insert_raw_breakpoint): Likewise.
7482 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7483 * corelow.c (core_open): Likewise.
7484 * darwin-nat.c (darwin_check_new_threads): Likewise.
7485 (darwin_attach_pid): Likewise.
7486 * dummy-frame.c (dummy_frame_push): Likewise.
7487 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7488 * dwarf2loc.c (allocate_piece_closure): Likewise.
7489 * elfread.c (elf_symfile_segments): Likewise.
7490 * eval.c (ptrmath_type_p): Likewise.
7491 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7492 * gdbtypes.c (alloc_type_arch): Likewise.
7493 (alloc_type_instance): Likewise.
7494 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7495 * inf-child.c (inf_child_can_use_agent): Likewise.
7496 * inflow.c (get_inflow_inferior_data): Likewise.
7497 * infrun.c (save_infcall_suspend_state): Likewise.
7498 * jit.c (jit_reader_load): Likewise.
7499 (get_jit_objfile_data): Likewise.
7500 (get_jit_program_space_data): Likewise.
7501 (jit_object_open_impl): Likewise.
7502 (jit_symtab_open_impl): Likewise.
7503 (jit_block_open_impl): Likewise.
7504 (jit_frame_sniffer): Likewise.
7505 * linux-fork.c (add_fork): Likewise.
7506 * maint.c (make_command_stats_cleanup): Likewise.
7507 * objfiles.c (get_objfile_pspace_data): Likewise.
7508 * opencl-lang.c (struct lval_closure): Likewise.
7509 * osdata.c (osdata_start_osdata): Likewise.
7510 * progspace.c (new_address_space): Likewise.
7511 (add_program_space): Likewise.
7512 * remote-sim.c (get_sim_inferior_data): Likewise.
7513 * sh-tdep.c (sh_gdbarch_init): Likewise.
7514 * skip.c (Ignore): Likewise.
7515 (skip_delete_command): Likewise.
7516 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7517 (library_list_start_library): Likewise.
7518 (solib_aix_current_sos): Likewise.
7519 * solib-darwin.c (get_darwin_info): Likewise.
7520 (darwin_current_sos): Likewise.
7521 * solib-dsbt.c (get_dsbt_info): Likewise.
7522 * solib-ia64-hpux.c (new_so_list): Likewise.
7523 (ia64_hpux_get_solib_linkage_addr): Likewise.
7524 * solib-spu.c (append_ocl_sos): Likewise.
7525 (spu_current_sos): Likewise.
7526 * solib-svr4.c (get_svr4_info): Likewise.
7527 (svr4_keep_data_in_core): Likewise.
7528 (library_list_start_library): Likewise.
7529 (svr4_default_sos): Likewise.
7530 (svr4_read_so_list): Likewise.
7531 * solib-target.c (library_list_start_library): Likewise.
7532 (solib_target_current_sos): Likewise.
7533 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7534 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7535 * symfile.c (default_symfile_segments): Likewise.
7536 * target-descriptions.c (tdesc_data_init): Likewise.
7537 (tdesc_create_reg): Likewise.
7538 (struct tdesc_type *): Likewise.
7539 (tdesc_create_vector): Likewise.
7540 (tdesc_set_struct_size): Likewise.
7541 (struct tdesc_type *): Likewise.
7542 (tdesc_free_feature): Likewise.
7543 (tdesc_create_feature): Likewise.
7544 * windows-nat.c (windows_add_thread): Likewise.
7545 (windows_make_so): Likewise.
7546 * xml-support.c (gdb_xml_body_text): Likewise.
7547 (gdb_xml_create_parser_and_cleanup): Likewise.
7548 (xml_process_xincludes): Likewise.
7549 * xml-syscall.c (allocate_syscalls_info): Likewise.
7550 (syscall_create_syscall_desc): Likewise.
7552 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7554 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7555 function, with code from i386_stap_parse_special_token.
7556 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7557 (i386_stap_parse_special_token): Move code to the two functions
7560 2014-01-09 Pedro Alves <palves@redhat.com>
7561 Hui Zhu <hui@codesourcery.com>
7564 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7565 bp_err_string. Don't mark the location shlib_disabled if the
7566 error thrown wasn't a generic or memory error. Catch errors
7567 thrown while inserting breakpoints in overlayed code. Output
7568 error message of software breakpoints.
7569 * remote.c (remote_insert_breakpoint): If this breakpoint has
7570 target-side commands but this stub doesn't support Z0 packets,
7571 throw NOT_SUPPORTED_ERROR error.
7572 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7573 * target.h (target_insert_breakpoint): Extend comment.
7574 (target_insert_hw_breakpoint): Add comment.
7576 2014-01-08 Pedro Alves <palves@redhat.com>
7578 * remote.c (remote_add_thread): Add threads silently if starting
7580 (remote_notice_new_inferior): If in all-stop, and starting up,
7581 don't call notice_new_inferior.
7582 (get_current_thread): New function, factored out from ...
7583 (add_current_inferior_and_thread): ... this. Adjust.
7584 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7585 found any thread, then select the remote's current thread as GDB's
7588 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7590 * NEWS: Create a new section for the next release branch.
7591 Rename the section of the current branch, now that it has
7594 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7596 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7597 * version.in: Bump version to 7.7.50.DATE-cvs.
7599 2014-01-08 Yao Qi <yao@codesourcery.com>
7601 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7602 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7603 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7605 2014-01-08 Yao Qi <yao@codesourcery.com>
7607 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7608 return value of bfd_get_filename to symbol_file_add_from_bfd.
7610 2014-01-08 Pierre Muller <muller@sourceware.org>
7613 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7614 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7615 to prim_record_mininal_symbol_and_info.
7616 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7617 in call to prim_record_minimal_symbol_and_info.
7618 (read_pe_exported_syms): Set index field of section_data.
7620 2014-01-07 Andrew Pinski <apinski@cavium.com>
7622 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7623 * features/aarch64.c: Regenerate.
7625 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7627 * target.c (return_null): Define.
7628 (update_current_target): Use it instead of return_zero for
7629 functions that return a pointer.
7631 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7633 * source.c (add_path): Fix check for duplicated paths in the previously
7636 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7638 * ada-lang.c: Remove duplicated include statements.
7639 * alphabsd-nat.c: Ditto.
7640 * amd64-darwin-tdep.c: Ditto.
7641 * amd64fbsd-nat.c: Ditto.
7642 * auto-load.c: Ditto.
7644 * breakpoint.c: Ditto.
7646 * fork-child.c: Ditto.
7647 * gdb_usleep.c: Ditto.
7648 * i386-darwin-tdep.c: Ditto.
7649 * i386fbsd-nat.c: Ditto.
7651 * inferior.c: Ditto.
7653 * linux-nat.c: Ditto.
7654 * linux-tdep.c: Ditto.
7655 * m68kbsd-nat.c: Ditto.
7656 * m68klinux-nat.c: Ditto.
7657 * microblaze-tdep.c: Ditto.
7658 * mips-linux-tdep.c: Ditto.
7659 * mn10300-tdep.c: Ditto.
7660 * nto-tdep.c: Ditto.
7661 * opencl-lang.c: Ditto.
7663 * printcmd.c: Ditto.
7664 * regcache.c: Ditto.
7665 * remote-m32r-sdi.c: Ditto.
7669 * tilegx-linux-nat.c: Ditto.
7670 * tilegx-tdep.c: Ditto.
7671 * tracepoint.c: Ditto.
7673 * vaxbsd-nat.c: Ditto.
7674 * windows-nat.c: Ditto.
7675 * xtensa-tdep.c: Ditto.
7677 2014-01-07 Yao Qi <yao@codesourcery.com>
7679 * spu-linux-nat.c (_initialize_spu_nat): Declare.
7681 2014-01-07 Yao Qi <yao@codesourcery.com>
7682 Joel Brobecker <brobecker@adacore.com>
7684 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7685 (pdc_write_regs): Likewise.
7686 (fetch_regs_kernel_thread): Likewise.
7687 (store_regs_kernel_thread): Likewise.
7689 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7691 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7692 tagged type objects to their actual type.
7694 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7696 * ada-valprint.c (print_field_values): Add "language" parameter.
7697 Update calls to print_field_values and print_variant_part.
7698 Pass new parameter "language" in call to val_print instead
7699 of "current_language". Replace call to ada_val_print by call
7701 (print_variant_part): Add "language" parameter.
7702 (ada_val_print_struct_union): Update call to print_field_values.
7704 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7706 * ada-valprint.c (ui_memcpy): Delete.
7707 (ada_print_floating): Update documentation. Add empty line
7708 between between function documentation and implementation.
7709 Delete variable "buffer". Use ui_file_xstrdup in place of
7710 ui_file_put. Minor adjustments following this change.
7712 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7714 * ada-valprint.c (ada_val_print_string): New function,
7715 extracted from ada_val_print_array.
7716 (ada_val_print_array): Replace extracted code by call
7717 to ada_val_print_string followed by a return. Move
7718 "else" branch to the function's top block.
7720 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7722 * ada-valprint.c (ada_val_print_array): Move implementation
7723 down. Rename parameter "offset" and "val" into "offset_aligned"
7724 and "original_value" respectively. Add parameter "offset".
7726 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7728 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7729 re-organizing the code. Change the "???" message printed
7730 when target type is a TYPE_CODE_UNDEF into
7731 "<ref to undefined type>".
7733 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7735 * ada-valprint.c (print_record): Delete, implementation inlined...
7736 (ada_val_print_struct_union): ... here. Remove call to
7737 ada_check_typedef in inlined implementation.
7739 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7741 * ada-valprint.c (ada_val_print_gnat_array): New function,
7742 extracted from ada_val_print_1;
7743 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7744 (ada_val_print_flt, ada_val_print_struct_union)
7745 (ada_val_print_ref): Likewise.
7746 (ada_val_print_1): Delete variables i and elttype.
7747 Replace extracted-out code by call to corresponding
7750 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7752 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7754 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7756 * ada-valprint.c (ada_val_print_1): Replace calls to
7757 ada_val_print_1 by calls to val_print.
7759 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7761 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7762 Update calls to self accordingly. Replace calls to c_val_print
7763 by calls to val_print.
7765 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7767 * ada-valprint.c (print_record): Delete declaration.
7768 (adjust_type_signedness, ada_val_print_1): Likewise.
7769 (ada_val_print): Move function implementation down.
7770 (print_variant_part, print_field_values, print_record):
7771 Move function implementation up.
7773 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7775 * python/py-type.c (typy_get_name): New function.
7776 (type_object_getset): Add entry for attribute "name".
7777 * NEWS: Add entry mentioning this new attribute.
7779 2014-01-07 Yao Qi <yao@codesourcery.com>
7781 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7784 2014-01-07 Yao Qi <yao@codesourcery.com>
7786 * gnu-nat.c (info_port_rights): Add qualifier const to
7789 2014-01-07 Yao Qi <yao@codesourcery.com>
7791 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7793 2014-01-07 Yao Qi <yao@codesourcery.com>
7795 * gnu-nat.c (make_inf) Update declaration.
7796 (make_inf): Make it static.
7797 (inf_set_traced): Likewise.
7798 (inf_port_to_thread, inf_task_died_status): Likewise.
7800 2014-01-07 Yao Qi <yao@codesourcery.com>
7802 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7804 2014-01-07 Yao Qi <yao@codesourcery.com>
7806 * gnu-nat.c (_initialize_gnu_nat): Declare.
7808 2014-01-07 Yao Qi <yao@codesourcery.com>
7810 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7812 (struct gdbarch_info) <byte_order>: Change type to
7814 <byte_order_for_code>: Likewise.
7815 * gdbarch.c, gdbarch.h: Regenerated.
7817 2014-01-06 Sasha Smundak <asmundak@google.com>
7819 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7821 2014-01-06 Tom Tromey <tromey@redhat.com>
7823 * doublest.c (convert_doublest_to_floatformat): Use const, not
7825 * somread.c (som_symtab_read): Likewise.
7827 2014-01-07 Hui Zhu <hui@codesourcery.com>
7829 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7830 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7831 (gdb_bfd_fopen): Ditto.
7832 (gdb_bfd_openr): Ditto.
7833 (gdb_bfd_openw): Ditto.
7834 (gdb_bfd_openr_iovec): Ditto.
7835 (gdb_bfd_fdopenr): Ditto.
7836 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7837 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7839 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7841 * symfile-mem.c (symbol_file_add_from_memory): Removed
7842 gdb_bfd_stash_filename.
7844 2014-01-03 Doug Evans <dje@google.com>
7846 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7849 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7851 Update year range in copyright notice of all files.
7853 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7855 * top.c (print_gdb_version): Set copyright year to 2014.
7857 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7859 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7861 For older changes see ChangeLog-2013.
7867 version-control: never