1 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
4 (arm_linux_vfpregset): New static regset structures.
5 (arm_linux_regset_from_core_section): Remove dynamic allocation of
7 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
8 and 'vfpregset' fields.
10 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
12 * aarch64-linux-tdep.c (aarch64_linux_gregset)
13 (aarch64_linux_fpregset): New static regset structures.
14 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
16 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
19 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
21 * regset.h (struct regset): Remove gdbarch field.
22 * regset.c (regset_alloc): Drop initialization of gdbarch field.
23 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
24 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
26 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
27 (ppc32_linux_fpregset, ppc32_linux_vrregset)
28 (ppc32_linux_vsxregset): Likewise.
29 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
30 via the regcache instead of the regset.
31 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
32 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
33 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
34 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
37 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
39 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
41 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
42 (alphanbsd_aout_gregset): Likewise.
43 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
44 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
46 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
47 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
49 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
50 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
51 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
52 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
53 * m88k-tdep.c (m88k_gregset): Likewise.
54 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
55 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
56 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
57 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
58 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
59 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
60 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
61 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
62 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
64 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
65 * sh-tdep.h (sh_corefile_gregset): Likewise.
66 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
67 * vax-tdep.c (vax_gregset): Likewise.
69 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
71 Fix TLS access for -static -pthread.
72 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
73 (try_thread_db_load_1): Initialize it.
74 (thread_db_get_thread_local_address): Call it if LM is zero.
75 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
76 * target.h (struct target_ops) (to_get_thread_local_address): Add
77 load_module_addr comment.
79 2014-05-21 Pedro Alves <palves@redhat.com>
81 * dcache.c (dcache_read_memory_partial): If reading the cache line
82 fails, fallback to reading just the memory the caller wanted.
84 2014-05-20 Doug Evans <dje@google.com>
86 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
87 instead of get_current_arch.
89 2014-05-20 Pedro Alves <palves@redhat.com>
91 * NEWS: Mention that compare-sections now works with all targets.
93 * remote.c (PACKET_qCRC): New enum value.
94 (remote_verify_memory): Don't send qCRC if the target has no
95 execution. Use packet_support/packet_ok. If the target doesn't
96 support the qCRC packet, fallback to a deep memory copy.
97 (compare_sections_command): Say "target image" instead of "remote
99 (_initialize_remote): Add PACKET_qCRC to the list of config
100 packets that have no associated command. Extend comment.
101 * target.c (simple_verify_memory, default_verify_memory): New
103 * target.h (struct target_ops) <to_verify_memory>: Default to
104 default_verify_memory.
105 (simple_verify_memory): New declaration.
106 * target-delegates.c: Regenerate.
108 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
110 * record-btrace.c (record_btrace_step_thread): Check for empty history.
112 2014-05-20 Hui Zhu <hui@codesourcery.com>
113 Yao Qi <yao@codesourcery.com>
116 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
117 and change address of sp and pc.
119 2014-05-19 Tom Tromey <tromey@redhat.com>
121 * gdbtypes.c (rank_function): Use XNEWVEC.
122 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
124 2014-05-19 Doug Evans <dje@google.com>
126 * dwarf2read.c (build_type_psymtabs_1): Renamed from
127 build_type_unit_groups and moved closer to only caller. Remove
128 arguments. All references updated. Remove outdated .gdb_index
130 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
131 build_type_psymtabs_1.
133 2014-05-19 Doug Evans <dje@google.com>
135 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
136 n_type_unit_groups, all_type_unit_groups. All uses removed.
137 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
138 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
139 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
140 (add_type_unit_group_to_table): Delete.
142 2014-05-19 Doug Evans <dje@google.com>
144 * eval.c (evaluate_subexp_standard): Add some comments.
146 2014-05-17 Doug Evans <xdje42@gmail.com>
148 * progspace.c (remove_program_space): Delete, unused.
149 * progspace.h (remove_program_space): Ditto.
151 2014-05-17 Doug Evans <xdje42@gmail.com>
153 * inferior.c (prune_inferiors): Fix comment.
154 (remove_inferior_command): Call prune_program_spaces.
156 2014-05-16 Doug Evans <dje@google.com>
158 New command line option -D.
160 * main.c (set_gdb_data_directory): New function.
161 (captured_main): Recognize -D. Flag error for --data-directory "".
162 Call set_gdb_data_directory.
163 (print_gdb_help): Print --data-directory, -D.
164 * main.h (set_gdb_data_directory): Declare.
165 * top.c (staged_gdb_datadir): New static global.
166 (set_gdb_datadir): Call set_gdb_data_directory
167 (show_gdb_datadir): New function.
168 (init_main): Update init of data-directory parameter.
170 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
172 Import the "dirfd" gnulib module.
173 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
174 * gnulib/aclocal.m4: Update.
175 * gnulib/config.in: Update.
176 * gnulib/configure: Update.
177 * gnulib/import/Makefile.am: Update.
178 * gnulib/import/Makefile.in: Update.
179 * gnulib/import/dirfd.c: New.
180 * gnulib/import/m4/dirfd.m4: New.
181 * gnulib/import/m4/gnulib-cache.m4: Update.
182 * gnulib/import/m4/gnulib-comp.m4: Update.
184 2014-05-16 Pierre Muller <muller@sourceware.org>
185 Yao Qi <yao@codesourcery.com>
187 * valprint.c (print_wchar): Move the code on checking whether
188 W is a printable wide char to the default branch of switch
189 statement below. Call wchar_printable instead of gdb_iswprint.
191 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
193 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
194 ldr.w and ldrd instructions.
196 2014-05-15 Doug Evans <dje@google.com>
198 * dwarf2read.c (read_structure_type): Delete outdated comments.
200 2014-05-14 Tom Tromey <tromey@redhat.com>
202 * macrocmd.c (print_macro_definition): Reindent.
204 2014-05-13 Doug Evans <xdje42@gmail.com>
206 * python/py-cmd.c (cmdpy_completer): Add comment.
207 (completers): Make const.
209 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
211 * infrun.c (resume): Remove should_resume (unused). Move up
212 declaration of resume_ptid.
214 2014-05-13 Tom Tromey <tromey@redhat.com>
216 * language.h (unop_type_check): Remove.
217 (binop_type_check): Don't declare.
219 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
221 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
222 call to regcache_raw_collect.
224 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
226 * mi/mi-console.c (mi_console_raw_packet): Use the value from
227 mi_console->quote as the quoting character.
229 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
231 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
233 2014-04-29 Tom Tromey <tromey@redhat.com>
235 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
238 2014-05-07 Kyle McMartin <kyle@redhat.com>
240 Pushed by Joel Brobecker <brobecker@adacore.com>.
241 * aarch64-tdep.c (aarch64_software_single_step): New function.
242 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
243 with aarch64_software_single_step.
245 2014-05-05 Joel Brobecker <brobecker@adacore.com>
249 2014-05-05 Keith Seitz <keiths@redhat.com>
251 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
252 variable or history value is successfully parsed.
254 2014-05-05 Yao Qi <yao@codesourcery.com>
255 Pedro Alves <palves@redhat.com>
257 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
258 address of blocks that intersects the requested range. Trim
259 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
261 * ctf.c (ctf_xfer_partial): Likewise.
263 2014-05-05 Yao Qi <yao@codesourcery.com>
265 * printcmd.c (display_command): Remove the check to
266 target_has_execution.
268 2014-05-03 Mark Kettenis <kettenis@gnu.org>
270 * ppcobsd-nat.c: Include "obsd-nat.h".
271 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
273 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
275 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
277 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
278 and 16-bit signed and unsigned arguments. Update comment.
279 (stap_parse_probe_arguments): Extend code to handle such
280 arguments. Use warning instead of complaint to notify about
281 unrecognized bitness.
283 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
286 * stap-probe.c (stap_parse_probe_arguments): Simplify
287 check for non-prefixed probes (i.e., probes whose
288 arguments do not start with "N@"). Always set the
289 argument type to a sane value.
291 2014-05-01 David Taylor <dtaylor@emc.com>
293 * remote.c (compare_sections_command): Add -r option to compare
294 all loadable read-only sections.
296 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
298 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
299 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
301 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
302 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
303 Remove unused CORE_ADDR argument. Update all callers.
305 2014-04-29 Pedro Alves <palves@redhat.com>
307 * remote.c (struct packet_config) <detect>: Extend comment.
308 (add_packet_config_cmd): Don't set the config's detect or support
310 (init_all_packet_configs): Also initialize the config's 'detect'
312 (reset_all_packet_configs_support): New function.
313 (remote_open_1): Call reset_all_packet_configs_support instead of
314 init_all_packet_configs.
315 (_initialize_remote): Initialize all packet configs. Assert that
316 all packets have an associated command, except a few known
319 2014-04-28 Joel Brobecker <brobecker@adacore.com>
321 * dwarf2read.c (read_subrange_type): Handle dynamic
322 DW_AT_lower_bound attributes.
324 2014-04-28 Joel Brobecker <brobecker@adacore.com>
326 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
327 dynamic bounds before computing its upper bound.
328 (ada_discrete_type_low_bound): Same as above with the lower bound.
330 2014-04-28 Joel Brobecker <brobecker@adacore.com>
332 * dwarf2read.c (is_dynamic_type): Return true for dynamic
333 range types. Adjust the array handling implementation to
334 take advantage of this change.
335 (resolve_dynamic_range): New function, mostly extracted from
336 resolve_dynamic_bounds.
337 (resolve_dynamic_array): New function, mostly extracted from
338 resolve_dynamic_bounds.
339 (resolve_dynamic_bounds): Delete.
340 (resolve_dynamic_type): Reimplement. Add handling of
341 TYPE_CODE_RANGE types.
343 2014-04-28 Joel Brobecker <brobecker@adacore.com>
345 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
346 handling of parallel ___XA types.
348 2014-04-28 Joel Brobecker <brobecker@adacore.com>
350 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
351 unnecessary second call to static_unwrap_type.
353 2014-04-27 Hui Zhu <hui@codesourcery.com>
355 * stack.c (print_frame_info): Call do_gdb_disassembly with
356 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
358 2014-04-26 Doug Evans <xdje42@gmail.com>
360 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
362 2014-04-25 Pedro Alves <palves@redhat.com>
365 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
366 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
367 and newline from built string.
368 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
369 (linux_ptrace_attach_fail_reason): ... this.
370 * linux-nat.c (linux_nat_attach): Adjust to use
371 linux_ptrace_attach_fail_reason.
373 2014-04-25 Pedro Alves <palves@redhat.com>
375 * remote.c (struct remote_state): Remove multi_process_aware,
376 non_stop_aware, cond_tracepoints, cond_breakpoints,
377 breakpoint_commands, fast_tracepoints, static_tracepoints,
378 install_in_trace, disconnected_tracing,
379 enable_disable_tracepoints, string_tracing, and
380 augmented_libraries_svr4_read fields.
381 (remote_multi_process_p): Move further below in the file.
382 (struct packet_config): Add comments.
383 (update_packet_config): Delete function.
384 (show_packet_config_cmd): Use packet_config_support.
385 (add_packet_config_cmd): Use NULL as set callback.
386 (packet_ok): "set remote foo-packet"-style commands no longer
387 change config->supported -- adjust.
388 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
389 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
390 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
391 (PACKET_QNonStop, PACKET_multiprocess_feature)
392 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
393 (PACKET_DisconnectedTracing_feature)
394 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
395 (set_remote_protocol_packet_cmd): Delete function.
396 (packet_config_support, packet_support): New functions.
397 (set_remote_protocol_Z_packet_cmd): Don't call
398 update_packet_config.
399 (remote_query_attached, remote_pass_signals)
400 (remote_program_signals, remote_threads_info)
401 (remote_threads_extra_info, remote_start_remote): Use
403 (remote_start_remote): Use packet_config_support and
405 (init_all_packet_configs): Set all packets to unknown support,
406 instead of calling update_packet_config.
407 (remote_check_symbols): Use packet_support.
408 (remote_supported_packet): Unconditionally set the packet config's
410 (remote_multi_process_feature, remote_non_stop_feature)
411 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
412 (remote_breakpoint_commands_feature)
413 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
414 (remote_install_in_trace_feature)
415 (remote_disconnected_tracing_feature)
416 (remote_enable_disable_tracepoint_feature)
417 (remote_string_tracing_feature)
418 (remote_augmented_libraries_svr4_read_feature): Delete functions.
419 (remote_protocol_features): Adjust to use remote_supported_packet
420 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
421 "ConditionalTracepoints", "ConditionalBreakpoints",
422 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
423 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
424 "EnableDisableTracepoints", and "tracenz".
425 (remote_query_supported): Use packet_support.
426 (remote_open_1): Adjust.
427 (extended_remote_attach_1): Use packet_support. Switch on the
428 result of packet_ok instead of checking whether the packet ended
430 (remote_vcont_resume): Use packet_support.
431 (remote_resume, remote_stop_ns, fetch_register_using_p)
432 (remote_prepare_to_store, store_register_using_P)
433 (check_binary_download, remote_write_bytes): Use packet_support.
434 (remote_vkill): Use packet_support. Switch on the result of
435 packet_ok instead of checking whether the packet ended up
437 (extended_remote_supports_disable_randomization): Use
439 (extended_remote_run): Switch on the result of packet_ok instead
440 of checking whether the packet ended up disabled.
441 (remote_insert_breakpoint, remote_remove_breakpoint)
442 (remote_insert_watchpoint, remote_remove_watchpoint)
443 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
445 (remote_search_memory): Use packet_config_support.
446 (remote_get_thread_local_address, remote_get_tib_address)
447 (remote_hostio_send_command, remote_can_execute_reverse): Use
449 (remote_supports_cond_tracepoints)
450 (remote_supports_cond_breakpoints)
451 (remote_supports_fast_tracepoints)
452 (remote_supports_static_tracepoints)
453 (remote_supports_install_in_trace)
454 (remote_supports_enable_disable_tracepoint)
455 (remote_supports_string_tracing)
456 (remote_can_run_breakpoint_commands): Rewrite, checking whether
457 the packet config says the feature is enabled or disabled.
458 (remote_download_tracepoint, remote_trace_set_readonly_regions)
459 (remote_get_trace_status): Use packet_support.
460 (remote_set_disconnected_tracing): Adjust to check whether the
461 feature is enabled with packet_support.
462 (remote_set_trace_buffer_size, remote_use_agent)
463 (remote_can_use_agent, remote_supports_btrace): Use
465 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
466 Use packet_config_support.
467 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
468 the packet config says the feature is enabled or disabled.
469 (set_range_stepping): Use packet_support.
471 2014-04-25 Tom Tromey <tromey@redhat.com>
473 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
476 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
478 * NEWS: Mention support for C99 variable length arrays.
480 2014-04-24 Joel Brobecker <brobecker@adacore.com>
482 * ada-lang.c (standard_exc): Expand introductory comment.
484 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
485 Walfred Tedeschi <walfred.tedeschi@intel.com>
487 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
489 (amd64_linux_read_description): Add code to handle AVX512 xstate
490 mask and return respective tdesc.
491 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
492 and features/i386/x32-avx512-linux.c.
493 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
494 (amd64_linux_core_read_description): Add code to handle AVX512
495 xstate mask and return respective tdesc.
496 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
497 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
499 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
500 (tdesc_amd64_avx512_linux): New prototype.
501 (tdesc_x32_avx512_linux): Likewise.
502 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
503 features/i386/x32-avx512.c.
504 (amd64_ymm_avx512_names): New register names for pseudo
506 (amd64_ymmh_avx512_names): New register names for raw registers
508 (amd64_k_names): New register names for K registers.
509 (amd64_zmmh_names): New register names for ZMM raw registers.
510 (amd64_zmm_names): New registers names for ZMM pseudo registers.
511 (amd64_xmm_avx512_names): New register names for XMM16-31
513 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
515 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
516 if feature is present.
517 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
518 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
519 (AMD64_NUM_REGS): Adjust to new number of registers.
520 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
521 registers supplied via XSTATE by AVX512 registers.
522 (i386_linux_read_description): Add case for AVX512.
523 * i386-linux-tdep.c: Include i386-avx512-linux.c.
524 (i386_linux_gregset_reg_offset): Add AVX512 registers.
525 (i386_linux_core_read_description): Add case for AVX512.
526 (i386_linux_init_abi): Install supported register note section
528 (_initialize_i386_linux_tdep): Add call to tdesc init function for
530 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
531 registers to be number of zmm7h + 1.
532 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
533 * i386-tdep.c: Include features/i386/i386-avx512.c.
534 (i386_zmm_names): Add ZMM pseudo register names array.
535 (i386_zmmh_names): Add ZMM raw register names array.
536 (i386_k_names): Add K raw register names array.
537 (num_lower_zmm_regs): Add constant for the number of lower ZMM
538 registers. AVX512 has 16 more ZMM registers than there are YMM
540 (i386_zmmh_regnum_p): Add function to look up register number of
542 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
543 (i386_k_regnum_p): Likewise for K raw registers.
544 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
545 registers added by AVX512.
546 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
547 registers added by AVX512.
548 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
550 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
551 (i386_pseudo_register_name): Add ZMM pseudo registers.
552 (i386_zmm_type): Construct and return vector registers type for ZMM
554 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
555 ZMM0-31 pseudo registers and K registers.
556 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
557 and YMM16-31 registers from register cache.
558 (i386_pseudo_register_write): Add code to write K, ZMM and
560 (i386_register_reggroup_p): Add code to include/exclude AVX512
561 registers in/from respective register groups.
562 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
563 registers if feature is present in xcr0.
564 (i386_gdbarch_init): Add code to initialize AVX512 feature
565 variables in tdep structure, wire in pseudo registers and call
566 initialize_tdesc_i386_avx512.
567 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
569 (i386_regnum): Add AVX512 registers.
570 (I386_SSE_NUM_REGS): New define for number of SSE registers.
571 (I386_AVX_NUM_REGS): Likewise for AVX registers.
572 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
573 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
575 (i386_xmm_avx512_regnum_p): New prototype for register look up.
576 (i386_ymm_avx512_regnum_p): Likewise.
577 (i386_k_regnum_p): Likewise.
578 (i386_zmm_regnum_p): Likewise.
579 (i386_zmmh_regnum_p): Likewise.
580 * i387-tdep.c : Update year in copyright notice.
581 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
583 (XSAVE_YMM_AVX512_ADDR): New macro.
584 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
586 (XSAVE_XMM_AVX512_ADDR): New macro.
587 (xsave_avx512_k_offset): New table for K register offsets in
589 (XSAVE_AVX512_K_ADDR): New macro.
590 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
592 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
593 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
595 (i387_collect_xsave): Add code to collect AVX512 registers from
597 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
598 of XMM16-31 registers.
599 (I387_NUM_K_REGS): New define for number of K registers.
600 (I387_K0_REGNUM): New define for K0 register number.
601 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
602 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
603 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
605 (I387_YMM16H_REGNUM): New define for YMM16H register number.
606 (I387_XMM16_REGNUM): New define for XMM16 register number.
607 (I387_YMM0_REGNUM): New define for YMM0 register number.
608 (I387_KEND_REGNUM): New define for last K register number.
609 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
610 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
612 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
614 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
616 * features/Makefile: Add AVX512 related files.
617 * features/i386/32bit-avx512.xml: New file.
618 * features/i386/64bit-avx512.xml: Likewise.
619 * features/i386/amd64-avx512-linux.c: Likewise.
620 * features/i386/amd64-avx512-linux.xml: Likewise.
621 * features/i386/amd64-avx512.c: Likewise.
622 * features/i386/amd64-avx512.xml: Likewise.
623 * features/i386/i386-avx512-linux.c: Likewise.
624 * features/i386/i386-avx512-linux.xml: Likewise.
625 * features/i386/i386-avx512.c: Likewise.
626 * features/i386/i386-avx512.xml: Likewise.
627 * features/i386/x32-avx512-linux.c: Likewise.
628 * features/i386/x32-avx512-linux.xml: Likewise.
629 * features/i386/x32-avx512.c: Likewise.
630 * features/i386/x32-avx512.xml: Likewise.
631 * regformats/i386/amd64-avx512-linux.dat: New file.
632 * regformats/i386/amd64-avx512.dat: Likewise.
633 * regformats/i386/i386-avx512-linux.dat: Likewise.
634 * regformats/i386/i386-avx512.dat: Likewise.
635 * regformats/i386/x32-avx512-linux.dat: Likewise.
636 * regformats/i386/x32-avx512.dat: Likewise.
637 * NEWS: Add note about new support for AVX512.
640 2014-04-23 Pedro Alves <palves@redhat.com>
642 * breakpoint.c (insert_bp_location): Tolerate errors if the
643 breakpoint is set in a user-loaded objfile.
644 (remove_breakpoint_1): Likewise. Also tolerate errors if the
645 location is marked shlib_disabled. If the breakpoint is set in a
646 user-loaded objfile is a GDB-side memory breakpoint, validate it
647 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
648 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
650 * mem-break.c (memory_validate_breakpoint): New function.
651 * objfiles.c (userloaded_objfile_contains_address_p): New
653 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
654 * target.h (memory_validate_breakpoint): New declaration.
656 2014-04-23 Pedro Alves <palves@redhat.com>
658 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
659 the breakpoint is set in a shared library, only suppress
660 errors for software breakpoints, not hardware breakpoints.
662 2014-04-22 Pedro Alves <palves@redhat.com>
664 * infrun.c (schedlock_applies): New function, factored out from
665 find_thread_needs_step_over.
666 (find_thread_needs_step_over): Use it.
667 (switch_back_to_stepped_thread): Always clear trap_expected if the
668 step over is finished. Return early if scheduler locking applies.
669 Look for the stepping thread and a potential step-over thread with
671 (currently_stepping_or_nexting_callback): Delete.
673 2014-04-22 Nick Clifton <nickc@redhat.com>
675 * NEWS: Mention that ARM sim now supports tracing.
677 2014-04-22 Yao Qi <yao@codesourcery.com>
679 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
681 * tracefile.c (tracefile_fetch_registers): ... it. New
683 * tracefile.h (tracefile_fetch_registers): Declare.
684 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
685 tracefile_fetch_registers.
687 2014-04-19 Eli Zaretskii <eliz@gnu.org>
690 * windows-nat.c (thread_rec): Don't display a warning when
691 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
692 fails for any reason, set th->suspended to -1, so that we don't
693 try to resume such a thread. Also, don't return NULL in these
694 cases, to avoid completely ruin the session due to "PC register is
695 not available" error.
696 (do_windows_fetch_inferior_registers): Check errors in
697 GetThreadContext call.
698 (windows_continue): Accept an additional argument KILLED; if not
699 zero, ignore errors in the SetThreadContext call, since the
700 inferior was killed and is shutting down.
701 (windows_resume, get_windows_debug_event)
702 (windows_create_inferior, windows_mourn_inferior)
703 (windows_kill_inferior): All callers of windows_continue changed
704 to adjust to its new calling sequence.
706 2014-04-19 Yao Qi <yao@codesourcery.com>
708 * ctf.c (ctf_open): Call post_create_inferior.
710 2014-04-19 Yao Qi <yao@codesourcery.com>
712 * ctf.c (handle_id): New static variable.
713 (ctf_open_dir): Get handle_id from bt_context_add_trace return
714 value. Get the declaration of event "register" and get length
717 2014-04-19 Yao Qi <yao@codesourcery.com>
719 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
721 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
723 * valops.c (oload_method_static): Remove unnecessary argument
724 METHOD. Update all callers.
726 2014-04-18 Pedro alves <palves@redhat.com>
727 Tom Tromey <tromey@redhat.com>
730 * frame.c (get_prev_frame_1): Rename to ...
731 (get_prev_frame_always): ... this, and make extern. Adjust.
732 (skip_artificial_frames): Use get_prev_frame_always.
733 (frame_unwind_caller_id, frame_pop, get_prev_frame)
734 (get_frame_unwind_stop_reason): Adjust to rename.
735 * frame.h (get_prev_frame_always): Declare.
736 * inline-frame.c: Include frame.h.
737 (inline_frame_this_id): Use get_prev_frame_always.
739 2014-04-18 Tristan Gingold <gingold@adacore.com>
741 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
742 code by using bfd_mach_o_get_base_address.
744 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
746 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
747 (spu_ax_pseudo_register_collect): New function.
748 (spu_ax_pseudo_register_push_stack): Likewise.
749 (spu_dwarf_reg_to_regnum): Likewise.
750 (spu_gdbarch_init): Install them. Append DWARF unwinders.
752 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
754 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
755 Replace FRAME argument with FRAME_ID.
756 * gdbarch.c, gdbarch.h: Regenerate.
757 * findvar.c (default_value_from_register): Add GDBARCH argument;
758 replace FRAME by FRAME_ID. No longer call get_frame_id.
759 (value_from_register): Update call to gdbarch_value_from_register.
760 * value.h (default_value_from_register): Update prototype.
761 * s390-linux-tdep.c (s390_value_from_register): Update interface
762 and call to default_value_from_register.
763 * spu-tdep.c (spu_value_from_register): Likewise.
765 * findvar.c (address_from_register): Remove TYPE argument.
766 Do not call value_from_register; use gdbarch_value_from_register
767 with null_frame_id instead.
768 * value.h (address_from_register): Update prototype.
769 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
770 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
771 address_from_register interface change.
773 2014-04-17 Yao Qi <yao@codesourcery.com>
775 * gdbtypes.h: Update comments to link to types and macros'
778 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
780 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
782 2014-04-16 Keith Seitz <keiths@redhat.com>
785 * dwarf2read.c (skip_one_die): Check that all relative-offset
786 sibling DIEs fall within range of the current reader's buffer.
787 (read_partial_die): Likewise.
789 2014-04-16 Keith Seitz <keiths@redhat.com>
792 * cp-namespace.c (lookup_symbol_file): If the type name of
793 `this' is NULL, return immediately.
795 2014-04-14 Keith Seitz <keiths@redhat.com>
798 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
799 from symbol_matches_domain in symtab.c. All local callers
800 of symbol_matches_domain updated.
801 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
802 search STRUCT_DOMAIN.
803 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
804 independently. standard_lookup will do that automatically.
805 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
806 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
807 (cp_lookup_symbol_in_namespace): Likewise.
808 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
809 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
810 may return a STRUCT_DOMAIN match.
811 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
812 * cp-support.c: Include language.h.
813 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
815 * psymtab.c (match_partial_symbol): Compare the requested
816 domain with the symbol's domain directly.
817 (lookup_partial_symbol): Likewise.
818 * symtab.c (lookup_symbol_in_language): Explain when/why
819 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
820 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
821 appropriate languages.
822 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
823 and moved to ada-lang.c
824 (lookup_block_symbol): Explain that this function only returns
825 symbol matching the requested DOMAIN.
826 Compare the requested domain with the symbol's domain directly.
827 (iterate_over_symbols): Compare the requested domain with the
828 symbol's domain directly.
829 * symtab.h (symbol_matches_domain): Remove.
831 2014-04-14 Tom Tromey <tromey@redhat.com>
834 * c-exp.y (type_aggregate_p): New function.
835 (qualified_name, classify_inner_name): Use it.
836 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
837 and TYPE_TARGET_TYPE of an enum type.
838 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
840 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
841 handle TYPE_DECLARED_CLASS.
842 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
844 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
845 * valops.c (enum_constant_from_type): New function.
846 (value_aggregate_elt): Use it.
847 * cp-namespace.c (cp_lookup_nested_symbol): Handle
850 2014-04-14 Tom Tromey <tromey@redhat.com>
852 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
853 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
855 * value.h (value_aggregate_elt): Update.
857 2014-04-14 Tom Tromey <tromey@redhat.com>
859 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
861 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
863 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
864 (evaluate_subexp_standard): Pass noside argument.
865 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
866 if noside equals EVAL_NORMAL. If the subscript yields a vla type
867 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
868 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
869 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
871 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
873 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
874 points to a constant blob.
876 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
878 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
879 property and store it as the high bound and flag the range accordingly.
880 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
881 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
882 * gdbtypes.h (enum range_flags): New enum.
883 (struct range_bounds): Add flags member.
885 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
887 * c-typeprint.c (c_type_print_varspec_suffix): Added
888 check for not yet resolved high bound. If unresolved, print
889 "variable length" string to the console instead of random
892 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
894 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
896 (ada_template_to_fixed_record_type_1): Likewise.
897 (ada_to_fixed_type_1): Likewise.
898 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
899 (cp_print_value): Likewise.
900 * d-valprint.c (dynamic_array_type): Likewise.
901 * findvar.c (address_of_variable): Likewise.
902 * jv-valprint.c (java_value_print): Likewise.
903 * valops.c (value_ind): Likewise.
904 * value.c (coerce_ref): Likewise.
906 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
908 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
909 value and retrieve the dynamic type size.
911 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
913 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
914 passed to sizeof is dynamic evaluate the argument to compute the length.
916 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
917 Joel Brobecker <brobecker@adacore.com>
919 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
920 (dwarf2_evaluate_property): New function.
921 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
922 * dwarf2read.c (attr_to_dynamic_prop): New function.
923 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
925 * gdbtypes.c: Include dwarf2loc.h.
926 (is_dynamic_type): New function.
927 (resolve_dynamic_type): New function.
928 (resolve_dynamic_bounds): New function.
929 (get_type_length): New function.
930 (check_typedef): Use get_type_length to compute type length.
931 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
932 (TYPE_LOW_BOUND_KIND): New macro.
933 (is_dynamic_type): New function prototype.
934 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
935 to resolve dynamic properties of the type. Update comment.
936 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
938 2014-04-14 Richard Henderson <rth@redhat.com>
940 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
942 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
943 Doug Evans <xdje42@gmail.com>
945 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
946 dereference TYPE_CODE_REF values.
948 2014-04-11 Joel Brobecker <brobecker@adacore.com>
950 Revert the following changes due to regressions:
952 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
953 (dwarf2_evaluate_property): New function.
954 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
955 * dwarf2read.c (attr_to_dynamic_prop): New function.
956 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
958 * gdbtypes.c: Include dwarf2loc.h.
959 (is_dynamic_type): New function.
960 (resolve_dynamic_type): New function.
961 (resolve_dynamic_bounds): New function.
962 (get_type_length): New function.
963 (check_typedef): Use get_type_length to compute type length.
964 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
965 (TYPE_LOW_BOUND_KIND): New macro.
966 (is_dynamic_type): New function prototype.
967 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
968 to resolve dynamic properties of the type. Update comment.
969 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
971 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
972 passed to sizeof is dynamic evaluate the argument to compute the length.
974 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
975 value and retrieve the dynamic type size.
977 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
978 (ada_template_to_fixed_record_type_1): Likewise.
979 (ada_to_fixed_type_1): Likewise.
980 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
981 (cp_print_value): Likewise.
982 * d-valprint.c (dynamic_array_type): Likewise.
983 * eval.c (evaluate_subexp_with_coercion): Likewise.
984 * findvar.c (address_of_variable): Likewise.
985 * jv-valprint.c (java_value_print): Likewise.
986 * valops.c (value_ind): Likewise.
987 * value.c (coerce_ref): Likewise.
989 * c-typeprint.c (c_type_print_varspec_suffix): Added
990 check for not yet resolved high bound. If unresolved, print
991 "variable length" string to the console instead of random
994 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
995 property and store it as the high bound and flag the range accordingly.
996 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
997 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
998 * gdbtypes.h (enum range_flags): New enum.
999 (struct range_bounds): Add flags member.
1001 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1002 points to a constant blob.
1004 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1005 (evaluate_subexp_standard): Pass noside argument.
1006 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1007 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1008 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1009 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1010 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1012 2014-04-11 Keith Seitz <keiths@redhat.com>
1015 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1016 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1019 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1021 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1022 (evaluate_subexp_standard): Pass noside argument.
1023 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1024 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1025 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1026 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1027 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1029 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1031 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1032 points to a constant blob.
1034 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1036 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1037 property and store it as the high bound and flag the range accordingly.
1038 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1039 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1040 * gdbtypes.h (enum range_flags): New enum.
1041 (struct range_bounds): Add flags member.
1043 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1045 * c-typeprint.c (c_type_print_varspec_suffix): Added
1046 check for not yet resolved high bound. If unresolved, print
1047 "variable length" string to the console instead of random
1050 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1052 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1053 (ada_template_to_fixed_record_type_1): Likewise.
1054 (ada_to_fixed_type_1): Likewise.
1055 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1056 (cp_print_value): Likewise.
1057 * d-valprint.c (dynamic_array_type): Likewise.
1058 * eval.c (evaluate_subexp_with_coercion): Likewise.
1059 * findvar.c (address_of_variable): Likewise.
1060 * jv-valprint.c (java_value_print): Likewise.
1061 * valops.c (value_ind): Likewise.
1062 * value.c (coerce_ref): Likewise.
1064 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1066 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1067 value and retrieve the dynamic type size.
1069 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1071 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1072 passed to sizeof is dynamic evaluate the argument to compute the length.
1074 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1076 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1077 (dwarf2_evaluate_property): New function.
1078 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1079 * dwarf2read.c (attr_to_dynamic_prop): New function.
1080 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1082 * gdbtypes.c: Include dwarf2loc.h.
1083 (is_dynamic_type): New function.
1084 (resolve_dynamic_type): New function.
1085 (resolve_dynamic_bounds): New function.
1086 (get_type_length): New function.
1087 (check_typedef): Use get_type_length to compute type length.
1088 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1089 (TYPE_LOW_BOUND_KIND): New macro.
1090 (is_dynamic_type): New function prototype.
1091 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1092 to resolve dynamic properties of the type. Update comment.
1093 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1095 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1097 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1098 declaring high/low bounds and change uses accordingly. Call
1099 create_range_type instead of create_static_range_type.
1100 * gdbtypes.c (create_range_type): New function.
1101 (create_range_type): Convert bounds into struct bound_prop and pass
1102 them to create_range_type.
1103 * gdbtypes.h (struct bound_prop): New struct.
1104 (create_range_type): New function prototype.
1105 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1106 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1107 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1109 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1111 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1113 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1114 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1115 * ada-lang.c: All uses of create_range_type updated.
1116 * coffread.c: All uses of create_range_type updated.
1117 * dwarf2read.c: All uses of create_range_type updated.
1118 * f-exp.y: All uses of create_range_type updated.
1119 * m2-valprint.c: All uses of create_range_type updated.
1120 * mdebugread.c: All uses of create_range_type updated.
1121 * stabsread.c: All uses of create_range_type updated.
1122 * valops.c: All uses of create_range_type updated.
1123 * valprint.c: All uses of create_range_type updated.
1125 2014-04-10 Pedro Alves <palves@redhat.com>
1127 * breakpoint.c (single_step_breakpoints)
1128 (single_step_gdbarch): Move up in the file.
1129 (one_breakpoint_xfer_memory): New function, factored out from ...
1130 (breakpoint_xfer_memory): ... here. Also process single-step
1133 2014-04-09 Tristan Gingold <gingold@adacore.com>
1135 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1137 (darwin_decode_exception_message): Free port only after use.
1139 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1141 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1142 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1143 when setting the size of call_length.
1145 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1147 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1148 dereference TYPE_CODE_REF values.
1150 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1152 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1153 end of warning message.
1155 2014-04-03 Doug Evans <dje@google.com>
1157 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1158 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1160 2014-04-02 Alan Modra <amodra@gmail.com>
1162 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1163 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1164 (struct symbol_file_add_from_memory_args): Add size field.
1165 (find_vdso_size): New function.
1166 (add_vsyscall_page): Attempt to find vdso size.
1168 2014-04-01 Doug Evans <dje@google.com>
1170 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1172 2014-04-01 Tristan Gingold <gingold@adacore.com>
1174 * darwin-nat.c (darwin_encode_reply): Add prototype.
1175 (darwin_decode_exception_message): Reply to unknown inferiors.
1176 (darwin_decode_message): Handle message by id. Ignore message
1177 to unknown inferior.
1178 (darwin_wait): Discard unknown messages, add debug trace.
1180 2014-03-31 Doug Evans <dje@google.com>
1182 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1185 2014-03-31 Doug Evans <dje@google.com>
1187 New option "set print symbol-loading".
1189 * solib.c (solib_read_symbols): Only print symbol loading messages
1191 (solib_add): If symbol loading is in "brief" mode, notify user
1192 symbols are being loaded.
1193 (reload_shared_libraries_1): Ditto.
1194 * symfile.c (print_symbol_loading_off): New static global.
1195 (print_symbol_loading_brief): New static global.
1196 (print_symbol_loading_full): New static global.
1197 (print_symbol_loading_enums): New static global.
1198 (print_symbol_loading): New static global.
1199 (print_symbol_loading_p): New function.
1200 (symbol_file_add_with_addrs): Only print symbol loading messages
1202 (_initialize_symfile): Register "print symbol-loading" set/show
1204 * symfile.h (print_symbol_loading_p): Declare.
1206 2014-03-30 Doug Evans <xdje42@gmail.com>
1208 * infrun.c (set_last_target_status): New function.
1209 (handle_inferior_event): Call it.
1211 2014-03-30 Doug Evans <xdje42@gmail.com>
1213 * inferior.h (enum stop_kind): Improve comment.
1215 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1217 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1218 a reference, strip the reference layer before calling
1219 the lang_ops value_has_mutated callback.
1221 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1223 Remove some globals from our parser.
1224 * language.c (unk_lang_parser): Add "struct parser_state"
1226 * language.h (struct language_defn) <la_parser>: Likewise.
1227 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1228 (initialize_expout): Add "struct parser_state" argument.
1229 Rewrite function to use the parser state.
1230 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1231 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1232 write_exp_elt_longcst, write_exp_elt_dblcst,
1233 write_exp_elt_decfloatcst, write_exp_elt_type,
1234 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1235 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1236 write_dollar_variable): Likewise.
1237 (parse_exp_in_context_1): Use parser state.
1238 (insert_type_address_space): Add "struct parser_state" argument.
1240 (increase_expout_size): New function.
1241 * parser-defs.h: Forward declare "struct language_defn" and
1242 "struct parser_state".
1243 (expout, expout_size, expout_ptr): Remove extern declarations.
1244 (parse_gdbarch, parse_language): Rewrite macro declarations to
1245 accept the parser state.
1246 (struct parser_state): New struct.
1247 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1248 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1249 write_exp_elt_decfloatcst, write_exp_elt_type,
1250 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1251 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1252 write_exp_msymbol, write_dollar_variable,
1253 mark_struct_expression, insert_type_address_space): Add "struct
1254 parser_state" argument.
1255 (increase_expout_size): New function.
1256 * utils.c (do_clear_parser_state): New function.
1257 (make_cleanup_clear_parser_state): Likewise.
1258 * utils.h (make_cleanup_clear_parser_state): New function
1260 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1261 Update calls to write_exp* in order to pass the parser state.
1262 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1263 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1264 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1265 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1266 * stap-probe.c (stap_parse_register_operand): Likewise.
1267 (stap_parse_single_operand): Likewise.
1268 (stap_parse_argument_1): Likewise.
1269 (stap_parse_argument): Use parser state.
1270 * stap-probe.h: Include "parser-defs.h".
1271 (struct stap_parse_info) <pstate>: New field.
1272 * c-exp.y (parse_type): Rewrite to use parser state.
1273 (yyparse): Redefine to c_parse_internal.
1274 (pstate): New global variable.
1275 (parse_number): Add "struct parser_state" argument.
1276 (write_destructor_name): Likewise.
1277 (type_exp): Update calls to write_exp* and similars in order to
1279 (exp1, exp, variable, qualified_name, space_identifier,
1280 typename, typebase): Likewise.
1281 (write_destructor_name, parse_number, lex_one_token,
1282 classify_name, classify_inner_name, c_parse): Add "struct
1283 parser_state" argument. Update function to use parser state.
1284 * c-lang.h: Forward declare "struct parser_state".
1285 (c_parse): Add "struct parser_state" argument.
1286 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1287 (yyparse): Redefine macro to ada_parse_internal.
1288 (pstate): New variable.
1289 (write_int, write_object_renaming, write_var_or_type,
1290 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1291 type_int, type_long, type_long_long, type_float, type_double,
1292 type_long_double, type_char, type_boolean, type_system_address):
1293 Add "struct parser_state" argument.
1294 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1295 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1296 var_or_type, aggregate, aggregate_component_list,
1297 positional_list, others, component_group,
1298 component_associations): Update calls to write_exp* and similar
1299 functions in order to use parser state.
1300 (ada_parse, write_var_from_sym, write_int,
1301 write_exp_op_with_string, write_object_renaming,
1302 find_primitive_type, write_selectors, write_ambiguous_var,
1303 write_var_or_type, write_name_assoc, type_int, type_long,
1304 type_long_long, type_float, type_double, type_long_double,
1305 type_char, type_boolean, type_system_address): Add "struct
1306 parser_state" argument. Adjust function to use parser state.
1307 * ada-lang.c (parse): Likewise.
1308 * ada-lang.h: Forward declare "struct parser_state".
1309 (ada_parse): Add "struct parser_state" argument.
1310 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1311 calls to both functions.
1312 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1314 (yyparse): Redefine macro to f_parse_internal.
1315 (pstate): New variable.
1316 (parse_number): Add "struct parser_state" argument.
1317 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1318 and similars in order to use parser state.
1319 (parse_number): Adjust code to use parser state.
1321 (f_parse): New function.
1322 * f-lang.h: Forward declare "struct parser_state".
1323 (f_parse): Add "struct parser_state" argument.
1324 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1326 (yyparse): Redefine macro for java_parse_internal.
1327 (pstate): New variable.
1328 (push_expression_name, push_expression_name, insert_exp): Add
1329 "struct parser_state" argument.
1330 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1331 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1332 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1333 PostIncrementExpression, PostDecrementExpression,
1334 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1335 UnaryExpressionNotPlusMinus, CastExpression,
1336 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1337 RelationalExpression, EqualityExpression, AndExpression,
1338 ExclusiveOrExpression, InclusiveOrExpression,
1339 ConditionalAndExpression, ConditionalOrExpression,
1340 ConditionalExpression, Assignment, LeftHandSide): Update
1341 calls to write_exp* and similars in order to use parser state.
1342 (parse_number): Ajust code to use parser state.
1344 (java_parse): New function.
1345 (push_variable): Add "struct parser_state" argument. Adjust
1346 code to user parser state.
1347 (push_fieldnames, push_qualified_expression_name,
1348 push_expression_name, insert_exp): Likewise.
1349 * jv-lang.h: Forward declare "struct parser_state".
1350 (java_parse): Add "struct parser_state" argument.
1351 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1353 (yyparse): Redefine macro to m2_parse_internal.
1354 (pstate): New variable.
1355 (type_exp, exp, fblock, variable, type): Update calls to
1356 write_exp* and similars to use parser state.
1358 (m2_parse): New function.
1359 * m2-lang.h: Forward declare "struct parser_state".
1360 (m2_parse): Add "struct parser_state" argument.
1361 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1362 * objc-lang.h: Forward declare "struct parser_state".
1363 (end_msglist): Add "struct parser_state" argument.
1364 * p-exp.y (parse_type): Rewrite macro to use parser state.
1365 (yyparse): Redefine macro to pascal_parse_internal.
1366 (pstate): New variable.
1367 (parse_number): Add "struct parser_state" argument.
1368 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1369 write_exp* and similars in order to use parser state.
1370 (parse_number, yylex): Adjust code to use parser state.
1371 (pascal_parse): New function.
1372 * p-lang.h: Forward declare "struct parser_state".
1373 (pascal_parse): Add "struct parser_state" argument.
1374 * go-exp.y (parse_type): Rewrite macro to use parser state.
1375 (yyparse): Redefine macro to go_parse_internal.
1376 (pstate): New variable.
1377 (parse_number): Add "struct parser_state" argument.
1378 (type_exp, exp1, exp, variable, type): Update calls to
1379 write_exp* and similars in order to use parser state.
1380 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1381 to use parser state.
1382 (go_parse): Likewise.
1383 * go-lang.h: Forward declare "struct parser_state".
1384 (go_parse): Add "struct parser_state" argument.
1386 2014-03-27 Doug Evans <dje@google.com>
1388 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1390 2014-03-27 Doug Evans <dje@google.com>
1392 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1393 Remove argument abbrev_section. All callers updated.
1395 2014-03-27 Doug Evans <dje@google.com>
1397 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1398 addr_base, ranges_base.
1400 2014-03-26 Keith Seitz <keiths@redhat.com>
1402 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1403 types, not VAR_DOMAIN.
1405 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1407 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1409 * features/nios2-linux.c: Regenerated.
1410 * features/nios2.c: Regenerated.
1412 2014-03-25 Pedro Alves <palves@redhat.com>
1414 * cli/cli-script.c (script_from_file): Force the interpreter to
1417 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1419 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1420 small stack allocation.
1422 2014-03-24 Tristan Gingold <gingold@adacore.com>
1424 * darwin-nat.c (exc_server): Remove unused prototype.
1425 (darwin_dump_message): Correctly display data on x86_64.
1426 (darwin_encode_reply): Fix style.
1427 Add comments and fix indentation.
1429 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1431 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1433 2014-03-22 Doug Evans <xdje42@gmail.com>
1435 * infcmd.c: Whitespace fixes.
1436 (interrupt_command): Merge two function comments into one.
1438 2014-03-22 Doug Evans <xdje42@gmail.com>
1440 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1443 2014-03-22 Yao Qi <yao@codesourcery.com>
1445 * remote.c (target_read_live_memory): Remove.
1446 (memory_xfer_live_readonly_partial): Rename it to
1447 remote_xfer_live_readonly_partial. Remove argument 'object'.
1448 All callers updated. Call remote_read_bytes_1
1449 instead of target_read_live_memory.
1450 * tracepoint.c (set_traceframe_number): Remove.
1451 (make_cleanup_restore_traceframe_number): Likewise .
1452 * tracepoint.h (set_traceframe_number): Remove declaration.
1453 (make_cleanup_restore_traceframe_number): Likewise.
1455 2014-03-22 Yao Qi <yao@codesourcery.com>
1457 * remote.c (remote_read_bytes): Move code on reading from the
1459 (remote_read_bytes_1): ... here. New function.
1461 2014-03-22 Yao Qi <yao@codesourcery.com>
1463 * ctf.c (ctf_xfer_partial): Check the return value of
1464 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1465 return TARGET_XFER_UNAVAILABLE.
1466 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1467 * target.c (target_read_live_memory): Move it to remote.c.
1468 (memory_xfer_live_readonly_partial): Likewise.
1469 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1470 * remote.c (target_read_live_memory): Moved from target.c.
1471 (memory_xfer_live_readonly_partial): Likewise.
1472 (remote_read_bytes): Factored out from
1473 memory_xfer_partial_1.
1475 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1477 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1480 2014-03-21 Pedro Alves <palves@redhat.com>
1482 * infrun.c (normal_stop): Extend comment.
1484 2014-03-21 Hui Zhu <hui@codesourcery.com>
1485 Pedro Alves <palves@redhat.com>
1487 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1489 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1490 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1491 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1493 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1495 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1496 `z' formatted output modifier.
1498 2014-03-20 Tom Tromey <tromey@redhat.com>
1499 Sergio Durigan Junior <sergiodj@redhat.com>
1501 * probe.c (parse_probes): Turn assert into an ordinary error.
1502 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1503 exceptions when parsing probes. Rearrange the code for clarity.
1505 2014-03-20 Tom Tromey <tromey@redhat.com>
1508 * top.c (execute_command): Only dispatch events if the command
1511 2014-03-20 Tom Tromey <tromey@redhat.com>
1514 * infcall.c: Include event-top.h.
1515 (run_inferior_call): Call async_disable_stdin if needed.
1517 2014-03-20 Pedro Alves <palves@redhat.com>
1519 * infrun.c (prepare_to_proceed): Delete.
1520 (thread_still_needs_step_over): New function.
1521 (find_thread_needs_step_over): New function.
1522 (proceed): If the current thread needs a step-over, set its
1523 steping_over_breakpoint flag. Adjust to use
1524 find_thread_needs_step_over instead of prepare_to_proceed.
1525 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1526 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1528 (switch_back_to_stepped_thread): Step over breakpoints of all
1529 threads not the stepping thread, before switching back to the
1532 2014-03-20 Pedro Alves <palves@redhat.com>
1534 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1536 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1537 * infrun.c (saved_singlestep_ptid)
1538 (stepping_past_singlestep_breakpoint): Delete.
1539 (resume): Remove stepping_past_singlestep_breakpoint handling.
1540 (proceed): Store the prev_pc of the stepping thread too.
1541 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1543 (enum infwait_states): Delete infwait_thread_hop_state.
1544 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1546 (handle_inferior_event): Adjust.
1547 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1548 handling and the thread-hop code. Before removing single-step
1549 breakpoints, check whether the thread hit a single-step breakpoint
1550 of another thread. If it did, the trap is not a random signal.
1551 (switch_back_to_stepped_thread): If the event thread hit a
1552 single-step breakpoint, unblock it before switching to the
1553 stepping thread. Handle the case of the stepped thread having
1555 (keep_going): Handle the case of the current thread moving past a
1556 single-step breakpoint.
1558 2014-03-20 Pedro Alves <palves@redhat.com>
1561 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1562 are being stepped over.
1563 (breakpoint_address_match): Make extern.
1564 * breakpoint.h (breakpoint_address_match): New declaration.
1565 * inferior.h (stepping_past_instruction_at): New declaration.
1566 * infrun.c (struct step_over_info): New type.
1567 (step_over_info): New global.
1568 (set_step_over_info, clear_step_over_info)
1569 (stepping_past_instruction_at): New functions.
1570 (handle_inferior_event): Clear the step-over info when
1571 trap_expected is cleared.
1572 (resume): Remove now stale comment.
1573 (clear_proceed_status): Clear step-over info.
1574 (proceed): Adjust step-over handling to set or clear the step-over
1575 info instead of removing all breakpoints.
1576 (handle_signal_stop): When setting up a thread-hop, don't remove
1578 (stop_stepping): Clear step-over info.
1579 (keep_going): Adjust step-over handling to set or clear step-over
1580 info and then always inserting breakpoints, instead of removing
1581 all breakpoints when stepping over one.
1583 2014-03-20 Pedro Alves <palves@redhat.com>
1585 * infrun.c (previous_inferior_ptid): Adjust comment.
1586 (deferred_step_ptid): Delete.
1587 (infrun_thread_ptid_changed, prepare_to_proceed)
1588 (init_wait_for_inferior): Adjust.
1589 (handle_signal_stop): Delete deferred_step_ptid handling.
1591 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1594 * defs.h (sync_quit_force_run): New declaration.
1595 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1596 * event-top.c (async_sigterm_handler): New declaration.
1597 (async_sigterm_token): New variable.
1598 (async_init_signals): Create also async_sigterm_token.
1599 (async_sigterm_handler): New function.
1600 (sync_quit_force_run): New variable.
1601 (handle_sigterm): Replace quit_force call by other calls.
1602 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1604 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1606 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1607 offset into SPE pseudo registers.
1609 2014-03-18 Pedro Alves <palves@redhat.com>
1612 * inferior.h (print_stop_event): Declare.
1613 * infrun.c (print_stop_event): New, factored out from ...
1614 (normal_stop): ... this.
1615 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1616 of bpstat_print/print_stack_frame.
1618 2014-03-17 Tom Tromey <tromey@redhat.com>
1620 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1622 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1624 * ada-lang.c (decode_constrained_packed_array): Perform a
1625 minimal coercion for reference with coerce_ref instead of
1628 2014-03-17 Tristan Gingold <gingold@adacore.com>
1630 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1631 (darwin_solib_create_inferior_hook): Emit a warning if version
1634 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
1636 * python/py-value.c (get_field_flag): Cast flag_name argument to
1637 PyObject_GetAttrString to support Python 2.4.
1639 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1641 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1642 (Global Maintainers): Remove Jan Kratochvil.
1644 2014-03-14 Pedro Alves <palves@redhat.com>
1646 * inferior.h (terminal_ours_for_output): Rename to ...
1647 (child_terminal_ours_for_output): ... this.
1648 (terminal_save_ours): Rename to ...
1649 (child_terminal_save_ours): ... this.
1650 (terminal_ours): Rename to ...
1651 (child_terminal_ours): ... this.
1652 (terminal_inferior): Rename to ...
1653 (child_terminal_inferior): ... this.
1654 (terminal_init_inferior): Rename to ...
1655 (child_terminal_init_inferior): ... this.
1656 (terminal_init_inferior_with_pgrp): Rename to ...
1657 (child_terminal_init_inferior_with_pgrp): ... this.
1658 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1659 (child_terminal_init_with_pgrp): ... this.
1660 (terminal_save_ours): Rename to ...
1661 (child_terminal_save_ours): ... this.
1662 (terminal_init_inferior): Rename to ...
1663 (child_terminal_init): ... this. Adjust.
1664 (terminal_inferior): Rename to ...
1665 (child_terminal_inferior): ... this.
1666 (terminal_ours_for_output): Rename to ...
1667 (child_terminal_ours_for_output): ... this. Adjust.
1668 (terminal_ours): Rename to ...
1669 (child_terminal_ours): ... this.
1670 (terminal_ours_1): Rename to ...
1671 (child_terminal_ours_1): ... this. Adjust.
1672 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1673 * windows-nat.c (do_initial_windows_stuff): Adjust.
1674 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1675 (gnu_terminal_init): ... this. Adjust.
1676 (gnu_target): Adjust.
1677 * inf-child.c (inf_child_target): Adjust.
1679 2014-03-13 Doug Evans <xdje42@gmail.com>
1682 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1685 2014-03-13 Doug Evans <xdje42@gmail.com>
1687 * value.c (record_latest_value): Call release_value_or_incref
1688 instead of release_value.
1690 2014-03-13 Pedro Alves <palves@redhat.com>
1692 * procfs.c (procfs_target): Don't override to_shortname,
1693 to_longname or to_doc.
1695 2014-03-13 Pedro Alves <palves@redhat.com>
1697 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1698 Unix in user visible strings.
1700 2014-03-12 Stan Shebs <stan@codesourcery.com>
1702 * gdbtypes.h: Annotate comments for Doxygen, add a page
1703 block comment with some general info.
1705 2014-03-12 Pedro Alves <palves@redhat.com>
1707 * infcmd.c (prepare_execution_command): New function, factored out
1708 from several execution commands.
1709 (run_command_1, continue_command, step_1, jump_command)
1710 (signal_command, until_command, advance_command, finish_command)
1711 (attach_command): Use prepare_execution_command.
1713 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1715 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1718 (struct arm_linux_thread_points): Removed.
1719 (struct arm_linux_process_info): New.
1720 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1721 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1722 (arm_linux_find_breakpoints_by_tid): Removed.
1723 (struct arch_lwp_info): New.
1724 (arm_linux_find_process_pid): New functions.
1725 (arm_linux_add_process): New functions.
1726 (arm_linux_process_info_get): New functions.
1727 (arm_linux_forget_process): New function.
1728 (arm_linux_get_debug_reg_state): New function.
1729 (struct update_registers_data): New.
1730 (update_registers_callback): New function.
1731 (arm_linux_insert_hw_breakpoint1): Updated.
1732 (arm_linux_remove_hw_breakpoint1): Updated.
1733 (arm_linux_insert_hw_breakpoint): Updated.
1734 (arm_linux_remove_hw_breakpoint): Updated.
1735 (arm_linux_insert_watchpoint): Updated.
1736 (arm_linux_remove_watchpoint): Updated.
1737 (arm_linux_new_thread): Updated.
1738 (arm_linux_prepare_to_resume): New function.
1739 (arm_linux_new_fork): New function.
1740 (_initialize_arm_linux_nat): Updated.
1742 2014-03-12 Pedro Alves <palves@redhat.com>
1744 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1746 2014-03-12 Tom Tromey <tromey@redhat.com>
1748 * inf-child.c (return_zero): New function.
1749 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1750 * aix-thread.c (aix_thread_inferior_created): New function.
1751 (aix_thread_attach): Remove.
1752 (init_aix_thread_ops): Don't set to_attach.
1753 (_initialize_aix_thread): Register inferior_created observer.
1754 * corelow.c (init_core_ops): Don't set to_attach or
1756 * exec.c (init_exec_ops): Don't set to_attach or
1758 * infcmd.c (run_command_1): Use find_run_target. Make direct
1760 (attach_command): Use find_attach_target. Make direct target
1762 * record-btrace.c (init_record_btrace_ops): Don't set
1764 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1766 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1767 set to_create_inferior.
1768 * target.c (complete_target_initialization): Add assertion.
1769 (target_create_inferior): Remove.
1770 (find_default_attach, find_default_create_inferior): Remove.
1771 (find_attach_target, find_run_target): New functions.
1772 (find_default_is_async_p, find_default_can_async_p)
1773 (target_supports_non_stop, target_attach): Remove.
1774 (init_dummy_target): Don't set to_create_inferior or
1775 to_supports_non_stop.
1776 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1777 TARGET_DEFAULT_FUNC.
1778 <to_create_inferior>: Add comment.
1779 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1780 TARGET_DEFAULT_RETURN.
1781 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1782 (find_attach_target, find_run_target): Declare.
1783 (target_create_inferior): Remove.
1784 (target_has_execution_1): Update comment.
1785 (target_supports_non_stop): Remove.
1786 * target-delegates.c: Rebuild.
1788 2014-03-12 Pedro Alves <palves@redhat.com>
1790 * inf-child.h: Update comment to not mention Unix.
1792 2014-03-12 Pedro Alves <palves@redhat.com>
1794 * inf-child.c: Update top comment to not mention Unix. Add
1795 generic comment describing how this target is meant to be used.
1796 (inf_child_post_attach, inf_child_post_startup_inferior)
1797 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1800 2014-03-12 Pedro Alves <palves@redhat.com>
1802 * nto-procfs.c: Include inf-child.h.
1803 (procfs_ops): Delete global.
1804 (procfs_can_run): Delete method.
1805 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1806 target pointer instead of referencing procfs_ops.
1807 (procfs_prepare_to_store): Delete.
1808 (init_procfs_ops): Delete function.
1809 (procfs_target): New function, based on init_procfs_ops, but
1810 inherit inf_child_target.
1811 (_initialize_procfs): Use procfs_target.
1813 2014-03-12 Pedro Alves <palves@redhat.com>
1815 * windows-nat.c: Include inf-child.h.
1816 (windows_ops): Delete global.
1817 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1819 (init_windows_ops): Delete function.
1820 (windows_target): New function, based on init_windows_ops, but
1821 inherit inf_child_target.
1822 (_initialize_windows_nat): Use windows_target. Install x86
1823 specific target methods here.
1825 2014-03-10 Doug Evans <xdje42@gmail.com>
1827 * guile/guile.c (call_initialize_gdb_module): New function.
1828 (initialize_guile): Replace call to scm_init_guile with call to
1831 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1833 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1834 in call to TYPE_CODE macro.
1836 2014-03-10 Jerome Guitton <guitton@adacore.com>
1838 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1839 Resolve tagged types to full view.
1841 2014-03-10 Hui Zhu <hui@codesourcery.com>
1843 * target.h (target_insert_breakpoint): Remove "hardware" from its
1846 2014-03-07 Doug Evans <dje@google.com>
1848 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1850 2014-03-07 Doug Evans <dje@google.com>
1852 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1853 Remove unused local comp_dir_attr. Assert exactly one of
1854 stub_comp_unit_die, stub_comp_dir is non-NULL.
1856 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1858 * target.h (complete_target_initialization, add_target):
1861 2014-03-07 Pedro Alves <palves@redhat.com>
1863 * go32-nat.c: Include inf-child.h.
1864 (go32_ops): Delete global.
1865 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1867 (go32_create_inferior): Push the passed in target pointer instead
1868 of referencing go32_ops.
1869 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1870 (go32_target): New function, based on init_go32_ops, but inherit
1872 (_initialize_go32_nat): Use go32_target. Move parts of
1875 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1877 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1878 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1879 SYMBOL_VALUE_ADDRESS.
1880 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1882 2014-03-06 Yao Qi <yao@codesourcery.com>
1884 * breakpoint.c (get_tracepoint_by_number): Remove argument
1885 optional_p. All callers updated. Adjust comments. Update
1887 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1889 2014-03-06 Yao Qi <yao@codesourcery.com>
1891 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1892 early if get_number returns zero. Use 'p' instead of 'args'.
1894 2014-03-06 Yao Qi <yao@codesourcery.com>
1896 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1899 2014-03-06 Yao Qi <yao@codesourcery.com>
1901 PR breakpoints/16508
1902 * tracepoint.c (check_trace_running): New function.
1903 (trace_find_command): Move code to check_trace_running and
1904 call check_trace_running.
1905 (trace_find_pc_command): Likewise.
1906 (trace_find_tracepoint_command): Likewise.
1907 (trace_find_line_command): Likewise.
1908 (trace_find_range_command): Likewise.
1909 * tracepoint.h (check_trace_running): Likewise.
1910 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1912 2014-03-06 Yao Qi <yao@codesourcery.com>
1914 * target.h (struct target_ops) <to_traceframe_info>: Use
1915 TARGET_DEFAULT_NORETURN (tcomplain ()).
1916 * target-delegates.c: Regenerated.
1918 2014-03-05 Pedro Alves <palves@redhat.com>
1921 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1922 void. Update comment.
1923 (dcache_xfer_memory): Delete.
1924 (dcache_read_memory_partial): New, based on the read bits of
1926 (dcache_update): Add status parameter. Use ULONGEST for len, and
1927 adjust. Discard cache lines if the reason for the update was
1929 * dcache.h (dcache_xfer_memory): Delete declaration.
1930 (dcache_read_memory_partial): New declaration.
1931 (dcache_update): Update prototype.
1932 * target.c (raw_memory_xfer_partial): Update the dcache here.
1933 (memory_xfer_partial_1): Don't handle dcache writes here.
1935 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1937 * remote-sim.c (gdbsim_load): Add const to prog.
1939 2014-03-03 Tom Tromey <tromey@redhat.com>
1941 * elfread.c (probe_key): Change to bfd_data.
1942 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1943 now per-BFD, not per-objfile.
1944 * stap-probe.c (stap_probe_destroy): Update comment.
1945 (handle_stap_probe): Allocate on the per-BFD obstack.
1947 2014-03-03 Tom Tromey <tromey@redhat.com>
1949 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1950 * breakpoint.c (create_longjmp_master_breakpoint): Use
1952 (add_location_to_breakpoint, bkpt_probe_insert_location)
1953 (bkpt_probe_remove_location): Update.
1954 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1955 * elfread.c (elf_symfile_relocate_probe): Remove.
1956 (elf_probe_fns): Update.
1957 (insert_exception_resume_breakpoint): Change type of "probe"
1958 parameter to bound_probe.
1959 (check_exception_resume): Update.
1960 * objfiles.c (objfile_relocate1): Don't relocate probes.
1961 * probe.c (bound_probe_s): New typedef.
1962 (parse_probes): Use get_probe_address. Set sal's objfile.
1963 (find_probe_by_pc): Return a bound_probe.
1964 (collect_probes): Return a VEC(bound_probe_s).
1965 (compare_probes): Update.
1966 (gen_ui_out_table_header_info): Change type of "probes"
1968 (info_probes_for_ops): Update.
1969 (get_probe_address): New function.
1970 (probe_safe_evaluate_at_pc): Update.
1971 * probe.h (struct probe_ops) <get_probe_address>: New field.
1972 <set_semaphore, clear_semaphore>: Add objfile parameter.
1973 (struct probe) <objfile>: Remove field.
1975 <address>: Update comment.
1976 (struct bound_probe): New.
1977 (find_probe_by_pc): Return a bound_probe.
1978 (get_probe_address): Declare.
1979 * solib-svr4.c (struct probe_and_action) <address>: New field.
1980 (hash_probe_and_action, equal_probe_and_action): Update.
1981 (register_solib_event_probe): Add address parameter.
1982 (solib_event_probe_at): Update.
1983 (svr4_create_probe_breakpoints): Add objfile parameter. Use
1985 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
1986 (stap_get_probe_address): New function.
1987 (stap_can_evaluate_probe_arguments, compute_probe_arg)
1988 (compile_probe_arg): Update.
1989 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
1991 (handle_stap_probe): Don't relocate the probe.
1992 (stap_relocate): Remove.
1993 (stap_gen_info_probes_table_values): Update.
1994 (stap_probe_ops): Remove stap_relocate.
1995 * symfile-debug.c (debug_sym_relocate_probe): Remove.
1996 (debug_sym_probe_fns): Update.
1997 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
1998 * symtab.c (init_sal): Use memset.
1999 * symtab.h (struct symtab_and_line) <objfile>: New field.
2000 * tracepoint.c (start_tracing, stop_tracing): Update.
2002 2014-03-03 Tom Tromey <tromey@redhat.com>
2004 * probe.h (parse_probes, find_probe_by_pc)
2005 (find_probes_in_objfile): Fix comments.
2007 2014-03-02 Doug Evans <xdje42@gmail.com>
2009 * infrun.c (handle_signal_stop): Replace test for
2010 TARGET_WAITKIND_STOPPED with an assert.
2012 2014-03-02 Doug Evans <xdje42@gmail.com>
2014 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2016 2014-03-02 Doug Evans <xdje42@gmail.com>
2018 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2020 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2022 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2024 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2026 * i386obsd-nat.c: Include "obsd-nat.h".
2027 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2029 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2031 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2033 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2035 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2037 * mips64obsd-nat.c: Include "obsd-nath".
2038 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2040 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2042 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2044 * amd64obsd-nat.c: Include "obsd-nat,h.
2045 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2047 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2049 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2051 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2052 (find_overload_match): Update call to find_oload_champ.
2053 (find_oload_champ_namespace_loop): Likewise
2055 2014-02-28 Mark Kettenis <kettenis@gnu.org>
2057 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2059 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2060 * config/sparc/obsd64.mh: New file.
2061 * sparc64obsd-nat.c: New file.
2063 * obsd-nat.h: New file.
2064 * obsd-nat.c: New file.
2065 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2066 (ALLDEPFILES): Add obsd-nat.c.
2068 2014-02-28 Tom Tromey <tromey@redhat.com>
2070 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2071 * cli-out.h (cli_ui_out_impl): Now const.
2072 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2073 * ui-out.c (struct ui_out) <impl>: Now const.
2074 (default_ui_out_impl): Now const.
2075 (ui_out_new): Make 'impl' parameter const.
2076 * ui-out.h (ui_out_new): Update.
2078 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2080 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2082 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2084 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2086 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2088 Additional PR 8882 fix.
2089 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2091 2014-02-27 Pedro Alves <palves@redhat.com>
2093 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2096 2014-02-27 Pedro Alves <palves@redhat.com>
2099 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2100 * nat/linux-waitpid.c: Include string.h.
2101 (status_to_str): Moved here and made extern.
2102 * nat/linux-waitpid.h (status_to_str): New declaration.
2104 2014-02-27 Hui Zhu <hui@codesourcery.com>
2107 * infrun.c (ptid_match): Move ...
2108 * common/ptid.c (ptid_match): ... here.
2109 * inferior.h (ptid_match): Move ...
2110 * common/ptid.h (ptid_match): ... here.
2112 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2114 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2115 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2118 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2120 * obsd-tdep.c (obsd_auxv_parse): New function.
2121 (obsd_init_abi): Set auxv_parse.
2123 * gdbarch.sh (auxv_parse): New.
2124 * gdbarch.h: Regenerated.
2125 * gdbarch.c: Regenerated.
2126 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2128 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2130 * guile/scm-value.c (gdbscm_history_append_x): New function.
2131 (value_functions): Add it.
2133 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2135 * dwarf2read.c (attr_value_as_address): New function.
2136 (dwarf2_find_base_address, read_call_site_scope): Use
2137 attr_value_as_address in place of DW_ADDR.
2138 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2139 the low and high addresses. Slight rework of the handling
2140 of the high pc being a constant form, and limit it to
2141 DWARF verson 4 or higher.
2142 (dwarf2_record_block_ranges): Likewise.
2143 (read_partial_die): Likewise.
2144 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2146 2014-02-26 Tom Tromey <tromey@redhat.com>
2148 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2150 2014-02-26 Tom Tromey <tromey@redhat.com>
2152 * elfread.c (elf_read_minimal_symbols): Return early if
2153 minimal symbols have already been read. Add "ei" parameter.
2154 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2155 * minsyms.c (prim_record_minimal_symbol_full): Update.
2156 * objfiles.h (struct objstats) <n_minsyms>: Move...
2157 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2158 * symmisc.c (print_objfile_statistics): Update.
2160 2014-02-26 Tom Tromey <tromey@redhat.com>
2162 * elfread.c (elf_read_minimal_symbols): New function, from
2164 (elf_symfile_read): Call it.
2166 2014-02-26 Tom Tromey <tromey@redhat.com>
2168 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2169 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2170 (lookup_minimal_symbol_solib_trampoline)
2171 (lookup_minimal_symbol_by_pc_section_1)
2172 (lookup_minimal_symbol_and_objfile): Update.
2173 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2174 Don't allocate a minimal symbol if minsyms have already been read.
2175 (build_minimal_symbol_hash_tables): Update.
2176 (install_minimal_symbols): Do nothing if minsyms already read.
2177 Use the per-BFD obstack.
2178 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2179 * objfiles.c (allocate_objfile): Call
2180 terminate_minimal_symbol_table later.
2181 (have_minimal_symbols): Update.
2182 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2183 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2184 Move from struct objfile.
2185 <minsyms_read>: New field.
2186 (struct objfile) <msymbols, minimal_symbol_count,
2187 msymbol_hash, msymbol_demangled_hash>: Move.
2188 (ALL_OBJFILE_MSYMBOLS): Update.
2189 * symfile.c (read_symbols): Set minsyms_read.
2190 (reread_symbols): Update.
2191 * symmisc.c (dump_objfile, dump_msymbols): Update.
2193 2014-02-26 Tom Tromey <tromey@redhat.com>
2195 * minsyms.c (msymbols_sort): Remove.
2196 * minsyms.h (msymbols_sort): Remove.
2197 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2198 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2199 * elfread.c (elf_symtab_read): Don't add section offsets.
2200 * xcoffread.c (record_minimal_symbol): Don't add section offset
2201 to minimal symbol address.
2202 * somread.c (text_offset, data_offset): Remove.
2203 (som_symtab_read): Don't add section offsets to minimal symbol
2205 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2206 Don't add section offsets to minimal symbols.
2207 * coffread.c (coff_symtab_read): Don't add section offsets
2208 to minimal symbol addresses.
2209 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2210 to minimal symbol addresses.
2211 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2212 section offset to minimal symbol addresses.
2213 * mdebugread.c (parse_partial_symbols): Don't add section
2214 offset to minimal symbol addresses.
2215 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2216 offset to minimal symbol addresses.
2218 2014-02-26 Tom Tromey <tromey@redhat.com>
2220 * ada-lang.c (ada_main_name): Update.
2221 (ada_add_standard_exceptions): Update.
2222 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2223 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2224 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2225 * auxv.c (ld_so_xfer_auxv): Update.
2226 * avr-tdep.c (avr_scan_prologue): Update.
2227 * ax-gdb.c (gen_var_ref): Update.
2228 * blockframe.c (get_pc_function_start)
2229 (find_pc_partial_function_gnu_ifunc): Update.
2230 * breakpoint.c (create_overlay_event_breakpoint)
2231 (create_longjmp_master_breakpoint)
2232 (create_std_terminate_master_breakpoint)
2233 (create_exception_master_breakpoint): Update.
2234 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2235 * c-valprint.c (c_val_print): Update.
2236 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2237 * common/agent.c (agent_look_up_symbols): Update.
2238 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2239 * dwarf2loc.c (call_site_to_target_addr): Update.
2240 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2241 * elfread.c (elf_gnu_ifunc_record_cache)
2242 (elf_gnu_ifunc_resolve_by_got): Update.
2243 * findvar.c (default_read_var_value): Update.
2244 * frame.c (inside_main_func): Update.
2245 * frv-tdep.c (frv_frame_this_id): Update.
2246 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2247 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2249 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2250 (hppa_hpux_find_dummy_bpaddr): Update.
2251 * hppa-tdep.c (hppa_symbol_address): Update.
2252 * infcmd.c (until_next_command): Update.
2253 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2255 * linespec.c (minsym_found, add_minsym): Update.
2256 * linux-nat.c (get_signo): Update.
2257 * linux-thread-db.c (inferior_has_bug): Update.
2258 * m32c-tdep.c (m32c_return_value)
2259 (m32c_m16c_address_to_pointer): Update.
2260 * m32r-tdep.c (m32r_frame_this_id): Update.
2261 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2262 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2263 * maint.c (maintenance_translate_address): Update.
2264 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2265 (frob_address): New function.
2266 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2267 frob_address. Rename parameter to "pc_in".
2268 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2270 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2272 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2273 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2274 * objc-lang.c (find_objc_msgsend): Update.
2275 * objfiles.c (objfile_relocate1): Update.
2276 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2277 * p-valprint.c (pascal_val_print): Update.
2278 * parse.c (write_exp_msymbol): Update.
2279 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2280 (ppc_elfv2_skip_entrypoint): Update.
2281 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2282 * printcmd.c (build_address_symbolic, msym_info)
2283 (address_info): Update.
2284 * proc-service.c (ps_pglobal_lookup): Update.
2285 * psymtab.c (find_pc_sect_psymtab_closer)
2286 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2287 Change msymbol parameter to bound_minimal_symbol.
2288 * ravenscar-thread.c (get_running_thread_id): Update.
2289 * remote.c (remote_check_symbols): Update.
2290 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2292 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2293 * solib-dsbt.c (lm_base): Update.
2294 * solib-frv.c (lm_base, main_got): Update.
2295 * solib-irix.c (locate_base): Update.
2296 * solib-som.c (som_solib_create_inferior_hook)
2297 (link_map_start): Update.
2298 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2299 * solib-svr4.c (elf_locate_base, enable_break): Update.
2300 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2301 (flush_ea_cache): Update.
2302 * stabsread.c (define_symbol, scan_file_globals): Update.
2303 * stack.c (find_frame_funname): Update.
2304 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2305 (debug_qf_find_pc_sect_symtab): Update.
2306 * symfile.c (simple_read_overlay_table)
2307 (simple_overlay_update): Update.
2308 * symfile.h (struct quick_symbol_functions)
2309 <find_pc_sect_symtab>: Change type of msymbol to
2310 bound_minimal_symbol.
2311 * symmisc.c (dump_msymbols): Update.
2312 * symtab.c (find_pc_sect_symtab_via_partial)
2313 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2314 (search_symbols, print_msymbol_info): Update.
2315 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2316 (MSYMBOL_VALUE_ADDRESS): Redefine.
2317 (BMSYMBOL_VALUE_ADDRESS): New macro.
2318 * tracepoint.c (scope_info): Update.
2319 * tui/tui-disasm.c (tui_find_disassembly_address)
2320 (tui_get_begin_asm_address): Update.
2321 * valops.c (find_function_in_inferior): Update.
2322 * value.c (value_static_field, value_fn_field): Update.
2324 2014-02-26 Tom Tromey <tromey@redhat.com>
2326 * ada-lang.c (ada_update_initial_language): Update.
2327 (ada_main_name, ada_has_this_exception_support): Update.
2328 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2329 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2330 * arm-tdep.c (arm_skip_stub): Update.
2331 * auxv.c (ld_so_xfer_auxv): Update.
2332 * avr-tdep.c (avr_scan_prologue): Update.
2333 * ax-gdb.c (gen_var_ref): Update.
2334 * breakpoint.c (struct breakpoint_objfile_data)
2335 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2336 type to bound_minimal_symbol.
2337 (create_overlay_event_breakpoint)
2338 (create_longjmp_master_breakpoint)
2339 (create_std_terminate_master_breakpoint)
2340 (create_exception_master_breakpoint): Update.
2341 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2342 * c-exp.y (classify_name): Update.
2343 * coffread.c (coff_symfile_read): Update.
2344 * common/agent.c (agent_look_up_symbols): Update.
2345 * d-lang.c (d_main_name): Update.
2346 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2347 * dec-thread.c (enable_dec_thread): Update.
2348 * dwarf2loc.c (call_site_to_target_addr): Update.
2349 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2350 * eval.c (evaluate_subexp_standard): Update.
2351 * findvar.c (struct minsym_lookup_data) <result>: Change type
2352 to bound_minimal_symbol.
2354 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2355 * frame.c (inside_main_func): Update.
2356 * frv-tdep.c (frv_frame_this_id): Update.
2357 * gcore.c (call_target_sbrk): Update.
2358 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2359 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2361 * go-lang.c (go_main_name): Update.
2362 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2363 (hppa_hpux_find_import_stub_for_addr): Update.
2364 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2365 Update. Change return type.
2366 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2368 * jit.c (jit_breakpoint_re_set_internal): Update.
2369 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2371 * linux-nat.c (get_signo): Update.
2372 * linux-thread-db.c (inferior_has_bug): Update
2373 * m32c-tdep.c (m32c_return_value)
2374 (m32c_m16c_address_to_pointer): Update.
2375 * m32r-tdep.c (m32r_frame_this_id): Update.
2376 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2377 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2378 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2379 lookup_minimal_symbol. Change return type.
2380 (lookup_minimal_symbol): Remove.
2381 (lookup_bound_minimal_symbol): Update.
2382 (lookup_minimal_symbol_text): Change return type.
2383 (lookup_minimal_symbol_solib_trampoline): Change return type.
2384 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2385 (lookup_minimal_symbol_solib_trampoline): Change return type.
2386 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2387 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2388 (value_nsstring, find_imps): Update.
2389 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2390 * p-lang.c (pascal_main_name): Update.
2391 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2392 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2393 * proc-service.c (ps_pglobal_lookup): Update.
2394 * ravenscar-thread.c (get_running_thread_msymbol): Change
2396 (has_ravenscar_runtime, get_running_thread_id): Update.
2397 * remote.c (remote_check_symbols): Update.
2398 * sol-thread.c (ps_pglobal_lookup): Update.
2399 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2400 * solib-dsbt.c (lm_base): Update.
2401 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2403 * solib-irix.c (locate_base): Update.
2404 * solib-som.c (som_solib_create_inferior_hook)
2405 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2407 * solib-spu.c (spu_enable_break): Update.
2408 * solib-svr4.c (elf_locate_base, enable_break): Update.
2409 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2410 (flush_ea_cache): Update.
2411 * stabsread.c (define_symbol): Update.
2412 * symfile.c (simple_read_overlay_table): Update.
2413 * symtab.c (find_pc_sect_line): Update.
2414 * tracepoint.c (scope_info): Update.
2415 * tui-disasm.c (tui_get_begin_asm_address): Update.
2416 * value.c (value_static_field): Update.
2418 2014-02-26 Tom Tromey <tromey@redhat.com>
2420 * minsyms.c (prim_record_minimal_symbol_full): Use
2421 SET_MSYMBOL_VALUE_ADDRESS.
2422 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2423 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2424 SET_MSYMBOL_VALUE_ADDRESS.
2425 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2426 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2428 2014-02-26 Tom Tromey <tromey@redhat.com>
2430 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2431 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2432 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2433 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2434 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2435 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2436 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2437 * ada-lang.c (ada_main_name): Update.
2438 (ada_lookup_simple_minsym): Update.
2439 (ada_make_symbol_completion_list): Update.
2440 (ada_add_standard_exceptions): Update.
2441 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2442 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2443 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2444 * arm-tdep.c (skip_prologue_function): Update.
2445 (arm_skip_stack_protector, arm_skip_stub): Update.
2446 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2447 (arm_wince_skip_main_prologue): Update.
2448 * auxv.c (ld_so_xfer_auxv): Update.
2449 * avr-tdep.c (avr_scan_prologue): Update.
2450 * ax-gdb.c (gen_var_ref): Update.
2451 * block.c (call_site_for_pc): Update.
2452 * blockframe.c (get_pc_function_start): Update.
2453 (find_pc_partial_function_gnu_ifunc): Update.
2454 * breakpoint.c (create_overlay_event_breakpoint): Update.
2455 (create_longjmp_master_breakpoint): Update.
2456 (create_std_terminate_master_breakpoint): Update.
2457 (create_exception_master_breakpoint): Update.
2458 (resolve_sal_pc): Update.
2459 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2460 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2462 * c-valprint.c (c_val_print): Update.
2463 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2464 * coffread.c (coff_symfile_read): Update.
2465 * common/agent.c (agent_look_up_symbols): Update.
2466 * dbxread.c (find_stab_function_addr): Update.
2467 (end_psymtab): Update.
2468 * dwarf2loc.c (call_site_to_target_addr): Update.
2469 (func_verify_no_selftailcall): Update.
2470 (tailcall_dump): Update.
2471 (call_site_find_chain_1): Update.
2472 (dwarf_expr_reg_to_entry_parameter): Update.
2473 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2474 (elf_gnu_ifunc_resolve_by_got): Update.
2475 * f-valprint.c (info_common_command): Update.
2476 * findvar.c (read_var_value): Update.
2477 * frame.c (get_prev_frame_1): Update.
2478 (inside_main_func): Update.
2479 * frv-tdep.c (frv_skip_main_prologue): Update.
2480 (frv_frame_this_id): Update.
2481 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2482 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2483 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2484 (gnuv3_skip_trampoline): Update.
2485 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2486 (hppa64_hpux_in_solib_call_trampoline): Update.
2487 (hppa_hpux_skip_trampoline_code): Update.
2488 (hppa64_hpux_search_dummy_call_sequence): Update.
2489 (hppa_hpux_find_import_stub_for_addr): Update.
2490 (hppa_hpux_find_dummy_bpaddr): Update.
2491 * hppa-tdep.c (hppa_symbol_address)
2492 (hppa_lookup_stub_minimal_symbol): Update.
2493 * i386-tdep.c (i386_skip_main_prologue): Update.
2494 (i386_pe_skip_trampoline_code): Update.
2495 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2496 * infcall.c (get_function_name): Update.
2497 * infcmd.c (until_next_command): Update.
2498 * jit.c (jit_breakpoint_re_set_internal): Update.
2499 (jit_inferior_init): Update.
2500 * linespec.c (minsym_found): Update.
2501 (add_minsym): Update.
2502 * linux-fork.c (info_checkpoints_command): Update.
2503 * linux-nat.c (get_signo): Update.
2504 * linux-thread-db.c (inferior_has_bug): Update.
2505 * m32c-tdep.c (m32c_return_value): Update.
2506 (m32c_m16c_address_to_pointer): Update.
2507 (m32c_m16c_pointer_to_address): Update.
2508 * m32r-tdep.c (m32r_frame_this_id): Update.
2509 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2510 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2511 * maint.c (maintenance_translate_address): Update.
2512 * minsyms.c (add_minsym_to_hash_table): Update.
2513 (add_minsym_to_demangled_hash_table): Update.
2514 (msymbol_objfile): Update.
2515 (lookup_minimal_symbol): Update.
2516 (iterate_over_minimal_symbols): Update.
2517 (lookup_minimal_symbol_text): Update.
2518 (lookup_minimal_symbol_by_pc_name): Update.
2519 (lookup_minimal_symbol_solib_trampoline): Update.
2520 (lookup_minimal_symbol_by_pc_section_1): Update.
2521 (lookup_minimal_symbol_and_objfile): Update.
2522 (prim_record_minimal_symbol_full): Update.
2523 (compare_minimal_symbols): Update.
2524 (compact_minimal_symbols): Update.
2525 (build_minimal_symbol_hash_tables): Update.
2526 (install_minimal_symbols): Update.
2527 (terminate_minimal_symbol_table): Update.
2528 (find_solib_trampoline_target): Update.
2529 (minimal_symbol_upper_bound): Update.
2530 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2531 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2532 (mips_skip_pic_trampoline_code): Update.
2533 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2534 * objc-lang.c (selectors_info): Update.
2535 (classes_info): Update.
2536 (find_methods): Update.
2537 (find_imps): Update.
2538 (find_objc_msgsend): Update.
2539 * objfiles.c (objfile_relocate1): Update.
2540 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2541 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2542 * p-valprint.c (pascal_val_print): Update.
2543 * parse.c (write_exp_msymbol): Update.
2544 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2545 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2546 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2547 * printcmd.c (build_address_symbolic): Update.
2549 (address_info): Update.
2550 * proc-service.c (ps_pglobal_lookup): Update.
2551 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2552 (find_pc_sect_psymtab): Update.
2553 * python/py-framefilter.c (py_print_frame): Update.
2554 * ravenscar-thread.c (get_running_thread_id): Update.
2555 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2557 * remote.c (remote_check_symbols): Update.
2558 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2559 (rs6000_skip_trampoline_code): Update.
2560 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2561 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2562 * solib-dsbt.c (lm_base): Update.
2563 * solib-frv.c (lm_base): Update.
2565 * solib-irix.c (locate_base): Update.
2566 * solib-som.c (som_solib_create_inferior_hook): Update.
2567 (som_solib_desire_dynamic_linker_symbols): Update.
2568 (link_map_start): Update.
2569 * solib-spu.c (spu_enable_break): Update.
2570 (ocl_enable_break): Update.
2571 * solib-svr4.c (elf_locate_base): Update.
2572 (enable_break): Update.
2573 * spu-tdep.c (spu_get_overlay_table): Update.
2574 (spu_catch_start): Update.
2575 (flush_ea_cache): Update.
2576 * stabsread.c (define_symbol): Update.
2577 (scan_file_globals): Update.
2578 * stack.c (find_frame_funname): Update.
2579 (frame_info): Update.
2580 * symfile.c (simple_read_overlay_table): Update.
2581 (simple_overlay_update): Update.
2582 * symmisc.c (dump_msymbols): Update.
2583 * symtab.c (fixup_section): Update.
2584 (find_pc_sect_line): Update.
2585 (skip_prologue_sal): Update.
2586 (search_symbols): Update.
2587 (print_msymbol_info): Update.
2588 (rbreak_command): Update.
2589 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2590 (completion_list_objc_symbol): Update.
2591 (default_make_symbol_completion_list_break_on): Update.
2592 * tracepoint.c (scope_info): Update.
2593 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2594 (tui_get_begin_asm_address): Update.
2595 * valops.c (find_function_in_inferior): Update.
2596 * value.c (value_static_field): Update.
2597 (value_fn_field): Update.
2599 2014-02-26 Tom Tromey <tromey@redhat.com>
2601 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2602 bound minimal symbols. Move code that knows about minsym
2604 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2606 * minsyms.h (minimal_symbol_upper_bound): Declare.
2607 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2608 minimal_symbol_upper_bound.
2610 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2612 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2613 Use the type's name if its basic type does not have a tag.
2615 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2617 * dwarf2read.c (read_subrange_type): Add comment.
2619 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2621 * dwarf2read.c (update_enumeration_type_from_children): New
2622 function, mostly extracted from process_structure_scope.
2623 (read_enumeration_type): Call update_enumeration_type_from_children.
2624 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2625 and flag_flag_enum fields.
2627 2014-02-26 Pedro Alves <palves@redhat.com>
2629 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2630 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2631 to_xfer_partial method.
2633 2014-02-26 Pedro Alves <palves@redhat.com>
2635 * target.c (complete_target_initialization): Don't install
2636 default_xfer_partial as to_xfer_partial hook.
2638 (update_current_target): Don't INHERIT nor de_fault
2639 deprecated_xfer_memory. Delete de_fault macro.
2640 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2641 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2642 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2645 2014-02-26 Pedro Alves <palves@redhat.com>
2647 * go32-nat.c (my_write_child): New function.
2648 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2649 (go32_xfer_partial): New function.
2650 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2651 Instead install a to_xfer_partial hook.
2653 2014-02-26 Pedro Alves <palves@redhat.com>
2655 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2656 to_xfer_partial helper. Rewrite.
2657 (procfs_xfer_partial): New function.
2658 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
2659 Install a to_xfer_partial hook.
2661 2014-02-26 Pedro Alves <palves@redhat.com>
2663 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
2664 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2665 (m32r_xfer_partial): New function.
2666 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2667 Install a to_xfer_partial hook.
2669 2014-02-26 Pedro Alves <palves@redhat.com>
2671 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2673 (mips_xfer_partial): New function.
2674 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2675 hook. Install a to_xfer_partial hook.
2677 2014-02-26 Joel Brobecker <brobecker@adacore.com>
2679 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2680 * gdbtypes.c (create_array_type_with_stride): New function,
2681 renaming create_array_type, but with an added parameter
2682 called "bit_stride".
2683 (create_array_type): Re-implement using
2684 create_array_type_with_stride.
2685 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2686 and DW_AT_bit_stride attributes.
2688 2014-02-26 Pedro Alves <palves@redhat.com>
2690 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2691 task-specific breakpoints.
2693 2014-02-25 Pedro Alves <palves@redhat.com>
2695 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2696 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2698 2014-02-25 Stan Shebs <stan@codesourcery.com>
2700 * defs.h: Annotate comments for Doxygen.
2702 2014-02-25 Tom Tromey <tromey@redhat.com>
2704 * target.h (target_ignore): Don't declare.
2705 * target.c (target_ignore): Remove.
2707 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2710 * auto-load.c (auto_load_objfile_script_1): Change filename to
2713 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2715 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2716 documentation. Adjust prototype to match the target_ops
2717 to_xfer_partial method. Adjust implementation accordingly.
2719 2014-02-25 Hui Zhu <hui@codesourcery.com>
2721 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2724 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2726 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2727 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2728 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2729 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2730 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2731 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2732 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2733 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2735 (rl78_register_type): Use a data pointer type for SP and
2736 new pseudo registers mentioned above. Use a 16 bit integer
2737 type for all other register pairs.
2738 (rl78_register_name, rl78_g10_register_name): Update for
2739 new pseudo registers.
2740 (rl78_pseudo_register_read): Likewise.
2741 (rl78_pseudo_register_write): Likewise.
2742 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2743 to the newly added pseudo registers.
2745 2014-02-24 Doug Evans <dje@google.com>
2747 * value.c (record_latest_value): Fix comment.
2748 * printcmd.c (print_command_1): Remove code to handle -1 return from
2749 record_latest_value.
2751 2014-02-24 Pedro Alves <palves@redhat.com>
2753 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2754 deprecated_xfer_memory hook.
2755 (procfs_xfer_partial): Call procfs_xfer_memory instead
2756 of the deprecated_xfer_memory target hook.
2757 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2760 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2762 * windows-nat.c (windows_xfer_shared_libraries): Return
2763 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2764 requested object is TARGET_OBJECT_LIBRARIES.
2766 2014-02-24 Yao Qi <yao@codesourcery.com>
2768 * target.h (enum target_xfer_status)
2769 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2770 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2772 * corefile.c (memory_error_message): User updated.
2773 * exec.c (section_table_read_available_memory): Likewise.
2774 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2775 * target.c (target_xfer_status_to_string): Likewise.
2776 (raw_memory_xfer_partial): Likewise.
2777 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2778 * valops.c (read_value_memory): Likewise.
2779 * exec.h: Update comments.
2781 2014-02-24 Yao Qi <yao@codesourcery.com>
2783 * target.c (target_xfer_status_to_string): Rename argument err
2785 * target.h (target_xfer_status_to_string): Update declaration.
2786 Replace target_xfer_error_to_string with
2787 target_xfer_status_to_string in comment.
2789 2014-02-24 Yao Qi <yao@codesourcery.com>
2791 * mips-linux-nat.c (super_close): Update its type.
2792 (mips_linux_close): Pass 'self' to super_close.
2794 2014-02-24 Yao Qi <yao@codesourcery.com>
2796 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2797 * corefile.c (read_memory): Adjusted.
2798 * target.c (target_write_with_progress): Adjusted.
2800 2014-02-23 Yao Qi <yao@codesourcery.com>
2804 2013-10-25 Yao Qi <yao@codesourcery.com>
2806 * remote.c (remote_traceframe_info): Return early if
2807 traceframe is not selected.
2809 2013-07-19 Yao Qi <yao@codesourcery.com>
2811 * target.c (update_current_target): Change the default action
2812 of 'to_traceframe_info' from tcomplain to return_zero.
2813 * target.h (struct target_ops) <to_traceframe_info>: Add more
2816 2014-02-23 Yao Qi <yao@codesourcery.com>
2818 * valops.c (read_value_memory): Rewrite it. Call
2819 target_xfer_partial in a loop.
2820 * exec.h (section_table_available_memory): Remove declaration.
2821 Move comments to ...
2822 * exec.c (section_table_available_memory): ... here. Make it
2825 2014-02-23 Yao Qi <yao@codesourcery.com>
2827 * exec.c (section_table_read_available_memory): New function.
2828 * exec.h (section_table_read_available_memory): Declare.
2829 * ctf.c (ctf_xfer_partial): Call
2830 section_table_read_available_memory.
2831 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2833 2014-02-23 Yao Qi <yao@codesourcery.com>
2835 * ctf.c (ctf_xfer_partial): Move code to ...
2836 * exec.c (exec_read_partial_read_only): ... it. New function.
2837 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2838 * tracefile.c: Include "exec.h".
2839 * exec.h (exec_read_partial_read_only): Declare.
2841 2014-02-23 Yao Qi <yao@codesourcery.com>
2843 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2844 (tfile_has_memory): Remove.
2845 (init_tfile_ops): Don't set fields to_has_all_memory and
2846 to_has_memory of tfile_ops.
2847 * tracefile.c (tracefile_has_all_memory): New function.
2848 (tracefile_has_memory): New function.
2849 (init_tracefile_ops): Initialize fields to_has_all_memory and
2850 to_has_memory of 'ops'.
2852 2014-02-23 Yao Qi <yao@codesourcery.com>
2854 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2855 (ctf_thread_alive, ctf_get_trace_status): Remove.
2856 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2858 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2859 (tfile_has_stack, tfile_has_registers): Remove.
2860 (tfile_thread_alive): Remove.
2861 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2863 * tracefile.c (tracefile_has_stack): New function.
2864 (tracefile_has_registers): New function.
2865 (tracefile_thread_alive): New function.
2866 (tracefile_get_trace_status): New function.
2867 (init_tracefile_ops): New function.
2868 * tracefile.h (init_tracefile_ops): Declare.
2870 2014-02-23 Yao Qi <yao@codesourcery.com>
2872 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2873 (O_LARGEFILE): Likewise.
2874 (tfile_ops): Likewise.
2875 (TRACE_HEADER_SIZE): Likewise.
2876 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2877 (cur_data_size): Likewise.
2878 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2879 (tfile_close, tfile_files_info): Likewise.
2880 (tfile_get_trace_status): Likewise.
2881 (tfile_get_tracepoint_status): Likewise.
2882 (tfile_get_traceframe_address): Likewise.
2883 (tfile_trace_find, match_blocktype): Likewise.
2884 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2885 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2886 (tfile_get_trace_state_variable_value): Likewise.
2887 (tfile_has_all_memory, tfile_has_memory): Likewise.
2888 (tfile_has_stack, tfile_has_registers): Likewise.
2889 (tfile_thread_alive, build_traceframe_info): Likewise.
2890 (tfile_traceframe_info, init_tfile_ops): Likewise.
2891 (_initialize_tracepoint): Don't call init_tfile_ops
2892 and add_target_with_completer.
2893 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2894 exec.h, completer.h and filenames.h.
2895 (_initialize_tracefile_tfile): New function.
2897 2014-02-23 Yao Qi <yao@codesourcery.com>
2899 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2901 (HFILES_NO_SRCDIR): Add tracefile.h.
2902 * ctf.c: Include "tracefile.h".
2903 * tracefile.h: New file.
2904 * tracefile.c: New file
2905 * tracefile-tfile.c: New file.
2906 * tracepoint.c: Include "tracefile.h".
2907 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2908 (stop_reason_names): Add const.
2909 (trace_file_writer_xfree): Move it to tracefile.c.
2910 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2911 (trace_save_ctf): Likewise.
2912 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2913 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2914 (tfile_write_header, tfile_write_regblock_type): Likewise.
2915 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2916 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2917 (tfile_write_raw_data, tfile_end): Likewise.
2918 (tfile_trace_file_writer_new): Likewise.
2919 (free_uploaded_tp): Make it extern.
2920 (free_uploaded_tsv): Make it extern.
2921 (_initialize_tracepoint): Move code to register command 'tsave'
2923 * tracepoint.h (stop_reason_names): Declare.
2924 (struct trace_frame_write_ops): Move it to tracefile.h.
2925 (struct trace_file_write_ops): Likewise.
2926 (struct trace_file_writer): Likewise.
2927 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2929 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2932 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2934 (get_cores_used_by_process): New parameter num_cores, use it.
2935 (linux_xfer_osdata_processes): Pass num_cores to it.
2936 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2939 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2941 * target.c (memory_xfer_partial): Fix length arg in call to
2942 breakpoint_xfer_memory.
2944 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2947 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2948 number comes after the + or - signs. Adjust length of register
2949 name to be extracted.
2951 2014-02-20 Tom Tromey <tromey@redhat.com>
2953 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2954 (ada_varobj_ops): Mark "extern".
2956 2014-02-20 Tom Tromey <tromey@redhat.com>
2958 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2960 2014-02-20 Doug Evans <xdje42@gmail.com>
2962 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2963 All callers updated.
2964 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2965 All callers updated.
2966 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2967 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2969 2014-02-20 lin zuojian <manjian2006@gmail.com>
2970 Joel Brobecker <brobecker@adacore.com>
2971 Doug Evans <xdje42@gmail.com>
2974 * dwarf2read.c (struct die_info): New member in_process.
2975 (reset_die_in_process): New function.
2976 (process_die): Set it at the start, reset when returning.
2977 (inherit_abstract_dies): Only call process_die if origin_child_die
2978 not already being processed.
2980 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2982 * windows-nat.c (handle_unload_dll): Add function documentation.
2983 (do_initial_windows_stuff): Add comment explaining why we wait
2984 until after inferior initialization has finished before
2985 processing all DLLs.
2987 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2989 * windows-nat.c (get_module_name): Delete.
2990 (windows_get_exec_module_filename): New function, mostly
2991 inspired from get_module_name.
2992 (windows_pid_to_exec_file): Replace call to get_module_name
2993 by call to windows_get_exec_module_filename.
2995 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2997 * windows-nat.c (handle_load_dll): Rewrite this function's
2998 introductory comment. Remove code using get_module_name
2999 to get the DLL's name.
3001 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3003 * windows-nat.c (get_windows_debug_event): Ignore
3004 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3005 if windows_initialization_done == 0.
3006 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3007 Adjust implementation to always load all DLLs.
3008 (do_initial_windows_stuff): Replace call to
3009 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3011 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3013 * windows-nat.c (_initialize_windows_nat): Deprecate the
3014 "dll-symbols" command. Turn the "add-shared-symbol-files"
3015 and "assf" aliases into commands, and deprecate them as well.
3016 * NEWS: Add entry explaining that "dll-symbols" and its two
3017 aliases are now deprecated.
3019 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3021 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3022 new-line in debug string. Remove trailing spaces.
3024 2014-02-19 Stan Shebs <stan@codesourcery.com>
3026 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3028 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3030 * NEWS: Add entry for the new feature
3031 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3034 2014-02-19 Stan Shebs <stan@codesourcery.com>
3036 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3038 2014-02-19 Pedro Alves <palves@redhat.com>
3040 * common/ptid.h (struct ptid): Mention that process_stratum
3041 targets should prefer ptid.lwp.
3043 2014-02-19 Pedro Alves <palves@redhat.com>
3045 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3046 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3047 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3048 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3049 store remote thread ids rather than ptid.tid.
3050 (_initialize_remote): Adjust.
3052 2014-02-19 Tom Tromey <tromey@redhat.com>
3054 * target.c (target_get_unwinder): Rewrite.
3055 (target_get_tailcall_unwinder): Rewrite.
3056 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3057 (record_btrace_to_get_tailcall_unwinder): New function.
3058 (init_record_btrace_ops): Update.
3059 * target.h (struct target_ops) <to_get_unwinder,
3060 to_get_tailcall_unwinder>: Now function pointers. Use
3061 TARGET_DEFAULT_RETURN.
3063 2014-02-19 Tom Tromey <tromey@redhat.com>
3065 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3067 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3069 2014-02-19 Tom Tromey <tromey@redhat.com>
3071 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3073 * target-delegates.c: Rebuild.
3074 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3075 TARGET_DEFAULT_FUNC.
3076 * target.c (default_target_decr_pc_after_break): Rename from
3077 forward_target_decr_pc_after_break. Simplify.
3078 (target_decr_pc_after_break): Rely on delegation.
3080 2014-02-19 Tom Tromey <tromey@redhat.com>
3082 * target.c (update_current_target): Do not INHERIT to_doc or
3083 to_magic. Do not de_fault to_open or to_close.
3085 2014-02-19 Tom Tromey <tromey@redhat.com>
3087 * gcore.h (objfile_find_memory_regions): Declare.
3088 * gcore.c (objfile_find_memory_regions): No longer static. Add
3090 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3091 * exec.c: Include gcore.h.
3092 (exec_set_find_memory_regions): Remove.
3093 (exec_find_memory_regions): Remove.
3094 (exec_do_find_memory_regions): Remove.
3095 (init_exec_ops): Update.
3096 * defs.h (exec_set_find_memory_regions): Remove.
3098 2014-02-19 Tom Tromey <tromey@redhat.com>
3100 * target-delegates.c: Rebuild.
3101 * target.h (struct target_ops) <to_extra_thread_info,
3102 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3103 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3104 not 0, in TARGET_DEFAULT_RETURN.
3106 2014-02-19 Tom Tromey <tromey@redhat.com>
3108 * target.c (complete_target_initialization): Remove casts. Use
3109 return_zero_has_execution.
3110 (return_zero): Add "ignore" argument.
3111 (return_zero_has_execution): New function.
3112 (init_dummy_target): Remove casts. Use
3113 return_zero_has_execution.
3115 2014-02-19 Tom Tromey <tromey@redhat.com>
3117 * target.c (update_current_target): Update comments. Do not
3120 2014-02-19 Tom Tromey <tromey@redhat.com>
3122 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3124 * corelow.c (core_read_description): Delegate when needed.
3125 * remote.c (remote_read_description): Delegate when needed.
3126 * target-delegates.c: Rebuild.
3127 * target.c (target_read_description): Rewrite.
3128 * target.h (struct target_ops) <to_read_description>: Update
3129 comment. Use TARGET_DEFAULT_RETURN.
3131 2014-02-19 Tom Tromey <tromey@redhat.com>
3133 * target-delegates.c: Rebuild.
3134 * target.c (update_current_target): Don't inherit or default
3136 (find_default_run_target): Check against delegate_can_run.
3137 * target.h (struct target_ops) <to_can_run>: Use
3138 TARGET_DEFAULT_RETURN.
3140 2014-02-19 Tom Tromey <tromey@redhat.com>
3142 * target-delegates.c: Rebuild.
3143 * target.c (target_disconnect): Unconditionally delegate.
3144 * target.h (struct target_ops) <to_disconnect>: Use
3145 TARGET_DEFAULT_NORETURN.
3147 2014-02-19 Tom Tromey <tromey@redhat.com>
3149 * record.c (record_stop): Unconditionally delegate.
3150 * target-delegates.c: Rebuild.
3151 * target.c (target_stop_recording): Unconditionally delegate.
3152 * target.h (struct target_ops) <to_stop_recording>: Use
3153 TARGET_DEFAULT_IGNORE.
3155 2014-02-19 Tom Tromey <tromey@redhat.com>
3157 * target-delegates.c: Rebuild.
3158 * target.c (target_enable_btrace): Unconditionally delegate.
3159 * target.h (struct target_ops) <to_enable_btrace>: Use
3160 TARGET_DEFAULT_NORETURN.
3162 2014-02-19 Tom Tromey <tromey@redhat.com>
3164 * target-delegates.c: Rebuild.
3165 * target.c (target_read_btrace): Unconditionally delegate.
3166 * target.h (struct target_ops) <to_read_btrace>: Use
3167 TARGET_DEFAULT_NORETURN.
3169 2014-02-19 Tom Tromey <tromey@redhat.com>
3171 * target-delegates.c: Rebuild.
3172 * target.c (target_teardown_btrace): Unconditionally delegate.
3173 * target.h (struct target_ops) <to_teardown_btrace>: Use
3174 TARGET_DEFAULT_NORETURN.
3176 2014-02-19 Tom Tromey <tromey@redhat.com>
3178 * target-delegates.c: Rebuild.
3179 * target.c (target_disable_btrace): Unconditionally delegate.
3180 * target.h (struct target_ops) <to_disable_btrace>: Use
3181 TARGET_DEFAULT_NORETURN.
3183 2014-02-19 Tom Tromey <tromey@redhat.com>
3185 * target-delegates.c: Rebuild.
3186 * target.c (default_search_memory): New function.
3187 (simple_search_memory): Update comment.
3188 (target_search_memory): Unconditionally delegate.
3189 * target.h (struct target_ops) <to_search_memory>: Use
3190 TARGET_DEFAULT_FUNC.
3192 2014-02-19 Tom Tromey <tromey@redhat.com>
3194 * auxv.c (default_auxv_parse): No longer static.
3195 (target_auxv_parse): Unconditionally delegate.
3196 * auxv.h (default_auxv_parse): Declare.
3197 * target-delegates.c: Rebuild.
3198 * target.c: Include auxv.h.
3199 * target.h (struct target_ops) <to_auxv_parse>: Use
3200 TARGET_DEFAULT_FUNC.
3202 2014-02-19 Tom Tromey <tromey@redhat.com>
3204 * target-delegates.c: Rebuild.
3205 * target.c (target_memory_map): Unconditionally delegate.
3206 * target.h (struct target_ops) <to_memory_map>: Use
3207 TARGET_DEFAULT_RETURN.
3209 2014-02-19 Tom Tromey <tromey@redhat.com>
3211 * target-delegates.c: Rebuild.
3212 * target.c (target_thread_alive): Unconditionally delegate.
3213 * target.h (struct target_ops) <to_thread_alive>: Use
3214 TARGET_DEFAULT_RETURN.
3216 2014-02-19 Tom Tromey <tromey@redhat.com>
3218 * target-delegates.c: Rebuild.
3219 * target.c (target_save_record): Unconditionally delegate.
3220 * target.h (struct target_ops) <to_save_record>: Use
3221 TARGET_DEFAULT_NORETURN.
3223 2014-02-19 Tom Tromey <tromey@redhat.com>
3225 * target-delegates.c: Rebuild.
3226 * target.c (target_delete_record): Unconditionally delegate.
3227 * target.h (struct target_ops) <to_delete_record>: Use
3228 TARGET_DEFAULT_NORETURN.
3230 2014-02-19 Tom Tromey <tromey@redhat.com>
3232 * target-delegates.c: Rebuild.
3233 * target.c (target_record_is_replaying): Unconditionally
3235 * target.h (struct target_ops) <to_record_is_replaying>: Use
3236 TARGET_DEFAULT_RETURN.
3238 2014-02-19 Tom Tromey <tromey@redhat.com>
3240 * target-delegates.c: Rebuild.
3241 * target.c (target_goto_record_begin): Unconditionally delegate.
3242 * target.h (struct target_ops) <to_goto_record_begin>: Use
3243 TARGET_DEFAULT_NORETURN.
3245 2014-02-19 Tom Tromey <tromey@redhat.com>
3247 * target-delegates.c: Rebuild.
3248 * target.c (target_goto_record_end): Unconditionally delegate.
3249 * target.h (struct target_ops) <to_goto_record_end>: Use
3250 TARGET_DEFAULT_NORETURN.
3252 2014-02-19 Tom Tromey <tromey@redhat.com>
3254 * target-delegates.c: Rebuild.
3255 * target.c (target_goto_record): Unconditionally delegate.
3256 * target.h (struct target_ops) <to_goto_record>: Use
3257 TARGET_DEFAULT_NORETURN.
3259 2014-02-19 Tom Tromey <tromey@redhat.com>
3261 * target-delegates.c: Rebuild.
3262 * target.c (target_insn_history): Unconditionally delegate.
3263 * target.h (struct target_ops) <to_insn_history>: Use
3264 TARGET_DEFAULT_NORETURN.
3266 2014-02-19 Tom Tromey <tromey@redhat.com>
3268 * target-delegates.c: Rebuild.
3269 * target.c (target_insn_history_from): Unconditionally delegate.
3270 * target.h (struct target_ops) <to_insn_history_from>: Use
3271 TARGET_DEFAULT_NORETURN.
3273 2014-02-19 Tom Tromey <tromey@redhat.com>
3275 * target-delegates.c: Rebuild.
3276 * target.c (target_insn_history_range): Unconditionally delegate.
3277 * target.h (struct target_ops) <to_insn_history_range>: Use
3278 TARGET_DEFAULT_NORETURN.
3280 2014-02-19 Tom Tromey <tromey@redhat.com>
3282 * target-delegates.c: Rebuild.
3283 * target.c (target_call_history): Unconditionally delegate.
3284 * target.h (struct target_ops) <to_call_history>: Use
3285 TARGET_DEFAULT_NORETURN.
3287 2014-02-19 Tom Tromey <tromey@redhat.com>
3289 * target-delegates.c: Rebuild.
3290 * target.c (target_call_history_from): Unconditionally delegate.
3291 * target.h (struct target_ops) <to_call_history_from>: Use
3292 TARGET_DEFAULT_NORETURN.
3294 2014-02-19 Tom Tromey <tromey@redhat.com>
3296 * target-delegates.c: Rebuild.
3297 * target.c (target_call_history_range): Unconditionally delegate.
3298 * target.h (struct target_ops) <to_call_history_range>: Use
3299 TARGET_DEFAULT_NORETURN.
3301 2014-02-19 Tom Tromey <tromey@redhat.com>
3303 * target-delegates.c: Rebuild.
3304 * target.c (target_verify_memory): Unconditionally delegate.
3305 * target.h (struct target_ops) <to_verify_memory>: Use
3306 TARGET_DEFAULT_NORETURN.
3308 2014-02-19 Tom Tromey <tromey@redhat.com>
3310 * target-delegates.c: Rebuild.
3311 * target.c (target_core_of_thread): Unconditionally delegate.
3312 * target.h (struct target_ops) <to_core_of_thread>: Use
3313 TARGET_DEFAULT_RETURN.
3315 2014-02-19 Tom Tromey <tromey@redhat.com>
3317 * target-delegates.c: Rebuild.
3318 * target.c (target_flash_done): Unconditionally delegate.
3319 * target.h (struct target_ops) <to_flash_done>: Use
3320 TARGET_DEFAULT_NORETURN.
3322 2014-02-19 Tom Tromey <tromey@redhat.com>
3324 * target-delegates.c: Rebuild.
3325 * target.c (target_flash_erase): Unconditionally delegate.
3326 * target.h (struct target_ops) <to_flash_erase>: Use
3327 TARGET_DEFAULT_NORETURN.
3329 2014-02-19 Tom Tromey <tromey@redhat.com>
3331 * target-delegates.c: Rebuild.
3332 * target.c (target_get_section_table): Unconditionally delegate.
3333 * target.h (struct target_ops) <to_get_section_table>: Use
3334 TARGET_DEFAULT_RETURN.
3336 2014-02-19 Tom Tromey <tromey@redhat.com>
3338 * target-delegates.c: Rebuild.
3339 * target.c (target_pid_to_str): Unconditionally delegate.
3340 (init_dummy_target): Don't initialize to_pid_to_str.
3341 (default_pid_to_str): Rename from dummy_pid_to_str.
3342 * target.h (struct target_ops) <to_pid_to_str>: Use
3343 TARGET_DEFAULT_FUNC.
3345 2014-02-19 Tom Tromey <tromey@redhat.com>
3347 * target-delegates.c: Rebuild.
3348 * target.c (target_find_new_threads): Unconditionally delegate.
3349 * target.h (struct target_ops) <to_find_new_threads>: Use
3350 TARGET_DEFAULT_RETURN.
3352 2014-02-19 Tom Tromey <tromey@redhat.com>
3354 * target-delegates.c: Rebuild.
3355 * target.c (target_program_signals): Unconditionally delegate.
3356 * target.h (struct target_ops) <to_program_signals>: Use
3357 TARGET_DEFAULT_IGNORE.
3359 2014-02-19 Tom Tromey <tromey@redhat.com>
3361 * target-delegates.c: Rebuild.
3362 * target.c (target_pass_signals): Unconditionally delegate.
3363 * target.h (struct target_ops) <to_pass_signals>: Use
3364 TARGET_DEFAULT_IGNORE.
3366 2014-02-19 Tom Tromey <tromey@redhat.com>
3368 * target-delegates.c: Rebuild.
3369 * target.c (default_mourn_inferior): New function.
3370 (target_mourn_inferior): Unconditionally delegate.
3371 * target.h (struct target_ops) <to_mourn_inferior>: Use
3372 TARGET_DEFAULT_FUNC.
3374 2014-02-19 Tom Tromey <tromey@redhat.com>
3376 * target-delegates.c: Rebuild.
3377 * target.c (default_follow_fork): New function.
3378 (target_follow_fork): Unconditionally delegate.
3379 * target.h (struct target_ops) <to_follow_fork>: Use
3380 TARGET_DEFAULT_FUNC.
3382 2014-02-19 Tom Tromey <tromey@redhat.com>
3384 * target-delegates.c: Rebuild.
3385 * target.c (target_kill): Unconditionally delegate.
3386 * target.h (struct target_ops) <to_kill>: Use
3387 TARGET_DEFAULT_NORETURN.
3389 2014-02-19 Tom Tromey <tromey@redhat.com>
3391 * target-delegates.c: Rebuild.
3392 * target.c (target_masked_watch_num_registers): Unconditionally
3394 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3395 Use TARGET_DEFAULT_RETURN.
3397 2014-02-19 Tom Tromey <tromey@redhat.com>
3399 * target-delegates.c: Rebuild.
3400 * target.c (target_remove_mask_watchpoint): Unconditionally
3402 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3403 TARGET_DEFAULT_RETURN.
3405 2014-02-19 Tom Tromey <tromey@redhat.com>
3407 * target-delegates.c: Rebuild.
3408 * target.c (target_insert_mask_watchpoint): Unconditionally
3410 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3411 TARGET_DEFAULT_RETURN.
3413 2014-02-19 Tom Tromey <tromey@redhat.com>
3415 * target-delegates.c: Rebuild.
3416 * target.c (target_ranged_break_num_registers): Unconditionally
3418 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3419 Use TARGET_DEFAULT_RETURN.
3421 2014-02-19 Tom Tromey <tromey@redhat.com>
3423 * target-delegates.c: Rebuild.
3424 * target.c (target_fetch_registers): Unconditionally delegate.
3425 * target.h (struct target_ops) <to_fetch_registers>: Use
3426 TARGET_DEFAULT_NORETURN.
3428 2014-02-19 Tom Tromey <tromey@redhat.com>
3430 * target-delegates.c: Rebuild.
3431 * target.c (update_current_target): Don't inherit or default
3433 * target.h (struct target_ops) <to_stop>: Use
3434 TARGET_DEFAULT_IGNORE.
3436 2014-02-19 Tom Tromey <tromey@redhat.com>
3438 * target-delegates.c: Rebuild.
3439 * target.c (update_current_target): Don't inherit or default
3440 to_can_run_breakpoint_commands.
3441 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3442 Use TARGET_DEFAULT_RETURN.
3444 2014-02-19 Tom Tromey <tromey@redhat.com>
3446 * target-delegates.c: Rebuild.
3447 * target.c (update_current_target): Don't inherit or default
3448 to_supports_evaluation_of_breakpoint_conditions.
3449 * target.h (struct target_ops)
3450 <to_supports_evaluation_of_breakpoint_conditions>: Use
3451 TARGET_DEFAULT_RETURN.
3453 2014-02-19 Tom Tromey <tromey@redhat.com>
3455 * target-delegates.c: Rebuild.
3456 * target.c (update_current_target): Don't inherit or default
3457 to_augmented_libraries_svr4_read.
3458 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3459 Use TARGET_DEFAULT_RETURN.
3461 2014-02-19 Tom Tromey <tromey@redhat.com>
3463 * target-delegates.c: Rebuild.
3464 * target.c (update_current_target): Don't inherit or default
3466 * target.h (struct target_ops) <to_can_use_agent>: Use
3467 TARGET_DEFAULT_RETURN.
3469 2014-02-19 Tom Tromey <tromey@redhat.com>
3471 * target-delegates.c: Rebuild.
3472 * target.c (update_current_target): Don't inherit or default
3474 * target.h (struct target_ops) <to_use_agent>: Use
3475 TARGET_DEFAULT_NORETURN.
3477 2014-02-19 Tom Tromey <tromey@redhat.com>
3479 * target-delegates.c: Rebuild.
3480 * target.c (update_current_target): Don't inherit or default
3482 (return_null): Remove.
3483 * target.h (struct target_ops) <to_traceframe_info>: Use
3484 TARGET_DEFAULT_RETURN.
3486 2014-02-19 Tom Tromey <tromey@redhat.com>
3488 * target-delegates.c: Rebuild.
3489 * target.c (update_current_target): Don't inherit or default
3490 to_static_tracepoint_markers_by_strid.
3491 * target.h (struct target_ops)
3492 <to_static_tracepoint_markers_by_strid>: Use
3493 TARGET_DEFAULT_NORETURN.
3495 2014-02-19 Tom Tromey <tromey@redhat.com>
3497 * target-delegates.c: Rebuild.
3498 * target.c (update_current_target): Don't inherit or default
3499 to_static_tracepoint_marker_at.
3500 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3501 Use TARGET_DEFAULT_RETURN.
3503 2014-02-19 Tom Tromey <tromey@redhat.com>
3505 * target-delegates.c: Rebuild.
3506 * target.c (update_current_target): Don't inherit or default
3508 * target.h (struct target_ops) <to_set_permissions>: Use
3509 TARGET_DEFAULT_IGNORE.
3511 2014-02-19 Tom Tromey <tromey@redhat.com>
3513 * target-delegates.c: Rebuild.
3514 * target.c (update_current_target): Don't inherit or default
3516 * target.h (struct target_ops) <to_get_tib_address>: Use
3517 TARGET_DEFAULT_NORETURN.
3519 2014-02-19 Tom Tromey <tromey@redhat.com>
3521 * target-delegates.c: Rebuild.
3522 * target.c (update_current_target): Don't inherit or default
3524 * target.h (struct target_ops) <to_set_trace_notes>: Use
3525 TARGET_DEFAULT_RETURN.
3527 2014-02-19 Tom Tromey <tromey@redhat.com>
3529 * target-delegates.c: Rebuild.
3530 * target.c (update_current_target): Don't initialize
3531 to_set_trace_buffer_size.
3532 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3533 TARGET_DEFAULT_IGNORE.
3535 2014-02-19 Tom Tromey <tromey@redhat.com>
3537 * target-delegates.c: Rebuild.
3538 * target.c (update_current_target): Don't inherit or default
3539 to_set_circular_trace_buffer.
3540 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3541 TARGET_DEFAULT_IGNORE.
3543 2014-02-19 Tom Tromey <tromey@redhat.com>
3545 * target-delegates.c: Rebuild.
3546 * target.c (update_current_target): Don't inherit or default
3547 to_set_disconnected_tracing.
3548 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3549 TARGET_DEFAULT_IGNORE.
3551 2014-02-19 Tom Tromey <tromey@redhat.com>
3553 * target-delegates.c: Rebuild.
3554 * target.c (update_current_target): Don't inherit or default
3555 to_get_min_fast_tracepoint_insn_len.
3556 (return_minus_one): Remove.
3557 * target.h (struct target_ops)
3558 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
3560 2014-02-19 Tom Tromey <tromey@redhat.com>
3562 * target-delegates.c: Rebuild.
3563 * target.c (update_current_target): Don't inherit or default
3564 to_get_raw_trace_data.
3565 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3566 TARGET_DEFAULT_NORETURN.
3568 2014-02-19 Tom Tromey <tromey@redhat.com>
3570 * target-delegates.c: Rebuild.
3571 * target.c (update_current_target): Don't inherit or default
3572 to_upload_trace_state_variables.
3573 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3574 Use TARGET_DEFAULT_RETURN.
3576 2014-02-19 Tom Tromey <tromey@redhat.com>
3578 * target-delegates.c: Rebuild.
3579 * target.c (update_current_target): Don't inherit or default
3580 to_upload_tracepoints.
3581 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3582 TARGET_DEFAULT_RETURN.
3584 2014-02-19 Tom Tromey <tromey@redhat.com>
3586 * target-delegates.c: Rebuild.
3587 * target.c (update_current_target): Don't inherit or default
3589 * target.h (struct target_ops) <to_save_trace_data>: Use
3590 TARGET_DEFAULT_NORETURN.
3592 2014-02-19 Tom Tromey <tromey@redhat.com>
3594 * target-delegates.c: Rebuild.
3595 * target.c (update_current_target): Don't inherit or default
3596 to_get_trace_state_variable_value.
3597 * target.h (struct target_ops)
3598 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3600 2014-02-19 Tom Tromey <tromey@redhat.com>
3602 * target-delegates.c: Rebuild.
3603 * target.c (update_current_target): Don't inherit or default
3605 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
3607 2014-02-19 Tom Tromey <tromey@redhat.com>
3609 * target-delegates.c: Rebuild.
3610 * target.c (update_current_target): Don't inherit or default
3612 * target.h (struct target_ops) <to_trace_stop>: Use
3613 TARGET_DEFAULT_NORETURN.
3615 2014-02-19 Tom Tromey <tromey@redhat.com>
3617 * target-delegates.c: Rebuild.
3618 * target.c (update_current_target): Don't inherit or default
3619 to_get_tracepoint_status.
3620 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3621 TARGET_DEFAULT_NORETURN.
3623 2014-02-19 Tom Tromey <tromey@redhat.com>
3625 * target-delegates.c: Rebuild.
3626 * target.c (update_current_target): Don't inherit or default
3627 to_get_trace_status.
3628 * target.h (struct target_ops) <to_get_trace_status>: Use
3629 TARGET_DEFAULT_RETURN.
3631 2014-02-19 Tom Tromey <tromey@redhat.com>
3633 * target-delegates.c: Rebuild.
3634 * target.c (update_current_target): Don't inherit or default
3636 * target.h (struct target_ops) <to_trace_start>: Use
3637 TARGET_DEFAULT_NORETURN.
3639 2014-02-19 Tom Tromey <tromey@redhat.com>
3641 * target-delegates.c: Rebuild.
3642 * target.c (update_current_target): Don't inherit or default
3643 to_trace_set_readonly_regions.
3644 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3645 Use TARGET_DEFAULT_NORETURN.
3647 2014-02-19 Tom Tromey <tromey@redhat.com>
3649 * target-delegates.c: Rebuild.
3650 * target.c (update_current_target): Don't inherit or default
3651 to_disable_tracepoint.
3652 * target.h (struct target_ops) <to_disable_tracepoint>: Use
3653 TARGET_DEFAULT_NORETURN.
3655 2014-02-19 Tom Tromey <tromey@redhat.com>
3657 * target-delegates.c: Rebuild.
3658 * target.c (update_current_target): Don't inherit or default
3659 to_enable_tracepoint.
3660 * target.h (struct target_ops) <to_enable_tracepoint>: Use
3661 TARGET_DEFAULT_NORETURN.
3663 2014-02-19 Tom Tromey <tromey@redhat.com>
3665 * target-delegates.c: Rebuild.
3666 * target.c (update_current_target): Don't inherit or default
3667 to_download_trace_state_variable.
3668 * target.h (struct target_ops) <to_download_trace_state_variable>:
3669 Use TARGET_DEFAULT_NORETURN.
3671 2014-02-19 Tom Tromey <tromey@redhat.com>
3673 * target-delegates.c: Rebuild.
3674 * target.c (update_current_target): Don't inherit or default
3675 to_can_download_tracepoint.
3676 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3677 TARGET_DEFAULT_RETURN.
3679 2014-02-19 Tom Tromey <tromey@redhat.com>
3681 * target-delegates.c: Rebuild.
3682 * target.c (update_current_target): Don't inherit or default
3683 to_download_tracepoint.
3684 * target.h (struct target_ops) <to_download_tracepoint>: Use
3685 TARGET_DEFAULT_NORETURN.
3687 2014-02-19 Tom Tromey <tromey@redhat.com>
3689 * target-delegates.c: Rebuild.
3690 * target.c (update_current_target): Don't inherit or default
3692 * target.h (struct target_ops) <to_trace_init>: Use
3693 TARGET_DEFAULT_RETURN.
3695 2014-02-19 Tom Tromey <tromey@redhat.com>
3697 * target-delegates.c: Rebuild.
3698 * target.c (update_current_target): Don't inherit or default
3699 to_supports_string_tracing.
3700 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3701 TARGET_DEFAULT_RETURN.
3703 2014-02-19 Tom Tromey <tromey@redhat.com>
3705 * target-delegates.c: Rebuild.
3706 * target.c (update_current_target): Don't inherit or default
3707 to_supports_enable_disable_tracepoint.
3708 * target.h (struct target_ops)
3709 <to_supports_enable_disable_tracepoint>: Use
3710 TARGET_DEFAULT_RETURN.
3712 2014-02-19 Tom Tromey <tromey@redhat.com>
3714 * target-delegates.c: Rebuild.
3715 * target.c (update_current_target): Don't inherit or default
3716 to_supports_multi_process.
3717 * target.h (struct target_ops) <to_supports_multi_process>: Use
3718 TARGET_DEFAULT_RETURN.
3720 2014-02-19 Tom Tromey <tromey@redhat.com>
3722 * target-delegates.c: Rebuild.
3723 * target.c (update_current_target): Don't inherit or default
3724 to_get_ada_task_ptid.
3725 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3726 TARGET_DEFAULT_FUNC.
3728 2014-02-19 Tom Tromey <tromey@redhat.com>
3730 * target-delegates.c: Rebuild.
3731 * target.c (update_current_target): Don't inherit or default
3732 to_thread_architecture.
3733 * target.h (struct target_ops) <to_thread_architecture>: Use
3734 TARGET_DEFAULT_FUNC.
3736 2014-02-19 Tom Tromey <tromey@redhat.com>
3738 * target-delegates.c: Rebuild.
3739 * target.c (update_current_target): Don't inherit or default
3740 to_execution_direction.
3741 * target.h (struct target_ops) <to_execution_direction>: Use
3742 TARGET_DEFAULT_FUNC.
3744 2014-02-19 Tom Tromey <tromey@redhat.com>
3746 * target-delegates.c: Rebuild.
3747 * target.c (update_current_target): Don't inherit or default
3748 to_can_execute_reverse.
3749 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3750 TARGET_DEFAULT_RETURN.
3751 (target_can_execute_reverse): Unconditionally delegate.
3753 2014-02-19 Tom Tromey <tromey@redhat.com>
3755 * target-delegates.c: Rebuild.
3756 * target.c (update_current_target): Don't inherit or default
3758 (dummy_goto_bookmark): Remove.
3759 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3760 * target.h (struct target_ops) <to_goto_bookmark>: Use
3761 TARGET_DEFAULT_NORETURN.
3763 2014-02-19 Tom Tromey <tromey@redhat.com>
3765 * target-delegates.c: Rebuild.
3766 * target.c (update_current_target): Don't inherit or default
3768 (dummy_get_bookmark): Remove.
3769 (init_dummy_target): Don't inherit or default to_get_bookmark.
3770 * target.h (struct target_ops) <to_get_bookmark>: Use
3771 TARGET_DEFAULT_NORETURN
3773 2014-02-19 Tom Tromey <tromey@redhat.com>
3775 * target-delegates.c: Rebuild.
3776 * target.c (update_current_target): Don't inherit or default
3777 to_make_corefile_notes.
3778 (init_dummy_target): Don't initialize to_make_corefile_notes.
3779 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3780 TARGET_DEFAULT_FUNC.
3782 2014-02-19 Tom Tromey <tromey@redhat.com>
3784 * target-delegates.c: Rebuild.
3785 * target.c (update_current_target): Don't inherit or default
3786 to_find_memory_regions.
3787 (init_dummy_target): Don't initialize to_find_memory_regions.
3788 * target.h (struct target_ops) <to_find_memory_regions>: Use
3789 TARGET_DEFAULT_FUNC.
3791 2014-02-19 Tom Tromey <tromey@redhat.com>
3793 * target-delegates.c: Rebuild.
3794 * target.c (update_current_target): Don't inherit or default
3796 * target.h (struct target_ops) <to_log_command>: Use
3797 TARGET_DEFAULT_IGNORE.
3798 (target_log_command): Unconditionally delegate.
3800 2014-02-19 Tom Tromey <tromey@redhat.com>
3802 * target-delegates.c: Rebuild.
3803 * target.c (update_current_target): Don't inherit or default
3804 to_pid_to_exec_file.
3805 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3806 TARGET_DEFAULT_RETURN.
3808 2014-02-19 Tom Tromey <tromey@redhat.com>
3810 * target-delegates.c: Rebuild.
3811 * target.c (update_current_target): Don't inherit or default
3813 (target_thread_name): Unconditionally delegate.
3814 * target.h (struct target_ops) <to_thread_name>: Use
3815 TARGET_DEFAULT_RETURN.
3817 2014-02-19 Tom Tromey <tromey@redhat.com>
3819 * target-delegates.c: Rebuild.
3820 * target.c (update_current_target): Don't inherit or default
3821 to_extra_thread_info.
3822 * target.h (struct target_ops) <to_extra_thread_info>: Use
3823 TARGET_DEFAULT_RETURN.
3825 2014-02-19 Tom Tromey <tromey@redhat.com>
3827 * target-delegates.c: Rebuild.
3828 * target.c (update_current_target): Don't inherit or default
3830 * target.h (struct target_ops) <to_has_exited>: Use
3831 TARGET_DEFAULT_RETURN..
3833 2014-02-19 Tom Tromey <tromey@redhat.com>
3835 * target-delegates.c: Rebuild.
3836 * target.c (update_current_target): Don't inherit or default
3837 to_set_syscall_catchpoint.
3838 (return_one): Remove.
3839 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3840 TARGET_DEFAULT_RETURN.
3842 2014-02-19 Tom Tromey <tromey@redhat.com>
3844 * target-delegates.c: Rebuild.
3845 * target.c (update_current_target): Don't inherit or default
3846 to_insert_exec_catchpoint.
3847 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3848 TARGET_DEFAULT_RETURN.
3850 2014-01-08 Tom Tromey <tromey@redhat.com>
3852 * target-delegates.c: Rebuild.
3853 * target.c (update_current_target): Don't inherit or default
3854 to_insert_exec_catchpoint.
3855 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3856 TARGET_DEFAULT_RETURN.
3858 2014-02-19 Tom Tromey <tromey@redhat.com>
3860 * target-delegates.c: Rebuild.
3861 * target.c (update_current_target): Don't inherit or default
3862 to_remove_vfork_catchpoint.
3863 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3864 TARGET_DEFAULT_RETURN.
3866 2014-02-19 Tom Tromey <tromey@redhat.com>
3868 * target-delegates.c: Rebuild.
3869 * target.c (update_current_target): Don't inherit or default
3870 to_insert_vfork_catchpoint.
3871 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3872 TARGET_DEFAULT_RETURN.
3874 2014-02-19 Tom Tromey <tromey@redhat.com>
3876 * target-delegates.c: Rebuild.
3877 * target.c (update_current_target): Don't inherit or default
3878 to_remove_fork_catchpoint.
3879 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3880 TARGET_DEFAULT_RETURN.
3882 2014-02-19 Tom Tromey <tromey@redhat.com>
3884 * target-delegates.c: Rebuild.
3885 * target.c (update_current_target): Don't inherit or default
3886 to_insert_fork_catchpoint.
3887 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3888 TARGET_DEFAULT_RETURN.
3890 2014-02-19 Tom Tromey <tromey@redhat.com>
3892 * target-delegates.c: Rebuild.
3893 * target.c (update_current_target): Don't inherit or default
3894 to_post_startup_inferior.
3895 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3896 TARGET_DEFAULT_IGNORE.
3898 2014-02-19 Tom Tromey <tromey@redhat.com>
3900 * target-delegates.c: Rebuild.
3901 * target.c (update_current_target): Don't inherit or default
3903 * target.h (struct target_ops) <to_load>: Use
3904 TARGET_DEFAULT_NORETURN.
3906 2014-02-19 Tom Tromey <tromey@redhat.com>
3908 * target-delegates.c: Rebuild.
3909 * target.c (update_current_target): Don't inherit or default
3911 * target.h (struct target_ops) <to_terminal_info>: Use
3912 TARGET_DEFAULT_FUNC.
3914 2014-02-19 Tom Tromey <tromey@redhat.com>
3916 * target-delegates.c: Rebuild.
3917 * target.c (update_current_target): Don't inherit or default
3918 to_terminal_save_ours.
3919 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3920 TARGET_DEFAULT_IGNORE.
3922 2014-02-19 Tom Tromey <tromey@redhat.com>
3924 * target-delegates.c: Rebuild.
3925 * target.c (update_current_target): Don't inherit or default
3927 * target.h (struct target_ops) <to_terminal_ours>: Use
3928 TARGET_DEFAULT_IGNORE.
3930 2014-02-19 Tom Tromey <tromey@redhat.com>
3932 * target-delegates.c: Rebuild.
3933 * target.c (update_current_target): Don't inherit or default
3934 to_terminal_ours_for_output.
3935 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3936 TARGET_DEFAULT_IGNORE.
3938 2014-02-19 Tom Tromey <tromey@redhat.com>
3940 * target-delegates.c: Rebuild.
3941 * target.c (update_current_target): Don't inherit or default
3942 to_terminal_inferior.
3943 * target.h (struct target_ops) <to_terminal_inferior>: Use
3944 TARGET_DEFAULT_IGNORE.
3946 2014-02-19 Tom Tromey <tromey@redhat.com>
3948 * target-delegates.c: Rebuild.
3949 * target.c (update_current_target): Don't inherit or default
3951 * target.h (struct target_ops) <to_terminal_init>: Use
3952 TARGET_DEFAULT_IGNORE.
3954 2014-02-19 Tom Tromey <tromey@redhat.com>
3956 * target-delegates.c: Rebuild.
3957 * target.c (update_current_target): Don't inherit or default
3958 to_can_accel_watchpoint_condition.
3959 * target.h (struct target_ops)
3960 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
3962 2014-02-19 Tom Tromey <tromey@redhat.com>
3964 * target-delegates.c: Rebuild.
3965 * target.c (update_current_target): Don't inherit or default
3966 to_region_ok_for_hw_watchpoint.
3967 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3968 Use TARGET_DEFAULT_FUNC.
3970 2014-02-19 Tom Tromey <tromey@redhat.com>
3972 * target-delegates.c: Rebuild.
3973 * target.c (update_current_target): Don't inherit or default
3974 to_watchpoint_addr_within_range.
3975 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
3976 Use TARGET_DEFAULT_FUNC.
3978 2014-02-19 Tom Tromey <tromey@redhat.com>
3980 * target-delegates.c: Rebuild.
3981 * target.c (update_current_target): Don't inherit or default
3982 to_remove_watchpoint.
3983 * target.h (struct target_ops) <to_remove_watchpoint>: Use
3984 TARGET_DEFAULT_NORETURN.
3986 2014-02-19 Tom Tromey <tromey@redhat.com>
3988 * target-delegates.c: Rebuild.
3989 * target.c (update_current_target): Don't inherit or default
3990 to_insert_watchpoint.
3991 * target.h (struct target_ops) <to_insert_watchpoint>: Use
3992 TARGET_DEFAULT_RETURN.
3994 2014-02-19 Tom Tromey <tromey@redhat.com>
3996 * target-delegates.c: Rebuild.
3997 * target.c (update_current_target): Don't inherit or default
3998 to_remove_hw_breakpoint.
3999 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4000 TARGET_DEFAULT_RETURN.
4002 2014-02-19 Tom Tromey <tromey@redhat.com>
4004 * target-delegates.c: Rebuild.
4005 * target.c (update_current_target): Don't inherit or default
4006 to_insert_hw_breakpoint.
4007 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4008 TARGET_DEFAULT_RETURN.
4010 2014-02-19 Tom Tromey <tromey@redhat.com>
4012 * target-delegates.c: Rebuild.
4013 * target.c (update_current_target): Don't inherit or default
4014 to_can_use_hw_breakpoint.
4015 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4016 TARGET_DEFAULT_RETURN.
4018 2014-02-19 Tom Tromey <tromey@redhat.com>
4020 * target-delegates.c: Rebuild.
4021 * target.c (update_current_target): Don't inherit or default
4023 * target.h (struct target_ops) <to_files_info>: Use
4024 TARGET_DEFAULT_IGNORE.
4026 2014-02-19 Tom Tromey <tromey@redhat.com>
4028 * target-delegates.c: Rebuild.
4029 * target.c (update_current_target): Don't inherit or default
4031 * target.h (struct target_ops) <to_store>: Use
4032 TARGET_DEFAULT_NORETURN.
4034 2014-02-19 Tom Tromey <tromey@redhat.com>
4036 * target-delegates.c: Rebuild.
4037 * target.c (update_current_target): Don't inherit or default
4039 * target.h (struct target_ops) <to_post_attach>: Use
4040 TARGET_DEFAULT_IGNORE.
4042 2014-02-19 Tom Tromey <tromey@redhat.com>
4044 * target-delegates.c: Rebuild.
4045 * target.c (update_current_target): Don't inherit or default
4047 (default_rcmd): New function.
4048 (do_monitor_command): Unconditionally delegate.
4049 * target.h (struct target_ops) <to_rmcd>: Use
4050 TARGET_DEFAULT_FUNC.
4052 2014-02-19 Tom Tromey <tromey@redhat.com>
4054 * target-delegates.c: Rebuild.
4055 * target.c (init_dummy_target): Don't initialize to_attach.
4056 (target_attach): Unconditionally delegate.
4057 * target.h (struct target_ops) <to_attach>: Use
4058 TARGET_DEFAULT_FUNC.
4060 2014-02-19 Tom Tromey <tromey@redhat.com>
4062 * target-delegates.c: Rebuild.
4063 * target.c (target_detach): Unconditionally delegate.
4064 (init_dummy_target): Don't initialize to_detach.
4065 * target.h (struct target_ops) <to_detach>: Use
4066 TARGET_DEFAULT_IGNORE.
4068 2014-02-19 Tom Tromey <tromey@redhat.com>
4070 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4072 (target_augmented_libraries_svr4_read): Add argument.
4073 * target.c (update_current_target): Update.
4074 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4077 2014-02-19 Tom Tromey <tromey@redhat.com>
4079 * target.h (struct target_ops) <to_call_history_range>: Add
4081 * target.c (target_call_history_range): Add argument.
4082 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4084 (record_btrace_call_history_from): Update.
4086 2014-02-19 Tom Tromey <tromey@redhat.com>
4088 * target.h (struct target_ops) <to_call_history_from>: Add
4090 * target.c (target_call_history_from): Add argument.
4091 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4094 2014-02-19 Tom Tromey <tromey@redhat.com>
4096 * target.h (struct target_ops) <to_call_history>: Add argument.
4097 * target.c (target_call_history): Add argument.
4098 * record-btrace.c (record_btrace_call_history): Add 'self'
4101 2014-02-19 Tom Tromey <tromey@redhat.com>
4103 * target.h (struct target_ops) <to_insn_history_range>: Add
4105 * target.c (target_insn_history_range): Add argument.
4106 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4108 (record_btrace_insn_history_from): Update.
4110 2014-02-19 Tom Tromey <tromey@redhat.com>
4112 * target.h (struct target_ops) <to_insn_history_from>: Add
4114 * target.c (target_insn_history_from): Add argument.
4115 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4118 2014-02-19 Tom Tromey <tromey@redhat.com>
4120 * target.h (struct target_ops) <to_insn_history>: Add argument.
4121 * target.c (target_insn_history): Add argument.
4122 * record-btrace.c (record_btrace_insn_history): Add 'self'
4125 2014-02-19 Tom Tromey <tromey@redhat.com>
4127 * target.h (struct target_ops) <to_goto_record>: Add argument.
4128 * target.c (target_goto_record): Add argument.
4129 * record-full.c (record_full_goto): Add 'self' argument.
4130 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4132 2014-02-19 Tom Tromey <tromey@redhat.com>
4134 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4135 * target.c (target_goto_record_end): Add argument.
4136 * record-full.c (record_full_goto_end): Add 'self' argument.
4137 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4139 2014-02-19 Tom Tromey <tromey@redhat.com>
4141 * target.h (struct target_ops) <to_goto_record_begin>: Add
4143 * target.c (target_goto_record_begin): Add argument.
4144 * record-full.c (record_full_goto_begin): Add 'self' argument.
4145 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4148 2014-02-19 Tom Tromey <tromey@redhat.com>
4150 * target.h (struct target_ops) <to_record_is_replaying>: Add
4152 * target.c (target_record_is_replaying): Add argument.
4153 * record-full.c (record_full_is_replaying): Add 'self' argument.
4154 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4156 (record_btrace_xfer_partial, record_btrace_store_registers)
4157 (record_btrace_prepare_to_store, record_btrace_resume)
4158 (record_btrace_wait, record_btrace_decr_pc_after_break)
4159 (record_btrace_find_new_threads, record_btrace_thread_alive):
4162 2014-02-19 Tom Tromey <tromey@redhat.com>
4164 * target.h (struct target_ops) <to_delete_record>: Add argument.
4165 * target.c (target_delete_record): Add argument.
4166 * record-full.c (record_full_delete): Add 'self' argument.
4168 2014-02-19 Tom Tromey <tromey@redhat.com>
4170 * target.h (struct target_ops) <to_save_record>: Add argument.
4171 * target.c (target_save_record): Add argument.
4172 * record-full.c (record_full_save): Add 'self' argument.
4173 (record_full_save): Add 'self' argument.
4175 2014-02-19 Tom Tromey <tromey@redhat.com>
4177 * target.h (struct target_ops) <to_info_record>: Add argument.
4178 * target.c (target_info_record): Add argument.
4179 * record.c (info_record_command): Add argument.
4180 * record-full.c (record_full_info): Add 'self' argument.
4181 * record-btrace.c (record_btrace_info): Add 'self' argument.
4183 2014-02-19 Tom Tromey <tromey@redhat.com>
4185 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4186 * target.c (target_stop_recording): Add argument.
4187 * record.c (record_stop): Add argument.
4188 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4191 2014-02-19 Tom Tromey <tromey@redhat.com>
4193 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4194 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4195 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4197 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4198 (_initialize_amd64_linux_nat): Use it.
4199 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4200 (_initialize_i386_linux_nat): Use it.
4202 2014-02-19 Tom Tromey <tromey@redhat.com>
4204 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4205 * target.c (target_teardown_btrace): Add argument.
4206 * remote.c (remote_teardown_btrace): Add 'self' argument.
4207 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4209 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4212 2014-02-19 Tom Tromey <tromey@redhat.com>
4214 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4215 * target.c (target_disable_btrace): Add argument.
4216 * remote.c (remote_disable_btrace): Add 'self' argument.
4217 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4219 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4222 2014-02-19 Tom Tromey <tromey@redhat.com>
4224 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4225 * target.c (target_enable_btrace): Add argument.
4226 * remote.c (remote_enable_btrace): Add 'self' argument.
4227 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4229 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4232 2014-02-19 Tom Tromey <tromey@redhat.com>
4234 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4235 (target_can_use_agent): Add argument.
4236 * target.c (update_current_target): Update.
4237 * remote.c (remote_can_use_agent): Add 'self' argument.
4238 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4240 2014-02-19 Tom Tromey <tromey@redhat.com>
4242 * target.h (struct target_ops) <to_use_agent>: Add argument.
4243 (target_use_agent): Add argument.
4244 * target.c (update_current_target): Update.
4245 * remote.c (remote_use_agent): Add 'self' argument.
4246 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4248 2014-02-19 Tom Tromey <tromey@redhat.com>
4250 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4251 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4252 (target_traceframe_info): Add argument.
4253 * target.c (update_current_target): Update.
4254 * remote.c (remote_traceframe_info): Add 'self' argument.
4255 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4257 2014-02-19 Tom Tromey <tromey@redhat.com>
4259 * target.h (target_static_tracepoint_markers_by_strid): Add
4261 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4263 * target.c (update_current_target): Update.
4264 * remote.c (struct target_ops)
4265 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4266 * linux-nat.c (struct target_ops)
4267 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4269 2014-02-19 Tom Tromey <tromey@redhat.com>
4271 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4273 (target_static_tracepoint_marker_at): Add argument.
4274 * target.c (update_current_target): Update.
4275 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4278 2014-02-19 Tom Tromey <tromey@redhat.com>
4280 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4281 (target_set_permissions): Add argument.
4282 * target.c (update_current_target): Update.
4283 * remote.c (remote_set_permissions): Add 'self' argument.
4284 (remote_start_remote): Update.
4286 2014-02-19 Tom Tromey <tromey@redhat.com>
4288 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4289 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4290 (target_get_tib_address): Add argument.
4291 * target.c (update_current_target): Update.
4292 * remote.c (remote_get_tib_address): Add 'self' argument.
4294 2014-02-19 Tom Tromey <tromey@redhat.com>
4296 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4297 (target_set_trace_notes): Add argument.
4298 * target.c (update_current_target): Update.
4299 * remote.c (remote_set_trace_notes): Add 'self' argument.
4301 2014-02-19 Tom Tromey <tromey@redhat.com>
4303 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4305 (target_set_trace_buffer_size): Add argument.
4306 * target.c (update_current_target): Update.
4307 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4309 2014-02-19 Tom Tromey <tromey@redhat.com>
4311 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4313 (target_set_circular_trace_buffer): Add argument.
4314 * target.c (update_current_target): Update.
4315 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4318 2014-02-19 Tom Tromey <tromey@redhat.com>
4320 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4322 (target_set_disconnected_tracing): Add argument.
4323 * target.c (update_current_target): Update.
4324 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4326 2014-02-19 Tom Tromey <tromey@redhat.com>
4328 * target.h (struct target_ops)
4329 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4330 (target_get_min_fast_tracepoint_insn_len): Add argument.
4331 * target.c (update_current_target): Update.
4332 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4335 2014-02-19 Tom Tromey <tromey@redhat.com>
4337 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4339 (target_get_raw_trace_data): Add argument.
4340 * target.c (update_current_target): Update.
4341 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4343 2014-02-19 Tom Tromey <tromey@redhat.com>
4345 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4347 (target_upload_trace_state_variables): Add argument.
4348 * target.c (update_current_target): Update.
4349 * remote.c (remote_upload_trace_state_variables): Add 'self'
4351 (remote_start_remote): Update.
4353 2014-02-19 Tom Tromey <tromey@redhat.com>
4355 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4357 (target_upload_tracepoints): Add argument.
4358 * target.c (update_current_target): Update.
4359 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4360 (remote_start_remote): Update.
4362 2014-02-19 Tom Tromey <tromey@redhat.com>
4364 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4365 (target_save_trace_data): Add argument.
4366 * target.c (update_current_target): Update.
4367 * remote.c (remote_save_trace_data): Add 'self' argument.
4369 2014-02-19 Tom Tromey <tromey@redhat.com>
4371 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4373 * target.h (struct target_ops)
4374 <to_get_trace_state_variable_value>: Add argument.
4375 (target_get_trace_state_variable_value): Add argument.
4376 * target.c (update_current_target): Update.
4377 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4379 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4381 2014-02-19 Tom Tromey <tromey@redhat.com>
4383 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4384 * target.h (struct target_ops) <to_trace_find>: Add argument.
4385 (target_trace_find): Add argument.
4386 * target.c (update_current_target): Update.
4387 * remote.c (remote_trace_find): Add 'self' argument.
4388 * ctf.c (ctf_trace_find): Add 'self' argument.
4390 2014-02-19 Tom Tromey <tromey@redhat.com>
4392 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4393 (target_trace_stop): Add argument.
4394 * target.c (update_current_target): Update.
4395 * remote.c (remote_trace_stop): Add 'self' argument.
4397 2014-02-19 Tom Tromey <tromey@redhat.com>
4399 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4400 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4402 (target_get_tracepoint_status): Add argument.
4403 * target.c (update_current_target): Update.
4404 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4406 2014-02-19 Tom Tromey <tromey@redhat.com>
4408 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4409 * target.h (struct target_ops) <to_get_trace_status>: Add
4411 (target_get_trace_status): Add argument.
4412 * target.c (update_current_target): Update.
4413 * remote.c (remote_get_trace_status): Add 'self' argument.
4414 (remote_start_remote, remote_can_download_tracepoint): Update.
4415 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4417 2014-02-19 Tom Tromey <tromey@redhat.com>
4419 * target.h (struct target_ops) <to_trace_start>: Add argument.
4420 (target_trace_start): Add argument.
4421 * target.c (update_current_target): Update.
4422 * remote.c (remote_trace_start): Add 'self' argument.
4424 2014-02-19 Tom Tromey <tromey@redhat.com>
4426 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4428 (target_trace_set_readonly_regions): Add argument.
4429 * target.c (update_current_target): Update.
4430 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4433 2014-02-19 Tom Tromey <tromey@redhat.com>
4435 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4437 (target_disable_tracepoint): Add argument.
4438 * target.c (update_current_target): Update.
4439 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4441 2014-02-19 Tom Tromey <tromey@redhat.com>
4443 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4445 (target_enable_tracepoint): Add argument.
4446 * target.c (update_current_target): Update.
4447 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4449 2014-02-19 Tom Tromey <tromey@redhat.com>
4451 * target.h (struct target_ops) <to_download_trace_state_variable>:
4453 (target_download_trace_state_variable): Add argument.
4454 * target.c (update_current_target): Update.
4455 * remote.c (remote_download_trace_state_variable): Add 'self'
4458 2014-02-19 Tom Tromey <tromey@redhat.com>
4460 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4462 (target_can_download_tracepoint): Add argument.
4463 * target.c (update_current_target): Update.
4464 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4466 2014-02-19 Tom Tromey <tromey@redhat.com>
4468 * target.h (struct target_ops) <to_download_tracepoint>: Add
4470 (target_download_tracepoint): Add argument.
4471 * target.c (update_current_target): Update.
4472 * remote.c (remote_download_tracepoint): Add 'self' argument.
4474 2014-02-19 Tom Tromey <tromey@redhat.com>
4476 * target.h (struct target_ops) <to_trace_init>: Add argument.
4477 (target_trace_init): Add argument.
4478 * target.c (update_current_target): Update.
4479 * remote.c (remote_trace_init): Add 'self' argument.
4481 2014-02-19 Tom Tromey <tromey@redhat.com>
4483 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4484 * target.c (target_fileio_readlink): Add argument.
4485 * remote.c (remote_hostio_readlink): Add 'self' argument.
4486 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4488 2014-02-19 Tom Tromey <tromey@redhat.com>
4490 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4491 * target.c (target_fileio_unlink): Add argument.
4492 * remote.c (remote_hostio_unlink): Add 'self' argument.
4493 (remote_file_delete): Update.
4494 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4496 2014-02-19 Tom Tromey <tromey@redhat.com>
4498 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4499 * target.c (target_fileio_close): Add argument.
4500 * remote.c (remote_hostio_close): Add 'self' argument.
4501 (remote_hostio_close_cleanup): Update.
4502 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4504 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4506 2014-02-19 Tom Tromey <tromey@redhat.com>
4508 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4509 * target.c (target_fileio_pread): Add argument.
4510 * remote.c (remote_hostio_pread): Add 'self' argument.
4511 (remote_bfd_iovec_pread, remote_file_get): Update.
4512 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4514 2014-02-19 Tom Tromey <tromey@redhat.com>
4516 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4517 * target.c (target_fileio_pwrite): Add argument.
4518 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4519 (remote_file_put): Update.
4520 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4522 2014-02-19 Tom Tromey <tromey@redhat.com>
4524 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4525 * target.c (target_fileio_open): Add argument.
4526 * remote.c (remote_hostio_open): Add 'self' argument.
4527 (remote_bfd_iovec_open): Add 'self' argument.
4528 (remote_file_put): Add 'self' argument.
4529 (remote_file_get): Add 'self' argument.
4530 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4532 2014-02-19 Tom Tromey <tromey@redhat.com>
4534 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4536 (target_can_run_breakpoint_commands): Add argument.
4537 * target.c (update_current_target): Update.
4538 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4540 (remote_insert_breakpoint): Add 'self' argument.
4541 (remote_insert_hw_breakpoint): Add 'self' argument.
4542 (remote_can_run_breakpoint_commands): Add 'self' argument.
4544 2014-02-19 Tom Tromey <tromey@redhat.com>
4546 * target.h (struct target_ops)
4547 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4548 (target_supports_evaluation_of_breakpoint_conditions): Add
4550 * target.c (update_current_target): Update.
4551 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4553 (remote_insert_breakpoint): Add 'self' argument.
4554 (remote_insert_hw_breakpoint): Add 'self' argument.
4555 (remote_supports_cond_breakpoints): Add 'self' argument.
4557 2014-02-19 Tom Tromey <tromey@redhat.com>
4559 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4561 (target_supports_string_tracing): Add argument.
4562 * target.c (update_current_target): Update.
4563 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4565 2014-02-19 Tom Tromey <tromey@redhat.com>
4567 * target.h (struct target_ops)
4568 <to_supports_disable_randomization>: Add argument.
4569 * target.c (find_default_supports_disable_randomization): Add
4571 (target_supports_disable_randomization): Add argument.
4572 (find_default_supports_disable_randomization): Add 'self'
4574 * remote.c (extended_remote_supports_disable_randomization): Add
4576 (remote_supports_disable_randomization): Add 'self' argument.
4577 (extended_remote_create_inferior): Update.
4578 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4581 2014-02-19 Tom Tromey <tromey@redhat.com>
4583 * target.h (struct target_ops)
4584 <to_supports_enable_disable_tracepoint>: Add argument.
4585 (target_supports_enable_disable_tracepoint): Add argument.
4586 * target.c (update_current_target): Update.
4587 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4590 2014-02-19 Tom Tromey <tromey@redhat.com>
4592 * target.h (struct target_ops) <to_supports_multi_process>: Add
4594 (target_supports_multi_process): Add argument.
4595 * target.c (update_current_target): Update.
4596 * remote.c (remote_supports_multi_process): Add 'self' argument.
4597 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4599 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4602 2014-02-19 Tom Tromey <tromey@redhat.com>
4604 * target.h (struct target_ops) <to_execution_direction>: Add
4606 (target_execution_direction): Add argument.
4607 * target.c (default_execution_direction): Add 'self' argument.
4608 * record-full.c (record_full_execution_direction): Add 'self'
4611 2014-02-19 Tom Tromey <tromey@redhat.com>
4613 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4615 (target_can_execute_reverse): Add argument.
4616 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4617 * record-full.c (record_full_can_execute_reverse): Add 'self'
4619 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4622 2014-02-19 Tom Tromey <tromey@redhat.com>
4624 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4625 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4627 (target_get_ada_task_ptid): Add argument.
4628 * target.c (update_current_target): Update.
4629 (default_get_ada_task_ptid): Add 'self' argument.
4630 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4631 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4632 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4634 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4636 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4638 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4640 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4641 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4644 2014-02-19 Tom Tromey <tromey@redhat.com>
4646 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4647 (target_goto_bookmark): Add argument.
4648 * target.c (dummy_goto_bookmark): Add 'self' argument.
4649 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4651 2014-02-19 Tom Tromey <tromey@redhat.com>
4653 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4654 (target_get_bookmark): Add argument.
4655 * target.c (dummy_get_bookmark): Add 'self' argument.
4656 * record-full.c (record_full_get_bookmark): Add 'self' argument.
4658 2014-02-19 Tom Tromey <tromey@redhat.com>
4660 * target.h (struct target_ops) <to_make_corefile_notes>: Add
4662 (target_make_corefile_notes): Add argument.
4663 * target.c (dummy_make_corefile_notes): Add 'self' argument.
4664 * procfs.c (procfs_make_note_section): Add 'self' argument.
4665 (procfs_make_note_section): Add 'self' argument.
4666 (procfs_make_note_section): Add 'self' argument.
4667 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4669 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4670 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4671 * exec.c (exec_make_note_section): Add 'self' argument.
4672 (exec_make_note_section): Add 'self' argument.
4674 2014-02-19 Tom Tromey <tromey@redhat.com>
4676 * target.h (struct target_ops) <to_find_memory_regions>: Add
4678 (target_find_memory_regions): Add argument.
4679 * target.c (dummy_find_memory_regions): Add 'self' argument.
4680 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4681 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4682 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4683 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4684 * exec. (exec_do_find_memory_regions): New global.
4685 (exec_set_find_memory_regions): Rewrite.
4686 (exec_find_memory_regions): New function.
4687 (init_exec_ops): Use exec_find_memory_regions.
4689 2014-02-19 Tom Tromey <tromey@redhat.com>
4691 * target.h (struct target_ops) <to_supports_non_stop>: Add
4693 * target.c (find_default_supports_non_stop): Add argument.
4694 (target_supports_non_stop): Add argument.
4695 (find_default_supports_non_stop): Add 'self' argument.
4696 * remote.c (remote_supports_non_stop): Add 'self' argument.
4697 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4699 2014-02-19 Tom Tromey <tromey@redhat.com>
4701 * target.h (struct target_ops) <to_log_command>: Add argument.
4702 (target_log_command): Add argument.
4703 * serial.h (serial_log_command): Add 'self' argument.
4704 * serial.c (serial_log_command): Add 'self' argument.
4706 2014-02-19 Tom Tromey <tromey@redhat.com>
4708 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4709 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4711 (target_pid_to_exec_file): Add argument.
4712 * target.c (debug_to_pid_to_exec_file): Add argument.
4713 (update_current_target): Update.
4714 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4715 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4716 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4717 (linux_handle_extended_wait): Update.
4718 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4719 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4720 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4721 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4723 2014-02-19 Tom Tromey <tromey@redhat.com>
4725 * target.h (struct target_ops) <to_rcmd>: Add argument.
4726 (target_rcmd): Add argument.
4727 * target.c (debug_to_rcmd): Add argument.
4728 (update_current_target, do_monitor_command): Update.
4729 * remote.c (remote_rcmd): Add 'self' argument.
4730 * monitor.c (monitor_rcmd): Add 'self' argument.
4732 2014-02-19 Tom Tromey <tromey@redhat.com>
4734 * windows-nat.c (windows_stop): Add 'self' argument.
4735 * target.h (struct target_ops) <to_stop>: Add argument.
4736 * target.c (target_stop): Add argument.
4737 (debug_to_stop): Add argument.
4738 (update_current_target): Update.
4739 * remote.c (remote_stop): Add 'self' argument.
4740 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4741 (gdbsim_cntrl_c): Update.
4742 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4743 * procfs.c (procfs_stop): Add 'self' argument.
4744 * nto-procfs.c (procfs_stop): Add 'self' argument.
4745 * monitor.c (monitor_stop): Add 'self' argument.
4746 (monitor_open): Update.
4747 * linux-nat.c (linux_nat_stop): Add argument.
4748 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4749 * gnu-nat.c (gnu_stop): Add 'self' argument.
4750 * darwin-nat.c (darwin_stop): Add 'self' argument.
4752 2014-02-19 Tom Tromey <tromey@redhat.com>
4754 * target.h (struct target_ops) <to_thread_name>: Add argument.
4755 * target.c (target_thread_name): Add argument.
4756 (update_current_target): Update.
4757 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4759 2014-02-19 Tom Tromey <tromey@redhat.com>
4761 * target.h (struct target_ops) <to_extra_thread_info>: Add
4763 (target_extra_thread_info): Add argument.
4764 * target.c (update_current_target): Update.
4765 * remote.c (remote_threads_extra_info): Add 'self' argument.
4766 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4768 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4769 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4770 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4772 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4774 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4776 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4779 2014-02-19 Tom Tromey <tromey@redhat.com>
4781 * target.h (struct target_ops) <to_program_signals>: Add argument.
4782 * target.c (target_program_signals): Add argument.
4783 * remote.c (remote_program_signals): Add 'self' argument.
4785 2014-02-19 Tom Tromey <tromey@redhat.com>
4787 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4788 * target.c (target_pass_signals): Add argument.
4789 * remote.c (remote_pass_signals): Add 'self' argument.
4790 (remote_start_remote): Update.
4791 * procfs.c (procfs_pass_signals): Add 'self' argument.
4792 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4793 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4794 (linux_nat_create_inferior, linux_nat_attach): Update.
4796 2014-02-19 Tom Tromey <tromey@redhat.com>
4798 * windows-nat.c (windows_can_run): Add 'self' argument.
4799 * target.h (struct target_ops) <to_can_run>: Add argument.
4800 (target_can_run): Add argument.
4801 * target.c (debug_to_can_run): Add argument.
4802 (update_current_target): Update.
4803 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4804 * inf-child.c (inf_child_can_run): Add 'self' argument.
4805 * go32-nat.c (go32_can_run): Add 'self' argument.
4807 2014-02-19 Tom Tromey <tromey@redhat.com>
4809 * target.h (struct target_ops) <to_has_exited>: Add argument.
4810 (target_has_exited): Add argument.
4811 * target.c (debug_to_has_exited): Add argument.
4812 (update_current_target): Update.
4814 2014-02-19 Tom Tromey <tromey@redhat.com>
4816 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4818 (target_set_syscall_catchpoint): Add argument.
4819 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4821 * target.c (update_current_target): Update.
4823 2014-02-19 Tom Tromey <tromey@redhat.com>
4825 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4827 (target_remove_exec_catchpoint): Add argument.
4828 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4829 (update_current_target): Update.
4830 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4833 2014-02-19 Tom Tromey <tromey@redhat.com>
4835 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4837 (target_insert_exec_catchpoint): Add argument.
4838 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4839 (update_current_target): Update.
4840 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4843 2014-02-19 Tom Tromey <tromey@redhat.com>
4845 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4847 (target_remove_vfork_catchpoint): Add argument.
4848 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4849 (update_current_target): Update.
4850 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4853 2014-02-19 Tom Tromey <tromey@redhat.com>
4855 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4857 (target_insert_vfork_catchpoint): Add argument.
4858 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4859 (update_current_target): Update.
4860 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4863 2014-02-19 Tom Tromey <tromey@redhat.com>
4865 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4867 (target_remove_fork_catchpoint): Add argument.
4868 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4869 (update_current_target): Update.
4870 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4873 2014-02-19 Tom Tromey <tromey@redhat.com>
4875 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4877 (target_insert_fork_catchpoint): Add argument.
4878 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4879 (update_current_target): Update.
4880 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4883 2014-02-19 Tom Tromey <tromey@redhat.com>
4885 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4887 (target_post_startup_inferior): Add argument.
4888 * target.c (debug_to_post_startup_inferior): Add argument.
4889 (update_current_target): Update.
4890 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4892 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4894 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4896 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4898 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4900 (super_post_startup_inferior): Likewise.
4901 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4903 (super_post_startup_inferior): Likewise.
4904 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4905 Add 'self' argument.
4906 (super_post_startup_inferior): Likewise.
4908 2014-02-19 Tom Tromey <tromey@redhat.com>
4910 * target.h (struct target_ops) <to_load>: Add argument.
4911 * target.c (target_load): Add argument.
4912 (debug_to_load): Add argument.
4913 (update_current_target): Update.
4914 * remote.c (remote_load): Add 'self' argument.
4915 * remote-sim.c (gdbsim_load): Add 'self' argument.
4916 * remote-mips.c (mips_load): Add 'self' argument.
4917 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4918 * monitor.c (monitor_load): Add 'self' argument.
4919 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4921 2014-02-19 Tom Tromey <tromey@redhat.com>
4923 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4924 (target_terminal_info): Add argument.
4925 * target.c (debug_to_terminal_info): Add argument.
4926 (default_terminal_info): Likewise.
4927 * inflow.c (child_terminal_info): Add 'self' argument.
4928 * inferior.h (child_terminal_info): Add 'self' argument.
4929 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4931 2014-02-19 Tom Tromey <tromey@redhat.com>
4933 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4935 (target_terminal_save_ours): Add argument.
4936 * target.c (debug_to_terminal_save_ours): Add argument.
4937 (update_current_target): Update.
4938 * inflow.c (terminal_save_ours): Add 'self' argument.
4939 * inferior.h (terminal_save_ours): Add 'self' argument.
4941 2014-02-19 Tom Tromey <tromey@redhat.com>
4943 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4944 (target_terminal_ours): Add argument.
4945 * target.c (debug_to_terminal_ours): Add argument.
4946 (update_current_target): Update.
4947 * remote.c (remote_terminal_ours): Add 'self' argument.
4948 (remote_close): Update.
4949 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4950 * inflow.c (terminal_ours): Add 'self' argument.
4951 * inferior.h (terminal_ours): Add 'self' argument.
4952 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4954 2014-02-19 Pedro Alves <palves@redhat.com>
4955 Tom Tromey <tromey@redhat.com>
4957 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4959 (target_terminal_ours_for_output): Add argument.
4960 * target.c (debug_to_terminal_ours_for_output): Add argument.
4961 (update_current_target): Update.
4962 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4963 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4964 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4966 2014-02-19 Tom Tromey <tromey@redhat.com>
4968 * target.h (struct target_ops) <to_terminal_inferior>: Add
4970 * target.c (target_terminal_inferior): Add argument.
4971 (update_current_target): Update.
4972 * remote.c (remote_terminal_inferior): Add 'self' argument.
4973 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
4974 * inflow.c (terminal_inferior): Add 'self' argument.
4975 * inferior.h (terminal_inferior): Add 'self' argument.
4976 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
4977 (go32_terminal_inferior): Add 'self' argument.
4979 2014-02-19 Tom Tromey <tromey@redhat.com>
4981 * target.h (struct target_ops) <to_terminal_init>: Add argument.
4982 (target_terminal_init): Add argument.
4983 * target.c (debug_to_terminal_init): Add argument.
4984 (update_current_target): Update.
4985 * inflow.c (terminal_init_inferior): Add 'self' argument.
4986 * inferior.h (terminal_init_inferior): Add 'self' argument.
4987 * go32-nat.c (go32_terminal_init): Add 'self' argument.
4988 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
4990 2014-02-19 Tom Tromey <tromey@redhat.com>
4992 * target.h (struct target_ops)
4993 <to_can_accel_watchpoint_condition>: Add argument.
4994 (target_can_accel_watchpoint_condition): Add argument.
4995 * target.c (debug_to_can_accel_watchpoint_condition): Add
4997 (update_current_target): Update.
4998 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5001 2014-02-19 Tom Tromey <tromey@redhat.com>
5003 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5005 (target_region_ok_for_hw_watchpoint): Add argument.
5006 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5007 (default_region_ok_for_hw_watchpoint): Add argument.
5008 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5009 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5011 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5013 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5015 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5017 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5019 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5021 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5022 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5024 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5025 Add 'self' argument.
5027 2014-02-19 Tom Tromey <tromey@redhat.com>
5029 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5031 (target_insert_watchpoint): Add argument.
5032 * target.c (debug_to_insert_watchpoint): Add argument.
5033 (update_current_target): Update.
5034 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5035 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5036 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5037 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5038 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5039 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5041 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5042 (procfs_insert_hw_watchpoint): Add 'self' argument.
5043 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5045 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5047 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5049 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5050 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5052 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5055 2014-02-19 Tom Tromey <tromey@redhat.com>
5057 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5059 (target_remove_watchpoint): Add argument.
5060 * target.c (debug_to_remove_watchpoint): Add argument.
5061 (update_current_target): Update.
5062 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5063 * remote.c (remote_remove_watchpoint): Add 'self' argument.
5064 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5065 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5066 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5067 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5069 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5070 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5072 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5074 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5076 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5077 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5079 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5082 2014-02-19 Tom Tromey <tromey@redhat.com>
5084 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5086 (target_remove_hw_breakpoint): Add argument.
5087 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5088 (update_current_target): Update.
5089 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5090 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5092 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5093 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5095 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5098 2014-02-19 Tom Tromey <tromey@redhat.com>
5100 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5102 (target_insert_hw_breakpoint): Add argument.
5103 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5104 (update_current_target): Update.
5105 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5106 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5108 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5109 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5110 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5112 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5115 2014-02-19 Tom Tromey <tromey@redhat.com>
5117 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5119 (target_can_use_hardware_watchpoint): Add argument.
5120 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5121 (update_current_target): Update.
5122 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5124 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5126 * remote.c (remote_check_watch_resources): Add 'self' argument.
5127 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5128 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5130 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5131 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5133 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5135 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5137 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5139 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5141 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5143 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5144 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5146 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5149 2014-02-19 Tom Tromey <tromey@redhat.com>
5151 * target.h (struct target_ops) <to_post_attach>: Add argument.
5152 (target_post_attach): Add argument.
5153 * target.c (debug_to_post_attach): Add argument.
5154 (update_current_target): Update.
5155 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5156 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5157 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5158 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5159 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5161 2014-02-19 Tom Tromey <tromey@redhat.com>
5163 * windows-nat.c (windows_close): Add 'self' argument.
5164 * tracepoint.c (tfile_close): Add 'self' argument.
5165 * target.h (struct target_ops) <to_close>: Add argument.
5166 * target.c (target_close): Add argument.
5167 (update_current_target): Update.
5168 * remote.c (remote_close): Add 'self' argument.
5169 * remote-sim.c (gdbsim_close): Add 'self' argument.
5170 * remote-mips.c (mips_close): Add 'self' argument.
5171 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5172 * record-full.c (record_full_close): Add 'self' argument.
5173 * record-btrace.c (record_btrace_close): Add 'self' argument.
5174 * monitor.h (monitor_close): Add 'self' argument.
5175 * monitor.c (monitor_close): Add 'self' argument.
5176 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5177 * linux-nat.c (linux_nat_close): Add argument.
5178 * go32-nat.c (go32_close): Add 'self' argument.
5179 * exec.c (exec_close_1): Add 'self' argument.
5180 * ctf.c (ctf_close): Add 'self' argument.
5181 * corelow.c (core_close): Add 'self' argument.
5182 (core_close_cleanup): Update.
5183 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5184 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5186 2014-02-19 Tom Tromey <tromey@redhat.com>
5188 * remote.c (remote_load): New function.
5189 (init_remote_ops): Use it.
5191 2014-02-19 Tom Tromey <tromey@redhat.com>
5193 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5195 * common/linux-btrace.h (linux_supports_btrace): Update.
5196 * remote.c (remote_supports_btrace): Add "self" argument.
5197 * target-delegates.c: Rebuild.
5198 * target.c (target_supports_btrace): Remove.
5199 * target.h (struct target_ops) <to_supports_btrace>: Add
5200 target_ops argument.
5201 (target_supports_btrace): New define.
5203 2014-02-19 Tom Tromey <tromey@redhat.com>
5205 * record-full.c (record_full_beneath_to_resume_ops)
5206 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5207 (record_full_beneath_to_wait)
5208 (record_full_beneath_to_store_registers_ops)
5209 (record_full_beneath_to_store_registers)
5210 (record_full_beneath_to_xfer_partial_ops)
5211 (record_full_beneath_to_xfer_partial)
5212 (record_full_beneath_to_insert_breakpoint_ops)
5213 (record_full_beneath_to_insert_breakpoint)
5214 (record_full_beneath_to_remove_breakpoint_ops)
5215 (record_full_beneath_to_remove_breakpoint)
5216 (record_full_beneath_to_stopped_by_watchpoint)
5217 (record_full_beneath_to_stopped_data_address)
5218 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5219 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5220 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5221 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5222 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5223 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5224 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5225 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5226 (record_full_resume, record_full_wait_1)
5227 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5228 (record_full_store_registers, record_full_xfer_partial)
5229 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5230 (record_full_async, record_full_core_xfer_partial): Use target
5232 * target-delegates.c: Rebuild.
5233 * target.c (current_xfer_partial): Remove.
5234 (update_current_target): Do not INHERIT or de_fault
5235 to_insert_breakpoint, to_remove_breakpoint,
5236 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5237 to_is_async_p, to_async. Do not set to_xfer_partial field.
5238 (default_xfer_partial): Simplify.
5239 (current_xfer_partial): Remove.
5240 (target_wait, target_resume): Simplify.
5241 (find_default_can_async_p, find_default_is_async_p): Update.
5242 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5243 to_xfer_partial, to_stopped_by_watchpoint,
5244 to_stopped_data_address.
5245 (target_store_registers): Simplify.
5246 (forward_target_remove_breakpoint)
5247 (forward_target_insert_breakpoint): Remove.
5248 (target_remove_breakpoint, target_insert_breakpoint)
5249 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5250 * target.h (struct target_ops) <to_resume, to_wait,
5251 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5252 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5253 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5255 (forward_target_remove_breakpoint)
5256 (forward_target_insert_breakpoint): Remove.
5257 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5259 (record_btrace_insert_breakpoint): Delegate directly.
5261 2014-02-19 Tom Tromey <tromey@redhat.com>
5264 * target-delegates.c: New file.
5265 * target.c: Include target-delegates.c.
5266 (init_dummy_target): Call install_dummy_methods.
5267 (complete_target_initialization): Call install_delegators.
5268 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5269 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5270 * make-target-delegates: New file.
5272 2014-02-19 Tom Tromey <tromey@redhat.com>
5274 * record.c (find_record_target): Use find_target_at.
5275 * target.c (find_target_at): New function.
5276 * target.h (find_target_at): Declare.
5278 2014-02-19 Tom Tromey <tromey@redhat.com>
5280 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5282 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5284 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5285 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5287 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5289 * linux-nat.c (save_sigtrap): Update.
5290 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5291 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5292 (linux_nat_close): Update.
5293 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5295 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5297 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5298 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5299 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5300 (tmp_to_async): Add 'ops' argument.
5301 (record_full_stopped_by_watchpoint, record_full_async)
5302 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5304 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5305 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5306 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5307 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5308 (remote_is_async_p, remote_async): Add 'ops' argument.
5309 (remote_stopped_data_address): Update.
5310 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5311 * target.c (update_current_target)
5312 (find_default_can_async_p, find_default_is_async_p): Update.
5313 (init_dummy_target): Update.
5314 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5315 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5316 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5317 (target_can_async_p, target_is_async_p, target_async)
5318 (target_stopped_by_watchpoint): Update.
5320 2014-02-19 Yao Qi <yao@codesourcery.com>
5323 * gdbarch.sh: Remove startup_gdbarch.
5324 * gdbarch.c: Regenerated.
5325 * gdbarch.h: Likewise.
5327 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5329 * rl78-tdep.c (rl78_g10_register_name): New function.
5330 (rl78_return_value): Add g10 support.
5331 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5334 2014-02-17 Doug Evans <xdje42@gmail.com>
5336 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5337 (SUBDIR_GUILE_SRCS): Ditto.
5338 (scm-gsmob.o): Ditto.
5340 2014-02-17 Yao Qi <yao@codesourcery.com>
5342 * gnu-nat.c (ILL_RPC): Declare defined function.
5344 2014-02-17 Yao Qi <yao@codesourcery.com>
5346 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5347 mach_msg_type_number_t.
5348 (gnu_write_inferior): Likewise.
5350 2014-02-17 Yao Qi <yao@codesourcery.com>
5352 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5354 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5355 (inf_validate_procs, inf_signal): Likewise.
5356 (S_exception_raise_request): Likewise.
5357 (do_mach_notify_dead_name): Likewise.
5358 (steal_exc_port): Likewise.
5359 (gnu_read_inferior): Change 'copy_count''s type to
5360 mach_msg_type_number_t.
5361 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5364 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5366 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5367 flag. Adjust all users; in particular...
5368 (gnu_wait): ..., don't decrement its value in here...
5369 (gnu_create_inferior): ..., and instead set the flag in here,
5370 around the startup_inferior call, and call that one with
5371 START_INFERIOR_TRAPS_EXPECTED.
5373 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5374 (ILL_RPC): ... new macro.
5375 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5376 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5377 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5378 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5379 functions with ILL_RPC macro.
5380 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5381 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5382 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5383 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5384 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5385 (S_proc_getlogin_reply, S_proc_getsid_reply)
5386 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5387 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5388 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5389 (S_proc_getnports_reply, S_proc_is_important_reply)
5390 (S_proc_get_code_reply): New stub functions, generated with
5393 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5394 collected the type check structures.
5396 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5398 2014-02-14 Doug Evans <dje@google.com>
5400 * target.c (target_write_partial): Fix result type.
5402 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5404 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5405 the proper offsets to access fpregset_t.
5407 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5409 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5410 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5411 * h8300-tdep.c (setmachinelist): Remove global.
5412 * hppa-tdep.c (hppa_sigtramp): Remove global.
5413 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5414 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5415 * ravenscar-thread.c (update_target_observer): Remove global.
5416 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5418 2014-02-12 Tom Tromey <tromey@redhat.com>
5420 * common/rsp-low.c: Update comments.
5421 * common/rsp-low.h: Update comments.
5423 2014-02-12 Tom Tromey <tromey@redhat.com>
5425 * common/rsp-low.c (convert_ascii_to_int): Remove.
5426 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5428 2014-02-12 Tom Tromey <tromey@redhat.com>
5430 * common/rsp-low.h (unhexify): Don't declare.
5431 * common/rsp-low.c (unhexify): Remove.
5433 2014-02-12 Tom Tromey <tromey@redhat.com>
5435 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5436 * common/rsp-low.c (convert_int_to_ascii): Remove.
5438 2014-02-12 Tom Tromey <tromey@redhat.com>
5440 * common/rsp-low.h (hexify): Don't declare.
5441 * common/rsp-low.c (hexify): Remove.
5443 2014-02-12 Tom Tromey <tromey@redhat.com>
5445 * common/rsp-low.c (hexify): Never take strlen of argument.
5447 2014-02-12 Tom Tromey <tromey@redhat.com>
5449 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5450 * remote.c (extended_remote_run, remote_rcmd)
5451 (remote_download_trace_state_variable, remote_save_trace_data)
5452 (remote_set_trace_notes): Update.
5453 * tracepoint.c (encode_source_string, tfile_write_status)
5454 (tfile_write_uploaded_tsv): Update.
5456 2014-02-12 Tom Tromey <tromey@redhat.com>
5458 * tracepoint.c: Include rsp-low.h.
5459 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5460 * remote.c: Include rsp-low.h.
5461 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5462 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5463 (remote_unescape_input): Move to common/rsp-low.c.
5464 * common/rsp-low.h: New file.
5465 * common/rsp-low.c: New file.
5466 * Makefile.in (SFILES): Add common/rsp-low.c.
5467 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5468 (COMMON_OBS): Add rsp-low.o.
5469 (rsp-low.o): New target.
5471 2014-02-12 Tom Tromey <tromey@redhat.com>
5473 * utils.h: Include print-utils.h.
5474 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5475 (int_string, core_addr_to_string, core_addr_to_string_nz)
5476 (hex_string, hex_string_custom): Don't declare.
5477 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5478 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5479 (hex_string_custom, int_string, core_addr_to_string)
5480 (core_addr_to_string_nz, host_address_to_string): Move to
5481 common/print-utils.c.
5482 * common/print-utils.h: New file.
5483 * common/print-utils.c: New file
5484 * Makefile.in (SFILES): Add common/print-utils.c.
5485 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5486 (COMMON_OBS): Add print-utils.o.
5487 (print-utils.o): New target.
5489 2014-02-12 Tom Tromey <tromey@redhat.com>
5491 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5493 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5495 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5497 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5499 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5500 if a PT_IO ptrace request returns sucessfully but indicates that 0
5501 bytes were transferred.
5503 2014-02-12 Pedro Alves <palves@redhat.com>
5504 Kevin Buettner <kevinb@redhat.com>
5506 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5507 TYPE_INSTANCE_FLAG_CODE_SPACE.
5509 2014-02-12 Pedro Alves <palves@redhat.com>
5511 * h8300-tdep.c (pseudo_from_raw_register)
5512 (raw_from_pseudo_register): New functions.
5513 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5516 2014-02-12 Pedro Alves <palves@redhat.com>
5518 * h8300-tdep.c (h8300_register_sim_regno): New function.
5519 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5520 gdbarch_register_sim_regno hook.
5522 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5524 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5526 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5528 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5530 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5532 * obsd-tdep.h (obsd_init_abi): New prototype.
5533 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5534 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5535 (obsd_init_abi): New functions.
5536 * i386obsd-tdep.c: Include "obsd-tdep.h".
5537 (i386obsd_init_abi): Call obsd_init_abi.
5538 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5539 (amd64obsd_init_abi): Call obsd_init_abi.
5540 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5541 obsd-tdep.c to gdb_target_obs.
5543 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5545 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5546 double float arguments to 16-byte in the argument slots.
5548 2014-02-11 Doug Evans <xdje42@gmail.com>
5550 * configure.ac: Don't crash if pkg-config is not found and guile
5551 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5553 * configure: Regenerate.
5555 2014-02-11 Yao Qi <yao@codesourcery.com>
5557 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5558 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5559 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5560 * gnu-nat.c (gnu_xfer_memory): Likewise.
5561 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5562 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5563 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5564 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5566 2014-02-11 Yao Qi <yao@codesourcery.com>
5568 * target.h (enum target_xfer_error): Rename to ...
5569 (enum target_xfer_status): ... it. New. All users updated.
5570 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5572 (TARGET_XFER_STATUS_ERROR_P): New macro.
5573 (target_xfer_error_to_string): Remove declaration.
5574 (target_xfer_status_to_string): Declare.
5575 (target_xfer_partial_ftype): Adjust it.
5576 (struct target_ops) <to_xfer_partial>: Return
5577 target_xfer_status. Add argument xfered_len. Update
5579 * target.c (target_xfer_error_to_string): Rename to ...
5580 (target_xfer_status_to_string): ... it. New. All callers
5582 (target_read_live_memory): Likewise. Call target_xfer_partial
5583 instead of target_read.
5584 (memory_xfer_live_readonly_partial): Return
5585 target_xfer_status. Add argument xfered_len.
5586 (raw_memory_xfer_partial): Likewise.
5587 (memory_xfer_partial_1): Likewise.
5588 (memory_xfer_partial): Likewise.
5589 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5590 properly. Update debug message.
5591 (default_xfer_partial, current_xfer_partial): Likewise.
5592 (target_write_partial): Likewise.
5593 (target_read_partial): Likewise. All callers updated.
5594 (read_whatever_is_readable): Likewise.
5595 (target_write_with_progress): Likewise.
5596 (target_read_alloc_1): Likewise.
5598 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5599 * auxv.c (procfs_xfer_auxv): Likewise.
5600 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5601 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5602 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5603 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5604 * corefile.c (read_memory): Adjust.
5605 * corelow.c (core_xfer_partial): Likewise.
5606 * ctf.c (ctf_xfer_partial): Likewise.
5607 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5609 (darwin_xfer_partial): Likewise.
5610 * exec.c (section_table_xfer_memory_partial): Likewise. All
5612 (exec_xfer_partial): Likewise.
5613 * exec.h (section_table_xfer_memory_partial): Update
5615 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5617 (gnu_xfer_partial): Likewise.
5618 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5619 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5620 (ia64_hpux_xfer_solib_got): Likewise.
5621 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5622 type of 'partial_len' to ULONGEST.
5623 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5624 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5625 (linux_nat_xfer_partial): Likewise.
5626 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5627 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5628 * monitor.c (monitor_xfer_memory): Likewise.
5629 (monitor_xfer_partial): Likewise.
5630 * procfs.c (procfs_xfer_partial): Likewise.
5631 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5632 * record-full.c (record_full_xfer_partial): Likewise.
5633 (record_full_core_xfer_partial): Likewise.
5634 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5635 (gdbsim_xfer_partial): Likewise.
5636 * remote.c (remote_write_bytes_aux): Likewise. All callers
5638 (remote_write_bytes, remote_read_bytes): Likewise. All
5640 (remote_flash_erase): Likewise. All callers updated.
5641 (remote_write_qxfer): Likewise. All callers updated.
5642 (remote_read_qxfer): Likewise. All callers updated.
5643 (remote_xfer_partial): Likewise.
5644 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5645 (rs6000_xfer_shared_libraries): Likewise.
5646 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5647 (sol_thread_xfer_partial): Likewise.
5648 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5649 (sparc_xfer_partial): Likewise.
5650 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
5652 (spu_xfer_partial): Likewise.
5653 * spu-multiarch.c (spu_xfer_partial): Likewise.
5654 * tracepoint.c (tfile_xfer_partial): Likewise.
5655 * windows-nat.c (windows_xfer_memory): Likewise.
5656 (windows_xfer_shared_libraries): Likewise.
5657 (windows_xfer_partial): Likewise.
5658 * valprint.c: Replace 'target_xfer_error' with
5659 'target_xfer_status' in comments.
5661 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
5663 Checked in by Joel Brobecker <brobecker@adacore.com>.
5664 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5666 2014-02-11 Joel Brobecker <brobecker@adacore.com>
5668 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5669 function parameters.
5671 2014-02-10 Will Newton <will.newton@linaro.org>
5673 * elfread.c (elf_rel_plt_read): Look for a .got section if
5674 looking up .got.plt fails.
5675 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5676 on address passed to elf_gnu_ifunc_record_cache.
5677 (elf_gnu_ifunc_resolve_addr): Likewise.
5678 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5680 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5682 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5683 (X_RETTURN): New macro.
5684 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5686 * sparc64-tdep.c (sparc64_init_abi): Hook
5687 sparc_in_function_epilogue_p.
5689 2014-02-10 Gary Benson <gbenson@redhat.com>
5691 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5692 Rename name_matcher to symbol_matcher.
5694 2014-02-10 Gary Benson <gbenson@redhat.com>
5696 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5697 Use expand_symtabs_file_matcher_ftype and
5698 expand_symtabs_symbol_matcher_ftype.
5700 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5702 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5703 (struct ada_symbol_cache): New.
5704 (ada_free_symbol_cache): Forward declare.
5705 (struct ada_pspace_data): New.
5706 (ada_pspace_data_handle): New static global.
5707 (get_ada_pspace_data, ada_pspace_data_cleanup)
5708 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5709 (cache_space, cache): Delete, now folded inside struct
5711 (ada_get_symbol_cache): New function.
5712 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5714 (_initialize_ada_language): Remove initialization of cache_space.
5715 Move call to observer_attach_inferior_exit up, grouping it
5716 with the other observer registrations inside this function.
5717 Rename command to be more general. Add call to
5718 register_program_space_data_with_cleanup.
5720 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5722 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5723 ada_new_objfile_observer.
5724 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5725 (_initialize_tasks): Update uses of ada_new_objfile_observer
5726 and ada_tasks_normal_stop_observer.
5728 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5730 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5731 returned by the 'Length attribute to integer.
5733 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5735 * ada-lang.c (_initialize_ada_language): Initialize
5736 cache_space obstack.
5738 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5740 * ada-lang.c (HASH_SIZE): New macro.
5741 (struct cache_entry): New type.
5742 (cache_space, cache): New static globals.
5743 (ada_clear_symbol_cache, find_entry): New functions.
5744 (lookup_cached_symbol, cache_symbol): Implement.
5745 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5746 (_initialize_ada_language): Attach ada_new_objfile_observer
5747 and ada_free_objfile_observer.
5749 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5751 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5752 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5753 struct block * parameter.
5754 (ada_lookup_symbol_list_worker): Constify local variable "block".
5755 Remove cast which is no longer necessary.
5757 2014-02-10 Doug Evans <xdje42@gmail.com>
5759 Add Guile as an extension language.
5760 * NEWS: Mention Guile scripting.
5761 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5762 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5763 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5764 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5765 (CLIBS): Add GUILE_LIBS.
5766 (install-guile): New rule.
5767 (guile.o): New rule.
5768 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5769 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5770 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5771 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5772 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5773 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5774 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5775 * configure.ac: New option --with-guile.
5776 * configure: Regenerate.
5777 * config.in: Regenerate.
5778 * auto-load.c: Remove #include "python/python.h". Add #include
5779 "gdb/section-scripts.h".
5780 (source_section_scripts): Handle Guile scripts.
5781 (_initialize_auto_load): Add name of Guile objfile script to
5782 scripts-directory help text.
5783 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5784 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5785 (struct breakpoint): New member scm_bp_object.
5786 * defs.h (enum command_control_type): New value guile_control.
5787 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5789 (show_user): Update comment.
5790 (_initialize_cli_cmds): Update help text for "show user". Update help
5791 text for max-user-call-depth.
5792 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5794 (multi_line_command_p): Add guile_control.
5795 (print_command_lines): Handle guile_control.
5796 (execute_control_command, recurse_read_control_structure): Ditto.
5797 (process_next_line): Recognize "guile" commands.
5798 * disasm.c (gdb_disassemble_info): Make non-static.
5799 * disasm.h: #include "dis-asm.h".
5800 (struct gdbarch): Add forward decl.
5801 (gdb_disassemble_info): Declare.
5802 * extension.c: #include "guile/guile.h".
5803 (extension_languages): Add guile.
5804 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5805 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5806 * gdbtypes.c (get_unsigned_type_max): New function.
5807 (get_signed_type_minmax): New function.
5808 * gdbtypes.h (get_unsigned_type_max): Declare.
5809 (get_signed_type_minmax): Declare.
5810 * guile/README: New file.
5811 * guile/guile-internal.h: New file.
5812 * guile/guile.c: New file.
5813 * guile/guile.h: New file.
5814 * guile/scm-arch.c: New file.
5815 * guile/scm-auto-load.c: New file.
5816 * guile/scm-block.c: New file.
5817 * guile/scm-breakpoint.c: New file.
5818 * guile/scm-disasm.c: New file.
5819 * guile/scm-exception.c: New file.
5820 * guile/scm-frame.c: New file.
5821 * guile/scm-gsmob.c: New file.
5822 * guile/scm-iterator.c: New file.
5823 * guile/scm-lazy-string.c: New file.
5824 * guile/scm-math.c: New file.
5825 * guile/scm-objfile.c: New file.
5826 * guile/scm-ports.c: New file.
5827 * guile/scm-pretty-print.c: New file.
5828 * guile/scm-safe-call.c: New file.
5829 * guile/scm-string.c: New file.
5830 * guile/scm-symbol.c: New file.
5831 * guile/scm-symtab.c: New file.
5832 * guile/scm-type.c: New file.
5833 * guile/scm-utils.c: New file.
5834 * guile/scm-value.c: New file.
5835 * guile/lib/gdb.scm: New file.
5836 * guile/lib/gdb/boot.scm: New file.
5837 * guile/lib/gdb/experimental.scm: New file.
5838 * guile/lib/gdb/init.scm: New file.
5839 * guile/lib/gdb/iterator.scm: New file.
5840 * guile/lib/gdb/printing.scm: New file.
5841 * guile/lib/gdb/types.scm: New file.
5842 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5843 (VPATH): Add $(GUILE_SRCDIR).
5844 (GUILE_DIR): New variable.
5845 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5846 (all): Add stamp-guile dependency.
5847 (stamp-guile): New rule.
5848 (clean-guile, install-guile, uninstall-guile): New rules.
5849 (install-only): Add install-guile dependency.
5850 (uninstall): Add uninstall-guile dependency.
5851 (clean): Add clean-guile dependency.
5853 2014-02-09 Doug Evans <xdje42@gmail.com>
5855 Revert this patch (which I approved, mea culpa).
5857 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5859 * Makefile.in (all-lib): Remove.
5860 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5862 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5864 Fix Python stack corruption.
5865 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5868 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5870 * Makefile.in (all-lib): Remove.
5871 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5873 2014-02-07 Doug Evans <dje@google.com>
5875 * extension-priv.h (extension_language_script_ops): Add comment.
5876 (extension_language_ops): Add comment.
5877 (active_ext_lang_state): Fix typo in comment.
5879 2014-02-07 Pedro Alves <palves@redhat.com>
5881 PR breakpoints/16292
5882 * infrun.c (handle_signal_stop) <signal arrives while stepping
5883 over a breakpoint>: Switch back to the stepping thread.
5885 2014-02-07 Yao Qi <yao@codesourcery.com>
5887 * target.c (target_xfer_partial): Return zero if LEN is zero.
5889 2014-02-07 Yao Qi <yao@codesourcery.com>
5891 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5892 (ld_so_xfer_auxv): Likewise.
5893 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5894 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5895 * corelow.c (core_xfer_partial): Likewise.
5896 * ctf.c (ctf_xfer_partial): Likewise.
5897 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5898 (darwin_xfer_partial): Likewise.
5899 * exec.c (exec_xfer_partial): Likewise.
5900 * gnu-nat.c (gnu_xfer_partial): Likewise.
5901 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5902 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5903 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5904 * linux-nat.c (linux_xfer_siginfo): Likewise.
5905 (linux_proc_xfer_spu): Likewise.
5906 * procfs.c (procfs_xfer_partial): Likewise.
5907 * record-full.c (record_full_xfer_partial): Likewise.
5908 (record_full_core_xfer_partial): Likewise.
5909 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5910 * remote.c (remote_write_qxfer): Likewise.
5911 (remote_write_qxfer, remote_read_qxfer): Likewise.
5912 (remote_xfer_partial): Likewise.
5913 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5914 (rs6000_xfer_shared_libraries): Likewise.
5915 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5916 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5917 (spu_xfer_partial): Likewise.
5918 * target.c (memory_xfer_partial_1): Likewise.
5919 * tracepoint.c (tfile_xfer_partial): Likewise.
5920 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5921 (windows_xfer_partial): Likewise.
5923 2014-02-07 Yao Qi <yao@codesourcery.com>
5925 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5927 (core_xfer_shared_libraries_aix): Likewise.
5928 * gdbarch.c, gdbarch.h: Regenerated.
5929 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5930 ULONGEST. Change 'len_avail' type to ULONGEST.
5931 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5932 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5934 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5936 2014-02-07 Yao Qi <yao@codesourcery.com>
5938 * corefile.c (memory_error): Get 'exception' from ERR and pass
5939 'exception' to throw_error.
5941 2014-02-06 Doug Evans <xdje42@gmail.com>
5943 * configure.ac (libpython checking): Remove all but python.o from
5944 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5945 * configure: Regenerate.
5947 * Makefile.in (SFILES): Add extension.c.
5948 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5949 (COMMON_OBS): Add extension.o.
5950 * extension.h: New file.
5951 * extension-priv.h: New file.
5952 * extension.c: New file.
5954 * python/python-internal.h: #include "extension.h".
5955 (gdbpy_auto_load_enabled): Declare.
5956 (gdbpy_apply_val_pretty_printer): Declare.
5957 (gdbpy_apply_frame_filter): Declare.
5958 (gdbpy_preserve_values): Declare.
5959 (gdbpy_breakpoint_cond_says_stop): Declare.
5960 (gdbpy_breakpoint_has_cond): Declare.
5961 (void source_python_script_for_objfile): Delete.
5962 * python/python.c: #include "extension-priv.h".
5963 Delete inclusion of "observer.h".
5964 (extension_language_python): Moved here and renamed from
5965 script_language_python in py-auto-load.c.
5966 Redefined to be of type extension_language_defn.
5967 (python_extension_script_ops): New global.
5968 (python_extension_ops): New global.
5969 (struct python_env): New member previous_active.
5970 (restore_python_env): Call restore_active_ext_lang.
5971 (ensure_python_env): Call set_active_ext_lang.
5972 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
5974 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
5976 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
5978 (gdbpy_eval_from_control_command): Renamed from
5979 eval_python_from_control_command, made static. New arg extlang.
5980 (gdbpy_source_script) Renamed from source_python_script, made static.
5982 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
5983 result to int. New arg extlang.
5984 (gdbpy_source_objfile_script): Renamed from
5985 source_python_script_for_objfile, made static. New arg extlang.
5986 (gdbpy_start_type_printers): Renamed from start_type_printers, made
5987 static. New args extlang, extlang_printers. Change result type to
5989 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
5990 static. New arg extlang. Rename arg printers to extlang_printers
5991 and change type to ext_lang_type_printers *.
5992 (gdbpy_free_type_printers): Renamed from free_type_printers, made
5993 static. Replace argument arg with extlang, extlang_printers.
5994 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
5995 (!HAVE_PYTHON, source_python_script): Delete.
5996 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
5997 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
5998 (!HAVE_PYTHON, start_type_printers): Delete.
5999 (!HAVE_PYTHON, apply_type_printers): Delete.
6000 (!HAVE_PYTHON, free_type_printers): Delete.
6001 (_initialize_python): Delete call to observer_attach_before_prompt.
6002 (finalize_python): Set/restore active extension language.
6003 (gdbpy_finish_initialization) Renamed from
6004 finish_python_initialization, made static. New arg extlang.
6005 (gdbpy_initialized): New function.
6006 * python/python.h: #include "extension.h". Delete #include
6007 "value.h", "mi/mi-cmds.h".
6008 (extension_language_python): Declare.
6009 (GDBPY_AUTO_FILE_NAME): Delete.
6010 (enum py_bt_status): Moved to extension.h and renamed to
6012 (enum frame_filter_flags): Moved to extension.h.
6013 (enum py_frame_args): Moved to extension.h and renamed to
6014 ext_lang_frame_args.
6015 (finish_python_initialization): Delete.
6016 (eval_python_from_control_command): Delete.
6017 (source_python_script): Delete.
6018 (apply_val_pretty_printer): Delete.
6019 (apply_frame_filter): Delete.
6020 (preserve_python_values): Delete.
6021 (gdbpy_script_language_defn): Delete.
6022 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6023 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6025 * auto-load.c: #include "extension.h".
6026 (GDB_AUTO_FILE_NAME): Delete.
6027 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6028 (script_language_gdb): Delete, moved to extension.c and renamed to
6029 extension_language_gdb.
6030 (source_gdb_script_for_objfile): Delete.
6031 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6032 (loaded_script): Change type of language member to
6033 struct extension_language_defn *.
6034 (init_loaded_scripts_info): Initialize
6035 unsupported_script_warning_printed.
6036 (maybe_add_script): Make static. Change type of language arg to
6037 struct extension_language_defn *.
6038 (clear_section_scripts): Reset unsupported_script_warning_printed.
6039 (auto_load_objfile_script_1): Rewrite to use extension language API.
6040 (auto_load_objfile_script): Make public. Remove support-compiled-in
6041 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6042 (source_section_scripts): Rewrite to use extension language API.
6043 (load_auto_scripts_for_objfile): Rewrite to use
6044 auto_load_scripts_for_objfile.
6045 (collect_matching_scripts_data): Change type of language member to
6046 struct extension_language_defn *.
6047 (auto_load_info_scripts): Change type of language arg to
6048 struct extension_language_defn *.
6049 (unsupported_script_warning_print): New function.
6050 (script_not_found_warning_print): Make static.
6051 (_initialize_auto_load): Rewrite construction of scripts-directory
6053 * auto-load.h (struct objfile): Add forward decl.
6054 (struct script_language): Delete.
6055 (struct auto_load_pspace_info): Add forward decl.
6056 (struct extension_language_defn): Add forward decl.
6057 (maybe_add_script): Delete.
6058 (auto_load_objfile_script): Declare.
6059 (script_not_found_warning_print): Delete.
6060 (auto_load_info_scripts): Update prototype.
6061 (auto_load_gdb_scripts_enabled): Declare.
6062 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6063 auto_load_python_scripts_enabled and made public.
6064 (script_language_python): Delete, moved to python.c.
6065 (gdbpy_script_language_defn): Delete.
6066 (info_auto_load_python_scripts): Update to use
6067 extension_language_python.
6069 * breakpoint.c (condition_command): Replace call to
6070 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6071 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6072 with call to breakpoint_ext_lang_cond_says_stop.
6073 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6074 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6075 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6076 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6078 (local_setattro): Print name of extension language with existing
6081 * valprint.c (val_print, value_print): Update to call
6082 apply_ext_lang_val_pretty_printer.
6083 * cp-valprint.c (cp_print_value): Update call to
6084 apply_ext_lang_val_pretty_printer.
6085 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6086 (gdbpy_apply_val_pretty_printer): Renamed from
6087 apply_val_pretty_printer. New arg extlang.
6088 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6090 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6091 extension language API.
6092 * cli/cli-script.c (execute_control_command): Update to call
6093 eval_ext_lang_from_control_command.
6095 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6096 enum ext_lang_bt_status values. Update call to
6097 apply_ext_lang_frame_filter.
6098 (mi_cmd_stack_list_locals): Ditto.
6099 (mi_cmd_stack_list_args): Ditto.
6100 (mi_cmd_stack_list_variables): Ditto.
6101 * mi/mi-main.c: Delete #include "python/python-internal.h".
6102 Add #include "extension.h".
6103 (mi_cmd_list_features): Replace reference to python internal variable
6104 gdb_python_initialized with call to ext_lang_initialized_p.
6106 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6107 Update to use enum ext_lang_frame_args. Update to call
6108 apply_ext_lang_frame_filter.
6109 * python/py-framefilter.c (extract_sym): Update to use enum
6111 (extract_value, py_print_type, py_print_value): Ditto.
6112 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6113 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6114 (py_print_frame): Ditto.
6115 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6116 New arg extlang. Update to use enum ext_lang_bt_status.
6118 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6119 finish_python_initialization. Replace with call to
6120 finish_ext_lang_initialization.
6122 * typeprint.c (do_free_global_table): Update to call
6123 free_ext_lang_type_printers.
6124 (create_global_typedef_table): Update to call
6125 start_ext_lang_type_printers.
6126 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6127 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6128 (type_print_options): Change type of global_printers from "void *"
6129 to "struct ext_lang_type_printers *".
6131 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6132 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6133 (gdbpy_preserve_values): Renamed from preserve_python_values.
6135 (!HAVE_PYTHON, preserve_python_values): Delete.
6137 * utils.c (quit_flag): Delete, moved to extension.c.
6138 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6141 * eval.c: Delete #include "python/python.h".
6142 * main.c: Delete #include "python/python.h".
6144 * defs.h: Update comment.
6146 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6150 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6152 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6155 2014-02-05 Yao Qi <yao@codesourcery.com>
6157 * remote.c (remote_pass_signals): Remove local 'buf' and use
6159 (remote_program_signals): Likewise.
6161 2014-02-05 Yao Qi <yao@codesourcery.com>
6163 * ctf.c: Include "inferior.h" and "gdbthread.h".
6164 (CTF_PID): A new macro.
6165 (ctf_open): Call inferior_appeared and add_thread_silent.
6166 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6167 (ctf_thread_alive): New function.
6168 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6170 2014-02-05 Yao Qi <yao@codesourcery.com>
6174 2013-05-24 Yao Qi <yao@codesourcery.com>
6176 * tracepoint.c (TFILE_PID): Remove.
6177 (tfile_open): Don't add thread and inferior.
6178 (tfile_close): Don't set 'inferior_ptid'. Don't call
6179 exit_inferior_silent.
6180 (tfile_thread_alive): Remove.
6181 (init_tfile_ops): Don't set field 'to_thread_alive' of
6184 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6186 * remote.c (remote_start_remote): Call remote_check_symbols even
6187 if only symbol-file (not file) has been given.
6189 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6191 * gdbarch.sh (skip_entrypoint): New callback.
6192 * gdbarch.c, gdbarch.h: Regenerate.
6193 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6194 * infrun.c (fill_in_stop_func): Likewise.
6195 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6196 (ppc_elfv2_elf_make_msymbol_special): New function.
6197 (ppc_elfv2_skip_entrypoint): Likewise.
6198 (ppc_linux_init_abi): Install them for ELFv2.
6200 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6202 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6203 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6204 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6205 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6206 structures returned in GPRs.
6208 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6210 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6211 offset to the stack parameter list for the ELFv2 ABI.
6213 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6215 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6216 set_gdbarch_convert_from_func_ptr_addr and
6217 set_gdbarch_elf_make_msymbol_special for ELFv1.
6218 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6219 function descriptors on ELFv1.
6220 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6221 set up r12 at function entry.
6223 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6225 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6226 (struct gdbarch_tdep): New member elf_abi.
6228 * rs6000-tdep.c: Include "elf/ppc64.h".
6229 (rs6000_gdbarch_init): Detect ELF ABI version.
6231 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6233 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6234 within a register pair holding a DFP 128-bit value on little-endian.
6235 (ppc64_sysv_abi_return_value_base): Likewise.
6236 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6237 (dfp_pseudo_register_write): Likewise.
6239 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6241 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6242 offset on little-endian when passing _Decimal32.
6243 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6245 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6247 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6248 of the overlapped FP register within the VSX register on little-
6250 (efpr_pseudo_register_write): Likewise.
6252 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6254 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6255 offset on little-endian when passing small structures.
6257 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6259 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6260 (struct ppc64_sysv_argpos): New data structure.
6261 (ppc64_sysv_abi_push_float): Remove.
6262 (ppc64_sysv_abi_push_val): New function.
6263 (ppc64_sysv_abi_push_integer): Likewise.
6264 (ppc64_sysv_abi_push_freg): Likewise.
6265 (ppc64_sysv_abi_push_vreg): Likewise.
6266 (ppc64_sysv_abi_push_param): Likewise.
6267 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6268 (ppc64_sysv_abi_return_value_base): New function.
6269 (ppc64_sysv_abi_return_value): Refactor to use it.
6271 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6273 * NEWS: Document new target powerpc64le-*-linux*.
6275 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6277 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6278 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6280 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6281 register set used in ELF core dumps. Add floating-point register set.
6283 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6285 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6286 dwarf2_to_gdb[] table using symbolic constants. Adjust
6287 penultimate entry from number representing the PC register
6288 to symbolic constant representing the MDR register. Add
6289 constant for the PC register to the end of the table.
6291 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6293 * bsd-kvm.c: Include <sys/param.h>
6295 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6297 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6299 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6301 * ada-lang.h (clear_ada_sym_cache): Delete.
6303 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6305 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6307 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6309 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6310 the sigreturn register save area only if the syscall is
6313 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6315 * valops.c (value_slice): Minor reformatting.
6317 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6319 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6321 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6323 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6325 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6326 (ada_ignore_descriptive_types_p): New static global.
6327 (find_parallel_type_by_descriptive_type): Return immediately
6328 if ada_ignore_descriptive_types_p is set.
6329 (_initialize_ada_language): Register new commands "maintenance
6330 set ada", "maintenance show ada", "maintenance set ada
6331 ignore-descriptive-types" and "maintenance show ada
6332 ignore-descriptive-types".
6333 * NEWS: Add entry for new "maint ada set/show
6334 ignore-descriptive-types" commands.
6336 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6338 * record-btrace.c (record_btrace_close): Call btrace_teardown
6341 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6343 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6346 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6348 * ada-typeprint (type_is_full_subrange_of_target_type):
6350 (print_range): Add parameter bounds_prefered_p. If not set,
6351 try printing range types using the name of their base type.
6352 (print_range_type): Add parameter bounds_prefered_p.
6353 Use it in call to print_range.
6354 (print_array_type, ada_print_type): Update calls to print_range
6355 and print_range_type.
6357 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6359 * ada-typeprint.c (print_array_type, print_choices, print_range)
6360 (print_range_bound, print_dynamic_range_bound, print_range_type):
6363 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6365 * ada-typeprint.c (print_range): Add missing empty line
6366 after local declaration.
6368 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6370 * ada-valprint.c (print_optional_low_bound): Get index_type's
6371 target type for as long as it is a TYPE_CODE_RANGE.
6373 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6375 * procfs.c (procfs_make_note_section): Remove assertion and
6378 2014-01-24 Yao Qi <yao@codesourcery.com>
6380 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6381 * corelow.c (get_core_siginfo): Likewise.
6383 2014-01-24 Yao Qi <yao@codesourcery.com>
6385 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6386 ULONGEST. Don't check 'len' is negative.
6387 (remote_write_bytes): Change type of 'len' to ULONGEST.
6389 2014-01-23 Tom Tromey <tromey@redhat.com>
6392 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6393 Handle exception from frame.block.
6394 (FrameVars.fetch_frame_locals): Likewise.
6396 2014-01-23 Tom Tromey <tromey@redhat.com>
6399 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6400 on a NULL pointer. Move "goto error" to correct place.
6402 2014-01-23 Tom Tromey <tromey@redhat.com>
6405 * python/py-framefilter.c (apply_frame_filter): Call
6406 ensure_python_env after computing gdbarch.
6408 2014-01-23 Yao Qi <yao@codesourcery.com>
6410 * target.c (raw_memory_xfer_partial): Change argument type
6411 from void * to gdb_byte *.
6412 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6414 2014-01-22 Doug Evans <dje@google.com>
6416 New gdbserver option --debug-format=timestamp.
6419 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6421 * syscalls/s390x-linux.xml: New file.
6422 * syscalls/s390-linux.xml: New file.
6423 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6424 (XML_SYSCALL_FILENAME_S390X): Likewise.
6425 (op_svc): New enum value for SVC opcode.
6426 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6427 (s390_linux_get_syscall_number): New function.
6428 (s390_gdbarch_init): Register '*get_syscall_number' and the
6429 syscall xml file name.
6430 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6431 "s390-linux.xml" and "s390x-linux.xml".
6432 * NEWS: Announce new feature.
6434 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6436 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6438 2014-01-22 Pedro Alves <palves@redhat.com>
6440 * xtensa-config.c: Include defs.h.
6442 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6444 * common/common-utils.h: Add "ARI:" comment beside __func__
6447 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6449 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6450 documentation a bit.
6452 2014-01-21 Roland McGrath <mcgrathr@google.com>
6454 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6455 * configure: Regenerate.
6456 * aclocal.m4: Regenerate.
6457 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6458 New substituted variables.
6459 (install-strip): New target.
6460 (INSTALL_SCRIPT): New substituted variable.
6461 (FLAGS_TO_PASS): Add it.
6462 (install-only): Use $(INSTALL_SCRIPT) rather than
6463 $(INSTALL_PROGRAM) for gcore.
6465 2014-01-20 Tom Tromey <tromey@redhat.com>
6467 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6470 2014-01-20 Tom Tromey <tromey@redhat.com>
6472 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6473 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6474 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6475 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6476 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6477 (struct cmd_list_element) <flags>: Remove.
6478 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6479 doc_allocated>: New fields.
6480 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6482 * maint.c (maintenance_do_deprecate): Update.
6483 * top.c (execute_command): Update.
6485 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6487 * xtensa-linux-nat.c: Include asm/ptrace.h.
6489 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6491 * Makefile.in (SFILES): Add d-support.c.
6492 (COMMON_OBS): Add d-support.o.
6493 * d-lang.h (d_parse_symbol): Add comment, now defined in
6495 * d-lang.c (parse_call_convention)
6496 (parse_attributes, parse_function_types)
6497 (parse_function_args, parse_type, parse_identifier)
6498 (call_convention_p, d_parse_symbol): Move functions to ...
6499 * d-support.c: ... New file.
6501 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6503 * d-lang.h (d_parse_symbol): Add declaration.
6504 * d-lang.c (extract_identifiers)
6505 (extract_type_info): Remove functions.
6506 (parse_call_convention, parse_attributes)
6507 (parse_function_types, parse_function_args)
6508 (parse_type, parse_identifier, call_convention_p)
6509 (d_parse_symbol): New functions.
6510 (d_demangle): Use d_parse_symbol to demangle D symbols.
6512 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6514 * d-lang.h (struct builtin_d_type): New data type.
6515 (builtin_d_type): Add declaration.
6516 * d-lang.c (d_language_arch_info, build_d_types)
6517 (builtin_d_type): New functions.
6518 (enum d_primitive_types): New data type.
6519 (d_language_defn): Change c_language_arch_info to
6520 d_language_arch_info.
6521 (d_type_data): New static variable.
6522 (_initialize_d_language): Initialize d_type_data.
6524 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6526 * d-lang.h (d_main_name): Add declaration.
6527 * d-lang.c (d_main_name): New function.
6528 * symtab.c (find_main_name): Add call to d_main_name.
6530 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6532 * d-lang.c (d_language_defn): Change macro_expansion_c to
6535 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6537 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6539 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6541 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6542 gdb_exception" declaration.
6543 * remote.c (getpkt_or_notif_sane): Likewise.
6545 2014-01-17 Doug Evans <dje@google.com>
6547 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6548 function, contents of dirnames_to_char_ptr_vec_append moved here.
6549 (delim_string_to_char_ptr_vec): New function.
6550 (dirnames_to_char_ptr_vec_append): Rewrite.
6551 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6553 2014-01-17 Doug Evans <dje@google.com>
6555 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6557 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6558 #include "common-utils.h".
6559 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6560 * common/vec.h (VEC_ASSERT_PASS): Update.
6561 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6562 (MACH_CHECK_ERROR): Update.
6564 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6566 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6568 * gdbarch.h: Regenerate.
6570 2014-01-16 Tom Tromey <tromey@redhat.com>
6572 * value.c (struct value) <regnum>: Move earlier.
6574 2014-01-16 Tom Tromey <tromey@redhat.com>
6576 * remote.c (extended_remote_create_inferior): Rename from
6577 extended_remote_create_inferior_1. Add "ops" argument. Remove
6580 2014-01-16 Pedro Alves <palves@redhat.com>
6582 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6583 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6586 2014-01-16 Doug Evans <dje@google.com>
6588 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6590 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6592 * btrace.h (btrace_thread_flag): New.
6593 (struct btrace_thread_info) <flags>: New.
6594 * record-btrace.c (record_btrace_resume_thread)
6595 (record_btrace_find_thread_to_move, btrace_step_no_history)
6596 (btrace_step_stopped, record_btrace_start_replaying)
6597 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6598 (record_btrace_find_resume_thread): New.
6599 (record_btrace_resume, record_btrace_wait): Extend.
6600 (record_btrace_can_execute_reverse): New.
6601 (record_btrace_open): Fail in non-stop mode.
6602 (record_btrace_set_replay): Split into this, ...
6603 (record_btrace_stop_replaying): ... this, ...
6604 (record_btrace_clear_histories): ... and this.
6605 (init_record_btrace_ops): Init to_can_execute_reverse.
6606 * NEWS: Announce it.
6608 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6610 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6611 (forward_target_decr_pc_after_break)
6612 (target_decr_pc_after_break): New.
6613 * target.c (forward_target_decr_pc_after_break)
6614 (target_decr_pc_after_break): New.
6615 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6616 instead of gdbarch_decr_pc_after_break.
6617 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6618 instead of gdbarch_decr_pc_after_break.
6619 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6620 instead of gdbarch_decr_pc_after_break.
6621 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6622 instead of gdbarch_decr_pc_after_break.
6623 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6624 instead of gdbarch_decr_pc_after_break.
6625 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6626 instead of gdbarch_decr_pc_after_break.
6628 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6630 * btrace.c: Include regcache.h.
6631 (btrace_add_pc): New.
6632 (btrace_enable): Call btrace_add_pc.
6633 (btrace_is_empty): New.
6634 * btrace.h (btrace_is_empty): New.
6635 * record-btrace.c (require_btrace, record_btrace_info): Call
6638 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6640 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6641 Support delta reads.
6642 (linux_disable_btrace): Change return type.
6643 * common/linux-btrace.h (linux_read_btrace): Change parameters
6644 and return type to allow error reporting. Update users.
6645 (linux_disable_btrace): Change return type. Update users.
6646 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6648 (btrace_error): New.
6649 (btrace_block) <begin>: Comment on BEGIN == 0.
6650 * btrace.c (btrace_compute_ftrace): Start from the end of
6652 (btrace_stitch_trace, btrace_clear_history): New.
6653 (btrace_fetch): Read delta trace, return if replaying.
6654 (btrace_clear): Move clear history code to btrace_clear_history.
6655 (parse_xml_btrace): Throw an error if parsing failed.
6656 * target.h (struct target_ops) <to_read_btrace>: Change parameters
6657 and return type to allow error reporting.
6658 (target_read_btrace): Change parameters and return type to allow
6660 * target.c (target_read_btrace): Update.
6661 * remote.c (remote_read_btrace): Support delta reads. Pass
6663 * NEWS: Announce it.
6665 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6667 * record.h (record_btrace_frame_unwind)
6668 (record_btrace_tailcall_frame_unwind): New declarations.
6669 * dwarf2-frame: Include record.h
6670 (dwarf2_frame_cfa): Throw an error for btrace frames.
6671 * record-btrace.c: Include hashtab.h.
6672 (btrace_get_bfun_name): New.
6673 (btrace_call_history): Call btrace_get_bfun_name.
6674 (struct btrace_frame_cache): New.
6676 (bfcache_hash, bfcache_eq, bfcache_new): New.
6677 (btrace_get_frame_function): New.
6678 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6679 (record_btrace_frame_this_id): Compute own id.
6680 (record_btrace_frame_prev_register): Provide PC, throw_error
6681 for all other registers.
6682 (record_btrace_frame_sniffer): Detect btrace frames.
6683 (record_btrace_tailcall_frame_sniffer): New.
6684 (record_btrace_frame_dealloc_cache): New.
6685 (record_btrace_frame_unwind): Add new functions.
6686 (record_btrace_tailcall_frame_unwind): New.
6687 (_initialize_record_btrace): Allocate cache.
6688 * btrace.c (btrace_clear): Call reinit_frame_cache.
6689 * NEWS: Announce it.
6691 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6693 * record-btrace.c (record_btrace_set_replay)
6694 (record_btrace_goto_begin, record_btrace_goto_end)
6695 (record_btrace_goto): New.
6696 (init_record_btrace_ops): Initialize them.
6697 * NEWS: Announce it.
6699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6701 * record-btrace.c (record_btrace_find_new_threads)
6702 (record_btrace_thread_alive): New.
6703 (init_record_btrace_ops): Initialize to_find_new_threads and
6706 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6708 * record-btrace.c (record_btrace_resume): New.
6709 (record_btrace_wait): New.
6710 (init_record_btrace_ops): Initialize to_wait and to_resume.
6712 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6714 * record-btrace.c (record_btrace_xfer_partial)
6715 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6716 (record_btrace_allow_memory_access): New.
6717 (init_record_btrace_ops): Initialize new methods.
6718 * target.c (raw_memory_xfer_partial): Bail out if target reports
6719 that this memory is not available.
6721 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6723 * target.h (target_ops) <to_insert_breakpoint>
6724 <to_remove_breakpoint>: Add target_ops parameter.
6725 (forward_target_insert_breakpoint): New.
6726 (forward_target_remove_breakpoint): New.
6727 (memory_remove_breakpoint, memory_insert_breakpoint):
6728 Add target_ops parameter.
6729 * target.c (target_insert_breakpoint): Split into this and ...
6730 (forward_target_insert_breakpoint): ... this.
6731 (target_remove_breakpoint): Split into this and ...
6732 (forward_target_remove_breakpoint): ... this.
6733 (debug_to_insert_breakpoint): Add target_ops parameter.
6734 Call forward_target_insert_breakpoint.
6735 (debug_to_remove_breakpoint): Add target_ops parameter.
6736 Call forward_target_remove_breakpoint.
6737 (update_current_target): Do not inherit or default to_insert_breakpoint
6738 and to_remove_breakpoint.
6739 * corelow.c (ignore): Add target_ops parameter.
6740 * exec.c (ignore): Add target_ops parameter.
6741 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6742 Add target_ops parameter.
6743 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6744 Add target_ops parameter.
6745 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6746 Add target_ops parameter.
6747 * record-full.c (record_full_beneath_to_insert_breakpoint)
6748 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6749 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6750 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6751 (record_full_core_remove_breakpoint): Add target_ops parameter.
6753 (record_full_beneath_to_insert_breakpoint_ops)
6754 (record_full_beneath_to_remove_breakpoint_ops)
6755 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6756 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6757 tmp_to_remove_breakpoint_ops,
6758 record_full_beneath_to_insert_breakpoint_ops, and
6759 record_full_beneath_to_remove_breakpoint_ops.
6760 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6761 (m32r_remove_breakpoint): Add target_ops parameter.
6762 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6763 Add target_ops parameter.
6764 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6765 Add target_ops parameter.
6767 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6768 Markus Metzger <markus.t.metzger@intel.com>
6770 * record-btrace.c: Include frame-unwind.h.
6771 (record_btrace_frame_unwind_stop_reason)
6772 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6773 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6775 (init_record_btrace_ops): Install it.
6777 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6779 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6782 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6784 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6787 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6789 * frame-unwind.c: Include target.h.
6790 (frame_unwind_try_unwinder): New function with code from ...
6791 (frame_unwind_find_by_frame): ... here. New variable
6792 unwinder_from_target, call also target_get_unwinder)
6793 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6794 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6795 * target.h (struct target_ops): New fields to_get_unwinder and
6796 to_get_tailcall_unwinder.
6797 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6799 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6801 * record-btrace.c (record_btrace_fetch_registers)
6802 (record_btrace_store_registers)
6803 (record_btrace_to_prepare_to_store): New.
6804 (init_record_btrace_ops): Add the above.
6806 2014-01-16 Tom Tromey <tromey@redhat.com>
6808 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6809 * target.h (struct target_ops) <to_prepare_to_store>: Add
6811 (target_prepare_to_store): Add argument.
6812 * target.c (debug_to_prepare_to_store): Add argument.
6813 (update_current_target): Update.
6814 * remote.c (remote_prepare_to_store): Add 'self' argument.
6815 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6816 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6817 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6818 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6820 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6821 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6822 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6823 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6824 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6826 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6828 * btrace.h (replay) <replay>: New.
6829 (btrace_is_replaying): New.
6830 * btrace.c (btrace_clear): Free replay iterator.
6831 (btrace_is_replaying): New.
6832 * record-btrace.c (record_btrace_is_replaying): New.
6833 (record_btrace_info): Print insn number if replaying.
6834 (record_btrace_insn_history): Start at replay position.
6835 (record_btrace_call_history): Start at replay position.
6836 (init_record_btrace_ops): Init to_record_is_replaying.
6838 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6840 * record-btrace.c (record_btrace_insn_history_range): Include
6842 (record_btrace_insn_history_from): Adjust range.
6843 (record_btrace_call_history_range): Include
6845 (record_btrace_call_history_from): Adjust range.
6846 * NEWS: Announce changes.
6848 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6850 * record.h (enum record_print_flag)
6851 <record_print_indent_calls>: New.
6852 * record.c (get_call_history_modifiers): Recognize /c modifier.
6853 (_initialize_record): Document /c modifier.
6854 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6855 Reorder fields. Optionally indent the function name. Update
6857 * NEWS: Announce changes.
6859 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6861 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6863 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6865 * btrace.c (ftrace_new_function): Start counting at one.
6866 * record-btrace.c (record_btrace_info): Adjust number of calls
6868 * NEWS: Announce it.
6870 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6872 * record-btrace.c (btrace_call_history_insn_range): Print
6873 insn range as [begin, end].
6875 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6877 * btrace.h (struct btrace_func_link): New.
6878 (enum btrace_function_flag): New.
6879 (struct btrace_inst): Rename to ...
6880 (struct btrace_insn): ...this. Update all users.
6881 (struct btrace_func) <ibegin, iend>: Remove.
6882 (struct btrace_func_link): New.
6883 (struct btrace_func): Rename to ...
6884 (struct btrace_function): ...this. Update all users.
6885 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6886 (number, level, flags>: New.
6887 (struct btrace_insn_iterator): Rename to ...
6888 (struct btrace_insn_history): ...this.
6890 (struct btrace_insn_iterator, btrace_call_iterator): New.
6891 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6892 (struct btrace_target_info) <begin, end, level>
6893 <insn_history, call_history>: New.
6894 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6895 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6896 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6897 (btrace_call_number, btrace_call_begin, btrace_call_end)
6898 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6899 (btrace_find_function_by_number, btrace_set_insn_history)
6900 (btrace_set_call_history): New.
6901 * btrace.c (btrace_init_insn_iterator)
6902 (btrace_init_func_iterator, compute_itrace): Remove.
6903 (ftrace_print_function_name, ftrace_print_filename)
6904 (ftrace_skip_file): Change
6906 (ftrace_init_func): Remove.
6907 (ftrace_debug): Use new btrace_function fields.
6908 (ftrace_function_switched): Also consider gaining and
6909 losing symbol information).
6910 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6911 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6912 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6914 (ftrace_new_function): Move. Remove debug print.
6915 (ftrace_update_lines, ftrace_update_insns): New.
6916 (ftrace_update_function): Check for call, ret, and jump.
6917 (compute_ftrace): Renamed to ...
6918 (btrace_compute_ftrace): ...this. Rewritten to compute call
6920 (btrace_fetch, btrace_clear): Updated.
6921 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6922 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6923 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6924 (btrace_call_number, btrace_call_begin, btrace_call_end)
6925 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6926 (btrace_find_function_by_number, btrace_set_insn_history)
6927 (btrace_set_call_history): New.
6928 * record-btrace.c (require_btrace): Use new btrace thread
6930 (record_btrace_info, btrace_insn_history)
6931 (record_btrace_insn_history, record_btrace_insn_history_range):
6932 Use new btrace thread info fields and new iterator.
6933 (btrace_func_history_src_line): Rename to ...
6934 (btrace_call_history_src_line): ...this. Use new btrace
6936 (btrace_func_history): Rename to ...
6937 (btrace_call_history): ...this. Use new btrace thread info
6938 fields and new iterator.
6939 (record_btrace_call_history, record_btrace_call_history_range):
6940 Use new btrace thread info fields and new iterator.
6942 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6944 * frame.h (frame_id_build_unavailable_stack_special): New.
6945 * frame.c (frame_id_build_unavailable_stack_special): New.
6947 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6949 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6950 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6951 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6953 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6954 (i386_insn_is_jump, i386_jmp_p): New.
6955 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6956 insn_is_jump to gdbarch.
6957 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6958 * gdbarch.h: Regenerated.
6959 * gdbarch.c: Regenerated.
6960 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6961 (default_insn_is_jump): New.
6962 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6963 (default_insn_is_jump): New.
6965 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6967 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6969 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
6970 (btrace_read_type) <btrace_read_new>: Change to ...
6971 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
6973 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6975 * common/linux-btrace.c (linux_read_btrace): Free trace from
6978 2014-01-15 Doug Evans <dje@google.com>
6980 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
6983 2014-01-15 Tom Tromey <tromey@redhat.com>
6985 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
6986 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
6987 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
6988 (set_objfile_main_name): New function.
6989 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
6990 language_of_main>: New fields.
6991 (set_objfile_main_name): Declare.
6992 * symtab.c (find_main_name): Loop over objfiles to find the main
6994 (set_main_name): Now static.
6995 (get_main_info): Add comment.
6996 * symtab.h (set_main_name): Don't declare.
6998 2014-01-15 Tom Tromey <tromey@redhat.com>
7000 * symtab.c (main_progspace_key): New global.
7001 (struct main_info): New.
7002 (name_of_main, language_of_main): Remove.
7003 (get_main_info, main_info_cleanup): New function.
7004 (set_main_name, main_name, main_language): Use get_main_info.
7005 (_initialize_symtab): Initialize main_progspace_key.
7007 2014-01-15 Tom Tromey <tromey@redhat.com>
7009 * dbxread.c (process_one_symbol): Update.
7010 * dwarf2read.c (read_partial_die): Update.
7011 * symfile.c (set_initial_language): Call main_language.
7012 * symtab.c (language_of_main): Now static.
7013 (set_main_name): Add 'lang' parameter.
7014 (find_main_name): Update.
7015 (main_language): New function.
7016 (symtab_observer_executable_changed): Update.
7017 * symtab.h (set_main_name): Update.
7018 (language_of_main): Remove.
7019 (main_language): Declare.
7021 2014-01-15 Tom Tromey <tromey@redhat.com>
7023 * symfile.c (init_entry_point_info): Use new "initialized" field.
7025 * objfiles.h (struct entry_point) <initialized>: New field.
7026 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7027 (struct objfile) <ei>: ...here. Remove.
7028 * objfiles.c (entry_point_address_query): Update.
7030 2014-01-15 Tom Tromey <tromey@redhat.com>
7032 * objfiles.c (entry_point_address_query): Relocate entry point
7034 (objfile_relocate1): Do not relocate entry point address.
7035 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7036 <the_bfd_section_index>: New field.
7037 * symfile.c (init_entry_point_info): Find the entry point's
7040 2014-01-15 Tom Tromey <tromey@redhat.com>
7042 * solib-frv.c (enable_break): Use entry_point_address_query.
7044 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7046 * NEWS: Add note on improved process record-replay on
7047 arm*-linux* targets.
7049 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7051 * arm-tdep.c (enum arm_record_result): New enum.
7052 (arm_record_unsupported_insn): New function.
7053 (arm_record_coproc_data_proc): Removed.
7054 (thumb2_record_ld_st_multiple): New function.
7055 (thumb2_record_ld_st_dual_ex_tbb): New function.
7056 (thumb2_record_data_proc_sreg_mimm): New function.
7057 (thumb2_record_ps_dest_generic): New function.
7058 (thumb2_record_branch_misc_cntrl): New function.
7059 (thumb2_record_str_single_data): New function.
7060 (thumb2_record_ld_mem_hints): New function.
7061 (thumb2_record_ld_word): New function.
7062 (thumb2_record_lmul_lmla_div): New function.
7063 (thumb2_record_decode_insn_handler): New function.
7064 (decode_insn): Add thumb32 instruction handlers.
7066 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7068 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7069 (struct arm_linux_record_tdep): Declare.
7070 (arm_canonicalize_syscall): New function.
7071 (arm_all_but_pc_registers_record): New function.
7072 (arm_linux_syscall_record): New function.
7073 (arm_linux_init_abi): Add syscall recording constructs.
7074 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7075 decoding. (arm_record_coproc_data_proc): Update arm syscall
7077 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7078 <arm_syscall_record>: New field.
7079 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7082 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7084 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7085 register for push instruction recording.
7087 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7089 * arm-tdep.c (thumb_record_misc): Update to correct logical
7090 error while recording ldm, ldmia and pop instructions.
7092 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7094 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7096 2014-01-15 Pedro Alves <palves@redhat.com>
7098 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7099 (go32_resume, go32_fetch_registers, store_register)
7100 (go32_store_registers, go32_prepare_to_store)
7101 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7102 (go32_create_inferior, go32_can_run, go32_terminal_init)
7103 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7106 2014-01-15 Tom Tromey <tromey@redhat.com>
7108 * target.h (async_callback_ftype): New typedef.
7109 (struct target_ops) <to_async>: Use it.
7111 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7113 * python/py-value.c (get_field_type): Remove unnecessary curly
7114 braces for single-statement if block.
7116 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7118 * python/py-type.c (convert_field): Add missing empty line
7121 2014-01-14 Doug Evans <dje@google.com>
7123 * symfile.h (expand_symtabs_matching): Renamed from
7124 expand_partial_symbol_names. Update prototype.
7125 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7126 * symfile.c (expand_symtabs_matching): Renamed from
7127 expand_partial_symbol_names. New args file_matcher, kind.
7128 Rename arg fun to symbol_matcher.
7129 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7130 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7131 ada_expand_partial_symbol_name.
7132 (ada_make_symbol_completion_list): Update to call
7133 expand_symtabs_matching.
7134 (ada_add_global_exceptions): Call expand_symtabs_matching.
7135 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7136 call map_symbol_filenames.
7137 * symtab.c (sources_info): Update to call map_symbol_filenames.
7138 (search_symbols): Call expand_symtabs_matching.
7139 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7140 (default_make_symbol_completion_list_break_on): Update to call
7141 expand_symtabs_matching.
7142 (make_source_files_completion_list): Update to call
7143 map_symbol_filenames.
7145 2014-01-14 Doug Evans <dje@google.com>
7147 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7148 (expand_symtabs_symbol_matcher_ftype): New typedef.
7149 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7150 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7151 * symfile.c (expand_partial_symbol_names): Update to use
7152 expand_symtabs_symbol_matcher_ftype.
7153 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7154 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7155 Arg name_matcher renamed to symbol_matcher.
7156 * psymtab.c (recursively_search_psymtabs): Update to use
7157 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7159 (expand_symtabs_matching_via_partial): Update to use
7160 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7161 Arg name_matcher renamed to symbol_matcher.
7163 2014-01-14 Doug Evans <dje@google.com>
7165 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7166 (map_partial_symbol_filenames): Ditto.
7167 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7168 (map_partial_symbol_filenames): Ditto.
7169 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7170 (map_partial_symbol_filenames): Ditto.
7171 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7172 (map_partial_symbol_filenames): Ditto.
7173 * symtab.c: Delete #include "psymtab.h".
7175 2014-01-14 Pedro Alves <palves@redhat.com>
7176 Tom Tromey <tromey@redhat.com>
7178 * infrun.c (use_displaced_stepping): Use find_record_target
7179 instead of RECORD_IS_USED.
7180 (adjust_pc_after_break): Use record_full_is_used instead of
7182 * record-btrace.c (record_btrace_open): Call record_preopen
7183 instead of checking RECORD_IS_USED.
7184 * record-full.c (record_full_shortname)
7185 (record_full_core_shortname): New globals.
7186 (record_full_is_used): New function.
7187 (find_full_open): Call record_preopen instead of checking
7189 (init_record_full_ops): Set the target's shortname to
7190 record_full_shortname.
7191 (init_record_full_core_ops): Set the target's shortname to
7192 record_full_core_shortname.
7193 * record-full.h (record_full_is_used): Declare.
7194 * record.c (find_record_target): Make extern.
7195 (record_preopen): New function.
7196 * record.h (RECORD_IS_USED): Delete macro.
7197 (find_record_target, record_preopen): Declare functions.
7199 2014-01-14 Yao Qi <yao@codesourcery.com>
7201 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7202 'len''s type to ULONGEST.
7203 (core_xfer_shared_libraries_aix): Likewise.
7204 * gdbarch.c, gdbarch.h: Regenerated.
7205 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7206 Change type of 'len' to ULONGEST.
7207 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7208 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7210 2014-01-14 Yao Qi <yao@codesourcery.com>
7212 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7213 type of 'len' to ULONGEST.
7214 (linux_xfer_osdata_processgroups): Likewise.
7215 (linux_xfer_osdata_threads): Likewise.
7216 (linux_xfer_osdata_fds): Likewise.
7217 (linux_xfer_osdata_isockets): Likewise.
7218 (linux_xfer_osdata_shm): Likewise.
7219 (linux_xfer_osdata_sem): Likewise.
7220 (linux_xfer_osdata_msg): Likewise.
7221 (linux_common_xfer_osdata): Likewise.
7222 (struct osdata_type) <getter>: Likewise.
7223 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7226 2014-01-14 Yao Qi <yao@codesourcery.com>
7228 * target.h (target_xfer_partial_ftype): Update.
7229 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7231 * aix-thread.c (aix_thread_xfer_partial): Change type of
7232 argument 'len' to ULONGEST.
7233 * auxv.c (procfs_xfer_auxv): Likewise.
7234 (ld_so_xfer_auxv): Likewise.
7235 (memory_xfer_auxv): Likewise.
7236 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7237 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7238 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7239 * corelow.c (core_xfer_partial): Likewise.
7240 * ctf.c (ctf_xfer_partial): Likewise.
7241 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7243 (darwin_read_dyld_info): Likewise.
7244 (darwin_xfer_partial): Likewise.
7245 * exec.c (section_table_xfer_memory_partial): Likewise.
7246 (exec_xfer_partial): Likewise.
7247 * exec.h (section_table_xfer_memory_partial): Update
7249 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7250 instead of plongest.
7251 (gnu_xfer_partial): Likewise.
7252 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7253 (ia64_hpux_xfer_solib_got): Likewise.
7254 (ia64_hpux_xfer_partial): Likewise.
7255 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7256 * inf-ptrace.c (inf_ptrace_xfer_partial):
7257 * inf-ttrace.c (inf_ttrace_xfer_partial):
7258 * linux-nat.c (linux_xfer_siginfo): Likewise.
7259 (linux_nat_xfer_partial): Likewise.
7260 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7261 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7262 * monitor.c (monitor_xfer_memory): Likewise.
7263 (monitor_xfer_partial): Likewise.
7264 * procfs.c (procfs_xfer_partial): Likewise.
7265 * record-full.c (record_full_xfer_partial): Likewise.
7266 (record_full_core_xfer_partial): Likewise.
7267 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7268 instead of plongest.
7269 (gdbsim_xfer_partial): Likewise.
7270 * remote.c (remote_xfer_partial): Likewise.
7271 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7272 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7274 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7275 (rs6000_xfer_shared_libraries): Likewise.
7276 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7277 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7278 (sparc_xfer_partial): Likewise.
7279 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7280 (spu_xfer_partial): Likewise.
7281 * spu-multiarch.c (spu_xfer_partial): Likewise.
7282 * target.c (target_read_live_memory): Likewise.
7283 (memory_xfer_live_readonly_partial): Likewise.
7284 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7285 (target_xfer_partial, default_xfer_partial): Likewise.
7286 (current_xfer_partial): Likewise.
7287 * tracepoint.c (tfile_xfer_partial): Likewise.
7288 * windows-nat.c (windows_xfer_memory): Likewise. Call
7289 pulongest instead of plongest.
7290 (windows_xfer_partial): Likewise.
7291 (windows_xfer_shared_libraries): Likewise.
7293 2014-01-14 Yao Qi <yao@codesourcery.com>
7295 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7296 target_xfer_partial_ftype.
7298 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7302 * valops.c (value_struct_elt_bitpos): New function
7303 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7304 object to 'None' if the field name is an empty string ("").
7305 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7306 attribute to look for a field when 'name' is 'None'.
7307 (get_field_type): New function
7309 2014-01-13 Doug Evans <dje@google.com>
7312 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7313 (try_open_dwop_file): Ditto.
7314 * gdb_bfd.c: #include "vec.h".
7315 (bfdp): New typedef.
7316 (struct gdb_bfd_data): New member included_bfds.
7317 (gdb_bfd_unref): Unref all included bfds.
7318 (gdb_bfd_record_inclusion): New function.
7319 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7321 2014-01-13 Tom Tromey <tromey@redhat.com>
7323 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7325 2014-01-13 Tom Tromey <tromey@redhat.com>
7327 * defs.h (use_windows): Remove.
7328 * gdb.c (main): Update.
7329 * main.c (captured_main, gdb_main): Update.
7330 * main.h (struct captured_main_args) <use_windows>: Remove.
7331 * top.c (use_windows): Remove.
7333 2014-01-13 Tom Tromey <tromey@redhat.com>
7335 * defs.h (deprecated_flush_hook): Remove.
7337 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7340 * linux-thread-db.c (try_thread_db_load): Add parameter
7341 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7342 (try_thread_db_load_from_pdir_1): Move it there from here.
7343 (try_thread_db_load_from_sdir): Update caller.
7344 (try_thread_db_load_from_dir): Move it there from here.
7346 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7348 * regformats/regdat.sh: Always rewrite the register file.
7350 2014-01-13 Pedro Alves <palves@redhat.com>
7352 * Makefile.in (CHECK_HEADERS): New variable.
7353 (check-headers:): New rule.
7355 2014-01-13 Tom Tromey <tromey@redhat.com>
7357 * cli/cli-setshow.c (do_set_command): Update.
7358 * defs.h (deprecated_set_hook): Remove.
7359 * top.c (deprecated_set_hook): Remove.
7361 2014-01-13 Pedro Alves <palves@redhat.com>
7363 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7364 the tracepoint if the PC is a pseudo-register.
7366 2014-01-13 Tom Tromey <tromey@redhat.com>
7368 * defs.h (XCALLOC): Remove.
7369 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7370 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7371 * dwarf2loc.c (allocate_piece_closure): Likewise.
7372 * elfread.c (elf_symfile_segments): Likewise.
7373 (elf_symfile_segments): Likewise.
7374 * gdbtypes.c (copy_type_recursive): Likewise.
7375 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7376 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7377 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7379 * mt-tdep.c (mt_gdbarch_init): Likewise.
7380 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7382 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7383 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7384 * registry.c (registry_alloc_data): Likewise.
7385 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7386 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7387 * serial.c (serial_fdopen_ops): Likewise.
7388 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7390 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7391 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7394 2014-01-13 Tom Tromey <tromey@redhat.com>
7396 * defs.h (XMALLOC): Remove.
7397 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7398 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7399 * cli-out.c (struct ui_out *): Likewise.
7400 * cli/cli-dump.c (add_dump_command): Likewise.
7401 (add_dump_command): Likewise.
7402 * complaints.c (get_complaints): Likewise.
7403 (find_complaint): Likewise.
7404 * dwarf2-frame.c (execute_cfa_program): Likewise.
7405 * dwarf2read.c (abbrev_table_read_table): Likewise.
7406 * gdbarch.sh: Likewise.
7407 * gdbarch.c: Rebuild.
7408 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7409 * interps.c (interp_new): Likewise.
7410 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7411 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7412 * mi/mi-console.c (mi_console_file_new): Likewise.
7413 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7414 * mi/mi-out.c (mi_out_new): Likewise.
7415 * mi/mi-parse.c (mi_parse): Likewise.
7416 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7417 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7418 * observer.c (xalloc_observer_list_node): Likewise.
7419 * regcache.c (regcache_xmalloc_1): Likewise.
7420 * reggroups.c (reggroup_new): Likewise.
7421 (_initialize_reggroup): Likewise.
7422 * registry.c (register_data_with_cleanup): Likewise.
7423 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7424 * ser-base.c (serial_ttystate): Likewise.
7425 * ser-mingw.c (make_pipe_state): Likewise.
7426 * ser-pipe.c (pipe_open): Likewise.
7427 * serial.c (serial_open): Likewise.
7428 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7429 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7430 (tui_alloc_win_info): Likewise.
7431 (tui_add_content_elements): Likewise.
7432 * tui/tui-file.c (tui_file_new): Likewise.
7433 * tui/tui-out.c (tui_out_new): Likewise.
7434 * ui-file.c (mem_file_new): Likewise.
7435 * ui-out.c (push_level): Likewise.
7436 (make_cleanup_ui_out_end): Likewise.
7437 (append_header_to_list): Likewise.
7438 (ui_out_new): Likewise.
7439 * user-regs.c (user_reg_add_builtin): Likewise.
7441 2014-01-13 Tom Tromey <tromey@redhat.com>
7443 * defs.h (XZALLOC): Remove.
7444 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7445 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7446 (get_ada_tasks_inferior_data): Likewise.
7447 * auto-load.c (get_auto_load_pspace_data): Likewise.
7448 * auxv.c (get_auxv_inferior_data): Likewise.
7449 * bfd-target.c (target_bfd_reopen): Likewise.
7450 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7451 (deprecated_insert_raw_breakpoint): Likewise.
7452 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7453 * corelow.c (core_open): Likewise.
7454 * darwin-nat.c (darwin_check_new_threads): Likewise.
7455 (darwin_attach_pid): Likewise.
7456 * dummy-frame.c (dummy_frame_push): Likewise.
7457 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7458 * dwarf2loc.c (allocate_piece_closure): Likewise.
7459 * elfread.c (elf_symfile_segments): Likewise.
7460 * eval.c (ptrmath_type_p): Likewise.
7461 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7462 * gdbtypes.c (alloc_type_arch): Likewise.
7463 (alloc_type_instance): Likewise.
7464 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7465 * inf-child.c (inf_child_can_use_agent): Likewise.
7466 * inflow.c (get_inflow_inferior_data): Likewise.
7467 * infrun.c (save_infcall_suspend_state): Likewise.
7468 * jit.c (jit_reader_load): Likewise.
7469 (get_jit_objfile_data): Likewise.
7470 (get_jit_program_space_data): Likewise.
7471 (jit_object_open_impl): Likewise.
7472 (jit_symtab_open_impl): Likewise.
7473 (jit_block_open_impl): Likewise.
7474 (jit_frame_sniffer): Likewise.
7475 * linux-fork.c (add_fork): Likewise.
7476 * maint.c (make_command_stats_cleanup): Likewise.
7477 * objfiles.c (get_objfile_pspace_data): Likewise.
7478 * opencl-lang.c (struct lval_closure): Likewise.
7479 * osdata.c (osdata_start_osdata): Likewise.
7480 * progspace.c (new_address_space): Likewise.
7481 (add_program_space): Likewise.
7482 * remote-sim.c (get_sim_inferior_data): Likewise.
7483 * sh-tdep.c (sh_gdbarch_init): Likewise.
7484 * skip.c (Ignore): Likewise.
7485 (skip_delete_command): Likewise.
7486 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7487 (library_list_start_library): Likewise.
7488 (solib_aix_current_sos): Likewise.
7489 * solib-darwin.c (get_darwin_info): Likewise.
7490 (darwin_current_sos): Likewise.
7491 * solib-dsbt.c (get_dsbt_info): Likewise.
7492 * solib-ia64-hpux.c (new_so_list): Likewise.
7493 (ia64_hpux_get_solib_linkage_addr): Likewise.
7494 * solib-spu.c (append_ocl_sos): Likewise.
7495 (spu_current_sos): Likewise.
7496 * solib-svr4.c (get_svr4_info): Likewise.
7497 (svr4_keep_data_in_core): Likewise.
7498 (library_list_start_library): Likewise.
7499 (svr4_default_sos): Likewise.
7500 (svr4_read_so_list): Likewise.
7501 * solib-target.c (library_list_start_library): Likewise.
7502 (solib_target_current_sos): Likewise.
7503 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7504 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7505 * symfile.c (default_symfile_segments): Likewise.
7506 * target-descriptions.c (tdesc_data_init): Likewise.
7507 (tdesc_create_reg): Likewise.
7508 (struct tdesc_type *): Likewise.
7509 (tdesc_create_vector): Likewise.
7510 (tdesc_set_struct_size): Likewise.
7511 (struct tdesc_type *): Likewise.
7512 (tdesc_free_feature): Likewise.
7513 (tdesc_create_feature): Likewise.
7514 * windows-nat.c (windows_add_thread): Likewise.
7515 (windows_make_so): Likewise.
7516 * xml-support.c (gdb_xml_body_text): Likewise.
7517 (gdb_xml_create_parser_and_cleanup): Likewise.
7518 (xml_process_xincludes): Likewise.
7519 * xml-syscall.c (allocate_syscalls_info): Likewise.
7520 (syscall_create_syscall_desc): Likewise.
7522 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7524 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7525 function, with code from i386_stap_parse_special_token.
7526 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7527 (i386_stap_parse_special_token): Move code to the two functions
7530 2014-01-09 Pedro Alves <palves@redhat.com>
7531 Hui Zhu <hui@codesourcery.com>
7534 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7535 bp_err_string. Don't mark the location shlib_disabled if the
7536 error thrown wasn't a generic or memory error. Catch errors
7537 thrown while inserting breakpoints in overlayed code. Output
7538 error message of software breakpoints.
7539 * remote.c (remote_insert_breakpoint): If this breakpoint has
7540 target-side commands but this stub doesn't support Z0 packets,
7541 throw NOT_SUPPORTED_ERROR error.
7542 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7543 * target.h (target_insert_breakpoint): Extend comment.
7544 (target_insert_hw_breakpoint): Add comment.
7546 2014-01-08 Pedro Alves <palves@redhat.com>
7548 * remote.c (remote_add_thread): Add threads silently if starting
7550 (remote_notice_new_inferior): If in all-stop, and starting up,
7551 don't call notice_new_inferior.
7552 (get_current_thread): New function, factored out from ...
7553 (add_current_inferior_and_thread): ... this. Adjust.
7554 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7555 found any thread, then select the remote's current thread as GDB's
7558 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7560 * NEWS: Create a new section for the next release branch.
7561 Rename the section of the current branch, now that it has
7564 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7566 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7567 * version.in: Bump version to 7.7.50.DATE-cvs.
7569 2014-01-08 Yao Qi <yao@codesourcery.com>
7571 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7572 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7573 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7575 2014-01-08 Yao Qi <yao@codesourcery.com>
7577 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7578 return value of bfd_get_filename to symbol_file_add_from_bfd.
7580 2014-01-08 Pierre Muller <muller@sourceware.org>
7583 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7584 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7585 to prim_record_mininal_symbol_and_info.
7586 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7587 in call to prim_record_minimal_symbol_and_info.
7588 (read_pe_exported_syms): Set index field of section_data.
7590 2014-01-07 Andrew Pinski <apinski@cavium.com>
7592 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7593 * features/aarch64.c: Regenerate.
7595 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7597 * target.c (return_null): Define.
7598 (update_current_target): Use it instead of return_zero for
7599 functions that return a pointer.
7601 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7603 * source.c (add_path): Fix check for duplicated paths in the previously
7606 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7608 * ada-lang.c: Remove duplicated include statements.
7609 * alphabsd-nat.c: Ditto.
7610 * amd64-darwin-tdep.c: Ditto.
7611 * amd64fbsd-nat.c: Ditto.
7612 * auto-load.c: Ditto.
7614 * breakpoint.c: Ditto.
7616 * fork-child.c: Ditto.
7617 * gdb_usleep.c: Ditto.
7618 * i386-darwin-tdep.c: Ditto.
7619 * i386fbsd-nat.c: Ditto.
7621 * inferior.c: Ditto.
7623 * linux-nat.c: Ditto.
7624 * linux-tdep.c: Ditto.
7625 * m68kbsd-nat.c: Ditto.
7626 * m68klinux-nat.c: Ditto.
7627 * microblaze-tdep.c: Ditto.
7628 * mips-linux-tdep.c: Ditto.
7629 * mn10300-tdep.c: Ditto.
7630 * nto-tdep.c: Ditto.
7631 * opencl-lang.c: Ditto.
7633 * printcmd.c: Ditto.
7634 * regcache.c: Ditto.
7635 * remote-m32r-sdi.c: Ditto.
7639 * tilegx-linux-nat.c: Ditto.
7640 * tilegx-tdep.c: Ditto.
7641 * tracepoint.c: Ditto.
7643 * vaxbsd-nat.c: Ditto.
7644 * windows-nat.c: Ditto.
7645 * xtensa-tdep.c: Ditto.
7647 2014-01-07 Yao Qi <yao@codesourcery.com>
7649 * spu-linux-nat.c (_initialize_spu_nat): Declare.
7651 2014-01-07 Yao Qi <yao@codesourcery.com>
7652 Joel Brobecker <brobecker@adacore.com>
7654 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7655 (pdc_write_regs): Likewise.
7656 (fetch_regs_kernel_thread): Likewise.
7657 (store_regs_kernel_thread): Likewise.
7659 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7661 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7662 tagged type objects to their actual type.
7664 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7666 * ada-valprint.c (print_field_values): Add "language" parameter.
7667 Update calls to print_field_values and print_variant_part.
7668 Pass new parameter "language" in call to val_print instead
7669 of "current_language". Replace call to ada_val_print by call
7671 (print_variant_part): Add "language" parameter.
7672 (ada_val_print_struct_union): Update call to print_field_values.
7674 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7676 * ada-valprint.c (ui_memcpy): Delete.
7677 (ada_print_floating): Update documentation. Add empty line
7678 between between function documentation and implementation.
7679 Delete variable "buffer". Use ui_file_xstrdup in place of
7680 ui_file_put. Minor adjustments following this change.
7682 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7684 * ada-valprint.c (ada_val_print_string): New function,
7685 extracted from ada_val_print_array.
7686 (ada_val_print_array): Replace extracted code by call
7687 to ada_val_print_string followed by a return. Move
7688 "else" branch to the function's top block.
7690 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7692 * ada-valprint.c (ada_val_print_array): Move implementation
7693 down. Rename parameter "offset" and "val" into "offset_aligned"
7694 and "original_value" respectively. Add parameter "offset".
7696 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7698 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7699 re-organizing the code. Change the "???" message printed
7700 when target type is a TYPE_CODE_UNDEF into
7701 "<ref to undefined type>".
7703 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7705 * ada-valprint.c (print_record): Delete, implementation inlined...
7706 (ada_val_print_struct_union): ... here. Remove call to
7707 ada_check_typedef in inlined implementation.
7709 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7711 * ada-valprint.c (ada_val_print_gnat_array): New function,
7712 extracted from ada_val_print_1;
7713 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7714 (ada_val_print_flt, ada_val_print_struct_union)
7715 (ada_val_print_ref): Likewise.
7716 (ada_val_print_1): Delete variables i and elttype.
7717 Replace extracted-out code by call to corresponding
7720 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7722 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7724 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7726 * ada-valprint.c (ada_val_print_1): Replace calls to
7727 ada_val_print_1 by calls to val_print.
7729 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7731 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7732 Update calls to self accordingly. Replace calls to c_val_print
7733 by calls to val_print.
7735 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7737 * ada-valprint.c (print_record): Delete declaration.
7738 (adjust_type_signedness, ada_val_print_1): Likewise.
7739 (ada_val_print): Move function implementation down.
7740 (print_variant_part, print_field_values, print_record):
7741 Move function implementation up.
7743 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7745 * python/py-type.c (typy_get_name): New function.
7746 (type_object_getset): Add entry for attribute "name".
7747 * NEWS: Add entry mentioning this new attribute.
7749 2014-01-07 Yao Qi <yao@codesourcery.com>
7751 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7754 2014-01-07 Yao Qi <yao@codesourcery.com>
7756 * gnu-nat.c (info_port_rights): Add qualifier const to
7759 2014-01-07 Yao Qi <yao@codesourcery.com>
7761 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7763 2014-01-07 Yao Qi <yao@codesourcery.com>
7765 * gnu-nat.c (make_inf) Update declaration.
7766 (make_inf): Make it static.
7767 (inf_set_traced): Likewise.
7768 (inf_port_to_thread, inf_task_died_status): Likewise.
7770 2014-01-07 Yao Qi <yao@codesourcery.com>
7772 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7774 2014-01-07 Yao Qi <yao@codesourcery.com>
7776 * gnu-nat.c (_initialize_gnu_nat): Declare.
7778 2014-01-07 Yao Qi <yao@codesourcery.com>
7780 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7782 (struct gdbarch_info) <byte_order>: Change type to
7784 <byte_order_for_code>: Likewise.
7785 * gdbarch.c, gdbarch.h: Regenerated.
7787 2014-01-06 Sasha Smundak <asmundak@google.com>
7789 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7791 2014-01-06 Tom Tromey <tromey@redhat.com>
7793 * doublest.c (convert_doublest_to_floatformat): Use const, not
7795 * somread.c (som_symtab_read): Likewise.
7797 2014-01-07 Hui Zhu <hui@codesourcery.com>
7799 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7800 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7801 (gdb_bfd_fopen): Ditto.
7802 (gdb_bfd_openr): Ditto.
7803 (gdb_bfd_openw): Ditto.
7804 (gdb_bfd_openr_iovec): Ditto.
7805 (gdb_bfd_fdopenr): Ditto.
7806 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7807 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7809 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7811 * symfile-mem.c (symbol_file_add_from_memory): Removed
7812 gdb_bfd_stash_filename.
7814 2014-01-03 Doug Evans <dje@google.com>
7816 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7819 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7821 Update year range in copyright notice of all files.
7823 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7825 * top.c (print_gdb_version): Set copyright year to 2014.
7827 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7829 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7831 For older changes see ChangeLog-2013.
7837 version-control: never