1 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
5 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
6 (alphanbsd_aout_gregset): Likewise.
7 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
8 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
10 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
11 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
13 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
14 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
15 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
16 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
17 * m88k-tdep.c (m88k_gregset): Likewise.
18 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
19 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
20 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
21 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
22 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
23 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
24 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
25 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
26 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
28 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
29 * sh-tdep.h (sh_corefile_gregset): Likewise.
30 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
31 * vax-tdep.c (vax_gregset): Likewise.
33 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
35 Fix TLS access for -static -pthread.
36 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
37 (try_thread_db_load_1): Initialize it.
38 (thread_db_get_thread_local_address): Call it if LM is zero.
39 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
40 * target.h (struct target_ops) (to_get_thread_local_address): Add
41 load_module_addr comment.
43 2014-05-21 Pedro Alves <palves@redhat.com>
45 * dcache.c (dcache_read_memory_partial): If reading the cache line
46 fails, fallback to reading just the memory the caller wanted.
48 2014-05-20 Doug Evans <dje@google.com>
50 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
51 instead of get_current_arch.
53 2014-05-20 Pedro Alves <palves@redhat.com>
55 * NEWS: Mention that compare-sections now works with all targets.
57 * remote.c (PACKET_qCRC): New enum value.
58 (remote_verify_memory): Don't send qCRC if the target has no
59 execution. Use packet_support/packet_ok. If the target doesn't
60 support the qCRC packet, fallback to a deep memory copy.
61 (compare_sections_command): Say "target image" instead of "remote
63 (_initialize_remote): Add PACKET_qCRC to the list of config
64 packets that have no associated command. Extend comment.
65 * target.c (simple_verify_memory, default_verify_memory): New
67 * target.h (struct target_ops) <to_verify_memory>: Default to
68 default_verify_memory.
69 (simple_verify_memory): New declaration.
70 * target-delegates.c: Regenerate.
72 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
74 * record-btrace.c (record_btrace_step_thread): Check for empty history.
76 2014-05-20 Hui Zhu <hui@codesourcery.com>
77 Yao Qi <yao@codesourcery.com>
80 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
81 and change address of sp and pc.
83 2014-05-19 Tom Tromey <tromey@redhat.com>
85 * gdbtypes.c (rank_function): Use XNEWVEC.
86 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
88 2014-05-19 Doug Evans <dje@google.com>
90 * dwarf2read.c (build_type_psymtabs_1): Renamed from
91 build_type_unit_groups and moved closer to only caller. Remove
92 arguments. All references updated. Remove outdated .gdb_index
94 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
95 build_type_psymtabs_1.
97 2014-05-19 Doug Evans <dje@google.com>
99 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
100 n_type_unit_groups, all_type_unit_groups. All uses removed.
101 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
102 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
103 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
104 (add_type_unit_group_to_table): Delete.
106 2014-05-19 Doug Evans <dje@google.com>
108 * eval.c (evaluate_subexp_standard): Add some comments.
110 2014-05-17 Doug Evans <xdje42@gmail.com>
112 * progspace.c (remove_program_space): Delete, unused.
113 * progspace.h (remove_program_space): Ditto.
115 2014-05-17 Doug Evans <xdje42@gmail.com>
117 * inferior.c (prune_inferiors): Fix comment.
118 (remove_inferior_command): Call prune_program_spaces.
120 2014-05-16 Doug Evans <dje@google.com>
122 New command line option -D.
124 * main.c (set_gdb_data_directory): New function.
125 (captured_main): Recognize -D. Flag error for --data-directory "".
126 Call set_gdb_data_directory.
127 (print_gdb_help): Print --data-directory, -D.
128 * main.h (set_gdb_data_directory): Declare.
129 * top.c (staged_gdb_datadir): New static global.
130 (set_gdb_datadir): Call set_gdb_data_directory
131 (show_gdb_datadir): New function.
132 (init_main): Update init of data-directory parameter.
134 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
136 Import the "dirfd" gnulib module.
137 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
138 * gnulib/aclocal.m4: Update.
139 * gnulib/config.in: Update.
140 * gnulib/configure: Update.
141 * gnulib/import/Makefile.am: Update.
142 * gnulib/import/Makefile.in: Update.
143 * gnulib/import/dirfd.c: New.
144 * gnulib/import/m4/dirfd.m4: New.
145 * gnulib/import/m4/gnulib-cache.m4: Update.
146 * gnulib/import/m4/gnulib-comp.m4: Update.
148 2014-05-16 Pierre Muller <muller@sourceware.org>
149 Yao Qi <yao@codesourcery.com>
151 * valprint.c (print_wchar): Move the code on checking whether
152 W is a printable wide char to the default branch of switch
153 statement below. Call wchar_printable instead of gdb_iswprint.
155 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
157 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
158 ldr.w and ldrd instructions.
160 2014-05-15 Doug Evans <dje@google.com>
162 * dwarf2read.c (read_structure_type): Delete outdated comments.
164 2014-05-14 Tom Tromey <tromey@redhat.com>
166 * macrocmd.c (print_macro_definition): Reindent.
168 2014-05-13 Doug Evans <xdje42@gmail.com>
170 * python/py-cmd.c (cmdpy_completer): Add comment.
171 (completers): Make const.
173 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
175 * infrun.c (resume): Remove should_resume (unused). Move up
176 declaration of resume_ptid.
178 2014-05-13 Tom Tromey <tromey@redhat.com>
180 * language.h (unop_type_check): Remove.
181 (binop_type_check): Don't declare.
183 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
185 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
186 call to regcache_raw_collect.
188 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
190 * mi/mi-console.c (mi_console_raw_packet): Use the value from
191 mi_console->quote as the quoting character.
193 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
195 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
197 2014-04-29 Tom Tromey <tromey@redhat.com>
199 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
202 2014-05-07 Kyle McMartin <kyle@redhat.com>
204 Pushed by Joel Brobecker <brobecker@adacore.com>.
205 * aarch64-tdep.c (aarch64_software_single_step): New function.
206 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
207 with aarch64_software_single_step.
209 2014-05-05 Joel Brobecker <brobecker@adacore.com>
213 2014-05-05 Keith Seitz <keiths@redhat.com>
215 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
216 variable or history value is successfully parsed.
218 2014-05-05 Yao Qi <yao@codesourcery.com>
219 Pedro Alves <palves@redhat.com>
221 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
222 address of blocks that intersects the requested range. Trim
223 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
225 * ctf.c (ctf_xfer_partial): Likewise.
227 2014-05-05 Yao Qi <yao@codesourcery.com>
229 * printcmd.c (display_command): Remove the check to
230 target_has_execution.
232 2014-05-03 Mark Kettenis <kettenis@gnu.org>
234 * ppcobsd-nat.c: Include "obsd-nat.h".
235 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
237 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
239 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
241 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
242 and 16-bit signed and unsigned arguments. Update comment.
243 (stap_parse_probe_arguments): Extend code to handle such
244 arguments. Use warning instead of complaint to notify about
245 unrecognized bitness.
247 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
250 * stap-probe.c (stap_parse_probe_arguments): Simplify
251 check for non-prefixed probes (i.e., probes whose
252 arguments do not start with "N@"). Always set the
253 argument type to a sane value.
255 2014-05-01 David Taylor <dtaylor@emc.com>
257 * remote.c (compare_sections_command): Add -r option to compare
258 all loadable read-only sections.
260 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
262 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
263 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
265 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
266 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
267 Remove unused CORE_ADDR argument. Update all callers.
269 2014-04-29 Pedro Alves <palves@redhat.com>
271 * remote.c (struct packet_config) <detect>: Extend comment.
272 (add_packet_config_cmd): Don't set the config's detect or support
274 (init_all_packet_configs): Also initialize the config's 'detect'
276 (reset_all_packet_configs_support): New function.
277 (remote_open_1): Call reset_all_packet_configs_support instead of
278 init_all_packet_configs.
279 (_initialize_remote): Initialize all packet configs. Assert that
280 all packets have an associated command, except a few known
283 2014-04-28 Joel Brobecker <brobecker@adacore.com>
285 * dwarf2read.c (read_subrange_type): Handle dynamic
286 DW_AT_lower_bound attributes.
288 2014-04-28 Joel Brobecker <brobecker@adacore.com>
290 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
291 dynamic bounds before computing its upper bound.
292 (ada_discrete_type_low_bound): Same as above with the lower bound.
294 2014-04-28 Joel Brobecker <brobecker@adacore.com>
296 * dwarf2read.c (is_dynamic_type): Return true for dynamic
297 range types. Adjust the array handling implementation to
298 take advantage of this change.
299 (resolve_dynamic_range): New function, mostly extracted from
300 resolve_dynamic_bounds.
301 (resolve_dynamic_array): New function, mostly extracted from
302 resolve_dynamic_bounds.
303 (resolve_dynamic_bounds): Delete.
304 (resolve_dynamic_type): Reimplement. Add handling of
305 TYPE_CODE_RANGE types.
307 2014-04-28 Joel Brobecker <brobecker@adacore.com>
309 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
310 handling of parallel ___XA types.
312 2014-04-28 Joel Brobecker <brobecker@adacore.com>
314 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
315 unnecessary second call to static_unwrap_type.
317 2014-04-27 Hui Zhu <hui@codesourcery.com>
319 * stack.c (print_frame_info): Call do_gdb_disassembly with
320 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
322 2014-04-26 Doug Evans <xdje42@gmail.com>
324 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
326 2014-04-25 Pedro Alves <palves@redhat.com>
329 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
330 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
331 and newline from built string.
332 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
333 (linux_ptrace_attach_fail_reason): ... this.
334 * linux-nat.c (linux_nat_attach): Adjust to use
335 linux_ptrace_attach_fail_reason.
337 2014-04-25 Pedro Alves <palves@redhat.com>
339 * remote.c (struct remote_state): Remove multi_process_aware,
340 non_stop_aware, cond_tracepoints, cond_breakpoints,
341 breakpoint_commands, fast_tracepoints, static_tracepoints,
342 install_in_trace, disconnected_tracing,
343 enable_disable_tracepoints, string_tracing, and
344 augmented_libraries_svr4_read fields.
345 (remote_multi_process_p): Move further below in the file.
346 (struct packet_config): Add comments.
347 (update_packet_config): Delete function.
348 (show_packet_config_cmd): Use packet_config_support.
349 (add_packet_config_cmd): Use NULL as set callback.
350 (packet_ok): "set remote foo-packet"-style commands no longer
351 change config->supported -- adjust.
352 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
353 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
354 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
355 (PACKET_QNonStop, PACKET_multiprocess_feature)
356 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
357 (PACKET_DisconnectedTracing_feature)
358 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
359 (set_remote_protocol_packet_cmd): Delete function.
360 (packet_config_support, packet_support): New functions.
361 (set_remote_protocol_Z_packet_cmd): Don't call
362 update_packet_config.
363 (remote_query_attached, remote_pass_signals)
364 (remote_program_signals, remote_threads_info)
365 (remote_threads_extra_info, remote_start_remote): Use
367 (remote_start_remote): Use packet_config_support and
369 (init_all_packet_configs): Set all packets to unknown support,
370 instead of calling update_packet_config.
371 (remote_check_symbols): Use packet_support.
372 (remote_supported_packet): Unconditionally set the packet config's
374 (remote_multi_process_feature, remote_non_stop_feature)
375 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
376 (remote_breakpoint_commands_feature)
377 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
378 (remote_install_in_trace_feature)
379 (remote_disconnected_tracing_feature)
380 (remote_enable_disable_tracepoint_feature)
381 (remote_string_tracing_feature)
382 (remote_augmented_libraries_svr4_read_feature): Delete functions.
383 (remote_protocol_features): Adjust to use remote_supported_packet
384 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
385 "ConditionalTracepoints", "ConditionalBreakpoints",
386 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
387 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
388 "EnableDisableTracepoints", and "tracenz".
389 (remote_query_supported): Use packet_support.
390 (remote_open_1): Adjust.
391 (extended_remote_attach_1): Use packet_support. Switch on the
392 result of packet_ok instead of checking whether the packet ended
394 (remote_vcont_resume): Use packet_support.
395 (remote_resume, remote_stop_ns, fetch_register_using_p)
396 (remote_prepare_to_store, store_register_using_P)
397 (check_binary_download, remote_write_bytes): Use packet_support.
398 (remote_vkill): Use packet_support. Switch on the result of
399 packet_ok instead of checking whether the packet ended up
401 (extended_remote_supports_disable_randomization): Use
403 (extended_remote_run): Switch on the result of packet_ok instead
404 of checking whether the packet ended up disabled.
405 (remote_insert_breakpoint, remote_remove_breakpoint)
406 (remote_insert_watchpoint, remote_remove_watchpoint)
407 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
409 (remote_search_memory): Use packet_config_support.
410 (remote_get_thread_local_address, remote_get_tib_address)
411 (remote_hostio_send_command, remote_can_execute_reverse): Use
413 (remote_supports_cond_tracepoints)
414 (remote_supports_cond_breakpoints)
415 (remote_supports_fast_tracepoints)
416 (remote_supports_static_tracepoints)
417 (remote_supports_install_in_trace)
418 (remote_supports_enable_disable_tracepoint)
419 (remote_supports_string_tracing)
420 (remote_can_run_breakpoint_commands): Rewrite, checking whether
421 the packet config says the feature is enabled or disabled.
422 (remote_download_tracepoint, remote_trace_set_readonly_regions)
423 (remote_get_trace_status): Use packet_support.
424 (remote_set_disconnected_tracing): Adjust to check whether the
425 feature is enabled with packet_support.
426 (remote_set_trace_buffer_size, remote_use_agent)
427 (remote_can_use_agent, remote_supports_btrace): Use
429 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
430 Use packet_config_support.
431 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
432 the packet config says the feature is enabled or disabled.
433 (set_range_stepping): Use packet_support.
435 2014-04-25 Tom Tromey <tromey@redhat.com>
437 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
440 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
442 * NEWS: Mention support for C99 variable length arrays.
444 2014-04-24 Joel Brobecker <brobecker@adacore.com>
446 * ada-lang.c (standard_exc): Expand introductory comment.
448 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
449 Walfred Tedeschi <walfred.tedeschi@intel.com>
451 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
453 (amd64_linux_read_description): Add code to handle AVX512 xstate
454 mask and return respective tdesc.
455 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
456 and features/i386/x32-avx512-linux.c.
457 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
458 (amd64_linux_core_read_description): Add code to handle AVX512
459 xstate mask and return respective tdesc.
460 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
461 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
463 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
464 (tdesc_amd64_avx512_linux): New prototype.
465 (tdesc_x32_avx512_linux): Likewise.
466 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
467 features/i386/x32-avx512.c.
468 (amd64_ymm_avx512_names): New register names for pseudo
470 (amd64_ymmh_avx512_names): New register names for raw registers
472 (amd64_k_names): New register names for K registers.
473 (amd64_zmmh_names): New register names for ZMM raw registers.
474 (amd64_zmm_names): New registers names for ZMM pseudo registers.
475 (amd64_xmm_avx512_names): New register names for XMM16-31
477 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
479 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
480 if feature is present.
481 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
482 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
483 (AMD64_NUM_REGS): Adjust to new number of registers.
484 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
485 registers supplied via XSTATE by AVX512 registers.
486 (i386_linux_read_description): Add case for AVX512.
487 * i386-linux-tdep.c: Include i386-avx512-linux.c.
488 (i386_linux_gregset_reg_offset): Add AVX512 registers.
489 (i386_linux_core_read_description): Add case for AVX512.
490 (i386_linux_init_abi): Install supported register note section
492 (_initialize_i386_linux_tdep): Add call to tdesc init function for
494 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
495 registers to be number of zmm7h + 1.
496 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
497 * i386-tdep.c: Include features/i386/i386-avx512.c.
498 (i386_zmm_names): Add ZMM pseudo register names array.
499 (i386_zmmh_names): Add ZMM raw register names array.
500 (i386_k_names): Add K raw register names array.
501 (num_lower_zmm_regs): Add constant for the number of lower ZMM
502 registers. AVX512 has 16 more ZMM registers than there are YMM
504 (i386_zmmh_regnum_p): Add function to look up register number of
506 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
507 (i386_k_regnum_p): Likewise for K raw registers.
508 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
509 registers added by AVX512.
510 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
511 registers added by AVX512.
512 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
514 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
515 (i386_pseudo_register_name): Add ZMM pseudo registers.
516 (i386_zmm_type): Construct and return vector registers type for ZMM
518 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
519 ZMM0-31 pseudo registers and K registers.
520 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
521 and YMM16-31 registers from register cache.
522 (i386_pseudo_register_write): Add code to write K, ZMM and
524 (i386_register_reggroup_p): Add code to include/exclude AVX512
525 registers in/from respective register groups.
526 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
527 registers if feature is present in xcr0.
528 (i386_gdbarch_init): Add code to initialize AVX512 feature
529 variables in tdep structure, wire in pseudo registers and call
530 initialize_tdesc_i386_avx512.
531 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
533 (i386_regnum): Add AVX512 registers.
534 (I386_SSE_NUM_REGS): New define for number of SSE registers.
535 (I386_AVX_NUM_REGS): Likewise for AVX registers.
536 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
537 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
539 (i386_xmm_avx512_regnum_p): New prototype for register look up.
540 (i386_ymm_avx512_regnum_p): Likewise.
541 (i386_k_regnum_p): Likewise.
542 (i386_zmm_regnum_p): Likewise.
543 (i386_zmmh_regnum_p): Likewise.
544 * i387-tdep.c : Update year in copyright notice.
545 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
547 (XSAVE_YMM_AVX512_ADDR): New macro.
548 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
550 (XSAVE_XMM_AVX512_ADDR): New macro.
551 (xsave_avx512_k_offset): New table for K register offsets in
553 (XSAVE_AVX512_K_ADDR): New macro.
554 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
556 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
557 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
559 (i387_collect_xsave): Add code to collect AVX512 registers from
561 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
562 of XMM16-31 registers.
563 (I387_NUM_K_REGS): New define for number of K registers.
564 (I387_K0_REGNUM): New define for K0 register number.
565 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
566 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
567 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
569 (I387_YMM16H_REGNUM): New define for YMM16H register number.
570 (I387_XMM16_REGNUM): New define for XMM16 register number.
571 (I387_YMM0_REGNUM): New define for YMM0 register number.
572 (I387_KEND_REGNUM): New define for last K register number.
573 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
574 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
576 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
578 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
580 * features/Makefile: Add AVX512 related files.
581 * features/i386/32bit-avx512.xml: New file.
582 * features/i386/64bit-avx512.xml: Likewise.
583 * features/i386/amd64-avx512-linux.c: Likewise.
584 * features/i386/amd64-avx512-linux.xml: Likewise.
585 * features/i386/amd64-avx512.c: Likewise.
586 * features/i386/amd64-avx512.xml: Likewise.
587 * features/i386/i386-avx512-linux.c: Likewise.
588 * features/i386/i386-avx512-linux.xml: Likewise.
589 * features/i386/i386-avx512.c: Likewise.
590 * features/i386/i386-avx512.xml: Likewise.
591 * features/i386/x32-avx512-linux.c: Likewise.
592 * features/i386/x32-avx512-linux.xml: Likewise.
593 * features/i386/x32-avx512.c: Likewise.
594 * features/i386/x32-avx512.xml: Likewise.
595 * regformats/i386/amd64-avx512-linux.dat: New file.
596 * regformats/i386/amd64-avx512.dat: Likewise.
597 * regformats/i386/i386-avx512-linux.dat: Likewise.
598 * regformats/i386/i386-avx512.dat: Likewise.
599 * regformats/i386/x32-avx512-linux.dat: Likewise.
600 * regformats/i386/x32-avx512.dat: Likewise.
601 * NEWS: Add note about new support for AVX512.
604 2014-04-23 Pedro Alves <palves@redhat.com>
606 * breakpoint.c (insert_bp_location): Tolerate errors if the
607 breakpoint is set in a user-loaded objfile.
608 (remove_breakpoint_1): Likewise. Also tolerate errors if the
609 location is marked shlib_disabled. If the breakpoint is set in a
610 user-loaded objfile is a GDB-side memory breakpoint, validate it
611 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
612 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
614 * mem-break.c (memory_validate_breakpoint): New function.
615 * objfiles.c (userloaded_objfile_contains_address_p): New
617 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
618 * target.h (memory_validate_breakpoint): New declaration.
620 2014-04-23 Pedro Alves <palves@redhat.com>
622 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
623 the breakpoint is set in a shared library, only suppress
624 errors for software breakpoints, not hardware breakpoints.
626 2014-04-22 Pedro Alves <palves@redhat.com>
628 * infrun.c (schedlock_applies): New function, factored out from
629 find_thread_needs_step_over.
630 (find_thread_needs_step_over): Use it.
631 (switch_back_to_stepped_thread): Always clear trap_expected if the
632 step over is finished. Return early if scheduler locking applies.
633 Look for the stepping thread and a potential step-over thread with
635 (currently_stepping_or_nexting_callback): Delete.
637 2014-04-22 Nick Clifton <nickc@redhat.com>
639 * NEWS: Mention that ARM sim now supports tracing.
641 2014-04-22 Yao Qi <yao@codesourcery.com>
643 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
645 * tracefile.c (tracefile_fetch_registers): ... it. New
647 * tracefile.h (tracefile_fetch_registers): Declare.
648 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
649 tracefile_fetch_registers.
651 2014-04-19 Eli Zaretskii <eliz@gnu.org>
654 * windows-nat.c (thread_rec): Don't display a warning when
655 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
656 fails for any reason, set th->suspended to -1, so that we don't
657 try to resume such a thread. Also, don't return NULL in these
658 cases, to avoid completely ruin the session due to "PC register is
659 not available" error.
660 (do_windows_fetch_inferior_registers): Check errors in
661 GetThreadContext call.
662 (windows_continue): Accept an additional argument KILLED; if not
663 zero, ignore errors in the SetThreadContext call, since the
664 inferior was killed and is shutting down.
665 (windows_resume, get_windows_debug_event)
666 (windows_create_inferior, windows_mourn_inferior)
667 (windows_kill_inferior): All callers of windows_continue changed
668 to adjust to its new calling sequence.
670 2014-04-19 Yao Qi <yao@codesourcery.com>
672 * ctf.c (ctf_open): Call post_create_inferior.
674 2014-04-19 Yao Qi <yao@codesourcery.com>
676 * ctf.c (handle_id): New static variable.
677 (ctf_open_dir): Get handle_id from bt_context_add_trace return
678 value. Get the declaration of event "register" and get length
681 2014-04-19 Yao Qi <yao@codesourcery.com>
683 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
685 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
687 * valops.c (oload_method_static): Remove unnecessary argument
688 METHOD. Update all callers.
690 2014-04-18 Pedro alves <palves@redhat.com>
691 Tom Tromey <tromey@redhat.com>
694 * frame.c (get_prev_frame_1): Rename to ...
695 (get_prev_frame_always): ... this, and make extern. Adjust.
696 (skip_artificial_frames): Use get_prev_frame_always.
697 (frame_unwind_caller_id, frame_pop, get_prev_frame)
698 (get_frame_unwind_stop_reason): Adjust to rename.
699 * frame.h (get_prev_frame_always): Declare.
700 * inline-frame.c: Include frame.h.
701 (inline_frame_this_id): Use get_prev_frame_always.
703 2014-04-18 Tristan Gingold <gingold@adacore.com>
705 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
706 code by using bfd_mach_o_get_base_address.
708 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
710 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
711 (spu_ax_pseudo_register_collect): New function.
712 (spu_ax_pseudo_register_push_stack): Likewise.
713 (spu_dwarf_reg_to_regnum): Likewise.
714 (spu_gdbarch_init): Install them. Append DWARF unwinders.
716 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
718 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
719 Replace FRAME argument with FRAME_ID.
720 * gdbarch.c, gdbarch.h: Regenerate.
721 * findvar.c (default_value_from_register): Add GDBARCH argument;
722 replace FRAME by FRAME_ID. No longer call get_frame_id.
723 (value_from_register): Update call to gdbarch_value_from_register.
724 * value.h (default_value_from_register): Update prototype.
725 * s390-linux-tdep.c (s390_value_from_register): Update interface
726 and call to default_value_from_register.
727 * spu-tdep.c (spu_value_from_register): Likewise.
729 * findvar.c (address_from_register): Remove TYPE argument.
730 Do not call value_from_register; use gdbarch_value_from_register
731 with null_frame_id instead.
732 * value.h (address_from_register): Update prototype.
733 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
734 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
735 address_from_register interface change.
737 2014-04-17 Yao Qi <yao@codesourcery.com>
739 * gdbtypes.h: Update comments to link to types and macros'
742 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
744 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
746 2014-04-16 Keith Seitz <keiths@redhat.com>
749 * dwarf2read.c (skip_one_die): Check that all relative-offset
750 sibling DIEs fall within range of the current reader's buffer.
751 (read_partial_die): Likewise.
753 2014-04-16 Keith Seitz <keiths@redhat.com>
756 * cp-namespace.c (lookup_symbol_file): If the type name of
757 `this' is NULL, return immediately.
759 2014-04-14 Keith Seitz <keiths@redhat.com>
762 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
763 from symbol_matches_domain in symtab.c. All local callers
764 of symbol_matches_domain updated.
765 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
766 search STRUCT_DOMAIN.
767 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
768 independently. standard_lookup will do that automatically.
769 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
770 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
771 (cp_lookup_symbol_in_namespace): Likewise.
772 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
773 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
774 may return a STRUCT_DOMAIN match.
775 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
776 * cp-support.c: Include language.h.
777 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
779 * psymtab.c (match_partial_symbol): Compare the requested
780 domain with the symbol's domain directly.
781 (lookup_partial_symbol): Likewise.
782 * symtab.c (lookup_symbol_in_language): Explain when/why
783 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
784 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
785 appropriate languages.
786 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
787 and moved to ada-lang.c
788 (lookup_block_symbol): Explain that this function only returns
789 symbol matching the requested DOMAIN.
790 Compare the requested domain with the symbol's domain directly.
791 (iterate_over_symbols): Compare the requested domain with the
792 symbol's domain directly.
793 * symtab.h (symbol_matches_domain): Remove.
795 2014-04-14 Tom Tromey <tromey@redhat.com>
798 * c-exp.y (type_aggregate_p): New function.
799 (qualified_name, classify_inner_name): Use it.
800 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
801 and TYPE_TARGET_TYPE of an enum type.
802 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
804 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
805 handle TYPE_DECLARED_CLASS.
806 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
808 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
809 * valops.c (enum_constant_from_type): New function.
810 (value_aggregate_elt): Use it.
811 * cp-namespace.c (cp_lookup_nested_symbol): Handle
814 2014-04-14 Tom Tromey <tromey@redhat.com>
816 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
817 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
819 * value.h (value_aggregate_elt): Update.
821 2014-04-14 Tom Tromey <tromey@redhat.com>
823 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
825 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
827 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
828 (evaluate_subexp_standard): Pass noside argument.
829 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
830 if noside equals EVAL_NORMAL. If the subscript yields a vla type
831 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
832 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
833 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
835 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
837 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
838 points to a constant blob.
840 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
842 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
843 property and store it as the high bound and flag the range accordingly.
844 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
845 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
846 * gdbtypes.h (enum range_flags): New enum.
847 (struct range_bounds): Add flags member.
849 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
851 * c-typeprint.c (c_type_print_varspec_suffix): Added
852 check for not yet resolved high bound. If unresolved, print
853 "variable length" string to the console instead of random
856 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
858 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
860 (ada_template_to_fixed_record_type_1): Likewise.
861 (ada_to_fixed_type_1): Likewise.
862 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
863 (cp_print_value): Likewise.
864 * d-valprint.c (dynamic_array_type): Likewise.
865 * findvar.c (address_of_variable): Likewise.
866 * jv-valprint.c (java_value_print): Likewise.
867 * valops.c (value_ind): Likewise.
868 * value.c (coerce_ref): Likewise.
870 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
872 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
873 value and retrieve the dynamic type size.
875 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
877 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
878 passed to sizeof is dynamic evaluate the argument to compute the length.
880 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
881 Joel Brobecker <brobecker@adacore.com>
883 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
884 (dwarf2_evaluate_property): New function.
885 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
886 * dwarf2read.c (attr_to_dynamic_prop): New function.
887 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
889 * gdbtypes.c: Include dwarf2loc.h.
890 (is_dynamic_type): New function.
891 (resolve_dynamic_type): New function.
892 (resolve_dynamic_bounds): New function.
893 (get_type_length): New function.
894 (check_typedef): Use get_type_length to compute type length.
895 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
896 (TYPE_LOW_BOUND_KIND): New macro.
897 (is_dynamic_type): New function prototype.
898 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
899 to resolve dynamic properties of the type. Update comment.
900 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
902 2014-04-14 Richard Henderson <rth@redhat.com>
904 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
906 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
907 Doug Evans <xdje42@gmail.com>
909 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
910 dereference TYPE_CODE_REF values.
912 2014-04-11 Joel Brobecker <brobecker@adacore.com>
914 Revert the following changes due to regressions:
916 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
917 (dwarf2_evaluate_property): New function.
918 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
919 * dwarf2read.c (attr_to_dynamic_prop): New function.
920 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
922 * gdbtypes.c: Include dwarf2loc.h.
923 (is_dynamic_type): New function.
924 (resolve_dynamic_type): New function.
925 (resolve_dynamic_bounds): New function.
926 (get_type_length): New function.
927 (check_typedef): Use get_type_length to compute type length.
928 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
929 (TYPE_LOW_BOUND_KIND): New macro.
930 (is_dynamic_type): New function prototype.
931 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
932 to resolve dynamic properties of the type. Update comment.
933 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
935 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
936 passed to sizeof is dynamic evaluate the argument to compute the length.
938 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
939 value and retrieve the dynamic type size.
941 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
942 (ada_template_to_fixed_record_type_1): Likewise.
943 (ada_to_fixed_type_1): Likewise.
944 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
945 (cp_print_value): Likewise.
946 * d-valprint.c (dynamic_array_type): Likewise.
947 * eval.c (evaluate_subexp_with_coercion): Likewise.
948 * findvar.c (address_of_variable): Likewise.
949 * jv-valprint.c (java_value_print): Likewise.
950 * valops.c (value_ind): Likewise.
951 * value.c (coerce_ref): Likewise.
953 * c-typeprint.c (c_type_print_varspec_suffix): Added
954 check for not yet resolved high bound. If unresolved, print
955 "variable length" string to the console instead of random
958 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
959 property and store it as the high bound and flag the range accordingly.
960 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
961 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
962 * gdbtypes.h (enum range_flags): New enum.
963 (struct range_bounds): Add flags member.
965 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
966 points to a constant blob.
968 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
969 (evaluate_subexp_standard): Pass noside argument.
970 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
971 if noside equals EVAL_NORMAL. If the subscript yields a vla type
972 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
973 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
974 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
976 2014-04-11 Keith Seitz <keiths@redhat.com>
979 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
980 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
983 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
985 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
986 (evaluate_subexp_standard): Pass noside argument.
987 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
988 if noside equals EVAL_NORMAL. If the subscript yields a vla type
989 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
990 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
991 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
993 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
995 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
996 points to a constant blob.
998 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1000 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1001 property and store it as the high bound and flag the range accordingly.
1002 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1003 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1004 * gdbtypes.h (enum range_flags): New enum.
1005 (struct range_bounds): Add flags member.
1007 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1009 * c-typeprint.c (c_type_print_varspec_suffix): Added
1010 check for not yet resolved high bound. If unresolved, print
1011 "variable length" string to the console instead of random
1014 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1016 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1017 (ada_template_to_fixed_record_type_1): Likewise.
1018 (ada_to_fixed_type_1): Likewise.
1019 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1020 (cp_print_value): Likewise.
1021 * d-valprint.c (dynamic_array_type): Likewise.
1022 * eval.c (evaluate_subexp_with_coercion): Likewise.
1023 * findvar.c (address_of_variable): Likewise.
1024 * jv-valprint.c (java_value_print): Likewise.
1025 * valops.c (value_ind): Likewise.
1026 * value.c (coerce_ref): Likewise.
1028 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1030 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1031 value and retrieve the dynamic type size.
1033 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1035 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1036 passed to sizeof is dynamic evaluate the argument to compute the length.
1038 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1040 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1041 (dwarf2_evaluate_property): New function.
1042 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1043 * dwarf2read.c (attr_to_dynamic_prop): New function.
1044 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1046 * gdbtypes.c: Include dwarf2loc.h.
1047 (is_dynamic_type): New function.
1048 (resolve_dynamic_type): New function.
1049 (resolve_dynamic_bounds): New function.
1050 (get_type_length): New function.
1051 (check_typedef): Use get_type_length to compute type length.
1052 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1053 (TYPE_LOW_BOUND_KIND): New macro.
1054 (is_dynamic_type): New function prototype.
1055 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1056 to resolve dynamic properties of the type. Update comment.
1057 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1059 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1061 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1062 declaring high/low bounds and change uses accordingly. Call
1063 create_range_type instead of create_static_range_type.
1064 * gdbtypes.c (create_range_type): New function.
1065 (create_range_type): Convert bounds into struct bound_prop and pass
1066 them to create_range_type.
1067 * gdbtypes.h (struct bound_prop): New struct.
1068 (create_range_type): New function prototype.
1069 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1070 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1071 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1073 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1075 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1077 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1078 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1079 * ada-lang.c: All uses of create_range_type updated.
1080 * coffread.c: All uses of create_range_type updated.
1081 * dwarf2read.c: All uses of create_range_type updated.
1082 * f-exp.y: All uses of create_range_type updated.
1083 * m2-valprint.c: All uses of create_range_type updated.
1084 * mdebugread.c: All uses of create_range_type updated.
1085 * stabsread.c: All uses of create_range_type updated.
1086 * valops.c: All uses of create_range_type updated.
1087 * valprint.c: All uses of create_range_type updated.
1089 2014-04-10 Pedro Alves <palves@redhat.com>
1091 * breakpoint.c (single_step_breakpoints)
1092 (single_step_gdbarch): Move up in the file.
1093 (one_breakpoint_xfer_memory): New function, factored out from ...
1094 (breakpoint_xfer_memory): ... here. Also process single-step
1097 2014-04-09 Tristan Gingold <gingold@adacore.com>
1099 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1101 (darwin_decode_exception_message): Free port only after use.
1103 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1105 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1106 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1107 when setting the size of call_length.
1109 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1111 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1112 dereference TYPE_CODE_REF values.
1114 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1116 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1117 end of warning message.
1119 2014-04-03 Doug Evans <dje@google.com>
1121 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1122 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1124 2014-04-02 Alan Modra <amodra@gmail.com>
1126 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1127 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1128 (struct symbol_file_add_from_memory_args): Add size field.
1129 (find_vdso_size): New function.
1130 (add_vsyscall_page): Attempt to find vdso size.
1132 2014-04-01 Doug Evans <dje@google.com>
1134 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1136 2014-04-01 Tristan Gingold <gingold@adacore.com>
1138 * darwin-nat.c (darwin_encode_reply): Add prototype.
1139 (darwin_decode_exception_message): Reply to unknown inferiors.
1140 (darwin_decode_message): Handle message by id. Ignore message
1141 to unknown inferior.
1142 (darwin_wait): Discard unknown messages, add debug trace.
1144 2014-03-31 Doug Evans <dje@google.com>
1146 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1149 2014-03-31 Doug Evans <dje@google.com>
1151 New option "set print symbol-loading".
1153 * solib.c (solib_read_symbols): Only print symbol loading messages
1155 (solib_add): If symbol loading is in "brief" mode, notify user
1156 symbols are being loaded.
1157 (reload_shared_libraries_1): Ditto.
1158 * symfile.c (print_symbol_loading_off): New static global.
1159 (print_symbol_loading_brief): New static global.
1160 (print_symbol_loading_full): New static global.
1161 (print_symbol_loading_enums): New static global.
1162 (print_symbol_loading): New static global.
1163 (print_symbol_loading_p): New function.
1164 (symbol_file_add_with_addrs): Only print symbol loading messages
1166 (_initialize_symfile): Register "print symbol-loading" set/show
1168 * symfile.h (print_symbol_loading_p): Declare.
1170 2014-03-30 Doug Evans <xdje42@gmail.com>
1172 * infrun.c (set_last_target_status): New function.
1173 (handle_inferior_event): Call it.
1175 2014-03-30 Doug Evans <xdje42@gmail.com>
1177 * inferior.h (enum stop_kind): Improve comment.
1179 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1181 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1182 a reference, strip the reference layer before calling
1183 the lang_ops value_has_mutated callback.
1185 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1187 Remove some globals from our parser.
1188 * language.c (unk_lang_parser): Add "struct parser_state"
1190 * language.h (struct language_defn) <la_parser>: Likewise.
1191 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1192 (initialize_expout): Add "struct parser_state" argument.
1193 Rewrite function to use the parser state.
1194 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1195 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1196 write_exp_elt_longcst, write_exp_elt_dblcst,
1197 write_exp_elt_decfloatcst, write_exp_elt_type,
1198 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1199 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1200 write_dollar_variable): Likewise.
1201 (parse_exp_in_context_1): Use parser state.
1202 (insert_type_address_space): Add "struct parser_state" argument.
1204 (increase_expout_size): New function.
1205 * parser-defs.h: Forward declare "struct language_defn" and
1206 "struct parser_state".
1207 (expout, expout_size, expout_ptr): Remove extern declarations.
1208 (parse_gdbarch, parse_language): Rewrite macro declarations to
1209 accept the parser state.
1210 (struct parser_state): New struct.
1211 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1212 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1213 write_exp_elt_decfloatcst, write_exp_elt_type,
1214 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1215 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1216 write_exp_msymbol, write_dollar_variable,
1217 mark_struct_expression, insert_type_address_space): Add "struct
1218 parser_state" argument.
1219 (increase_expout_size): New function.
1220 * utils.c (do_clear_parser_state): New function.
1221 (make_cleanup_clear_parser_state): Likewise.
1222 * utils.h (make_cleanup_clear_parser_state): New function
1224 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1225 Update calls to write_exp* in order to pass the parser state.
1226 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1227 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1228 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1229 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1230 * stap-probe.c (stap_parse_register_operand): Likewise.
1231 (stap_parse_single_operand): Likewise.
1232 (stap_parse_argument_1): Likewise.
1233 (stap_parse_argument): Use parser state.
1234 * stap-probe.h: Include "parser-defs.h".
1235 (struct stap_parse_info) <pstate>: New field.
1236 * c-exp.y (parse_type): Rewrite to use parser state.
1237 (yyparse): Redefine to c_parse_internal.
1238 (pstate): New global variable.
1239 (parse_number): Add "struct parser_state" argument.
1240 (write_destructor_name): Likewise.
1241 (type_exp): Update calls to write_exp* and similars in order to
1243 (exp1, exp, variable, qualified_name, space_identifier,
1244 typename, typebase): Likewise.
1245 (write_destructor_name, parse_number, lex_one_token,
1246 classify_name, classify_inner_name, c_parse): Add "struct
1247 parser_state" argument. Update function to use parser state.
1248 * c-lang.h: Forward declare "struct parser_state".
1249 (c_parse): Add "struct parser_state" argument.
1250 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1251 (yyparse): Redefine macro to ada_parse_internal.
1252 (pstate): New variable.
1253 (write_int, write_object_renaming, write_var_or_type,
1254 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1255 type_int, type_long, type_long_long, type_float, type_double,
1256 type_long_double, type_char, type_boolean, type_system_address):
1257 Add "struct parser_state" argument.
1258 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1259 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1260 var_or_type, aggregate, aggregate_component_list,
1261 positional_list, others, component_group,
1262 component_associations): Update calls to write_exp* and similar
1263 functions in order to use parser state.
1264 (ada_parse, write_var_from_sym, write_int,
1265 write_exp_op_with_string, write_object_renaming,
1266 find_primitive_type, write_selectors, write_ambiguous_var,
1267 write_var_or_type, write_name_assoc, type_int, type_long,
1268 type_long_long, type_float, type_double, type_long_double,
1269 type_char, type_boolean, type_system_address): Add "struct
1270 parser_state" argument. Adjust function to use parser state.
1271 * ada-lang.c (parse): Likewise.
1272 * ada-lang.h: Forward declare "struct parser_state".
1273 (ada_parse): Add "struct parser_state" argument.
1274 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1275 calls to both functions.
1276 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1278 (yyparse): Redefine macro to f_parse_internal.
1279 (pstate): New variable.
1280 (parse_number): Add "struct parser_state" argument.
1281 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1282 and similars in order to use parser state.
1283 (parse_number): Adjust code to use parser state.
1285 (f_parse): New function.
1286 * f-lang.h: Forward declare "struct parser_state".
1287 (f_parse): Add "struct parser_state" argument.
1288 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1290 (yyparse): Redefine macro for java_parse_internal.
1291 (pstate): New variable.
1292 (push_expression_name, push_expression_name, insert_exp): Add
1293 "struct parser_state" argument.
1294 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1295 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1296 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1297 PostIncrementExpression, PostDecrementExpression,
1298 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1299 UnaryExpressionNotPlusMinus, CastExpression,
1300 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1301 RelationalExpression, EqualityExpression, AndExpression,
1302 ExclusiveOrExpression, InclusiveOrExpression,
1303 ConditionalAndExpression, ConditionalOrExpression,
1304 ConditionalExpression, Assignment, LeftHandSide): Update
1305 calls to write_exp* and similars in order to use parser state.
1306 (parse_number): Ajust code to use parser state.
1308 (java_parse): New function.
1309 (push_variable): Add "struct parser_state" argument. Adjust
1310 code to user parser state.
1311 (push_fieldnames, push_qualified_expression_name,
1312 push_expression_name, insert_exp): Likewise.
1313 * jv-lang.h: Forward declare "struct parser_state".
1314 (java_parse): Add "struct parser_state" argument.
1315 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1317 (yyparse): Redefine macro to m2_parse_internal.
1318 (pstate): New variable.
1319 (type_exp, exp, fblock, variable, type): Update calls to
1320 write_exp* and similars to use parser state.
1322 (m2_parse): New function.
1323 * m2-lang.h: Forward declare "struct parser_state".
1324 (m2_parse): Add "struct parser_state" argument.
1325 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1326 * objc-lang.h: Forward declare "struct parser_state".
1327 (end_msglist): Add "struct parser_state" argument.
1328 * p-exp.y (parse_type): Rewrite macro to use parser state.
1329 (yyparse): Redefine macro to pascal_parse_internal.
1330 (pstate): New variable.
1331 (parse_number): Add "struct parser_state" argument.
1332 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1333 write_exp* and similars in order to use parser state.
1334 (parse_number, yylex): Adjust code to use parser state.
1335 (pascal_parse): New function.
1336 * p-lang.h: Forward declare "struct parser_state".
1337 (pascal_parse): Add "struct parser_state" argument.
1338 * go-exp.y (parse_type): Rewrite macro to use parser state.
1339 (yyparse): Redefine macro to go_parse_internal.
1340 (pstate): New variable.
1341 (parse_number): Add "struct parser_state" argument.
1342 (type_exp, exp1, exp, variable, type): Update calls to
1343 write_exp* and similars in order to use parser state.
1344 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1345 to use parser state.
1346 (go_parse): Likewise.
1347 * go-lang.h: Forward declare "struct parser_state".
1348 (go_parse): Add "struct parser_state" argument.
1350 2014-03-27 Doug Evans <dje@google.com>
1352 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1354 2014-03-27 Doug Evans <dje@google.com>
1356 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1357 Remove argument abbrev_section. All callers updated.
1359 2014-03-27 Doug Evans <dje@google.com>
1361 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1362 addr_base, ranges_base.
1364 2014-03-26 Keith Seitz <keiths@redhat.com>
1366 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1367 types, not VAR_DOMAIN.
1369 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1371 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1373 * features/nios2-linux.c: Regenerated.
1374 * features/nios2.c: Regenerated.
1376 2014-03-25 Pedro Alves <palves@redhat.com>
1378 * cli/cli-script.c (script_from_file): Force the interpreter to
1381 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1383 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1384 small stack allocation.
1386 2014-03-24 Tristan Gingold <gingold@adacore.com>
1388 * darwin-nat.c (exc_server): Remove unused prototype.
1389 (darwin_dump_message): Correctly display data on x86_64.
1390 (darwin_encode_reply): Fix style.
1391 Add comments and fix indentation.
1393 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1395 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1397 2014-03-22 Doug Evans <xdje42@gmail.com>
1399 * infcmd.c: Whitespace fixes.
1400 (interrupt_command): Merge two function comments into one.
1402 2014-03-22 Doug Evans <xdje42@gmail.com>
1404 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1407 2014-03-22 Yao Qi <yao@codesourcery.com>
1409 * remote.c (target_read_live_memory): Remove.
1410 (memory_xfer_live_readonly_partial): Rename it to
1411 remote_xfer_live_readonly_partial. Remove argument 'object'.
1412 All callers updated. Call remote_read_bytes_1
1413 instead of target_read_live_memory.
1414 * tracepoint.c (set_traceframe_number): Remove.
1415 (make_cleanup_restore_traceframe_number): Likewise .
1416 * tracepoint.h (set_traceframe_number): Remove declaration.
1417 (make_cleanup_restore_traceframe_number): Likewise.
1419 2014-03-22 Yao Qi <yao@codesourcery.com>
1421 * remote.c (remote_read_bytes): Move code on reading from the
1423 (remote_read_bytes_1): ... here. New function.
1425 2014-03-22 Yao Qi <yao@codesourcery.com>
1427 * ctf.c (ctf_xfer_partial): Check the return value of
1428 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1429 return TARGET_XFER_UNAVAILABLE.
1430 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1431 * target.c (target_read_live_memory): Move it to remote.c.
1432 (memory_xfer_live_readonly_partial): Likewise.
1433 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1434 * remote.c (target_read_live_memory): Moved from target.c.
1435 (memory_xfer_live_readonly_partial): Likewise.
1436 (remote_read_bytes): Factored out from
1437 memory_xfer_partial_1.
1439 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1441 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1444 2014-03-21 Pedro Alves <palves@redhat.com>
1446 * infrun.c (normal_stop): Extend comment.
1448 2014-03-21 Hui Zhu <hui@codesourcery.com>
1449 Pedro Alves <palves@redhat.com>
1451 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1453 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1454 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1455 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1457 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1459 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1460 `z' formatted output modifier.
1462 2014-03-20 Tom Tromey <tromey@redhat.com>
1463 Sergio Durigan Junior <sergiodj@redhat.com>
1465 * probe.c (parse_probes): Turn assert into an ordinary error.
1466 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1467 exceptions when parsing probes. Rearrange the code for clarity.
1469 2014-03-20 Tom Tromey <tromey@redhat.com>
1472 * top.c (execute_command): Only dispatch events if the command
1475 2014-03-20 Tom Tromey <tromey@redhat.com>
1478 * infcall.c: Include event-top.h.
1479 (run_inferior_call): Call async_disable_stdin if needed.
1481 2014-03-20 Pedro Alves <palves@redhat.com>
1483 * infrun.c (prepare_to_proceed): Delete.
1484 (thread_still_needs_step_over): New function.
1485 (find_thread_needs_step_over): New function.
1486 (proceed): If the current thread needs a step-over, set its
1487 steping_over_breakpoint flag. Adjust to use
1488 find_thread_needs_step_over instead of prepare_to_proceed.
1489 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1490 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1492 (switch_back_to_stepped_thread): Step over breakpoints of all
1493 threads not the stepping thread, before switching back to the
1496 2014-03-20 Pedro Alves <palves@redhat.com>
1498 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1500 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1501 * infrun.c (saved_singlestep_ptid)
1502 (stepping_past_singlestep_breakpoint): Delete.
1503 (resume): Remove stepping_past_singlestep_breakpoint handling.
1504 (proceed): Store the prev_pc of the stepping thread too.
1505 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1507 (enum infwait_states): Delete infwait_thread_hop_state.
1508 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1510 (handle_inferior_event): Adjust.
1511 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1512 handling and the thread-hop code. Before removing single-step
1513 breakpoints, check whether the thread hit a single-step breakpoint
1514 of another thread. If it did, the trap is not a random signal.
1515 (switch_back_to_stepped_thread): If the event thread hit a
1516 single-step breakpoint, unblock it before switching to the
1517 stepping thread. Handle the case of the stepped thread having
1519 (keep_going): Handle the case of the current thread moving past a
1520 single-step breakpoint.
1522 2014-03-20 Pedro Alves <palves@redhat.com>
1525 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1526 are being stepped over.
1527 (breakpoint_address_match): Make extern.
1528 * breakpoint.h (breakpoint_address_match): New declaration.
1529 * inferior.h (stepping_past_instruction_at): New declaration.
1530 * infrun.c (struct step_over_info): New type.
1531 (step_over_info): New global.
1532 (set_step_over_info, clear_step_over_info)
1533 (stepping_past_instruction_at): New functions.
1534 (handle_inferior_event): Clear the step-over info when
1535 trap_expected is cleared.
1536 (resume): Remove now stale comment.
1537 (clear_proceed_status): Clear step-over info.
1538 (proceed): Adjust step-over handling to set or clear the step-over
1539 info instead of removing all breakpoints.
1540 (handle_signal_stop): When setting up a thread-hop, don't remove
1542 (stop_stepping): Clear step-over info.
1543 (keep_going): Adjust step-over handling to set or clear step-over
1544 info and then always inserting breakpoints, instead of removing
1545 all breakpoints when stepping over one.
1547 2014-03-20 Pedro Alves <palves@redhat.com>
1549 * infrun.c (previous_inferior_ptid): Adjust comment.
1550 (deferred_step_ptid): Delete.
1551 (infrun_thread_ptid_changed, prepare_to_proceed)
1552 (init_wait_for_inferior): Adjust.
1553 (handle_signal_stop): Delete deferred_step_ptid handling.
1555 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1558 * defs.h (sync_quit_force_run): New declaration.
1559 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1560 * event-top.c (async_sigterm_handler): New declaration.
1561 (async_sigterm_token): New variable.
1562 (async_init_signals): Create also async_sigterm_token.
1563 (async_sigterm_handler): New function.
1564 (sync_quit_force_run): New variable.
1565 (handle_sigterm): Replace quit_force call by other calls.
1566 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1568 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1570 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1571 offset into SPE pseudo registers.
1573 2014-03-18 Pedro Alves <palves@redhat.com>
1576 * inferior.h (print_stop_event): Declare.
1577 * infrun.c (print_stop_event): New, factored out from ...
1578 (normal_stop): ... this.
1579 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1580 of bpstat_print/print_stack_frame.
1582 2014-03-17 Tom Tromey <tromey@redhat.com>
1584 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1586 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1588 * ada-lang.c (decode_constrained_packed_array): Perform a
1589 minimal coercion for reference with coerce_ref instead of
1592 2014-03-17 Tristan Gingold <gingold@adacore.com>
1594 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1595 (darwin_solib_create_inferior_hook): Emit a warning if version
1598 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
1600 * python/py-value.c (get_field_flag): Cast flag_name argument to
1601 PyObject_GetAttrString to support Python 2.4.
1603 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1605 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1606 (Global Maintainers): Remove Jan Kratochvil.
1608 2014-03-14 Pedro Alves <palves@redhat.com>
1610 * inferior.h (terminal_ours_for_output): Rename to ...
1611 (child_terminal_ours_for_output): ... this.
1612 (terminal_save_ours): Rename to ...
1613 (child_terminal_save_ours): ... this.
1614 (terminal_ours): Rename to ...
1615 (child_terminal_ours): ... this.
1616 (terminal_inferior): Rename to ...
1617 (child_terminal_inferior): ... this.
1618 (terminal_init_inferior): Rename to ...
1619 (child_terminal_init_inferior): ... this.
1620 (terminal_init_inferior_with_pgrp): Rename to ...
1621 (child_terminal_init_inferior_with_pgrp): ... this.
1622 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1623 (child_terminal_init_with_pgrp): ... this.
1624 (terminal_save_ours): Rename to ...
1625 (child_terminal_save_ours): ... this.
1626 (terminal_init_inferior): Rename to ...
1627 (child_terminal_init): ... this. Adjust.
1628 (terminal_inferior): Rename to ...
1629 (child_terminal_inferior): ... this.
1630 (terminal_ours_for_output): Rename to ...
1631 (child_terminal_ours_for_output): ... this. Adjust.
1632 (terminal_ours): Rename to ...
1633 (child_terminal_ours): ... this.
1634 (terminal_ours_1): Rename to ...
1635 (child_terminal_ours_1): ... this. Adjust.
1636 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1637 * windows-nat.c (do_initial_windows_stuff): Adjust.
1638 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1639 (gnu_terminal_init): ... this. Adjust.
1640 (gnu_target): Adjust.
1641 * inf-child.c (inf_child_target): Adjust.
1643 2014-03-13 Doug Evans <xdje42@gmail.com>
1646 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1649 2014-03-13 Doug Evans <xdje42@gmail.com>
1651 * value.c (record_latest_value): Call release_value_or_incref
1652 instead of release_value.
1654 2014-03-13 Pedro Alves <palves@redhat.com>
1656 * procfs.c (procfs_target): Don't override to_shortname,
1657 to_longname or to_doc.
1659 2014-03-13 Pedro Alves <palves@redhat.com>
1661 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1662 Unix in user visible strings.
1664 2014-03-12 Stan Shebs <stan@codesourcery.com>
1666 * gdbtypes.h: Annotate comments for Doxygen, add a page
1667 block comment with some general info.
1669 2014-03-12 Pedro Alves <palves@redhat.com>
1671 * infcmd.c (prepare_execution_command): New function, factored out
1672 from several execution commands.
1673 (run_command_1, continue_command, step_1, jump_command)
1674 (signal_command, until_command, advance_command, finish_command)
1675 (attach_command): Use prepare_execution_command.
1677 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1679 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1682 (struct arm_linux_thread_points): Removed.
1683 (struct arm_linux_process_info): New.
1684 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1685 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1686 (arm_linux_find_breakpoints_by_tid): Removed.
1687 (struct arch_lwp_info): New.
1688 (arm_linux_find_process_pid): New functions.
1689 (arm_linux_add_process): New functions.
1690 (arm_linux_process_info_get): New functions.
1691 (arm_linux_forget_process): New function.
1692 (arm_linux_get_debug_reg_state): New function.
1693 (struct update_registers_data): New.
1694 (update_registers_callback): New function.
1695 (arm_linux_insert_hw_breakpoint1): Updated.
1696 (arm_linux_remove_hw_breakpoint1): Updated.
1697 (arm_linux_insert_hw_breakpoint): Updated.
1698 (arm_linux_remove_hw_breakpoint): Updated.
1699 (arm_linux_insert_watchpoint): Updated.
1700 (arm_linux_remove_watchpoint): Updated.
1701 (arm_linux_new_thread): Updated.
1702 (arm_linux_prepare_to_resume): New function.
1703 (arm_linux_new_fork): New function.
1704 (_initialize_arm_linux_nat): Updated.
1706 2014-03-12 Pedro Alves <palves@redhat.com>
1708 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1710 2014-03-12 Tom Tromey <tromey@redhat.com>
1712 * inf-child.c (return_zero): New function.
1713 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1714 * aix-thread.c (aix_thread_inferior_created): New function.
1715 (aix_thread_attach): Remove.
1716 (init_aix_thread_ops): Don't set to_attach.
1717 (_initialize_aix_thread): Register inferior_created observer.
1718 * corelow.c (init_core_ops): Don't set to_attach or
1720 * exec.c (init_exec_ops): Don't set to_attach or
1722 * infcmd.c (run_command_1): Use find_run_target. Make direct
1724 (attach_command): Use find_attach_target. Make direct target
1726 * record-btrace.c (init_record_btrace_ops): Don't set
1728 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1730 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1731 set to_create_inferior.
1732 * target.c (complete_target_initialization): Add assertion.
1733 (target_create_inferior): Remove.
1734 (find_default_attach, find_default_create_inferior): Remove.
1735 (find_attach_target, find_run_target): New functions.
1736 (find_default_is_async_p, find_default_can_async_p)
1737 (target_supports_non_stop, target_attach): Remove.
1738 (init_dummy_target): Don't set to_create_inferior or
1739 to_supports_non_stop.
1740 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1741 TARGET_DEFAULT_FUNC.
1742 <to_create_inferior>: Add comment.
1743 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1744 TARGET_DEFAULT_RETURN.
1745 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1746 (find_attach_target, find_run_target): Declare.
1747 (target_create_inferior): Remove.
1748 (target_has_execution_1): Update comment.
1749 (target_supports_non_stop): Remove.
1750 * target-delegates.c: Rebuild.
1752 2014-03-12 Pedro Alves <palves@redhat.com>
1754 * inf-child.h: Update comment to not mention Unix.
1756 2014-03-12 Pedro Alves <palves@redhat.com>
1758 * inf-child.c: Update top comment to not mention Unix. Add
1759 generic comment describing how this target is meant to be used.
1760 (inf_child_post_attach, inf_child_post_startup_inferior)
1761 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1764 2014-03-12 Pedro Alves <palves@redhat.com>
1766 * nto-procfs.c: Include inf-child.h.
1767 (procfs_ops): Delete global.
1768 (procfs_can_run): Delete method.
1769 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1770 target pointer instead of referencing procfs_ops.
1771 (procfs_prepare_to_store): Delete.
1772 (init_procfs_ops): Delete function.
1773 (procfs_target): New function, based on init_procfs_ops, but
1774 inherit inf_child_target.
1775 (_initialize_procfs): Use procfs_target.
1777 2014-03-12 Pedro Alves <palves@redhat.com>
1779 * windows-nat.c: Include inf-child.h.
1780 (windows_ops): Delete global.
1781 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1783 (init_windows_ops): Delete function.
1784 (windows_target): New function, based on init_windows_ops, but
1785 inherit inf_child_target.
1786 (_initialize_windows_nat): Use windows_target. Install x86
1787 specific target methods here.
1789 2014-03-10 Doug Evans <xdje42@gmail.com>
1791 * guile/guile.c (call_initialize_gdb_module): New function.
1792 (initialize_guile): Replace call to scm_init_guile with call to
1795 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1797 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1798 in call to TYPE_CODE macro.
1800 2014-03-10 Jerome Guitton <guitton@adacore.com>
1802 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1803 Resolve tagged types to full view.
1805 2014-03-10 Hui Zhu <hui@codesourcery.com>
1807 * target.h (target_insert_breakpoint): Remove "hardware" from its
1810 2014-03-07 Doug Evans <dje@google.com>
1812 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1814 2014-03-07 Doug Evans <dje@google.com>
1816 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1817 Remove unused local comp_dir_attr. Assert exactly one of
1818 stub_comp_unit_die, stub_comp_dir is non-NULL.
1820 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1822 * target.h (complete_target_initialization, add_target):
1825 2014-03-07 Pedro Alves <palves@redhat.com>
1827 * go32-nat.c: Include inf-child.h.
1828 (go32_ops): Delete global.
1829 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1831 (go32_create_inferior): Push the passed in target pointer instead
1832 of referencing go32_ops.
1833 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1834 (go32_target): New function, based on init_go32_ops, but inherit
1836 (_initialize_go32_nat): Use go32_target. Move parts of
1839 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1841 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1842 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1843 SYMBOL_VALUE_ADDRESS.
1844 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1846 2014-03-06 Yao Qi <yao@codesourcery.com>
1848 * breakpoint.c (get_tracepoint_by_number): Remove argument
1849 optional_p. All callers updated. Adjust comments. Update
1851 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1853 2014-03-06 Yao Qi <yao@codesourcery.com>
1855 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1856 early if get_number returns zero. Use 'p' instead of 'args'.
1858 2014-03-06 Yao Qi <yao@codesourcery.com>
1860 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1863 2014-03-06 Yao Qi <yao@codesourcery.com>
1865 PR breakpoints/16508
1866 * tracepoint.c (check_trace_running): New function.
1867 (trace_find_command): Move code to check_trace_running and
1868 call check_trace_running.
1869 (trace_find_pc_command): Likewise.
1870 (trace_find_tracepoint_command): Likewise.
1871 (trace_find_line_command): Likewise.
1872 (trace_find_range_command): Likewise.
1873 * tracepoint.h (check_trace_running): Likewise.
1874 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1876 2014-03-06 Yao Qi <yao@codesourcery.com>
1878 * target.h (struct target_ops) <to_traceframe_info>: Use
1879 TARGET_DEFAULT_NORETURN (tcomplain ()).
1880 * target-delegates.c: Regenerated.
1882 2014-03-05 Pedro Alves <palves@redhat.com>
1885 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1886 void. Update comment.
1887 (dcache_xfer_memory): Delete.
1888 (dcache_read_memory_partial): New, based on the read bits of
1890 (dcache_update): Add status parameter. Use ULONGEST for len, and
1891 adjust. Discard cache lines if the reason for the update was
1893 * dcache.h (dcache_xfer_memory): Delete declaration.
1894 (dcache_read_memory_partial): New declaration.
1895 (dcache_update): Update prototype.
1896 * target.c (raw_memory_xfer_partial): Update the dcache here.
1897 (memory_xfer_partial_1): Don't handle dcache writes here.
1899 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1901 * remote-sim.c (gdbsim_load): Add const to prog.
1903 2014-03-03 Tom Tromey <tromey@redhat.com>
1905 * elfread.c (probe_key): Change to bfd_data.
1906 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
1907 now per-BFD, not per-objfile.
1908 * stap-probe.c (stap_probe_destroy): Update comment.
1909 (handle_stap_probe): Allocate on the per-BFD obstack.
1911 2014-03-03 Tom Tromey <tromey@redhat.com>
1913 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
1914 * breakpoint.c (create_longjmp_master_breakpoint): Use
1916 (add_location_to_breakpoint, bkpt_probe_insert_location)
1917 (bkpt_probe_remove_location): Update.
1918 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
1919 * elfread.c (elf_symfile_relocate_probe): Remove.
1920 (elf_probe_fns): Update.
1921 (insert_exception_resume_breakpoint): Change type of "probe"
1922 parameter to bound_probe.
1923 (check_exception_resume): Update.
1924 * objfiles.c (objfile_relocate1): Don't relocate probes.
1925 * probe.c (bound_probe_s): New typedef.
1926 (parse_probes): Use get_probe_address. Set sal's objfile.
1927 (find_probe_by_pc): Return a bound_probe.
1928 (collect_probes): Return a VEC(bound_probe_s).
1929 (compare_probes): Update.
1930 (gen_ui_out_table_header_info): Change type of "probes"
1932 (info_probes_for_ops): Update.
1933 (get_probe_address): New function.
1934 (probe_safe_evaluate_at_pc): Update.
1935 * probe.h (struct probe_ops) <get_probe_address>: New field.
1936 <set_semaphore, clear_semaphore>: Add objfile parameter.
1937 (struct probe) <objfile>: Remove field.
1939 <address>: Update comment.
1940 (struct bound_probe): New.
1941 (find_probe_by_pc): Return a bound_probe.
1942 (get_probe_address): Declare.
1943 * solib-svr4.c (struct probe_and_action) <address>: New field.
1944 (hash_probe_and_action, equal_probe_and_action): Update.
1945 (register_solib_event_probe): Add address parameter.
1946 (solib_event_probe_at): Update.
1947 (svr4_create_probe_breakpoints): Add objfile parameter. Use
1949 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
1950 (stap_get_probe_address): New function.
1951 (stap_can_evaluate_probe_arguments, compute_probe_arg)
1952 (compile_probe_arg): Update.
1953 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
1955 (handle_stap_probe): Don't relocate the probe.
1956 (stap_relocate): Remove.
1957 (stap_gen_info_probes_table_values): Update.
1958 (stap_probe_ops): Remove stap_relocate.
1959 * symfile-debug.c (debug_sym_relocate_probe): Remove.
1960 (debug_sym_probe_fns): Update.
1961 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
1962 * symtab.c (init_sal): Use memset.
1963 * symtab.h (struct symtab_and_line) <objfile>: New field.
1964 * tracepoint.c (start_tracing, stop_tracing): Update.
1966 2014-03-03 Tom Tromey <tromey@redhat.com>
1968 * probe.h (parse_probes, find_probe_by_pc)
1969 (find_probes_in_objfile): Fix comments.
1971 2014-03-02 Doug Evans <xdje42@gmail.com>
1973 * infrun.c (handle_signal_stop): Replace test for
1974 TARGET_WAITKIND_STOPPED with an assert.
1976 2014-03-02 Doug Evans <xdje42@gmail.com>
1978 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
1980 2014-03-02 Doug Evans <xdje42@gmail.com>
1982 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
1984 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1986 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
1988 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1990 * i386obsd-nat.c: Include "obsd-nat.h".
1991 (_initialize_i386obsd_nat): Call obsd_add_target instead of
1993 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1995 2014-03-01 Mark Kettenis <kettenis@gnu.org>
1997 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
1999 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2001 * mips64obsd-nat.c: Include "obsd-nath".
2002 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2004 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2006 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2008 * amd64obsd-nat.c: Include "obsd-nat,h.
2009 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2011 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2013 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2015 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2016 (find_overload_match): Update call to find_oload_champ.
2017 (find_oload_champ_namespace_loop): Likewise
2019 2014-02-28 Mark Kettenis <kettenis@gnu.org>
2021 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2023 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2024 * config/sparc/obsd64.mh: New file.
2025 * sparc64obsd-nat.c: New file.
2027 * obsd-nat.h: New file.
2028 * obsd-nat.c: New file.
2029 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2030 (ALLDEPFILES): Add obsd-nat.c.
2032 2014-02-28 Tom Tromey <tromey@redhat.com>
2034 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2035 * cli-out.h (cli_ui_out_impl): Now const.
2036 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2037 * ui-out.c (struct ui_out) <impl>: Now const.
2038 (default_ui_out_impl): Now const.
2039 (ui_out_new): Make 'impl' parameter const.
2040 * ui-out.h (ui_out_new): Update.
2042 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2044 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2046 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2048 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2050 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2052 Additional PR 8882 fix.
2053 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2055 2014-02-27 Pedro Alves <palves@redhat.com>
2057 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2060 2014-02-27 Pedro Alves <palves@redhat.com>
2063 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2064 * nat/linux-waitpid.c: Include string.h.
2065 (status_to_str): Moved here and made extern.
2066 * nat/linux-waitpid.h (status_to_str): New declaration.
2068 2014-02-27 Hui Zhu <hui@codesourcery.com>
2071 * infrun.c (ptid_match): Move ...
2072 * common/ptid.c (ptid_match): ... here.
2073 * inferior.h (ptid_match): Move ...
2074 * common/ptid.h (ptid_match): ... here.
2076 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2078 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2079 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2082 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2084 * obsd-tdep.c (obsd_auxv_parse): New function.
2085 (obsd_init_abi): Set auxv_parse.
2087 * gdbarch.sh (auxv_parse): New.
2088 * gdbarch.h: Regenerated.
2089 * gdbarch.c: Regenerated.
2090 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2092 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2094 * guile/scm-value.c (gdbscm_history_append_x): New function.
2095 (value_functions): Add it.
2097 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2099 * dwarf2read.c (attr_value_as_address): New function.
2100 (dwarf2_find_base_address, read_call_site_scope): Use
2101 attr_value_as_address in place of DW_ADDR.
2102 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2103 the low and high addresses. Slight rework of the handling
2104 of the high pc being a constant form, and limit it to
2105 DWARF verson 4 or higher.
2106 (dwarf2_record_block_ranges): Likewise.
2107 (read_partial_die): Likewise.
2108 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2110 2014-02-26 Tom Tromey <tromey@redhat.com>
2112 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2114 2014-02-26 Tom Tromey <tromey@redhat.com>
2116 * elfread.c (elf_read_minimal_symbols): Return early if
2117 minimal symbols have already been read. Add "ei" parameter.
2118 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2119 * minsyms.c (prim_record_minimal_symbol_full): Update.
2120 * objfiles.h (struct objstats) <n_minsyms>: Move...
2121 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2122 * symmisc.c (print_objfile_statistics): Update.
2124 2014-02-26 Tom Tromey <tromey@redhat.com>
2126 * elfread.c (elf_read_minimal_symbols): New function, from
2128 (elf_symfile_read): Call it.
2130 2014-02-26 Tom Tromey <tromey@redhat.com>
2132 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2133 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2134 (lookup_minimal_symbol_solib_trampoline)
2135 (lookup_minimal_symbol_by_pc_section_1)
2136 (lookup_minimal_symbol_and_objfile): Update.
2137 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2138 Don't allocate a minimal symbol if minsyms have already been read.
2139 (build_minimal_symbol_hash_tables): Update.
2140 (install_minimal_symbols): Do nothing if minsyms already read.
2141 Use the per-BFD obstack.
2142 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2143 * objfiles.c (allocate_objfile): Call
2144 terminate_minimal_symbol_table later.
2145 (have_minimal_symbols): Update.
2146 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2147 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2148 Move from struct objfile.
2149 <minsyms_read>: New field.
2150 (struct objfile) <msymbols, minimal_symbol_count,
2151 msymbol_hash, msymbol_demangled_hash>: Move.
2152 (ALL_OBJFILE_MSYMBOLS): Update.
2153 * symfile.c (read_symbols): Set minsyms_read.
2154 (reread_symbols): Update.
2155 * symmisc.c (dump_objfile, dump_msymbols): Update.
2157 2014-02-26 Tom Tromey <tromey@redhat.com>
2159 * minsyms.c (msymbols_sort): Remove.
2160 * minsyms.h (msymbols_sort): Remove.
2161 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2162 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2163 * elfread.c (elf_symtab_read): Don't add section offsets.
2164 * xcoffread.c (record_minimal_symbol): Don't add section offset
2165 to minimal symbol address.
2166 * somread.c (text_offset, data_offset): Remove.
2167 (som_symtab_read): Don't add section offsets to minimal symbol
2169 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2170 Don't add section offsets to minimal symbols.
2171 * coffread.c (coff_symtab_read): Don't add section offsets
2172 to minimal symbol addresses.
2173 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2174 to minimal symbol addresses.
2175 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2176 section offset to minimal symbol addresses.
2177 * mdebugread.c (parse_partial_symbols): Don't add section
2178 offset to minimal symbol addresses.
2179 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2180 offset to minimal symbol addresses.
2182 2014-02-26 Tom Tromey <tromey@redhat.com>
2184 * ada-lang.c (ada_main_name): Update.
2185 (ada_add_standard_exceptions): Update.
2186 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2187 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2188 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2189 * auxv.c (ld_so_xfer_auxv): Update.
2190 * avr-tdep.c (avr_scan_prologue): Update.
2191 * ax-gdb.c (gen_var_ref): Update.
2192 * blockframe.c (get_pc_function_start)
2193 (find_pc_partial_function_gnu_ifunc): Update.
2194 * breakpoint.c (create_overlay_event_breakpoint)
2195 (create_longjmp_master_breakpoint)
2196 (create_std_terminate_master_breakpoint)
2197 (create_exception_master_breakpoint): Update.
2198 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2199 * c-valprint.c (c_val_print): Update.
2200 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2201 * common/agent.c (agent_look_up_symbols): Update.
2202 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2203 * dwarf2loc.c (call_site_to_target_addr): Update.
2204 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2205 * elfread.c (elf_gnu_ifunc_record_cache)
2206 (elf_gnu_ifunc_resolve_by_got): Update.
2207 * findvar.c (default_read_var_value): Update.
2208 * frame.c (inside_main_func): Update.
2209 * frv-tdep.c (frv_frame_this_id): Update.
2210 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2211 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2213 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2214 (hppa_hpux_find_dummy_bpaddr): Update.
2215 * hppa-tdep.c (hppa_symbol_address): Update.
2216 * infcmd.c (until_next_command): Update.
2217 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2219 * linespec.c (minsym_found, add_minsym): Update.
2220 * linux-nat.c (get_signo): Update.
2221 * linux-thread-db.c (inferior_has_bug): Update.
2222 * m32c-tdep.c (m32c_return_value)
2223 (m32c_m16c_address_to_pointer): Update.
2224 * m32r-tdep.c (m32r_frame_this_id): Update.
2225 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2226 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2227 * maint.c (maintenance_translate_address): Update.
2228 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2229 (frob_address): New function.
2230 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2231 frob_address. Rename parameter to "pc_in".
2232 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2234 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2236 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2237 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2238 * objc-lang.c (find_objc_msgsend): Update.
2239 * objfiles.c (objfile_relocate1): Update.
2240 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2241 * p-valprint.c (pascal_val_print): Update.
2242 * parse.c (write_exp_msymbol): Update.
2243 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2244 (ppc_elfv2_skip_entrypoint): Update.
2245 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2246 * printcmd.c (build_address_symbolic, msym_info)
2247 (address_info): Update.
2248 * proc-service.c (ps_pglobal_lookup): Update.
2249 * psymtab.c (find_pc_sect_psymtab_closer)
2250 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2251 Change msymbol parameter to bound_minimal_symbol.
2252 * ravenscar-thread.c (get_running_thread_id): Update.
2253 * remote.c (remote_check_symbols): Update.
2254 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2256 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2257 * solib-dsbt.c (lm_base): Update.
2258 * solib-frv.c (lm_base, main_got): Update.
2259 * solib-irix.c (locate_base): Update.
2260 * solib-som.c (som_solib_create_inferior_hook)
2261 (link_map_start): Update.
2262 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2263 * solib-svr4.c (elf_locate_base, enable_break): Update.
2264 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2265 (flush_ea_cache): Update.
2266 * stabsread.c (define_symbol, scan_file_globals): Update.
2267 * stack.c (find_frame_funname): Update.
2268 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2269 (debug_qf_find_pc_sect_symtab): Update.
2270 * symfile.c (simple_read_overlay_table)
2271 (simple_overlay_update): Update.
2272 * symfile.h (struct quick_symbol_functions)
2273 <find_pc_sect_symtab>: Change type of msymbol to
2274 bound_minimal_symbol.
2275 * symmisc.c (dump_msymbols): Update.
2276 * symtab.c (find_pc_sect_symtab_via_partial)
2277 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2278 (search_symbols, print_msymbol_info): Update.
2279 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2280 (MSYMBOL_VALUE_ADDRESS): Redefine.
2281 (BMSYMBOL_VALUE_ADDRESS): New macro.
2282 * tracepoint.c (scope_info): Update.
2283 * tui/tui-disasm.c (tui_find_disassembly_address)
2284 (tui_get_begin_asm_address): Update.
2285 * valops.c (find_function_in_inferior): Update.
2286 * value.c (value_static_field, value_fn_field): Update.
2288 2014-02-26 Tom Tromey <tromey@redhat.com>
2290 * ada-lang.c (ada_update_initial_language): Update.
2291 (ada_main_name, ada_has_this_exception_support): Update.
2292 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2293 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2294 * arm-tdep.c (arm_skip_stub): Update.
2295 * auxv.c (ld_so_xfer_auxv): Update.
2296 * avr-tdep.c (avr_scan_prologue): Update.
2297 * ax-gdb.c (gen_var_ref): Update.
2298 * breakpoint.c (struct breakpoint_objfile_data)
2299 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2300 type to bound_minimal_symbol.
2301 (create_overlay_event_breakpoint)
2302 (create_longjmp_master_breakpoint)
2303 (create_std_terminate_master_breakpoint)
2304 (create_exception_master_breakpoint): Update.
2305 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2306 * c-exp.y (classify_name): Update.
2307 * coffread.c (coff_symfile_read): Update.
2308 * common/agent.c (agent_look_up_symbols): Update.
2309 * d-lang.c (d_main_name): Update.
2310 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2311 * dec-thread.c (enable_dec_thread): Update.
2312 * dwarf2loc.c (call_site_to_target_addr): Update.
2313 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2314 * eval.c (evaluate_subexp_standard): Update.
2315 * findvar.c (struct minsym_lookup_data) <result>: Change type
2316 to bound_minimal_symbol.
2318 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2319 * frame.c (inside_main_func): Update.
2320 * frv-tdep.c (frv_frame_this_id): Update.
2321 * gcore.c (call_target_sbrk): Update.
2322 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2323 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2325 * go-lang.c (go_main_name): Update.
2326 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2327 (hppa_hpux_find_import_stub_for_addr): Update.
2328 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2329 Update. Change return type.
2330 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2332 * jit.c (jit_breakpoint_re_set_internal): Update.
2333 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2335 * linux-nat.c (get_signo): Update.
2336 * linux-thread-db.c (inferior_has_bug): Update
2337 * m32c-tdep.c (m32c_return_value)
2338 (m32c_m16c_address_to_pointer): Update.
2339 * m32r-tdep.c (m32r_frame_this_id): Update.
2340 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2341 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2342 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2343 lookup_minimal_symbol. Change return type.
2344 (lookup_minimal_symbol): Remove.
2345 (lookup_bound_minimal_symbol): Update.
2346 (lookup_minimal_symbol_text): Change return type.
2347 (lookup_minimal_symbol_solib_trampoline): Change return type.
2348 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2349 (lookup_minimal_symbol_solib_trampoline): Change return type.
2350 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2351 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2352 (value_nsstring, find_imps): Update.
2353 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2354 * p-lang.c (pascal_main_name): Update.
2355 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2356 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2357 * proc-service.c (ps_pglobal_lookup): Update.
2358 * ravenscar-thread.c (get_running_thread_msymbol): Change
2360 (has_ravenscar_runtime, get_running_thread_id): Update.
2361 * remote.c (remote_check_symbols): Update.
2362 * sol-thread.c (ps_pglobal_lookup): Update.
2363 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2364 * solib-dsbt.c (lm_base): Update.
2365 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2367 * solib-irix.c (locate_base): Update.
2368 * solib-som.c (som_solib_create_inferior_hook)
2369 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2371 * solib-spu.c (spu_enable_break): Update.
2372 * solib-svr4.c (elf_locate_base, enable_break): Update.
2373 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2374 (flush_ea_cache): Update.
2375 * stabsread.c (define_symbol): Update.
2376 * symfile.c (simple_read_overlay_table): Update.
2377 * symtab.c (find_pc_sect_line): Update.
2378 * tracepoint.c (scope_info): Update.
2379 * tui-disasm.c (tui_get_begin_asm_address): Update.
2380 * value.c (value_static_field): Update.
2382 2014-02-26 Tom Tromey <tromey@redhat.com>
2384 * minsyms.c (prim_record_minimal_symbol_full): Use
2385 SET_MSYMBOL_VALUE_ADDRESS.
2386 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2387 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2388 SET_MSYMBOL_VALUE_ADDRESS.
2389 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2390 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2392 2014-02-26 Tom Tromey <tromey@redhat.com>
2394 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2395 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2396 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2397 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2398 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2399 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2400 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2401 * ada-lang.c (ada_main_name): Update.
2402 (ada_lookup_simple_minsym): Update.
2403 (ada_make_symbol_completion_list): Update.
2404 (ada_add_standard_exceptions): Update.
2405 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2406 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2407 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2408 * arm-tdep.c (skip_prologue_function): Update.
2409 (arm_skip_stack_protector, arm_skip_stub): Update.
2410 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2411 (arm_wince_skip_main_prologue): Update.
2412 * auxv.c (ld_so_xfer_auxv): Update.
2413 * avr-tdep.c (avr_scan_prologue): Update.
2414 * ax-gdb.c (gen_var_ref): Update.
2415 * block.c (call_site_for_pc): Update.
2416 * blockframe.c (get_pc_function_start): Update.
2417 (find_pc_partial_function_gnu_ifunc): Update.
2418 * breakpoint.c (create_overlay_event_breakpoint): Update.
2419 (create_longjmp_master_breakpoint): Update.
2420 (create_std_terminate_master_breakpoint): Update.
2421 (create_exception_master_breakpoint): Update.
2422 (resolve_sal_pc): Update.
2423 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2424 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2426 * c-valprint.c (c_val_print): Update.
2427 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2428 * coffread.c (coff_symfile_read): Update.
2429 * common/agent.c (agent_look_up_symbols): Update.
2430 * dbxread.c (find_stab_function_addr): Update.
2431 (end_psymtab): Update.
2432 * dwarf2loc.c (call_site_to_target_addr): Update.
2433 (func_verify_no_selftailcall): Update.
2434 (tailcall_dump): Update.
2435 (call_site_find_chain_1): Update.
2436 (dwarf_expr_reg_to_entry_parameter): Update.
2437 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2438 (elf_gnu_ifunc_resolve_by_got): Update.
2439 * f-valprint.c (info_common_command): Update.
2440 * findvar.c (read_var_value): Update.
2441 * frame.c (get_prev_frame_1): Update.
2442 (inside_main_func): Update.
2443 * frv-tdep.c (frv_skip_main_prologue): Update.
2444 (frv_frame_this_id): Update.
2445 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2446 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2447 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2448 (gnuv3_skip_trampoline): Update.
2449 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2450 (hppa64_hpux_in_solib_call_trampoline): Update.
2451 (hppa_hpux_skip_trampoline_code): Update.
2452 (hppa64_hpux_search_dummy_call_sequence): Update.
2453 (hppa_hpux_find_import_stub_for_addr): Update.
2454 (hppa_hpux_find_dummy_bpaddr): Update.
2455 * hppa-tdep.c (hppa_symbol_address)
2456 (hppa_lookup_stub_minimal_symbol): Update.
2457 * i386-tdep.c (i386_skip_main_prologue): Update.
2458 (i386_pe_skip_trampoline_code): Update.
2459 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2460 * infcall.c (get_function_name): Update.
2461 * infcmd.c (until_next_command): Update.
2462 * jit.c (jit_breakpoint_re_set_internal): Update.
2463 (jit_inferior_init): Update.
2464 * linespec.c (minsym_found): Update.
2465 (add_minsym): Update.
2466 * linux-fork.c (info_checkpoints_command): Update.
2467 * linux-nat.c (get_signo): Update.
2468 * linux-thread-db.c (inferior_has_bug): Update.
2469 * m32c-tdep.c (m32c_return_value): Update.
2470 (m32c_m16c_address_to_pointer): Update.
2471 (m32c_m16c_pointer_to_address): Update.
2472 * m32r-tdep.c (m32r_frame_this_id): Update.
2473 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2474 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2475 * maint.c (maintenance_translate_address): Update.
2476 * minsyms.c (add_minsym_to_hash_table): Update.
2477 (add_minsym_to_demangled_hash_table): Update.
2478 (msymbol_objfile): Update.
2479 (lookup_minimal_symbol): Update.
2480 (iterate_over_minimal_symbols): Update.
2481 (lookup_minimal_symbol_text): Update.
2482 (lookup_minimal_symbol_by_pc_name): Update.
2483 (lookup_minimal_symbol_solib_trampoline): Update.
2484 (lookup_minimal_symbol_by_pc_section_1): Update.
2485 (lookup_minimal_symbol_and_objfile): Update.
2486 (prim_record_minimal_symbol_full): Update.
2487 (compare_minimal_symbols): Update.
2488 (compact_minimal_symbols): Update.
2489 (build_minimal_symbol_hash_tables): Update.
2490 (install_minimal_symbols): Update.
2491 (terminate_minimal_symbol_table): Update.
2492 (find_solib_trampoline_target): Update.
2493 (minimal_symbol_upper_bound): Update.
2494 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2495 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2496 (mips_skip_pic_trampoline_code): Update.
2497 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2498 * objc-lang.c (selectors_info): Update.
2499 (classes_info): Update.
2500 (find_methods): Update.
2501 (find_imps): Update.
2502 (find_objc_msgsend): Update.
2503 * objfiles.c (objfile_relocate1): Update.
2504 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2505 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2506 * p-valprint.c (pascal_val_print): Update.
2507 * parse.c (write_exp_msymbol): Update.
2508 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2509 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2510 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2511 * printcmd.c (build_address_symbolic): Update.
2513 (address_info): Update.
2514 * proc-service.c (ps_pglobal_lookup): Update.
2515 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2516 (find_pc_sect_psymtab): Update.
2517 * python/py-framefilter.c (py_print_frame): Update.
2518 * ravenscar-thread.c (get_running_thread_id): Update.
2519 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2521 * remote.c (remote_check_symbols): Update.
2522 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2523 (rs6000_skip_trampoline_code): Update.
2524 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2525 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2526 * solib-dsbt.c (lm_base): Update.
2527 * solib-frv.c (lm_base): Update.
2529 * solib-irix.c (locate_base): Update.
2530 * solib-som.c (som_solib_create_inferior_hook): Update.
2531 (som_solib_desire_dynamic_linker_symbols): Update.
2532 (link_map_start): Update.
2533 * solib-spu.c (spu_enable_break): Update.
2534 (ocl_enable_break): Update.
2535 * solib-svr4.c (elf_locate_base): Update.
2536 (enable_break): Update.
2537 * spu-tdep.c (spu_get_overlay_table): Update.
2538 (spu_catch_start): Update.
2539 (flush_ea_cache): Update.
2540 * stabsread.c (define_symbol): Update.
2541 (scan_file_globals): Update.
2542 * stack.c (find_frame_funname): Update.
2543 (frame_info): Update.
2544 * symfile.c (simple_read_overlay_table): Update.
2545 (simple_overlay_update): Update.
2546 * symmisc.c (dump_msymbols): Update.
2547 * symtab.c (fixup_section): Update.
2548 (find_pc_sect_line): Update.
2549 (skip_prologue_sal): Update.
2550 (search_symbols): Update.
2551 (print_msymbol_info): Update.
2552 (rbreak_command): Update.
2553 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2554 (completion_list_objc_symbol): Update.
2555 (default_make_symbol_completion_list_break_on): Update.
2556 * tracepoint.c (scope_info): Update.
2557 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2558 (tui_get_begin_asm_address): Update.
2559 * valops.c (find_function_in_inferior): Update.
2560 * value.c (value_static_field): Update.
2561 (value_fn_field): Update.
2563 2014-02-26 Tom Tromey <tromey@redhat.com>
2565 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2566 bound minimal symbols. Move code that knows about minsym
2568 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2570 * minsyms.h (minimal_symbol_upper_bound): Declare.
2571 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2572 minimal_symbol_upper_bound.
2574 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2576 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2577 Use the type's name if its basic type does not have a tag.
2579 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2581 * dwarf2read.c (read_subrange_type): Add comment.
2583 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2585 * dwarf2read.c (update_enumeration_type_from_children): New
2586 function, mostly extracted from process_structure_scope.
2587 (read_enumeration_type): Call update_enumeration_type_from_children.
2588 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2589 and flag_flag_enum fields.
2591 2014-02-26 Pedro Alves <palves@redhat.com>
2593 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2594 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2595 to_xfer_partial method.
2597 2014-02-26 Pedro Alves <palves@redhat.com>
2599 * target.c (complete_target_initialization): Don't install
2600 default_xfer_partial as to_xfer_partial hook.
2602 (update_current_target): Don't INHERIT nor de_fault
2603 deprecated_xfer_memory. Delete de_fault macro.
2604 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2605 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2606 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2609 2014-02-26 Pedro Alves <palves@redhat.com>
2611 * go32-nat.c (my_write_child): New function.
2612 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2613 (go32_xfer_partial): New function.
2614 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2615 Instead install a to_xfer_partial hook.
2617 2014-02-26 Pedro Alves <palves@redhat.com>
2619 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2620 to_xfer_partial helper. Rewrite.
2621 (procfs_xfer_partial): New function.
2622 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
2623 Install a to_xfer_partial hook.
2625 2014-02-26 Pedro Alves <palves@redhat.com>
2627 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
2628 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2629 (m32r_xfer_partial): New function.
2630 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2631 Install a to_xfer_partial hook.
2633 2014-02-26 Pedro Alves <palves@redhat.com>
2635 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2637 (mips_xfer_partial): New function.
2638 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2639 hook. Install a to_xfer_partial hook.
2641 2014-02-26 Joel Brobecker <brobecker@adacore.com>
2643 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2644 * gdbtypes.c (create_array_type_with_stride): New function,
2645 renaming create_array_type, but with an added parameter
2646 called "bit_stride".
2647 (create_array_type): Re-implement using
2648 create_array_type_with_stride.
2649 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2650 and DW_AT_bit_stride attributes.
2652 2014-02-26 Pedro Alves <palves@redhat.com>
2654 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2655 task-specific breakpoints.
2657 2014-02-25 Pedro Alves <palves@redhat.com>
2659 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2660 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2662 2014-02-25 Stan Shebs <stan@codesourcery.com>
2664 * defs.h: Annotate comments for Doxygen.
2666 2014-02-25 Tom Tromey <tromey@redhat.com>
2668 * target.h (target_ignore): Don't declare.
2669 * target.c (target_ignore): Remove.
2671 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2674 * auto-load.c (auto_load_objfile_script_1): Change filename to
2677 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2679 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2680 documentation. Adjust prototype to match the target_ops
2681 to_xfer_partial method. Adjust implementation accordingly.
2683 2014-02-25 Hui Zhu <hui@codesourcery.com>
2685 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2688 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2690 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2691 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2692 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2693 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2694 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2695 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2696 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2697 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2699 (rl78_register_type): Use a data pointer type for SP and
2700 new pseudo registers mentioned above. Use a 16 bit integer
2701 type for all other register pairs.
2702 (rl78_register_name, rl78_g10_register_name): Update for
2703 new pseudo registers.
2704 (rl78_pseudo_register_read): Likewise.
2705 (rl78_pseudo_register_write): Likewise.
2706 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2707 to the newly added pseudo registers.
2709 2014-02-24 Doug Evans <dje@google.com>
2711 * value.c (record_latest_value): Fix comment.
2712 * printcmd.c (print_command_1): Remove code to handle -1 return from
2713 record_latest_value.
2715 2014-02-24 Pedro Alves <palves@redhat.com>
2717 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2718 deprecated_xfer_memory hook.
2719 (procfs_xfer_partial): Call procfs_xfer_memory instead
2720 of the deprecated_xfer_memory target hook.
2721 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2724 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2726 * windows-nat.c (windows_xfer_shared_libraries): Return
2727 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2728 requested object is TARGET_OBJECT_LIBRARIES.
2730 2014-02-24 Yao Qi <yao@codesourcery.com>
2732 * target.h (enum target_xfer_status)
2733 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2734 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2736 * corefile.c (memory_error_message): User updated.
2737 * exec.c (section_table_read_available_memory): Likewise.
2738 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2739 * target.c (target_xfer_status_to_string): Likewise.
2740 (raw_memory_xfer_partial): Likewise.
2741 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2742 * valops.c (read_value_memory): Likewise.
2743 * exec.h: Update comments.
2745 2014-02-24 Yao Qi <yao@codesourcery.com>
2747 * target.c (target_xfer_status_to_string): Rename argument err
2749 * target.h (target_xfer_status_to_string): Update declaration.
2750 Replace target_xfer_error_to_string with
2751 target_xfer_status_to_string in comment.
2753 2014-02-24 Yao Qi <yao@codesourcery.com>
2755 * mips-linux-nat.c (super_close): Update its type.
2756 (mips_linux_close): Pass 'self' to super_close.
2758 2014-02-24 Yao Qi <yao@codesourcery.com>
2760 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2761 * corefile.c (read_memory): Adjusted.
2762 * target.c (target_write_with_progress): Adjusted.
2764 2014-02-23 Yao Qi <yao@codesourcery.com>
2768 2013-10-25 Yao Qi <yao@codesourcery.com>
2770 * remote.c (remote_traceframe_info): Return early if
2771 traceframe is not selected.
2773 2013-07-19 Yao Qi <yao@codesourcery.com>
2775 * target.c (update_current_target): Change the default action
2776 of 'to_traceframe_info' from tcomplain to return_zero.
2777 * target.h (struct target_ops) <to_traceframe_info>: Add more
2780 2014-02-23 Yao Qi <yao@codesourcery.com>
2782 * valops.c (read_value_memory): Rewrite it. Call
2783 target_xfer_partial in a loop.
2784 * exec.h (section_table_available_memory): Remove declaration.
2785 Move comments to ...
2786 * exec.c (section_table_available_memory): ... here. Make it
2789 2014-02-23 Yao Qi <yao@codesourcery.com>
2791 * exec.c (section_table_read_available_memory): New function.
2792 * exec.h (section_table_read_available_memory): Declare.
2793 * ctf.c (ctf_xfer_partial): Call
2794 section_table_read_available_memory.
2795 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2797 2014-02-23 Yao Qi <yao@codesourcery.com>
2799 * ctf.c (ctf_xfer_partial): Move code to ...
2800 * exec.c (exec_read_partial_read_only): ... it. New function.
2801 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2802 * tracefile.c: Include "exec.h".
2803 * exec.h (exec_read_partial_read_only): Declare.
2805 2014-02-23 Yao Qi <yao@codesourcery.com>
2807 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2808 (tfile_has_memory): Remove.
2809 (init_tfile_ops): Don't set fields to_has_all_memory and
2810 to_has_memory of tfile_ops.
2811 * tracefile.c (tracefile_has_all_memory): New function.
2812 (tracefile_has_memory): New function.
2813 (init_tracefile_ops): Initialize fields to_has_all_memory and
2814 to_has_memory of 'ops'.
2816 2014-02-23 Yao Qi <yao@codesourcery.com>
2818 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2819 (ctf_thread_alive, ctf_get_trace_status): Remove.
2820 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2822 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2823 (tfile_has_stack, tfile_has_registers): Remove.
2824 (tfile_thread_alive): Remove.
2825 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2827 * tracefile.c (tracefile_has_stack): New function.
2828 (tracefile_has_registers): New function.
2829 (tracefile_thread_alive): New function.
2830 (tracefile_get_trace_status): New function.
2831 (init_tracefile_ops): New function.
2832 * tracefile.h (init_tracefile_ops): Declare.
2834 2014-02-23 Yao Qi <yao@codesourcery.com>
2836 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2837 (O_LARGEFILE): Likewise.
2838 (tfile_ops): Likewise.
2839 (TRACE_HEADER_SIZE): Likewise.
2840 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2841 (cur_data_size): Likewise.
2842 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2843 (tfile_close, tfile_files_info): Likewise.
2844 (tfile_get_trace_status): Likewise.
2845 (tfile_get_tracepoint_status): Likewise.
2846 (tfile_get_traceframe_address): Likewise.
2847 (tfile_trace_find, match_blocktype): Likewise.
2848 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2849 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2850 (tfile_get_trace_state_variable_value): Likewise.
2851 (tfile_has_all_memory, tfile_has_memory): Likewise.
2852 (tfile_has_stack, tfile_has_registers): Likewise.
2853 (tfile_thread_alive, build_traceframe_info): Likewise.
2854 (tfile_traceframe_info, init_tfile_ops): Likewise.
2855 (_initialize_tracepoint): Don't call init_tfile_ops
2856 and add_target_with_completer.
2857 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2858 exec.h, completer.h and filenames.h.
2859 (_initialize_tracefile_tfile): New function.
2861 2014-02-23 Yao Qi <yao@codesourcery.com>
2863 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2865 (HFILES_NO_SRCDIR): Add tracefile.h.
2866 * ctf.c: Include "tracefile.h".
2867 * tracefile.h: New file.
2868 * tracefile.c: New file
2869 * tracefile-tfile.c: New file.
2870 * tracepoint.c: Include "tracefile.h".
2871 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2872 (stop_reason_names): Add const.
2873 (trace_file_writer_xfree): Move it to tracefile.c.
2874 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2875 (trace_save_ctf): Likewise.
2876 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2877 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2878 (tfile_write_header, tfile_write_regblock_type): Likewise.
2879 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2880 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2881 (tfile_write_raw_data, tfile_end): Likewise.
2882 (tfile_trace_file_writer_new): Likewise.
2883 (free_uploaded_tp): Make it extern.
2884 (free_uploaded_tsv): Make it extern.
2885 (_initialize_tracepoint): Move code to register command 'tsave'
2887 * tracepoint.h (stop_reason_names): Declare.
2888 (struct trace_frame_write_ops): Move it to tracefile.h.
2889 (struct trace_file_write_ops): Likewise.
2890 (struct trace_file_writer): Likewise.
2891 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2893 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2896 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2898 (get_cores_used_by_process): New parameter num_cores, use it.
2899 (linux_xfer_osdata_processes): Pass num_cores to it.
2900 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2903 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2905 * target.c (memory_xfer_partial): Fix length arg in call to
2906 breakpoint_xfer_memory.
2908 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
2911 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
2912 number comes after the + or - signs. Adjust length of register
2913 name to be extracted.
2915 2014-02-20 Tom Tromey <tromey@redhat.com>
2917 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
2918 (ada_varobj_ops): Mark "extern".
2920 2014-02-20 Tom Tromey <tromey@redhat.com>
2922 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
2924 2014-02-20 Doug Evans <xdje42@gmail.com>
2926 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
2927 All callers updated.
2928 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
2929 All callers updated.
2930 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
2931 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
2933 2014-02-20 lin zuojian <manjian2006@gmail.com>
2934 Joel Brobecker <brobecker@adacore.com>
2935 Doug Evans <xdje42@gmail.com>
2938 * dwarf2read.c (struct die_info): New member in_process.
2939 (reset_die_in_process): New function.
2940 (process_die): Set it at the start, reset when returning.
2941 (inherit_abstract_dies): Only call process_die if origin_child_die
2942 not already being processed.
2944 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2946 * windows-nat.c (handle_unload_dll): Add function documentation.
2947 (do_initial_windows_stuff): Add comment explaining why we wait
2948 until after inferior initialization has finished before
2949 processing all DLLs.
2951 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2953 * windows-nat.c (get_module_name): Delete.
2954 (windows_get_exec_module_filename): New function, mostly
2955 inspired from get_module_name.
2956 (windows_pid_to_exec_file): Replace call to get_module_name
2957 by call to windows_get_exec_module_filename.
2959 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2961 * windows-nat.c (handle_load_dll): Rewrite this function's
2962 introductory comment. Remove code using get_module_name
2963 to get the DLL's name.
2965 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2967 * windows-nat.c (get_windows_debug_event): Ignore
2968 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
2969 if windows_initialization_done == 0.
2970 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
2971 Adjust implementation to always load all DLLs.
2972 (do_initial_windows_stuff): Replace call to
2973 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
2975 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2977 * windows-nat.c (_initialize_windows_nat): Deprecate the
2978 "dll-symbols" command. Turn the "add-shared-symbol-files"
2979 and "assf" aliases into commands, and deprecate them as well.
2980 * NEWS: Add entry explaining that "dll-symbols" and its two
2981 aliases are now deprecated.
2983 2014-02-20 Joel Brobecker <brobecker@adacore.com>
2985 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
2986 new-line in debug string. Remove trailing spaces.
2988 2014-02-19 Stan Shebs <stan@codesourcery.com>
2990 * darwin-nat.c (darwin_xfer_partial): Fix return type.
2992 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
2994 * NEWS: Add entry for the new feature
2995 * python/py-value.c (valpy_binop): Call value_x_binop for struct
2998 2014-02-19 Stan Shebs <stan@codesourcery.com>
3000 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3002 2014-02-19 Pedro Alves <palves@redhat.com>
3004 * common/ptid.h (struct ptid): Mention that process_stratum
3005 targets should prefer ptid.lwp.
3007 2014-02-19 Pedro Alves <palves@redhat.com>
3009 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3010 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3011 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3012 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3013 store remote thread ids rather than ptid.tid.
3014 (_initialize_remote): Adjust.
3016 2014-02-19 Tom Tromey <tromey@redhat.com>
3018 * target.c (target_get_unwinder): Rewrite.
3019 (target_get_tailcall_unwinder): Rewrite.
3020 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3021 (record_btrace_to_get_tailcall_unwinder): New function.
3022 (init_record_btrace_ops): Update.
3023 * target.h (struct target_ops) <to_get_unwinder,
3024 to_get_tailcall_unwinder>: Now function pointers. Use
3025 TARGET_DEFAULT_RETURN.
3027 2014-02-19 Tom Tromey <tromey@redhat.com>
3029 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3031 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3033 2014-02-19 Tom Tromey <tromey@redhat.com>
3035 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3037 * target-delegates.c: Rebuild.
3038 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3039 TARGET_DEFAULT_FUNC.
3040 * target.c (default_target_decr_pc_after_break): Rename from
3041 forward_target_decr_pc_after_break. Simplify.
3042 (target_decr_pc_after_break): Rely on delegation.
3044 2014-02-19 Tom Tromey <tromey@redhat.com>
3046 * target.c (update_current_target): Do not INHERIT to_doc or
3047 to_magic. Do not de_fault to_open or to_close.
3049 2014-02-19 Tom Tromey <tromey@redhat.com>
3051 * gcore.h (objfile_find_memory_regions): Declare.
3052 * gcore.c (objfile_find_memory_regions): No longer static. Add
3054 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3055 * exec.c: Include gcore.h.
3056 (exec_set_find_memory_regions): Remove.
3057 (exec_find_memory_regions): Remove.
3058 (exec_do_find_memory_regions): Remove.
3059 (init_exec_ops): Update.
3060 * defs.h (exec_set_find_memory_regions): Remove.
3062 2014-02-19 Tom Tromey <tromey@redhat.com>
3064 * target-delegates.c: Rebuild.
3065 * target.h (struct target_ops) <to_extra_thread_info,
3066 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3067 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3068 not 0, in TARGET_DEFAULT_RETURN.
3070 2014-02-19 Tom Tromey <tromey@redhat.com>
3072 * target.c (complete_target_initialization): Remove casts. Use
3073 return_zero_has_execution.
3074 (return_zero): Add "ignore" argument.
3075 (return_zero_has_execution): New function.
3076 (init_dummy_target): Remove casts. Use
3077 return_zero_has_execution.
3079 2014-02-19 Tom Tromey <tromey@redhat.com>
3081 * target.c (update_current_target): Update comments. Do not
3084 2014-02-19 Tom Tromey <tromey@redhat.com>
3086 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3088 * corelow.c (core_read_description): Delegate when needed.
3089 * remote.c (remote_read_description): Delegate when needed.
3090 * target-delegates.c: Rebuild.
3091 * target.c (target_read_description): Rewrite.
3092 * target.h (struct target_ops) <to_read_description>: Update
3093 comment. Use TARGET_DEFAULT_RETURN.
3095 2014-02-19 Tom Tromey <tromey@redhat.com>
3097 * target-delegates.c: Rebuild.
3098 * target.c (update_current_target): Don't inherit or default
3100 (find_default_run_target): Check against delegate_can_run.
3101 * target.h (struct target_ops) <to_can_run>: Use
3102 TARGET_DEFAULT_RETURN.
3104 2014-02-19 Tom Tromey <tromey@redhat.com>
3106 * target-delegates.c: Rebuild.
3107 * target.c (target_disconnect): Unconditionally delegate.
3108 * target.h (struct target_ops) <to_disconnect>: Use
3109 TARGET_DEFAULT_NORETURN.
3111 2014-02-19 Tom Tromey <tromey@redhat.com>
3113 * record.c (record_stop): Unconditionally delegate.
3114 * target-delegates.c: Rebuild.
3115 * target.c (target_stop_recording): Unconditionally delegate.
3116 * target.h (struct target_ops) <to_stop_recording>: Use
3117 TARGET_DEFAULT_IGNORE.
3119 2014-02-19 Tom Tromey <tromey@redhat.com>
3121 * target-delegates.c: Rebuild.
3122 * target.c (target_enable_btrace): Unconditionally delegate.
3123 * target.h (struct target_ops) <to_enable_btrace>: Use
3124 TARGET_DEFAULT_NORETURN.
3126 2014-02-19 Tom Tromey <tromey@redhat.com>
3128 * target-delegates.c: Rebuild.
3129 * target.c (target_read_btrace): Unconditionally delegate.
3130 * target.h (struct target_ops) <to_read_btrace>: Use
3131 TARGET_DEFAULT_NORETURN.
3133 2014-02-19 Tom Tromey <tromey@redhat.com>
3135 * target-delegates.c: Rebuild.
3136 * target.c (target_teardown_btrace): Unconditionally delegate.
3137 * target.h (struct target_ops) <to_teardown_btrace>: Use
3138 TARGET_DEFAULT_NORETURN.
3140 2014-02-19 Tom Tromey <tromey@redhat.com>
3142 * target-delegates.c: Rebuild.
3143 * target.c (target_disable_btrace): Unconditionally delegate.
3144 * target.h (struct target_ops) <to_disable_btrace>: Use
3145 TARGET_DEFAULT_NORETURN.
3147 2014-02-19 Tom Tromey <tromey@redhat.com>
3149 * target-delegates.c: Rebuild.
3150 * target.c (default_search_memory): New function.
3151 (simple_search_memory): Update comment.
3152 (target_search_memory): Unconditionally delegate.
3153 * target.h (struct target_ops) <to_search_memory>: Use
3154 TARGET_DEFAULT_FUNC.
3156 2014-02-19 Tom Tromey <tromey@redhat.com>
3158 * auxv.c (default_auxv_parse): No longer static.
3159 (target_auxv_parse): Unconditionally delegate.
3160 * auxv.h (default_auxv_parse): Declare.
3161 * target-delegates.c: Rebuild.
3162 * target.c: Include auxv.h.
3163 * target.h (struct target_ops) <to_auxv_parse>: Use
3164 TARGET_DEFAULT_FUNC.
3166 2014-02-19 Tom Tromey <tromey@redhat.com>
3168 * target-delegates.c: Rebuild.
3169 * target.c (target_memory_map): Unconditionally delegate.
3170 * target.h (struct target_ops) <to_memory_map>: Use
3171 TARGET_DEFAULT_RETURN.
3173 2014-02-19 Tom Tromey <tromey@redhat.com>
3175 * target-delegates.c: Rebuild.
3176 * target.c (target_thread_alive): Unconditionally delegate.
3177 * target.h (struct target_ops) <to_thread_alive>: Use
3178 TARGET_DEFAULT_RETURN.
3180 2014-02-19 Tom Tromey <tromey@redhat.com>
3182 * target-delegates.c: Rebuild.
3183 * target.c (target_save_record): Unconditionally delegate.
3184 * target.h (struct target_ops) <to_save_record>: Use
3185 TARGET_DEFAULT_NORETURN.
3187 2014-02-19 Tom Tromey <tromey@redhat.com>
3189 * target-delegates.c: Rebuild.
3190 * target.c (target_delete_record): Unconditionally delegate.
3191 * target.h (struct target_ops) <to_delete_record>: Use
3192 TARGET_DEFAULT_NORETURN.
3194 2014-02-19 Tom Tromey <tromey@redhat.com>
3196 * target-delegates.c: Rebuild.
3197 * target.c (target_record_is_replaying): Unconditionally
3199 * target.h (struct target_ops) <to_record_is_replaying>: Use
3200 TARGET_DEFAULT_RETURN.
3202 2014-02-19 Tom Tromey <tromey@redhat.com>
3204 * target-delegates.c: Rebuild.
3205 * target.c (target_goto_record_begin): Unconditionally delegate.
3206 * target.h (struct target_ops) <to_goto_record_begin>: Use
3207 TARGET_DEFAULT_NORETURN.
3209 2014-02-19 Tom Tromey <tromey@redhat.com>
3211 * target-delegates.c: Rebuild.
3212 * target.c (target_goto_record_end): Unconditionally delegate.
3213 * target.h (struct target_ops) <to_goto_record_end>: Use
3214 TARGET_DEFAULT_NORETURN.
3216 2014-02-19 Tom Tromey <tromey@redhat.com>
3218 * target-delegates.c: Rebuild.
3219 * target.c (target_goto_record): Unconditionally delegate.
3220 * target.h (struct target_ops) <to_goto_record>: Use
3221 TARGET_DEFAULT_NORETURN.
3223 2014-02-19 Tom Tromey <tromey@redhat.com>
3225 * target-delegates.c: Rebuild.
3226 * target.c (target_insn_history): Unconditionally delegate.
3227 * target.h (struct target_ops) <to_insn_history>: Use
3228 TARGET_DEFAULT_NORETURN.
3230 2014-02-19 Tom Tromey <tromey@redhat.com>
3232 * target-delegates.c: Rebuild.
3233 * target.c (target_insn_history_from): Unconditionally delegate.
3234 * target.h (struct target_ops) <to_insn_history_from>: Use
3235 TARGET_DEFAULT_NORETURN.
3237 2014-02-19 Tom Tromey <tromey@redhat.com>
3239 * target-delegates.c: Rebuild.
3240 * target.c (target_insn_history_range): Unconditionally delegate.
3241 * target.h (struct target_ops) <to_insn_history_range>: Use
3242 TARGET_DEFAULT_NORETURN.
3244 2014-02-19 Tom Tromey <tromey@redhat.com>
3246 * target-delegates.c: Rebuild.
3247 * target.c (target_call_history): Unconditionally delegate.
3248 * target.h (struct target_ops) <to_call_history>: Use
3249 TARGET_DEFAULT_NORETURN.
3251 2014-02-19 Tom Tromey <tromey@redhat.com>
3253 * target-delegates.c: Rebuild.
3254 * target.c (target_call_history_from): Unconditionally delegate.
3255 * target.h (struct target_ops) <to_call_history_from>: Use
3256 TARGET_DEFAULT_NORETURN.
3258 2014-02-19 Tom Tromey <tromey@redhat.com>
3260 * target-delegates.c: Rebuild.
3261 * target.c (target_call_history_range): Unconditionally delegate.
3262 * target.h (struct target_ops) <to_call_history_range>: Use
3263 TARGET_DEFAULT_NORETURN.
3265 2014-02-19 Tom Tromey <tromey@redhat.com>
3267 * target-delegates.c: Rebuild.
3268 * target.c (target_verify_memory): Unconditionally delegate.
3269 * target.h (struct target_ops) <to_verify_memory>: Use
3270 TARGET_DEFAULT_NORETURN.
3272 2014-02-19 Tom Tromey <tromey@redhat.com>
3274 * target-delegates.c: Rebuild.
3275 * target.c (target_core_of_thread): Unconditionally delegate.
3276 * target.h (struct target_ops) <to_core_of_thread>: Use
3277 TARGET_DEFAULT_RETURN.
3279 2014-02-19 Tom Tromey <tromey@redhat.com>
3281 * target-delegates.c: Rebuild.
3282 * target.c (target_flash_done): Unconditionally delegate.
3283 * target.h (struct target_ops) <to_flash_done>: Use
3284 TARGET_DEFAULT_NORETURN.
3286 2014-02-19 Tom Tromey <tromey@redhat.com>
3288 * target-delegates.c: Rebuild.
3289 * target.c (target_flash_erase): Unconditionally delegate.
3290 * target.h (struct target_ops) <to_flash_erase>: Use
3291 TARGET_DEFAULT_NORETURN.
3293 2014-02-19 Tom Tromey <tromey@redhat.com>
3295 * target-delegates.c: Rebuild.
3296 * target.c (target_get_section_table): Unconditionally delegate.
3297 * target.h (struct target_ops) <to_get_section_table>: Use
3298 TARGET_DEFAULT_RETURN.
3300 2014-02-19 Tom Tromey <tromey@redhat.com>
3302 * target-delegates.c: Rebuild.
3303 * target.c (target_pid_to_str): Unconditionally delegate.
3304 (init_dummy_target): Don't initialize to_pid_to_str.
3305 (default_pid_to_str): Rename from dummy_pid_to_str.
3306 * target.h (struct target_ops) <to_pid_to_str>: Use
3307 TARGET_DEFAULT_FUNC.
3309 2014-02-19 Tom Tromey <tromey@redhat.com>
3311 * target-delegates.c: Rebuild.
3312 * target.c (target_find_new_threads): Unconditionally delegate.
3313 * target.h (struct target_ops) <to_find_new_threads>: Use
3314 TARGET_DEFAULT_RETURN.
3316 2014-02-19 Tom Tromey <tromey@redhat.com>
3318 * target-delegates.c: Rebuild.
3319 * target.c (target_program_signals): Unconditionally delegate.
3320 * target.h (struct target_ops) <to_program_signals>: Use
3321 TARGET_DEFAULT_IGNORE.
3323 2014-02-19 Tom Tromey <tromey@redhat.com>
3325 * target-delegates.c: Rebuild.
3326 * target.c (target_pass_signals): Unconditionally delegate.
3327 * target.h (struct target_ops) <to_pass_signals>: Use
3328 TARGET_DEFAULT_IGNORE.
3330 2014-02-19 Tom Tromey <tromey@redhat.com>
3332 * target-delegates.c: Rebuild.
3333 * target.c (default_mourn_inferior): New function.
3334 (target_mourn_inferior): Unconditionally delegate.
3335 * target.h (struct target_ops) <to_mourn_inferior>: Use
3336 TARGET_DEFAULT_FUNC.
3338 2014-02-19 Tom Tromey <tromey@redhat.com>
3340 * target-delegates.c: Rebuild.
3341 * target.c (default_follow_fork): New function.
3342 (target_follow_fork): Unconditionally delegate.
3343 * target.h (struct target_ops) <to_follow_fork>: Use
3344 TARGET_DEFAULT_FUNC.
3346 2014-02-19 Tom Tromey <tromey@redhat.com>
3348 * target-delegates.c: Rebuild.
3349 * target.c (target_kill): Unconditionally delegate.
3350 * target.h (struct target_ops) <to_kill>: Use
3351 TARGET_DEFAULT_NORETURN.
3353 2014-02-19 Tom Tromey <tromey@redhat.com>
3355 * target-delegates.c: Rebuild.
3356 * target.c (target_masked_watch_num_registers): Unconditionally
3358 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3359 Use TARGET_DEFAULT_RETURN.
3361 2014-02-19 Tom Tromey <tromey@redhat.com>
3363 * target-delegates.c: Rebuild.
3364 * target.c (target_remove_mask_watchpoint): Unconditionally
3366 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3367 TARGET_DEFAULT_RETURN.
3369 2014-02-19 Tom Tromey <tromey@redhat.com>
3371 * target-delegates.c: Rebuild.
3372 * target.c (target_insert_mask_watchpoint): Unconditionally
3374 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3375 TARGET_DEFAULT_RETURN.
3377 2014-02-19 Tom Tromey <tromey@redhat.com>
3379 * target-delegates.c: Rebuild.
3380 * target.c (target_ranged_break_num_registers): Unconditionally
3382 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3383 Use TARGET_DEFAULT_RETURN.
3385 2014-02-19 Tom Tromey <tromey@redhat.com>
3387 * target-delegates.c: Rebuild.
3388 * target.c (target_fetch_registers): Unconditionally delegate.
3389 * target.h (struct target_ops) <to_fetch_registers>: Use
3390 TARGET_DEFAULT_NORETURN.
3392 2014-02-19 Tom Tromey <tromey@redhat.com>
3394 * target-delegates.c: Rebuild.
3395 * target.c (update_current_target): Don't inherit or default
3397 * target.h (struct target_ops) <to_stop>: Use
3398 TARGET_DEFAULT_IGNORE.
3400 2014-02-19 Tom Tromey <tromey@redhat.com>
3402 * target-delegates.c: Rebuild.
3403 * target.c (update_current_target): Don't inherit or default
3404 to_can_run_breakpoint_commands.
3405 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3406 Use TARGET_DEFAULT_RETURN.
3408 2014-02-19 Tom Tromey <tromey@redhat.com>
3410 * target-delegates.c: Rebuild.
3411 * target.c (update_current_target): Don't inherit or default
3412 to_supports_evaluation_of_breakpoint_conditions.
3413 * target.h (struct target_ops)
3414 <to_supports_evaluation_of_breakpoint_conditions>: Use
3415 TARGET_DEFAULT_RETURN.
3417 2014-02-19 Tom Tromey <tromey@redhat.com>
3419 * target-delegates.c: Rebuild.
3420 * target.c (update_current_target): Don't inherit or default
3421 to_augmented_libraries_svr4_read.
3422 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3423 Use TARGET_DEFAULT_RETURN.
3425 2014-02-19 Tom Tromey <tromey@redhat.com>
3427 * target-delegates.c: Rebuild.
3428 * target.c (update_current_target): Don't inherit or default
3430 * target.h (struct target_ops) <to_can_use_agent>: Use
3431 TARGET_DEFAULT_RETURN.
3433 2014-02-19 Tom Tromey <tromey@redhat.com>
3435 * target-delegates.c: Rebuild.
3436 * target.c (update_current_target): Don't inherit or default
3438 * target.h (struct target_ops) <to_use_agent>: Use
3439 TARGET_DEFAULT_NORETURN.
3441 2014-02-19 Tom Tromey <tromey@redhat.com>
3443 * target-delegates.c: Rebuild.
3444 * target.c (update_current_target): Don't inherit or default
3446 (return_null): Remove.
3447 * target.h (struct target_ops) <to_traceframe_info>: Use
3448 TARGET_DEFAULT_RETURN.
3450 2014-02-19 Tom Tromey <tromey@redhat.com>
3452 * target-delegates.c: Rebuild.
3453 * target.c (update_current_target): Don't inherit or default
3454 to_static_tracepoint_markers_by_strid.
3455 * target.h (struct target_ops)
3456 <to_static_tracepoint_markers_by_strid>: Use
3457 TARGET_DEFAULT_NORETURN.
3459 2014-02-19 Tom Tromey <tromey@redhat.com>
3461 * target-delegates.c: Rebuild.
3462 * target.c (update_current_target): Don't inherit or default
3463 to_static_tracepoint_marker_at.
3464 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3465 Use TARGET_DEFAULT_RETURN.
3467 2014-02-19 Tom Tromey <tromey@redhat.com>
3469 * target-delegates.c: Rebuild.
3470 * target.c (update_current_target): Don't inherit or default
3472 * target.h (struct target_ops) <to_set_permissions>: Use
3473 TARGET_DEFAULT_IGNORE.
3475 2014-02-19 Tom Tromey <tromey@redhat.com>
3477 * target-delegates.c: Rebuild.
3478 * target.c (update_current_target): Don't inherit or default
3480 * target.h (struct target_ops) <to_get_tib_address>: Use
3481 TARGET_DEFAULT_NORETURN.
3483 2014-02-19 Tom Tromey <tromey@redhat.com>
3485 * target-delegates.c: Rebuild.
3486 * target.c (update_current_target): Don't inherit or default
3488 * target.h (struct target_ops) <to_set_trace_notes>: Use
3489 TARGET_DEFAULT_RETURN.
3491 2014-02-19 Tom Tromey <tromey@redhat.com>
3493 * target-delegates.c: Rebuild.
3494 * target.c (update_current_target): Don't initialize
3495 to_set_trace_buffer_size.
3496 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3497 TARGET_DEFAULT_IGNORE.
3499 2014-02-19 Tom Tromey <tromey@redhat.com>
3501 * target-delegates.c: Rebuild.
3502 * target.c (update_current_target): Don't inherit or default
3503 to_set_circular_trace_buffer.
3504 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3505 TARGET_DEFAULT_IGNORE.
3507 2014-02-19 Tom Tromey <tromey@redhat.com>
3509 * target-delegates.c: Rebuild.
3510 * target.c (update_current_target): Don't inherit or default
3511 to_set_disconnected_tracing.
3512 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3513 TARGET_DEFAULT_IGNORE.
3515 2014-02-19 Tom Tromey <tromey@redhat.com>
3517 * target-delegates.c: Rebuild.
3518 * target.c (update_current_target): Don't inherit or default
3519 to_get_min_fast_tracepoint_insn_len.
3520 (return_minus_one): Remove.
3521 * target.h (struct target_ops)
3522 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
3524 2014-02-19 Tom Tromey <tromey@redhat.com>
3526 * target-delegates.c: Rebuild.
3527 * target.c (update_current_target): Don't inherit or default
3528 to_get_raw_trace_data.
3529 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3530 TARGET_DEFAULT_NORETURN.
3532 2014-02-19 Tom Tromey <tromey@redhat.com>
3534 * target-delegates.c: Rebuild.
3535 * target.c (update_current_target): Don't inherit or default
3536 to_upload_trace_state_variables.
3537 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3538 Use TARGET_DEFAULT_RETURN.
3540 2014-02-19 Tom Tromey <tromey@redhat.com>
3542 * target-delegates.c: Rebuild.
3543 * target.c (update_current_target): Don't inherit or default
3544 to_upload_tracepoints.
3545 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3546 TARGET_DEFAULT_RETURN.
3548 2014-02-19 Tom Tromey <tromey@redhat.com>
3550 * target-delegates.c: Rebuild.
3551 * target.c (update_current_target): Don't inherit or default
3553 * target.h (struct target_ops) <to_save_trace_data>: Use
3554 TARGET_DEFAULT_NORETURN.
3556 2014-02-19 Tom Tromey <tromey@redhat.com>
3558 * target-delegates.c: Rebuild.
3559 * target.c (update_current_target): Don't inherit or default
3560 to_get_trace_state_variable_value.
3561 * target.h (struct target_ops)
3562 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3564 2014-02-19 Tom Tromey <tromey@redhat.com>
3566 * target-delegates.c: Rebuild.
3567 * target.c (update_current_target): Don't inherit or default
3569 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
3571 2014-02-19 Tom Tromey <tromey@redhat.com>
3573 * target-delegates.c: Rebuild.
3574 * target.c (update_current_target): Don't inherit or default
3576 * target.h (struct target_ops) <to_trace_stop>: Use
3577 TARGET_DEFAULT_NORETURN.
3579 2014-02-19 Tom Tromey <tromey@redhat.com>
3581 * target-delegates.c: Rebuild.
3582 * target.c (update_current_target): Don't inherit or default
3583 to_get_tracepoint_status.
3584 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3585 TARGET_DEFAULT_NORETURN.
3587 2014-02-19 Tom Tromey <tromey@redhat.com>
3589 * target-delegates.c: Rebuild.
3590 * target.c (update_current_target): Don't inherit or default
3591 to_get_trace_status.
3592 * target.h (struct target_ops) <to_get_trace_status>: Use
3593 TARGET_DEFAULT_RETURN.
3595 2014-02-19 Tom Tromey <tromey@redhat.com>
3597 * target-delegates.c: Rebuild.
3598 * target.c (update_current_target): Don't inherit or default
3600 * target.h (struct target_ops) <to_trace_start>: Use
3601 TARGET_DEFAULT_NORETURN.
3603 2014-02-19 Tom Tromey <tromey@redhat.com>
3605 * target-delegates.c: Rebuild.
3606 * target.c (update_current_target): Don't inherit or default
3607 to_trace_set_readonly_regions.
3608 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3609 Use TARGET_DEFAULT_NORETURN.
3611 2014-02-19 Tom Tromey <tromey@redhat.com>
3613 * target-delegates.c: Rebuild.
3614 * target.c (update_current_target): Don't inherit or default
3615 to_disable_tracepoint.
3616 * target.h (struct target_ops) <to_disable_tracepoint>: Use
3617 TARGET_DEFAULT_NORETURN.
3619 2014-02-19 Tom Tromey <tromey@redhat.com>
3621 * target-delegates.c: Rebuild.
3622 * target.c (update_current_target): Don't inherit or default
3623 to_enable_tracepoint.
3624 * target.h (struct target_ops) <to_enable_tracepoint>: Use
3625 TARGET_DEFAULT_NORETURN.
3627 2014-02-19 Tom Tromey <tromey@redhat.com>
3629 * target-delegates.c: Rebuild.
3630 * target.c (update_current_target): Don't inherit or default
3631 to_download_trace_state_variable.
3632 * target.h (struct target_ops) <to_download_trace_state_variable>:
3633 Use TARGET_DEFAULT_NORETURN.
3635 2014-02-19 Tom Tromey <tromey@redhat.com>
3637 * target-delegates.c: Rebuild.
3638 * target.c (update_current_target): Don't inherit or default
3639 to_can_download_tracepoint.
3640 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3641 TARGET_DEFAULT_RETURN.
3643 2014-02-19 Tom Tromey <tromey@redhat.com>
3645 * target-delegates.c: Rebuild.
3646 * target.c (update_current_target): Don't inherit or default
3647 to_download_tracepoint.
3648 * target.h (struct target_ops) <to_download_tracepoint>: Use
3649 TARGET_DEFAULT_NORETURN.
3651 2014-02-19 Tom Tromey <tromey@redhat.com>
3653 * target-delegates.c: Rebuild.
3654 * target.c (update_current_target): Don't inherit or default
3656 * target.h (struct target_ops) <to_trace_init>: Use
3657 TARGET_DEFAULT_RETURN.
3659 2014-02-19 Tom Tromey <tromey@redhat.com>
3661 * target-delegates.c: Rebuild.
3662 * target.c (update_current_target): Don't inherit or default
3663 to_supports_string_tracing.
3664 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3665 TARGET_DEFAULT_RETURN.
3667 2014-02-19 Tom Tromey <tromey@redhat.com>
3669 * target-delegates.c: Rebuild.
3670 * target.c (update_current_target): Don't inherit or default
3671 to_supports_enable_disable_tracepoint.
3672 * target.h (struct target_ops)
3673 <to_supports_enable_disable_tracepoint>: Use
3674 TARGET_DEFAULT_RETURN.
3676 2014-02-19 Tom Tromey <tromey@redhat.com>
3678 * target-delegates.c: Rebuild.
3679 * target.c (update_current_target): Don't inherit or default
3680 to_supports_multi_process.
3681 * target.h (struct target_ops) <to_supports_multi_process>: Use
3682 TARGET_DEFAULT_RETURN.
3684 2014-02-19 Tom Tromey <tromey@redhat.com>
3686 * target-delegates.c: Rebuild.
3687 * target.c (update_current_target): Don't inherit or default
3688 to_get_ada_task_ptid.
3689 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3690 TARGET_DEFAULT_FUNC.
3692 2014-02-19 Tom Tromey <tromey@redhat.com>
3694 * target-delegates.c: Rebuild.
3695 * target.c (update_current_target): Don't inherit or default
3696 to_thread_architecture.
3697 * target.h (struct target_ops) <to_thread_architecture>: Use
3698 TARGET_DEFAULT_FUNC.
3700 2014-02-19 Tom Tromey <tromey@redhat.com>
3702 * target-delegates.c: Rebuild.
3703 * target.c (update_current_target): Don't inherit or default
3704 to_execution_direction.
3705 * target.h (struct target_ops) <to_execution_direction>: Use
3706 TARGET_DEFAULT_FUNC.
3708 2014-02-19 Tom Tromey <tromey@redhat.com>
3710 * target-delegates.c: Rebuild.
3711 * target.c (update_current_target): Don't inherit or default
3712 to_can_execute_reverse.
3713 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3714 TARGET_DEFAULT_RETURN.
3715 (target_can_execute_reverse): Unconditionally delegate.
3717 2014-02-19 Tom Tromey <tromey@redhat.com>
3719 * target-delegates.c: Rebuild.
3720 * target.c (update_current_target): Don't inherit or default
3722 (dummy_goto_bookmark): Remove.
3723 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3724 * target.h (struct target_ops) <to_goto_bookmark>: Use
3725 TARGET_DEFAULT_NORETURN.
3727 2014-02-19 Tom Tromey <tromey@redhat.com>
3729 * target-delegates.c: Rebuild.
3730 * target.c (update_current_target): Don't inherit or default
3732 (dummy_get_bookmark): Remove.
3733 (init_dummy_target): Don't inherit or default to_get_bookmark.
3734 * target.h (struct target_ops) <to_get_bookmark>: Use
3735 TARGET_DEFAULT_NORETURN
3737 2014-02-19 Tom Tromey <tromey@redhat.com>
3739 * target-delegates.c: Rebuild.
3740 * target.c (update_current_target): Don't inherit or default
3741 to_make_corefile_notes.
3742 (init_dummy_target): Don't initialize to_make_corefile_notes.
3743 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3744 TARGET_DEFAULT_FUNC.
3746 2014-02-19 Tom Tromey <tromey@redhat.com>
3748 * target-delegates.c: Rebuild.
3749 * target.c (update_current_target): Don't inherit or default
3750 to_find_memory_regions.
3751 (init_dummy_target): Don't initialize to_find_memory_regions.
3752 * target.h (struct target_ops) <to_find_memory_regions>: Use
3753 TARGET_DEFAULT_FUNC.
3755 2014-02-19 Tom Tromey <tromey@redhat.com>
3757 * target-delegates.c: Rebuild.
3758 * target.c (update_current_target): Don't inherit or default
3760 * target.h (struct target_ops) <to_log_command>: Use
3761 TARGET_DEFAULT_IGNORE.
3762 (target_log_command): Unconditionally delegate.
3764 2014-02-19 Tom Tromey <tromey@redhat.com>
3766 * target-delegates.c: Rebuild.
3767 * target.c (update_current_target): Don't inherit or default
3768 to_pid_to_exec_file.
3769 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3770 TARGET_DEFAULT_RETURN.
3772 2014-02-19 Tom Tromey <tromey@redhat.com>
3774 * target-delegates.c: Rebuild.
3775 * target.c (update_current_target): Don't inherit or default
3777 (target_thread_name): Unconditionally delegate.
3778 * target.h (struct target_ops) <to_thread_name>: Use
3779 TARGET_DEFAULT_RETURN.
3781 2014-02-19 Tom Tromey <tromey@redhat.com>
3783 * target-delegates.c: Rebuild.
3784 * target.c (update_current_target): Don't inherit or default
3785 to_extra_thread_info.
3786 * target.h (struct target_ops) <to_extra_thread_info>: Use
3787 TARGET_DEFAULT_RETURN.
3789 2014-02-19 Tom Tromey <tromey@redhat.com>
3791 * target-delegates.c: Rebuild.
3792 * target.c (update_current_target): Don't inherit or default
3794 * target.h (struct target_ops) <to_has_exited>: Use
3795 TARGET_DEFAULT_RETURN..
3797 2014-02-19 Tom Tromey <tromey@redhat.com>
3799 * target-delegates.c: Rebuild.
3800 * target.c (update_current_target): Don't inherit or default
3801 to_set_syscall_catchpoint.
3802 (return_one): Remove.
3803 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3804 TARGET_DEFAULT_RETURN.
3806 2014-02-19 Tom Tromey <tromey@redhat.com>
3808 * target-delegates.c: Rebuild.
3809 * target.c (update_current_target): Don't inherit or default
3810 to_insert_exec_catchpoint.
3811 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3812 TARGET_DEFAULT_RETURN.
3814 2014-01-08 Tom Tromey <tromey@redhat.com>
3816 * target-delegates.c: Rebuild.
3817 * target.c (update_current_target): Don't inherit or default
3818 to_insert_exec_catchpoint.
3819 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3820 TARGET_DEFAULT_RETURN.
3822 2014-02-19 Tom Tromey <tromey@redhat.com>
3824 * target-delegates.c: Rebuild.
3825 * target.c (update_current_target): Don't inherit or default
3826 to_remove_vfork_catchpoint.
3827 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3828 TARGET_DEFAULT_RETURN.
3830 2014-02-19 Tom Tromey <tromey@redhat.com>
3832 * target-delegates.c: Rebuild.
3833 * target.c (update_current_target): Don't inherit or default
3834 to_insert_vfork_catchpoint.
3835 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3836 TARGET_DEFAULT_RETURN.
3838 2014-02-19 Tom Tromey <tromey@redhat.com>
3840 * target-delegates.c: Rebuild.
3841 * target.c (update_current_target): Don't inherit or default
3842 to_remove_fork_catchpoint.
3843 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3844 TARGET_DEFAULT_RETURN.
3846 2014-02-19 Tom Tromey <tromey@redhat.com>
3848 * target-delegates.c: Rebuild.
3849 * target.c (update_current_target): Don't inherit or default
3850 to_insert_fork_catchpoint.
3851 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3852 TARGET_DEFAULT_RETURN.
3854 2014-02-19 Tom Tromey <tromey@redhat.com>
3856 * target-delegates.c: Rebuild.
3857 * target.c (update_current_target): Don't inherit or default
3858 to_post_startup_inferior.
3859 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3860 TARGET_DEFAULT_IGNORE.
3862 2014-02-19 Tom Tromey <tromey@redhat.com>
3864 * target-delegates.c: Rebuild.
3865 * target.c (update_current_target): Don't inherit or default
3867 * target.h (struct target_ops) <to_load>: Use
3868 TARGET_DEFAULT_NORETURN.
3870 2014-02-19 Tom Tromey <tromey@redhat.com>
3872 * target-delegates.c: Rebuild.
3873 * target.c (update_current_target): Don't inherit or default
3875 * target.h (struct target_ops) <to_terminal_info>: Use
3876 TARGET_DEFAULT_FUNC.
3878 2014-02-19 Tom Tromey <tromey@redhat.com>
3880 * target-delegates.c: Rebuild.
3881 * target.c (update_current_target): Don't inherit or default
3882 to_terminal_save_ours.
3883 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3884 TARGET_DEFAULT_IGNORE.
3886 2014-02-19 Tom Tromey <tromey@redhat.com>
3888 * target-delegates.c: Rebuild.
3889 * target.c (update_current_target): Don't inherit or default
3891 * target.h (struct target_ops) <to_terminal_ours>: Use
3892 TARGET_DEFAULT_IGNORE.
3894 2014-02-19 Tom Tromey <tromey@redhat.com>
3896 * target-delegates.c: Rebuild.
3897 * target.c (update_current_target): Don't inherit or default
3898 to_terminal_ours_for_output.
3899 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3900 TARGET_DEFAULT_IGNORE.
3902 2014-02-19 Tom Tromey <tromey@redhat.com>
3904 * target-delegates.c: Rebuild.
3905 * target.c (update_current_target): Don't inherit or default
3906 to_terminal_inferior.
3907 * target.h (struct target_ops) <to_terminal_inferior>: Use
3908 TARGET_DEFAULT_IGNORE.
3910 2014-02-19 Tom Tromey <tromey@redhat.com>
3912 * target-delegates.c: Rebuild.
3913 * target.c (update_current_target): Don't inherit or default
3915 * target.h (struct target_ops) <to_terminal_init>: Use
3916 TARGET_DEFAULT_IGNORE.
3918 2014-02-19 Tom Tromey <tromey@redhat.com>
3920 * target-delegates.c: Rebuild.
3921 * target.c (update_current_target): Don't inherit or default
3922 to_can_accel_watchpoint_condition.
3923 * target.h (struct target_ops)
3924 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
3926 2014-02-19 Tom Tromey <tromey@redhat.com>
3928 * target-delegates.c: Rebuild.
3929 * target.c (update_current_target): Don't inherit or default
3930 to_region_ok_for_hw_watchpoint.
3931 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
3932 Use TARGET_DEFAULT_FUNC.
3934 2014-02-19 Tom Tromey <tromey@redhat.com>
3936 * target-delegates.c: Rebuild.
3937 * target.c (update_current_target): Don't inherit or default
3938 to_watchpoint_addr_within_range.
3939 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
3940 Use TARGET_DEFAULT_FUNC.
3942 2014-02-19 Tom Tromey <tromey@redhat.com>
3944 * target-delegates.c: Rebuild.
3945 * target.c (update_current_target): Don't inherit or default
3946 to_remove_watchpoint.
3947 * target.h (struct target_ops) <to_remove_watchpoint>: Use
3948 TARGET_DEFAULT_NORETURN.
3950 2014-02-19 Tom Tromey <tromey@redhat.com>
3952 * target-delegates.c: Rebuild.
3953 * target.c (update_current_target): Don't inherit or default
3954 to_insert_watchpoint.
3955 * target.h (struct target_ops) <to_insert_watchpoint>: Use
3956 TARGET_DEFAULT_RETURN.
3958 2014-02-19 Tom Tromey <tromey@redhat.com>
3960 * target-delegates.c: Rebuild.
3961 * target.c (update_current_target): Don't inherit or default
3962 to_remove_hw_breakpoint.
3963 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
3964 TARGET_DEFAULT_RETURN.
3966 2014-02-19 Tom Tromey <tromey@redhat.com>
3968 * target-delegates.c: Rebuild.
3969 * target.c (update_current_target): Don't inherit or default
3970 to_insert_hw_breakpoint.
3971 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
3972 TARGET_DEFAULT_RETURN.
3974 2014-02-19 Tom Tromey <tromey@redhat.com>
3976 * target-delegates.c: Rebuild.
3977 * target.c (update_current_target): Don't inherit or default
3978 to_can_use_hw_breakpoint.
3979 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
3980 TARGET_DEFAULT_RETURN.
3982 2014-02-19 Tom Tromey <tromey@redhat.com>
3984 * target-delegates.c: Rebuild.
3985 * target.c (update_current_target): Don't inherit or default
3987 * target.h (struct target_ops) <to_files_info>: Use
3988 TARGET_DEFAULT_IGNORE.
3990 2014-02-19 Tom Tromey <tromey@redhat.com>
3992 * target-delegates.c: Rebuild.
3993 * target.c (update_current_target): Don't inherit or default
3995 * target.h (struct target_ops) <to_store>: Use
3996 TARGET_DEFAULT_NORETURN.
3998 2014-02-19 Tom Tromey <tromey@redhat.com>
4000 * target-delegates.c: Rebuild.
4001 * target.c (update_current_target): Don't inherit or default
4003 * target.h (struct target_ops) <to_post_attach>: Use
4004 TARGET_DEFAULT_IGNORE.
4006 2014-02-19 Tom Tromey <tromey@redhat.com>
4008 * target-delegates.c: Rebuild.
4009 * target.c (update_current_target): Don't inherit or default
4011 (default_rcmd): New function.
4012 (do_monitor_command): Unconditionally delegate.
4013 * target.h (struct target_ops) <to_rmcd>: Use
4014 TARGET_DEFAULT_FUNC.
4016 2014-02-19 Tom Tromey <tromey@redhat.com>
4018 * target-delegates.c: Rebuild.
4019 * target.c (init_dummy_target): Don't initialize to_attach.
4020 (target_attach): Unconditionally delegate.
4021 * target.h (struct target_ops) <to_attach>: Use
4022 TARGET_DEFAULT_FUNC.
4024 2014-02-19 Tom Tromey <tromey@redhat.com>
4026 * target-delegates.c: Rebuild.
4027 * target.c (target_detach): Unconditionally delegate.
4028 (init_dummy_target): Don't initialize to_detach.
4029 * target.h (struct target_ops) <to_detach>: Use
4030 TARGET_DEFAULT_IGNORE.
4032 2014-02-19 Tom Tromey <tromey@redhat.com>
4034 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4036 (target_augmented_libraries_svr4_read): Add argument.
4037 * target.c (update_current_target): Update.
4038 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4041 2014-02-19 Tom Tromey <tromey@redhat.com>
4043 * target.h (struct target_ops) <to_call_history_range>: Add
4045 * target.c (target_call_history_range): Add argument.
4046 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4048 (record_btrace_call_history_from): Update.
4050 2014-02-19 Tom Tromey <tromey@redhat.com>
4052 * target.h (struct target_ops) <to_call_history_from>: Add
4054 * target.c (target_call_history_from): Add argument.
4055 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4058 2014-02-19 Tom Tromey <tromey@redhat.com>
4060 * target.h (struct target_ops) <to_call_history>: Add argument.
4061 * target.c (target_call_history): Add argument.
4062 * record-btrace.c (record_btrace_call_history): Add 'self'
4065 2014-02-19 Tom Tromey <tromey@redhat.com>
4067 * target.h (struct target_ops) <to_insn_history_range>: Add
4069 * target.c (target_insn_history_range): Add argument.
4070 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4072 (record_btrace_insn_history_from): Update.
4074 2014-02-19 Tom Tromey <tromey@redhat.com>
4076 * target.h (struct target_ops) <to_insn_history_from>: Add
4078 * target.c (target_insn_history_from): Add argument.
4079 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4082 2014-02-19 Tom Tromey <tromey@redhat.com>
4084 * target.h (struct target_ops) <to_insn_history>: Add argument.
4085 * target.c (target_insn_history): Add argument.
4086 * record-btrace.c (record_btrace_insn_history): Add 'self'
4089 2014-02-19 Tom Tromey <tromey@redhat.com>
4091 * target.h (struct target_ops) <to_goto_record>: Add argument.
4092 * target.c (target_goto_record): Add argument.
4093 * record-full.c (record_full_goto): Add 'self' argument.
4094 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4096 2014-02-19 Tom Tromey <tromey@redhat.com>
4098 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4099 * target.c (target_goto_record_end): Add argument.
4100 * record-full.c (record_full_goto_end): Add 'self' argument.
4101 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4103 2014-02-19 Tom Tromey <tromey@redhat.com>
4105 * target.h (struct target_ops) <to_goto_record_begin>: Add
4107 * target.c (target_goto_record_begin): Add argument.
4108 * record-full.c (record_full_goto_begin): Add 'self' argument.
4109 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4112 2014-02-19 Tom Tromey <tromey@redhat.com>
4114 * target.h (struct target_ops) <to_record_is_replaying>: Add
4116 * target.c (target_record_is_replaying): Add argument.
4117 * record-full.c (record_full_is_replaying): Add 'self' argument.
4118 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4120 (record_btrace_xfer_partial, record_btrace_store_registers)
4121 (record_btrace_prepare_to_store, record_btrace_resume)
4122 (record_btrace_wait, record_btrace_decr_pc_after_break)
4123 (record_btrace_find_new_threads, record_btrace_thread_alive):
4126 2014-02-19 Tom Tromey <tromey@redhat.com>
4128 * target.h (struct target_ops) <to_delete_record>: Add argument.
4129 * target.c (target_delete_record): Add argument.
4130 * record-full.c (record_full_delete): Add 'self' argument.
4132 2014-02-19 Tom Tromey <tromey@redhat.com>
4134 * target.h (struct target_ops) <to_save_record>: Add argument.
4135 * target.c (target_save_record): Add argument.
4136 * record-full.c (record_full_save): Add 'self' argument.
4137 (record_full_save): Add 'self' argument.
4139 2014-02-19 Tom Tromey <tromey@redhat.com>
4141 * target.h (struct target_ops) <to_info_record>: Add argument.
4142 * target.c (target_info_record): Add argument.
4143 * record.c (info_record_command): Add argument.
4144 * record-full.c (record_full_info): Add 'self' argument.
4145 * record-btrace.c (record_btrace_info): Add 'self' argument.
4147 2014-02-19 Tom Tromey <tromey@redhat.com>
4149 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4150 * target.c (target_stop_recording): Add argument.
4151 * record.c (record_stop): Add argument.
4152 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4155 2014-02-19 Tom Tromey <tromey@redhat.com>
4157 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4158 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4159 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4161 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4162 (_initialize_amd64_linux_nat): Use it.
4163 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4164 (_initialize_i386_linux_nat): Use it.
4166 2014-02-19 Tom Tromey <tromey@redhat.com>
4168 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4169 * target.c (target_teardown_btrace): Add argument.
4170 * remote.c (remote_teardown_btrace): Add 'self' argument.
4171 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4173 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4176 2014-02-19 Tom Tromey <tromey@redhat.com>
4178 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4179 * target.c (target_disable_btrace): Add argument.
4180 * remote.c (remote_disable_btrace): Add 'self' argument.
4181 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4183 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4186 2014-02-19 Tom Tromey <tromey@redhat.com>
4188 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4189 * target.c (target_enable_btrace): Add argument.
4190 * remote.c (remote_enable_btrace): Add 'self' argument.
4191 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4193 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4196 2014-02-19 Tom Tromey <tromey@redhat.com>
4198 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4199 (target_can_use_agent): Add argument.
4200 * target.c (update_current_target): Update.
4201 * remote.c (remote_can_use_agent): Add 'self' argument.
4202 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4204 2014-02-19 Tom Tromey <tromey@redhat.com>
4206 * target.h (struct target_ops) <to_use_agent>: Add argument.
4207 (target_use_agent): Add argument.
4208 * target.c (update_current_target): Update.
4209 * remote.c (remote_use_agent): Add 'self' argument.
4210 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4212 2014-02-19 Tom Tromey <tromey@redhat.com>
4214 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4215 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4216 (target_traceframe_info): Add argument.
4217 * target.c (update_current_target): Update.
4218 * remote.c (remote_traceframe_info): Add 'self' argument.
4219 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4221 2014-02-19 Tom Tromey <tromey@redhat.com>
4223 * target.h (target_static_tracepoint_markers_by_strid): Add
4225 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4227 * target.c (update_current_target): Update.
4228 * remote.c (struct target_ops)
4229 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4230 * linux-nat.c (struct target_ops)
4231 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4233 2014-02-19 Tom Tromey <tromey@redhat.com>
4235 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4237 (target_static_tracepoint_marker_at): Add argument.
4238 * target.c (update_current_target): Update.
4239 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4242 2014-02-19 Tom Tromey <tromey@redhat.com>
4244 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4245 (target_set_permissions): Add argument.
4246 * target.c (update_current_target): Update.
4247 * remote.c (remote_set_permissions): Add 'self' argument.
4248 (remote_start_remote): Update.
4250 2014-02-19 Tom Tromey <tromey@redhat.com>
4252 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4253 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4254 (target_get_tib_address): Add argument.
4255 * target.c (update_current_target): Update.
4256 * remote.c (remote_get_tib_address): Add 'self' argument.
4258 2014-02-19 Tom Tromey <tromey@redhat.com>
4260 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4261 (target_set_trace_notes): Add argument.
4262 * target.c (update_current_target): Update.
4263 * remote.c (remote_set_trace_notes): Add 'self' argument.
4265 2014-02-19 Tom Tromey <tromey@redhat.com>
4267 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4269 (target_set_trace_buffer_size): Add argument.
4270 * target.c (update_current_target): Update.
4271 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4273 2014-02-19 Tom Tromey <tromey@redhat.com>
4275 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4277 (target_set_circular_trace_buffer): Add argument.
4278 * target.c (update_current_target): Update.
4279 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4282 2014-02-19 Tom Tromey <tromey@redhat.com>
4284 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4286 (target_set_disconnected_tracing): Add argument.
4287 * target.c (update_current_target): Update.
4288 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4290 2014-02-19 Tom Tromey <tromey@redhat.com>
4292 * target.h (struct target_ops)
4293 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4294 (target_get_min_fast_tracepoint_insn_len): Add argument.
4295 * target.c (update_current_target): Update.
4296 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4299 2014-02-19 Tom Tromey <tromey@redhat.com>
4301 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4303 (target_get_raw_trace_data): Add argument.
4304 * target.c (update_current_target): Update.
4305 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4307 2014-02-19 Tom Tromey <tromey@redhat.com>
4309 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4311 (target_upload_trace_state_variables): Add argument.
4312 * target.c (update_current_target): Update.
4313 * remote.c (remote_upload_trace_state_variables): Add 'self'
4315 (remote_start_remote): Update.
4317 2014-02-19 Tom Tromey <tromey@redhat.com>
4319 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4321 (target_upload_tracepoints): Add argument.
4322 * target.c (update_current_target): Update.
4323 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4324 (remote_start_remote): Update.
4326 2014-02-19 Tom Tromey <tromey@redhat.com>
4328 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4329 (target_save_trace_data): Add argument.
4330 * target.c (update_current_target): Update.
4331 * remote.c (remote_save_trace_data): Add 'self' argument.
4333 2014-02-19 Tom Tromey <tromey@redhat.com>
4335 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4337 * target.h (struct target_ops)
4338 <to_get_trace_state_variable_value>: Add argument.
4339 (target_get_trace_state_variable_value): Add argument.
4340 * target.c (update_current_target): Update.
4341 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4343 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4345 2014-02-19 Tom Tromey <tromey@redhat.com>
4347 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4348 * target.h (struct target_ops) <to_trace_find>: Add argument.
4349 (target_trace_find): Add argument.
4350 * target.c (update_current_target): Update.
4351 * remote.c (remote_trace_find): Add 'self' argument.
4352 * ctf.c (ctf_trace_find): Add 'self' argument.
4354 2014-02-19 Tom Tromey <tromey@redhat.com>
4356 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4357 (target_trace_stop): Add argument.
4358 * target.c (update_current_target): Update.
4359 * remote.c (remote_trace_stop): Add 'self' argument.
4361 2014-02-19 Tom Tromey <tromey@redhat.com>
4363 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4364 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4366 (target_get_tracepoint_status): Add argument.
4367 * target.c (update_current_target): Update.
4368 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4370 2014-02-19 Tom Tromey <tromey@redhat.com>
4372 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4373 * target.h (struct target_ops) <to_get_trace_status>: Add
4375 (target_get_trace_status): Add argument.
4376 * target.c (update_current_target): Update.
4377 * remote.c (remote_get_trace_status): Add 'self' argument.
4378 (remote_start_remote, remote_can_download_tracepoint): Update.
4379 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4381 2014-02-19 Tom Tromey <tromey@redhat.com>
4383 * target.h (struct target_ops) <to_trace_start>: Add argument.
4384 (target_trace_start): Add argument.
4385 * target.c (update_current_target): Update.
4386 * remote.c (remote_trace_start): Add 'self' argument.
4388 2014-02-19 Tom Tromey <tromey@redhat.com>
4390 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4392 (target_trace_set_readonly_regions): Add argument.
4393 * target.c (update_current_target): Update.
4394 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4397 2014-02-19 Tom Tromey <tromey@redhat.com>
4399 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4401 (target_disable_tracepoint): Add argument.
4402 * target.c (update_current_target): Update.
4403 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4405 2014-02-19 Tom Tromey <tromey@redhat.com>
4407 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4409 (target_enable_tracepoint): Add argument.
4410 * target.c (update_current_target): Update.
4411 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4413 2014-02-19 Tom Tromey <tromey@redhat.com>
4415 * target.h (struct target_ops) <to_download_trace_state_variable>:
4417 (target_download_trace_state_variable): Add argument.
4418 * target.c (update_current_target): Update.
4419 * remote.c (remote_download_trace_state_variable): Add 'self'
4422 2014-02-19 Tom Tromey <tromey@redhat.com>
4424 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4426 (target_can_download_tracepoint): Add argument.
4427 * target.c (update_current_target): Update.
4428 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4430 2014-02-19 Tom Tromey <tromey@redhat.com>
4432 * target.h (struct target_ops) <to_download_tracepoint>: Add
4434 (target_download_tracepoint): Add argument.
4435 * target.c (update_current_target): Update.
4436 * remote.c (remote_download_tracepoint): Add 'self' argument.
4438 2014-02-19 Tom Tromey <tromey@redhat.com>
4440 * target.h (struct target_ops) <to_trace_init>: Add argument.
4441 (target_trace_init): Add argument.
4442 * target.c (update_current_target): Update.
4443 * remote.c (remote_trace_init): Add 'self' argument.
4445 2014-02-19 Tom Tromey <tromey@redhat.com>
4447 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4448 * target.c (target_fileio_readlink): Add argument.
4449 * remote.c (remote_hostio_readlink): Add 'self' argument.
4450 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4452 2014-02-19 Tom Tromey <tromey@redhat.com>
4454 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4455 * target.c (target_fileio_unlink): Add argument.
4456 * remote.c (remote_hostio_unlink): Add 'self' argument.
4457 (remote_file_delete): Update.
4458 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4460 2014-02-19 Tom Tromey <tromey@redhat.com>
4462 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4463 * target.c (target_fileio_close): Add argument.
4464 * remote.c (remote_hostio_close): Add 'self' argument.
4465 (remote_hostio_close_cleanup): Update.
4466 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4468 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4470 2014-02-19 Tom Tromey <tromey@redhat.com>
4472 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4473 * target.c (target_fileio_pread): Add argument.
4474 * remote.c (remote_hostio_pread): Add 'self' argument.
4475 (remote_bfd_iovec_pread, remote_file_get): Update.
4476 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4478 2014-02-19 Tom Tromey <tromey@redhat.com>
4480 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4481 * target.c (target_fileio_pwrite): Add argument.
4482 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4483 (remote_file_put): Update.
4484 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4486 2014-02-19 Tom Tromey <tromey@redhat.com>
4488 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4489 * target.c (target_fileio_open): Add argument.
4490 * remote.c (remote_hostio_open): Add 'self' argument.
4491 (remote_bfd_iovec_open): Add 'self' argument.
4492 (remote_file_put): Add 'self' argument.
4493 (remote_file_get): Add 'self' argument.
4494 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4496 2014-02-19 Tom Tromey <tromey@redhat.com>
4498 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4500 (target_can_run_breakpoint_commands): Add argument.
4501 * target.c (update_current_target): Update.
4502 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4504 (remote_insert_breakpoint): Add 'self' argument.
4505 (remote_insert_hw_breakpoint): Add 'self' argument.
4506 (remote_can_run_breakpoint_commands): Add 'self' argument.
4508 2014-02-19 Tom Tromey <tromey@redhat.com>
4510 * target.h (struct target_ops)
4511 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4512 (target_supports_evaluation_of_breakpoint_conditions): Add
4514 * target.c (update_current_target): Update.
4515 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4517 (remote_insert_breakpoint): Add 'self' argument.
4518 (remote_insert_hw_breakpoint): Add 'self' argument.
4519 (remote_supports_cond_breakpoints): Add 'self' argument.
4521 2014-02-19 Tom Tromey <tromey@redhat.com>
4523 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4525 (target_supports_string_tracing): Add argument.
4526 * target.c (update_current_target): Update.
4527 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4529 2014-02-19 Tom Tromey <tromey@redhat.com>
4531 * target.h (struct target_ops)
4532 <to_supports_disable_randomization>: Add argument.
4533 * target.c (find_default_supports_disable_randomization): Add
4535 (target_supports_disable_randomization): Add argument.
4536 (find_default_supports_disable_randomization): Add 'self'
4538 * remote.c (extended_remote_supports_disable_randomization): Add
4540 (remote_supports_disable_randomization): Add 'self' argument.
4541 (extended_remote_create_inferior): Update.
4542 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4545 2014-02-19 Tom Tromey <tromey@redhat.com>
4547 * target.h (struct target_ops)
4548 <to_supports_enable_disable_tracepoint>: Add argument.
4549 (target_supports_enable_disable_tracepoint): Add argument.
4550 * target.c (update_current_target): Update.
4551 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4554 2014-02-19 Tom Tromey <tromey@redhat.com>
4556 * target.h (struct target_ops) <to_supports_multi_process>: Add
4558 (target_supports_multi_process): Add argument.
4559 * target.c (update_current_target): Update.
4560 * remote.c (remote_supports_multi_process): Add 'self' argument.
4561 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4563 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4566 2014-02-19 Tom Tromey <tromey@redhat.com>
4568 * target.h (struct target_ops) <to_execution_direction>: Add
4570 (target_execution_direction): Add argument.
4571 * target.c (default_execution_direction): Add 'self' argument.
4572 * record-full.c (record_full_execution_direction): Add 'self'
4575 2014-02-19 Tom Tromey <tromey@redhat.com>
4577 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4579 (target_can_execute_reverse): Add argument.
4580 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4581 * record-full.c (record_full_can_execute_reverse): Add 'self'
4583 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4586 2014-02-19 Tom Tromey <tromey@redhat.com>
4588 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4589 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4591 (target_get_ada_task_ptid): Add argument.
4592 * target.c (update_current_target): Update.
4593 (default_get_ada_task_ptid): Add 'self' argument.
4594 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4595 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4596 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4598 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4600 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4602 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4604 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4605 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4608 2014-02-19 Tom Tromey <tromey@redhat.com>
4610 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4611 (target_goto_bookmark): Add argument.
4612 * target.c (dummy_goto_bookmark): Add 'self' argument.
4613 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4615 2014-02-19 Tom Tromey <tromey@redhat.com>
4617 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4618 (target_get_bookmark): Add argument.
4619 * target.c (dummy_get_bookmark): Add 'self' argument.
4620 * record-full.c (record_full_get_bookmark): Add 'self' argument.
4622 2014-02-19 Tom Tromey <tromey@redhat.com>
4624 * target.h (struct target_ops) <to_make_corefile_notes>: Add
4626 (target_make_corefile_notes): Add argument.
4627 * target.c (dummy_make_corefile_notes): Add 'self' argument.
4628 * procfs.c (procfs_make_note_section): Add 'self' argument.
4629 (procfs_make_note_section): Add 'self' argument.
4630 (procfs_make_note_section): Add 'self' argument.
4631 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4633 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4634 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4635 * exec.c (exec_make_note_section): Add 'self' argument.
4636 (exec_make_note_section): Add 'self' argument.
4638 2014-02-19 Tom Tromey <tromey@redhat.com>
4640 * target.h (struct target_ops) <to_find_memory_regions>: Add
4642 (target_find_memory_regions): Add argument.
4643 * target.c (dummy_find_memory_regions): Add 'self' argument.
4644 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4645 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4646 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4647 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4648 * exec. (exec_do_find_memory_regions): New global.
4649 (exec_set_find_memory_regions): Rewrite.
4650 (exec_find_memory_regions): New function.
4651 (init_exec_ops): Use exec_find_memory_regions.
4653 2014-02-19 Tom Tromey <tromey@redhat.com>
4655 * target.h (struct target_ops) <to_supports_non_stop>: Add
4657 * target.c (find_default_supports_non_stop): Add argument.
4658 (target_supports_non_stop): Add argument.
4659 (find_default_supports_non_stop): Add 'self' argument.
4660 * remote.c (remote_supports_non_stop): Add 'self' argument.
4661 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4663 2014-02-19 Tom Tromey <tromey@redhat.com>
4665 * target.h (struct target_ops) <to_log_command>: Add argument.
4666 (target_log_command): Add argument.
4667 * serial.h (serial_log_command): Add 'self' argument.
4668 * serial.c (serial_log_command): Add 'self' argument.
4670 2014-02-19 Tom Tromey <tromey@redhat.com>
4672 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4673 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4675 (target_pid_to_exec_file): Add argument.
4676 * target.c (debug_to_pid_to_exec_file): Add argument.
4677 (update_current_target): Update.
4678 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4679 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4680 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4681 (linux_handle_extended_wait): Update.
4682 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4683 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4684 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4685 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4687 2014-02-19 Tom Tromey <tromey@redhat.com>
4689 * target.h (struct target_ops) <to_rcmd>: Add argument.
4690 (target_rcmd): Add argument.
4691 * target.c (debug_to_rcmd): Add argument.
4692 (update_current_target, do_monitor_command): Update.
4693 * remote.c (remote_rcmd): Add 'self' argument.
4694 * monitor.c (monitor_rcmd): Add 'self' argument.
4696 2014-02-19 Tom Tromey <tromey@redhat.com>
4698 * windows-nat.c (windows_stop): Add 'self' argument.
4699 * target.h (struct target_ops) <to_stop>: Add argument.
4700 * target.c (target_stop): Add argument.
4701 (debug_to_stop): Add argument.
4702 (update_current_target): Update.
4703 * remote.c (remote_stop): Add 'self' argument.
4704 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4705 (gdbsim_cntrl_c): Update.
4706 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4707 * procfs.c (procfs_stop): Add 'self' argument.
4708 * nto-procfs.c (procfs_stop): Add 'self' argument.
4709 * monitor.c (monitor_stop): Add 'self' argument.
4710 (monitor_open): Update.
4711 * linux-nat.c (linux_nat_stop): Add argument.
4712 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4713 * gnu-nat.c (gnu_stop): Add 'self' argument.
4714 * darwin-nat.c (darwin_stop): Add 'self' argument.
4716 2014-02-19 Tom Tromey <tromey@redhat.com>
4718 * target.h (struct target_ops) <to_thread_name>: Add argument.
4719 * target.c (target_thread_name): Add argument.
4720 (update_current_target): Update.
4721 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4723 2014-02-19 Tom Tromey <tromey@redhat.com>
4725 * target.h (struct target_ops) <to_extra_thread_info>: Add
4727 (target_extra_thread_info): Add argument.
4728 * target.c (update_current_target): Update.
4729 * remote.c (remote_threads_extra_info): Add 'self' argument.
4730 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4732 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4733 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4734 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4736 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4738 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4740 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4743 2014-02-19 Tom Tromey <tromey@redhat.com>
4745 * target.h (struct target_ops) <to_program_signals>: Add argument.
4746 * target.c (target_program_signals): Add argument.
4747 * remote.c (remote_program_signals): Add 'self' argument.
4749 2014-02-19 Tom Tromey <tromey@redhat.com>
4751 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4752 * target.c (target_pass_signals): Add argument.
4753 * remote.c (remote_pass_signals): Add 'self' argument.
4754 (remote_start_remote): Update.
4755 * procfs.c (procfs_pass_signals): Add 'self' argument.
4756 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4757 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4758 (linux_nat_create_inferior, linux_nat_attach): Update.
4760 2014-02-19 Tom Tromey <tromey@redhat.com>
4762 * windows-nat.c (windows_can_run): Add 'self' argument.
4763 * target.h (struct target_ops) <to_can_run>: Add argument.
4764 (target_can_run): Add argument.
4765 * target.c (debug_to_can_run): Add argument.
4766 (update_current_target): Update.
4767 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4768 * inf-child.c (inf_child_can_run): Add 'self' argument.
4769 * go32-nat.c (go32_can_run): Add 'self' argument.
4771 2014-02-19 Tom Tromey <tromey@redhat.com>
4773 * target.h (struct target_ops) <to_has_exited>: Add argument.
4774 (target_has_exited): Add argument.
4775 * target.c (debug_to_has_exited): Add argument.
4776 (update_current_target): Update.
4778 2014-02-19 Tom Tromey <tromey@redhat.com>
4780 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4782 (target_set_syscall_catchpoint): Add argument.
4783 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4785 * target.c (update_current_target): Update.
4787 2014-02-19 Tom Tromey <tromey@redhat.com>
4789 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4791 (target_remove_exec_catchpoint): Add argument.
4792 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4793 (update_current_target): Update.
4794 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4797 2014-02-19 Tom Tromey <tromey@redhat.com>
4799 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4801 (target_insert_exec_catchpoint): Add argument.
4802 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4803 (update_current_target): Update.
4804 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4807 2014-02-19 Tom Tromey <tromey@redhat.com>
4809 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4811 (target_remove_vfork_catchpoint): Add argument.
4812 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4813 (update_current_target): Update.
4814 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4817 2014-02-19 Tom Tromey <tromey@redhat.com>
4819 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4821 (target_insert_vfork_catchpoint): Add argument.
4822 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4823 (update_current_target): Update.
4824 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4827 2014-02-19 Tom Tromey <tromey@redhat.com>
4829 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4831 (target_remove_fork_catchpoint): Add argument.
4832 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4833 (update_current_target): Update.
4834 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4837 2014-02-19 Tom Tromey <tromey@redhat.com>
4839 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4841 (target_insert_fork_catchpoint): Add argument.
4842 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4843 (update_current_target): Update.
4844 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4847 2014-02-19 Tom Tromey <tromey@redhat.com>
4849 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4851 (target_post_startup_inferior): Add argument.
4852 * target.c (debug_to_post_startup_inferior): Add argument.
4853 (update_current_target): Update.
4854 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4856 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4858 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4860 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4862 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4864 (super_post_startup_inferior): Likewise.
4865 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4867 (super_post_startup_inferior): Likewise.
4868 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4869 Add 'self' argument.
4870 (super_post_startup_inferior): Likewise.
4872 2014-02-19 Tom Tromey <tromey@redhat.com>
4874 * target.h (struct target_ops) <to_load>: Add argument.
4875 * target.c (target_load): Add argument.
4876 (debug_to_load): Add argument.
4877 (update_current_target): Update.
4878 * remote.c (remote_load): Add 'self' argument.
4879 * remote-sim.c (gdbsim_load): Add 'self' argument.
4880 * remote-mips.c (mips_load): Add 'self' argument.
4881 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4882 * monitor.c (monitor_load): Add 'self' argument.
4883 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4885 2014-02-19 Tom Tromey <tromey@redhat.com>
4887 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4888 (target_terminal_info): Add argument.
4889 * target.c (debug_to_terminal_info): Add argument.
4890 (default_terminal_info): Likewise.
4891 * inflow.c (child_terminal_info): Add 'self' argument.
4892 * inferior.h (child_terminal_info): Add 'self' argument.
4893 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4895 2014-02-19 Tom Tromey <tromey@redhat.com>
4897 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4899 (target_terminal_save_ours): Add argument.
4900 * target.c (debug_to_terminal_save_ours): Add argument.
4901 (update_current_target): Update.
4902 * inflow.c (terminal_save_ours): Add 'self' argument.
4903 * inferior.h (terminal_save_ours): Add 'self' argument.
4905 2014-02-19 Tom Tromey <tromey@redhat.com>
4907 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
4908 (target_terminal_ours): Add argument.
4909 * target.c (debug_to_terminal_ours): Add argument.
4910 (update_current_target): Update.
4911 * remote.c (remote_terminal_ours): Add 'self' argument.
4912 (remote_close): Update.
4913 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
4914 * inflow.c (terminal_ours): Add 'self' argument.
4915 * inferior.h (terminal_ours): Add 'self' argument.
4916 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4918 2014-02-19 Pedro Alves <palves@redhat.com>
4919 Tom Tromey <tromey@redhat.com>
4921 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
4923 (target_terminal_ours_for_output): Add argument.
4924 * target.c (debug_to_terminal_ours_for_output): Add argument.
4925 (update_current_target): Update.
4926 * inflow.c (terminal_ours_for_output): Add 'self' argument.
4927 * inferior.h (terminal_ours_for_output): Add 'self' argument.
4928 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
4930 2014-02-19 Tom Tromey <tromey@redhat.com>
4932 * target.h (struct target_ops) <to_terminal_inferior>: Add
4934 * target.c (target_terminal_inferior): Add argument.
4935 (update_current_target): Update.
4936 * remote.c (remote_terminal_inferior): Add 'self' argument.
4937 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
4938 * inflow.c (terminal_inferior): Add 'self' argument.
4939 * inferior.h (terminal_inferior): Add 'self' argument.
4940 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
4941 (go32_terminal_inferior): Add 'self' argument.
4943 2014-02-19 Tom Tromey <tromey@redhat.com>
4945 * target.h (struct target_ops) <to_terminal_init>: Add argument.
4946 (target_terminal_init): Add argument.
4947 * target.c (debug_to_terminal_init): Add argument.
4948 (update_current_target): Update.
4949 * inflow.c (terminal_init_inferior): Add 'self' argument.
4950 * inferior.h (terminal_init_inferior): Add 'self' argument.
4951 * go32-nat.c (go32_terminal_init): Add 'self' argument.
4952 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
4954 2014-02-19 Tom Tromey <tromey@redhat.com>
4956 * target.h (struct target_ops)
4957 <to_can_accel_watchpoint_condition>: Add argument.
4958 (target_can_accel_watchpoint_condition): Add argument.
4959 * target.c (debug_to_can_accel_watchpoint_condition): Add
4961 (update_current_target): Update.
4962 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
4965 2014-02-19 Tom Tromey <tromey@redhat.com>
4967 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4969 (target_region_ok_for_hw_watchpoint): Add argument.
4970 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
4971 (default_region_ok_for_hw_watchpoint): Add argument.
4972 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
4973 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
4975 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
4977 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
4979 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
4981 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
4983 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
4985 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
4986 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
4988 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
4989 Add 'self' argument.
4991 2014-02-19 Tom Tromey <tromey@redhat.com>
4993 * target.h (struct target_ops) <to_insert_watchpoint>: Add
4995 (target_insert_watchpoint): Add argument.
4996 * target.c (debug_to_insert_watchpoint): Add argument.
4997 (update_current_target): Update.
4998 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
4999 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5000 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5001 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5002 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5003 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5005 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5006 (procfs_insert_hw_watchpoint): Add 'self' argument.
5007 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5009 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5011 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5013 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5014 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5016 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5019 2014-02-19 Tom Tromey <tromey@redhat.com>
5021 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5023 (target_remove_watchpoint): Add argument.
5024 * target.c (debug_to_remove_watchpoint): Add argument.
5025 (update_current_target): Update.
5026 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5027 * remote.c (remote_remove_watchpoint): Add 'self' argument.
5028 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5029 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5030 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5031 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5033 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5034 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5036 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5038 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5040 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5041 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5043 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5046 2014-02-19 Tom Tromey <tromey@redhat.com>
5048 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5050 (target_remove_hw_breakpoint): Add argument.
5051 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5052 (update_current_target): Update.
5053 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5054 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5056 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5057 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5059 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5062 2014-02-19 Tom Tromey <tromey@redhat.com>
5064 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5066 (target_insert_hw_breakpoint): Add argument.
5067 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5068 (update_current_target): Update.
5069 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5070 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5072 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5073 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5074 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5076 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5079 2014-02-19 Tom Tromey <tromey@redhat.com>
5081 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5083 (target_can_use_hardware_watchpoint): Add argument.
5084 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5085 (update_current_target): Update.
5086 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5088 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5090 * remote.c (remote_check_watch_resources): Add 'self' argument.
5091 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5092 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5094 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5095 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5097 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5099 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5101 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5103 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5105 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5107 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5108 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5110 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5113 2014-02-19 Tom Tromey <tromey@redhat.com>
5115 * target.h (struct target_ops) <to_post_attach>: Add argument.
5116 (target_post_attach): Add argument.
5117 * target.c (debug_to_post_attach): Add argument.
5118 (update_current_target): Update.
5119 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5120 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5121 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5122 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5123 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5125 2014-02-19 Tom Tromey <tromey@redhat.com>
5127 * windows-nat.c (windows_close): Add 'self' argument.
5128 * tracepoint.c (tfile_close): Add 'self' argument.
5129 * target.h (struct target_ops) <to_close>: Add argument.
5130 * target.c (target_close): Add argument.
5131 (update_current_target): Update.
5132 * remote.c (remote_close): Add 'self' argument.
5133 * remote-sim.c (gdbsim_close): Add 'self' argument.
5134 * remote-mips.c (mips_close): Add 'self' argument.
5135 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5136 * record-full.c (record_full_close): Add 'self' argument.
5137 * record-btrace.c (record_btrace_close): Add 'self' argument.
5138 * monitor.h (monitor_close): Add 'self' argument.
5139 * monitor.c (monitor_close): Add 'self' argument.
5140 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5141 * linux-nat.c (linux_nat_close): Add argument.
5142 * go32-nat.c (go32_close): Add 'self' argument.
5143 * exec.c (exec_close_1): Add 'self' argument.
5144 * ctf.c (ctf_close): Add 'self' argument.
5145 * corelow.c (core_close): Add 'self' argument.
5146 (core_close_cleanup): Update.
5147 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5148 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5150 2014-02-19 Tom Tromey <tromey@redhat.com>
5152 * remote.c (remote_load): New function.
5153 (init_remote_ops): Use it.
5155 2014-02-19 Tom Tromey <tromey@redhat.com>
5157 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5159 * common/linux-btrace.h (linux_supports_btrace): Update.
5160 * remote.c (remote_supports_btrace): Add "self" argument.
5161 * target-delegates.c: Rebuild.
5162 * target.c (target_supports_btrace): Remove.
5163 * target.h (struct target_ops) <to_supports_btrace>: Add
5164 target_ops argument.
5165 (target_supports_btrace): New define.
5167 2014-02-19 Tom Tromey <tromey@redhat.com>
5169 * record-full.c (record_full_beneath_to_resume_ops)
5170 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5171 (record_full_beneath_to_wait)
5172 (record_full_beneath_to_store_registers_ops)
5173 (record_full_beneath_to_store_registers)
5174 (record_full_beneath_to_xfer_partial_ops)
5175 (record_full_beneath_to_xfer_partial)
5176 (record_full_beneath_to_insert_breakpoint_ops)
5177 (record_full_beneath_to_insert_breakpoint)
5178 (record_full_beneath_to_remove_breakpoint_ops)
5179 (record_full_beneath_to_remove_breakpoint)
5180 (record_full_beneath_to_stopped_by_watchpoint)
5181 (record_full_beneath_to_stopped_data_address)
5182 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5183 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5184 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5185 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5186 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5187 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5188 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5189 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5190 (record_full_resume, record_full_wait_1)
5191 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5192 (record_full_store_registers, record_full_xfer_partial)
5193 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5194 (record_full_async, record_full_core_xfer_partial): Use target
5196 * target-delegates.c: Rebuild.
5197 * target.c (current_xfer_partial): Remove.
5198 (update_current_target): Do not INHERIT or de_fault
5199 to_insert_breakpoint, to_remove_breakpoint,
5200 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5201 to_is_async_p, to_async. Do not set to_xfer_partial field.
5202 (default_xfer_partial): Simplify.
5203 (current_xfer_partial): Remove.
5204 (target_wait, target_resume): Simplify.
5205 (find_default_can_async_p, find_default_is_async_p): Update.
5206 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5207 to_xfer_partial, to_stopped_by_watchpoint,
5208 to_stopped_data_address.
5209 (target_store_registers): Simplify.
5210 (forward_target_remove_breakpoint)
5211 (forward_target_insert_breakpoint): Remove.
5212 (target_remove_breakpoint, target_insert_breakpoint)
5213 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5214 * target.h (struct target_ops) <to_resume, to_wait,
5215 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5216 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5217 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5219 (forward_target_remove_breakpoint)
5220 (forward_target_insert_breakpoint): Remove.
5221 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5223 (record_btrace_insert_breakpoint): Delegate directly.
5225 2014-02-19 Tom Tromey <tromey@redhat.com>
5228 * target-delegates.c: New file.
5229 * target.c: Include target-delegates.c.
5230 (init_dummy_target): Call install_dummy_methods.
5231 (complete_target_initialization): Call install_delegators.
5232 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5233 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5234 * make-target-delegates: New file.
5236 2014-02-19 Tom Tromey <tromey@redhat.com>
5238 * record.c (find_record_target): Use find_target_at.
5239 * target.c (find_target_at): New function.
5240 * target.h (find_target_at): Declare.
5242 2014-02-19 Tom Tromey <tromey@redhat.com>
5244 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5246 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5248 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5249 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5251 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5253 * linux-nat.c (save_sigtrap): Update.
5254 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5255 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5256 (linux_nat_close): Update.
5257 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5259 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5261 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5262 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5263 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5264 (tmp_to_async): Add 'ops' argument.
5265 (record_full_stopped_by_watchpoint, record_full_async)
5266 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5268 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5269 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5270 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5271 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5272 (remote_is_async_p, remote_async): Add 'ops' argument.
5273 (remote_stopped_data_address): Update.
5274 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5275 * target.c (update_current_target)
5276 (find_default_can_async_p, find_default_is_async_p): Update.
5277 (init_dummy_target): Update.
5278 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5279 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5280 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5281 (target_can_async_p, target_is_async_p, target_async)
5282 (target_stopped_by_watchpoint): Update.
5284 2014-02-19 Yao Qi <yao@codesourcery.com>
5287 * gdbarch.sh: Remove startup_gdbarch.
5288 * gdbarch.c: Regenerated.
5289 * gdbarch.h: Likewise.
5291 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5293 * rl78-tdep.c (rl78_g10_register_name): New function.
5294 (rl78_return_value): Add g10 support.
5295 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5298 2014-02-17 Doug Evans <xdje42@gmail.com>
5300 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5301 (SUBDIR_GUILE_SRCS): Ditto.
5302 (scm-gsmob.o): Ditto.
5304 2014-02-17 Yao Qi <yao@codesourcery.com>
5306 * gnu-nat.c (ILL_RPC): Declare defined function.
5308 2014-02-17 Yao Qi <yao@codesourcery.com>
5310 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5311 mach_msg_type_number_t.
5312 (gnu_write_inferior): Likewise.
5314 2014-02-17 Yao Qi <yao@codesourcery.com>
5316 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5318 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5319 (inf_validate_procs, inf_signal): Likewise.
5320 (S_exception_raise_request): Likewise.
5321 (do_mach_notify_dead_name): Likewise.
5322 (steal_exc_port): Likewise.
5323 (gnu_read_inferior): Change 'copy_count''s type to
5324 mach_msg_type_number_t.
5325 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5328 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5330 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5331 flag. Adjust all users; in particular...
5332 (gnu_wait): ..., don't decrement its value in here...
5333 (gnu_create_inferior): ..., and instead set the flag in here,
5334 around the startup_inferior call, and call that one with
5335 START_INFERIOR_TRAPS_EXPECTED.
5337 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5338 (ILL_RPC): ... new macro.
5339 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5340 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5341 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5342 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5343 functions with ILL_RPC macro.
5344 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5345 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5346 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5347 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5348 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5349 (S_proc_getlogin_reply, S_proc_getsid_reply)
5350 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5351 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5352 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5353 (S_proc_getnports_reply, S_proc_is_important_reply)
5354 (S_proc_get_code_reply): New stub functions, generated with
5357 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5358 collected the type check structures.
5360 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5362 2014-02-14 Doug Evans <dje@google.com>
5364 * target.c (target_write_partial): Fix result type.
5366 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5368 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5369 the proper offsets to access fpregset_t.
5371 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5373 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5374 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5375 * h8300-tdep.c (setmachinelist): Remove global.
5376 * hppa-tdep.c (hppa_sigtramp): Remove global.
5377 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5378 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5379 * ravenscar-thread.c (update_target_observer): Remove global.
5380 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5382 2014-02-12 Tom Tromey <tromey@redhat.com>
5384 * common/rsp-low.c: Update comments.
5385 * common/rsp-low.h: Update comments.
5387 2014-02-12 Tom Tromey <tromey@redhat.com>
5389 * common/rsp-low.c (convert_ascii_to_int): Remove.
5390 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5392 2014-02-12 Tom Tromey <tromey@redhat.com>
5394 * common/rsp-low.h (unhexify): Don't declare.
5395 * common/rsp-low.c (unhexify): Remove.
5397 2014-02-12 Tom Tromey <tromey@redhat.com>
5399 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5400 * common/rsp-low.c (convert_int_to_ascii): Remove.
5402 2014-02-12 Tom Tromey <tromey@redhat.com>
5404 * common/rsp-low.h (hexify): Don't declare.
5405 * common/rsp-low.c (hexify): Remove.
5407 2014-02-12 Tom Tromey <tromey@redhat.com>
5409 * common/rsp-low.c (hexify): Never take strlen of argument.
5411 2014-02-12 Tom Tromey <tromey@redhat.com>
5413 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5414 * remote.c (extended_remote_run, remote_rcmd)
5415 (remote_download_trace_state_variable, remote_save_trace_data)
5416 (remote_set_trace_notes): Update.
5417 * tracepoint.c (encode_source_string, tfile_write_status)
5418 (tfile_write_uploaded_tsv): Update.
5420 2014-02-12 Tom Tromey <tromey@redhat.com>
5422 * tracepoint.c: Include rsp-low.h.
5423 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5424 * remote.c: Include rsp-low.h.
5425 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5426 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5427 (remote_unescape_input): Move to common/rsp-low.c.
5428 * common/rsp-low.h: New file.
5429 * common/rsp-low.c: New file.
5430 * Makefile.in (SFILES): Add common/rsp-low.c.
5431 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5432 (COMMON_OBS): Add rsp-low.o.
5433 (rsp-low.o): New target.
5435 2014-02-12 Tom Tromey <tromey@redhat.com>
5437 * utils.h: Include print-utils.h.
5438 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5439 (int_string, core_addr_to_string, core_addr_to_string_nz)
5440 (hex_string, hex_string_custom): Don't declare.
5441 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5442 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5443 (hex_string_custom, int_string, core_addr_to_string)
5444 (core_addr_to_string_nz, host_address_to_string): Move to
5445 common/print-utils.c.
5446 * common/print-utils.h: New file.
5447 * common/print-utils.c: New file
5448 * Makefile.in (SFILES): Add common/print-utils.c.
5449 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5450 (COMMON_OBS): Add print-utils.o.
5451 (print-utils.o): New target.
5453 2014-02-12 Tom Tromey <tromey@redhat.com>
5455 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5457 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5459 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5461 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5463 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5464 if a PT_IO ptrace request returns sucessfully but indicates that 0
5465 bytes were transferred.
5467 2014-02-12 Pedro Alves <palves@redhat.com>
5468 Kevin Buettner <kevinb@redhat.com>
5470 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5471 TYPE_INSTANCE_FLAG_CODE_SPACE.
5473 2014-02-12 Pedro Alves <palves@redhat.com>
5475 * h8300-tdep.c (pseudo_from_raw_register)
5476 (raw_from_pseudo_register): New functions.
5477 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5480 2014-02-12 Pedro Alves <palves@redhat.com>
5482 * h8300-tdep.c (h8300_register_sim_regno): New function.
5483 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5484 gdbarch_register_sim_regno hook.
5486 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5488 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5490 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5492 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5494 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5496 * obsd-tdep.h (obsd_init_abi): New prototype.
5497 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5498 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5499 (obsd_init_abi): New functions.
5500 * i386obsd-tdep.c: Include "obsd-tdep.h".
5501 (i386obsd_init_abi): Call obsd_init_abi.
5502 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5503 (amd64obsd_init_abi): Call obsd_init_abi.
5504 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5505 obsd-tdep.c to gdb_target_obs.
5507 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5509 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5510 double float arguments to 16-byte in the argument slots.
5512 2014-02-11 Doug Evans <xdje42@gmail.com>
5514 * configure.ac: Don't crash if pkg-config is not found and guile
5515 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5517 * configure: Regenerate.
5519 2014-02-11 Yao Qi <yao@codesourcery.com>
5521 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5522 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5523 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5524 * gnu-nat.c (gnu_xfer_memory): Likewise.
5525 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5526 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5527 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5528 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5530 2014-02-11 Yao Qi <yao@codesourcery.com>
5532 * target.h (enum target_xfer_error): Rename to ...
5533 (enum target_xfer_status): ... it. New. All users updated.
5534 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5536 (TARGET_XFER_STATUS_ERROR_P): New macro.
5537 (target_xfer_error_to_string): Remove declaration.
5538 (target_xfer_status_to_string): Declare.
5539 (target_xfer_partial_ftype): Adjust it.
5540 (struct target_ops) <to_xfer_partial>: Return
5541 target_xfer_status. Add argument xfered_len. Update
5543 * target.c (target_xfer_error_to_string): Rename to ...
5544 (target_xfer_status_to_string): ... it. New. All callers
5546 (target_read_live_memory): Likewise. Call target_xfer_partial
5547 instead of target_read.
5548 (memory_xfer_live_readonly_partial): Return
5549 target_xfer_status. Add argument xfered_len.
5550 (raw_memory_xfer_partial): Likewise.
5551 (memory_xfer_partial_1): Likewise.
5552 (memory_xfer_partial): Likewise.
5553 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5554 properly. Update debug message.
5555 (default_xfer_partial, current_xfer_partial): Likewise.
5556 (target_write_partial): Likewise.
5557 (target_read_partial): Likewise. All callers updated.
5558 (read_whatever_is_readable): Likewise.
5559 (target_write_with_progress): Likewise.
5560 (target_read_alloc_1): Likewise.
5562 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5563 * auxv.c (procfs_xfer_auxv): Likewise.
5564 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5565 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5566 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5567 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5568 * corefile.c (read_memory): Adjust.
5569 * corelow.c (core_xfer_partial): Likewise.
5570 * ctf.c (ctf_xfer_partial): Likewise.
5571 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5573 (darwin_xfer_partial): Likewise.
5574 * exec.c (section_table_xfer_memory_partial): Likewise. All
5576 (exec_xfer_partial): Likewise.
5577 * exec.h (section_table_xfer_memory_partial): Update
5579 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5581 (gnu_xfer_partial): Likewise.
5582 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5583 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5584 (ia64_hpux_xfer_solib_got): Likewise.
5585 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5586 type of 'partial_len' to ULONGEST.
5587 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5588 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5589 (linux_nat_xfer_partial): Likewise.
5590 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5591 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5592 * monitor.c (monitor_xfer_memory): Likewise.
5593 (monitor_xfer_partial): Likewise.
5594 * procfs.c (procfs_xfer_partial): Likewise.
5595 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5596 * record-full.c (record_full_xfer_partial): Likewise.
5597 (record_full_core_xfer_partial): Likewise.
5598 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5599 (gdbsim_xfer_partial): Likewise.
5600 * remote.c (remote_write_bytes_aux): Likewise. All callers
5602 (remote_write_bytes, remote_read_bytes): Likewise. All
5604 (remote_flash_erase): Likewise. All callers updated.
5605 (remote_write_qxfer): Likewise. All callers updated.
5606 (remote_read_qxfer): Likewise. All callers updated.
5607 (remote_xfer_partial): Likewise.
5608 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5609 (rs6000_xfer_shared_libraries): Likewise.
5610 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5611 (sol_thread_xfer_partial): Likewise.
5612 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5613 (sparc_xfer_partial): Likewise.
5614 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
5616 (spu_xfer_partial): Likewise.
5617 * spu-multiarch.c (spu_xfer_partial): Likewise.
5618 * tracepoint.c (tfile_xfer_partial): Likewise.
5619 * windows-nat.c (windows_xfer_memory): Likewise.
5620 (windows_xfer_shared_libraries): Likewise.
5621 (windows_xfer_partial): Likewise.
5622 * valprint.c: Replace 'target_xfer_error' with
5623 'target_xfer_status' in comments.
5625 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
5627 Checked in by Joel Brobecker <brobecker@adacore.com>.
5628 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5630 2014-02-11 Joel Brobecker <brobecker@adacore.com>
5632 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5633 function parameters.
5635 2014-02-10 Will Newton <will.newton@linaro.org>
5637 * elfread.c (elf_rel_plt_read): Look for a .got section if
5638 looking up .got.plt fails.
5639 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5640 on address passed to elf_gnu_ifunc_record_cache.
5641 (elf_gnu_ifunc_resolve_addr): Likewise.
5642 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5644 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5646 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5647 (X_RETTURN): New macro.
5648 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5650 * sparc64-tdep.c (sparc64_init_abi): Hook
5651 sparc_in_function_epilogue_p.
5653 2014-02-10 Gary Benson <gbenson@redhat.com>
5655 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5656 Rename name_matcher to symbol_matcher.
5658 2014-02-10 Gary Benson <gbenson@redhat.com>
5660 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5661 Use expand_symtabs_file_matcher_ftype and
5662 expand_symtabs_symbol_matcher_ftype.
5664 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5666 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5667 (struct ada_symbol_cache): New.
5668 (ada_free_symbol_cache): Forward declare.
5669 (struct ada_pspace_data): New.
5670 (ada_pspace_data_handle): New static global.
5671 (get_ada_pspace_data, ada_pspace_data_cleanup)
5672 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5673 (cache_space, cache): Delete, now folded inside struct
5675 (ada_get_symbol_cache): New function.
5676 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5678 (_initialize_ada_language): Remove initialization of cache_space.
5679 Move call to observer_attach_inferior_exit up, grouping it
5680 with the other observer registrations inside this function.
5681 Rename command to be more general. Add call to
5682 register_program_space_data_with_cleanup.
5684 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5686 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5687 ada_new_objfile_observer.
5688 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5689 (_initialize_tasks): Update uses of ada_new_objfile_observer
5690 and ada_tasks_normal_stop_observer.
5692 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5694 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5695 returned by the 'Length attribute to integer.
5697 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5699 * ada-lang.c (_initialize_ada_language): Initialize
5700 cache_space obstack.
5702 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5704 * ada-lang.c (HASH_SIZE): New macro.
5705 (struct cache_entry): New type.
5706 (cache_space, cache): New static globals.
5707 (ada_clear_symbol_cache, find_entry): New functions.
5708 (lookup_cached_symbol, cache_symbol): Implement.
5709 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5710 (_initialize_ada_language): Attach ada_new_objfile_observer
5711 and ada_free_objfile_observer.
5713 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5715 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5716 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5717 struct block * parameter.
5718 (ada_lookup_symbol_list_worker): Constify local variable "block".
5719 Remove cast which is no longer necessary.
5721 2014-02-10 Doug Evans <xdje42@gmail.com>
5723 Add Guile as an extension language.
5724 * NEWS: Mention Guile scripting.
5725 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5726 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5727 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5728 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5729 (CLIBS): Add GUILE_LIBS.
5730 (install-guile): New rule.
5731 (guile.o): New rule.
5732 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5733 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5734 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5735 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5736 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5737 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5738 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5739 * configure.ac: New option --with-guile.
5740 * configure: Regenerate.
5741 * config.in: Regenerate.
5742 * auto-load.c: Remove #include "python/python.h". Add #include
5743 "gdb/section-scripts.h".
5744 (source_section_scripts): Handle Guile scripts.
5745 (_initialize_auto_load): Add name of Guile objfile script to
5746 scripts-directory help text.
5747 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5748 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5749 (struct breakpoint): New member scm_bp_object.
5750 * defs.h (enum command_control_type): New value guile_control.
5751 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5753 (show_user): Update comment.
5754 (_initialize_cli_cmds): Update help text for "show user". Update help
5755 text for max-user-call-depth.
5756 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5758 (multi_line_command_p): Add guile_control.
5759 (print_command_lines): Handle guile_control.
5760 (execute_control_command, recurse_read_control_structure): Ditto.
5761 (process_next_line): Recognize "guile" commands.
5762 * disasm.c (gdb_disassemble_info): Make non-static.
5763 * disasm.h: #include "dis-asm.h".
5764 (struct gdbarch): Add forward decl.
5765 (gdb_disassemble_info): Declare.
5766 * extension.c: #include "guile/guile.h".
5767 (extension_languages): Add guile.
5768 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5769 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5770 * gdbtypes.c (get_unsigned_type_max): New function.
5771 (get_signed_type_minmax): New function.
5772 * gdbtypes.h (get_unsigned_type_max): Declare.
5773 (get_signed_type_minmax): Declare.
5774 * guile/README: New file.
5775 * guile/guile-internal.h: New file.
5776 * guile/guile.c: New file.
5777 * guile/guile.h: New file.
5778 * guile/scm-arch.c: New file.
5779 * guile/scm-auto-load.c: New file.
5780 * guile/scm-block.c: New file.
5781 * guile/scm-breakpoint.c: New file.
5782 * guile/scm-disasm.c: New file.
5783 * guile/scm-exception.c: New file.
5784 * guile/scm-frame.c: New file.
5785 * guile/scm-gsmob.c: New file.
5786 * guile/scm-iterator.c: New file.
5787 * guile/scm-lazy-string.c: New file.
5788 * guile/scm-math.c: New file.
5789 * guile/scm-objfile.c: New file.
5790 * guile/scm-ports.c: New file.
5791 * guile/scm-pretty-print.c: New file.
5792 * guile/scm-safe-call.c: New file.
5793 * guile/scm-string.c: New file.
5794 * guile/scm-symbol.c: New file.
5795 * guile/scm-symtab.c: New file.
5796 * guile/scm-type.c: New file.
5797 * guile/scm-utils.c: New file.
5798 * guile/scm-value.c: New file.
5799 * guile/lib/gdb.scm: New file.
5800 * guile/lib/gdb/boot.scm: New file.
5801 * guile/lib/gdb/experimental.scm: New file.
5802 * guile/lib/gdb/init.scm: New file.
5803 * guile/lib/gdb/iterator.scm: New file.
5804 * guile/lib/gdb/printing.scm: New file.
5805 * guile/lib/gdb/types.scm: New file.
5806 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5807 (VPATH): Add $(GUILE_SRCDIR).
5808 (GUILE_DIR): New variable.
5809 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5810 (all): Add stamp-guile dependency.
5811 (stamp-guile): New rule.
5812 (clean-guile, install-guile, uninstall-guile): New rules.
5813 (install-only): Add install-guile dependency.
5814 (uninstall): Add uninstall-guile dependency.
5815 (clean): Add clean-guile dependency.
5817 2014-02-09 Doug Evans <xdje42@gmail.com>
5819 Revert this patch (which I approved, mea culpa).
5821 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5823 * Makefile.in (all-lib): Remove.
5824 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5826 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5828 Fix Python stack corruption.
5829 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5832 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5834 * Makefile.in (all-lib): Remove.
5835 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5837 2014-02-07 Doug Evans <dje@google.com>
5839 * extension-priv.h (extension_language_script_ops): Add comment.
5840 (extension_language_ops): Add comment.
5841 (active_ext_lang_state): Fix typo in comment.
5843 2014-02-07 Pedro Alves <palves@redhat.com>
5845 PR breakpoints/16292
5846 * infrun.c (handle_signal_stop) <signal arrives while stepping
5847 over a breakpoint>: Switch back to the stepping thread.
5849 2014-02-07 Yao Qi <yao@codesourcery.com>
5851 * target.c (target_xfer_partial): Return zero if LEN is zero.
5853 2014-02-07 Yao Qi <yao@codesourcery.com>
5855 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5856 (ld_so_xfer_auxv): Likewise.
5857 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5858 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5859 * corelow.c (core_xfer_partial): Likewise.
5860 * ctf.c (ctf_xfer_partial): Likewise.
5861 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5862 (darwin_xfer_partial): Likewise.
5863 * exec.c (exec_xfer_partial): Likewise.
5864 * gnu-nat.c (gnu_xfer_partial): Likewise.
5865 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5866 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5867 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5868 * linux-nat.c (linux_xfer_siginfo): Likewise.
5869 (linux_proc_xfer_spu): Likewise.
5870 * procfs.c (procfs_xfer_partial): Likewise.
5871 * record-full.c (record_full_xfer_partial): Likewise.
5872 (record_full_core_xfer_partial): Likewise.
5873 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5874 * remote.c (remote_write_qxfer): Likewise.
5875 (remote_write_qxfer, remote_read_qxfer): Likewise.
5876 (remote_xfer_partial): Likewise.
5877 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5878 (rs6000_xfer_shared_libraries): Likewise.
5879 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5880 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5881 (spu_xfer_partial): Likewise.
5882 * target.c (memory_xfer_partial_1): Likewise.
5883 * tracepoint.c (tfile_xfer_partial): Likewise.
5884 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5885 (windows_xfer_partial): Likewise.
5887 2014-02-07 Yao Qi <yao@codesourcery.com>
5889 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5891 (core_xfer_shared_libraries_aix): Likewise.
5892 * gdbarch.c, gdbarch.h: Regenerated.
5893 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5894 ULONGEST. Change 'len_avail' type to ULONGEST.
5895 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5896 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5898 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5900 2014-02-07 Yao Qi <yao@codesourcery.com>
5902 * corefile.c (memory_error): Get 'exception' from ERR and pass
5903 'exception' to throw_error.
5905 2014-02-06 Doug Evans <xdje42@gmail.com>
5907 * configure.ac (libpython checking): Remove all but python.o from
5908 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
5909 * configure: Regenerate.
5911 * Makefile.in (SFILES): Add extension.c.
5912 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
5913 (COMMON_OBS): Add extension.o.
5914 * extension.h: New file.
5915 * extension-priv.h: New file.
5916 * extension.c: New file.
5918 * python/python-internal.h: #include "extension.h".
5919 (gdbpy_auto_load_enabled): Declare.
5920 (gdbpy_apply_val_pretty_printer): Declare.
5921 (gdbpy_apply_frame_filter): Declare.
5922 (gdbpy_preserve_values): Declare.
5923 (gdbpy_breakpoint_cond_says_stop): Declare.
5924 (gdbpy_breakpoint_has_cond): Declare.
5925 (void source_python_script_for_objfile): Delete.
5926 * python/python.c: #include "extension-priv.h".
5927 Delete inclusion of "observer.h".
5928 (extension_language_python): Moved here and renamed from
5929 script_language_python in py-auto-load.c.
5930 Redefined to be of type extension_language_defn.
5931 (python_extension_script_ops): New global.
5932 (python_extension_ops): New global.
5933 (struct python_env): New member previous_active.
5934 (restore_python_env): Call restore_active_ext_lang.
5935 (ensure_python_env): Call set_active_ext_lang.
5936 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
5938 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
5940 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
5942 (gdbpy_eval_from_control_command): Renamed from
5943 eval_python_from_control_command, made static. New arg extlang.
5944 (gdbpy_source_script) Renamed from source_python_script, made static.
5946 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
5947 result to int. New arg extlang.
5948 (gdbpy_source_objfile_script): Renamed from
5949 source_python_script_for_objfile, made static. New arg extlang.
5950 (gdbpy_start_type_printers): Renamed from start_type_printers, made
5951 static. New args extlang, extlang_printers. Change result type to
5953 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
5954 static. New arg extlang. Rename arg printers to extlang_printers
5955 and change type to ext_lang_type_printers *.
5956 (gdbpy_free_type_printers): Renamed from free_type_printers, made
5957 static. Replace argument arg with extlang, extlang_printers.
5958 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
5959 (!HAVE_PYTHON, source_python_script): Delete.
5960 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
5961 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
5962 (!HAVE_PYTHON, start_type_printers): Delete.
5963 (!HAVE_PYTHON, apply_type_printers): Delete.
5964 (!HAVE_PYTHON, free_type_printers): Delete.
5965 (_initialize_python): Delete call to observer_attach_before_prompt.
5966 (finalize_python): Set/restore active extension language.
5967 (gdbpy_finish_initialization) Renamed from
5968 finish_python_initialization, made static. New arg extlang.
5969 (gdbpy_initialized): New function.
5970 * python/python.h: #include "extension.h". Delete #include
5971 "value.h", "mi/mi-cmds.h".
5972 (extension_language_python): Declare.
5973 (GDBPY_AUTO_FILE_NAME): Delete.
5974 (enum py_bt_status): Moved to extension.h and renamed to
5976 (enum frame_filter_flags): Moved to extension.h.
5977 (enum py_frame_args): Moved to extension.h and renamed to
5978 ext_lang_frame_args.
5979 (finish_python_initialization): Delete.
5980 (eval_python_from_control_command): Delete.
5981 (source_python_script): Delete.
5982 (apply_val_pretty_printer): Delete.
5983 (apply_frame_filter): Delete.
5984 (preserve_python_values): Delete.
5985 (gdbpy_script_language_defn): Delete.
5986 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
5987 (start_type_printers, apply_type_printers, free_type_printers): Delete.
5989 * auto-load.c: #include "extension.h".
5990 (GDB_AUTO_FILE_NAME): Delete.
5991 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
5992 (script_language_gdb): Delete, moved to extension.c and renamed to
5993 extension_language_gdb.
5994 (source_gdb_script_for_objfile): Delete.
5995 (auto_load_pspace_info): New member unsupported_script_warning_printed.
5996 (loaded_script): Change type of language member to
5997 struct extension_language_defn *.
5998 (init_loaded_scripts_info): Initialize
5999 unsupported_script_warning_printed.
6000 (maybe_add_script): Make static. Change type of language arg to
6001 struct extension_language_defn *.
6002 (clear_section_scripts): Reset unsupported_script_warning_printed.
6003 (auto_load_objfile_script_1): Rewrite to use extension language API.
6004 (auto_load_objfile_script): Make public. Remove support-compiled-in
6005 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6006 (source_section_scripts): Rewrite to use extension language API.
6007 (load_auto_scripts_for_objfile): Rewrite to use
6008 auto_load_scripts_for_objfile.
6009 (collect_matching_scripts_data): Change type of language member to
6010 struct extension_language_defn *.
6011 (auto_load_info_scripts): Change type of language arg to
6012 struct extension_language_defn *.
6013 (unsupported_script_warning_print): New function.
6014 (script_not_found_warning_print): Make static.
6015 (_initialize_auto_load): Rewrite construction of scripts-directory
6017 * auto-load.h (struct objfile): Add forward decl.
6018 (struct script_language): Delete.
6019 (struct auto_load_pspace_info): Add forward decl.
6020 (struct extension_language_defn): Add forward decl.
6021 (maybe_add_script): Delete.
6022 (auto_load_objfile_script): Declare.
6023 (script_not_found_warning_print): Delete.
6024 (auto_load_info_scripts): Update prototype.
6025 (auto_load_gdb_scripts_enabled): Declare.
6026 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6027 auto_load_python_scripts_enabled and made public.
6028 (script_language_python): Delete, moved to python.c.
6029 (gdbpy_script_language_defn): Delete.
6030 (info_auto_load_python_scripts): Update to use
6031 extension_language_python.
6033 * breakpoint.c (condition_command): Replace call to
6034 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6035 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6036 with call to breakpoint_ext_lang_cond_says_stop.
6037 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6038 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6039 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6040 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6042 (local_setattro): Print name of extension language with existing
6045 * valprint.c (val_print, value_print): Update to call
6046 apply_ext_lang_val_pretty_printer.
6047 * cp-valprint.c (cp_print_value): Update call to
6048 apply_ext_lang_val_pretty_printer.
6049 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6050 (gdbpy_apply_val_pretty_printer): Renamed from
6051 apply_val_pretty_printer. New arg extlang.
6052 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6054 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6055 extension language API.
6056 * cli/cli-script.c (execute_control_command): Update to call
6057 eval_ext_lang_from_control_command.
6059 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6060 enum ext_lang_bt_status values. Update call to
6061 apply_ext_lang_frame_filter.
6062 (mi_cmd_stack_list_locals): Ditto.
6063 (mi_cmd_stack_list_args): Ditto.
6064 (mi_cmd_stack_list_variables): Ditto.
6065 * mi/mi-main.c: Delete #include "python/python-internal.h".
6066 Add #include "extension.h".
6067 (mi_cmd_list_features): Replace reference to python internal variable
6068 gdb_python_initialized with call to ext_lang_initialized_p.
6070 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6071 Update to use enum ext_lang_frame_args. Update to call
6072 apply_ext_lang_frame_filter.
6073 * python/py-framefilter.c (extract_sym): Update to use enum
6075 (extract_value, py_print_type, py_print_value): Ditto.
6076 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6077 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6078 (py_print_frame): Ditto.
6079 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6080 New arg extlang. Update to use enum ext_lang_bt_status.
6082 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6083 finish_python_initialization. Replace with call to
6084 finish_ext_lang_initialization.
6086 * typeprint.c (do_free_global_table): Update to call
6087 free_ext_lang_type_printers.
6088 (create_global_typedef_table): Update to call
6089 start_ext_lang_type_printers.
6090 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6091 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6092 (type_print_options): Change type of global_printers from "void *"
6093 to "struct ext_lang_type_printers *".
6095 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6096 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6097 (gdbpy_preserve_values): Renamed from preserve_python_values.
6099 (!HAVE_PYTHON, preserve_python_values): Delete.
6101 * utils.c (quit_flag): Delete, moved to extension.c.
6102 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6105 * eval.c: Delete #include "python/python.h".
6106 * main.c: Delete #include "python/python.h".
6108 * defs.h: Update comment.
6110 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6114 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6116 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6119 2014-02-05 Yao Qi <yao@codesourcery.com>
6121 * remote.c (remote_pass_signals): Remove local 'buf' and use
6123 (remote_program_signals): Likewise.
6125 2014-02-05 Yao Qi <yao@codesourcery.com>
6127 * ctf.c: Include "inferior.h" and "gdbthread.h".
6128 (CTF_PID): A new macro.
6129 (ctf_open): Call inferior_appeared and add_thread_silent.
6130 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6131 (ctf_thread_alive): New function.
6132 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6134 2014-02-05 Yao Qi <yao@codesourcery.com>
6138 2013-05-24 Yao Qi <yao@codesourcery.com>
6140 * tracepoint.c (TFILE_PID): Remove.
6141 (tfile_open): Don't add thread and inferior.
6142 (tfile_close): Don't set 'inferior_ptid'. Don't call
6143 exit_inferior_silent.
6144 (tfile_thread_alive): Remove.
6145 (init_tfile_ops): Don't set field 'to_thread_alive' of
6148 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6150 * remote.c (remote_start_remote): Call remote_check_symbols even
6151 if only symbol-file (not file) has been given.
6153 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6155 * gdbarch.sh (skip_entrypoint): New callback.
6156 * gdbarch.c, gdbarch.h: Regenerate.
6157 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6158 * infrun.c (fill_in_stop_func): Likewise.
6159 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6160 (ppc_elfv2_elf_make_msymbol_special): New function.
6161 (ppc_elfv2_skip_entrypoint): Likewise.
6162 (ppc_linux_init_abi): Install them for ELFv2.
6164 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6166 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6167 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6168 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6169 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6170 structures returned in GPRs.
6172 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6174 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6175 offset to the stack parameter list for the ELFv2 ABI.
6177 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6179 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6180 set_gdbarch_convert_from_func_ptr_addr and
6181 set_gdbarch_elf_make_msymbol_special for ELFv1.
6182 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6183 function descriptors on ELFv1.
6184 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6185 set up r12 at function entry.
6187 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6189 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6190 (struct gdbarch_tdep): New member elf_abi.
6192 * rs6000-tdep.c: Include "elf/ppc64.h".
6193 (rs6000_gdbarch_init): Detect ELF ABI version.
6195 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6197 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6198 within a register pair holding a DFP 128-bit value on little-endian.
6199 (ppc64_sysv_abi_return_value_base): Likewise.
6200 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6201 (dfp_pseudo_register_write): Likewise.
6203 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6205 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6206 offset on little-endian when passing _Decimal32.
6207 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6209 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6211 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6212 of the overlapped FP register within the VSX register on little-
6214 (efpr_pseudo_register_write): Likewise.
6216 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6218 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6219 offset on little-endian when passing small structures.
6221 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6223 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6224 (struct ppc64_sysv_argpos): New data structure.
6225 (ppc64_sysv_abi_push_float): Remove.
6226 (ppc64_sysv_abi_push_val): New function.
6227 (ppc64_sysv_abi_push_integer): Likewise.
6228 (ppc64_sysv_abi_push_freg): Likewise.
6229 (ppc64_sysv_abi_push_vreg): Likewise.
6230 (ppc64_sysv_abi_push_param): Likewise.
6231 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6232 (ppc64_sysv_abi_return_value_base): New function.
6233 (ppc64_sysv_abi_return_value): Refactor to use it.
6235 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6237 * NEWS: Document new target powerpc64le-*-linux*.
6239 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6241 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6242 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6244 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6245 register set used in ELF core dumps. Add floating-point register set.
6247 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6249 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6250 dwarf2_to_gdb[] table using symbolic constants. Adjust
6251 penultimate entry from number representing the PC register
6252 to symbolic constant representing the MDR register. Add
6253 constant for the PC register to the end of the table.
6255 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6257 * bsd-kvm.c: Include <sys/param.h>
6259 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6261 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6263 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6265 * ada-lang.h (clear_ada_sym_cache): Delete.
6267 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6269 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6271 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6273 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6274 the sigreturn register save area only if the syscall is
6277 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6279 * valops.c (value_slice): Minor reformatting.
6281 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6283 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6285 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6287 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6289 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6290 (ada_ignore_descriptive_types_p): New static global.
6291 (find_parallel_type_by_descriptive_type): Return immediately
6292 if ada_ignore_descriptive_types_p is set.
6293 (_initialize_ada_language): Register new commands "maintenance
6294 set ada", "maintenance show ada", "maintenance set ada
6295 ignore-descriptive-types" and "maintenance show ada
6296 ignore-descriptive-types".
6297 * NEWS: Add entry for new "maint ada set/show
6298 ignore-descriptive-types" commands.
6300 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6302 * record-btrace.c (record_btrace_close): Call btrace_teardown
6305 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6307 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6310 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6312 * ada-typeprint (type_is_full_subrange_of_target_type):
6314 (print_range): Add parameter bounds_prefered_p. If not set,
6315 try printing range types using the name of their base type.
6316 (print_range_type): Add parameter bounds_prefered_p.
6317 Use it in call to print_range.
6318 (print_array_type, ada_print_type): Update calls to print_range
6319 and print_range_type.
6321 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6323 * ada-typeprint.c (print_array_type, print_choices, print_range)
6324 (print_range_bound, print_dynamic_range_bound, print_range_type):
6327 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6329 * ada-typeprint.c (print_range): Add missing empty line
6330 after local declaration.
6332 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6334 * ada-valprint.c (print_optional_low_bound): Get index_type's
6335 target type for as long as it is a TYPE_CODE_RANGE.
6337 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6339 * procfs.c (procfs_make_note_section): Remove assertion and
6342 2014-01-24 Yao Qi <yao@codesourcery.com>
6344 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6345 * corelow.c (get_core_siginfo): Likewise.
6347 2014-01-24 Yao Qi <yao@codesourcery.com>
6349 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6350 ULONGEST. Don't check 'len' is negative.
6351 (remote_write_bytes): Change type of 'len' to ULONGEST.
6353 2014-01-23 Tom Tromey <tromey@redhat.com>
6356 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6357 Handle exception from frame.block.
6358 (FrameVars.fetch_frame_locals): Likewise.
6360 2014-01-23 Tom Tromey <tromey@redhat.com>
6363 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6364 on a NULL pointer. Move "goto error" to correct place.
6366 2014-01-23 Tom Tromey <tromey@redhat.com>
6369 * python/py-framefilter.c (apply_frame_filter): Call
6370 ensure_python_env after computing gdbarch.
6372 2014-01-23 Yao Qi <yao@codesourcery.com>
6374 * target.c (raw_memory_xfer_partial): Change argument type
6375 from void * to gdb_byte *.
6376 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6378 2014-01-22 Doug Evans <dje@google.com>
6380 New gdbserver option --debug-format=timestamp.
6383 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6385 * syscalls/s390x-linux.xml: New file.
6386 * syscalls/s390-linux.xml: New file.
6387 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6388 (XML_SYSCALL_FILENAME_S390X): Likewise.
6389 (op_svc): New enum value for SVC opcode.
6390 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6391 (s390_linux_get_syscall_number): New function.
6392 (s390_gdbarch_init): Register '*get_syscall_number' and the
6393 syscall xml file name.
6394 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6395 "s390-linux.xml" and "s390x-linux.xml".
6396 * NEWS: Announce new feature.
6398 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6400 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6402 2014-01-22 Pedro Alves <palves@redhat.com>
6404 * xtensa-config.c: Include defs.h.
6406 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6408 * common/common-utils.h: Add "ARI:" comment beside __func__
6411 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6413 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6414 documentation a bit.
6416 2014-01-21 Roland McGrath <mcgrathr@google.com>
6418 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6419 * configure: Regenerate.
6420 * aclocal.m4: Regenerate.
6421 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6422 New substituted variables.
6423 (install-strip): New target.
6424 (INSTALL_SCRIPT): New substituted variable.
6425 (FLAGS_TO_PASS): Add it.
6426 (install-only): Use $(INSTALL_SCRIPT) rather than
6427 $(INSTALL_PROGRAM) for gcore.
6429 2014-01-20 Tom Tromey <tromey@redhat.com>
6431 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6434 2014-01-20 Tom Tromey <tromey@redhat.com>
6436 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6437 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6438 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6439 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6440 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6441 (struct cmd_list_element) <flags>: Remove.
6442 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6443 doc_allocated>: New fields.
6444 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6446 * maint.c (maintenance_do_deprecate): Update.
6447 * top.c (execute_command): Update.
6449 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6451 * xtensa-linux-nat.c: Include asm/ptrace.h.
6453 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6455 * Makefile.in (SFILES): Add d-support.c.
6456 (COMMON_OBS): Add d-support.o.
6457 * d-lang.h (d_parse_symbol): Add comment, now defined in
6459 * d-lang.c (parse_call_convention)
6460 (parse_attributes, parse_function_types)
6461 (parse_function_args, parse_type, parse_identifier)
6462 (call_convention_p, d_parse_symbol): Move functions to ...
6463 * d-support.c: ... New file.
6465 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6467 * d-lang.h (d_parse_symbol): Add declaration.
6468 * d-lang.c (extract_identifiers)
6469 (extract_type_info): Remove functions.
6470 (parse_call_convention, parse_attributes)
6471 (parse_function_types, parse_function_args)
6472 (parse_type, parse_identifier, call_convention_p)
6473 (d_parse_symbol): New functions.
6474 (d_demangle): Use d_parse_symbol to demangle D symbols.
6476 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6478 * d-lang.h (struct builtin_d_type): New data type.
6479 (builtin_d_type): Add declaration.
6480 * d-lang.c (d_language_arch_info, build_d_types)
6481 (builtin_d_type): New functions.
6482 (enum d_primitive_types): New data type.
6483 (d_language_defn): Change c_language_arch_info to
6484 d_language_arch_info.
6485 (d_type_data): New static variable.
6486 (_initialize_d_language): Initialize d_type_data.
6488 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6490 * d-lang.h (d_main_name): Add declaration.
6491 * d-lang.c (d_main_name): New function.
6492 * symtab.c (find_main_name): Add call to d_main_name.
6494 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6496 * d-lang.c (d_language_defn): Change macro_expansion_c to
6499 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6501 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6503 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6505 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6506 gdb_exception" declaration.
6507 * remote.c (getpkt_or_notif_sane): Likewise.
6509 2014-01-17 Doug Evans <dje@google.com>
6511 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6512 function, contents of dirnames_to_char_ptr_vec_append moved here.
6513 (delim_string_to_char_ptr_vec): New function.
6514 (dirnames_to_char_ptr_vec_append): Rewrite.
6515 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6517 2014-01-17 Doug Evans <dje@google.com>
6519 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6521 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6522 #include "common-utils.h".
6523 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6524 * common/vec.h (VEC_ASSERT_PASS): Update.
6525 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6526 (MACH_CHECK_ERROR): Update.
6528 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6530 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6532 * gdbarch.h: Regenerate.
6534 2014-01-16 Tom Tromey <tromey@redhat.com>
6536 * value.c (struct value) <regnum>: Move earlier.
6538 2014-01-16 Tom Tromey <tromey@redhat.com>
6540 * remote.c (extended_remote_create_inferior): Rename from
6541 extended_remote_create_inferior_1. Add "ops" argument. Remove
6544 2014-01-16 Pedro Alves <palves@redhat.com>
6546 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6547 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6550 2014-01-16 Doug Evans <dje@google.com>
6552 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6554 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6556 * btrace.h (btrace_thread_flag): New.
6557 (struct btrace_thread_info) <flags>: New.
6558 * record-btrace.c (record_btrace_resume_thread)
6559 (record_btrace_find_thread_to_move, btrace_step_no_history)
6560 (btrace_step_stopped, record_btrace_start_replaying)
6561 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6562 (record_btrace_find_resume_thread): New.
6563 (record_btrace_resume, record_btrace_wait): Extend.
6564 (record_btrace_can_execute_reverse): New.
6565 (record_btrace_open): Fail in non-stop mode.
6566 (record_btrace_set_replay): Split into this, ...
6567 (record_btrace_stop_replaying): ... this, ...
6568 (record_btrace_clear_histories): ... and this.
6569 (init_record_btrace_ops): Init to_can_execute_reverse.
6570 * NEWS: Announce it.
6572 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6574 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6575 (forward_target_decr_pc_after_break)
6576 (target_decr_pc_after_break): New.
6577 * target.c (forward_target_decr_pc_after_break)
6578 (target_decr_pc_after_break): New.
6579 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6580 instead of gdbarch_decr_pc_after_break.
6581 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6582 instead of gdbarch_decr_pc_after_break.
6583 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6584 instead of gdbarch_decr_pc_after_break.
6585 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6586 instead of gdbarch_decr_pc_after_break.
6587 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6588 instead of gdbarch_decr_pc_after_break.
6589 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6590 instead of gdbarch_decr_pc_after_break.
6592 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6594 * btrace.c: Include regcache.h.
6595 (btrace_add_pc): New.
6596 (btrace_enable): Call btrace_add_pc.
6597 (btrace_is_empty): New.
6598 * btrace.h (btrace_is_empty): New.
6599 * record-btrace.c (require_btrace, record_btrace_info): Call
6602 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6604 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6605 Support delta reads.
6606 (linux_disable_btrace): Change return type.
6607 * common/linux-btrace.h (linux_read_btrace): Change parameters
6608 and return type to allow error reporting. Update users.
6609 (linux_disable_btrace): Change return type. Update users.
6610 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6612 (btrace_error): New.
6613 (btrace_block) <begin>: Comment on BEGIN == 0.
6614 * btrace.c (btrace_compute_ftrace): Start from the end of
6616 (btrace_stitch_trace, btrace_clear_history): New.
6617 (btrace_fetch): Read delta trace, return if replaying.
6618 (btrace_clear): Move clear history code to btrace_clear_history.
6619 (parse_xml_btrace): Throw an error if parsing failed.
6620 * target.h (struct target_ops) <to_read_btrace>: Change parameters
6621 and return type to allow error reporting.
6622 (target_read_btrace): Change parameters and return type to allow
6624 * target.c (target_read_btrace): Update.
6625 * remote.c (remote_read_btrace): Support delta reads. Pass
6627 * NEWS: Announce it.
6629 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6631 * record.h (record_btrace_frame_unwind)
6632 (record_btrace_tailcall_frame_unwind): New declarations.
6633 * dwarf2-frame: Include record.h
6634 (dwarf2_frame_cfa): Throw an error for btrace frames.
6635 * record-btrace.c: Include hashtab.h.
6636 (btrace_get_bfun_name): New.
6637 (btrace_call_history): Call btrace_get_bfun_name.
6638 (struct btrace_frame_cache): New.
6640 (bfcache_hash, bfcache_eq, bfcache_new): New.
6641 (btrace_get_frame_function): New.
6642 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6643 (record_btrace_frame_this_id): Compute own id.
6644 (record_btrace_frame_prev_register): Provide PC, throw_error
6645 for all other registers.
6646 (record_btrace_frame_sniffer): Detect btrace frames.
6647 (record_btrace_tailcall_frame_sniffer): New.
6648 (record_btrace_frame_dealloc_cache): New.
6649 (record_btrace_frame_unwind): Add new functions.
6650 (record_btrace_tailcall_frame_unwind): New.
6651 (_initialize_record_btrace): Allocate cache.
6652 * btrace.c (btrace_clear): Call reinit_frame_cache.
6653 * NEWS: Announce it.
6655 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6657 * record-btrace.c (record_btrace_set_replay)
6658 (record_btrace_goto_begin, record_btrace_goto_end)
6659 (record_btrace_goto): New.
6660 (init_record_btrace_ops): Initialize them.
6661 * NEWS: Announce it.
6663 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6665 * record-btrace.c (record_btrace_find_new_threads)
6666 (record_btrace_thread_alive): New.
6667 (init_record_btrace_ops): Initialize to_find_new_threads and
6670 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6672 * record-btrace.c (record_btrace_resume): New.
6673 (record_btrace_wait): New.
6674 (init_record_btrace_ops): Initialize to_wait and to_resume.
6676 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6678 * record-btrace.c (record_btrace_xfer_partial)
6679 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6680 (record_btrace_allow_memory_access): New.
6681 (init_record_btrace_ops): Initialize new methods.
6682 * target.c (raw_memory_xfer_partial): Bail out if target reports
6683 that this memory is not available.
6685 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6687 * target.h (target_ops) <to_insert_breakpoint>
6688 <to_remove_breakpoint>: Add target_ops parameter.
6689 (forward_target_insert_breakpoint): New.
6690 (forward_target_remove_breakpoint): New.
6691 (memory_remove_breakpoint, memory_insert_breakpoint):
6692 Add target_ops parameter.
6693 * target.c (target_insert_breakpoint): Split into this and ...
6694 (forward_target_insert_breakpoint): ... this.
6695 (target_remove_breakpoint): Split into this and ...
6696 (forward_target_remove_breakpoint): ... this.
6697 (debug_to_insert_breakpoint): Add target_ops parameter.
6698 Call forward_target_insert_breakpoint.
6699 (debug_to_remove_breakpoint): Add target_ops parameter.
6700 Call forward_target_remove_breakpoint.
6701 (update_current_target): Do not inherit or default to_insert_breakpoint
6702 and to_remove_breakpoint.
6703 * corelow.c (ignore): Add target_ops parameter.
6704 * exec.c (ignore): Add target_ops parameter.
6705 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6706 Add target_ops parameter.
6707 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6708 Add target_ops parameter.
6709 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6710 Add target_ops parameter.
6711 * record-full.c (record_full_beneath_to_insert_breakpoint)
6712 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6713 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6714 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6715 (record_full_core_remove_breakpoint): Add target_ops parameter.
6717 (record_full_beneath_to_insert_breakpoint_ops)
6718 (record_full_beneath_to_remove_breakpoint_ops)
6719 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6720 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6721 tmp_to_remove_breakpoint_ops,
6722 record_full_beneath_to_insert_breakpoint_ops, and
6723 record_full_beneath_to_remove_breakpoint_ops.
6724 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6725 (m32r_remove_breakpoint): Add target_ops parameter.
6726 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6727 Add target_ops parameter.
6728 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6729 Add target_ops parameter.
6731 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6732 Markus Metzger <markus.t.metzger@intel.com>
6734 * record-btrace.c: Include frame-unwind.h.
6735 (record_btrace_frame_unwind_stop_reason)
6736 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6737 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6739 (init_record_btrace_ops): Install it.
6741 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6743 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6746 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6748 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6751 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6753 * frame-unwind.c: Include target.h.
6754 (frame_unwind_try_unwinder): New function with code from ...
6755 (frame_unwind_find_by_frame): ... here. New variable
6756 unwinder_from_target, call also target_get_unwinder)
6757 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6758 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6759 * target.h (struct target_ops): New fields to_get_unwinder and
6760 to_get_tailcall_unwinder.
6761 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6763 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6765 * record-btrace.c (record_btrace_fetch_registers)
6766 (record_btrace_store_registers)
6767 (record_btrace_to_prepare_to_store): New.
6768 (init_record_btrace_ops): Add the above.
6770 2014-01-16 Tom Tromey <tromey@redhat.com>
6772 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6773 * target.h (struct target_ops) <to_prepare_to_store>: Add
6775 (target_prepare_to_store): Add argument.
6776 * target.c (debug_to_prepare_to_store): Add argument.
6777 (update_current_target): Update.
6778 * remote.c (remote_prepare_to_store): Add 'self' argument.
6779 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6780 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6781 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6782 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6784 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6785 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6786 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6787 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6788 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6790 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6792 * btrace.h (replay) <replay>: New.
6793 (btrace_is_replaying): New.
6794 * btrace.c (btrace_clear): Free replay iterator.
6795 (btrace_is_replaying): New.
6796 * record-btrace.c (record_btrace_is_replaying): New.
6797 (record_btrace_info): Print insn number if replaying.
6798 (record_btrace_insn_history): Start at replay position.
6799 (record_btrace_call_history): Start at replay position.
6800 (init_record_btrace_ops): Init to_record_is_replaying.
6802 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6804 * record-btrace.c (record_btrace_insn_history_range): Include
6806 (record_btrace_insn_history_from): Adjust range.
6807 (record_btrace_call_history_range): Include
6809 (record_btrace_call_history_from): Adjust range.
6810 * NEWS: Announce changes.
6812 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6814 * record.h (enum record_print_flag)
6815 <record_print_indent_calls>: New.
6816 * record.c (get_call_history_modifiers): Recognize /c modifier.
6817 (_initialize_record): Document /c modifier.
6818 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6819 Reorder fields. Optionally indent the function name. Update
6821 * NEWS: Announce changes.
6823 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6825 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6827 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6829 * btrace.c (ftrace_new_function): Start counting at one.
6830 * record-btrace.c (record_btrace_info): Adjust number of calls
6832 * NEWS: Announce it.
6834 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6836 * record-btrace.c (btrace_call_history_insn_range): Print
6837 insn range as [begin, end].
6839 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6841 * btrace.h (struct btrace_func_link): New.
6842 (enum btrace_function_flag): New.
6843 (struct btrace_inst): Rename to ...
6844 (struct btrace_insn): ...this. Update all users.
6845 (struct btrace_func) <ibegin, iend>: Remove.
6846 (struct btrace_func_link): New.
6847 (struct btrace_func): Rename to ...
6848 (struct btrace_function): ...this. Update all users.
6849 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6850 (number, level, flags>: New.
6851 (struct btrace_insn_iterator): Rename to ...
6852 (struct btrace_insn_history): ...this.
6854 (struct btrace_insn_iterator, btrace_call_iterator): New.
6855 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6856 (struct btrace_target_info) <begin, end, level>
6857 <insn_history, call_history>: New.
6858 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6859 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6860 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6861 (btrace_call_number, btrace_call_begin, btrace_call_end)
6862 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6863 (btrace_find_function_by_number, btrace_set_insn_history)
6864 (btrace_set_call_history): New.
6865 * btrace.c (btrace_init_insn_iterator)
6866 (btrace_init_func_iterator, compute_itrace): Remove.
6867 (ftrace_print_function_name, ftrace_print_filename)
6868 (ftrace_skip_file): Change
6870 (ftrace_init_func): Remove.
6871 (ftrace_debug): Use new btrace_function fields.
6872 (ftrace_function_switched): Also consider gaining and
6873 losing symbol information).
6874 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6875 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6876 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6878 (ftrace_new_function): Move. Remove debug print.
6879 (ftrace_update_lines, ftrace_update_insns): New.
6880 (ftrace_update_function): Check for call, ret, and jump.
6881 (compute_ftrace): Renamed to ...
6882 (btrace_compute_ftrace): ...this. Rewritten to compute call
6884 (btrace_fetch, btrace_clear): Updated.
6885 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6886 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6887 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6888 (btrace_call_number, btrace_call_begin, btrace_call_end)
6889 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6890 (btrace_find_function_by_number, btrace_set_insn_history)
6891 (btrace_set_call_history): New.
6892 * record-btrace.c (require_btrace): Use new btrace thread
6894 (record_btrace_info, btrace_insn_history)
6895 (record_btrace_insn_history, record_btrace_insn_history_range):
6896 Use new btrace thread info fields and new iterator.
6897 (btrace_func_history_src_line): Rename to ...
6898 (btrace_call_history_src_line): ...this. Use new btrace
6900 (btrace_func_history): Rename to ...
6901 (btrace_call_history): ...this. Use new btrace thread info
6902 fields and new iterator.
6903 (record_btrace_call_history, record_btrace_call_history_range):
6904 Use new btrace thread info fields and new iterator.
6906 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6908 * frame.h (frame_id_build_unavailable_stack_special): New.
6909 * frame.c (frame_id_build_unavailable_stack_special): New.
6911 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6913 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
6914 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
6915 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
6917 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
6918 (i386_insn_is_jump, i386_jmp_p): New.
6919 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
6920 insn_is_jump to gdbarch.
6921 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
6922 * gdbarch.h: Regenerated.
6923 * gdbarch.c: Regenerated.
6924 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
6925 (default_insn_is_jump): New.
6926 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
6927 (default_insn_is_jump): New.
6929 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6931 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
6933 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
6934 (btrace_read_type) <btrace_read_new>: Change to ...
6935 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
6937 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6939 * common/linux-btrace.c (linux_read_btrace): Free trace from
6942 2014-01-15 Doug Evans <dje@google.com>
6944 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
6947 2014-01-15 Tom Tromey <tromey@redhat.com>
6949 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
6950 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
6951 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
6952 (set_objfile_main_name): New function.
6953 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
6954 language_of_main>: New fields.
6955 (set_objfile_main_name): Declare.
6956 * symtab.c (find_main_name): Loop over objfiles to find the main
6958 (set_main_name): Now static.
6959 (get_main_info): Add comment.
6960 * symtab.h (set_main_name): Don't declare.
6962 2014-01-15 Tom Tromey <tromey@redhat.com>
6964 * symtab.c (main_progspace_key): New global.
6965 (struct main_info): New.
6966 (name_of_main, language_of_main): Remove.
6967 (get_main_info, main_info_cleanup): New function.
6968 (set_main_name, main_name, main_language): Use get_main_info.
6969 (_initialize_symtab): Initialize main_progspace_key.
6971 2014-01-15 Tom Tromey <tromey@redhat.com>
6973 * dbxread.c (process_one_symbol): Update.
6974 * dwarf2read.c (read_partial_die): Update.
6975 * symfile.c (set_initial_language): Call main_language.
6976 * symtab.c (language_of_main): Now static.
6977 (set_main_name): Add 'lang' parameter.
6978 (find_main_name): Update.
6979 (main_language): New function.
6980 (symtab_observer_executable_changed): Update.
6981 * symtab.h (set_main_name): Update.
6982 (language_of_main): Remove.
6983 (main_language): Declare.
6985 2014-01-15 Tom Tromey <tromey@redhat.com>
6987 * symfile.c (init_entry_point_info): Use new "initialized" field.
6989 * objfiles.h (struct entry_point) <initialized>: New field.
6990 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
6991 (struct objfile) <ei>: ...here. Remove.
6992 * objfiles.c (entry_point_address_query): Update.
6994 2014-01-15 Tom Tromey <tromey@redhat.com>
6996 * objfiles.c (entry_point_address_query): Relocate entry point
6998 (objfile_relocate1): Do not relocate entry point address.
6999 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7000 <the_bfd_section_index>: New field.
7001 * symfile.c (init_entry_point_info): Find the entry point's
7004 2014-01-15 Tom Tromey <tromey@redhat.com>
7006 * solib-frv.c (enable_break): Use entry_point_address_query.
7008 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7010 * NEWS: Add note on improved process record-replay on
7011 arm*-linux* targets.
7013 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7015 * arm-tdep.c (enum arm_record_result): New enum.
7016 (arm_record_unsupported_insn): New function.
7017 (arm_record_coproc_data_proc): Removed.
7018 (thumb2_record_ld_st_multiple): New function.
7019 (thumb2_record_ld_st_dual_ex_tbb): New function.
7020 (thumb2_record_data_proc_sreg_mimm): New function.
7021 (thumb2_record_ps_dest_generic): New function.
7022 (thumb2_record_branch_misc_cntrl): New function.
7023 (thumb2_record_str_single_data): New function.
7024 (thumb2_record_ld_mem_hints): New function.
7025 (thumb2_record_ld_word): New function.
7026 (thumb2_record_lmul_lmla_div): New function.
7027 (thumb2_record_decode_insn_handler): New function.
7028 (decode_insn): Add thumb32 instruction handlers.
7030 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7032 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7033 (struct arm_linux_record_tdep): Declare.
7034 (arm_canonicalize_syscall): New function.
7035 (arm_all_but_pc_registers_record): New function.
7036 (arm_linux_syscall_record): New function.
7037 (arm_linux_init_abi): Add syscall recording constructs.
7038 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7039 decoding. (arm_record_coproc_data_proc): Update arm syscall
7041 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7042 <arm_syscall_record>: New field.
7043 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7046 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7048 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7049 register for push instruction recording.
7051 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7053 * arm-tdep.c (thumb_record_misc): Update to correct logical
7054 error while recording ldm, ldmia and pop instructions.
7056 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7058 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7060 2014-01-15 Pedro Alves <palves@redhat.com>
7062 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7063 (go32_resume, go32_fetch_registers, store_register)
7064 (go32_store_registers, go32_prepare_to_store)
7065 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7066 (go32_create_inferior, go32_can_run, go32_terminal_init)
7067 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7070 2014-01-15 Tom Tromey <tromey@redhat.com>
7072 * target.h (async_callback_ftype): New typedef.
7073 (struct target_ops) <to_async>: Use it.
7075 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7077 * python/py-value.c (get_field_type): Remove unnecessary curly
7078 braces for single-statement if block.
7080 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7082 * python/py-type.c (convert_field): Add missing empty line
7085 2014-01-14 Doug Evans <dje@google.com>
7087 * symfile.h (expand_symtabs_matching): Renamed from
7088 expand_partial_symbol_names. Update prototype.
7089 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7090 * symfile.c (expand_symtabs_matching): Renamed from
7091 expand_partial_symbol_names. New args file_matcher, kind.
7092 Rename arg fun to symbol_matcher.
7093 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7094 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7095 ada_expand_partial_symbol_name.
7096 (ada_make_symbol_completion_list): Update to call
7097 expand_symtabs_matching.
7098 (ada_add_global_exceptions): Call expand_symtabs_matching.
7099 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7100 call map_symbol_filenames.
7101 * symtab.c (sources_info): Update to call map_symbol_filenames.
7102 (search_symbols): Call expand_symtabs_matching.
7103 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7104 (default_make_symbol_completion_list_break_on): Update to call
7105 expand_symtabs_matching.
7106 (make_source_files_completion_list): Update to call
7107 map_symbol_filenames.
7109 2014-01-14 Doug Evans <dje@google.com>
7111 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7112 (expand_symtabs_symbol_matcher_ftype): New typedef.
7113 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7114 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7115 * symfile.c (expand_partial_symbol_names): Update to use
7116 expand_symtabs_symbol_matcher_ftype.
7117 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7118 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7119 Arg name_matcher renamed to symbol_matcher.
7120 * psymtab.c (recursively_search_psymtabs): Update to use
7121 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7123 (expand_symtabs_matching_via_partial): Update to use
7124 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7125 Arg name_matcher renamed to symbol_matcher.
7127 2014-01-14 Doug Evans <dje@google.com>
7129 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7130 (map_partial_symbol_filenames): Ditto.
7131 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7132 (map_partial_symbol_filenames): Ditto.
7133 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7134 (map_partial_symbol_filenames): Ditto.
7135 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7136 (map_partial_symbol_filenames): Ditto.
7137 * symtab.c: Delete #include "psymtab.h".
7139 2014-01-14 Pedro Alves <palves@redhat.com>
7140 Tom Tromey <tromey@redhat.com>
7142 * infrun.c (use_displaced_stepping): Use find_record_target
7143 instead of RECORD_IS_USED.
7144 (adjust_pc_after_break): Use record_full_is_used instead of
7146 * record-btrace.c (record_btrace_open): Call record_preopen
7147 instead of checking RECORD_IS_USED.
7148 * record-full.c (record_full_shortname)
7149 (record_full_core_shortname): New globals.
7150 (record_full_is_used): New function.
7151 (find_full_open): Call record_preopen instead of checking
7153 (init_record_full_ops): Set the target's shortname to
7154 record_full_shortname.
7155 (init_record_full_core_ops): Set the target's shortname to
7156 record_full_core_shortname.
7157 * record-full.h (record_full_is_used): Declare.
7158 * record.c (find_record_target): Make extern.
7159 (record_preopen): New function.
7160 * record.h (RECORD_IS_USED): Delete macro.
7161 (find_record_target, record_preopen): Declare functions.
7163 2014-01-14 Yao Qi <yao@codesourcery.com>
7165 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7166 'len''s type to ULONGEST.
7167 (core_xfer_shared_libraries_aix): Likewise.
7168 * gdbarch.c, gdbarch.h: Regenerated.
7169 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7170 Change type of 'len' to ULONGEST.
7171 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7172 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7174 2014-01-14 Yao Qi <yao@codesourcery.com>
7176 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7177 type of 'len' to ULONGEST.
7178 (linux_xfer_osdata_processgroups): Likewise.
7179 (linux_xfer_osdata_threads): Likewise.
7180 (linux_xfer_osdata_fds): Likewise.
7181 (linux_xfer_osdata_isockets): Likewise.
7182 (linux_xfer_osdata_shm): Likewise.
7183 (linux_xfer_osdata_sem): Likewise.
7184 (linux_xfer_osdata_msg): Likewise.
7185 (linux_common_xfer_osdata): Likewise.
7186 (struct osdata_type) <getter>: Likewise.
7187 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7190 2014-01-14 Yao Qi <yao@codesourcery.com>
7192 * target.h (target_xfer_partial_ftype): Update.
7193 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7195 * aix-thread.c (aix_thread_xfer_partial): Change type of
7196 argument 'len' to ULONGEST.
7197 * auxv.c (procfs_xfer_auxv): Likewise.
7198 (ld_so_xfer_auxv): Likewise.
7199 (memory_xfer_auxv): Likewise.
7200 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7201 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7202 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7203 * corelow.c (core_xfer_partial): Likewise.
7204 * ctf.c (ctf_xfer_partial): Likewise.
7205 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7207 (darwin_read_dyld_info): Likewise.
7208 (darwin_xfer_partial): Likewise.
7209 * exec.c (section_table_xfer_memory_partial): Likewise.
7210 (exec_xfer_partial): Likewise.
7211 * exec.h (section_table_xfer_memory_partial): Update
7213 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7214 instead of plongest.
7215 (gnu_xfer_partial): Likewise.
7216 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7217 (ia64_hpux_xfer_solib_got): Likewise.
7218 (ia64_hpux_xfer_partial): Likewise.
7219 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7220 * inf-ptrace.c (inf_ptrace_xfer_partial):
7221 * inf-ttrace.c (inf_ttrace_xfer_partial):
7222 * linux-nat.c (linux_xfer_siginfo): Likewise.
7223 (linux_nat_xfer_partial): Likewise.
7224 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7225 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7226 * monitor.c (monitor_xfer_memory): Likewise.
7227 (monitor_xfer_partial): Likewise.
7228 * procfs.c (procfs_xfer_partial): Likewise.
7229 * record-full.c (record_full_xfer_partial): Likewise.
7230 (record_full_core_xfer_partial): Likewise.
7231 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7232 instead of plongest.
7233 (gdbsim_xfer_partial): Likewise.
7234 * remote.c (remote_xfer_partial): Likewise.
7235 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7236 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7238 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7239 (rs6000_xfer_shared_libraries): Likewise.
7240 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7241 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7242 (sparc_xfer_partial): Likewise.
7243 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7244 (spu_xfer_partial): Likewise.
7245 * spu-multiarch.c (spu_xfer_partial): Likewise.
7246 * target.c (target_read_live_memory): Likewise.
7247 (memory_xfer_live_readonly_partial): Likewise.
7248 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7249 (target_xfer_partial, default_xfer_partial): Likewise.
7250 (current_xfer_partial): Likewise.
7251 * tracepoint.c (tfile_xfer_partial): Likewise.
7252 * windows-nat.c (windows_xfer_memory): Likewise. Call
7253 pulongest instead of plongest.
7254 (windows_xfer_partial): Likewise.
7255 (windows_xfer_shared_libraries): Likewise.
7257 2014-01-14 Yao Qi <yao@codesourcery.com>
7259 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7260 target_xfer_partial_ftype.
7262 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7266 * valops.c (value_struct_elt_bitpos): New function
7267 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7268 object to 'None' if the field name is an empty string ("").
7269 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7270 attribute to look for a field when 'name' is 'None'.
7271 (get_field_type): New function
7273 2014-01-13 Doug Evans <dje@google.com>
7276 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7277 (try_open_dwop_file): Ditto.
7278 * gdb_bfd.c: #include "vec.h".
7279 (bfdp): New typedef.
7280 (struct gdb_bfd_data): New member included_bfds.
7281 (gdb_bfd_unref): Unref all included bfds.
7282 (gdb_bfd_record_inclusion): New function.
7283 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7285 2014-01-13 Tom Tromey <tromey@redhat.com>
7287 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7289 2014-01-13 Tom Tromey <tromey@redhat.com>
7291 * defs.h (use_windows): Remove.
7292 * gdb.c (main): Update.
7293 * main.c (captured_main, gdb_main): Update.
7294 * main.h (struct captured_main_args) <use_windows>: Remove.
7295 * top.c (use_windows): Remove.
7297 2014-01-13 Tom Tromey <tromey@redhat.com>
7299 * defs.h (deprecated_flush_hook): Remove.
7301 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7304 * linux-thread-db.c (try_thread_db_load): Add parameter
7305 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7306 (try_thread_db_load_from_pdir_1): Move it there from here.
7307 (try_thread_db_load_from_sdir): Update caller.
7308 (try_thread_db_load_from_dir): Move it there from here.
7310 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7312 * regformats/regdat.sh: Always rewrite the register file.
7314 2014-01-13 Pedro Alves <palves@redhat.com>
7316 * Makefile.in (CHECK_HEADERS): New variable.
7317 (check-headers:): New rule.
7319 2014-01-13 Tom Tromey <tromey@redhat.com>
7321 * cli/cli-setshow.c (do_set_command): Update.
7322 * defs.h (deprecated_set_hook): Remove.
7323 * top.c (deprecated_set_hook): Remove.
7325 2014-01-13 Pedro Alves <palves@redhat.com>
7327 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7328 the tracepoint if the PC is a pseudo-register.
7330 2014-01-13 Tom Tromey <tromey@redhat.com>
7332 * defs.h (XCALLOC): Remove.
7333 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7334 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7335 * dwarf2loc.c (allocate_piece_closure): Likewise.
7336 * elfread.c (elf_symfile_segments): Likewise.
7337 (elf_symfile_segments): Likewise.
7338 * gdbtypes.c (copy_type_recursive): Likewise.
7339 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7340 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7341 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7343 * mt-tdep.c (mt_gdbarch_init): Likewise.
7344 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7346 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7347 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7348 * registry.c (registry_alloc_data): Likewise.
7349 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7350 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7351 * serial.c (serial_fdopen_ops): Likewise.
7352 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7354 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7355 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7358 2014-01-13 Tom Tromey <tromey@redhat.com>
7360 * defs.h (XMALLOC): Remove.
7361 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7362 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7363 * cli-out.c (struct ui_out *): Likewise.
7364 * cli/cli-dump.c (add_dump_command): Likewise.
7365 (add_dump_command): Likewise.
7366 * complaints.c (get_complaints): Likewise.
7367 (find_complaint): Likewise.
7368 * dwarf2-frame.c (execute_cfa_program): Likewise.
7369 * dwarf2read.c (abbrev_table_read_table): Likewise.
7370 * gdbarch.sh: Likewise.
7371 * gdbarch.c: Rebuild.
7372 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7373 * interps.c (interp_new): Likewise.
7374 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7375 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7376 * mi/mi-console.c (mi_console_file_new): Likewise.
7377 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7378 * mi/mi-out.c (mi_out_new): Likewise.
7379 * mi/mi-parse.c (mi_parse): Likewise.
7380 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7381 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7382 * observer.c (xalloc_observer_list_node): Likewise.
7383 * regcache.c (regcache_xmalloc_1): Likewise.
7384 * reggroups.c (reggroup_new): Likewise.
7385 (_initialize_reggroup): Likewise.
7386 * registry.c (register_data_with_cleanup): Likewise.
7387 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7388 * ser-base.c (serial_ttystate): Likewise.
7389 * ser-mingw.c (make_pipe_state): Likewise.
7390 * ser-pipe.c (pipe_open): Likewise.
7391 * serial.c (serial_open): Likewise.
7392 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7393 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7394 (tui_alloc_win_info): Likewise.
7395 (tui_add_content_elements): Likewise.
7396 * tui/tui-file.c (tui_file_new): Likewise.
7397 * tui/tui-out.c (tui_out_new): Likewise.
7398 * ui-file.c (mem_file_new): Likewise.
7399 * ui-out.c (push_level): Likewise.
7400 (make_cleanup_ui_out_end): Likewise.
7401 (append_header_to_list): Likewise.
7402 (ui_out_new): Likewise.
7403 * user-regs.c (user_reg_add_builtin): Likewise.
7405 2014-01-13 Tom Tromey <tromey@redhat.com>
7407 * defs.h (XZALLOC): Remove.
7408 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7409 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7410 (get_ada_tasks_inferior_data): Likewise.
7411 * auto-load.c (get_auto_load_pspace_data): Likewise.
7412 * auxv.c (get_auxv_inferior_data): Likewise.
7413 * bfd-target.c (target_bfd_reopen): Likewise.
7414 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7415 (deprecated_insert_raw_breakpoint): Likewise.
7416 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7417 * corelow.c (core_open): Likewise.
7418 * darwin-nat.c (darwin_check_new_threads): Likewise.
7419 (darwin_attach_pid): Likewise.
7420 * dummy-frame.c (dummy_frame_push): Likewise.
7421 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7422 * dwarf2loc.c (allocate_piece_closure): Likewise.
7423 * elfread.c (elf_symfile_segments): Likewise.
7424 * eval.c (ptrmath_type_p): Likewise.
7425 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7426 * gdbtypes.c (alloc_type_arch): Likewise.
7427 (alloc_type_instance): Likewise.
7428 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7429 * inf-child.c (inf_child_can_use_agent): Likewise.
7430 * inflow.c (get_inflow_inferior_data): Likewise.
7431 * infrun.c (save_infcall_suspend_state): Likewise.
7432 * jit.c (jit_reader_load): Likewise.
7433 (get_jit_objfile_data): Likewise.
7434 (get_jit_program_space_data): Likewise.
7435 (jit_object_open_impl): Likewise.
7436 (jit_symtab_open_impl): Likewise.
7437 (jit_block_open_impl): Likewise.
7438 (jit_frame_sniffer): Likewise.
7439 * linux-fork.c (add_fork): Likewise.
7440 * maint.c (make_command_stats_cleanup): Likewise.
7441 * objfiles.c (get_objfile_pspace_data): Likewise.
7442 * opencl-lang.c (struct lval_closure): Likewise.
7443 * osdata.c (osdata_start_osdata): Likewise.
7444 * progspace.c (new_address_space): Likewise.
7445 (add_program_space): Likewise.
7446 * remote-sim.c (get_sim_inferior_data): Likewise.
7447 * sh-tdep.c (sh_gdbarch_init): Likewise.
7448 * skip.c (Ignore): Likewise.
7449 (skip_delete_command): Likewise.
7450 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7451 (library_list_start_library): Likewise.
7452 (solib_aix_current_sos): Likewise.
7453 * solib-darwin.c (get_darwin_info): Likewise.
7454 (darwin_current_sos): Likewise.
7455 * solib-dsbt.c (get_dsbt_info): Likewise.
7456 * solib-ia64-hpux.c (new_so_list): Likewise.
7457 (ia64_hpux_get_solib_linkage_addr): Likewise.
7458 * solib-spu.c (append_ocl_sos): Likewise.
7459 (spu_current_sos): Likewise.
7460 * solib-svr4.c (get_svr4_info): Likewise.
7461 (svr4_keep_data_in_core): Likewise.
7462 (library_list_start_library): Likewise.
7463 (svr4_default_sos): Likewise.
7464 (svr4_read_so_list): Likewise.
7465 * solib-target.c (library_list_start_library): Likewise.
7466 (solib_target_current_sos): Likewise.
7467 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7468 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7469 * symfile.c (default_symfile_segments): Likewise.
7470 * target-descriptions.c (tdesc_data_init): Likewise.
7471 (tdesc_create_reg): Likewise.
7472 (struct tdesc_type *): Likewise.
7473 (tdesc_create_vector): Likewise.
7474 (tdesc_set_struct_size): Likewise.
7475 (struct tdesc_type *): Likewise.
7476 (tdesc_free_feature): Likewise.
7477 (tdesc_create_feature): Likewise.
7478 * windows-nat.c (windows_add_thread): Likewise.
7479 (windows_make_so): Likewise.
7480 * xml-support.c (gdb_xml_body_text): Likewise.
7481 (gdb_xml_create_parser_and_cleanup): Likewise.
7482 (xml_process_xincludes): Likewise.
7483 * xml-syscall.c (allocate_syscalls_info): Likewise.
7484 (syscall_create_syscall_desc): Likewise.
7486 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7488 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7489 function, with code from i386_stap_parse_special_token.
7490 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7491 (i386_stap_parse_special_token): Move code to the two functions
7494 2014-01-09 Pedro Alves <palves@redhat.com>
7495 Hui Zhu <hui@codesourcery.com>
7498 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7499 bp_err_string. Don't mark the location shlib_disabled if the
7500 error thrown wasn't a generic or memory error. Catch errors
7501 thrown while inserting breakpoints in overlayed code. Output
7502 error message of software breakpoints.
7503 * remote.c (remote_insert_breakpoint): If this breakpoint has
7504 target-side commands but this stub doesn't support Z0 packets,
7505 throw NOT_SUPPORTED_ERROR error.
7506 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7507 * target.h (target_insert_breakpoint): Extend comment.
7508 (target_insert_hw_breakpoint): Add comment.
7510 2014-01-08 Pedro Alves <palves@redhat.com>
7512 * remote.c (remote_add_thread): Add threads silently if starting
7514 (remote_notice_new_inferior): If in all-stop, and starting up,
7515 don't call notice_new_inferior.
7516 (get_current_thread): New function, factored out from ...
7517 (add_current_inferior_and_thread): ... this. Adjust.
7518 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7519 found any thread, then select the remote's current thread as GDB's
7522 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7524 * NEWS: Create a new section for the next release branch.
7525 Rename the section of the current branch, now that it has
7528 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7530 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7531 * version.in: Bump version to 7.7.50.DATE-cvs.
7533 2014-01-08 Yao Qi <yao@codesourcery.com>
7535 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7536 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7537 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7539 2014-01-08 Yao Qi <yao@codesourcery.com>
7541 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7542 return value of bfd_get_filename to symbol_file_add_from_bfd.
7544 2014-01-08 Pierre Muller <muller@sourceware.org>
7547 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7548 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7549 to prim_record_mininal_symbol_and_info.
7550 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7551 in call to prim_record_minimal_symbol_and_info.
7552 (read_pe_exported_syms): Set index field of section_data.
7554 2014-01-07 Andrew Pinski <apinski@cavium.com>
7556 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7557 * features/aarch64.c: Regenerate.
7559 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7561 * target.c (return_null): Define.
7562 (update_current_target): Use it instead of return_zero for
7563 functions that return a pointer.
7565 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7567 * source.c (add_path): Fix check for duplicated paths in the previously
7570 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7572 * ada-lang.c: Remove duplicated include statements.
7573 * alphabsd-nat.c: Ditto.
7574 * amd64-darwin-tdep.c: Ditto.
7575 * amd64fbsd-nat.c: Ditto.
7576 * auto-load.c: Ditto.
7578 * breakpoint.c: Ditto.
7580 * fork-child.c: Ditto.
7581 * gdb_usleep.c: Ditto.
7582 * i386-darwin-tdep.c: Ditto.
7583 * i386fbsd-nat.c: Ditto.
7585 * inferior.c: Ditto.
7587 * linux-nat.c: Ditto.
7588 * linux-tdep.c: Ditto.
7589 * m68kbsd-nat.c: Ditto.
7590 * m68klinux-nat.c: Ditto.
7591 * microblaze-tdep.c: Ditto.
7592 * mips-linux-tdep.c: Ditto.
7593 * mn10300-tdep.c: Ditto.
7594 * nto-tdep.c: Ditto.
7595 * opencl-lang.c: Ditto.
7597 * printcmd.c: Ditto.
7598 * regcache.c: Ditto.
7599 * remote-m32r-sdi.c: Ditto.
7603 * tilegx-linux-nat.c: Ditto.
7604 * tilegx-tdep.c: Ditto.
7605 * tracepoint.c: Ditto.
7607 * vaxbsd-nat.c: Ditto.
7608 * windows-nat.c: Ditto.
7609 * xtensa-tdep.c: Ditto.
7611 2014-01-07 Yao Qi <yao@codesourcery.com>
7613 * spu-linux-nat.c (_initialize_spu_nat): Declare.
7615 2014-01-07 Yao Qi <yao@codesourcery.com>
7616 Joel Brobecker <brobecker@adacore.com>
7618 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7619 (pdc_write_regs): Likewise.
7620 (fetch_regs_kernel_thread): Likewise.
7621 (store_regs_kernel_thread): Likewise.
7623 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7625 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7626 tagged type objects to their actual type.
7628 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7630 * ada-valprint.c (print_field_values): Add "language" parameter.
7631 Update calls to print_field_values and print_variant_part.
7632 Pass new parameter "language" in call to val_print instead
7633 of "current_language". Replace call to ada_val_print by call
7635 (print_variant_part): Add "language" parameter.
7636 (ada_val_print_struct_union): Update call to print_field_values.
7638 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7640 * ada-valprint.c (ui_memcpy): Delete.
7641 (ada_print_floating): Update documentation. Add empty line
7642 between between function documentation and implementation.
7643 Delete variable "buffer". Use ui_file_xstrdup in place of
7644 ui_file_put. Minor adjustments following this change.
7646 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7648 * ada-valprint.c (ada_val_print_string): New function,
7649 extracted from ada_val_print_array.
7650 (ada_val_print_array): Replace extracted code by call
7651 to ada_val_print_string followed by a return. Move
7652 "else" branch to the function's top block.
7654 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7656 * ada-valprint.c (ada_val_print_array): Move implementation
7657 down. Rename parameter "offset" and "val" into "offset_aligned"
7658 and "original_value" respectively. Add parameter "offset".
7660 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7662 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7663 re-organizing the code. Change the "???" message printed
7664 when target type is a TYPE_CODE_UNDEF into
7665 "<ref to undefined type>".
7667 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7669 * ada-valprint.c (print_record): Delete, implementation inlined...
7670 (ada_val_print_struct_union): ... here. Remove call to
7671 ada_check_typedef in inlined implementation.
7673 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7675 * ada-valprint.c (ada_val_print_gnat_array): New function,
7676 extracted from ada_val_print_1;
7677 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7678 (ada_val_print_flt, ada_val_print_struct_union)
7679 (ada_val_print_ref): Likewise.
7680 (ada_val_print_1): Delete variables i and elttype.
7681 Replace extracted-out code by call to corresponding
7684 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7686 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7688 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7690 * ada-valprint.c (ada_val_print_1): Replace calls to
7691 ada_val_print_1 by calls to val_print.
7693 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7695 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7696 Update calls to self accordingly. Replace calls to c_val_print
7697 by calls to val_print.
7699 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7701 * ada-valprint.c (print_record): Delete declaration.
7702 (adjust_type_signedness, ada_val_print_1): Likewise.
7703 (ada_val_print): Move function implementation down.
7704 (print_variant_part, print_field_values, print_record):
7705 Move function implementation up.
7707 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7709 * python/py-type.c (typy_get_name): New function.
7710 (type_object_getset): Add entry for attribute "name".
7711 * NEWS: Add entry mentioning this new attribute.
7713 2014-01-07 Yao Qi <yao@codesourcery.com>
7715 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7718 2014-01-07 Yao Qi <yao@codesourcery.com>
7720 * gnu-nat.c (info_port_rights): Add qualifier const to
7723 2014-01-07 Yao Qi <yao@codesourcery.com>
7725 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7727 2014-01-07 Yao Qi <yao@codesourcery.com>
7729 * gnu-nat.c (make_inf) Update declaration.
7730 (make_inf): Make it static.
7731 (inf_set_traced): Likewise.
7732 (inf_port_to_thread, inf_task_died_status): Likewise.
7734 2014-01-07 Yao Qi <yao@codesourcery.com>
7736 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7738 2014-01-07 Yao Qi <yao@codesourcery.com>
7740 * gnu-nat.c (_initialize_gnu_nat): Declare.
7742 2014-01-07 Yao Qi <yao@codesourcery.com>
7744 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7746 (struct gdbarch_info) <byte_order>: Change type to
7748 <byte_order_for_code>: Likewise.
7749 * gdbarch.c, gdbarch.h: Regenerated.
7751 2014-01-06 Sasha Smundak <asmundak@google.com>
7753 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7755 2014-01-06 Tom Tromey <tromey@redhat.com>
7757 * doublest.c (convert_doublest_to_floatformat): Use const, not
7759 * somread.c (som_symtab_read): Likewise.
7761 2014-01-07 Hui Zhu <hui@codesourcery.com>
7763 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7764 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7765 (gdb_bfd_fopen): Ditto.
7766 (gdb_bfd_openr): Ditto.
7767 (gdb_bfd_openw): Ditto.
7768 (gdb_bfd_openr_iovec): Ditto.
7769 (gdb_bfd_fdopenr): Ditto.
7770 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7771 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7773 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7775 * symfile-mem.c (symbol_file_add_from_memory): Removed
7776 gdb_bfd_stash_filename.
7778 2014-01-03 Doug Evans <dje@google.com>
7780 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7783 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7785 Update year range in copyright notice of all files.
7787 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7789 * top.c (print_gdb_version): Set copyright year to 2014.
7791 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7793 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7795 For older changes see ChangeLog-2013.
7801 version-control: never