1 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3 * score-tdep.c (score7_linux_gregset): New static regset
5 (score7_linux_regset_from_core_section): Remove dynamic regset
7 (score_gdbarch_init): Drop allocation of tdep structure.
8 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
10 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
12 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
14 (am33_regset_from_core_section): Remove dynamic regset
17 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
19 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
20 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
22 (mips_linux_regset_from_core_section): Remove dynamic regset
24 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
25 'gregset64', 'fpregset', and 'fpregset64'.
26 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
29 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
31 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
33 (amd64_regset_from_core_section): Remove dynamic regset
35 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
37 (amd64obsd_regset_from_core_section): Remove dynamic regset
39 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
41 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
42 x86-common regset supply function.
43 * i386-tdep.c (i386_collect_gregset): Make static.
44 (i386_gregset): New global regset structure.
45 (i386_fpregset, i386_xstateregset): New static regset structures.
46 (i386_regset_from_core_section): Remove dynamic regset
48 (i386_gdbarch_init): Remove initialization of tdep fields
49 'gregset', 'fpregset', and 'xstateregset'.
50 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
51 'fpregset', and 'xstateregset'.
52 (i386_collect_gregset): Remove prototype.
53 (i386_gregset): New declaration.
54 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
56 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
59 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
61 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
62 (arm_linux_vfpregset): New static regset structures.
63 (arm_linux_regset_from_core_section): Remove dynamic allocation of
65 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
66 and 'vfpregset' fields.
68 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
70 * aarch64-linux-tdep.c (aarch64_linux_gregset)
71 (aarch64_linux_fpregset): New static regset structures.
72 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
74 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
77 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
79 * regset.h (struct regset): Remove gdbarch field.
80 * regset.c (regset_alloc): Drop initialization of gdbarch field.
81 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
82 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
84 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
85 (ppc32_linux_fpregset, ppc32_linux_vrregset)
86 (ppc32_linux_vsxregset): Likewise.
87 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
88 via the regcache instead of the regset.
89 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
90 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
91 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
92 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
95 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
97 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
99 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
100 (alphanbsd_aout_gregset): Likewise.
101 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
102 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
104 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
105 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
107 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
108 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
109 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
110 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
111 * m88k-tdep.c (m88k_gregset): Likewise.
112 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
113 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
114 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
115 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
116 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
117 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
118 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
119 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
120 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
122 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
123 * sh-tdep.h (sh_corefile_gregset): Likewise.
124 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
125 * vax-tdep.c (vax_gregset): Likewise.
127 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
129 Fix TLS access for -static -pthread.
130 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
131 (try_thread_db_load_1): Initialize it.
132 (thread_db_get_thread_local_address): Call it if LM is zero.
133 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
134 * target.h (struct target_ops) (to_get_thread_local_address): Add
135 load_module_addr comment.
137 2014-05-21 Pedro Alves <palves@redhat.com>
139 * dcache.c (dcache_read_memory_partial): If reading the cache line
140 fails, fallback to reading just the memory the caller wanted.
142 2014-05-20 Doug Evans <dje@google.com>
144 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
145 instead of get_current_arch.
147 2014-05-20 Pedro Alves <palves@redhat.com>
149 * NEWS: Mention that compare-sections now works with all targets.
151 * remote.c (PACKET_qCRC): New enum value.
152 (remote_verify_memory): Don't send qCRC if the target has no
153 execution. Use packet_support/packet_ok. If the target doesn't
154 support the qCRC packet, fallback to a deep memory copy.
155 (compare_sections_command): Say "target image" instead of "remote
157 (_initialize_remote): Add PACKET_qCRC to the list of config
158 packets that have no associated command. Extend comment.
159 * target.c (simple_verify_memory, default_verify_memory): New
161 * target.h (struct target_ops) <to_verify_memory>: Default to
162 default_verify_memory.
163 (simple_verify_memory): New declaration.
164 * target-delegates.c: Regenerate.
166 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
168 * record-btrace.c (record_btrace_step_thread): Check for empty history.
170 2014-05-20 Hui Zhu <hui@codesourcery.com>
171 Yao Qi <yao@codesourcery.com>
174 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
175 and change address of sp and pc.
177 2014-05-19 Tom Tromey <tromey@redhat.com>
179 * gdbtypes.c (rank_function): Use XNEWVEC.
180 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
182 2014-05-19 Doug Evans <dje@google.com>
184 * dwarf2read.c (build_type_psymtabs_1): Renamed from
185 build_type_unit_groups and moved closer to only caller. Remove
186 arguments. All references updated. Remove outdated .gdb_index
188 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
189 build_type_psymtabs_1.
191 2014-05-19 Doug Evans <dje@google.com>
193 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
194 n_type_unit_groups, all_type_unit_groups. All uses removed.
195 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
196 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
197 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
198 (add_type_unit_group_to_table): Delete.
200 2014-05-19 Doug Evans <dje@google.com>
202 * eval.c (evaluate_subexp_standard): Add some comments.
204 2014-05-17 Doug Evans <xdje42@gmail.com>
206 * progspace.c (remove_program_space): Delete, unused.
207 * progspace.h (remove_program_space): Ditto.
209 2014-05-17 Doug Evans <xdje42@gmail.com>
211 * inferior.c (prune_inferiors): Fix comment.
212 (remove_inferior_command): Call prune_program_spaces.
214 2014-05-16 Doug Evans <dje@google.com>
216 New command line option -D.
218 * main.c (set_gdb_data_directory): New function.
219 (captured_main): Recognize -D. Flag error for --data-directory "".
220 Call set_gdb_data_directory.
221 (print_gdb_help): Print --data-directory, -D.
222 * main.h (set_gdb_data_directory): Declare.
223 * top.c (staged_gdb_datadir): New static global.
224 (set_gdb_datadir): Call set_gdb_data_directory
225 (show_gdb_datadir): New function.
226 (init_main): Update init of data-directory parameter.
228 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
230 Import the "dirfd" gnulib module.
231 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
232 * gnulib/aclocal.m4: Update.
233 * gnulib/config.in: Update.
234 * gnulib/configure: Update.
235 * gnulib/import/Makefile.am: Update.
236 * gnulib/import/Makefile.in: Update.
237 * gnulib/import/dirfd.c: New.
238 * gnulib/import/m4/dirfd.m4: New.
239 * gnulib/import/m4/gnulib-cache.m4: Update.
240 * gnulib/import/m4/gnulib-comp.m4: Update.
242 2014-05-16 Pierre Muller <muller@sourceware.org>
243 Yao Qi <yao@codesourcery.com>
245 * valprint.c (print_wchar): Move the code on checking whether
246 W is a printable wide char to the default branch of switch
247 statement below. Call wchar_printable instead of gdb_iswprint.
249 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
251 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
252 ldr.w and ldrd instructions.
254 2014-05-15 Doug Evans <dje@google.com>
256 * dwarf2read.c (read_structure_type): Delete outdated comments.
258 2014-05-14 Tom Tromey <tromey@redhat.com>
260 * macrocmd.c (print_macro_definition): Reindent.
262 2014-05-13 Doug Evans <xdje42@gmail.com>
264 * python/py-cmd.c (cmdpy_completer): Add comment.
265 (completers): Make const.
267 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
269 * infrun.c (resume): Remove should_resume (unused). Move up
270 declaration of resume_ptid.
272 2014-05-13 Tom Tromey <tromey@redhat.com>
274 * language.h (unop_type_check): Remove.
275 (binop_type_check): Don't declare.
277 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
279 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
280 call to regcache_raw_collect.
282 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
284 * mi/mi-console.c (mi_console_raw_packet): Use the value from
285 mi_console->quote as the quoting character.
287 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
289 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
291 2014-04-29 Tom Tromey <tromey@redhat.com>
293 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
296 2014-05-07 Kyle McMartin <kyle@redhat.com>
298 Pushed by Joel Brobecker <brobecker@adacore.com>.
299 * aarch64-tdep.c (aarch64_software_single_step): New function.
300 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
301 with aarch64_software_single_step.
303 2014-05-05 Joel Brobecker <brobecker@adacore.com>
307 2014-05-05 Keith Seitz <keiths@redhat.com>
309 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
310 variable or history value is successfully parsed.
312 2014-05-05 Yao Qi <yao@codesourcery.com>
313 Pedro Alves <palves@redhat.com>
315 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
316 address of blocks that intersects the requested range. Trim
317 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
319 * ctf.c (ctf_xfer_partial): Likewise.
321 2014-05-05 Yao Qi <yao@codesourcery.com>
323 * printcmd.c (display_command): Remove the check to
324 target_has_execution.
326 2014-05-03 Mark Kettenis <kettenis@gnu.org>
328 * ppcobsd-nat.c: Include "obsd-nat.h".
329 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
331 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
333 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
335 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
336 and 16-bit signed and unsigned arguments. Update comment.
337 (stap_parse_probe_arguments): Extend code to handle such
338 arguments. Use warning instead of complaint to notify about
339 unrecognized bitness.
341 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
344 * stap-probe.c (stap_parse_probe_arguments): Simplify
345 check for non-prefixed probes (i.e., probes whose
346 arguments do not start with "N@"). Always set the
347 argument type to a sane value.
349 2014-05-01 David Taylor <dtaylor@emc.com>
351 * remote.c (compare_sections_command): Add -r option to compare
352 all loadable read-only sections.
354 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
356 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
357 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
359 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
360 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
361 Remove unused CORE_ADDR argument. Update all callers.
363 2014-04-29 Pedro Alves <palves@redhat.com>
365 * remote.c (struct packet_config) <detect>: Extend comment.
366 (add_packet_config_cmd): Don't set the config's detect or support
368 (init_all_packet_configs): Also initialize the config's 'detect'
370 (reset_all_packet_configs_support): New function.
371 (remote_open_1): Call reset_all_packet_configs_support instead of
372 init_all_packet_configs.
373 (_initialize_remote): Initialize all packet configs. Assert that
374 all packets have an associated command, except a few known
377 2014-04-28 Joel Brobecker <brobecker@adacore.com>
379 * dwarf2read.c (read_subrange_type): Handle dynamic
380 DW_AT_lower_bound attributes.
382 2014-04-28 Joel Brobecker <brobecker@adacore.com>
384 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
385 dynamic bounds before computing its upper bound.
386 (ada_discrete_type_low_bound): Same as above with the lower bound.
388 2014-04-28 Joel Brobecker <brobecker@adacore.com>
390 * dwarf2read.c (is_dynamic_type): Return true for dynamic
391 range types. Adjust the array handling implementation to
392 take advantage of this change.
393 (resolve_dynamic_range): New function, mostly extracted from
394 resolve_dynamic_bounds.
395 (resolve_dynamic_array): New function, mostly extracted from
396 resolve_dynamic_bounds.
397 (resolve_dynamic_bounds): Delete.
398 (resolve_dynamic_type): Reimplement. Add handling of
399 TYPE_CODE_RANGE types.
401 2014-04-28 Joel Brobecker <brobecker@adacore.com>
403 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
404 handling of parallel ___XA types.
406 2014-04-28 Joel Brobecker <brobecker@adacore.com>
408 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
409 unnecessary second call to static_unwrap_type.
411 2014-04-27 Hui Zhu <hui@codesourcery.com>
413 * stack.c (print_frame_info): Call do_gdb_disassembly with
414 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
416 2014-04-26 Doug Evans <xdje42@gmail.com>
418 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
420 2014-04-25 Pedro Alves <palves@redhat.com>
423 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
424 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
425 and newline from built string.
426 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
427 (linux_ptrace_attach_fail_reason): ... this.
428 * linux-nat.c (linux_nat_attach): Adjust to use
429 linux_ptrace_attach_fail_reason.
431 2014-04-25 Pedro Alves <palves@redhat.com>
433 * remote.c (struct remote_state): Remove multi_process_aware,
434 non_stop_aware, cond_tracepoints, cond_breakpoints,
435 breakpoint_commands, fast_tracepoints, static_tracepoints,
436 install_in_trace, disconnected_tracing,
437 enable_disable_tracepoints, string_tracing, and
438 augmented_libraries_svr4_read fields.
439 (remote_multi_process_p): Move further below in the file.
440 (struct packet_config): Add comments.
441 (update_packet_config): Delete function.
442 (show_packet_config_cmd): Use packet_config_support.
443 (add_packet_config_cmd): Use NULL as set callback.
444 (packet_ok): "set remote foo-packet"-style commands no longer
445 change config->supported -- adjust.
446 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
447 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
448 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
449 (PACKET_QNonStop, PACKET_multiprocess_feature)
450 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
451 (PACKET_DisconnectedTracing_feature)
452 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
453 (set_remote_protocol_packet_cmd): Delete function.
454 (packet_config_support, packet_support): New functions.
455 (set_remote_protocol_Z_packet_cmd): Don't call
456 update_packet_config.
457 (remote_query_attached, remote_pass_signals)
458 (remote_program_signals, remote_threads_info)
459 (remote_threads_extra_info, remote_start_remote): Use
461 (remote_start_remote): Use packet_config_support and
463 (init_all_packet_configs): Set all packets to unknown support,
464 instead of calling update_packet_config.
465 (remote_check_symbols): Use packet_support.
466 (remote_supported_packet): Unconditionally set the packet config's
468 (remote_multi_process_feature, remote_non_stop_feature)
469 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
470 (remote_breakpoint_commands_feature)
471 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
472 (remote_install_in_trace_feature)
473 (remote_disconnected_tracing_feature)
474 (remote_enable_disable_tracepoint_feature)
475 (remote_string_tracing_feature)
476 (remote_augmented_libraries_svr4_read_feature): Delete functions.
477 (remote_protocol_features): Adjust to use remote_supported_packet
478 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
479 "ConditionalTracepoints", "ConditionalBreakpoints",
480 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
481 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
482 "EnableDisableTracepoints", and "tracenz".
483 (remote_query_supported): Use packet_support.
484 (remote_open_1): Adjust.
485 (extended_remote_attach_1): Use packet_support. Switch on the
486 result of packet_ok instead of checking whether the packet ended
488 (remote_vcont_resume): Use packet_support.
489 (remote_resume, remote_stop_ns, fetch_register_using_p)
490 (remote_prepare_to_store, store_register_using_P)
491 (check_binary_download, remote_write_bytes): Use packet_support.
492 (remote_vkill): Use packet_support. Switch on the result of
493 packet_ok instead of checking whether the packet ended up
495 (extended_remote_supports_disable_randomization): Use
497 (extended_remote_run): Switch on the result of packet_ok instead
498 of checking whether the packet ended up disabled.
499 (remote_insert_breakpoint, remote_remove_breakpoint)
500 (remote_insert_watchpoint, remote_remove_watchpoint)
501 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
503 (remote_search_memory): Use packet_config_support.
504 (remote_get_thread_local_address, remote_get_tib_address)
505 (remote_hostio_send_command, remote_can_execute_reverse): Use
507 (remote_supports_cond_tracepoints)
508 (remote_supports_cond_breakpoints)
509 (remote_supports_fast_tracepoints)
510 (remote_supports_static_tracepoints)
511 (remote_supports_install_in_trace)
512 (remote_supports_enable_disable_tracepoint)
513 (remote_supports_string_tracing)
514 (remote_can_run_breakpoint_commands): Rewrite, checking whether
515 the packet config says the feature is enabled or disabled.
516 (remote_download_tracepoint, remote_trace_set_readonly_regions)
517 (remote_get_trace_status): Use packet_support.
518 (remote_set_disconnected_tracing): Adjust to check whether the
519 feature is enabled with packet_support.
520 (remote_set_trace_buffer_size, remote_use_agent)
521 (remote_can_use_agent, remote_supports_btrace): Use
523 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
524 Use packet_config_support.
525 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
526 the packet config says the feature is enabled or disabled.
527 (set_range_stepping): Use packet_support.
529 2014-04-25 Tom Tromey <tromey@redhat.com>
531 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
534 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
536 * NEWS: Mention support for C99 variable length arrays.
538 2014-04-24 Joel Brobecker <brobecker@adacore.com>
540 * ada-lang.c (standard_exc): Expand introductory comment.
542 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
543 Walfred Tedeschi <walfred.tedeschi@intel.com>
545 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
547 (amd64_linux_read_description): Add code to handle AVX512 xstate
548 mask and return respective tdesc.
549 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
550 and features/i386/x32-avx512-linux.c.
551 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
552 (amd64_linux_core_read_description): Add code to handle AVX512
553 xstate mask and return respective tdesc.
554 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
555 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
557 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
558 (tdesc_amd64_avx512_linux): New prototype.
559 (tdesc_x32_avx512_linux): Likewise.
560 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
561 features/i386/x32-avx512.c.
562 (amd64_ymm_avx512_names): New register names for pseudo
564 (amd64_ymmh_avx512_names): New register names for raw registers
566 (amd64_k_names): New register names for K registers.
567 (amd64_zmmh_names): New register names for ZMM raw registers.
568 (amd64_zmm_names): New registers names for ZMM pseudo registers.
569 (amd64_xmm_avx512_names): New register names for XMM16-31
571 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
573 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
574 if feature is present.
575 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
576 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
577 (AMD64_NUM_REGS): Adjust to new number of registers.
578 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
579 registers supplied via XSTATE by AVX512 registers.
580 (i386_linux_read_description): Add case for AVX512.
581 * i386-linux-tdep.c: Include i386-avx512-linux.c.
582 (i386_linux_gregset_reg_offset): Add AVX512 registers.
583 (i386_linux_core_read_description): Add case for AVX512.
584 (i386_linux_init_abi): Install supported register note section
586 (_initialize_i386_linux_tdep): Add call to tdesc init function for
588 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
589 registers to be number of zmm7h + 1.
590 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
591 * i386-tdep.c: Include features/i386/i386-avx512.c.
592 (i386_zmm_names): Add ZMM pseudo register names array.
593 (i386_zmmh_names): Add ZMM raw register names array.
594 (i386_k_names): Add K raw register names array.
595 (num_lower_zmm_regs): Add constant for the number of lower ZMM
596 registers. AVX512 has 16 more ZMM registers than there are YMM
598 (i386_zmmh_regnum_p): Add function to look up register number of
600 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
601 (i386_k_regnum_p): Likewise for K raw registers.
602 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
603 registers added by AVX512.
604 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
605 registers added by AVX512.
606 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
608 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
609 (i386_pseudo_register_name): Add ZMM pseudo registers.
610 (i386_zmm_type): Construct and return vector registers type for ZMM
612 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
613 ZMM0-31 pseudo registers and K registers.
614 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
615 and YMM16-31 registers from register cache.
616 (i386_pseudo_register_write): Add code to write K, ZMM and
618 (i386_register_reggroup_p): Add code to include/exclude AVX512
619 registers in/from respective register groups.
620 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
621 registers if feature is present in xcr0.
622 (i386_gdbarch_init): Add code to initialize AVX512 feature
623 variables in tdep structure, wire in pseudo registers and call
624 initialize_tdesc_i386_avx512.
625 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
627 (i386_regnum): Add AVX512 registers.
628 (I386_SSE_NUM_REGS): New define for number of SSE registers.
629 (I386_AVX_NUM_REGS): Likewise for AVX registers.
630 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
631 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
633 (i386_xmm_avx512_regnum_p): New prototype for register look up.
634 (i386_ymm_avx512_regnum_p): Likewise.
635 (i386_k_regnum_p): Likewise.
636 (i386_zmm_regnum_p): Likewise.
637 (i386_zmmh_regnum_p): Likewise.
638 * i387-tdep.c : Update year in copyright notice.
639 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
641 (XSAVE_YMM_AVX512_ADDR): New macro.
642 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
644 (XSAVE_XMM_AVX512_ADDR): New macro.
645 (xsave_avx512_k_offset): New table for K register offsets in
647 (XSAVE_AVX512_K_ADDR): New macro.
648 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
650 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
651 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
653 (i387_collect_xsave): Add code to collect AVX512 registers from
655 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
656 of XMM16-31 registers.
657 (I387_NUM_K_REGS): New define for number of K registers.
658 (I387_K0_REGNUM): New define for K0 register number.
659 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
660 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
661 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
663 (I387_YMM16H_REGNUM): New define for YMM16H register number.
664 (I387_XMM16_REGNUM): New define for XMM16 register number.
665 (I387_YMM0_REGNUM): New define for YMM0 register number.
666 (I387_KEND_REGNUM): New define for last K register number.
667 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
668 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
670 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
672 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
674 * features/Makefile: Add AVX512 related files.
675 * features/i386/32bit-avx512.xml: New file.
676 * features/i386/64bit-avx512.xml: Likewise.
677 * features/i386/amd64-avx512-linux.c: Likewise.
678 * features/i386/amd64-avx512-linux.xml: Likewise.
679 * features/i386/amd64-avx512.c: Likewise.
680 * features/i386/amd64-avx512.xml: Likewise.
681 * features/i386/i386-avx512-linux.c: Likewise.
682 * features/i386/i386-avx512-linux.xml: Likewise.
683 * features/i386/i386-avx512.c: Likewise.
684 * features/i386/i386-avx512.xml: Likewise.
685 * features/i386/x32-avx512-linux.c: Likewise.
686 * features/i386/x32-avx512-linux.xml: Likewise.
687 * features/i386/x32-avx512.c: Likewise.
688 * features/i386/x32-avx512.xml: Likewise.
689 * regformats/i386/amd64-avx512-linux.dat: New file.
690 * regformats/i386/amd64-avx512.dat: Likewise.
691 * regformats/i386/i386-avx512-linux.dat: Likewise.
692 * regformats/i386/i386-avx512.dat: Likewise.
693 * regformats/i386/x32-avx512-linux.dat: Likewise.
694 * regformats/i386/x32-avx512.dat: Likewise.
695 * NEWS: Add note about new support for AVX512.
698 2014-04-23 Pedro Alves <palves@redhat.com>
700 * breakpoint.c (insert_bp_location): Tolerate errors if the
701 breakpoint is set in a user-loaded objfile.
702 (remove_breakpoint_1): Likewise. Also tolerate errors if the
703 location is marked shlib_disabled. If the breakpoint is set in a
704 user-loaded objfile is a GDB-side memory breakpoint, validate it
705 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
706 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
708 * mem-break.c (memory_validate_breakpoint): New function.
709 * objfiles.c (userloaded_objfile_contains_address_p): New
711 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
712 * target.h (memory_validate_breakpoint): New declaration.
714 2014-04-23 Pedro Alves <palves@redhat.com>
716 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
717 the breakpoint is set in a shared library, only suppress
718 errors for software breakpoints, not hardware breakpoints.
720 2014-04-22 Pedro Alves <palves@redhat.com>
722 * infrun.c (schedlock_applies): New function, factored out from
723 find_thread_needs_step_over.
724 (find_thread_needs_step_over): Use it.
725 (switch_back_to_stepped_thread): Always clear trap_expected if the
726 step over is finished. Return early if scheduler locking applies.
727 Look for the stepping thread and a potential step-over thread with
729 (currently_stepping_or_nexting_callback): Delete.
731 2014-04-22 Nick Clifton <nickc@redhat.com>
733 * NEWS: Mention that ARM sim now supports tracing.
735 2014-04-22 Yao Qi <yao@codesourcery.com>
737 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
739 * tracefile.c (tracefile_fetch_registers): ... it. New
741 * tracefile.h (tracefile_fetch_registers): Declare.
742 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
743 tracefile_fetch_registers.
745 2014-04-19 Eli Zaretskii <eliz@gnu.org>
748 * windows-nat.c (thread_rec): Don't display a warning when
749 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
750 fails for any reason, set th->suspended to -1, so that we don't
751 try to resume such a thread. Also, don't return NULL in these
752 cases, to avoid completely ruin the session due to "PC register is
753 not available" error.
754 (do_windows_fetch_inferior_registers): Check errors in
755 GetThreadContext call.
756 (windows_continue): Accept an additional argument KILLED; if not
757 zero, ignore errors in the SetThreadContext call, since the
758 inferior was killed and is shutting down.
759 (windows_resume, get_windows_debug_event)
760 (windows_create_inferior, windows_mourn_inferior)
761 (windows_kill_inferior): All callers of windows_continue changed
762 to adjust to its new calling sequence.
764 2014-04-19 Yao Qi <yao@codesourcery.com>
766 * ctf.c (ctf_open): Call post_create_inferior.
768 2014-04-19 Yao Qi <yao@codesourcery.com>
770 * ctf.c (handle_id): New static variable.
771 (ctf_open_dir): Get handle_id from bt_context_add_trace return
772 value. Get the declaration of event "register" and get length
775 2014-04-19 Yao Qi <yao@codesourcery.com>
777 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
779 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
781 * valops.c (oload_method_static): Remove unnecessary argument
782 METHOD. Update all callers.
784 2014-04-18 Pedro alves <palves@redhat.com>
785 Tom Tromey <tromey@redhat.com>
788 * frame.c (get_prev_frame_1): Rename to ...
789 (get_prev_frame_always): ... this, and make extern. Adjust.
790 (skip_artificial_frames): Use get_prev_frame_always.
791 (frame_unwind_caller_id, frame_pop, get_prev_frame)
792 (get_frame_unwind_stop_reason): Adjust to rename.
793 * frame.h (get_prev_frame_always): Declare.
794 * inline-frame.c: Include frame.h.
795 (inline_frame_this_id): Use get_prev_frame_always.
797 2014-04-18 Tristan Gingold <gingold@adacore.com>
799 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
800 code by using bfd_mach_o_get_base_address.
802 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
804 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
805 (spu_ax_pseudo_register_collect): New function.
806 (spu_ax_pseudo_register_push_stack): Likewise.
807 (spu_dwarf_reg_to_regnum): Likewise.
808 (spu_gdbarch_init): Install them. Append DWARF unwinders.
810 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
812 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
813 Replace FRAME argument with FRAME_ID.
814 * gdbarch.c, gdbarch.h: Regenerate.
815 * findvar.c (default_value_from_register): Add GDBARCH argument;
816 replace FRAME by FRAME_ID. No longer call get_frame_id.
817 (value_from_register): Update call to gdbarch_value_from_register.
818 * value.h (default_value_from_register): Update prototype.
819 * s390-linux-tdep.c (s390_value_from_register): Update interface
820 and call to default_value_from_register.
821 * spu-tdep.c (spu_value_from_register): Likewise.
823 * findvar.c (address_from_register): Remove TYPE argument.
824 Do not call value_from_register; use gdbarch_value_from_register
825 with null_frame_id instead.
826 * value.h (address_from_register): Update prototype.
827 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
828 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
829 address_from_register interface change.
831 2014-04-17 Yao Qi <yao@codesourcery.com>
833 * gdbtypes.h: Update comments to link to types and macros'
836 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
838 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
840 2014-04-16 Keith Seitz <keiths@redhat.com>
843 * dwarf2read.c (skip_one_die): Check that all relative-offset
844 sibling DIEs fall within range of the current reader's buffer.
845 (read_partial_die): Likewise.
847 2014-04-16 Keith Seitz <keiths@redhat.com>
850 * cp-namespace.c (lookup_symbol_file): If the type name of
851 `this' is NULL, return immediately.
853 2014-04-14 Keith Seitz <keiths@redhat.com>
856 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
857 from symbol_matches_domain in symtab.c. All local callers
858 of symbol_matches_domain updated.
859 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
860 search STRUCT_DOMAIN.
861 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
862 independently. standard_lookup will do that automatically.
863 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
864 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
865 (cp_lookup_symbol_in_namespace): Likewise.
866 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
867 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
868 may return a STRUCT_DOMAIN match.
869 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
870 * cp-support.c: Include language.h.
871 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
873 * psymtab.c (match_partial_symbol): Compare the requested
874 domain with the symbol's domain directly.
875 (lookup_partial_symbol): Likewise.
876 * symtab.c (lookup_symbol_in_language): Explain when/why
877 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
878 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
879 appropriate languages.
880 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
881 and moved to ada-lang.c
882 (lookup_block_symbol): Explain that this function only returns
883 symbol matching the requested DOMAIN.
884 Compare the requested domain with the symbol's domain directly.
885 (iterate_over_symbols): Compare the requested domain with the
886 symbol's domain directly.
887 * symtab.h (symbol_matches_domain): Remove.
889 2014-04-14 Tom Tromey <tromey@redhat.com>
892 * c-exp.y (type_aggregate_p): New function.
893 (qualified_name, classify_inner_name): Use it.
894 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
895 and TYPE_TARGET_TYPE of an enum type.
896 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
898 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
899 handle TYPE_DECLARED_CLASS.
900 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
902 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
903 * valops.c (enum_constant_from_type): New function.
904 (value_aggregate_elt): Use it.
905 * cp-namespace.c (cp_lookup_nested_symbol): Handle
908 2014-04-14 Tom Tromey <tromey@redhat.com>
910 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
911 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
913 * value.h (value_aggregate_elt): Update.
915 2014-04-14 Tom Tromey <tromey@redhat.com>
917 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
919 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
921 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
922 (evaluate_subexp_standard): Pass noside argument.
923 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
924 if noside equals EVAL_NORMAL. If the subscript yields a vla type
925 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
926 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
927 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
929 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
931 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
932 points to a constant blob.
934 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
936 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
937 property and store it as the high bound and flag the range accordingly.
938 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
939 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
940 * gdbtypes.h (enum range_flags): New enum.
941 (struct range_bounds): Add flags member.
943 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
945 * c-typeprint.c (c_type_print_varspec_suffix): Added
946 check for not yet resolved high bound. If unresolved, print
947 "variable length" string to the console instead of random
950 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
952 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
954 (ada_template_to_fixed_record_type_1): Likewise.
955 (ada_to_fixed_type_1): Likewise.
956 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
957 (cp_print_value): Likewise.
958 * d-valprint.c (dynamic_array_type): Likewise.
959 * findvar.c (address_of_variable): Likewise.
960 * jv-valprint.c (java_value_print): Likewise.
961 * valops.c (value_ind): Likewise.
962 * value.c (coerce_ref): Likewise.
964 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
966 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
967 value and retrieve the dynamic type size.
969 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
971 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
972 passed to sizeof is dynamic evaluate the argument to compute the length.
974 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
975 Joel Brobecker <brobecker@adacore.com>
977 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
978 (dwarf2_evaluate_property): New function.
979 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
980 * dwarf2read.c (attr_to_dynamic_prop): New function.
981 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
983 * gdbtypes.c: Include dwarf2loc.h.
984 (is_dynamic_type): New function.
985 (resolve_dynamic_type): New function.
986 (resolve_dynamic_bounds): New function.
987 (get_type_length): New function.
988 (check_typedef): Use get_type_length to compute type length.
989 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
990 (TYPE_LOW_BOUND_KIND): New macro.
991 (is_dynamic_type): New function prototype.
992 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
993 to resolve dynamic properties of the type. Update comment.
994 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
996 2014-04-14 Richard Henderson <rth@redhat.com>
998 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1000 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1001 Doug Evans <xdje42@gmail.com>
1003 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1004 dereference TYPE_CODE_REF values.
1006 2014-04-11 Joel Brobecker <brobecker@adacore.com>
1008 Revert the following changes due to regressions:
1010 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1011 (dwarf2_evaluate_property): New function.
1012 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1013 * dwarf2read.c (attr_to_dynamic_prop): New function.
1014 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1016 * gdbtypes.c: Include dwarf2loc.h.
1017 (is_dynamic_type): New function.
1018 (resolve_dynamic_type): New function.
1019 (resolve_dynamic_bounds): New function.
1020 (get_type_length): New function.
1021 (check_typedef): Use get_type_length to compute type length.
1022 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1023 (TYPE_LOW_BOUND_KIND): New macro.
1024 (is_dynamic_type): New function prototype.
1025 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1026 to resolve dynamic properties of the type. Update comment.
1027 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1029 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1030 passed to sizeof is dynamic evaluate the argument to compute the length.
1032 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1033 value and retrieve the dynamic type size.
1035 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1036 (ada_template_to_fixed_record_type_1): Likewise.
1037 (ada_to_fixed_type_1): Likewise.
1038 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1039 (cp_print_value): Likewise.
1040 * d-valprint.c (dynamic_array_type): Likewise.
1041 * eval.c (evaluate_subexp_with_coercion): Likewise.
1042 * findvar.c (address_of_variable): Likewise.
1043 * jv-valprint.c (java_value_print): Likewise.
1044 * valops.c (value_ind): Likewise.
1045 * value.c (coerce_ref): Likewise.
1047 * c-typeprint.c (c_type_print_varspec_suffix): Added
1048 check for not yet resolved high bound. If unresolved, print
1049 "variable length" string to the console instead of random
1052 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1053 property and store it as the high bound and flag the range accordingly.
1054 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1055 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1056 * gdbtypes.h (enum range_flags): New enum.
1057 (struct range_bounds): Add flags member.
1059 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1060 points to a constant blob.
1062 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1063 (evaluate_subexp_standard): Pass noside argument.
1064 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1065 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1066 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1067 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1068 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1070 2014-04-11 Keith Seitz <keiths@redhat.com>
1073 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1074 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1077 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1079 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1080 (evaluate_subexp_standard): Pass noside argument.
1081 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1082 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1083 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1084 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1085 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1087 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1089 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1090 points to a constant blob.
1092 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1094 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1095 property and store it as the high bound and flag the range accordingly.
1096 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1097 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1098 * gdbtypes.h (enum range_flags): New enum.
1099 (struct range_bounds): Add flags member.
1101 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1103 * c-typeprint.c (c_type_print_varspec_suffix): Added
1104 check for not yet resolved high bound. If unresolved, print
1105 "variable length" string to the console instead of random
1108 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1110 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1111 (ada_template_to_fixed_record_type_1): Likewise.
1112 (ada_to_fixed_type_1): Likewise.
1113 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1114 (cp_print_value): Likewise.
1115 * d-valprint.c (dynamic_array_type): Likewise.
1116 * eval.c (evaluate_subexp_with_coercion): Likewise.
1117 * findvar.c (address_of_variable): Likewise.
1118 * jv-valprint.c (java_value_print): Likewise.
1119 * valops.c (value_ind): Likewise.
1120 * value.c (coerce_ref): Likewise.
1122 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1124 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1125 value and retrieve the dynamic type size.
1127 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1129 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1130 passed to sizeof is dynamic evaluate the argument to compute the length.
1132 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1134 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1135 (dwarf2_evaluate_property): New function.
1136 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1137 * dwarf2read.c (attr_to_dynamic_prop): New function.
1138 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1140 * gdbtypes.c: Include dwarf2loc.h.
1141 (is_dynamic_type): New function.
1142 (resolve_dynamic_type): New function.
1143 (resolve_dynamic_bounds): New function.
1144 (get_type_length): New function.
1145 (check_typedef): Use get_type_length to compute type length.
1146 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1147 (TYPE_LOW_BOUND_KIND): New macro.
1148 (is_dynamic_type): New function prototype.
1149 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1150 to resolve dynamic properties of the type. Update comment.
1151 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1153 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1155 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
1156 declaring high/low bounds and change uses accordingly. Call
1157 create_range_type instead of create_static_range_type.
1158 * gdbtypes.c (create_range_type): New function.
1159 (create_range_type): Convert bounds into struct bound_prop and pass
1160 them to create_range_type.
1161 * gdbtypes.h (struct bound_prop): New struct.
1162 (create_range_type): New function prototype.
1163 (struct range_bounds): Use struct bound_prop instead of LONGEST for
1164 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
1165 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
1167 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
1169 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1171 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
1172 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
1173 * ada-lang.c: All uses of create_range_type updated.
1174 * coffread.c: All uses of create_range_type updated.
1175 * dwarf2read.c: All uses of create_range_type updated.
1176 * f-exp.y: All uses of create_range_type updated.
1177 * m2-valprint.c: All uses of create_range_type updated.
1178 * mdebugread.c: All uses of create_range_type updated.
1179 * stabsread.c: All uses of create_range_type updated.
1180 * valops.c: All uses of create_range_type updated.
1181 * valprint.c: All uses of create_range_type updated.
1183 2014-04-10 Pedro Alves <palves@redhat.com>
1185 * breakpoint.c (single_step_breakpoints)
1186 (single_step_gdbarch): Move up in the file.
1187 (one_breakpoint_xfer_memory): New function, factored out from ...
1188 (breakpoint_xfer_memory): ... here. Also process single-step
1191 2014-04-09 Tristan Gingold <gingold@adacore.com>
1193 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
1195 (darwin_decode_exception_message): Free port only after use.
1197 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
1199 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
1200 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
1201 when setting the size of call_length.
1203 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
1205 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
1206 dereference TYPE_CODE_REF values.
1208 2014-04-07 Joel Brobecker <brobecker@adacore.com>
1210 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
1211 end of warning message.
1213 2014-04-03 Doug Evans <dje@google.com>
1215 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
1216 of stub_comp_unit_die, stub_comp_dir is non-NULL.
1218 2014-04-02 Alan Modra <amodra@gmail.com>
1220 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
1221 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
1222 (struct symbol_file_add_from_memory_args): Add size field.
1223 (find_vdso_size): New function.
1224 (add_vsyscall_page): Attempt to find vdso size.
1226 2014-04-01 Doug Evans <dje@google.com>
1228 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
1230 2014-04-01 Tristan Gingold <gingold@adacore.com>
1232 * darwin-nat.c (darwin_encode_reply): Add prototype.
1233 (darwin_decode_exception_message): Reply to unknown inferiors.
1234 (darwin_decode_message): Handle message by id. Ignore message
1235 to unknown inferior.
1236 (darwin_wait): Discard unknown messages, add debug trace.
1238 2014-03-31 Doug Evans <dje@google.com>
1240 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
1243 2014-03-31 Doug Evans <dje@google.com>
1245 New option "set print symbol-loading".
1247 * solib.c (solib_read_symbols): Only print symbol loading messages
1249 (solib_add): If symbol loading is in "brief" mode, notify user
1250 symbols are being loaded.
1251 (reload_shared_libraries_1): Ditto.
1252 * symfile.c (print_symbol_loading_off): New static global.
1253 (print_symbol_loading_brief): New static global.
1254 (print_symbol_loading_full): New static global.
1255 (print_symbol_loading_enums): New static global.
1256 (print_symbol_loading): New static global.
1257 (print_symbol_loading_p): New function.
1258 (symbol_file_add_with_addrs): Only print symbol loading messages
1260 (_initialize_symfile): Register "print symbol-loading" set/show
1262 * symfile.h (print_symbol_loading_p): Declare.
1264 2014-03-30 Doug Evans <xdje42@gmail.com>
1266 * infrun.c (set_last_target_status): New function.
1267 (handle_inferior_event): Call it.
1269 2014-03-30 Doug Evans <xdje42@gmail.com>
1271 * inferior.h (enum stop_kind): Improve comment.
1273 2014-03-28 Joel Brobecker <brobecker@adacore.com>
1275 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
1276 a reference, strip the reference layer before calling
1277 the lang_ops value_has_mutated callback.
1279 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
1281 Remove some globals from our parser.
1282 * language.c (unk_lang_parser): Add "struct parser_state"
1284 * language.h (struct language_defn) <la_parser>: Likewise.
1285 * parse.c (expout, expout_size, expout_ptr): Remove variables.
1286 (initialize_expout): Add "struct parser_state" argument.
1287 Rewrite function to use the parser state.
1288 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
1289 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
1290 write_exp_elt_longcst, write_exp_elt_dblcst,
1291 write_exp_elt_decfloatcst, write_exp_elt_type,
1292 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1293 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
1294 write_dollar_variable): Likewise.
1295 (parse_exp_in_context_1): Use parser state.
1296 (insert_type_address_space): Add "struct parser_state" argument.
1298 (increase_expout_size): New function.
1299 * parser-defs.h: Forward declare "struct language_defn" and
1300 "struct parser_state".
1301 (expout, expout_size, expout_ptr): Remove extern declarations.
1302 (parse_gdbarch, parse_language): Rewrite macro declarations to
1303 accept the parser state.
1304 (struct parser_state): New struct.
1305 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
1306 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
1307 write_exp_elt_decfloatcst, write_exp_elt_type,
1308 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
1309 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
1310 write_exp_msymbol, write_dollar_variable,
1311 mark_struct_expression, insert_type_address_space): Add "struct
1312 parser_state" argument.
1313 (increase_expout_size): New function.
1314 * utils.c (do_clear_parser_state): New function.
1315 (make_cleanup_clear_parser_state): Likewise.
1316 * utils.h (make_cleanup_clear_parser_state): New function
1318 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
1319 Update calls to write_exp* in order to pass the parser state.
1320 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
1321 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
1322 (i386_stap_parse_special_token_three_arg_disp): Likewise.
1323 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
1324 * stap-probe.c (stap_parse_register_operand): Likewise.
1325 (stap_parse_single_operand): Likewise.
1326 (stap_parse_argument_1): Likewise.
1327 (stap_parse_argument): Use parser state.
1328 * stap-probe.h: Include "parser-defs.h".
1329 (struct stap_parse_info) <pstate>: New field.
1330 * c-exp.y (parse_type): Rewrite to use parser state.
1331 (yyparse): Redefine to c_parse_internal.
1332 (pstate): New global variable.
1333 (parse_number): Add "struct parser_state" argument.
1334 (write_destructor_name): Likewise.
1335 (type_exp): Update calls to write_exp* and similars in order to
1337 (exp1, exp, variable, qualified_name, space_identifier,
1338 typename, typebase): Likewise.
1339 (write_destructor_name, parse_number, lex_one_token,
1340 classify_name, classify_inner_name, c_parse): Add "struct
1341 parser_state" argument. Update function to use parser state.
1342 * c-lang.h: Forward declare "struct parser_state".
1343 (c_parse): Add "struct parser_state" argument.
1344 * ada-exp.y (parse_type): Rewrite macro to use parser state.
1345 (yyparse): Redefine macro to ada_parse_internal.
1346 (pstate): New variable.
1347 (write_int, write_object_renaming, write_var_or_type,
1348 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
1349 type_int, type_long, type_long_long, type_float, type_double,
1350 type_long_double, type_char, type_boolean, type_system_address):
1351 Add "struct parser_state" argument.
1352 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
1353 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
1354 var_or_type, aggregate, aggregate_component_list,
1355 positional_list, others, component_group,
1356 component_associations): Update calls to write_exp* and similar
1357 functions in order to use parser state.
1358 (ada_parse, write_var_from_sym, write_int,
1359 write_exp_op_with_string, write_object_renaming,
1360 find_primitive_type, write_selectors, write_ambiguous_var,
1361 write_var_or_type, write_name_assoc, type_int, type_long,
1362 type_long_long, type_float, type_double, type_long_double,
1363 type_char, type_boolean, type_system_address): Add "struct
1364 parser_state" argument. Adjust function to use parser state.
1365 * ada-lang.c (parse): Likewise.
1366 * ada-lang.h: Forward declare "struct parser_state".
1367 (ada_parse): Add "struct parser_state" argument.
1368 * ada-lex.l (processInt, processReal): Likewise. Adjust all
1369 calls to both functions.
1370 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
1372 (yyparse): Redefine macro to f_parse_internal.
1373 (pstate): New variable.
1374 (parse_number): Add "struct parser_state" argument.
1375 (type_exp, exp, subrange, typebase): Update calls to write_exp*
1376 and similars in order to use parser state.
1377 (parse_number): Adjust code to use parser state.
1379 (f_parse): New function.
1380 * f-lang.h: Forward declare "struct parser_state".
1381 (f_parse): Add "struct parser_state" argument.
1382 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
1384 (yyparse): Redefine macro for java_parse_internal.
1385 (pstate): New variable.
1386 (push_expression_name, push_expression_name, insert_exp): Add
1387 "struct parser_state" argument.
1388 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
1389 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
1390 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
1391 PostIncrementExpression, PostDecrementExpression,
1392 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
1393 UnaryExpressionNotPlusMinus, CastExpression,
1394 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
1395 RelationalExpression, EqualityExpression, AndExpression,
1396 ExclusiveOrExpression, InclusiveOrExpression,
1397 ConditionalAndExpression, ConditionalOrExpression,
1398 ConditionalExpression, Assignment, LeftHandSide): Update
1399 calls to write_exp* and similars in order to use parser state.
1400 (parse_number): Ajust code to use parser state.
1402 (java_parse): New function.
1403 (push_variable): Add "struct parser_state" argument. Adjust
1404 code to user parser state.
1405 (push_fieldnames, push_qualified_expression_name,
1406 push_expression_name, insert_exp): Likewise.
1407 * jv-lang.h: Forward declare "struct parser_state".
1408 (java_parse): Add "struct parser_state" argument.
1409 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
1411 (yyparse): Redefine macro to m2_parse_internal.
1412 (pstate): New variable.
1413 (type_exp, exp, fblock, variable, type): Update calls to
1414 write_exp* and similars to use parser state.
1416 (m2_parse): New function.
1417 * m2-lang.h: Forward declare "struct parser_state".
1418 (m2_parse): Add "struct parser_state" argument.
1419 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
1420 * objc-lang.h: Forward declare "struct parser_state".
1421 (end_msglist): Add "struct parser_state" argument.
1422 * p-exp.y (parse_type): Rewrite macro to use parser state.
1423 (yyparse): Redefine macro to pascal_parse_internal.
1424 (pstate): New variable.
1425 (parse_number): Add "struct parser_state" argument.
1426 (type_exp, exp1, exp, qualified_name, variable): Update calls to
1427 write_exp* and similars in order to use parser state.
1428 (parse_number, yylex): Adjust code to use parser state.
1429 (pascal_parse): New function.
1430 * p-lang.h: Forward declare "struct parser_state".
1431 (pascal_parse): Add "struct parser_state" argument.
1432 * go-exp.y (parse_type): Rewrite macro to use parser state.
1433 (yyparse): Redefine macro to go_parse_internal.
1434 (pstate): New variable.
1435 (parse_number): Add "struct parser_state" argument.
1436 (type_exp, exp1, exp, variable, type): Update calls to
1437 write_exp* and similars in order to use parser state.
1438 (parse_number, lex_one_token, classify_name, yylex): Adjust code
1439 to use parser state.
1440 (go_parse): Likewise.
1441 * go-lang.h: Forward declare "struct parser_state".
1442 (go_parse): Add "struct parser_state" argument.
1444 2014-03-27 Doug Evans <dje@google.com>
1446 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
1448 2014-03-27 Doug Evans <dje@google.com>
1450 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
1451 Remove argument abbrev_section. All callers updated.
1453 2014-03-27 Doug Evans <dje@google.com>
1455 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
1456 addr_base, ranges_base.
1458 2014-03-26 Keith Seitz <keiths@redhat.com>
1460 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
1461 types, not VAR_DOMAIN.
1463 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
1465 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
1467 * features/nios2-linux.c: Regenerated.
1468 * features/nios2.c: Regenerated.
1470 2014-03-25 Pedro Alves <palves@redhat.com>
1472 * cli/cli-script.c (script_from_file): Force the interpreter to
1475 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1477 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
1478 small stack allocation.
1480 2014-03-24 Tristan Gingold <gingold@adacore.com>
1482 * darwin-nat.c (exc_server): Remove unused prototype.
1483 (darwin_dump_message): Correctly display data on x86_64.
1484 (darwin_encode_reply): Fix style.
1485 Add comments and fix indentation.
1487 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
1489 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
1491 2014-03-22 Doug Evans <xdje42@gmail.com>
1493 * infcmd.c: Whitespace fixes.
1494 (interrupt_command): Merge two function comments into one.
1496 2014-03-22 Doug Evans <xdje42@gmail.com>
1498 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
1501 2014-03-22 Yao Qi <yao@codesourcery.com>
1503 * remote.c (target_read_live_memory): Remove.
1504 (memory_xfer_live_readonly_partial): Rename it to
1505 remote_xfer_live_readonly_partial. Remove argument 'object'.
1506 All callers updated. Call remote_read_bytes_1
1507 instead of target_read_live_memory.
1508 * tracepoint.c (set_traceframe_number): Remove.
1509 (make_cleanup_restore_traceframe_number): Likewise .
1510 * tracepoint.h (set_traceframe_number): Remove declaration.
1511 (make_cleanup_restore_traceframe_number): Likewise.
1513 2014-03-22 Yao Qi <yao@codesourcery.com>
1515 * remote.c (remote_read_bytes): Move code on reading from the
1517 (remote_read_bytes_1): ... here. New function.
1519 2014-03-22 Yao Qi <yao@codesourcery.com>
1521 * ctf.c (ctf_xfer_partial): Check the return value of
1522 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
1523 return TARGET_XFER_UNAVAILABLE.
1524 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
1525 * target.c (target_read_live_memory): Move it to remote.c.
1526 (memory_xfer_live_readonly_partial): Likewise.
1527 (memory_xfer_partial_1): Move some code to remote_read_bytes.
1528 * remote.c (target_read_live_memory): Moved from target.c.
1529 (memory_xfer_live_readonly_partial): Likewise.
1530 (remote_read_bytes): Factored out from
1531 memory_xfer_partial_1.
1533 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
1535 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
1538 2014-03-21 Pedro Alves <palves@redhat.com>
1540 * infrun.c (normal_stop): Extend comment.
1542 2014-03-21 Hui Zhu <hui@codesourcery.com>
1543 Pedro Alves <palves@redhat.com>
1545 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
1547 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1548 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1549 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1551 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
1553 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
1554 `z' formatted output modifier.
1556 2014-03-20 Tom Tromey <tromey@redhat.com>
1557 Sergio Durigan Junior <sergiodj@redhat.com>
1559 * probe.c (parse_probes): Turn assert into an ordinary error.
1560 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
1561 exceptions when parsing probes. Rearrange the code for clarity.
1563 2014-03-20 Tom Tromey <tromey@redhat.com>
1566 * top.c (execute_command): Only dispatch events if the command
1569 2014-03-20 Tom Tromey <tromey@redhat.com>
1572 * infcall.c: Include event-top.h.
1573 (run_inferior_call): Call async_disable_stdin if needed.
1575 2014-03-20 Pedro Alves <palves@redhat.com>
1577 * infrun.c (prepare_to_proceed): Delete.
1578 (thread_still_needs_step_over): New function.
1579 (find_thread_needs_step_over): New function.
1580 (proceed): If the current thread needs a step-over, set its
1581 steping_over_breakpoint flag. Adjust to use
1582 find_thread_needs_step_over instead of prepare_to_proceed.
1583 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
1584 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
1586 (switch_back_to_stepped_thread): Step over breakpoints of all
1587 threads not the stepping thread, before switching back to the
1590 2014-03-20 Pedro Alves <palves@redhat.com>
1592 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
1594 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
1595 * infrun.c (saved_singlestep_ptid)
1596 (stepping_past_singlestep_breakpoint): Delete.
1597 (resume): Remove stepping_past_singlestep_breakpoint handling.
1598 (proceed): Store the prev_pc of the stepping thread too.
1599 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
1601 (enum infwait_states): Delete infwait_thread_hop_state.
1602 (struct execution_control_state) <hit_singlestep_breakpoint>: New
1604 (handle_inferior_event): Adjust.
1605 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
1606 handling and the thread-hop code. Before removing single-step
1607 breakpoints, check whether the thread hit a single-step breakpoint
1608 of another thread. If it did, the trap is not a random signal.
1609 (switch_back_to_stepped_thread): If the event thread hit a
1610 single-step breakpoint, unblock it before switching to the
1611 stepping thread. Handle the case of the stepped thread having
1613 (keep_going): Handle the case of the current thread moving past a
1614 single-step breakpoint.
1616 2014-03-20 Pedro Alves <palves@redhat.com>
1619 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
1620 are being stepped over.
1621 (breakpoint_address_match): Make extern.
1622 * breakpoint.h (breakpoint_address_match): New declaration.
1623 * inferior.h (stepping_past_instruction_at): New declaration.
1624 * infrun.c (struct step_over_info): New type.
1625 (step_over_info): New global.
1626 (set_step_over_info, clear_step_over_info)
1627 (stepping_past_instruction_at): New functions.
1628 (handle_inferior_event): Clear the step-over info when
1629 trap_expected is cleared.
1630 (resume): Remove now stale comment.
1631 (clear_proceed_status): Clear step-over info.
1632 (proceed): Adjust step-over handling to set or clear the step-over
1633 info instead of removing all breakpoints.
1634 (handle_signal_stop): When setting up a thread-hop, don't remove
1636 (stop_stepping): Clear step-over info.
1637 (keep_going): Adjust step-over handling to set or clear step-over
1638 info and then always inserting breakpoints, instead of removing
1639 all breakpoints when stepping over one.
1641 2014-03-20 Pedro Alves <palves@redhat.com>
1643 * infrun.c (previous_inferior_ptid): Adjust comment.
1644 (deferred_step_ptid): Delete.
1645 (infrun_thread_ptid_changed, prepare_to_proceed)
1646 (init_wait_for_inferior): Adjust.
1647 (handle_signal_stop): Delete deferred_step_ptid handling.
1649 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1652 * defs.h (sync_quit_force_run): New declaration.
1653 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
1654 * event-top.c (async_sigterm_handler): New declaration.
1655 (async_sigterm_token): New variable.
1656 (async_init_signals): Create also async_sigterm_token.
1657 (async_sigterm_handler): New function.
1658 (sync_quit_force_run): New variable.
1659 (handle_sigterm): Replace quit_force call by other calls.
1660 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
1662 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
1664 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
1665 offset into SPE pseudo registers.
1667 2014-03-18 Pedro Alves <palves@redhat.com>
1670 * inferior.h (print_stop_event): Declare.
1671 * infrun.c (print_stop_event): New, factored out from ...
1672 (normal_stop): ... this.
1673 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
1674 of bpstat_print/print_stack_frame.
1676 2014-03-17 Tom Tromey <tromey@redhat.com>
1678 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
1680 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
1682 * ada-lang.c (decode_constrained_packed_array): Perform a
1683 minimal coercion for reference with coerce_ref instead of
1686 2014-03-17 Tristan Gingold <gingold@adacore.com>
1688 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
1689 (darwin_solib_create_inferior_hook): Emit a warning if version
1692 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
1694 * python/py-value.c (get_field_flag): Cast flag_name argument to
1695 PyObject_GetAttrString to support Python 2.4.
1697 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1699 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
1700 (Global Maintainers): Remove Jan Kratochvil.
1702 2014-03-14 Pedro Alves <palves@redhat.com>
1704 * inferior.h (terminal_ours_for_output): Rename to ...
1705 (child_terminal_ours_for_output): ... this.
1706 (terminal_save_ours): Rename to ...
1707 (child_terminal_save_ours): ... this.
1708 (terminal_ours): Rename to ...
1709 (child_terminal_ours): ... this.
1710 (terminal_inferior): Rename to ...
1711 (child_terminal_inferior): ... this.
1712 (terminal_init_inferior): Rename to ...
1713 (child_terminal_init_inferior): ... this.
1714 (terminal_init_inferior_with_pgrp): Rename to ...
1715 (child_terminal_init_inferior_with_pgrp): ... this.
1716 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
1717 (child_terminal_init_with_pgrp): ... this.
1718 (terminal_save_ours): Rename to ...
1719 (child_terminal_save_ours): ... this.
1720 (terminal_init_inferior): Rename to ...
1721 (child_terminal_init): ... this. Adjust.
1722 (terminal_inferior): Rename to ...
1723 (child_terminal_inferior): ... this.
1724 (terminal_ours_for_output): Rename to ...
1725 (child_terminal_ours_for_output): ... this. Adjust.
1726 (terminal_ours): Rename to ...
1727 (child_terminal_ours): ... this.
1728 (terminal_ours_1): Rename to ...
1729 (child_terminal_ours_1): ... this. Adjust.
1730 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
1731 * windows-nat.c (do_initial_windows_stuff): Adjust.
1732 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
1733 (gnu_terminal_init): ... this. Adjust.
1734 (gnu_target): Adjust.
1735 * inf-child.c (inf_child_target): Adjust.
1737 2014-03-13 Doug Evans <xdje42@gmail.com>
1740 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
1743 2014-03-13 Doug Evans <xdje42@gmail.com>
1745 * value.c (record_latest_value): Call release_value_or_incref
1746 instead of release_value.
1748 2014-03-13 Pedro Alves <palves@redhat.com>
1750 * procfs.c (procfs_target): Don't override to_shortname,
1751 to_longname or to_doc.
1753 2014-03-13 Pedro Alves <palves@redhat.com>
1755 * inf-child.c (inf_child_open, inf_child_target): Don't mention
1756 Unix in user visible strings.
1758 2014-03-12 Stan Shebs <stan@codesourcery.com>
1760 * gdbtypes.h: Annotate comments for Doxygen, add a page
1761 block comment with some general info.
1763 2014-03-12 Pedro Alves <palves@redhat.com>
1765 * infcmd.c (prepare_execution_command): New function, factored out
1766 from several execution commands.
1767 (run_command_1, continue_command, step_1, jump_command)
1768 (signal_command, until_command, advance_command, finish_command)
1769 (attach_command): Use prepare_execution_command.
1771 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
1773 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
1776 (struct arm_linux_thread_points): Removed.
1777 (struct arm_linux_process_info): New.
1778 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
1779 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
1780 (arm_linux_find_breakpoints_by_tid): Removed.
1781 (struct arch_lwp_info): New.
1782 (arm_linux_find_process_pid): New functions.
1783 (arm_linux_add_process): New functions.
1784 (arm_linux_process_info_get): New functions.
1785 (arm_linux_forget_process): New function.
1786 (arm_linux_get_debug_reg_state): New function.
1787 (struct update_registers_data): New.
1788 (update_registers_callback): New function.
1789 (arm_linux_insert_hw_breakpoint1): Updated.
1790 (arm_linux_remove_hw_breakpoint1): Updated.
1791 (arm_linux_insert_hw_breakpoint): Updated.
1792 (arm_linux_remove_hw_breakpoint): Updated.
1793 (arm_linux_insert_watchpoint): Updated.
1794 (arm_linux_remove_watchpoint): Updated.
1795 (arm_linux_new_thread): Updated.
1796 (arm_linux_prepare_to_resume): New function.
1797 (arm_linux_new_fork): New function.
1798 (_initialize_arm_linux_nat): Updated.
1800 2014-03-12 Pedro Alves <palves@redhat.com>
1802 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
1804 2014-03-12 Tom Tromey <tromey@redhat.com>
1806 * inf-child.c (return_zero): New function.
1807 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
1808 * aix-thread.c (aix_thread_inferior_created): New function.
1809 (aix_thread_attach): Remove.
1810 (init_aix_thread_ops): Don't set to_attach.
1811 (_initialize_aix_thread): Register inferior_created observer.
1812 * corelow.c (init_core_ops): Don't set to_attach or
1814 * exec.c (init_exec_ops): Don't set to_attach or
1816 * infcmd.c (run_command_1): Use find_run_target. Make direct
1818 (attach_command): Use find_attach_target. Make direct target
1820 * record-btrace.c (init_record_btrace_ops): Don't set
1822 * record-full.c (record_full_can_async_p, record_full_is_async_p):
1824 (init_record_full_ops, init_record_full_core_ops): Update. Don't
1825 set to_create_inferior.
1826 * target.c (complete_target_initialization): Add assertion.
1827 (target_create_inferior): Remove.
1828 (find_default_attach, find_default_create_inferior): Remove.
1829 (find_attach_target, find_run_target): New functions.
1830 (find_default_is_async_p, find_default_can_async_p)
1831 (target_supports_non_stop, target_attach): Remove.
1832 (init_dummy_target): Don't set to_create_inferior or
1833 to_supports_non_stop.
1834 * target.h (struct target_ops) <to_attach>: Add comment. Remove
1835 TARGET_DEFAULT_FUNC.
1836 <to_create_inferior>: Add comment.
1837 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
1838 TARGET_DEFAULT_RETURN.
1839 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
1840 (find_attach_target, find_run_target): Declare.
1841 (target_create_inferior): Remove.
1842 (target_has_execution_1): Update comment.
1843 (target_supports_non_stop): Remove.
1844 * target-delegates.c: Rebuild.
1846 2014-03-12 Pedro Alves <palves@redhat.com>
1848 * inf-child.h: Update comment to not mention Unix.
1850 2014-03-12 Pedro Alves <palves@redhat.com>
1852 * inf-child.c: Update top comment to not mention Unix. Add
1853 generic comment describing how this target is meant to be used.
1854 (inf_child_post_attach, inf_child_post_startup_inferior)
1855 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
1858 2014-03-12 Pedro Alves <palves@redhat.com>
1860 * nto-procfs.c: Include inf-child.h.
1861 (procfs_ops): Delete global.
1862 (procfs_can_run): Delete method.
1863 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
1864 target pointer instead of referencing procfs_ops.
1865 (procfs_prepare_to_store): Delete.
1866 (init_procfs_ops): Delete function.
1867 (procfs_target): New function, based on init_procfs_ops, but
1868 inherit inf_child_target.
1869 (_initialize_procfs): Use procfs_target.
1871 2014-03-12 Pedro Alves <palves@redhat.com>
1873 * windows-nat.c: Include inf-child.h.
1874 (windows_ops): Delete global.
1875 (windows_open, windows_prepare_to_store, windows_can_run): Delete
1877 (init_windows_ops): Delete function.
1878 (windows_target): New function, based on init_windows_ops, but
1879 inherit inf_child_target.
1880 (_initialize_windows_nat): Use windows_target. Install x86
1881 specific target methods here.
1883 2014-03-10 Doug Evans <xdje42@gmail.com>
1885 * guile/guile.c (call_initialize_gdb_module): New function.
1886 (initialize_guile): Replace call to scm_init_guile with call to
1889 2014-03-10 Joel Brobecker <brobecker@adacore.com>
1891 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
1892 in call to TYPE_CODE macro.
1894 2014-03-10 Jerome Guitton <guitton@adacore.com>
1896 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
1897 Resolve tagged types to full view.
1899 2014-03-10 Hui Zhu <hui@codesourcery.com>
1901 * target.h (target_insert_breakpoint): Remove "hardware" from its
1904 2014-03-07 Doug Evans <dje@google.com>
1906 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
1908 2014-03-07 Doug Evans <dje@google.com>
1910 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
1911 Remove unused local comp_dir_attr. Assert exactly one of
1912 stub_comp_unit_die, stub_comp_dir is non-NULL.
1914 2014-03-07 Joel Brobecker <brobecker@adacore.com>
1916 * target.h (complete_target_initialization, add_target):
1919 2014-03-07 Pedro Alves <palves@redhat.com>
1921 * go32-nat.c: Include inf-child.h.
1922 (go32_ops): Delete global.
1923 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
1925 (go32_create_inferior): Push the passed in target pointer instead
1926 of referencing go32_ops.
1927 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
1928 (go32_target): New function, based on init_go32_ops, but inherit
1930 (_initialize_go32_nat): Use go32_target. Move parts of
1933 2014-03-06 Joel Brobecker <brobecker@adacore.com>
1935 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
1936 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
1937 SYMBOL_VALUE_ADDRESS.
1938 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
1940 2014-03-06 Yao Qi <yao@codesourcery.com>
1942 * breakpoint.c (get_tracepoint_by_number): Remove argument
1943 optional_p. All callers updated. Adjust comments. Update
1945 * breakpoint.h (get_tracepoint_by_number): Update declaration.
1947 2014-03-06 Yao Qi <yao@codesourcery.com>
1949 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
1950 early if get_number returns zero. Use 'p' instead of 'args'.
1952 2014-03-06 Yao Qi <yao@codesourcery.com>
1954 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
1957 2014-03-06 Yao Qi <yao@codesourcery.com>
1959 PR breakpoints/16508
1960 * tracepoint.c (check_trace_running): New function.
1961 (trace_find_command): Move code to check_trace_running and
1962 call check_trace_running.
1963 (trace_find_pc_command): Likewise.
1964 (trace_find_tracepoint_command): Likewise.
1965 (trace_find_line_command): Likewise.
1966 (trace_find_range_command): Likewise.
1967 * tracepoint.h (check_trace_running): Likewise.
1968 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
1970 2014-03-06 Yao Qi <yao@codesourcery.com>
1972 * target.h (struct target_ops) <to_traceframe_info>: Use
1973 TARGET_DEFAULT_NORETURN (tcomplain ()).
1974 * target-delegates.c: Regenerated.
1976 2014-03-05 Pedro Alves <palves@redhat.com>
1979 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
1980 void. Update comment.
1981 (dcache_xfer_memory): Delete.
1982 (dcache_read_memory_partial): New, based on the read bits of
1984 (dcache_update): Add status parameter. Use ULONGEST for len, and
1985 adjust. Discard cache lines if the reason for the update was
1987 * dcache.h (dcache_xfer_memory): Delete declaration.
1988 (dcache_read_memory_partial): New declaration.
1989 (dcache_update): Update prototype.
1990 * target.c (raw_memory_xfer_partial): Update the dcache here.
1991 (memory_xfer_partial_1): Don't handle dcache writes here.
1993 2014-03-05 Mike Frysinger <vapier@gentoo.org>
1995 * remote-sim.c (gdbsim_load): Add const to prog.
1997 2014-03-03 Tom Tromey <tromey@redhat.com>
1999 * elfread.c (probe_key): Change to bfd_data.
2000 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2001 now per-BFD, not per-objfile.
2002 * stap-probe.c (stap_probe_destroy): Update comment.
2003 (handle_stap_probe): Allocate on the per-BFD obstack.
2005 2014-03-03 Tom Tromey <tromey@redhat.com>
2007 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2008 * breakpoint.c (create_longjmp_master_breakpoint): Use
2010 (add_location_to_breakpoint, bkpt_probe_insert_location)
2011 (bkpt_probe_remove_location): Update.
2012 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2013 * elfread.c (elf_symfile_relocate_probe): Remove.
2014 (elf_probe_fns): Update.
2015 (insert_exception_resume_breakpoint): Change type of "probe"
2016 parameter to bound_probe.
2017 (check_exception_resume): Update.
2018 * objfiles.c (objfile_relocate1): Don't relocate probes.
2019 * probe.c (bound_probe_s): New typedef.
2020 (parse_probes): Use get_probe_address. Set sal's objfile.
2021 (find_probe_by_pc): Return a bound_probe.
2022 (collect_probes): Return a VEC(bound_probe_s).
2023 (compare_probes): Update.
2024 (gen_ui_out_table_header_info): Change type of "probes"
2026 (info_probes_for_ops): Update.
2027 (get_probe_address): New function.
2028 (probe_safe_evaluate_at_pc): Update.
2029 * probe.h (struct probe_ops) <get_probe_address>: New field.
2030 <set_semaphore, clear_semaphore>: Add objfile parameter.
2031 (struct probe) <objfile>: Remove field.
2033 <address>: Update comment.
2034 (struct bound_probe): New.
2035 (find_probe_by_pc): Return a bound_probe.
2036 (get_probe_address): Declare.
2037 * solib-svr4.c (struct probe_and_action) <address>: New field.
2038 (hash_probe_and_action, equal_probe_and_action): Update.
2039 (register_solib_event_probe): Add address parameter.
2040 (solib_event_probe_at): Update.
2041 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2043 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2044 (stap_get_probe_address): New function.
2045 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2046 (compile_probe_arg): Update.
2047 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2049 (handle_stap_probe): Don't relocate the probe.
2050 (stap_relocate): Remove.
2051 (stap_gen_info_probes_table_values): Update.
2052 (stap_probe_ops): Remove stap_relocate.
2053 * symfile-debug.c (debug_sym_relocate_probe): Remove.
2054 (debug_sym_probe_fns): Update.
2055 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2056 * symtab.c (init_sal): Use memset.
2057 * symtab.h (struct symtab_and_line) <objfile>: New field.
2058 * tracepoint.c (start_tracing, stop_tracing): Update.
2060 2014-03-03 Tom Tromey <tromey@redhat.com>
2062 * probe.h (parse_probes, find_probe_by_pc)
2063 (find_probes_in_objfile): Fix comments.
2065 2014-03-02 Doug Evans <xdje42@gmail.com>
2067 * infrun.c (handle_signal_stop): Replace test for
2068 TARGET_WAITKIND_STOPPED with an assert.
2070 2014-03-02 Doug Evans <xdje42@gmail.com>
2072 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2074 2014-03-02 Doug Evans <xdje42@gmail.com>
2076 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2078 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2080 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
2082 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2084 * i386obsd-nat.c: Include "obsd-nat.h".
2085 (_initialize_i386obsd_nat): Call obsd_add_target instead of
2087 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
2089 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2091 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
2093 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2095 * mips64obsd-nat.c: Include "obsd-nath".
2096 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
2098 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2100 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2102 * amd64obsd-nat.c: Include "obsd-nat,h.
2103 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
2105 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
2107 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
2109 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
2110 (find_overload_match): Update call to find_oload_champ.
2111 (find_oload_champ_namespace_loop): Likewise
2113 2014-02-28 Mark Kettenis <kettenis@gnu.org>
2115 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
2117 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
2118 * config/sparc/obsd64.mh: New file.
2119 * sparc64obsd-nat.c: New file.
2121 * obsd-nat.h: New file.
2122 * obsd-nat.c: New file.
2123 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
2124 (ALLDEPFILES): Add obsd-nat.c.
2126 2014-02-28 Tom Tromey <tromey@redhat.com>
2128 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
2129 * cli-out.h (cli_ui_out_impl): Now const.
2130 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
2131 * ui-out.c (struct ui_out) <impl>: Now const.
2132 (default_ui_out_impl): Now const.
2133 (ui_out_new): Make 'impl' parameter const.
2134 * ui-out.h (ui_out_new): Update.
2136 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2138 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
2140 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2142 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
2144 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2146 Additional PR 8882 fix.
2147 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
2149 2014-02-27 Pedro Alves <palves@redhat.com>
2151 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
2154 2014-02-27 Pedro Alves <palves@redhat.com>
2157 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
2158 * nat/linux-waitpid.c: Include string.h.
2159 (status_to_str): Moved here and made extern.
2160 * nat/linux-waitpid.h (status_to_str): New declaration.
2162 2014-02-27 Hui Zhu <hui@codesourcery.com>
2165 * infrun.c (ptid_match): Move ...
2166 * common/ptid.c (ptid_match): ... here.
2167 * inferior.h (ptid_match): Move ...
2168 * common/ptid.h (ptid_match): ... here.
2170 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2172 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
2173 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
2176 2014-02-27 Mark Kettenis <kettenis@gnu.org>
2178 * obsd-tdep.c (obsd_auxv_parse): New function.
2179 (obsd_init_abi): Set auxv_parse.
2181 * gdbarch.sh (auxv_parse): New.
2182 * gdbarch.h: Regenerated.
2183 * gdbarch.c: Regenerated.
2184 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
2186 2014-02-26 Ludovic Courtès <ludo@gnu.org>
2188 * guile/scm-value.c (gdbscm_history_append_x): New function.
2189 (value_functions): Add it.
2191 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2193 * dwarf2read.c (attr_value_as_address): New function.
2194 (dwarf2_find_base_address, read_call_site_scope): Use
2195 attr_value_as_address in place of DW_ADDR.
2196 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
2197 the low and high addresses. Slight rework of the handling
2198 of the high pc being a constant form, and limit it to
2199 DWARF verson 4 or higher.
2200 (dwarf2_record_block_ranges): Likewise.
2201 (read_partial_die): Likewise.
2202 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
2204 2014-02-26 Tom Tromey <tromey@redhat.com>
2206 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
2208 2014-02-26 Tom Tromey <tromey@redhat.com>
2210 * elfread.c (elf_read_minimal_symbols): Return early if
2211 minimal symbols have already been read. Add "ei" parameter.
2212 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
2213 * minsyms.c (prim_record_minimal_symbol_full): Update.
2214 * objfiles.h (struct objstats) <n_minsyms>: Move...
2215 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
2216 * symmisc.c (print_objfile_statistics): Update.
2218 2014-02-26 Tom Tromey <tromey@redhat.com>
2220 * elfread.c (elf_read_minimal_symbols): New function, from
2222 (elf_symfile_read): Call it.
2224 2014-02-26 Tom Tromey <tromey@redhat.com>
2226 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
2227 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
2228 (lookup_minimal_symbol_solib_trampoline)
2229 (lookup_minimal_symbol_by_pc_section_1)
2230 (lookup_minimal_symbol_and_objfile): Update.
2231 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
2232 Don't allocate a minimal symbol if minsyms have already been read.
2233 (build_minimal_symbol_hash_tables): Update.
2234 (install_minimal_symbols): Do nothing if minsyms already read.
2235 Use the per-BFD obstack.
2236 (terminate_minimal_symbol_table): Use the per-BFD obstack.
2237 * objfiles.c (allocate_objfile): Call
2238 terminate_minimal_symbol_table later.
2239 (have_minimal_symbols): Update.
2240 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
2241 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
2242 Move from struct objfile.
2243 <minsyms_read>: New field.
2244 (struct objfile) <msymbols, minimal_symbol_count,
2245 msymbol_hash, msymbol_demangled_hash>: Move.
2246 (ALL_OBJFILE_MSYMBOLS): Update.
2247 * symfile.c (read_symbols): Set minsyms_read.
2248 (reread_symbols): Update.
2249 * symmisc.c (dump_objfile, dump_msymbols): Update.
2251 2014-02-26 Tom Tromey <tromey@redhat.com>
2253 * minsyms.c (msymbols_sort): Remove.
2254 * minsyms.h (msymbols_sort): Remove.
2255 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
2256 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
2257 * elfread.c (elf_symtab_read): Don't add section offsets.
2258 * xcoffread.c (record_minimal_symbol): Don't add section offset
2259 to minimal symbol address.
2260 * somread.c (text_offset, data_offset): Remove.
2261 (som_symtab_read): Don't add section offsets to minimal symbol
2263 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
2264 Don't add section offsets to minimal symbols.
2265 * coffread.c (coff_symtab_read): Don't add section offsets
2266 to minimal symbol addresses.
2267 * machoread.c (macho_symtab_add_minsym): Don't add section offset
2268 to minimal symbol addresses.
2269 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
2270 section offset to minimal symbol addresses.
2271 * mdebugread.c (parse_partial_symbols): Don't add section
2272 offset to minimal symbol addresses.
2273 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
2274 offset to minimal symbol addresses.
2276 2014-02-26 Tom Tromey <tromey@redhat.com>
2278 * ada-lang.c (ada_main_name): Update.
2279 (ada_add_standard_exceptions): Update.
2280 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2281 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2282 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
2283 * auxv.c (ld_so_xfer_auxv): Update.
2284 * avr-tdep.c (avr_scan_prologue): Update.
2285 * ax-gdb.c (gen_var_ref): Update.
2286 * blockframe.c (get_pc_function_start)
2287 (find_pc_partial_function_gnu_ifunc): Update.
2288 * breakpoint.c (create_overlay_event_breakpoint)
2289 (create_longjmp_master_breakpoint)
2290 (create_std_terminate_master_breakpoint)
2291 (create_exception_master_breakpoint): Update.
2292 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2293 * c-valprint.c (c_val_print): Update.
2294 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2295 * common/agent.c (agent_look_up_symbols): Update.
2296 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2297 * dwarf2loc.c (call_site_to_target_addr): Update.
2298 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
2299 * elfread.c (elf_gnu_ifunc_record_cache)
2300 (elf_gnu_ifunc_resolve_by_got): Update.
2301 * findvar.c (default_read_var_value): Update.
2302 * frame.c (inside_main_func): Update.
2303 * frv-tdep.c (frv_frame_this_id): Update.
2304 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2305 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2307 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
2308 (hppa_hpux_find_dummy_bpaddr): Update.
2309 * hppa-tdep.c (hppa_symbol_address): Update.
2310 * infcmd.c (until_next_command): Update.
2311 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
2313 * linespec.c (minsym_found, add_minsym): Update.
2314 * linux-nat.c (get_signo): Update.
2315 * linux-thread-db.c (inferior_has_bug): Update.
2316 * m32c-tdep.c (m32c_return_value)
2317 (m32c_m16c_address_to_pointer): Update.
2318 * m32r-tdep.c (m32r_frame_this_id): Update.
2319 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2320 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2321 * maint.c (maintenance_translate_address): Update.
2322 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
2323 (frob_address): New function.
2324 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
2325 frob_address. Rename parameter to "pc_in".
2326 (compare_minimal_symbols, compact_minimal_symbols): Use raw
2328 (find_solib_trampoline_target, minimal_symbol_upper_bound):
2330 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2331 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
2332 * objc-lang.c (find_objc_msgsend): Update.
2333 * objfiles.c (objfile_relocate1): Update.
2334 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2335 * p-valprint.c (pascal_val_print): Update.
2336 * parse.c (write_exp_msymbol): Update.
2337 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
2338 (ppc_elfv2_skip_entrypoint): Update.
2339 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2340 * printcmd.c (build_address_symbolic, msym_info)
2341 (address_info): Update.
2342 * proc-service.c (ps_pglobal_lookup): Update.
2343 * psymtab.c (find_pc_sect_psymtab_closer)
2344 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
2345 Change msymbol parameter to bound_minimal_symbol.
2346 * ravenscar-thread.c (get_running_thread_id): Update.
2347 * remote.c (remote_check_symbols): Update.
2348 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
2350 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2351 * solib-dsbt.c (lm_base): Update.
2352 * solib-frv.c (lm_base, main_got): Update.
2353 * solib-irix.c (locate_base): Update.
2354 * solib-som.c (som_solib_create_inferior_hook)
2355 (link_map_start): Update.
2356 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
2357 * solib-svr4.c (elf_locate_base, enable_break): Update.
2358 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2359 (flush_ea_cache): Update.
2360 * stabsread.c (define_symbol, scan_file_globals): Update.
2361 * stack.c (find_frame_funname): Update.
2362 * symfile-debug.c (debug_qf_expand_symtabs_matching)
2363 (debug_qf_find_pc_sect_symtab): Update.
2364 * symfile.c (simple_read_overlay_table)
2365 (simple_overlay_update): Update.
2366 * symfile.h (struct quick_symbol_functions)
2367 <find_pc_sect_symtab>: Change type of msymbol to
2368 bound_minimal_symbol.
2369 * symmisc.c (dump_msymbols): Update.
2370 * symtab.c (find_pc_sect_symtab_via_partial)
2371 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
2372 (search_symbols, print_msymbol_info): Update.
2373 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
2374 (MSYMBOL_VALUE_ADDRESS): Redefine.
2375 (BMSYMBOL_VALUE_ADDRESS): New macro.
2376 * tracepoint.c (scope_info): Update.
2377 * tui/tui-disasm.c (tui_find_disassembly_address)
2378 (tui_get_begin_asm_address): Update.
2379 * valops.c (find_function_in_inferior): Update.
2380 * value.c (value_static_field, value_fn_field): Update.
2382 2014-02-26 Tom Tromey <tromey@redhat.com>
2384 * ada-lang.c (ada_update_initial_language): Update.
2385 (ada_main_name, ada_has_this_exception_support): Update.
2386 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
2387 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2388 * arm-tdep.c (arm_skip_stub): Update.
2389 * auxv.c (ld_so_xfer_auxv): Update.
2390 * avr-tdep.c (avr_scan_prologue): Update.
2391 * ax-gdb.c (gen_var_ref): Update.
2392 * breakpoint.c (struct breakpoint_objfile_data)
2393 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
2394 type to bound_minimal_symbol.
2395 (create_overlay_event_breakpoint)
2396 (create_longjmp_master_breakpoint)
2397 (create_std_terminate_master_breakpoint)
2398 (create_exception_master_breakpoint): Update.
2399 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2400 * c-exp.y (classify_name): Update.
2401 * coffread.c (coff_symfile_read): Update.
2402 * common/agent.c (agent_look_up_symbols): Update.
2403 * d-lang.c (d_main_name): Update.
2404 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
2405 * dec-thread.c (enable_dec_thread): Update.
2406 * dwarf2loc.c (call_site_to_target_addr): Update.
2407 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
2408 * eval.c (evaluate_subexp_standard): Update.
2409 * findvar.c (struct minsym_lookup_data) <result>: Change type
2410 to bound_minimal_symbol.
2412 (minsym_lookup_iterator_cb, default_read_var_value): Update.
2413 * frame.c (inside_main_func): Update.
2414 * frv-tdep.c (frv_frame_this_id): Update.
2415 * gcore.c (call_target_sbrk): Update.
2416 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2417 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
2419 * go-lang.c (go_main_name): Update.
2420 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
2421 (hppa_hpux_find_import_stub_for_addr): Update.
2422 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
2423 Update. Change return type.
2424 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
2426 * jit.c (jit_breakpoint_re_set_internal): Update.
2427 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
2429 * linux-nat.c (get_signo): Update.
2430 * linux-thread-db.c (inferior_has_bug): Update
2431 * m32c-tdep.c (m32c_return_value)
2432 (m32c_m16c_address_to_pointer): Update.
2433 * m32r-tdep.c (m32r_frame_this_id): Update.
2434 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2435 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2436 * minsyms.c (lookup_minimal_symbol_internal): Rename to
2437 lookup_minimal_symbol. Change return type.
2438 (lookup_minimal_symbol): Remove.
2439 (lookup_bound_minimal_symbol): Update.
2440 (lookup_minimal_symbol_text): Change return type.
2441 (lookup_minimal_symbol_solib_trampoline): Change return type.
2442 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
2443 (lookup_minimal_symbol_solib_trampoline): Change return type.
2444 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2445 * objc-lang.c (lookup_objc_class, lookup_child_selector)
2446 (value_nsstring, find_imps): Update.
2447 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2448 * p-lang.c (pascal_main_name): Update.
2449 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
2450 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2451 * proc-service.c (ps_pglobal_lookup): Update.
2452 * ravenscar-thread.c (get_running_thread_msymbol): Change
2454 (has_ravenscar_runtime, get_running_thread_id): Update.
2455 * remote.c (remote_check_symbols): Update.
2456 * sol-thread.c (ps_pglobal_lookup): Update.
2457 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2458 * solib-dsbt.c (lm_base): Update.
2459 * solib-frv.c (lm_base, frv_relocate_section_addresses):
2461 * solib-irix.c (locate_base): Update.
2462 * solib-som.c (som_solib_create_inferior_hook)
2463 (som_solib_desire_dynamic_linker_symbols, link_map_start):
2465 * solib-spu.c (spu_enable_break): Update.
2466 * solib-svr4.c (elf_locate_base, enable_break): Update.
2467 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
2468 (flush_ea_cache): Update.
2469 * stabsread.c (define_symbol): Update.
2470 * symfile.c (simple_read_overlay_table): Update.
2471 * symtab.c (find_pc_sect_line): Update.
2472 * tracepoint.c (scope_info): Update.
2473 * tui-disasm.c (tui_get_begin_asm_address): Update.
2474 * value.c (value_static_field): Update.
2476 2014-02-26 Tom Tromey <tromey@redhat.com>
2478 * minsyms.c (prim_record_minimal_symbol_full): Use
2479 SET_MSYMBOL_VALUE_ADDRESS.
2480 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
2481 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
2482 SET_MSYMBOL_VALUE_ADDRESS.
2483 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
2484 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
2486 2014-02-26 Tom Tromey <tromey@redhat.com>
2488 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
2489 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
2490 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
2491 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
2492 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
2493 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
2494 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
2495 * ada-lang.c (ada_main_name): Update.
2496 (ada_lookup_simple_minsym): Update.
2497 (ada_make_symbol_completion_list): Update.
2498 (ada_add_standard_exceptions): Update.
2499 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
2500 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
2501 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
2502 * arm-tdep.c (skip_prologue_function): Update.
2503 (arm_skip_stack_protector, arm_skip_stub): Update.
2504 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
2505 (arm_wince_skip_main_prologue): Update.
2506 * auxv.c (ld_so_xfer_auxv): Update.
2507 * avr-tdep.c (avr_scan_prologue): Update.
2508 * ax-gdb.c (gen_var_ref): Update.
2509 * block.c (call_site_for_pc): Update.
2510 * blockframe.c (get_pc_function_start): Update.
2511 (find_pc_partial_function_gnu_ifunc): Update.
2512 * breakpoint.c (create_overlay_event_breakpoint): Update.
2513 (create_longjmp_master_breakpoint): Update.
2514 (create_std_terminate_master_breakpoint): Update.
2515 (create_exception_master_breakpoint): Update.
2516 (resolve_sal_pc): Update.
2517 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
2518 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
2520 * c-valprint.c (c_val_print): Update.
2521 * coff-pe-read.c (add_pe_forwarded_sym): Update.
2522 * coffread.c (coff_symfile_read): Update.
2523 * common/agent.c (agent_look_up_symbols): Update.
2524 * dbxread.c (find_stab_function_addr): Update.
2525 (end_psymtab): Update.
2526 * dwarf2loc.c (call_site_to_target_addr): Update.
2527 (func_verify_no_selftailcall): Update.
2528 (tailcall_dump): Update.
2529 (call_site_find_chain_1): Update.
2530 (dwarf_expr_reg_to_entry_parameter): Update.
2531 * elfread.c (elf_gnu_ifunc_record_cache): Update.
2532 (elf_gnu_ifunc_resolve_by_got): Update.
2533 * f-valprint.c (info_common_command): Update.
2534 * findvar.c (read_var_value): Update.
2535 * frame.c (get_prev_frame_1): Update.
2536 (inside_main_func): Update.
2537 * frv-tdep.c (frv_skip_main_prologue): Update.
2538 (frv_frame_this_id): Update.
2539 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
2540 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
2541 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
2542 (gnuv3_skip_trampoline): Update.
2543 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
2544 (hppa64_hpux_in_solib_call_trampoline): Update.
2545 (hppa_hpux_skip_trampoline_code): Update.
2546 (hppa64_hpux_search_dummy_call_sequence): Update.
2547 (hppa_hpux_find_import_stub_for_addr): Update.
2548 (hppa_hpux_find_dummy_bpaddr): Update.
2549 * hppa-tdep.c (hppa_symbol_address)
2550 (hppa_lookup_stub_minimal_symbol): Update.
2551 * i386-tdep.c (i386_skip_main_prologue): Update.
2552 (i386_pe_skip_trampoline_code): Update.
2553 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
2554 * infcall.c (get_function_name): Update.
2555 * infcmd.c (until_next_command): Update.
2556 * jit.c (jit_breakpoint_re_set_internal): Update.
2557 (jit_inferior_init): Update.
2558 * linespec.c (minsym_found): Update.
2559 (add_minsym): Update.
2560 * linux-fork.c (info_checkpoints_command): Update.
2561 * linux-nat.c (get_signo): Update.
2562 * linux-thread-db.c (inferior_has_bug): Update.
2563 * m32c-tdep.c (m32c_return_value): Update.
2564 (m32c_m16c_address_to_pointer): Update.
2565 (m32c_m16c_pointer_to_address): Update.
2566 * m32r-tdep.c (m32r_frame_this_id): Update.
2567 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
2568 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
2569 * maint.c (maintenance_translate_address): Update.
2570 * minsyms.c (add_minsym_to_hash_table): Update.
2571 (add_minsym_to_demangled_hash_table): Update.
2572 (msymbol_objfile): Update.
2573 (lookup_minimal_symbol): Update.
2574 (iterate_over_minimal_symbols): Update.
2575 (lookup_minimal_symbol_text): Update.
2576 (lookup_minimal_symbol_by_pc_name): Update.
2577 (lookup_minimal_symbol_solib_trampoline): Update.
2578 (lookup_minimal_symbol_by_pc_section_1): Update.
2579 (lookup_minimal_symbol_and_objfile): Update.
2580 (prim_record_minimal_symbol_full): Update.
2581 (compare_minimal_symbols): Update.
2582 (compact_minimal_symbols): Update.
2583 (build_minimal_symbol_hash_tables): Update.
2584 (install_minimal_symbols): Update.
2585 (terminate_minimal_symbol_table): Update.
2586 (find_solib_trampoline_target): Update.
2587 (minimal_symbol_upper_bound): Update.
2588 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
2589 * mips-tdep.c (mips_stub_frame_sniffer): Update.
2590 (mips_skip_pic_trampoline_code): Update.
2591 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
2592 * objc-lang.c (selectors_info): Update.
2593 (classes_info): Update.
2594 (find_methods): Update.
2595 (find_imps): Update.
2596 (find_objc_msgsend): Update.
2597 * objfiles.c (objfile_relocate1): Update.
2598 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
2599 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
2600 * p-valprint.c (pascal_val_print): Update.
2601 * parse.c (write_exp_msymbol): Update.
2602 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
2603 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
2604 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
2605 * printcmd.c (build_address_symbolic): Update.
2607 (address_info): Update.
2608 * proc-service.c (ps_pglobal_lookup): Update.
2609 * psymtab.c (find_pc_sect_psymtab_closer): Update.
2610 (find_pc_sect_psymtab): Update.
2611 * python/py-framefilter.c (py_print_frame): Update.
2612 * ravenscar-thread.c (get_running_thread_id): Update.
2613 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
2615 * remote.c (remote_check_symbols): Update.
2616 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
2617 (rs6000_skip_trampoline_code): Update.
2618 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
2619 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
2620 * solib-dsbt.c (lm_base): Update.
2621 * solib-frv.c (lm_base): Update.
2623 * solib-irix.c (locate_base): Update.
2624 * solib-som.c (som_solib_create_inferior_hook): Update.
2625 (som_solib_desire_dynamic_linker_symbols): Update.
2626 (link_map_start): Update.
2627 * solib-spu.c (spu_enable_break): Update.
2628 (ocl_enable_break): Update.
2629 * solib-svr4.c (elf_locate_base): Update.
2630 (enable_break): Update.
2631 * spu-tdep.c (spu_get_overlay_table): Update.
2632 (spu_catch_start): Update.
2633 (flush_ea_cache): Update.
2634 * stabsread.c (define_symbol): Update.
2635 (scan_file_globals): Update.
2636 * stack.c (find_frame_funname): Update.
2637 (frame_info): Update.
2638 * symfile.c (simple_read_overlay_table): Update.
2639 (simple_overlay_update): Update.
2640 * symmisc.c (dump_msymbols): Update.
2641 * symtab.c (fixup_section): Update.
2642 (find_pc_sect_line): Update.
2643 (skip_prologue_sal): Update.
2644 (search_symbols): Update.
2645 (print_msymbol_info): Update.
2646 (rbreak_command): Update.
2647 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
2648 (completion_list_objc_symbol): Update.
2649 (default_make_symbol_completion_list_break_on): Update.
2650 * tracepoint.c (scope_info): Update.
2651 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
2652 (tui_get_begin_asm_address): Update.
2653 * valops.c (find_function_in_inferior): Update.
2654 * value.c (value_static_field): Update.
2655 (value_fn_field): Update.
2657 2014-02-26 Tom Tromey <tromey@redhat.com>
2659 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
2660 bound minimal symbols. Move code that knows about minsym
2662 * minsyms.c (minimal_symbol_upper_bound): ... here. New
2664 * minsyms.h (minimal_symbol_upper_bound): Declare.
2665 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
2666 minimal_symbol_upper_bound.
2668 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2670 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
2671 Use the type's name if its basic type does not have a tag.
2673 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2675 * dwarf2read.c (read_subrange_type): Add comment.
2677 2014-02-27 Joel Brobecker <brobecker@adacore.com>
2679 * dwarf2read.c (update_enumeration_type_from_children): New
2680 function, mostly extracted from process_structure_scope.
2681 (read_enumeration_type): Call update_enumeration_type_from_children.
2682 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
2683 and flag_flag_enum fields.
2685 2014-02-26 Pedro Alves <palves@redhat.com>
2687 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
2688 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
2689 to_xfer_partial method.
2691 2014-02-26 Pedro Alves <palves@redhat.com>
2693 * target.c (complete_target_initialization): Don't install
2694 default_xfer_partial as to_xfer_partial hook.
2696 (update_current_target): Don't INHERIT nor de_fault
2697 deprecated_xfer_memory. Delete de_fault macro.
2698 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
2699 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
2700 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
2703 2014-02-26 Pedro Alves <palves@redhat.com>
2705 * go32-nat.c (my_write_child): New function.
2706 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
2707 (go32_xfer_partial): New function.
2708 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
2709 Instead install a to_xfer_partial hook.
2711 2014-02-26 Pedro Alves <palves@redhat.com>
2713 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
2714 to_xfer_partial helper. Rewrite.
2715 (procfs_xfer_partial): New function.
2716 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
2717 Install a to_xfer_partial hook.
2719 2014-02-26 Pedro Alves <palves@redhat.com>
2721 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
2722 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
2723 (m32r_xfer_partial): New function.
2724 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
2725 Install a to_xfer_partial hook.
2727 2014-02-26 Pedro Alves <palves@redhat.com>
2729 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
2731 (mips_xfer_partial): New function.
2732 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
2733 hook. Install a to_xfer_partial hook.
2735 2014-02-26 Joel Brobecker <brobecker@adacore.com>
2737 * gdbtypes.h (create_array_type_with_stride): Add declaration.
2738 * gdbtypes.c (create_array_type_with_stride): New function,
2739 renaming create_array_type, but with an added parameter
2740 called "bit_stride".
2741 (create_array_type): Re-implement using
2742 create_array_type_with_stride.
2743 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
2744 and DW_AT_bit_stride attributes.
2746 2014-02-26 Pedro Alves <palves@redhat.com>
2748 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
2749 task-specific breakpoints.
2751 2014-02-25 Pedro Alves <palves@redhat.com>
2753 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
2754 handling of object == TARGET_OBJECT_UNWIND_TABLE.
2756 2014-02-25 Stan Shebs <stan@codesourcery.com>
2758 * defs.h: Annotate comments for Doxygen.
2760 2014-02-25 Tom Tromey <tromey@redhat.com>
2762 * target.h (target_ignore): Don't declare.
2763 * target.c (target_ignore): Remove.
2765 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2768 * auto-load.c (auto_load_objfile_script_1): Change filename to
2771 2014-02-25 Joel Brobecker <brobecker@adacore.com>
2773 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
2774 documentation. Adjust prototype to match the target_ops
2775 to_xfer_partial method. Adjust implementation accordingly.
2777 2014-02-25 Hui Zhu <hui@codesourcery.com>
2779 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
2782 2014-02-25 Kevin Buettner <kevinb@redhat.com>
2784 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
2785 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
2786 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
2787 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
2788 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
2789 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
2790 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
2791 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
2793 (rl78_register_type): Use a data pointer type for SP and
2794 new pseudo registers mentioned above. Use a 16 bit integer
2795 type for all other register pairs.
2796 (rl78_register_name, rl78_g10_register_name): Update for
2797 new pseudo registers.
2798 (rl78_pseudo_register_read): Likewise.
2799 (rl78_pseudo_register_write): Likewise.
2800 (rl78_dwarf_reg_to_regnum): Return register numbers representing
2801 to the newly added pseudo registers.
2803 2014-02-24 Doug Evans <dje@google.com>
2805 * value.c (record_latest_value): Fix comment.
2806 * printcmd.c (print_command_1): Remove code to handle -1 return from
2807 record_latest_value.
2809 2014-02-24 Pedro Alves <palves@redhat.com>
2811 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
2812 deprecated_xfer_memory hook.
2813 (procfs_xfer_partial): Call procfs_xfer_memory instead
2814 of the deprecated_xfer_memory target hook.
2815 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
2818 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
2820 * windows-nat.c (windows_xfer_shared_libraries): Return
2821 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
2822 requested object is TARGET_OBJECT_LIBRARIES.
2824 2014-02-24 Yao Qi <yao@codesourcery.com>
2826 * target.h (enum target_xfer_status)
2827 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
2828 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
2830 * corefile.c (memory_error_message): User updated.
2831 * exec.c (section_table_read_available_memory): Likewise.
2832 * record-btrace.c (record_btrace_xfer_partial): Likewise.
2833 * target.c (target_xfer_status_to_string): Likewise.
2834 (raw_memory_xfer_partial): Likewise.
2835 (memory_xfer_partial_1, target_xfer_partial): Likewise.
2836 * valops.c (read_value_memory): Likewise.
2837 * exec.h: Update comments.
2839 2014-02-24 Yao Qi <yao@codesourcery.com>
2841 * target.c (target_xfer_status_to_string): Rename argument err
2843 * target.h (target_xfer_status_to_string): Update declaration.
2844 Replace target_xfer_error_to_string with
2845 target_xfer_status_to_string in comment.
2847 2014-02-24 Yao Qi <yao@codesourcery.com>
2849 * mips-linux-nat.c (super_close): Update its type.
2850 (mips_linux_close): Pass 'self' to super_close.
2852 2014-02-24 Yao Qi <yao@codesourcery.com>
2854 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
2855 * corefile.c (read_memory): Adjusted.
2856 * target.c (target_write_with_progress): Adjusted.
2858 2014-02-23 Yao Qi <yao@codesourcery.com>
2862 2013-10-25 Yao Qi <yao@codesourcery.com>
2864 * remote.c (remote_traceframe_info): Return early if
2865 traceframe is not selected.
2867 2013-07-19 Yao Qi <yao@codesourcery.com>
2869 * target.c (update_current_target): Change the default action
2870 of 'to_traceframe_info' from tcomplain to return_zero.
2871 * target.h (struct target_ops) <to_traceframe_info>: Add more
2874 2014-02-23 Yao Qi <yao@codesourcery.com>
2876 * valops.c (read_value_memory): Rewrite it. Call
2877 target_xfer_partial in a loop.
2878 * exec.h (section_table_available_memory): Remove declaration.
2879 Move comments to ...
2880 * exec.c (section_table_available_memory): ... here. Make it
2883 2014-02-23 Yao Qi <yao@codesourcery.com>
2885 * exec.c (section_table_read_available_memory): New function.
2886 * exec.h (section_table_read_available_memory): Declare.
2887 * ctf.c (ctf_xfer_partial): Call
2888 section_table_read_available_memory.
2889 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2891 2014-02-23 Yao Qi <yao@codesourcery.com>
2893 * ctf.c (ctf_xfer_partial): Move code to ...
2894 * exec.c (exec_read_partial_read_only): ... it. New function.
2895 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2896 * tracefile.c: Include "exec.h".
2897 * exec.h (exec_read_partial_read_only): Declare.
2899 2014-02-23 Yao Qi <yao@codesourcery.com>
2901 * tracefile-tfile.c (tfile_has_all_memory): Remove.
2902 (tfile_has_memory): Remove.
2903 (init_tfile_ops): Don't set fields to_has_all_memory and
2904 to_has_memory of tfile_ops.
2905 * tracefile.c (tracefile_has_all_memory): New function.
2906 (tracefile_has_memory): New function.
2907 (init_tracefile_ops): Initialize fields to_has_all_memory and
2908 to_has_memory of 'ops'.
2910 2014-02-23 Yao Qi <yao@codesourcery.com>
2912 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
2913 (ctf_thread_alive, ctf_get_trace_status): Remove.
2914 (init_ctf_ops): Don't set some fields of ctf_ops. Call
2916 * tracefile-tfile.c (tfile_get_trace_status): Remove.
2917 (tfile_has_stack, tfile_has_registers): Remove.
2918 (tfile_thread_alive): Remove.
2919 (init_tfile_ops): Don't set some fields of tfile_ops. Call
2921 * tracefile.c (tracefile_has_stack): New function.
2922 (tracefile_has_registers): New function.
2923 (tracefile_thread_alive): New function.
2924 (tracefile_get_trace_status): New function.
2925 (init_tracefile_ops): New function.
2926 * tracefile.h (init_tracefile_ops): Declare.
2928 2014-02-23 Yao Qi <yao@codesourcery.com>
2930 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
2931 (O_LARGEFILE): Likewise.
2932 (tfile_ops): Likewise.
2933 (TRACE_HEADER_SIZE): Likewise.
2934 (trace_fd, trace_frames_offset, cur_offset): Likewise.
2935 (cur_data_size): Likewise.
2936 (tfile_read, tfile_open, tfile_interp_line): Likewise.
2937 (tfile_close, tfile_files_info): Likewise.
2938 (tfile_get_trace_status): Likewise.
2939 (tfile_get_tracepoint_status): Likewise.
2940 (tfile_get_traceframe_address): Likewise.
2941 (tfile_trace_find, match_blocktype): Likewise.
2942 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
2943 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
2944 (tfile_get_trace_state_variable_value): Likewise.
2945 (tfile_has_all_memory, tfile_has_memory): Likewise.
2946 (tfile_has_stack, tfile_has_registers): Likewise.
2947 (tfile_thread_alive, build_traceframe_info): Likewise.
2948 (tfile_traceframe_info, init_tfile_ops): Likewise.
2949 (_initialize_tracepoint): Don't call init_tfile_ops
2950 and add_target_with_completer.
2951 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
2952 exec.h, completer.h and filenames.h.
2953 (_initialize_tracefile_tfile): New function.
2955 2014-02-23 Yao Qi <yao@codesourcery.com>
2957 * Makefile.in (REMOTE_OBS): Append tracefile.o and
2959 (HFILES_NO_SRCDIR): Add tracefile.h.
2960 * ctf.c: Include "tracefile.h".
2961 * tracefile.h: New file.
2962 * tracefile.c: New file
2963 * tracefile-tfile.c: New file.
2964 * tracepoint.c: Include "tracefile.h".
2965 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
2966 (stop_reason_names): Add const.
2967 (trace_file_writer_xfree): Move it to tracefile.c.
2968 (trace_save, trace_save_command, trace_save_tfile): Likewise.
2969 (trace_save_ctf): Likewise.
2970 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
2971 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
2972 (tfile_write_header, tfile_write_regblock_type): Likewise.
2973 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
2974 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
2975 (tfile_write_raw_data, tfile_end): Likewise.
2976 (tfile_trace_file_writer_new): Likewise.
2977 (free_uploaded_tp): Make it extern.
2978 (free_uploaded_tsv): Make it extern.
2979 (_initialize_tracepoint): Move code to register command 'tsave'
2981 * tracepoint.h (stop_reason_names): Declare.
2982 (struct trace_frame_write_ops): Move it to tracefile.h.
2983 (struct trace_file_write_ops): Likewise.
2984 (struct trace_file_writer): Likewise.
2985 (free_uploaded_tsvs, free_uploaded_tps): Declare.
2987 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2990 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
2992 (get_cores_used_by_process): New parameter num_cores, use it.
2993 (linux_xfer_osdata_processes): Pass num_cores to it.
2994 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
2997 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
2999 * target.c (memory_xfer_partial): Fix length arg in call to
3000 breakpoint_xfer_memory.
3002 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3005 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3006 number comes after the + or - signs. Adjust length of register
3007 name to be extracted.
3009 2014-02-20 Tom Tromey <tromey@redhat.com>
3011 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3012 (ada_varobj_ops): Mark "extern".
3014 2014-02-20 Tom Tromey <tromey@redhat.com>
3016 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3018 2014-02-20 Doug Evans <xdje42@gmail.com>
3020 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3021 All callers updated.
3022 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3023 All callers updated.
3024 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3025 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3027 2014-02-20 lin zuojian <manjian2006@gmail.com>
3028 Joel Brobecker <brobecker@adacore.com>
3029 Doug Evans <xdje42@gmail.com>
3032 * dwarf2read.c (struct die_info): New member in_process.
3033 (reset_die_in_process): New function.
3034 (process_die): Set it at the start, reset when returning.
3035 (inherit_abstract_dies): Only call process_die if origin_child_die
3036 not already being processed.
3038 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3040 * windows-nat.c (handle_unload_dll): Add function documentation.
3041 (do_initial_windows_stuff): Add comment explaining why we wait
3042 until after inferior initialization has finished before
3043 processing all DLLs.
3045 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3047 * windows-nat.c (get_module_name): Delete.
3048 (windows_get_exec_module_filename): New function, mostly
3049 inspired from get_module_name.
3050 (windows_pid_to_exec_file): Replace call to get_module_name
3051 by call to windows_get_exec_module_filename.
3053 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3055 * windows-nat.c (handle_load_dll): Rewrite this function's
3056 introductory comment. Remove code using get_module_name
3057 to get the DLL's name.
3059 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3061 * windows-nat.c (get_windows_debug_event): Ignore
3062 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3063 if windows_initialization_done == 0.
3064 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3065 Adjust implementation to always load all DLLs.
3066 (do_initial_windows_stuff): Replace call to
3067 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3069 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3071 * windows-nat.c (_initialize_windows_nat): Deprecate the
3072 "dll-symbols" command. Turn the "add-shared-symbol-files"
3073 and "assf" aliases into commands, and deprecate them as well.
3074 * NEWS: Add entry explaining that "dll-symbols" and its two
3075 aliases are now deprecated.
3077 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3079 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3080 new-line in debug string. Remove trailing spaces.
3082 2014-02-19 Stan Shebs <stan@codesourcery.com>
3084 * darwin-nat.c (darwin_xfer_partial): Fix return type.
3086 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
3088 * NEWS: Add entry for the new feature
3089 * python/py-value.c (valpy_binop): Call value_x_binop for struct
3092 2014-02-19 Stan Shebs <stan@codesourcery.com>
3094 * MAINTAINERS: List Yao Qi as nios2 maintainer.
3096 2014-02-19 Pedro Alves <palves@redhat.com>
3098 * common/ptid.h (struct ptid): Mention that process_stratum
3099 targets should prefer ptid.lwp.
3101 2014-02-19 Pedro Alves <palves@redhat.com>
3103 * remote.c (remote_thread_alive, write_ptid, read_ptid)
3104 (read_ptid, remote_newthread_step, remote_threads_extra_info)
3105 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
3106 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
3107 store remote thread ids rather than ptid.tid.
3108 (_initialize_remote): Adjust.
3110 2014-02-19 Tom Tromey <tromey@redhat.com>
3112 * target.c (target_get_unwinder): Rewrite.
3113 (target_get_tailcall_unwinder): Rewrite.
3114 * record-btrace.c (record_btrace_to_get_unwinder): New function.
3115 (record_btrace_to_get_tailcall_unwinder): New function.
3116 (init_record_btrace_ops): Update.
3117 * target.h (struct target_ops) <to_get_unwinder,
3118 to_get_tailcall_unwinder>: Now function pointers. Use
3119 TARGET_DEFAULT_RETURN.
3121 2014-02-19 Tom Tromey <tromey@redhat.com>
3123 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
3125 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
3127 2014-02-19 Tom Tromey <tromey@redhat.com>
3129 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
3131 * target-delegates.c: Rebuild.
3132 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
3133 TARGET_DEFAULT_FUNC.
3134 * target.c (default_target_decr_pc_after_break): Rename from
3135 forward_target_decr_pc_after_break. Simplify.
3136 (target_decr_pc_after_break): Rely on delegation.
3138 2014-02-19 Tom Tromey <tromey@redhat.com>
3140 * target.c (update_current_target): Do not INHERIT to_doc or
3141 to_magic. Do not de_fault to_open or to_close.
3143 2014-02-19 Tom Tromey <tromey@redhat.com>
3145 * gcore.h (objfile_find_memory_regions): Declare.
3146 * gcore.c (objfile_find_memory_regions): No longer static. Add
3148 (_initialize_gcore): Don't call exec_set_find_memory_regions.
3149 * exec.c: Include gcore.h.
3150 (exec_set_find_memory_regions): Remove.
3151 (exec_find_memory_regions): Remove.
3152 (exec_do_find_memory_regions): Remove.
3153 (init_exec_ops): Update.
3154 * defs.h (exec_set_find_memory_regions): Remove.
3156 2014-02-19 Tom Tromey <tromey@redhat.com>
3158 * target-delegates.c: Rebuild.
3159 * target.h (struct target_ops) <to_extra_thread_info,
3160 to_thread_name, to_pid_to_exec_file, to_get_section_table,
3161 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
3162 not 0, in TARGET_DEFAULT_RETURN.
3164 2014-02-19 Tom Tromey <tromey@redhat.com>
3166 * target.c (complete_target_initialization): Remove casts. Use
3167 return_zero_has_execution.
3168 (return_zero): Add "ignore" argument.
3169 (return_zero_has_execution): New function.
3170 (init_dummy_target): Remove casts. Use
3171 return_zero_has_execution.
3173 2014-02-19 Tom Tromey <tromey@redhat.com>
3175 * target.c (update_current_target): Update comments. Do not
3178 2014-02-19 Tom Tromey <tromey@redhat.com>
3180 * arm-linux-nat.c (arm_linux_read_description): Delegate when
3182 * corelow.c (core_read_description): Delegate when needed.
3183 * remote.c (remote_read_description): Delegate when needed.
3184 * target-delegates.c: Rebuild.
3185 * target.c (target_read_description): Rewrite.
3186 * target.h (struct target_ops) <to_read_description>: Update
3187 comment. Use TARGET_DEFAULT_RETURN.
3189 2014-02-19 Tom Tromey <tromey@redhat.com>
3191 * target-delegates.c: Rebuild.
3192 * target.c (update_current_target): Don't inherit or default
3194 (find_default_run_target): Check against delegate_can_run.
3195 * target.h (struct target_ops) <to_can_run>: Use
3196 TARGET_DEFAULT_RETURN.
3198 2014-02-19 Tom Tromey <tromey@redhat.com>
3200 * target-delegates.c: Rebuild.
3201 * target.c (target_disconnect): Unconditionally delegate.
3202 * target.h (struct target_ops) <to_disconnect>: Use
3203 TARGET_DEFAULT_NORETURN.
3205 2014-02-19 Tom Tromey <tromey@redhat.com>
3207 * record.c (record_stop): Unconditionally delegate.
3208 * target-delegates.c: Rebuild.
3209 * target.c (target_stop_recording): Unconditionally delegate.
3210 * target.h (struct target_ops) <to_stop_recording>: Use
3211 TARGET_DEFAULT_IGNORE.
3213 2014-02-19 Tom Tromey <tromey@redhat.com>
3215 * target-delegates.c: Rebuild.
3216 * target.c (target_enable_btrace): Unconditionally delegate.
3217 * target.h (struct target_ops) <to_enable_btrace>: Use
3218 TARGET_DEFAULT_NORETURN.
3220 2014-02-19 Tom Tromey <tromey@redhat.com>
3222 * target-delegates.c: Rebuild.
3223 * target.c (target_read_btrace): Unconditionally delegate.
3224 * target.h (struct target_ops) <to_read_btrace>: Use
3225 TARGET_DEFAULT_NORETURN.
3227 2014-02-19 Tom Tromey <tromey@redhat.com>
3229 * target-delegates.c: Rebuild.
3230 * target.c (target_teardown_btrace): Unconditionally delegate.
3231 * target.h (struct target_ops) <to_teardown_btrace>: Use
3232 TARGET_DEFAULT_NORETURN.
3234 2014-02-19 Tom Tromey <tromey@redhat.com>
3236 * target-delegates.c: Rebuild.
3237 * target.c (target_disable_btrace): Unconditionally delegate.
3238 * target.h (struct target_ops) <to_disable_btrace>: Use
3239 TARGET_DEFAULT_NORETURN.
3241 2014-02-19 Tom Tromey <tromey@redhat.com>
3243 * target-delegates.c: Rebuild.
3244 * target.c (default_search_memory): New function.
3245 (simple_search_memory): Update comment.
3246 (target_search_memory): Unconditionally delegate.
3247 * target.h (struct target_ops) <to_search_memory>: Use
3248 TARGET_DEFAULT_FUNC.
3250 2014-02-19 Tom Tromey <tromey@redhat.com>
3252 * auxv.c (default_auxv_parse): No longer static.
3253 (target_auxv_parse): Unconditionally delegate.
3254 * auxv.h (default_auxv_parse): Declare.
3255 * target-delegates.c: Rebuild.
3256 * target.c: Include auxv.h.
3257 * target.h (struct target_ops) <to_auxv_parse>: Use
3258 TARGET_DEFAULT_FUNC.
3260 2014-02-19 Tom Tromey <tromey@redhat.com>
3262 * target-delegates.c: Rebuild.
3263 * target.c (target_memory_map): Unconditionally delegate.
3264 * target.h (struct target_ops) <to_memory_map>: Use
3265 TARGET_DEFAULT_RETURN.
3267 2014-02-19 Tom Tromey <tromey@redhat.com>
3269 * target-delegates.c: Rebuild.
3270 * target.c (target_thread_alive): Unconditionally delegate.
3271 * target.h (struct target_ops) <to_thread_alive>: Use
3272 TARGET_DEFAULT_RETURN.
3274 2014-02-19 Tom Tromey <tromey@redhat.com>
3276 * target-delegates.c: Rebuild.
3277 * target.c (target_save_record): Unconditionally delegate.
3278 * target.h (struct target_ops) <to_save_record>: Use
3279 TARGET_DEFAULT_NORETURN.
3281 2014-02-19 Tom Tromey <tromey@redhat.com>
3283 * target-delegates.c: Rebuild.
3284 * target.c (target_delete_record): Unconditionally delegate.
3285 * target.h (struct target_ops) <to_delete_record>: Use
3286 TARGET_DEFAULT_NORETURN.
3288 2014-02-19 Tom Tromey <tromey@redhat.com>
3290 * target-delegates.c: Rebuild.
3291 * target.c (target_record_is_replaying): Unconditionally
3293 * target.h (struct target_ops) <to_record_is_replaying>: Use
3294 TARGET_DEFAULT_RETURN.
3296 2014-02-19 Tom Tromey <tromey@redhat.com>
3298 * target-delegates.c: Rebuild.
3299 * target.c (target_goto_record_begin): Unconditionally delegate.
3300 * target.h (struct target_ops) <to_goto_record_begin>: Use
3301 TARGET_DEFAULT_NORETURN.
3303 2014-02-19 Tom Tromey <tromey@redhat.com>
3305 * target-delegates.c: Rebuild.
3306 * target.c (target_goto_record_end): Unconditionally delegate.
3307 * target.h (struct target_ops) <to_goto_record_end>: Use
3308 TARGET_DEFAULT_NORETURN.
3310 2014-02-19 Tom Tromey <tromey@redhat.com>
3312 * target-delegates.c: Rebuild.
3313 * target.c (target_goto_record): Unconditionally delegate.
3314 * target.h (struct target_ops) <to_goto_record>: Use
3315 TARGET_DEFAULT_NORETURN.
3317 2014-02-19 Tom Tromey <tromey@redhat.com>
3319 * target-delegates.c: Rebuild.
3320 * target.c (target_insn_history): Unconditionally delegate.
3321 * target.h (struct target_ops) <to_insn_history>: Use
3322 TARGET_DEFAULT_NORETURN.
3324 2014-02-19 Tom Tromey <tromey@redhat.com>
3326 * target-delegates.c: Rebuild.
3327 * target.c (target_insn_history_from): Unconditionally delegate.
3328 * target.h (struct target_ops) <to_insn_history_from>: Use
3329 TARGET_DEFAULT_NORETURN.
3331 2014-02-19 Tom Tromey <tromey@redhat.com>
3333 * target-delegates.c: Rebuild.
3334 * target.c (target_insn_history_range): Unconditionally delegate.
3335 * target.h (struct target_ops) <to_insn_history_range>: Use
3336 TARGET_DEFAULT_NORETURN.
3338 2014-02-19 Tom Tromey <tromey@redhat.com>
3340 * target-delegates.c: Rebuild.
3341 * target.c (target_call_history): Unconditionally delegate.
3342 * target.h (struct target_ops) <to_call_history>: Use
3343 TARGET_DEFAULT_NORETURN.
3345 2014-02-19 Tom Tromey <tromey@redhat.com>
3347 * target-delegates.c: Rebuild.
3348 * target.c (target_call_history_from): Unconditionally delegate.
3349 * target.h (struct target_ops) <to_call_history_from>: Use
3350 TARGET_DEFAULT_NORETURN.
3352 2014-02-19 Tom Tromey <tromey@redhat.com>
3354 * target-delegates.c: Rebuild.
3355 * target.c (target_call_history_range): Unconditionally delegate.
3356 * target.h (struct target_ops) <to_call_history_range>: Use
3357 TARGET_DEFAULT_NORETURN.
3359 2014-02-19 Tom Tromey <tromey@redhat.com>
3361 * target-delegates.c: Rebuild.
3362 * target.c (target_verify_memory): Unconditionally delegate.
3363 * target.h (struct target_ops) <to_verify_memory>: Use
3364 TARGET_DEFAULT_NORETURN.
3366 2014-02-19 Tom Tromey <tromey@redhat.com>
3368 * target-delegates.c: Rebuild.
3369 * target.c (target_core_of_thread): Unconditionally delegate.
3370 * target.h (struct target_ops) <to_core_of_thread>: Use
3371 TARGET_DEFAULT_RETURN.
3373 2014-02-19 Tom Tromey <tromey@redhat.com>
3375 * target-delegates.c: Rebuild.
3376 * target.c (target_flash_done): Unconditionally delegate.
3377 * target.h (struct target_ops) <to_flash_done>: Use
3378 TARGET_DEFAULT_NORETURN.
3380 2014-02-19 Tom Tromey <tromey@redhat.com>
3382 * target-delegates.c: Rebuild.
3383 * target.c (target_flash_erase): Unconditionally delegate.
3384 * target.h (struct target_ops) <to_flash_erase>: Use
3385 TARGET_DEFAULT_NORETURN.
3387 2014-02-19 Tom Tromey <tromey@redhat.com>
3389 * target-delegates.c: Rebuild.
3390 * target.c (target_get_section_table): Unconditionally delegate.
3391 * target.h (struct target_ops) <to_get_section_table>: Use
3392 TARGET_DEFAULT_RETURN.
3394 2014-02-19 Tom Tromey <tromey@redhat.com>
3396 * target-delegates.c: Rebuild.
3397 * target.c (target_pid_to_str): Unconditionally delegate.
3398 (init_dummy_target): Don't initialize to_pid_to_str.
3399 (default_pid_to_str): Rename from dummy_pid_to_str.
3400 * target.h (struct target_ops) <to_pid_to_str>: Use
3401 TARGET_DEFAULT_FUNC.
3403 2014-02-19 Tom Tromey <tromey@redhat.com>
3405 * target-delegates.c: Rebuild.
3406 * target.c (target_find_new_threads): Unconditionally delegate.
3407 * target.h (struct target_ops) <to_find_new_threads>: Use
3408 TARGET_DEFAULT_RETURN.
3410 2014-02-19 Tom Tromey <tromey@redhat.com>
3412 * target-delegates.c: Rebuild.
3413 * target.c (target_program_signals): Unconditionally delegate.
3414 * target.h (struct target_ops) <to_program_signals>: Use
3415 TARGET_DEFAULT_IGNORE.
3417 2014-02-19 Tom Tromey <tromey@redhat.com>
3419 * target-delegates.c: Rebuild.
3420 * target.c (target_pass_signals): Unconditionally delegate.
3421 * target.h (struct target_ops) <to_pass_signals>: Use
3422 TARGET_DEFAULT_IGNORE.
3424 2014-02-19 Tom Tromey <tromey@redhat.com>
3426 * target-delegates.c: Rebuild.
3427 * target.c (default_mourn_inferior): New function.
3428 (target_mourn_inferior): Unconditionally delegate.
3429 * target.h (struct target_ops) <to_mourn_inferior>: Use
3430 TARGET_DEFAULT_FUNC.
3432 2014-02-19 Tom Tromey <tromey@redhat.com>
3434 * target-delegates.c: Rebuild.
3435 * target.c (default_follow_fork): New function.
3436 (target_follow_fork): Unconditionally delegate.
3437 * target.h (struct target_ops) <to_follow_fork>: Use
3438 TARGET_DEFAULT_FUNC.
3440 2014-02-19 Tom Tromey <tromey@redhat.com>
3442 * target-delegates.c: Rebuild.
3443 * target.c (target_kill): Unconditionally delegate.
3444 * target.h (struct target_ops) <to_kill>: Use
3445 TARGET_DEFAULT_NORETURN.
3447 2014-02-19 Tom Tromey <tromey@redhat.com>
3449 * target-delegates.c: Rebuild.
3450 * target.c (target_masked_watch_num_registers): Unconditionally
3452 * target.h (struct target_ops) <to_masked_watch_num_registers>:
3453 Use TARGET_DEFAULT_RETURN.
3455 2014-02-19 Tom Tromey <tromey@redhat.com>
3457 * target-delegates.c: Rebuild.
3458 * target.c (target_remove_mask_watchpoint): Unconditionally
3460 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
3461 TARGET_DEFAULT_RETURN.
3463 2014-02-19 Tom Tromey <tromey@redhat.com>
3465 * target-delegates.c: Rebuild.
3466 * target.c (target_insert_mask_watchpoint): Unconditionally
3468 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
3469 TARGET_DEFAULT_RETURN.
3471 2014-02-19 Tom Tromey <tromey@redhat.com>
3473 * target-delegates.c: Rebuild.
3474 * target.c (target_ranged_break_num_registers): Unconditionally
3476 * target.h (struct target_ops) <to_ranged_break_num_registers>:
3477 Use TARGET_DEFAULT_RETURN.
3479 2014-02-19 Tom Tromey <tromey@redhat.com>
3481 * target-delegates.c: Rebuild.
3482 * target.c (target_fetch_registers): Unconditionally delegate.
3483 * target.h (struct target_ops) <to_fetch_registers>: Use
3484 TARGET_DEFAULT_NORETURN.
3486 2014-02-19 Tom Tromey <tromey@redhat.com>
3488 * target-delegates.c: Rebuild.
3489 * target.c (update_current_target): Don't inherit or default
3491 * target.h (struct target_ops) <to_stop>: Use
3492 TARGET_DEFAULT_IGNORE.
3494 2014-02-19 Tom Tromey <tromey@redhat.com>
3496 * target-delegates.c: Rebuild.
3497 * target.c (update_current_target): Don't inherit or default
3498 to_can_run_breakpoint_commands.
3499 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
3500 Use TARGET_DEFAULT_RETURN.
3502 2014-02-19 Tom Tromey <tromey@redhat.com>
3504 * target-delegates.c: Rebuild.
3505 * target.c (update_current_target): Don't inherit or default
3506 to_supports_evaluation_of_breakpoint_conditions.
3507 * target.h (struct target_ops)
3508 <to_supports_evaluation_of_breakpoint_conditions>: Use
3509 TARGET_DEFAULT_RETURN.
3511 2014-02-19 Tom Tromey <tromey@redhat.com>
3513 * target-delegates.c: Rebuild.
3514 * target.c (update_current_target): Don't inherit or default
3515 to_augmented_libraries_svr4_read.
3516 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
3517 Use TARGET_DEFAULT_RETURN.
3519 2014-02-19 Tom Tromey <tromey@redhat.com>
3521 * target-delegates.c: Rebuild.
3522 * target.c (update_current_target): Don't inherit or default
3524 * target.h (struct target_ops) <to_can_use_agent>: Use
3525 TARGET_DEFAULT_RETURN.
3527 2014-02-19 Tom Tromey <tromey@redhat.com>
3529 * target-delegates.c: Rebuild.
3530 * target.c (update_current_target): Don't inherit or default
3532 * target.h (struct target_ops) <to_use_agent>: Use
3533 TARGET_DEFAULT_NORETURN.
3535 2014-02-19 Tom Tromey <tromey@redhat.com>
3537 * target-delegates.c: Rebuild.
3538 * target.c (update_current_target): Don't inherit or default
3540 (return_null): Remove.
3541 * target.h (struct target_ops) <to_traceframe_info>: Use
3542 TARGET_DEFAULT_RETURN.
3544 2014-02-19 Tom Tromey <tromey@redhat.com>
3546 * target-delegates.c: Rebuild.
3547 * target.c (update_current_target): Don't inherit or default
3548 to_static_tracepoint_markers_by_strid.
3549 * target.h (struct target_ops)
3550 <to_static_tracepoint_markers_by_strid>: Use
3551 TARGET_DEFAULT_NORETURN.
3553 2014-02-19 Tom Tromey <tromey@redhat.com>
3555 * target-delegates.c: Rebuild.
3556 * target.c (update_current_target): Don't inherit or default
3557 to_static_tracepoint_marker_at.
3558 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
3559 Use TARGET_DEFAULT_RETURN.
3561 2014-02-19 Tom Tromey <tromey@redhat.com>
3563 * target-delegates.c: Rebuild.
3564 * target.c (update_current_target): Don't inherit or default
3566 * target.h (struct target_ops) <to_set_permissions>: Use
3567 TARGET_DEFAULT_IGNORE.
3569 2014-02-19 Tom Tromey <tromey@redhat.com>
3571 * target-delegates.c: Rebuild.
3572 * target.c (update_current_target): Don't inherit or default
3574 * target.h (struct target_ops) <to_get_tib_address>: Use
3575 TARGET_DEFAULT_NORETURN.
3577 2014-02-19 Tom Tromey <tromey@redhat.com>
3579 * target-delegates.c: Rebuild.
3580 * target.c (update_current_target): Don't inherit or default
3582 * target.h (struct target_ops) <to_set_trace_notes>: Use
3583 TARGET_DEFAULT_RETURN.
3585 2014-02-19 Tom Tromey <tromey@redhat.com>
3587 * target-delegates.c: Rebuild.
3588 * target.c (update_current_target): Don't initialize
3589 to_set_trace_buffer_size.
3590 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
3591 TARGET_DEFAULT_IGNORE.
3593 2014-02-19 Tom Tromey <tromey@redhat.com>
3595 * target-delegates.c: Rebuild.
3596 * target.c (update_current_target): Don't inherit or default
3597 to_set_circular_trace_buffer.
3598 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
3599 TARGET_DEFAULT_IGNORE.
3601 2014-02-19 Tom Tromey <tromey@redhat.com>
3603 * target-delegates.c: Rebuild.
3604 * target.c (update_current_target): Don't inherit or default
3605 to_set_disconnected_tracing.
3606 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
3607 TARGET_DEFAULT_IGNORE.
3609 2014-02-19 Tom Tromey <tromey@redhat.com>
3611 * target-delegates.c: Rebuild.
3612 * target.c (update_current_target): Don't inherit or default
3613 to_get_min_fast_tracepoint_insn_len.
3614 (return_minus_one): Remove.
3615 * target.h (struct target_ops)
3616 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
3618 2014-02-19 Tom Tromey <tromey@redhat.com>
3620 * target-delegates.c: Rebuild.
3621 * target.c (update_current_target): Don't inherit or default
3622 to_get_raw_trace_data.
3623 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
3624 TARGET_DEFAULT_NORETURN.
3626 2014-02-19 Tom Tromey <tromey@redhat.com>
3628 * target-delegates.c: Rebuild.
3629 * target.c (update_current_target): Don't inherit or default
3630 to_upload_trace_state_variables.
3631 * target.h (struct target_ops) <to_upload_trace_state_variables>:
3632 Use TARGET_DEFAULT_RETURN.
3634 2014-02-19 Tom Tromey <tromey@redhat.com>
3636 * target-delegates.c: Rebuild.
3637 * target.c (update_current_target): Don't inherit or default
3638 to_upload_tracepoints.
3639 * target.h (struct target_ops) <to_upload_tracepoints>: Use
3640 TARGET_DEFAULT_RETURN.
3642 2014-02-19 Tom Tromey <tromey@redhat.com>
3644 * target-delegates.c: Rebuild.
3645 * target.c (update_current_target): Don't inherit or default
3647 * target.h (struct target_ops) <to_save_trace_data>: Use
3648 TARGET_DEFAULT_NORETURN.
3650 2014-02-19 Tom Tromey <tromey@redhat.com>
3652 * target-delegates.c: Rebuild.
3653 * target.c (update_current_target): Don't inherit or default
3654 to_get_trace_state_variable_value.
3655 * target.h (struct target_ops)
3656 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
3658 2014-02-19 Tom Tromey <tromey@redhat.com>
3660 * target-delegates.c: Rebuild.
3661 * target.c (update_current_target): Don't inherit or default
3663 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
3665 2014-02-19 Tom Tromey <tromey@redhat.com>
3667 * target-delegates.c: Rebuild.
3668 * target.c (update_current_target): Don't inherit or default
3670 * target.h (struct target_ops) <to_trace_stop>: Use
3671 TARGET_DEFAULT_NORETURN.
3673 2014-02-19 Tom Tromey <tromey@redhat.com>
3675 * target-delegates.c: Rebuild.
3676 * target.c (update_current_target): Don't inherit or default
3677 to_get_tracepoint_status.
3678 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
3679 TARGET_DEFAULT_NORETURN.
3681 2014-02-19 Tom Tromey <tromey@redhat.com>
3683 * target-delegates.c: Rebuild.
3684 * target.c (update_current_target): Don't inherit or default
3685 to_get_trace_status.
3686 * target.h (struct target_ops) <to_get_trace_status>: Use
3687 TARGET_DEFAULT_RETURN.
3689 2014-02-19 Tom Tromey <tromey@redhat.com>
3691 * target-delegates.c: Rebuild.
3692 * target.c (update_current_target): Don't inherit or default
3694 * target.h (struct target_ops) <to_trace_start>: Use
3695 TARGET_DEFAULT_NORETURN.
3697 2014-02-19 Tom Tromey <tromey@redhat.com>
3699 * target-delegates.c: Rebuild.
3700 * target.c (update_current_target): Don't inherit or default
3701 to_trace_set_readonly_regions.
3702 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
3703 Use TARGET_DEFAULT_NORETURN.
3705 2014-02-19 Tom Tromey <tromey@redhat.com>
3707 * target-delegates.c: Rebuild.
3708 * target.c (update_current_target): Don't inherit or default
3709 to_disable_tracepoint.
3710 * target.h (struct target_ops) <to_disable_tracepoint>: Use
3711 TARGET_DEFAULT_NORETURN.
3713 2014-02-19 Tom Tromey <tromey@redhat.com>
3715 * target-delegates.c: Rebuild.
3716 * target.c (update_current_target): Don't inherit or default
3717 to_enable_tracepoint.
3718 * target.h (struct target_ops) <to_enable_tracepoint>: Use
3719 TARGET_DEFAULT_NORETURN.
3721 2014-02-19 Tom Tromey <tromey@redhat.com>
3723 * target-delegates.c: Rebuild.
3724 * target.c (update_current_target): Don't inherit or default
3725 to_download_trace_state_variable.
3726 * target.h (struct target_ops) <to_download_trace_state_variable>:
3727 Use TARGET_DEFAULT_NORETURN.
3729 2014-02-19 Tom Tromey <tromey@redhat.com>
3731 * target-delegates.c: Rebuild.
3732 * target.c (update_current_target): Don't inherit or default
3733 to_can_download_tracepoint.
3734 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
3735 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
3742 * target.h (struct target_ops) <to_download_tracepoint>: Use
3743 TARGET_DEFAULT_NORETURN.
3745 2014-02-19 Tom Tromey <tromey@redhat.com>
3747 * target-delegates.c: Rebuild.
3748 * target.c (update_current_target): Don't inherit or default
3750 * target.h (struct target_ops) <to_trace_init>: Use
3751 TARGET_DEFAULT_RETURN.
3753 2014-02-19 Tom Tromey <tromey@redhat.com>
3755 * target-delegates.c: Rebuild.
3756 * target.c (update_current_target): Don't inherit or default
3757 to_supports_string_tracing.
3758 * target.h (struct target_ops) <to_supports_string_tracing>: Use
3759 TARGET_DEFAULT_RETURN.
3761 2014-02-19 Tom Tromey <tromey@redhat.com>
3763 * target-delegates.c: Rebuild.
3764 * target.c (update_current_target): Don't inherit or default
3765 to_supports_enable_disable_tracepoint.
3766 * target.h (struct target_ops)
3767 <to_supports_enable_disable_tracepoint>: Use
3768 TARGET_DEFAULT_RETURN.
3770 2014-02-19 Tom Tromey <tromey@redhat.com>
3772 * target-delegates.c: Rebuild.
3773 * target.c (update_current_target): Don't inherit or default
3774 to_supports_multi_process.
3775 * target.h (struct target_ops) <to_supports_multi_process>: Use
3776 TARGET_DEFAULT_RETURN.
3778 2014-02-19 Tom Tromey <tromey@redhat.com>
3780 * target-delegates.c: Rebuild.
3781 * target.c (update_current_target): Don't inherit or default
3782 to_get_ada_task_ptid.
3783 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
3784 TARGET_DEFAULT_FUNC.
3786 2014-02-19 Tom Tromey <tromey@redhat.com>
3788 * target-delegates.c: Rebuild.
3789 * target.c (update_current_target): Don't inherit or default
3790 to_thread_architecture.
3791 * target.h (struct target_ops) <to_thread_architecture>: Use
3792 TARGET_DEFAULT_FUNC.
3794 2014-02-19 Tom Tromey <tromey@redhat.com>
3796 * target-delegates.c: Rebuild.
3797 * target.c (update_current_target): Don't inherit or default
3798 to_execution_direction.
3799 * target.h (struct target_ops) <to_execution_direction>: Use
3800 TARGET_DEFAULT_FUNC.
3802 2014-02-19 Tom Tromey <tromey@redhat.com>
3804 * target-delegates.c: Rebuild.
3805 * target.c (update_current_target): Don't inherit or default
3806 to_can_execute_reverse.
3807 * target.h (struct target_ops) <to_can_execute_reverse>: Use
3808 TARGET_DEFAULT_RETURN.
3809 (target_can_execute_reverse): Unconditionally delegate.
3811 2014-02-19 Tom Tromey <tromey@redhat.com>
3813 * target-delegates.c: Rebuild.
3814 * target.c (update_current_target): Don't inherit or default
3816 (dummy_goto_bookmark): Remove.
3817 (init_dummy_target): Don't inherit or default to_goto_bookmark.
3818 * target.h (struct target_ops) <to_goto_bookmark>: Use
3819 TARGET_DEFAULT_NORETURN.
3821 2014-02-19 Tom Tromey <tromey@redhat.com>
3823 * target-delegates.c: Rebuild.
3824 * target.c (update_current_target): Don't inherit or default
3826 (dummy_get_bookmark): Remove.
3827 (init_dummy_target): Don't inherit or default to_get_bookmark.
3828 * target.h (struct target_ops) <to_get_bookmark>: Use
3829 TARGET_DEFAULT_NORETURN
3831 2014-02-19 Tom Tromey <tromey@redhat.com>
3833 * target-delegates.c: Rebuild.
3834 * target.c (update_current_target): Don't inherit or default
3835 to_make_corefile_notes.
3836 (init_dummy_target): Don't initialize to_make_corefile_notes.
3837 * target.h (struct target_ops) <to_make_corefile_notes>: Use
3838 TARGET_DEFAULT_FUNC.
3840 2014-02-19 Tom Tromey <tromey@redhat.com>
3842 * target-delegates.c: Rebuild.
3843 * target.c (update_current_target): Don't inherit or default
3844 to_find_memory_regions.
3845 (init_dummy_target): Don't initialize to_find_memory_regions.
3846 * target.h (struct target_ops) <to_find_memory_regions>: Use
3847 TARGET_DEFAULT_FUNC.
3849 2014-02-19 Tom Tromey <tromey@redhat.com>
3851 * target-delegates.c: Rebuild.
3852 * target.c (update_current_target): Don't inherit or default
3854 * target.h (struct target_ops) <to_log_command>: Use
3855 TARGET_DEFAULT_IGNORE.
3856 (target_log_command): Unconditionally delegate.
3858 2014-02-19 Tom Tromey <tromey@redhat.com>
3860 * target-delegates.c: Rebuild.
3861 * target.c (update_current_target): Don't inherit or default
3862 to_pid_to_exec_file.
3863 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
3864 TARGET_DEFAULT_RETURN.
3866 2014-02-19 Tom Tromey <tromey@redhat.com>
3868 * target-delegates.c: Rebuild.
3869 * target.c (update_current_target): Don't inherit or default
3871 (target_thread_name): Unconditionally delegate.
3872 * target.h (struct target_ops) <to_thread_name>: Use
3873 TARGET_DEFAULT_RETURN.
3875 2014-02-19 Tom Tromey <tromey@redhat.com>
3877 * target-delegates.c: Rebuild.
3878 * target.c (update_current_target): Don't inherit or default
3879 to_extra_thread_info.
3880 * target.h (struct target_ops) <to_extra_thread_info>: Use
3881 TARGET_DEFAULT_RETURN.
3883 2014-02-19 Tom Tromey <tromey@redhat.com>
3885 * target-delegates.c: Rebuild.
3886 * target.c (update_current_target): Don't inherit or default
3888 * target.h (struct target_ops) <to_has_exited>: Use
3889 TARGET_DEFAULT_RETURN..
3891 2014-02-19 Tom Tromey <tromey@redhat.com>
3893 * target-delegates.c: Rebuild.
3894 * target.c (update_current_target): Don't inherit or default
3895 to_set_syscall_catchpoint.
3896 (return_one): Remove.
3897 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
3898 TARGET_DEFAULT_RETURN.
3900 2014-02-19 Tom Tromey <tromey@redhat.com>
3902 * target-delegates.c: Rebuild.
3903 * target.c (update_current_target): Don't inherit or default
3904 to_insert_exec_catchpoint.
3905 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3906 TARGET_DEFAULT_RETURN.
3908 2014-01-08 Tom Tromey <tromey@redhat.com>
3910 * target-delegates.c: Rebuild.
3911 * target.c (update_current_target): Don't inherit or default
3912 to_insert_exec_catchpoint.
3913 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
3914 TARGET_DEFAULT_RETURN.
3916 2014-02-19 Tom Tromey <tromey@redhat.com>
3918 * target-delegates.c: Rebuild.
3919 * target.c (update_current_target): Don't inherit or default
3920 to_remove_vfork_catchpoint.
3921 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
3922 TARGET_DEFAULT_RETURN.
3924 2014-02-19 Tom Tromey <tromey@redhat.com>
3926 * target-delegates.c: Rebuild.
3927 * target.c (update_current_target): Don't inherit or default
3928 to_insert_vfork_catchpoint.
3929 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
3930 TARGET_DEFAULT_RETURN.
3932 2014-02-19 Tom Tromey <tromey@redhat.com>
3934 * target-delegates.c: Rebuild.
3935 * target.c (update_current_target): Don't inherit or default
3936 to_remove_fork_catchpoint.
3937 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
3938 TARGET_DEFAULT_RETURN.
3940 2014-02-19 Tom Tromey <tromey@redhat.com>
3942 * target-delegates.c: Rebuild.
3943 * target.c (update_current_target): Don't inherit or default
3944 to_insert_fork_catchpoint.
3945 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
3946 TARGET_DEFAULT_RETURN.
3948 2014-02-19 Tom Tromey <tromey@redhat.com>
3950 * target-delegates.c: Rebuild.
3951 * target.c (update_current_target): Don't inherit or default
3952 to_post_startup_inferior.
3953 * target.h (struct target_ops) <to_post_startup_inferior>: Use
3954 TARGET_DEFAULT_IGNORE.
3956 2014-02-19 Tom Tromey <tromey@redhat.com>
3958 * target-delegates.c: Rebuild.
3959 * target.c (update_current_target): Don't inherit or default
3961 * target.h (struct target_ops) <to_load>: Use
3962 TARGET_DEFAULT_NORETURN.
3964 2014-02-19 Tom Tromey <tromey@redhat.com>
3966 * target-delegates.c: Rebuild.
3967 * target.c (update_current_target): Don't inherit or default
3969 * target.h (struct target_ops) <to_terminal_info>: Use
3970 TARGET_DEFAULT_FUNC.
3972 2014-02-19 Tom Tromey <tromey@redhat.com>
3974 * target-delegates.c: Rebuild.
3975 * target.c (update_current_target): Don't inherit or default
3976 to_terminal_save_ours.
3977 * target.h (struct target_ops) <to_terminal_save_ours>: Use
3978 TARGET_DEFAULT_IGNORE.
3980 2014-02-19 Tom Tromey <tromey@redhat.com>
3982 * target-delegates.c: Rebuild.
3983 * target.c (update_current_target): Don't inherit or default
3985 * target.h (struct target_ops) <to_terminal_ours>: Use
3986 TARGET_DEFAULT_IGNORE.
3988 2014-02-19 Tom Tromey <tromey@redhat.com>
3990 * target-delegates.c: Rebuild.
3991 * target.c (update_current_target): Don't inherit or default
3992 to_terminal_ours_for_output.
3993 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
3994 TARGET_DEFAULT_IGNORE.
3996 2014-02-19 Tom Tromey <tromey@redhat.com>
3998 * target-delegates.c: Rebuild.
3999 * target.c (update_current_target): Don't inherit or default
4000 to_terminal_inferior.
4001 * target.h (struct target_ops) <to_terminal_inferior>: Use
4002 TARGET_DEFAULT_IGNORE.
4004 2014-02-19 Tom Tromey <tromey@redhat.com>
4006 * target-delegates.c: Rebuild.
4007 * target.c (update_current_target): Don't inherit or default
4009 * target.h (struct target_ops) <to_terminal_init>: Use
4010 TARGET_DEFAULT_IGNORE.
4012 2014-02-19 Tom Tromey <tromey@redhat.com>
4014 * target-delegates.c: Rebuild.
4015 * target.c (update_current_target): Don't inherit or default
4016 to_can_accel_watchpoint_condition.
4017 * target.h (struct target_ops)
4018 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4020 2014-02-19 Tom Tromey <tromey@redhat.com>
4022 * target-delegates.c: Rebuild.
4023 * target.c (update_current_target): Don't inherit or default
4024 to_region_ok_for_hw_watchpoint.
4025 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4026 Use TARGET_DEFAULT_FUNC.
4028 2014-02-19 Tom Tromey <tromey@redhat.com>
4030 * target-delegates.c: Rebuild.
4031 * target.c (update_current_target): Don't inherit or default
4032 to_watchpoint_addr_within_range.
4033 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4034 Use TARGET_DEFAULT_FUNC.
4036 2014-02-19 Tom Tromey <tromey@redhat.com>
4038 * target-delegates.c: Rebuild.
4039 * target.c (update_current_target): Don't inherit or default
4040 to_remove_watchpoint.
4041 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4042 TARGET_DEFAULT_NORETURN.
4044 2014-02-19 Tom Tromey <tromey@redhat.com>
4046 * target-delegates.c: Rebuild.
4047 * target.c (update_current_target): Don't inherit or default
4048 to_insert_watchpoint.
4049 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4050 TARGET_DEFAULT_RETURN.
4052 2014-02-19 Tom Tromey <tromey@redhat.com>
4054 * target-delegates.c: Rebuild.
4055 * target.c (update_current_target): Don't inherit or default
4056 to_remove_hw_breakpoint.
4057 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4058 TARGET_DEFAULT_RETURN.
4060 2014-02-19 Tom Tromey <tromey@redhat.com>
4062 * target-delegates.c: Rebuild.
4063 * target.c (update_current_target): Don't inherit or default
4064 to_insert_hw_breakpoint.
4065 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4066 TARGET_DEFAULT_RETURN.
4068 2014-02-19 Tom Tromey <tromey@redhat.com>
4070 * target-delegates.c: Rebuild.
4071 * target.c (update_current_target): Don't inherit or default
4072 to_can_use_hw_breakpoint.
4073 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4074 TARGET_DEFAULT_RETURN.
4076 2014-02-19 Tom Tromey <tromey@redhat.com>
4078 * target-delegates.c: Rebuild.
4079 * target.c (update_current_target): Don't inherit or default
4081 * target.h (struct target_ops) <to_files_info>: Use
4082 TARGET_DEFAULT_IGNORE.
4084 2014-02-19 Tom Tromey <tromey@redhat.com>
4086 * target-delegates.c: Rebuild.
4087 * target.c (update_current_target): Don't inherit or default
4089 * target.h (struct target_ops) <to_store>: Use
4090 TARGET_DEFAULT_NORETURN.
4092 2014-02-19 Tom Tromey <tromey@redhat.com>
4094 * target-delegates.c: Rebuild.
4095 * target.c (update_current_target): Don't inherit or default
4097 * target.h (struct target_ops) <to_post_attach>: Use
4098 TARGET_DEFAULT_IGNORE.
4100 2014-02-19 Tom Tromey <tromey@redhat.com>
4102 * target-delegates.c: Rebuild.
4103 * target.c (update_current_target): Don't inherit or default
4105 (default_rcmd): New function.
4106 (do_monitor_command): Unconditionally delegate.
4107 * target.h (struct target_ops) <to_rmcd>: Use
4108 TARGET_DEFAULT_FUNC.
4110 2014-02-19 Tom Tromey <tromey@redhat.com>
4112 * target-delegates.c: Rebuild.
4113 * target.c (init_dummy_target): Don't initialize to_attach.
4114 (target_attach): Unconditionally delegate.
4115 * target.h (struct target_ops) <to_attach>: Use
4116 TARGET_DEFAULT_FUNC.
4118 2014-02-19 Tom Tromey <tromey@redhat.com>
4120 * target-delegates.c: Rebuild.
4121 * target.c (target_detach): Unconditionally delegate.
4122 (init_dummy_target): Don't initialize to_detach.
4123 * target.h (struct target_ops) <to_detach>: Use
4124 TARGET_DEFAULT_IGNORE.
4126 2014-02-19 Tom Tromey <tromey@redhat.com>
4128 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4130 (target_augmented_libraries_svr4_read): Add argument.
4131 * target.c (update_current_target): Update.
4132 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
4135 2014-02-19 Tom Tromey <tromey@redhat.com>
4137 * target.h (struct target_ops) <to_call_history_range>: Add
4139 * target.c (target_call_history_range): Add argument.
4140 * record-btrace.c (record_btrace_call_history_range): Add 'self'
4142 (record_btrace_call_history_from): Update.
4144 2014-02-19 Tom Tromey <tromey@redhat.com>
4146 * target.h (struct target_ops) <to_call_history_from>: Add
4148 * target.c (target_call_history_from): Add argument.
4149 * record-btrace.c (record_btrace_call_history_from): Add 'self'
4152 2014-02-19 Tom Tromey <tromey@redhat.com>
4154 * target.h (struct target_ops) <to_call_history>: Add argument.
4155 * target.c (target_call_history): Add argument.
4156 * record-btrace.c (record_btrace_call_history): Add 'self'
4159 2014-02-19 Tom Tromey <tromey@redhat.com>
4161 * target.h (struct target_ops) <to_insn_history_range>: Add
4163 * target.c (target_insn_history_range): Add argument.
4164 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
4166 (record_btrace_insn_history_from): Update.
4168 2014-02-19 Tom Tromey <tromey@redhat.com>
4170 * target.h (struct target_ops) <to_insn_history_from>: Add
4172 * target.c (target_insn_history_from): Add argument.
4173 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
4176 2014-02-19 Tom Tromey <tromey@redhat.com>
4178 * target.h (struct target_ops) <to_insn_history>: Add argument.
4179 * target.c (target_insn_history): Add argument.
4180 * record-btrace.c (record_btrace_insn_history): Add 'self'
4183 2014-02-19 Tom Tromey <tromey@redhat.com>
4185 * target.h (struct target_ops) <to_goto_record>: Add argument.
4186 * target.c (target_goto_record): Add argument.
4187 * record-full.c (record_full_goto): Add 'self' argument.
4188 * record-btrace.c (record_btrace_goto): Add 'self' argument.
4190 2014-02-19 Tom Tromey <tromey@redhat.com>
4192 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
4193 * target.c (target_goto_record_end): Add argument.
4194 * record-full.c (record_full_goto_end): Add 'self' argument.
4195 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
4197 2014-02-19 Tom Tromey <tromey@redhat.com>
4199 * target.h (struct target_ops) <to_goto_record_begin>: Add
4201 * target.c (target_goto_record_begin): Add argument.
4202 * record-full.c (record_full_goto_begin): Add 'self' argument.
4203 * record-btrace.c (record_btrace_goto_begin): Add 'self'
4206 2014-02-19 Tom Tromey <tromey@redhat.com>
4208 * target.h (struct target_ops) <to_record_is_replaying>: Add
4210 * target.c (target_record_is_replaying): Add argument.
4211 * record-full.c (record_full_is_replaying): Add 'self' argument.
4212 * record-btrace.c (record_btrace_is_replaying): Add 'self'
4214 (record_btrace_xfer_partial, record_btrace_store_registers)
4215 (record_btrace_prepare_to_store, record_btrace_resume)
4216 (record_btrace_wait, record_btrace_decr_pc_after_break)
4217 (record_btrace_find_new_threads, record_btrace_thread_alive):
4220 2014-02-19 Tom Tromey <tromey@redhat.com>
4222 * target.h (struct target_ops) <to_delete_record>: Add argument.
4223 * target.c (target_delete_record): Add argument.
4224 * record-full.c (record_full_delete): Add 'self' argument.
4226 2014-02-19 Tom Tromey <tromey@redhat.com>
4228 * target.h (struct target_ops) <to_save_record>: Add argument.
4229 * target.c (target_save_record): Add argument.
4230 * record-full.c (record_full_save): Add 'self' argument.
4231 (record_full_save): Add 'self' argument.
4233 2014-02-19 Tom Tromey <tromey@redhat.com>
4235 * target.h (struct target_ops) <to_info_record>: Add argument.
4236 * target.c (target_info_record): Add argument.
4237 * record.c (info_record_command): Add argument.
4238 * record-full.c (record_full_info): Add 'self' argument.
4239 * record-btrace.c (record_btrace_info): Add 'self' argument.
4241 2014-02-19 Tom Tromey <tromey@redhat.com>
4243 * target.h (struct target_ops) <to_stop_recording>: Add argument.
4244 * target.c (target_stop_recording): Add argument.
4245 * record.c (record_stop): Add argument.
4246 * record-btrace.c (record_btrace_stop_recording): Add 'self'
4249 2014-02-19 Tom Tromey <tromey@redhat.com>
4251 * target.h (struct target_ops) <to_read_btrace>: Add argument.
4252 * target.c (struct target_ops) <to_read_btrace>: Add argument.
4253 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
4255 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
4256 (_initialize_amd64_linux_nat): Use it.
4257 * i386-linux-nat.c (i386_linux_read_btrace): New function.
4258 (_initialize_i386_linux_nat): Use it.
4260 2014-02-19 Tom Tromey <tromey@redhat.com>
4262 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
4263 * target.c (target_teardown_btrace): Add argument.
4264 * remote.c (remote_teardown_btrace): Add 'self' argument.
4265 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
4267 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
4270 2014-02-19 Tom Tromey <tromey@redhat.com>
4272 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
4273 * target.c (target_disable_btrace): Add argument.
4274 * remote.c (remote_disable_btrace): Add 'self' argument.
4275 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
4277 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
4280 2014-02-19 Tom Tromey <tromey@redhat.com>
4282 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
4283 * target.c (target_enable_btrace): Add argument.
4284 * remote.c (remote_enable_btrace): Add 'self' argument.
4285 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
4287 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
4290 2014-02-19 Tom Tromey <tromey@redhat.com>
4292 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
4293 (target_can_use_agent): Add argument.
4294 * target.c (update_current_target): Update.
4295 * remote.c (remote_can_use_agent): Add 'self' argument.
4296 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
4298 2014-02-19 Tom Tromey <tromey@redhat.com>
4300 * target.h (struct target_ops) <to_use_agent>: Add argument.
4301 (target_use_agent): Add argument.
4302 * target.c (update_current_target): Update.
4303 * remote.c (remote_use_agent): Add 'self' argument.
4304 * inf-child.c (inf_child_use_agent): Add 'self' argument.
4306 2014-02-19 Tom Tromey <tromey@redhat.com>
4308 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
4309 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
4310 (target_traceframe_info): Add argument.
4311 * target.c (update_current_target): Update.
4312 * remote.c (remote_traceframe_info): Add 'self' argument.
4313 * ctf.c (ctf_traceframe_info): Add 'self' argument.
4315 2014-02-19 Tom Tromey <tromey@redhat.com>
4317 * target.h (target_static_tracepoint_markers_by_strid): Add
4319 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
4321 * target.c (update_current_target): Update.
4322 * remote.c (struct target_ops)
4323 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4324 * linux-nat.c (struct target_ops)
4325 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
4327 2014-02-19 Tom Tromey <tromey@redhat.com>
4329 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4331 (target_static_tracepoint_marker_at): Add argument.
4332 * target.c (update_current_target): Update.
4333 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
4336 2014-02-19 Tom Tromey <tromey@redhat.com>
4338 * target.h (struct target_ops) <to_set_permissions>: Add argument.
4339 (target_set_permissions): Add argument.
4340 * target.c (update_current_target): Update.
4341 * remote.c (remote_set_permissions): Add 'self' argument.
4342 (remote_start_remote): Update.
4344 2014-02-19 Tom Tromey <tromey@redhat.com>
4346 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
4347 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
4348 (target_get_tib_address): Add argument.
4349 * target.c (update_current_target): Update.
4350 * remote.c (remote_get_tib_address): Add 'self' argument.
4352 2014-02-19 Tom Tromey <tromey@redhat.com>
4354 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
4355 (target_set_trace_notes): Add argument.
4356 * target.c (update_current_target): Update.
4357 * remote.c (remote_set_trace_notes): Add 'self' argument.
4359 2014-02-19 Tom Tromey <tromey@redhat.com>
4361 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
4363 (target_set_trace_buffer_size): Add argument.
4364 * target.c (update_current_target): Update.
4365 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
4367 2014-02-19 Tom Tromey <tromey@redhat.com>
4369 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
4371 (target_set_circular_trace_buffer): Add argument.
4372 * target.c (update_current_target): Update.
4373 * remote.c (remote_set_circular_trace_buffer): Add 'self'
4376 2014-02-19 Tom Tromey <tromey@redhat.com>
4378 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
4380 (target_set_disconnected_tracing): Add argument.
4381 * target.c (update_current_target): Update.
4382 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
4384 2014-02-19 Tom Tromey <tromey@redhat.com>
4386 * target.h (struct target_ops)
4387 <to_get_min_fast_tracepoint_insn_len>: Add argument.
4388 (target_get_min_fast_tracepoint_insn_len): Add argument.
4389 * target.c (update_current_target): Update.
4390 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
4393 2014-02-19 Tom Tromey <tromey@redhat.com>
4395 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
4397 (target_get_raw_trace_data): Add argument.
4398 * target.c (update_current_target): Update.
4399 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
4401 2014-02-19 Tom Tromey <tromey@redhat.com>
4403 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4405 (target_upload_trace_state_variables): Add argument.
4406 * target.c (update_current_target): Update.
4407 * remote.c (remote_upload_trace_state_variables): Add 'self'
4409 (remote_start_remote): Update.
4411 2014-02-19 Tom Tromey <tromey@redhat.com>
4413 * target.h (struct target_ops) <to_upload_tracepoints>: Add
4415 (target_upload_tracepoints): Add argument.
4416 * target.c (update_current_target): Update.
4417 * remote.c (remote_upload_tracepoints): Add 'self' argument.
4418 (remote_start_remote): Update.
4420 2014-02-19 Tom Tromey <tromey@redhat.com>
4422 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
4423 (target_save_trace_data): Add argument.
4424 * target.c (update_current_target): Update.
4425 * remote.c (remote_save_trace_data): Add 'self' argument.
4427 2014-02-19 Tom Tromey <tromey@redhat.com>
4429 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
4431 * target.h (struct target_ops)
4432 <to_get_trace_state_variable_value>: Add argument.
4433 (target_get_trace_state_variable_value): Add argument.
4434 * target.c (update_current_target): Update.
4435 * remote.c (remote_get_trace_state_variable_value): Add 'self'
4437 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
4439 2014-02-19 Tom Tromey <tromey@redhat.com>
4441 * tracepoint.c (tfile_trace_find): Add 'self' argument.
4442 * target.h (struct target_ops) <to_trace_find>: Add argument.
4443 (target_trace_find): Add argument.
4444 * target.c (update_current_target): Update.
4445 * remote.c (remote_trace_find): Add 'self' argument.
4446 * ctf.c (ctf_trace_find): Add 'self' argument.
4448 2014-02-19 Tom Tromey <tromey@redhat.com>
4450 * target.h (struct target_ops) <to_trace_stop>: Add argument.
4451 (target_trace_stop): Add argument.
4452 * target.c (update_current_target): Update.
4453 * remote.c (remote_trace_stop): Add 'self' argument.
4455 2014-02-19 Tom Tromey <tromey@redhat.com>
4457 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
4458 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
4460 (target_get_tracepoint_status): Add argument.
4461 * target.c (update_current_target): Update.
4462 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
4464 2014-02-19 Tom Tromey <tromey@redhat.com>
4466 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
4467 * target.h (struct target_ops) <to_get_trace_status>: Add
4469 (target_get_trace_status): Add argument.
4470 * target.c (update_current_target): Update.
4471 * remote.c (remote_get_trace_status): Add 'self' argument.
4472 (remote_start_remote, remote_can_download_tracepoint): Update.
4473 * ctf.c (ctf_get_trace_status): Add 'self' argument.
4475 2014-02-19 Tom Tromey <tromey@redhat.com>
4477 * target.h (struct target_ops) <to_trace_start>: Add argument.
4478 (target_trace_start): Add argument.
4479 * target.c (update_current_target): Update.
4480 * remote.c (remote_trace_start): Add 'self' argument.
4482 2014-02-19 Tom Tromey <tromey@redhat.com>
4484 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4486 (target_trace_set_readonly_regions): Add argument.
4487 * target.c (update_current_target): Update.
4488 * remote.c (remote_trace_set_readonly_regions): Add 'self'
4491 2014-02-19 Tom Tromey <tromey@redhat.com>
4493 * target.h (struct target_ops) <to_disable_tracepoint>: Add
4495 (target_disable_tracepoint): Add argument.
4496 * target.c (update_current_target): Update.
4497 * remote.c (remote_disable_tracepoint): Add 'self' argument.
4499 2014-02-19 Tom Tromey <tromey@redhat.com>
4501 * target.h (struct target_ops) <to_enable_tracepoint>: Add
4503 (target_enable_tracepoint): Add argument.
4504 * target.c (update_current_target): Update.
4505 * remote.c (remote_enable_tracepoint): Add 'self' argument.
4507 2014-02-19 Tom Tromey <tromey@redhat.com>
4509 * target.h (struct target_ops) <to_download_trace_state_variable>:
4511 (target_download_trace_state_variable): Add argument.
4512 * target.c (update_current_target): Update.
4513 * remote.c (remote_download_trace_state_variable): Add 'self'
4516 2014-02-19 Tom Tromey <tromey@redhat.com>
4518 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
4520 (target_can_download_tracepoint): Add argument.
4521 * target.c (update_current_target): Update.
4522 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
4524 2014-02-19 Tom Tromey <tromey@redhat.com>
4526 * target.h (struct target_ops) <to_download_tracepoint>: Add
4528 (target_download_tracepoint): Add argument.
4529 * target.c (update_current_target): Update.
4530 * remote.c (remote_download_tracepoint): Add 'self' argument.
4532 2014-02-19 Tom Tromey <tromey@redhat.com>
4534 * target.h (struct target_ops) <to_trace_init>: Add argument.
4535 (target_trace_init): Add argument.
4536 * target.c (update_current_target): Update.
4537 * remote.c (remote_trace_init): Add 'self' argument.
4539 2014-02-19 Tom Tromey <tromey@redhat.com>
4541 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
4542 * target.c (target_fileio_readlink): Add argument.
4543 * remote.c (remote_hostio_readlink): Add 'self' argument.
4544 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
4546 2014-02-19 Tom Tromey <tromey@redhat.com>
4548 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
4549 * target.c (target_fileio_unlink): Add argument.
4550 * remote.c (remote_hostio_unlink): Add 'self' argument.
4551 (remote_file_delete): Update.
4552 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
4554 2014-02-19 Tom Tromey <tromey@redhat.com>
4556 * target.h (struct target_ops) <to_fileio_close>: Add argument.
4557 * target.c (target_fileio_close): Add argument.
4558 * remote.c (remote_hostio_close): Add 'self' argument.
4559 (remote_hostio_close_cleanup): Update.
4560 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
4562 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
4564 2014-02-19 Tom Tromey <tromey@redhat.com>
4566 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
4567 * target.c (target_fileio_pread): Add argument.
4568 * remote.c (remote_hostio_pread): Add 'self' argument.
4569 (remote_bfd_iovec_pread, remote_file_get): Update.
4570 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
4572 2014-02-19 Tom Tromey <tromey@redhat.com>
4574 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
4575 * target.c (target_fileio_pwrite): Add argument.
4576 * remote.c (remote_hostio_pwrite): Add 'self' argument.
4577 (remote_file_put): Update.
4578 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
4580 2014-02-19 Tom Tromey <tromey@redhat.com>
4582 * target.h (struct target_ops) <to_fileio_open>: Add argument.
4583 * target.c (target_fileio_open): Add argument.
4584 * remote.c (remote_hostio_open): Add 'self' argument.
4585 (remote_bfd_iovec_open): Add 'self' argument.
4586 (remote_file_put): Add 'self' argument.
4587 (remote_file_get): Add 'self' argument.
4588 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
4590 2014-02-19 Tom Tromey <tromey@redhat.com>
4592 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4594 (target_can_run_breakpoint_commands): Add argument.
4595 * target.c (update_current_target): Update.
4596 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
4598 (remote_insert_breakpoint): Add 'self' argument.
4599 (remote_insert_hw_breakpoint): Add 'self' argument.
4600 (remote_can_run_breakpoint_commands): Add 'self' argument.
4602 2014-02-19 Tom Tromey <tromey@redhat.com>
4604 * target.h (struct target_ops)
4605 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
4606 (target_supports_evaluation_of_breakpoint_conditions): Add
4608 * target.c (update_current_target): Update.
4609 * remote.c (remote_supports_cond_breakpoints): Add 'self'
4611 (remote_insert_breakpoint): Add 'self' argument.
4612 (remote_insert_hw_breakpoint): Add 'self' argument.
4613 (remote_supports_cond_breakpoints): Add 'self' argument.
4615 2014-02-19 Tom Tromey <tromey@redhat.com>
4617 * target.h (struct target_ops) <to_supports_string_tracing>: Add
4619 (target_supports_string_tracing): Add argument.
4620 * target.c (update_current_target): Update.
4621 * remote.c (remote_supports_string_tracing): Add 'self' argument.
4623 2014-02-19 Tom Tromey <tromey@redhat.com>
4625 * target.h (struct target_ops)
4626 <to_supports_disable_randomization>: Add argument.
4627 * target.c (find_default_supports_disable_randomization): Add
4629 (target_supports_disable_randomization): Add argument.
4630 (find_default_supports_disable_randomization): Add 'self'
4632 * remote.c (extended_remote_supports_disable_randomization): Add
4634 (remote_supports_disable_randomization): Add 'self' argument.
4635 (extended_remote_create_inferior): Update.
4636 * linux-nat.c (linux_nat_supports_disable_randomization): Add
4639 2014-02-19 Tom Tromey <tromey@redhat.com>
4641 * target.h (struct target_ops)
4642 <to_supports_enable_disable_tracepoint>: Add argument.
4643 (target_supports_enable_disable_tracepoint): Add argument.
4644 * target.c (update_current_target): Update.
4645 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
4648 2014-02-19 Tom Tromey <tromey@redhat.com>
4650 * target.h (struct target_ops) <to_supports_multi_process>: Add
4652 (target_supports_multi_process): Add argument.
4653 * target.c (update_current_target): Update.
4654 * remote.c (remote_supports_multi_process): Add 'self' argument.
4655 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
4657 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
4660 2014-02-19 Tom Tromey <tromey@redhat.com>
4662 * target.h (struct target_ops) <to_execution_direction>: Add
4664 (target_execution_direction): Add argument.
4665 * target.c (default_execution_direction): Add 'self' argument.
4666 * record-full.c (record_full_execution_direction): Add 'self'
4669 2014-02-19 Tom Tromey <tromey@redhat.com>
4671 * target.h (struct target_ops) <to_can_execute_reverse>: Add
4673 (target_can_execute_reverse): Add argument.
4674 * remote.c (remote_can_execute_reverse): Add 'self' argument.
4675 * record-full.c (record_full_can_execute_reverse): Add 'self'
4677 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
4680 2014-02-19 Tom Tromey <tromey@redhat.com>
4682 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
4683 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
4685 (target_get_ada_task_ptid): Add argument.
4686 * target.c (update_current_target): Update.
4687 (default_get_ada_task_ptid): Add 'self' argument.
4688 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
4689 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
4690 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
4692 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
4694 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
4696 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
4698 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
4699 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
4702 2014-02-19 Tom Tromey <tromey@redhat.com>
4704 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
4705 (target_goto_bookmark): Add argument.
4706 * target.c (dummy_goto_bookmark): Add 'self' argument.
4707 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
4709 2014-02-19 Tom Tromey <tromey@redhat.com>
4711 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
4712 (target_get_bookmark): Add argument.
4713 * target.c (dummy_get_bookmark): Add 'self' argument.
4714 * record-full.c (record_full_get_bookmark): Add 'self' argument.
4716 2014-02-19 Tom Tromey <tromey@redhat.com>
4718 * target.h (struct target_ops) <to_make_corefile_notes>: Add
4720 (target_make_corefile_notes): Add argument.
4721 * target.c (dummy_make_corefile_notes): Add 'self' argument.
4722 * procfs.c (procfs_make_note_section): Add 'self' argument.
4723 (procfs_make_note_section): Add 'self' argument.
4724 (procfs_make_note_section): Add 'self' argument.
4725 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
4727 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
4728 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
4729 * exec.c (exec_make_note_section): Add 'self' argument.
4730 (exec_make_note_section): Add 'self' argument.
4732 2014-02-19 Tom Tromey <tromey@redhat.com>
4734 * target.h (struct target_ops) <to_find_memory_regions>: Add
4736 (target_find_memory_regions): Add argument.
4737 * target.c (dummy_find_memory_regions): Add 'self' argument.
4738 * procfs.c (proc_find_memory_regions): Add 'self' argument.
4739 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
4740 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
4741 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
4742 * exec. (exec_do_find_memory_regions): New global.
4743 (exec_set_find_memory_regions): Rewrite.
4744 (exec_find_memory_regions): New function.
4745 (init_exec_ops): Use exec_find_memory_regions.
4747 2014-02-19 Tom Tromey <tromey@redhat.com>
4749 * target.h (struct target_ops) <to_supports_non_stop>: Add
4751 * target.c (find_default_supports_non_stop): Add argument.
4752 (target_supports_non_stop): Add argument.
4753 (find_default_supports_non_stop): Add 'self' argument.
4754 * remote.c (remote_supports_non_stop): Add 'self' argument.
4755 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
4757 2014-02-19 Tom Tromey <tromey@redhat.com>
4759 * target.h (struct target_ops) <to_log_command>: Add argument.
4760 (target_log_command): Add argument.
4761 * serial.h (serial_log_command): Add 'self' argument.
4762 * serial.c (serial_log_command): Add 'self' argument.
4764 2014-02-19 Tom Tromey <tromey@redhat.com>
4766 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
4767 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
4769 (target_pid_to_exec_file): Add argument.
4770 * target.c (debug_to_pid_to_exec_file): Add argument.
4771 (update_current_target): Update.
4772 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
4773 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
4774 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
4775 (linux_handle_extended_wait): Update.
4776 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
4777 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
4778 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
4779 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
4781 2014-02-19 Tom Tromey <tromey@redhat.com>
4783 * target.h (struct target_ops) <to_rcmd>: Add argument.
4784 (target_rcmd): Add argument.
4785 * target.c (debug_to_rcmd): Add argument.
4786 (update_current_target, do_monitor_command): Update.
4787 * remote.c (remote_rcmd): Add 'self' argument.
4788 * monitor.c (monitor_rcmd): Add 'self' argument.
4790 2014-02-19 Tom Tromey <tromey@redhat.com>
4792 * windows-nat.c (windows_stop): Add 'self' argument.
4793 * target.h (struct target_ops) <to_stop>: Add argument.
4794 * target.c (target_stop): Add argument.
4795 (debug_to_stop): Add argument.
4796 (update_current_target): Update.
4797 * remote.c (remote_stop): Add 'self' argument.
4798 * remote-sim.c (gdbsim_stop): Add 'self' argument.
4799 (gdbsim_cntrl_c): Update.
4800 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
4801 * procfs.c (procfs_stop): Add 'self' argument.
4802 * nto-procfs.c (procfs_stop): Add 'self' argument.
4803 * monitor.c (monitor_stop): Add 'self' argument.
4804 (monitor_open): Update.
4805 * linux-nat.c (linux_nat_stop): Add argument.
4806 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
4807 * gnu-nat.c (gnu_stop): Add 'self' argument.
4808 * darwin-nat.c (darwin_stop): Add 'self' argument.
4810 2014-02-19 Tom Tromey <tromey@redhat.com>
4812 * target.h (struct target_ops) <to_thread_name>: Add argument.
4813 * target.c (target_thread_name): Add argument.
4814 (update_current_target): Update.
4815 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
4817 2014-02-19 Tom Tromey <tromey@redhat.com>
4819 * target.h (struct target_ops) <to_extra_thread_info>: Add
4821 (target_extra_thread_info): Add argument.
4822 * target.c (update_current_target): Update.
4823 * remote.c (remote_threads_extra_info): Add 'self' argument.
4824 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
4826 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
4827 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
4828 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
4830 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
4832 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
4834 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
4837 2014-02-19 Tom Tromey <tromey@redhat.com>
4839 * target.h (struct target_ops) <to_program_signals>: Add argument.
4840 * target.c (target_program_signals): Add argument.
4841 * remote.c (remote_program_signals): Add 'self' argument.
4843 2014-02-19 Tom Tromey <tromey@redhat.com>
4845 * target.h (struct target_ops) <to_pass_signals>: Add argument.
4846 * target.c (target_pass_signals): Add argument.
4847 * remote.c (remote_pass_signals): Add 'self' argument.
4848 (remote_start_remote): Update.
4849 * procfs.c (procfs_pass_signals): Add 'self' argument.
4850 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
4851 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
4852 (linux_nat_create_inferior, linux_nat_attach): Update.
4854 2014-02-19 Tom Tromey <tromey@redhat.com>
4856 * windows-nat.c (windows_can_run): Add 'self' argument.
4857 * target.h (struct target_ops) <to_can_run>: Add argument.
4858 (target_can_run): Add argument.
4859 * target.c (debug_to_can_run): Add argument.
4860 (update_current_target): Update.
4861 * nto-procfs.c (procfs_can_run): Add 'self' argument.
4862 * inf-child.c (inf_child_can_run): Add 'self' argument.
4863 * go32-nat.c (go32_can_run): Add 'self' argument.
4865 2014-02-19 Tom Tromey <tromey@redhat.com>
4867 * target.h (struct target_ops) <to_has_exited>: Add argument.
4868 (target_has_exited): Add argument.
4869 * target.c (debug_to_has_exited): Add argument.
4870 (update_current_target): Update.
4872 2014-02-19 Tom Tromey <tromey@redhat.com>
4874 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
4876 (target_set_syscall_catchpoint): Add argument.
4877 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
4879 * target.c (update_current_target): Update.
4881 2014-02-19 Tom Tromey <tromey@redhat.com>
4883 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
4885 (target_remove_exec_catchpoint): Add argument.
4886 * target.c (debug_to_remove_exec_catchpoint): Add argument.
4887 (update_current_target): Update.
4888 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
4891 2014-02-19 Tom Tromey <tromey@redhat.com>
4893 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
4895 (target_insert_exec_catchpoint): Add argument.
4896 * target.c (debug_to_insert_exec_catchpoint): Add argument.
4897 (update_current_target): Update.
4898 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
4901 2014-02-19 Tom Tromey <tromey@redhat.com>
4903 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
4905 (target_remove_vfork_catchpoint): Add argument.
4906 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
4907 (update_current_target): Update.
4908 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
4911 2014-02-19 Tom Tromey <tromey@redhat.com>
4913 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
4915 (target_insert_vfork_catchpoint): Add argument.
4916 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
4917 (update_current_target): Update.
4918 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
4921 2014-02-19 Tom Tromey <tromey@redhat.com>
4923 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
4925 (target_remove_fork_catchpoint): Add argument.
4926 * target.c (debug_to_remove_fork_catchpoint): Add argument.
4927 (update_current_target): Update.
4928 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
4931 2014-02-19 Tom Tromey <tromey@redhat.com>
4933 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
4935 (target_insert_fork_catchpoint): Add argument.
4936 * target.c (debug_to_insert_fork_catchpoint): Add argument.
4937 (update_current_target): Update.
4938 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
4941 2014-02-19 Tom Tromey <tromey@redhat.com>
4943 * target.h (struct target_ops) <to_post_startup_inferior>: Add
4945 (target_post_startup_inferior): Add argument.
4946 * target.c (debug_to_post_startup_inferior): Add argument.
4947 (update_current_target): Update.
4948 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
4950 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
4952 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
4954 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
4956 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
4958 (super_post_startup_inferior): Likewise.
4959 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
4961 (super_post_startup_inferior): Likewise.
4962 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
4963 Add 'self' argument.
4964 (super_post_startup_inferior): Likewise.
4966 2014-02-19 Tom Tromey <tromey@redhat.com>
4968 * target.h (struct target_ops) <to_load>: Add argument.
4969 * target.c (target_load): Add argument.
4970 (debug_to_load): Add argument.
4971 (update_current_target): Update.
4972 * remote.c (remote_load): Add 'self' argument.
4973 * remote-sim.c (gdbsim_load): Add 'self' argument.
4974 * remote-mips.c (mips_load): Add 'self' argument.
4975 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
4976 * monitor.c (monitor_load): Add 'self' argument.
4977 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
4979 2014-02-19 Tom Tromey <tromey@redhat.com>
4981 * target.h (struct target_ops) <to_terminal_info>: Add argument.
4982 (target_terminal_info): Add argument.
4983 * target.c (debug_to_terminal_info): Add argument.
4984 (default_terminal_info): Likewise.
4985 * inflow.c (child_terminal_info): Add 'self' argument.
4986 * inferior.h (child_terminal_info): Add 'self' argument.
4987 * go32-nat.c (go32_terminal_info): Add 'self' argument.
4989 2014-02-19 Tom Tromey <tromey@redhat.com>
4991 * target.h (struct target_ops) <to_terminal_save_ours>: Add
4993 (target_terminal_save_ours): Add argument.
4994 * target.c (debug_to_terminal_save_ours): Add argument.
4995 (update_current_target): Update.
4996 * inflow.c (terminal_save_ours): Add 'self' argument.
4997 * inferior.h (terminal_save_ours): Add 'self' argument.
4999 2014-02-19 Tom Tromey <tromey@redhat.com>
5001 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5002 (target_terminal_ours): Add argument.
5003 * target.c (debug_to_terminal_ours): Add argument.
5004 (update_current_target): Update.
5005 * remote.c (remote_terminal_ours): Add 'self' argument.
5006 (remote_close): Update.
5007 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5008 * inflow.c (terminal_ours): Add 'self' argument.
5009 * inferior.h (terminal_ours): Add 'self' argument.
5010 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5012 2014-02-19 Pedro Alves <palves@redhat.com>
5013 Tom Tromey <tromey@redhat.com>
5015 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5017 (target_terminal_ours_for_output): Add argument.
5018 * target.c (debug_to_terminal_ours_for_output): Add argument.
5019 (update_current_target): Update.
5020 * inflow.c (terminal_ours_for_output): Add 'self' argument.
5021 * inferior.h (terminal_ours_for_output): Add 'self' argument.
5022 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5024 2014-02-19 Tom Tromey <tromey@redhat.com>
5026 * target.h (struct target_ops) <to_terminal_inferior>: Add
5028 * target.c (target_terminal_inferior): Add argument.
5029 (update_current_target): Update.
5030 * remote.c (remote_terminal_inferior): Add 'self' argument.
5031 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5032 * inflow.c (terminal_inferior): Add 'self' argument.
5033 * inferior.h (terminal_inferior): Add 'self' argument.
5034 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5035 (go32_terminal_inferior): Add 'self' argument.
5037 2014-02-19 Tom Tromey <tromey@redhat.com>
5039 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5040 (target_terminal_init): Add argument.
5041 * target.c (debug_to_terminal_init): Add argument.
5042 (update_current_target): Update.
5043 * inflow.c (terminal_init_inferior): Add 'self' argument.
5044 * inferior.h (terminal_init_inferior): Add 'self' argument.
5045 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5046 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5048 2014-02-19 Tom Tromey <tromey@redhat.com>
5050 * target.h (struct target_ops)
5051 <to_can_accel_watchpoint_condition>: Add argument.
5052 (target_can_accel_watchpoint_condition): Add argument.
5053 * target.c (debug_to_can_accel_watchpoint_condition): Add
5055 (update_current_target): Update.
5056 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5059 2014-02-19 Tom Tromey <tromey@redhat.com>
5061 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5063 (target_region_ok_for_hw_watchpoint): Add argument.
5064 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5065 (default_region_ok_for_hw_watchpoint): Add argument.
5066 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5067 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5069 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5071 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5073 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5075 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5077 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5079 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5080 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
5082 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
5083 Add 'self' argument.
5085 2014-02-19 Tom Tromey <tromey@redhat.com>
5087 * target.h (struct target_ops) <to_insert_watchpoint>: Add
5089 (target_insert_watchpoint): Add argument.
5090 * target.c (debug_to_insert_watchpoint): Add argument.
5091 (update_current_target): Update.
5092 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
5093 * remote.c (remote_insert_watchpoint): Add 'self' argument.
5094 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
5095 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
5096 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
5097 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
5099 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
5100 (procfs_insert_hw_watchpoint): Add 'self' argument.
5101 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
5103 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
5105 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
5107 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
5108 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
5110 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
5113 2014-02-19 Tom Tromey <tromey@redhat.com>
5115 * target.h (struct target_ops) <to_remove_watchpoint>: Add
5117 (target_remove_watchpoint): Add argument.
5118 * target.c (debug_to_remove_watchpoint): Add argument.
5119 (update_current_target): Update.
5120 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
5121 * remote.c (remote_remove_watchpoint): Add 'self' argument.
5122 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
5123 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
5124 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
5125 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
5127 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
5128 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
5130 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
5132 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
5134 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
5135 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
5137 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
5140 2014-02-19 Tom Tromey <tromey@redhat.com>
5142 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
5144 (target_remove_hw_breakpoint): Add argument.
5145 * target.c (debug_to_remove_hw_breakpoint): Add argument.
5146 (update_current_target): Update.
5147 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
5148 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
5150 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
5151 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
5153 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
5156 2014-02-19 Tom Tromey <tromey@redhat.com>
5158 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
5160 (target_insert_hw_breakpoint): Add argument.
5161 * target.c (debug_to_insert_hw_breakpoint): Add argument.
5162 (update_current_target): Update.
5163 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
5164 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
5166 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
5167 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
5168 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
5170 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
5173 2014-02-19 Tom Tromey <tromey@redhat.com>
5175 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
5177 (target_can_use_hardware_watchpoint): Add argument.
5178 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
5179 (update_current_target): Update.
5180 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
5182 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
5184 * remote.c (remote_check_watch_resources): Add 'self' argument.
5185 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
5186 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
5188 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
5189 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
5191 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
5193 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
5195 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
5197 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
5199 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
5201 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
5202 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
5204 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
5207 2014-02-19 Tom Tromey <tromey@redhat.com>
5209 * target.h (struct target_ops) <to_post_attach>: Add argument.
5210 (target_post_attach): Add argument.
5211 * target.c (debug_to_post_attach): Add argument.
5212 (update_current_target): Update.
5213 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
5214 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
5215 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
5216 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
5217 * inf-child.c (inf_child_post_attach): Add 'self' argument.
5219 2014-02-19 Tom Tromey <tromey@redhat.com>
5221 * windows-nat.c (windows_close): Add 'self' argument.
5222 * tracepoint.c (tfile_close): Add 'self' argument.
5223 * target.h (struct target_ops) <to_close>: Add argument.
5224 * target.c (target_close): Add argument.
5225 (update_current_target): Update.
5226 * remote.c (remote_close): Add 'self' argument.
5227 * remote-sim.c (gdbsim_close): Add 'self' argument.
5228 * remote-mips.c (mips_close): Add 'self' argument.
5229 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
5230 * record-full.c (record_full_close): Add 'self' argument.
5231 * record-btrace.c (record_btrace_close): Add 'self' argument.
5232 * monitor.h (monitor_close): Add 'self' argument.
5233 * monitor.c (monitor_close): Add 'self' argument.
5234 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
5235 * linux-nat.c (linux_nat_close): Add argument.
5236 * go32-nat.c (go32_close): Add 'self' argument.
5237 * exec.c (exec_close_1): Add 'self' argument.
5238 * ctf.c (ctf_close): Add 'self' argument.
5239 * corelow.c (core_close): Add 'self' argument.
5240 (core_close_cleanup): Update.
5241 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
5242 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
5244 2014-02-19 Tom Tromey <tromey@redhat.com>
5246 * remote.c (remote_load): New function.
5247 (init_remote_ops): Use it.
5249 2014-02-19 Tom Tromey <tromey@redhat.com>
5251 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
5253 * common/linux-btrace.h (linux_supports_btrace): Update.
5254 * remote.c (remote_supports_btrace): Add "self" argument.
5255 * target-delegates.c: Rebuild.
5256 * target.c (target_supports_btrace): Remove.
5257 * target.h (struct target_ops) <to_supports_btrace>: Add
5258 target_ops argument.
5259 (target_supports_btrace): New define.
5261 2014-02-19 Tom Tromey <tromey@redhat.com>
5263 * record-full.c (record_full_beneath_to_resume_ops)
5264 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
5265 (record_full_beneath_to_wait)
5266 (record_full_beneath_to_store_registers_ops)
5267 (record_full_beneath_to_store_registers)
5268 (record_full_beneath_to_xfer_partial_ops)
5269 (record_full_beneath_to_xfer_partial)
5270 (record_full_beneath_to_insert_breakpoint_ops)
5271 (record_full_beneath_to_insert_breakpoint)
5272 (record_full_beneath_to_remove_breakpoint_ops)
5273 (record_full_beneath_to_remove_breakpoint)
5274 (record_full_beneath_to_stopped_by_watchpoint)
5275 (record_full_beneath_to_stopped_data_address)
5276 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
5277 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
5278 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
5279 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
5280 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
5281 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
5282 (tmp_to_stopped_data_address, tmp_to_async): Remove.
5283 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
5284 (record_full_resume, record_full_wait_1)
5285 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
5286 (record_full_store_registers, record_full_xfer_partial)
5287 (record_full_insert_breakpoint, record_full_remove_breakpoint)
5288 (record_full_async, record_full_core_xfer_partial): Use target
5290 * target-delegates.c: Rebuild.
5291 * target.c (current_xfer_partial): Remove.
5292 (update_current_target): Do not INHERIT or de_fault
5293 to_insert_breakpoint, to_remove_breakpoint,
5294 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
5295 to_is_async_p, to_async. Do not set to_xfer_partial field.
5296 (default_xfer_partial): Simplify.
5297 (current_xfer_partial): Remove.
5298 (target_wait, target_resume): Simplify.
5299 (find_default_can_async_p, find_default_is_async_p): Update.
5300 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
5301 to_xfer_partial, to_stopped_by_watchpoint,
5302 to_stopped_data_address.
5303 (target_store_registers): Simplify.
5304 (forward_target_remove_breakpoint)
5305 (forward_target_insert_breakpoint): Remove.
5306 (target_remove_breakpoint, target_insert_breakpoint)
5307 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
5308 * target.h (struct target_ops) <to_resume, to_wait,
5309 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
5310 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
5311 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
5313 (forward_target_remove_breakpoint)
5314 (forward_target_insert_breakpoint): Remove.
5315 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
5317 (record_btrace_insert_breakpoint): Delegate directly.
5319 2014-02-19 Tom Tromey <tromey@redhat.com>
5322 * target-delegates.c: New file.
5323 * target.c: Include target-delegates.c.
5324 (init_dummy_target): Call install_dummy_methods.
5325 (complete_target_initialization): Call install_delegators.
5326 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
5327 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
5328 * make-target-delegates: New file.
5330 2014-02-19 Tom Tromey <tromey@redhat.com>
5332 * record.c (find_record_target): Use find_target_at.
5333 * target.c (find_target_at): New function.
5334 * target.h (find_target_at): Declare.
5336 2014-02-19 Tom Tromey <tromey@redhat.com>
5338 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
5340 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
5342 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
5343 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
5345 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
5347 * linux-nat.c (save_sigtrap): Update.
5348 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
5349 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
5350 (linux_nat_close): Update.
5351 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
5353 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
5355 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
5356 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
5357 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
5358 (tmp_to_async): Add 'ops' argument.
5359 (record_full_stopped_by_watchpoint, record_full_async)
5360 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
5362 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
5363 (m32r_stopped_by_watchpoint): Add 'ops' argument.
5364 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
5365 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
5366 (remote_is_async_p, remote_async): Add 'ops' argument.
5367 (remote_stopped_data_address): Update.
5368 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
5369 * target.c (update_current_target)
5370 (find_default_can_async_p, find_default_is_async_p): Update.
5371 (init_dummy_target): Update.
5372 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
5373 * target.h (struct target_ops) <to_stopped_by_watchpoint,
5374 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
5375 (target_can_async_p, target_is_async_p, target_async)
5376 (target_stopped_by_watchpoint): Update.
5378 2014-02-19 Yao Qi <yao@codesourcery.com>
5381 * gdbarch.sh: Remove startup_gdbarch.
5382 * gdbarch.c: Regenerated.
5383 * gdbarch.h: Likewise.
5385 2014-02-17 Kevin Buettner <kevinb@redhat.com>
5387 * rl78-tdep.c (rl78_g10_register_name): New function.
5388 (rl78_return_value): Add g10 support.
5389 (rl78_gdbarch_init): Register rl78_g10_register_name for the
5392 2014-02-17 Doug Evans <xdje42@gmail.com>
5394 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
5395 (SUBDIR_GUILE_SRCS): Ditto.
5396 (scm-gsmob.o): Ditto.
5398 2014-02-17 Yao Qi <yao@codesourcery.com>
5400 * gnu-nat.c (ILL_RPC): Declare defined function.
5402 2014-02-17 Yao Qi <yao@codesourcery.com>
5404 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
5405 mach_msg_type_number_t.
5406 (gnu_write_inferior): Likewise.
5408 2014-02-17 Yao Qi <yao@codesourcery.com>
5410 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
5412 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
5413 (inf_validate_procs, inf_signal): Likewise.
5414 (S_exception_raise_request): Likewise.
5415 (do_mach_notify_dead_name): Likewise.
5416 (steal_exc_port): Likewise.
5417 (gnu_read_inferior): Change 'copy_count''s type to
5418 mach_msg_type_number_t.
5419 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
5422 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
5424 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
5425 flag. Adjust all users; in particular...
5426 (gnu_wait): ..., don't decrement its value in here...
5427 (gnu_create_inferior): ..., and instead set the flag in here,
5428 around the startup_inferior call, and call that one with
5429 START_INFERIOR_TRAPS_EXPECTED.
5431 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
5432 (ILL_RPC): ... new macro.
5433 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
5434 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
5435 (do_mach_notify_send_once, S_proc_setmsgport_reply)
5436 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
5437 functions with ILL_RPC macro.
5438 (S_proc_pid2task_reply, S_proc_task2pid_reply)
5439 (S_proc_task2proc_reply, S_proc_proc2task_reply)
5440 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
5441 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
5442 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
5443 (S_proc_getlogin_reply, S_proc_getsid_reply)
5444 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
5445 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
5446 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
5447 (S_proc_getnports_reply, S_proc_is_important_reply)
5448 (S_proc_get_code_reply): New stub functions, generated with
5451 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
5452 collected the type check structures.
5454 * reply_mig_hack.awk: Don't expect to see the auto keyword.
5456 2014-02-14 Doug Evans <dje@google.com>
5458 * target.c (target_write_partial): Fix result type.
5460 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
5462 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
5463 the proper offsets to access fpregset_t.
5465 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
5467 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
5468 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
5469 * h8300-tdep.c (setmachinelist): Remove global.
5470 * hppa-tdep.c (hppa_sigtramp): Remove global.
5471 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
5472 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
5473 * ravenscar-thread.c (update_target_observer): Remove global.
5474 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
5476 2014-02-12 Tom Tromey <tromey@redhat.com>
5478 * common/rsp-low.c: Update comments.
5479 * common/rsp-low.h: Update comments.
5481 2014-02-12 Tom Tromey <tromey@redhat.com>
5483 * common/rsp-low.c (convert_ascii_to_int): Remove.
5484 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
5486 2014-02-12 Tom Tromey <tromey@redhat.com>
5488 * common/rsp-low.h (unhexify): Don't declare.
5489 * common/rsp-low.c (unhexify): Remove.
5491 2014-02-12 Tom Tromey <tromey@redhat.com>
5493 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
5494 * common/rsp-low.c (convert_int_to_ascii): Remove.
5496 2014-02-12 Tom Tromey <tromey@redhat.com>
5498 * common/rsp-low.h (hexify): Don't declare.
5499 * common/rsp-low.c (hexify): Remove.
5501 2014-02-12 Tom Tromey <tromey@redhat.com>
5503 * common/rsp-low.c (hexify): Never take strlen of argument.
5505 2014-02-12 Tom Tromey <tromey@redhat.com>
5507 * common/rsp-low.c (bin2hex): Never take strlen of argument.
5508 * remote.c (extended_remote_run, remote_rcmd)
5509 (remote_download_trace_state_variable, remote_save_trace_data)
5510 (remote_set_trace_notes): Update.
5511 * tracepoint.c (encode_source_string, tfile_write_status)
5512 (tfile_write_uploaded_tsv): Update.
5514 2014-02-12 Tom Tromey <tromey@redhat.com>
5516 * tracepoint.c: Include rsp-low.h.
5517 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
5518 * remote.c: Include rsp-low.h.
5519 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
5520 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
5521 (remote_unescape_input): Move to common/rsp-low.c.
5522 * common/rsp-low.h: New file.
5523 * common/rsp-low.c: New file.
5524 * Makefile.in (SFILES): Add common/rsp-low.c.
5525 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
5526 (COMMON_OBS): Add rsp-low.o.
5527 (rsp-low.o): New target.
5529 2014-02-12 Tom Tromey <tromey@redhat.com>
5531 * utils.h: Include print-utils.h.
5532 (host_address_to_string, plongest, pulongest, phex, phex_nz)
5533 (int_string, core_addr_to_string, core_addr_to_string_nz)
5534 (hex_string, hex_string_custom): Don't declare.
5535 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
5536 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
5537 (hex_string_custom, int_string, core_addr_to_string)
5538 (core_addr_to_string_nz, host_address_to_string): Move to
5539 common/print-utils.c.
5540 * common/print-utils.h: New file.
5541 * common/print-utils.c: New file
5542 * Makefile.in (SFILES): Add common/print-utils.c.
5543 (HFILES_NO_SRCDIR): Add common/print-utils.h.
5544 (COMMON_OBS): Add print-utils.o.
5545 (print-utils.o): New target.
5547 2014-02-12 Tom Tromey <tromey@redhat.com>
5549 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
5551 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5553 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
5555 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5557 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
5558 if a PT_IO ptrace request returns sucessfully but indicates that 0
5559 bytes were transferred.
5561 2014-02-12 Pedro Alves <palves@redhat.com>
5562 Kevin Buettner <kevinb@redhat.com>
5564 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
5565 TYPE_INSTANCE_FLAG_CODE_SPACE.
5567 2014-02-12 Pedro Alves <palves@redhat.com>
5569 * h8300-tdep.c (pseudo_from_raw_register)
5570 (raw_from_pseudo_register): New functions.
5571 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
5574 2014-02-12 Pedro Alves <palves@redhat.com>
5576 * h8300-tdep.c (h8300_register_sim_regno): New function.
5577 (h8300_gdbarch_init): Install h8300_register_sim_regno as
5578 gdbarch_register_sim_regno hook.
5580 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5582 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
5584 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
5586 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
5588 2014-02-12 Mark Kettenis <kettenis@gnu.org>
5590 * obsd-tdep.h (obsd_init_abi): New prototype.
5591 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
5592 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
5593 (obsd_init_abi): New functions.
5594 * i386obsd-tdep.c: Include "obsd-tdep.h".
5595 (i386obsd_init_abi): Call obsd_init_abi.
5596 * amd64obsd-tdep.c: Include "obsd-tdep.h".
5597 (amd64obsd_init_abi): Call obsd_init_abi.
5598 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
5599 obsd-tdep.c to gdb_target_obs.
5601 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
5603 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
5604 double float arguments to 16-byte in the argument slots.
5606 2014-02-11 Doug Evans <xdje42@gmail.com>
5608 * configure.ac: Don't crash if pkg-config is not found and guile
5609 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
5611 * configure: Regenerate.
5613 2014-02-11 Yao Qi <yao@codesourcery.com>
5615 * aix-thread.c (aix_thread_xfer_partial): Update comments.
5616 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
5617 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
5618 * gnu-nat.c (gnu_xfer_memory): Likewise.
5619 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5620 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5621 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5622 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5624 2014-02-11 Yao Qi <yao@codesourcery.com>
5626 * target.h (enum target_xfer_error): Rename to ...
5627 (enum target_xfer_status): ... it. New. All users updated.
5628 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
5630 (TARGET_XFER_STATUS_ERROR_P): New macro.
5631 (target_xfer_error_to_string): Remove declaration.
5632 (target_xfer_status_to_string): Declare.
5633 (target_xfer_partial_ftype): Adjust it.
5634 (struct target_ops) <to_xfer_partial>: Return
5635 target_xfer_status. Add argument xfered_len. Update
5637 * target.c (target_xfer_error_to_string): Rename to ...
5638 (target_xfer_status_to_string): ... it. New. All callers
5640 (target_read_live_memory): Likewise. Call target_xfer_partial
5641 instead of target_read.
5642 (memory_xfer_live_readonly_partial): Return
5643 target_xfer_status. Add argument xfered_len.
5644 (raw_memory_xfer_partial): Likewise.
5645 (memory_xfer_partial_1): Likewise.
5646 (memory_xfer_partial): Likewise.
5647 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
5648 properly. Update debug message.
5649 (default_xfer_partial, current_xfer_partial): Likewise.
5650 (target_write_partial): Likewise.
5651 (target_read_partial): Likewise. All callers updated.
5652 (read_whatever_is_readable): Likewise.
5653 (target_write_with_progress): Likewise.
5654 (target_read_alloc_1): Likewise.
5656 * aix-thread.c (aix_thread_xfer_partial): Likewise.
5657 * auxv.c (procfs_xfer_auxv): Likewise.
5658 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
5659 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5660 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5661 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
5662 * corefile.c (read_memory): Adjust.
5663 * corelow.c (core_xfer_partial): Likewise.
5664 * ctf.c (ctf_xfer_partial): Likewise.
5665 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
5667 (darwin_xfer_partial): Likewise.
5668 * exec.c (section_table_xfer_memory_partial): Likewise. All
5670 (exec_xfer_partial): Likewise.
5671 * exec.h (section_table_xfer_memory_partial): Update
5673 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
5675 (gnu_xfer_partial): Likewise.
5676 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
5677 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
5678 (ia64_hpux_xfer_solib_got): Likewise.
5679 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
5680 type of 'partial_len' to ULONGEST.
5681 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5682 * linux-nat.c (linux_xfer_siginfo ): Likewise.
5683 (linux_nat_xfer_partial): Likewise.
5684 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
5685 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
5686 * monitor.c (monitor_xfer_memory): Likewise.
5687 (monitor_xfer_partial): Likewise.
5688 * procfs.c (procfs_xfer_partial): Likewise.
5689 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5690 * record-full.c (record_full_xfer_partial): Likewise.
5691 (record_full_core_xfer_partial): Likewise.
5692 * remote-sim.c (gdbsim_xfer_memory): Likewise.
5693 (gdbsim_xfer_partial): Likewise.
5694 * remote.c (remote_write_bytes_aux): Likewise. All callers
5696 (remote_write_bytes, remote_read_bytes): Likewise. All
5698 (remote_flash_erase): Likewise. All callers updated.
5699 (remote_write_qxfer): Likewise. All callers updated.
5700 (remote_read_qxfer): Likewise. All callers updated.
5701 (remote_xfer_partial): Likewise.
5702 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5703 (rs6000_xfer_shared_libraries): Likewise.
5704 * sol-thread.c (sol_thread_xfer_partial): Likewise.
5705 (sol_thread_xfer_partial): Likewise.
5706 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5707 (sparc_xfer_partial): Likewise.
5708 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
5710 (spu_xfer_partial): Likewise.
5711 * spu-multiarch.c (spu_xfer_partial): Likewise.
5712 * tracepoint.c (tfile_xfer_partial): Likewise.
5713 * windows-nat.c (windows_xfer_memory): Likewise.
5714 (windows_xfer_shared_libraries): Likewise.
5715 (windows_xfer_partial): Likewise.
5716 * valprint.c: Replace 'target_xfer_error' with
5717 'target_xfer_status' in comments.
5719 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
5721 Checked in by Joel Brobecker <brobecker@adacore.com>.
5722 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
5724 2014-02-11 Joel Brobecker <brobecker@adacore.com>
5726 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
5727 function parameters.
5729 2014-02-10 Will Newton <will.newton@linaro.org>
5731 * elfread.c (elf_rel_plt_read): Look for a .got section if
5732 looking up .got.plt fails.
5733 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
5734 on address passed to elf_gnu_ifunc_record_cache.
5735 (elf_gnu_ifunc_resolve_addr): Likewise.
5736 (elf_gnu_ifunc_resolver_return_stop): Likewise.
5738 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
5740 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
5741 (X_RETTURN): New macro.
5742 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
5744 * sparc64-tdep.c (sparc64_init_abi): Hook
5745 sparc_in_function_epilogue_p.
5747 2014-02-10 Gary Benson <gbenson@redhat.com>
5749 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5750 Rename name_matcher to symbol_matcher.
5752 2014-02-10 Gary Benson <gbenson@redhat.com>
5754 * symfile-debug.c (debug_qf_expand_symtabs_matching):
5755 Use expand_symtabs_file_matcher_ftype and
5756 expand_symtabs_symbol_matcher_ftype.
5758 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5760 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
5761 (struct ada_symbol_cache): New.
5762 (ada_free_symbol_cache): Forward declare.
5763 (struct ada_pspace_data): New.
5764 (ada_pspace_data_handle): New static global.
5765 (get_ada_pspace_data, ada_pspace_data_cleanup)
5766 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
5767 (cache_space, cache): Delete, now folded inside struct
5769 (ada_get_symbol_cache): New function.
5770 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
5772 (_initialize_ada_language): Remove initialization of cache_space.
5773 Move call to observer_attach_inferior_exit up, grouping it
5774 with the other observer registrations inside this function.
5775 Rename command to be more general. Add call to
5776 register_program_space_data_with_cleanup.
5778 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5780 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
5781 ada_new_objfile_observer.
5782 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
5783 (_initialize_tasks): Update uses of ada_new_objfile_observer
5784 and ada_tasks_normal_stop_observer.
5786 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5788 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
5789 returned by the 'Length attribute to integer.
5791 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5793 * ada-lang.c (_initialize_ada_language): Initialize
5794 cache_space obstack.
5796 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5798 * ada-lang.c (HASH_SIZE): New macro.
5799 (struct cache_entry): New type.
5800 (cache_space, cache): New static globals.
5801 (ada_clear_symbol_cache, find_entry): New functions.
5802 (lookup_cached_symbol, cache_symbol): Implement.
5803 (ada_new_objfile_observer, ada_free_objfile_observer): New.
5804 (_initialize_ada_language): Attach ada_new_objfile_observer
5805 and ada_free_objfile_observer.
5807 2014-02-10 Joel Brobecker <brobecker@adacore.com>
5809 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
5810 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
5811 struct block * parameter.
5812 (ada_lookup_symbol_list_worker): Constify local variable "block".
5813 Remove cast which is no longer necessary.
5815 2014-02-10 Doug Evans <xdje42@gmail.com>
5817 Add Guile as an extension language.
5818 * NEWS: Mention Guile scripting.
5819 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
5820 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
5821 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
5822 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
5823 (CLIBS): Add GUILE_LIBS.
5824 (install-guile): New rule.
5825 (guile.o): New rule.
5826 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
5827 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
5828 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
5829 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
5830 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
5831 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
5832 (scm-type.o, scm-utils.o, scm-value.o): New rules.
5833 * configure.ac: New option --with-guile.
5834 * configure: Regenerate.
5835 * config.in: Regenerate.
5836 * auto-load.c: Remove #include "python/python.h". Add #include
5837 "gdb/section-scripts.h".
5838 (source_section_scripts): Handle Guile scripts.
5839 (_initialize_auto_load): Add name of Guile objfile script to
5840 scripts-directory help text.
5841 * breakpoint.c (condition_command): Tweak comment to include Scheme.
5842 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
5843 (struct breakpoint): New member scm_bp_object.
5844 * defs.h (enum command_control_type): New value guile_control.
5845 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
5847 (show_user): Update comment.
5848 (_initialize_cli_cmds): Update help text for "show user". Update help
5849 text for max-user-call-depth.
5850 * cli/cli-script.c: Remove #include "python/python.h". Add #include
5852 (multi_line_command_p): Add guile_control.
5853 (print_command_lines): Handle guile_control.
5854 (execute_control_command, recurse_read_control_structure): Ditto.
5855 (process_next_line): Recognize "guile" commands.
5856 * disasm.c (gdb_disassemble_info): Make non-static.
5857 * disasm.h: #include "dis-asm.h".
5858 (struct gdbarch): Add forward decl.
5859 (gdb_disassemble_info): Declare.
5860 * extension.c: #include "guile/guile.h".
5861 (extension_languages): Add guile.
5862 (get_ext_lang_defn): Handle EXT_LANG_GDB.
5863 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
5864 * gdbtypes.c (get_unsigned_type_max): New function.
5865 (get_signed_type_minmax): New function.
5866 * gdbtypes.h (get_unsigned_type_max): Declare.
5867 (get_signed_type_minmax): Declare.
5868 * guile/README: New file.
5869 * guile/guile-internal.h: New file.
5870 * guile/guile.c: New file.
5871 * guile/guile.h: New file.
5872 * guile/scm-arch.c: New file.
5873 * guile/scm-auto-load.c: New file.
5874 * guile/scm-block.c: New file.
5875 * guile/scm-breakpoint.c: New file.
5876 * guile/scm-disasm.c: New file.
5877 * guile/scm-exception.c: New file.
5878 * guile/scm-frame.c: New file.
5879 * guile/scm-gsmob.c: New file.
5880 * guile/scm-iterator.c: New file.
5881 * guile/scm-lazy-string.c: New file.
5882 * guile/scm-math.c: New file.
5883 * guile/scm-objfile.c: New file.
5884 * guile/scm-ports.c: New file.
5885 * guile/scm-pretty-print.c: New file.
5886 * guile/scm-safe-call.c: New file.
5887 * guile/scm-string.c: New file.
5888 * guile/scm-symbol.c: New file.
5889 * guile/scm-symtab.c: New file.
5890 * guile/scm-type.c: New file.
5891 * guile/scm-utils.c: New file.
5892 * guile/scm-value.c: New file.
5893 * guile/lib/gdb.scm: New file.
5894 * guile/lib/gdb/boot.scm: New file.
5895 * guile/lib/gdb/experimental.scm: New file.
5896 * guile/lib/gdb/init.scm: New file.
5897 * guile/lib/gdb/iterator.scm: New file.
5898 * guile/lib/gdb/printing.scm: New file.
5899 * guile/lib/gdb/types.scm: New file.
5900 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
5901 (VPATH): Add $(GUILE_SRCDIR).
5902 (GUILE_DIR): New variable.
5903 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
5904 (all): Add stamp-guile dependency.
5905 (stamp-guile): New rule.
5906 (clean-guile, install-guile, uninstall-guile): New rules.
5907 (install-only): Add install-guile dependency.
5908 (uninstall): Add uninstall-guile dependency.
5909 (clean): Add clean-guile dependency.
5911 2014-02-09 Doug Evans <xdje42@gmail.com>
5913 Revert this patch (which I approved, mea culpa).
5915 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5917 * Makefile.in (all-lib): Remove.
5918 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5920 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5922 Fix Python stack corruption.
5923 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
5926 2014-02-08 Mark Kettenis <kettenis@gnu.org>
5928 * Makefile.in (all-lib): Remove.
5929 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
5931 2014-02-07 Doug Evans <dje@google.com>
5933 * extension-priv.h (extension_language_script_ops): Add comment.
5934 (extension_language_ops): Add comment.
5935 (active_ext_lang_state): Fix typo in comment.
5937 2014-02-07 Pedro Alves <palves@redhat.com>
5939 PR breakpoints/16292
5940 * infrun.c (handle_signal_stop) <signal arrives while stepping
5941 over a breakpoint>: Switch back to the stepping thread.
5943 2014-02-07 Yao Qi <yao@codesourcery.com>
5945 * target.c (target_xfer_partial): Return zero if LEN is zero.
5947 2014-02-07 Yao Qi <yao@codesourcery.com>
5949 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
5950 (ld_so_xfer_auxv): Likewise.
5951 * bfd-target.c (target_bfd_xfer_partial): Likewise.
5952 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
5953 * corelow.c (core_xfer_partial): Likewise.
5954 * ctf.c (ctf_xfer_partial): Likewise.
5955 * darwin-nat.c (darwin_read_dyld_info): Likewise.
5956 (darwin_xfer_partial): Likewise.
5957 * exec.c (exec_xfer_partial): Likewise.
5958 * gnu-nat.c (gnu_xfer_partial): Likewise.
5959 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
5960 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
5961 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
5962 * linux-nat.c (linux_xfer_siginfo): Likewise.
5963 (linux_proc_xfer_spu): Likewise.
5964 * procfs.c (procfs_xfer_partial): Likewise.
5965 * record-full.c (record_full_xfer_partial): Likewise.
5966 (record_full_core_xfer_partial): Likewise.
5967 * remote-sim.c (gdbsim_xfer_partial): Likewise.
5968 * remote.c (remote_write_qxfer): Likewise.
5969 (remote_write_qxfer, remote_read_qxfer): Likewise.
5970 (remote_xfer_partial): Likewise.
5971 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
5972 (rs6000_xfer_shared_libraries): Likewise.
5973 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
5974 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
5975 (spu_xfer_partial): Likewise.
5976 * target.c (memory_xfer_partial_1): Likewise.
5977 * tracepoint.c (tfile_xfer_partial): Likewise.
5978 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
5979 (windows_xfer_partial): Likewise.
5981 2014-02-07 Yao Qi <yao@codesourcery.com>
5983 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
5985 (core_xfer_shared_libraries_aix): Likewise.
5986 * gdbarch.c, gdbarch.h: Regenerated.
5987 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
5988 ULONGEST. Change 'len_avail' type to ULONGEST.
5989 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
5990 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
5992 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
5994 2014-02-07 Yao Qi <yao@codesourcery.com>
5996 * corefile.c (memory_error): Get 'exception' from ERR and pass
5997 'exception' to throw_error.
5999 2014-02-06 Doug Evans <xdje42@gmail.com>
6001 * configure.ac (libpython checking): Remove all but python.o from
6002 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6003 * configure: Regenerate.
6005 * Makefile.in (SFILES): Add extension.c.
6006 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6007 (COMMON_OBS): Add extension.o.
6008 * extension.h: New file.
6009 * extension-priv.h: New file.
6010 * extension.c: New file.
6012 * python/python-internal.h: #include "extension.h".
6013 (gdbpy_auto_load_enabled): Declare.
6014 (gdbpy_apply_val_pretty_printer): Declare.
6015 (gdbpy_apply_frame_filter): Declare.
6016 (gdbpy_preserve_values): Declare.
6017 (gdbpy_breakpoint_cond_says_stop): Declare.
6018 (gdbpy_breakpoint_has_cond): Declare.
6019 (void source_python_script_for_objfile): Delete.
6020 * python/python.c: #include "extension-priv.h".
6021 Delete inclusion of "observer.h".
6022 (extension_language_python): Moved here and renamed from
6023 script_language_python in py-auto-load.c.
6024 Redefined to be of type extension_language_defn.
6025 (python_extension_script_ops): New global.
6026 (python_extension_ops): New global.
6027 (struct python_env): New member previous_active.
6028 (restore_python_env): Call restore_active_ext_lang.
6029 (ensure_python_env): Call set_active_ext_lang.
6030 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6032 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6034 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6036 (gdbpy_eval_from_control_command): Renamed from
6037 eval_python_from_control_command, made static. New arg extlang.
6038 (gdbpy_source_script) Renamed from source_python_script, made static.
6040 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6041 result to int. New arg extlang.
6042 (gdbpy_source_objfile_script): Renamed from
6043 source_python_script_for_objfile, made static. New arg extlang.
6044 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6045 static. New args extlang, extlang_printers. Change result type to
6047 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6048 static. New arg extlang. Rename arg printers to extlang_printers
6049 and change type to ext_lang_type_printers *.
6050 (gdbpy_free_type_printers): Renamed from free_type_printers, made
6051 static. Replace argument arg with extlang, extlang_printers.
6052 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6053 (!HAVE_PYTHON, source_python_script): Delete.
6054 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6055 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6056 (!HAVE_PYTHON, start_type_printers): Delete.
6057 (!HAVE_PYTHON, apply_type_printers): Delete.
6058 (!HAVE_PYTHON, free_type_printers): Delete.
6059 (_initialize_python): Delete call to observer_attach_before_prompt.
6060 (finalize_python): Set/restore active extension language.
6061 (gdbpy_finish_initialization) Renamed from
6062 finish_python_initialization, made static. New arg extlang.
6063 (gdbpy_initialized): New function.
6064 * python/python.h: #include "extension.h". Delete #include
6065 "value.h", "mi/mi-cmds.h".
6066 (extension_language_python): Declare.
6067 (GDBPY_AUTO_FILE_NAME): Delete.
6068 (enum py_bt_status): Moved to extension.h and renamed to
6070 (enum frame_filter_flags): Moved to extension.h.
6071 (enum py_frame_args): Moved to extension.h and renamed to
6072 ext_lang_frame_args.
6073 (finish_python_initialization): Delete.
6074 (eval_python_from_control_command): Delete.
6075 (source_python_script): Delete.
6076 (apply_val_pretty_printer): Delete.
6077 (apply_frame_filter): Delete.
6078 (preserve_python_values): Delete.
6079 (gdbpy_script_language_defn): Delete.
6080 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
6081 (start_type_printers, apply_type_printers, free_type_printers): Delete.
6083 * auto-load.c: #include "extension.h".
6084 (GDB_AUTO_FILE_NAME): Delete.
6085 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
6086 (script_language_gdb): Delete, moved to extension.c and renamed to
6087 extension_language_gdb.
6088 (source_gdb_script_for_objfile): Delete.
6089 (auto_load_pspace_info): New member unsupported_script_warning_printed.
6090 (loaded_script): Change type of language member to
6091 struct extension_language_defn *.
6092 (init_loaded_scripts_info): Initialize
6093 unsupported_script_warning_printed.
6094 (maybe_add_script): Make static. Change type of language arg to
6095 struct extension_language_defn *.
6096 (clear_section_scripts): Reset unsupported_script_warning_printed.
6097 (auto_load_objfile_script_1): Rewrite to use extension language API.
6098 (auto_load_objfile_script): Make public. Remove support-compiled-in
6099 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
6100 (source_section_scripts): Rewrite to use extension language API.
6101 (load_auto_scripts_for_objfile): Rewrite to use
6102 auto_load_scripts_for_objfile.
6103 (collect_matching_scripts_data): Change type of language member to
6104 struct extension_language_defn *.
6105 (auto_load_info_scripts): Change type of language arg to
6106 struct extension_language_defn *.
6107 (unsupported_script_warning_print): New function.
6108 (script_not_found_warning_print): Make static.
6109 (_initialize_auto_load): Rewrite construction of scripts-directory
6111 * auto-load.h (struct objfile): Add forward decl.
6112 (struct script_language): Delete.
6113 (struct auto_load_pspace_info): Add forward decl.
6114 (struct extension_language_defn): Add forward decl.
6115 (maybe_add_script): Delete.
6116 (auto_load_objfile_script): Declare.
6117 (script_not_found_warning_print): Delete.
6118 (auto_load_info_scripts): Update prototype.
6119 (auto_load_gdb_scripts_enabled): Declare.
6120 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
6121 auto_load_python_scripts_enabled and made public.
6122 (script_language_python): Delete, moved to python.c.
6123 (gdbpy_script_language_defn): Delete.
6124 (info_auto_load_python_scripts): Update to use
6125 extension_language_python.
6127 * breakpoint.c (condition_command): Replace call to
6128 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
6129 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
6130 with call to breakpoint_ext_lang_cond_says_stop.
6131 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
6132 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
6133 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
6134 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
6136 (local_setattro): Print name of extension language with existing
6139 * valprint.c (val_print, value_print): Update to call
6140 apply_ext_lang_val_pretty_printer.
6141 * cp-valprint.c (cp_print_value): Update call to
6142 apply_ext_lang_val_pretty_printer.
6143 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
6144 (gdbpy_apply_val_pretty_printer): Renamed from
6145 apply_val_pretty_printer. New arg extlang.
6146 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
6148 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
6149 extension language API.
6150 * cli/cli-script.c (execute_control_command): Update to call
6151 eval_ext_lang_from_control_command.
6153 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
6154 enum ext_lang_bt_status values. Update call to
6155 apply_ext_lang_frame_filter.
6156 (mi_cmd_stack_list_locals): Ditto.
6157 (mi_cmd_stack_list_args): Ditto.
6158 (mi_cmd_stack_list_variables): Ditto.
6159 * mi/mi-main.c: Delete #include "python/python-internal.h".
6160 Add #include "extension.h".
6161 (mi_cmd_list_features): Replace reference to python internal variable
6162 gdb_python_initialized with call to ext_lang_initialized_p.
6164 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
6165 Update to use enum ext_lang_frame_args. Update to call
6166 apply_ext_lang_frame_filter.
6167 * python/py-framefilter.c (extract_sym): Update to use enum
6169 (extract_value, py_print_type, py_print_value): Ditto.
6170 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
6171 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
6172 (py_print_frame): Ditto.
6173 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
6174 New arg extlang. Update to use enum ext_lang_bt_status.
6176 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
6177 finish_python_initialization. Replace with call to
6178 finish_ext_lang_initialization.
6180 * typeprint.c (do_free_global_table): Update to call
6181 free_ext_lang_type_printers.
6182 (create_global_typedef_table): Update to call
6183 start_ext_lang_type_printers.
6184 (find_global_typedef): Update to call apply_ext_lang_type_printers.
6185 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
6186 (type_print_options): Change type of global_printers from "void *"
6187 to "struct ext_lang_type_printers *".
6189 * value.c (preserve_values): Update to call preserve_ext_lang_values.
6190 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
6191 (gdbpy_preserve_values): Renamed from preserve_python_values.
6193 (!HAVE_PYTHON, preserve_python_values): Delete.
6195 * utils.c (quit_flag): Delete, moved to extension.c.
6196 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
6199 * eval.c: Delete #include "python/python.h".
6200 * main.c: Delete #include "python/python.h".
6202 * defs.h: Update comment.
6204 2014-02-06 Joel Brobecker <brobecker@adacore.com>
6208 2014-02-05 Mark Kettenis <kettenis@gnu.org>
6210 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
6213 2014-02-05 Yao Qi <yao@codesourcery.com>
6215 * remote.c (remote_pass_signals): Remove local 'buf' and use
6217 (remote_program_signals): Likewise.
6219 2014-02-05 Yao Qi <yao@codesourcery.com>
6221 * ctf.c: Include "inferior.h" and "gdbthread.h".
6222 (CTF_PID): A new macro.
6223 (ctf_open): Call inferior_appeared and add_thread_silent.
6224 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
6225 (ctf_thread_alive): New function.
6226 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
6228 2014-02-05 Yao Qi <yao@codesourcery.com>
6232 2013-05-24 Yao Qi <yao@codesourcery.com>
6234 * tracepoint.c (TFILE_PID): Remove.
6235 (tfile_open): Don't add thread and inferior.
6236 (tfile_close): Don't set 'inferior_ptid'. Don't call
6237 exit_inferior_silent.
6238 (tfile_thread_alive): Remove.
6239 (init_tfile_ops): Don't set field 'to_thread_alive' of
6242 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
6244 * remote.c (remote_start_remote): Call remote_check_symbols even
6245 if only symbol-file (not file) has been given.
6247 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6249 * gdbarch.sh (skip_entrypoint): New callback.
6250 * gdbarch.c, gdbarch.h: Regenerate.
6251 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
6252 * infrun.c (fill_in_stop_func): Likewise.
6253 * ppc-linux-tdep.c: Include "elf/ppc64.h".
6254 (ppc_elfv2_elf_make_msymbol_special): New function.
6255 (ppc_elfv2_skip_entrypoint): Likewise.
6256 (ppc_linux_init_abi): Install them for ELFv2.
6258 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6260 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
6261 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
6262 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
6263 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
6264 structures returned in GPRs.
6266 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6268 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
6269 offset to the stack parameter list for the ELFv2 ABI.
6271 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6273 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
6274 set_gdbarch_convert_from_func_ptr_addr and
6275 set_gdbarch_elf_make_msymbol_special for ELFv1.
6276 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
6277 function descriptors on ELFv1.
6278 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
6279 set up r12 at function entry.
6281 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6283 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
6284 (struct gdbarch_tdep): New member elf_abi.
6286 * rs6000-tdep.c: Include "elf/ppc64.h".
6287 (rs6000_gdbarch_init): Detect ELF ABI version.
6289 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6291 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
6292 within a register pair holding a DFP 128-bit value on little-endian.
6293 (ppc64_sysv_abi_return_value_base): Likewise.
6294 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
6295 (dfp_pseudo_register_write): Likewise.
6297 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6299 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
6300 offset on little-endian when passing _Decimal32.
6301 (ppc64_sysv_abi_return_value_base): Likewise for return values.
6303 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6305 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
6306 of the overlapped FP register within the VSX register on little-
6308 (efpr_pseudo_register_write): Likewise.
6310 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6312 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
6313 offset on little-endian when passing small structures.
6315 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6317 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
6318 (struct ppc64_sysv_argpos): New data structure.
6319 (ppc64_sysv_abi_push_float): Remove.
6320 (ppc64_sysv_abi_push_val): New function.
6321 (ppc64_sysv_abi_push_integer): Likewise.
6322 (ppc64_sysv_abi_push_freg): Likewise.
6323 (ppc64_sysv_abi_push_vreg): Likewise.
6324 (ppc64_sysv_abi_push_param): Likewise.
6325 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
6326 (ppc64_sysv_abi_return_value_base): New function.
6327 (ppc64_sysv_abi_return_value): Refactor to use it.
6329 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6331 * NEWS: Document new target powerpc64le-*-linux*.
6333 2014-02-04 Mark Kettenis <kettenis@gnu.org>
6335 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
6336 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
6338 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
6339 register set used in ELF core dumps. Add floating-point register set.
6341 2014-02-03 Kevin Buettner <kevinb@redhat.com>
6343 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
6344 dwarf2_to_gdb[] table using symbolic constants. Adjust
6345 penultimate entry from number representing the PC register
6346 to symbolic constant representing the MDR register. Add
6347 constant for the PC register to the end of the table.
6349 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6351 * bsd-kvm.c: Include <sys/param.h>
6353 2014-02-03 Mark Kettenis <kettenis@gnu.org>
6355 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
6357 2014-01-31 Joel Brobecker <brobecker@adacore.com>
6359 * ada-lang.h (clear_ada_sym_cache): Delete.
6361 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
6363 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
6365 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
6367 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
6368 the sigreturn register save area only if the syscall is
6371 2014-01-29 Joel Brobecker <brobecker@adacore.com>
6373 * valops.c (value_slice): Minor reformatting.
6375 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
6377 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
6379 2014-01-28 Joel Brobecker <brobecker@adacore.com>
6381 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
6383 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
6384 (ada_ignore_descriptive_types_p): New static global.
6385 (find_parallel_type_by_descriptive_type): Return immediately
6386 if ada_ignore_descriptive_types_p is set.
6387 (_initialize_ada_language): Register new commands "maintenance
6388 set ada", "maintenance show ada", "maintenance set ada
6389 ignore-descriptive-types" and "maintenance show ada
6390 ignore-descriptive-types".
6391 * NEWS: Add entry for new "maint ada set/show
6392 ignore-descriptive-types" commands.
6394 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
6396 * record-btrace.c (record_btrace_close): Call btrace_teardown
6399 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6401 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
6404 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6406 * ada-typeprint (type_is_full_subrange_of_target_type):
6408 (print_range): Add parameter bounds_prefered_p. If not set,
6409 try printing range types using the name of their base type.
6410 (print_range_type): Add parameter bounds_prefered_p.
6411 Use it in call to print_range.
6412 (print_array_type, ada_print_type): Update calls to print_range
6413 and print_range_type.
6415 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6417 * ada-typeprint.c (print_array_type, print_choices, print_range)
6418 (print_range_bound, print_dynamic_range_bound, print_range_type):
6421 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6423 * ada-typeprint.c (print_range): Add missing empty line
6424 after local declaration.
6426 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6428 * ada-valprint.c (print_optional_low_bound): Get index_type's
6429 target type for as long as it is a TYPE_CODE_RANGE.
6431 2014-01-27 Joel Brobecker <brobecker@adacore.com>
6433 * procfs.c (procfs_make_note_section): Remove assertion and
6436 2014-01-24 Yao Qi <yao@codesourcery.com>
6438 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
6439 * corelow.c (get_core_siginfo): Likewise.
6441 2014-01-24 Yao Qi <yao@codesourcery.com>
6443 * remote.c (remote_write_bytes_aux): Change type of 'len' to
6444 ULONGEST. Don't check 'len' is negative.
6445 (remote_write_bytes): Change type of 'len' to ULONGEST.
6447 2014-01-23 Tom Tromey <tromey@redhat.com>
6450 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
6451 Handle exception from frame.block.
6452 (FrameVars.fetch_frame_locals): Likewise.
6454 2014-01-23 Tom Tromey <tromey@redhat.com>
6457 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
6458 on a NULL pointer. Move "goto error" to correct place.
6460 2014-01-23 Tom Tromey <tromey@redhat.com>
6463 * python/py-framefilter.c (apply_frame_filter): Call
6464 ensure_python_env after computing gdbarch.
6466 2014-01-23 Yao Qi <yao@codesourcery.com>
6468 * target.c (raw_memory_xfer_partial): Change argument type
6469 from void * to gdb_byte *.
6470 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
6472 2014-01-22 Doug Evans <dje@google.com>
6474 New gdbserver option --debug-format=timestamp.
6477 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
6479 * syscalls/s390x-linux.xml: New file.
6480 * syscalls/s390-linux.xml: New file.
6481 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
6482 (XML_SYSCALL_FILENAME_S390X): Likewise.
6483 (op_svc): New enum value for SVC opcode.
6484 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
6485 (s390_linux_get_syscall_number): New function.
6486 (s390_gdbarch_init): Register '*get_syscall_number' and the
6487 syscall xml file name.
6488 * data-directory/Makefile.in (SYSCALLS_FILES): Add
6489 "s390-linux.xml" and "s390x-linux.xml".
6490 * NEWS: Announce new feature.
6492 2014-01-22 Baruch Siach <baruch@tkos.co.il>
6494 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
6496 2014-01-22 Pedro Alves <palves@redhat.com>
6498 * xtensa-config.c: Include defs.h.
6500 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6502 * common/common-utils.h: Add "ARI:" comment beside __func__
6505 2014-01-22 Joel Brobecker <brobecker@adacore.com>
6507 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
6508 documentation a bit.
6510 2014-01-21 Roland McGrath <mcgrathr@google.com>
6512 * configure.ac: Call AM_PROG_INSTALL_STRIP.
6513 * configure: Regenerate.
6514 * aclocal.m4: Regenerate.
6515 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
6516 New substituted variables.
6517 (install-strip): New target.
6518 (INSTALL_SCRIPT): New substituted variable.
6519 (FLAGS_TO_PASS): Add it.
6520 (install-only): Use $(INSTALL_SCRIPT) rather than
6521 $(INSTALL_PROGRAM) for gcore.
6523 2014-01-20 Tom Tromey <tromey@redhat.com>
6525 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
6528 2014-01-20 Tom Tromey <tromey@redhat.com>
6530 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
6531 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
6532 (deprecated_cmd_warning, complete_on_cmdlist): Update.
6533 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
6534 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
6535 (struct cmd_list_element) <flags>: Remove.
6536 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
6537 doc_allocated>: New fields.
6538 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
6540 * maint.c (maintenance_do_deprecate): Update.
6541 * top.c (execute_command): Update.
6543 2014-01-20 Baruch Siach <baruch@tkos.co.il>
6545 * xtensa-linux-nat.c: Include asm/ptrace.h.
6547 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6549 * Makefile.in (SFILES): Add d-support.c.
6550 (COMMON_OBS): Add d-support.o.
6551 * d-lang.h (d_parse_symbol): Add comment, now defined in
6553 * d-lang.c (parse_call_convention)
6554 (parse_attributes, parse_function_types)
6555 (parse_function_args, parse_type, parse_identifier)
6556 (call_convention_p, d_parse_symbol): Move functions to ...
6557 * d-support.c: ... New file.
6559 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6561 * d-lang.h (d_parse_symbol): Add declaration.
6562 * d-lang.c (extract_identifiers)
6563 (extract_type_info): Remove functions.
6564 (parse_call_convention, parse_attributes)
6565 (parse_function_types, parse_function_args)
6566 (parse_type, parse_identifier, call_convention_p)
6567 (d_parse_symbol): New functions.
6568 (d_demangle): Use d_parse_symbol to demangle D symbols.
6570 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6572 * d-lang.h (struct builtin_d_type): New data type.
6573 (builtin_d_type): Add declaration.
6574 * d-lang.c (d_language_arch_info, build_d_types)
6575 (builtin_d_type): New functions.
6576 (enum d_primitive_types): New data type.
6577 (d_language_defn): Change c_language_arch_info to
6578 d_language_arch_info.
6579 (d_type_data): New static variable.
6580 (_initialize_d_language): Initialize d_type_data.
6582 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6584 * d-lang.h (d_main_name): Add declaration.
6585 * d-lang.c (d_main_name): New function.
6586 * symtab.c (find_main_name): Add call to d_main_name.
6588 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6590 * d-lang.c (d_language_defn): Change macro_expansion_c to
6593 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
6595 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6597 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
6599 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
6600 gdb_exception" declaration.
6601 * remote.c (getpkt_or_notif_sane): Likewise.
6603 2014-01-17 Doug Evans <dje@google.com>
6605 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
6606 function, contents of dirnames_to_char_ptr_vec_append moved here.
6607 (delim_string_to_char_ptr_vec): New function.
6608 (dirnames_to_char_ptr_vec_append): Rewrite.
6609 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
6611 2014-01-17 Doug Evans <dje@google.com>
6613 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
6615 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
6616 #include "common-utils.h".
6617 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
6618 * common/vec.h (VEC_ASSERT_PASS): Update.
6619 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
6620 (MACH_CHECK_ERROR): Update.
6622 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
6624 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
6626 * gdbarch.h: Regenerate.
6628 2014-01-16 Tom Tromey <tromey@redhat.com>
6630 * value.c (struct value) <regnum>: Move earlier.
6632 2014-01-16 Tom Tromey <tromey@redhat.com>
6634 * remote.c (extended_remote_create_inferior): Rename from
6635 extended_remote_create_inferior_1. Add "ops" argument. Remove
6638 2014-01-16 Pedro Alves <palves@redhat.com>
6640 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
6641 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
6644 2014-01-16 Doug Evans <dje@google.com>
6646 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
6648 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6650 * btrace.h (btrace_thread_flag): New.
6651 (struct btrace_thread_info) <flags>: New.
6652 * record-btrace.c (record_btrace_resume_thread)
6653 (record_btrace_find_thread_to_move, btrace_step_no_history)
6654 (btrace_step_stopped, record_btrace_start_replaying)
6655 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
6656 (record_btrace_find_resume_thread): New.
6657 (record_btrace_resume, record_btrace_wait): Extend.
6658 (record_btrace_can_execute_reverse): New.
6659 (record_btrace_open): Fail in non-stop mode.
6660 (record_btrace_set_replay): Split into this, ...
6661 (record_btrace_stop_replaying): ... this, ...
6662 (record_btrace_clear_histories): ... and this.
6663 (init_record_btrace_ops): Init to_can_execute_reverse.
6664 * NEWS: Announce it.
6666 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6668 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
6669 (forward_target_decr_pc_after_break)
6670 (target_decr_pc_after_break): New.
6671 * target.c (forward_target_decr_pc_after_break)
6672 (target_decr_pc_after_break): New.
6673 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
6674 instead of gdbarch_decr_pc_after_break.
6675 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6676 instead of gdbarch_decr_pc_after_break.
6677 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
6678 instead of gdbarch_decr_pc_after_break.
6679 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
6680 instead of gdbarch_decr_pc_after_break.
6681 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
6682 instead of gdbarch_decr_pc_after_break.
6683 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
6684 instead of gdbarch_decr_pc_after_break.
6686 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6688 * btrace.c: Include regcache.h.
6689 (btrace_add_pc): New.
6690 (btrace_enable): Call btrace_add_pc.
6691 (btrace_is_empty): New.
6692 * btrace.h (btrace_is_empty): New.
6693 * record-btrace.c (require_btrace, record_btrace_info): Call
6696 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6698 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
6699 Support delta reads.
6700 (linux_disable_btrace): Change return type.
6701 * common/linux-btrace.h (linux_read_btrace): Change parameters
6702 and return type to allow error reporting. Update users.
6703 (linux_disable_btrace): Change return type. Update users.
6704 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
6706 (btrace_error): New.
6707 (btrace_block) <begin>: Comment on BEGIN == 0.
6708 * btrace.c (btrace_compute_ftrace): Start from the end of
6710 (btrace_stitch_trace, btrace_clear_history): New.
6711 (btrace_fetch): Read delta trace, return if replaying.
6712 (btrace_clear): Move clear history code to btrace_clear_history.
6713 (parse_xml_btrace): Throw an error if parsing failed.
6714 * target.h (struct target_ops) <to_read_btrace>: Change parameters
6715 and return type to allow error reporting.
6716 (target_read_btrace): Change parameters and return type to allow
6718 * target.c (target_read_btrace): Update.
6719 * remote.c (remote_read_btrace): Support delta reads. Pass
6721 * NEWS: Announce it.
6723 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6725 * record.h (record_btrace_frame_unwind)
6726 (record_btrace_tailcall_frame_unwind): New declarations.
6727 * dwarf2-frame: Include record.h
6728 (dwarf2_frame_cfa): Throw an error for btrace frames.
6729 * record-btrace.c: Include hashtab.h.
6730 (btrace_get_bfun_name): New.
6731 (btrace_call_history): Call btrace_get_bfun_name.
6732 (struct btrace_frame_cache): New.
6734 (bfcache_hash, bfcache_eq, bfcache_new): New.
6735 (btrace_get_frame_function): New.
6736 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
6737 (record_btrace_frame_this_id): Compute own id.
6738 (record_btrace_frame_prev_register): Provide PC, throw_error
6739 for all other registers.
6740 (record_btrace_frame_sniffer): Detect btrace frames.
6741 (record_btrace_tailcall_frame_sniffer): New.
6742 (record_btrace_frame_dealloc_cache): New.
6743 (record_btrace_frame_unwind): Add new functions.
6744 (record_btrace_tailcall_frame_unwind): New.
6745 (_initialize_record_btrace): Allocate cache.
6746 * btrace.c (btrace_clear): Call reinit_frame_cache.
6747 * NEWS: Announce it.
6749 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6751 * record-btrace.c (record_btrace_set_replay)
6752 (record_btrace_goto_begin, record_btrace_goto_end)
6753 (record_btrace_goto): New.
6754 (init_record_btrace_ops): Initialize them.
6755 * NEWS: Announce it.
6757 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6759 * record-btrace.c (record_btrace_find_new_threads)
6760 (record_btrace_thread_alive): New.
6761 (init_record_btrace_ops): Initialize to_find_new_threads and
6764 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6766 * record-btrace.c (record_btrace_resume): New.
6767 (record_btrace_wait): New.
6768 (init_record_btrace_ops): Initialize to_wait and to_resume.
6770 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6772 * record-btrace.c (record_btrace_xfer_partial)
6773 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
6774 (record_btrace_allow_memory_access): New.
6775 (init_record_btrace_ops): Initialize new methods.
6776 * target.c (raw_memory_xfer_partial): Bail out if target reports
6777 that this memory is not available.
6779 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6781 * target.h (target_ops) <to_insert_breakpoint>
6782 <to_remove_breakpoint>: Add target_ops parameter.
6783 (forward_target_insert_breakpoint): New.
6784 (forward_target_remove_breakpoint): New.
6785 (memory_remove_breakpoint, memory_insert_breakpoint):
6786 Add target_ops parameter.
6787 * target.c (target_insert_breakpoint): Split into this and ...
6788 (forward_target_insert_breakpoint): ... this.
6789 (target_remove_breakpoint): Split into this and ...
6790 (forward_target_remove_breakpoint): ... this.
6791 (debug_to_insert_breakpoint): Add target_ops parameter.
6792 Call forward_target_insert_breakpoint.
6793 (debug_to_remove_breakpoint): Add target_ops parameter.
6794 Call forward_target_remove_breakpoint.
6795 (update_current_target): Do not inherit or default to_insert_breakpoint
6796 and to_remove_breakpoint.
6797 * corelow.c (ignore): Add target_ops parameter.
6798 * exec.c (ignore): Add target_ops parameter.
6799 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
6800 Add target_ops parameter.
6801 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
6802 Add target_ops parameter.
6803 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
6804 Add target_ops parameter.
6805 * record-full.c (record_full_beneath_to_insert_breakpoint)
6806 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
6807 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
6808 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
6809 (record_full_core_remove_breakpoint): Add target_ops parameter.
6811 (record_full_beneath_to_insert_breakpoint_ops)
6812 (record_full_beneath_to_remove_breakpoint_ops)
6813 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
6814 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
6815 tmp_to_remove_breakpoint_ops,
6816 record_full_beneath_to_insert_breakpoint_ops, and
6817 record_full_beneath_to_remove_breakpoint_ops.
6818 * remote-m32r-sdi.c (m32r_insert_breakpoint)
6819 (m32r_remove_breakpoint): Add target_ops parameter.
6820 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
6821 Add target_ops parameter.
6822 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
6823 Add target_ops parameter.
6825 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6826 Markus Metzger <markus.t.metzger@intel.com>
6828 * record-btrace.c: Include frame-unwind.h.
6829 (record_btrace_frame_unwind_stop_reason)
6830 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
6831 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
6833 (init_record_btrace_ops): Install it.
6835 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6837 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
6840 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6842 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
6845 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6847 * frame-unwind.c: Include target.h.
6848 (frame_unwind_try_unwinder): New function with code from ...
6849 (frame_unwind_find_by_frame): ... here. New variable
6850 unwinder_from_target, call also target_get_unwinder)
6851 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
6852 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
6853 * target.h (struct target_ops): New fields to_get_unwinder and
6854 to_get_tailcall_unwinder.
6855 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
6857 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6859 * record-btrace.c (record_btrace_fetch_registers)
6860 (record_btrace_store_registers)
6861 (record_btrace_to_prepare_to_store): New.
6862 (init_record_btrace_ops): Add the above.
6864 2014-01-16 Tom Tromey <tromey@redhat.com>
6866 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
6867 * target.h (struct target_ops) <to_prepare_to_store>: Add
6869 (target_prepare_to_store): Add argument.
6870 * target.c (debug_to_prepare_to_store): Add argument.
6871 (update_current_target): Update.
6872 * remote.c (remote_prepare_to_store): Add 'self' argument.
6873 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
6874 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
6875 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
6876 * record-full.c (record_full_core_prepare_to_store): Add 'self'
6878 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
6879 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
6880 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
6881 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
6882 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
6884 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6886 * btrace.h (replay) <replay>: New.
6887 (btrace_is_replaying): New.
6888 * btrace.c (btrace_clear): Free replay iterator.
6889 (btrace_is_replaying): New.
6890 * record-btrace.c (record_btrace_is_replaying): New.
6891 (record_btrace_info): Print insn number if replaying.
6892 (record_btrace_insn_history): Start at replay position.
6893 (record_btrace_call_history): Start at replay position.
6894 (init_record_btrace_ops): Init to_record_is_replaying.
6896 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6898 * record-btrace.c (record_btrace_insn_history_range): Include
6900 (record_btrace_insn_history_from): Adjust range.
6901 (record_btrace_call_history_range): Include
6903 (record_btrace_call_history_from): Adjust range.
6904 * NEWS: Announce changes.
6906 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6908 * record.h (enum record_print_flag)
6909 <record_print_indent_calls>: New.
6910 * record.c (get_call_history_modifiers): Recognize /c modifier.
6911 (_initialize_record): Document /c modifier.
6912 * record-btrace.c (btrace_call_history): Add btinfo parameter.
6913 Reorder fields. Optionally indent the function name. Update
6915 * NEWS: Announce changes.
6917 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6919 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
6921 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6923 * btrace.c (ftrace_new_function): Start counting at one.
6924 * record-btrace.c (record_btrace_info): Adjust number of calls
6926 * NEWS: Announce it.
6928 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6930 * record-btrace.c (btrace_call_history_insn_range): Print
6931 insn range as [begin, end].
6933 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
6935 * btrace.h (struct btrace_func_link): New.
6936 (enum btrace_function_flag): New.
6937 (struct btrace_inst): Rename to ...
6938 (struct btrace_insn): ...this. Update all users.
6939 (struct btrace_func) <ibegin, iend>: Remove.
6940 (struct btrace_func_link): New.
6941 (struct btrace_func): Rename to ...
6942 (struct btrace_function): ...this. Update all users.
6943 (struct btrace_function) <segment, flow, up, insn, insn_offset)
6944 (number, level, flags>: New.
6945 (struct btrace_insn_iterator): Rename to ...
6946 (struct btrace_insn_history): ...this.
6948 (struct btrace_insn_iterator, btrace_call_iterator): New.
6949 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
6950 (struct btrace_target_info) <begin, end, level>
6951 <insn_history, call_history>: New.
6952 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6953 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6954 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6955 (btrace_call_number, btrace_call_begin, btrace_call_end)
6956 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6957 (btrace_find_function_by_number, btrace_set_insn_history)
6958 (btrace_set_call_history): New.
6959 * btrace.c (btrace_init_insn_iterator)
6960 (btrace_init_func_iterator, compute_itrace): Remove.
6961 (ftrace_print_function_name, ftrace_print_filename)
6962 (ftrace_skip_file): Change
6964 (ftrace_init_func): Remove.
6965 (ftrace_debug): Use new btrace_function fields.
6966 (ftrace_function_switched): Also consider gaining and
6967 losing symbol information).
6968 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
6969 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
6970 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
6972 (ftrace_new_function): Move. Remove debug print.
6973 (ftrace_update_lines, ftrace_update_insns): New.
6974 (ftrace_update_function): Check for call, ret, and jump.
6975 (compute_ftrace): Renamed to ...
6976 (btrace_compute_ftrace): ...this. Rewritten to compute call
6978 (btrace_fetch, btrace_clear): Updated.
6979 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
6980 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
6981 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
6982 (btrace_call_number, btrace_call_begin, btrace_call_end)
6983 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
6984 (btrace_find_function_by_number, btrace_set_insn_history)
6985 (btrace_set_call_history): New.
6986 * record-btrace.c (require_btrace): Use new btrace thread
6988 (record_btrace_info, btrace_insn_history)
6989 (record_btrace_insn_history, record_btrace_insn_history_range):
6990 Use new btrace thread info fields and new iterator.
6991 (btrace_func_history_src_line): Rename to ...
6992 (btrace_call_history_src_line): ...this. Use new btrace
6994 (btrace_func_history): Rename to ...
6995 (btrace_call_history): ...this. Use new btrace thread info
6996 fields and new iterator.
6997 (record_btrace_call_history, record_btrace_call_history_range):
6998 Use new btrace thread info fields and new iterator.
7000 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7002 * frame.h (frame_id_build_unavailable_stack_special): New.
7003 * frame.c (frame_id_build_unavailable_stack_special): New.
7005 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7007 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7008 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7009 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7011 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7012 (i386_insn_is_jump, i386_jmp_p): New.
7013 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7014 insn_is_jump to gdbarch.
7015 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7016 * gdbarch.h: Regenerated.
7017 * gdbarch.c: Regenerated.
7018 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7019 (default_insn_is_jump): New.
7020 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7021 (default_insn_is_jump): New.
7023 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7025 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7027 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7028 (btrace_read_type) <btrace_read_new>: Change to ...
7029 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7031 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7033 * common/linux-btrace.c (linux_read_btrace): Free trace from
7036 2014-01-15 Doug Evans <dje@google.com>
7038 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7041 2014-01-15 Tom Tromey <tromey@redhat.com>
7043 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7044 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7045 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7046 (set_objfile_main_name): New function.
7047 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7048 language_of_main>: New fields.
7049 (set_objfile_main_name): Declare.
7050 * symtab.c (find_main_name): Loop over objfiles to find the main
7052 (set_main_name): Now static.
7053 (get_main_info): Add comment.
7054 * symtab.h (set_main_name): Don't declare.
7056 2014-01-15 Tom Tromey <tromey@redhat.com>
7058 * symtab.c (main_progspace_key): New global.
7059 (struct main_info): New.
7060 (name_of_main, language_of_main): Remove.
7061 (get_main_info, main_info_cleanup): New function.
7062 (set_main_name, main_name, main_language): Use get_main_info.
7063 (_initialize_symtab): Initialize main_progspace_key.
7065 2014-01-15 Tom Tromey <tromey@redhat.com>
7067 * dbxread.c (process_one_symbol): Update.
7068 * dwarf2read.c (read_partial_die): Update.
7069 * symfile.c (set_initial_language): Call main_language.
7070 * symtab.c (language_of_main): Now static.
7071 (set_main_name): Add 'lang' parameter.
7072 (find_main_name): Update.
7073 (main_language): New function.
7074 (symtab_observer_executable_changed): Update.
7075 * symtab.h (set_main_name): Update.
7076 (language_of_main): Remove.
7077 (main_language): Declare.
7079 2014-01-15 Tom Tromey <tromey@redhat.com>
7081 * symfile.c (init_entry_point_info): Use new "initialized" field.
7083 * objfiles.h (struct entry_point) <initialized>: New field.
7084 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
7085 (struct objfile) <ei>: ...here. Remove.
7086 * objfiles.c (entry_point_address_query): Update.
7088 2014-01-15 Tom Tromey <tromey@redhat.com>
7090 * objfiles.c (entry_point_address_query): Relocate entry point
7092 (objfile_relocate1): Do not relocate entry point address.
7093 * objfiles.h (struct entry_info) <entry_point>: Update comment.
7094 <the_bfd_section_index>: New field.
7095 * symfile.c (init_entry_point_info): Find the entry point's
7098 2014-01-15 Tom Tromey <tromey@redhat.com>
7100 * solib-frv.c (enable_break): Use entry_point_address_query.
7102 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7104 * NEWS: Add note on improved process record-replay on
7105 arm*-linux* targets.
7107 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7109 * arm-tdep.c (enum arm_record_result): New enum.
7110 (arm_record_unsupported_insn): New function.
7111 (arm_record_coproc_data_proc): Removed.
7112 (thumb2_record_ld_st_multiple): New function.
7113 (thumb2_record_ld_st_dual_ex_tbb): New function.
7114 (thumb2_record_data_proc_sreg_mimm): New function.
7115 (thumb2_record_ps_dest_generic): New function.
7116 (thumb2_record_branch_misc_cntrl): New function.
7117 (thumb2_record_str_single_data): New function.
7118 (thumb2_record_ld_mem_hints): New function.
7119 (thumb2_record_ld_word): New function.
7120 (thumb2_record_lmul_lmla_div): New function.
7121 (thumb2_record_decode_insn_handler): New function.
7122 (decode_insn): Add thumb32 instruction handlers.
7124 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7126 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
7127 (struct arm_linux_record_tdep): Declare.
7128 (arm_canonicalize_syscall): New function.
7129 (arm_all_but_pc_registers_record): New function.
7130 (arm_linux_syscall_record): New function.
7131 (arm_linux_init_abi): Add syscall recording constructs.
7132 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
7133 decoding. (arm_record_coproc_data_proc): Update arm syscall
7135 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
7136 <arm_syscall_record>: New field.
7137 * configure.tgt (arm*-*-linux*): Add linux-record.o to
7140 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7142 * arm-tdep.c (thumb_record_misc): Update to use sp as base
7143 register for push instruction recording.
7145 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7147 * arm-tdep.c (thumb_record_misc): Update to correct logical
7148 error while recording ldm, ldmia and pop instructions.
7150 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
7152 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
7154 2014-01-15 Pedro Alves <palves@redhat.com>
7156 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
7157 (go32_resume, go32_fetch_registers, store_register)
7158 (go32_store_registers, go32_prepare_to_store)
7159 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
7160 (go32_create_inferior, go32_can_run, go32_terminal_init)
7161 (go32_terminal_inferior, go32_terminal_ours): Delete forward
7164 2014-01-15 Tom Tromey <tromey@redhat.com>
7166 * target.h (async_callback_ftype): New typedef.
7167 (struct target_ops) <to_async>: Use it.
7169 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7171 * python/py-value.c (get_field_type): Remove unnecessary curly
7172 braces for single-statement if block.
7174 2014-01-15 Joel Brobecker <brobecker@adacore.com>
7176 * python/py-type.c (convert_field): Add missing empty line
7179 2014-01-14 Doug Evans <dje@google.com>
7181 * symfile.h (expand_symtabs_matching): Renamed from
7182 expand_partial_symbol_names. Update prototype.
7183 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7184 * symfile.c (expand_symtabs_matching): Renamed from
7185 expand_partial_symbol_names. New args file_matcher, kind.
7186 Rename arg fun to symbol_matcher.
7187 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
7188 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
7189 ada_expand_partial_symbol_name.
7190 (ada_make_symbol_completion_list): Update to call
7191 expand_symtabs_matching.
7192 (ada_add_global_exceptions): Call expand_symtabs_matching.
7193 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
7194 call map_symbol_filenames.
7195 * symtab.c (sources_info): Update to call map_symbol_filenames.
7196 (search_symbols): Call expand_symtabs_matching.
7197 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
7198 (default_make_symbol_completion_list_break_on): Update to call
7199 expand_symtabs_matching.
7200 (make_source_files_completion_list): Update to call
7201 map_symbol_filenames.
7203 2014-01-14 Doug Evans <dje@google.com>
7205 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
7206 (expand_symtabs_symbol_matcher_ftype): New typedef.
7207 (quick_symbol_functions.expand_symtabs_matching): Update to use.
7208 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7209 * symfile.c (expand_partial_symbol_names): Update to use
7210 expand_symtabs_symbol_matcher_ftype.
7211 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
7212 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7213 Arg name_matcher renamed to symbol_matcher.
7214 * psymtab.c (recursively_search_psymtabs): Update to use
7215 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
7217 (expand_symtabs_matching_via_partial): Update to use
7218 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
7219 Arg name_matcher renamed to symbol_matcher.
7221 2014-01-14 Doug Evans <dje@google.com>
7223 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
7224 (map_partial_symbol_filenames): Ditto.
7225 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
7226 (map_partial_symbol_filenames): Ditto.
7227 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
7228 (map_partial_symbol_filenames): Ditto.
7229 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
7230 (map_partial_symbol_filenames): Ditto.
7231 * symtab.c: Delete #include "psymtab.h".
7233 2014-01-14 Pedro Alves <palves@redhat.com>
7234 Tom Tromey <tromey@redhat.com>
7236 * infrun.c (use_displaced_stepping): Use find_record_target
7237 instead of RECORD_IS_USED.
7238 (adjust_pc_after_break): Use record_full_is_used instead of
7240 * record-btrace.c (record_btrace_open): Call record_preopen
7241 instead of checking RECORD_IS_USED.
7242 * record-full.c (record_full_shortname)
7243 (record_full_core_shortname): New globals.
7244 (record_full_is_used): New function.
7245 (find_full_open): Call record_preopen instead of checking
7247 (init_record_full_ops): Set the target's shortname to
7248 record_full_shortname.
7249 (init_record_full_core_ops): Set the target's shortname to
7250 record_full_core_shortname.
7251 * record-full.h (record_full_is_used): Declare.
7252 * record.c (find_record_target): Make extern.
7253 (record_preopen): New function.
7254 * record.h (RECORD_IS_USED): Delete macro.
7255 (find_record_target, record_preopen): Declare functions.
7257 2014-01-14 Yao Qi <yao@codesourcery.com>
7259 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
7260 'len''s type to ULONGEST.
7261 (core_xfer_shared_libraries_aix): Likewise.
7262 * gdbarch.c, gdbarch.h: Regenerated.
7263 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
7264 Change type of 'len' to ULONGEST.
7265 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7266 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
7268 2014-01-14 Yao Qi <yao@codesourcery.com>
7270 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
7271 type of 'len' to ULONGEST.
7272 (linux_xfer_osdata_processgroups): Likewise.
7273 (linux_xfer_osdata_threads): Likewise.
7274 (linux_xfer_osdata_fds): Likewise.
7275 (linux_xfer_osdata_isockets): Likewise.
7276 (linux_xfer_osdata_shm): Likewise.
7277 (linux_xfer_osdata_sem): Likewise.
7278 (linux_xfer_osdata_msg): Likewise.
7279 (linux_common_xfer_osdata): Likewise.
7280 (struct osdata_type) <getter>: Likewise.
7281 * common/linux-osdata.h (linux_common_xfer_osdata): Update
7284 2014-01-14 Yao Qi <yao@codesourcery.com>
7286 * target.h (target_xfer_partial_ftype): Update.
7287 (struct target_ops) <to_xfer_partial>: Change 'len' type to
7289 * aix-thread.c (aix_thread_xfer_partial): Change type of
7290 argument 'len' to ULONGEST.
7291 * auxv.c (procfs_xfer_auxv): Likewise.
7292 (ld_so_xfer_auxv): Likewise.
7293 (memory_xfer_auxv): Likewise.
7294 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7295 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7296 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7297 * corelow.c (core_xfer_partial): Likewise.
7298 * ctf.c (ctf_xfer_partial): Likewise.
7299 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
7301 (darwin_read_dyld_info): Likewise.
7302 (darwin_xfer_partial): Likewise.
7303 * exec.c (section_table_xfer_memory_partial): Likewise.
7304 (exec_xfer_partial): Likewise.
7305 * exec.h (section_table_xfer_memory_partial): Update
7307 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
7308 instead of plongest.
7309 (gnu_xfer_partial): Likewise.
7310 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
7311 (ia64_hpux_xfer_solib_got): Likewise.
7312 (ia64_hpux_xfer_partial): Likewise.
7313 * ia64-linux-nat.c (ia64_linux_xfer_partial):
7314 * inf-ptrace.c (inf_ptrace_xfer_partial):
7315 * inf-ttrace.c (inf_ttrace_xfer_partial):
7316 * linux-nat.c (linux_xfer_siginfo): Likewise.
7317 (linux_nat_xfer_partial): Likewise.
7318 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
7319 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
7320 * monitor.c (monitor_xfer_memory): Likewise.
7321 (monitor_xfer_partial): Likewise.
7322 * procfs.c (procfs_xfer_partial): Likewise.
7323 * record-full.c (record_full_xfer_partial): Likewise.
7324 (record_full_core_xfer_partial): Likewise.
7325 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
7326 instead of plongest.
7327 (gdbsim_xfer_partial): Likewise.
7328 * remote.c (remote_xfer_partial): Likewise.
7329 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7330 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7332 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7333 (rs6000_xfer_shared_libraries): Likewise.
7334 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7335 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7336 (sparc_xfer_partial): Likewise.
7337 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7338 (spu_xfer_partial): Likewise.
7339 * spu-multiarch.c (spu_xfer_partial): Likewise.
7340 * target.c (target_read_live_memory): Likewise.
7341 (memory_xfer_live_readonly_partial): Likewise.
7342 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
7343 (target_xfer_partial, default_xfer_partial): Likewise.
7344 (current_xfer_partial): Likewise.
7345 * tracepoint.c (tfile_xfer_partial): Likewise.
7346 * windows-nat.c (windows_xfer_memory): Likewise. Call
7347 pulongest instead of plongest.
7348 (windows_xfer_partial): Likewise.
7349 (windows_xfer_shared_libraries): Likewise.
7351 2014-01-14 Yao Qi <yao@codesourcery.com>
7353 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
7354 target_xfer_partial_ftype.
7356 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
7360 * valops.c (value_struct_elt_bitpos): New function
7361 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
7362 object to 'None' if the field name is an empty string ("").
7363 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
7364 attribute to look for a field when 'name' is 'None'.
7365 (get_field_type): New function
7367 2014-01-13 Doug Evans <dje@google.com>
7370 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
7371 (try_open_dwop_file): Ditto.
7372 * gdb_bfd.c: #include "vec.h".
7373 (bfdp): New typedef.
7374 (struct gdb_bfd_data): New member included_bfds.
7375 (gdb_bfd_unref): Unref all included bfds.
7376 (gdb_bfd_record_inclusion): New function.
7377 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
7379 2014-01-13 Tom Tromey <tromey@redhat.com>
7381 * gdbcore.h (deprecated_core_resize_section_table): Remove.
7383 2014-01-13 Tom Tromey <tromey@redhat.com>
7385 * defs.h (use_windows): Remove.
7386 * gdb.c (main): Update.
7387 * main.c (captured_main, gdb_main): Update.
7388 * main.h (struct captured_main_args) <use_windows>: Remove.
7389 * top.c (use_windows): Remove.
7391 2014-01-13 Tom Tromey <tromey@redhat.com>
7393 * defs.h (deprecated_flush_hook): Remove.
7395 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7398 * linux-thread-db.c (try_thread_db_load): Add parameter
7399 check_auto_load_safe. Move here the file_is_auto_load_safe call.
7400 (try_thread_db_load_from_pdir_1): Move it there from here.
7401 (try_thread_db_load_from_sdir): Update caller.
7402 (try_thread_db_load_from_dir): Move it there from here.
7404 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
7406 * regformats/regdat.sh: Always rewrite the register file.
7408 2014-01-13 Pedro Alves <palves@redhat.com>
7410 * Makefile.in (CHECK_HEADERS): New variable.
7411 (check-headers:): New rule.
7413 2014-01-13 Tom Tromey <tromey@redhat.com>
7415 * cli/cli-setshow.c (do_set_command): Update.
7416 * defs.h (deprecated_set_hook): Remove.
7417 * top.c (deprecated_set_hook): Remove.
7419 2014-01-13 Pedro Alves <palves@redhat.com>
7421 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
7422 the tracepoint if the PC is a pseudo-register.
7424 2014-01-13 Tom Tromey <tromey@redhat.com>
7426 * defs.h (XCALLOC): Remove.
7427 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
7428 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
7429 * dwarf2loc.c (allocate_piece_closure): Likewise.
7430 * elfread.c (elf_symfile_segments): Likewise.
7431 (elf_symfile_segments): Likewise.
7432 * gdbtypes.c (copy_type_recursive): Likewise.
7433 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
7434 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
7435 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
7437 * mt-tdep.c (mt_gdbarch_init): Likewise.
7438 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
7440 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
7441 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
7442 * registry.c (registry_alloc_data): Likewise.
7443 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
7444 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
7445 * serial.c (serial_fdopen_ops): Likewise.
7446 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
7448 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
7449 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
7452 2014-01-13 Tom Tromey <tromey@redhat.com>
7454 * defs.h (XMALLOC): Remove.
7455 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
7456 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
7457 * cli-out.c (struct ui_out *): Likewise.
7458 * cli/cli-dump.c (add_dump_command): Likewise.
7459 (add_dump_command): Likewise.
7460 * complaints.c (get_complaints): Likewise.
7461 (find_complaint): Likewise.
7462 * dwarf2-frame.c (execute_cfa_program): Likewise.
7463 * dwarf2read.c (abbrev_table_read_table): Likewise.
7464 * gdbarch.sh: Likewise.
7465 * gdbarch.c: Rebuild.
7466 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
7467 * interps.c (interp_new): Likewise.
7468 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
7469 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
7470 * mi/mi-console.c (mi_console_file_new): Likewise.
7471 * mi/mi-interp.c (mi_interpreter_init): Likewise.
7472 * mi/mi-out.c (mi_out_new): Likewise.
7473 * mi/mi-parse.c (mi_parse): Likewise.
7474 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
7475 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
7476 * observer.c (xalloc_observer_list_node): Likewise.
7477 * regcache.c (regcache_xmalloc_1): Likewise.
7478 * reggroups.c (reggroup_new): Likewise.
7479 (_initialize_reggroup): Likewise.
7480 * registry.c (register_data_with_cleanup): Likewise.
7481 * remote.c (remote_notif_stop_alloc_reply): Likewise.
7482 * ser-base.c (serial_ttystate): Likewise.
7483 * ser-mingw.c (make_pipe_state): Likewise.
7484 * ser-pipe.c (pipe_open): Likewise.
7485 * serial.c (serial_open): Likewise.
7486 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
7487 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
7488 (tui_alloc_win_info): Likewise.
7489 (tui_add_content_elements): Likewise.
7490 * tui/tui-file.c (tui_file_new): Likewise.
7491 * tui/tui-out.c (tui_out_new): Likewise.
7492 * ui-file.c (mem_file_new): Likewise.
7493 * ui-out.c (push_level): Likewise.
7494 (make_cleanup_ui_out_end): Likewise.
7495 (append_header_to_list): Likewise.
7496 (ui_out_new): Likewise.
7497 * user-regs.c (user_reg_add_builtin): Likewise.
7499 2014-01-13 Tom Tromey <tromey@redhat.com>
7501 * defs.h (XZALLOC): Remove.
7502 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
7503 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
7504 (get_ada_tasks_inferior_data): Likewise.
7505 * auto-load.c (get_auto_load_pspace_data): Likewise.
7506 * auxv.c (get_auxv_inferior_data): Likewise.
7507 * bfd-target.c (target_bfd_reopen): Likewise.
7508 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
7509 (deprecated_insert_raw_breakpoint): Likewise.
7510 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
7511 * corelow.c (core_open): Likewise.
7512 * darwin-nat.c (darwin_check_new_threads): Likewise.
7513 (darwin_attach_pid): Likewise.
7514 * dummy-frame.c (dummy_frame_push): Likewise.
7515 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
7516 * dwarf2loc.c (allocate_piece_closure): Likewise.
7517 * elfread.c (elf_symfile_segments): Likewise.
7518 * eval.c (ptrmath_type_p): Likewise.
7519 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
7520 * gdbtypes.c (alloc_type_arch): Likewise.
7521 (alloc_type_instance): Likewise.
7522 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
7523 * inf-child.c (inf_child_can_use_agent): Likewise.
7524 * inflow.c (get_inflow_inferior_data): Likewise.
7525 * infrun.c (save_infcall_suspend_state): Likewise.
7526 * jit.c (jit_reader_load): Likewise.
7527 (get_jit_objfile_data): Likewise.
7528 (get_jit_program_space_data): Likewise.
7529 (jit_object_open_impl): Likewise.
7530 (jit_symtab_open_impl): Likewise.
7531 (jit_block_open_impl): Likewise.
7532 (jit_frame_sniffer): Likewise.
7533 * linux-fork.c (add_fork): Likewise.
7534 * maint.c (make_command_stats_cleanup): Likewise.
7535 * objfiles.c (get_objfile_pspace_data): Likewise.
7536 * opencl-lang.c (struct lval_closure): Likewise.
7537 * osdata.c (osdata_start_osdata): Likewise.
7538 * progspace.c (new_address_space): Likewise.
7539 (add_program_space): Likewise.
7540 * remote-sim.c (get_sim_inferior_data): Likewise.
7541 * sh-tdep.c (sh_gdbarch_init): Likewise.
7542 * skip.c (Ignore): Likewise.
7543 (skip_delete_command): Likewise.
7544 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
7545 (library_list_start_library): Likewise.
7546 (solib_aix_current_sos): Likewise.
7547 * solib-darwin.c (get_darwin_info): Likewise.
7548 (darwin_current_sos): Likewise.
7549 * solib-dsbt.c (get_dsbt_info): Likewise.
7550 * solib-ia64-hpux.c (new_so_list): Likewise.
7551 (ia64_hpux_get_solib_linkage_addr): Likewise.
7552 * solib-spu.c (append_ocl_sos): Likewise.
7553 (spu_current_sos): Likewise.
7554 * solib-svr4.c (get_svr4_info): Likewise.
7555 (svr4_keep_data_in_core): Likewise.
7556 (library_list_start_library): Likewise.
7557 (svr4_default_sos): Likewise.
7558 (svr4_read_so_list): Likewise.
7559 * solib-target.c (library_list_start_library): Likewise.
7560 (solib_target_current_sos): Likewise.
7561 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
7562 * symfile-debug.c (install_symfile_debug_logging): Likewise.
7563 * symfile.c (default_symfile_segments): Likewise.
7564 * target-descriptions.c (tdesc_data_init): Likewise.
7565 (tdesc_create_reg): Likewise.
7566 (struct tdesc_type *): Likewise.
7567 (tdesc_create_vector): Likewise.
7568 (tdesc_set_struct_size): Likewise.
7569 (struct tdesc_type *): Likewise.
7570 (tdesc_free_feature): Likewise.
7571 (tdesc_create_feature): Likewise.
7572 * windows-nat.c (windows_add_thread): Likewise.
7573 (windows_make_so): Likewise.
7574 * xml-support.c (gdb_xml_body_text): Likewise.
7575 (gdb_xml_create_parser_and_cleanup): Likewise.
7576 (xml_process_xincludes): Likewise.
7577 * xml-syscall.c (allocate_syscalls_info): Likewise.
7578 (syscall_create_syscall_desc): Likewise.
7580 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
7582 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
7583 function, with code from i386_stap_parse_special_token.
7584 (i386_stap_parse_special_token_three_arg_disp): Likewise.
7585 (i386_stap_parse_special_token): Move code to the two functions
7588 2014-01-09 Pedro Alves <palves@redhat.com>
7589 Hui Zhu <hui@codesourcery.com>
7592 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
7593 bp_err_string. Don't mark the location shlib_disabled if the
7594 error thrown wasn't a generic or memory error. Catch errors
7595 thrown while inserting breakpoints in overlayed code. Output
7596 error message of software breakpoints.
7597 * remote.c (remote_insert_breakpoint): If this breakpoint has
7598 target-side commands but this stub doesn't support Z0 packets,
7599 throw NOT_SUPPORTED_ERROR error.
7600 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
7601 * target.h (target_insert_breakpoint): Extend comment.
7602 (target_insert_hw_breakpoint): Add comment.
7604 2014-01-08 Pedro Alves <palves@redhat.com>
7606 * remote.c (remote_add_thread): Add threads silently if starting
7608 (remote_notice_new_inferior): If in all-stop, and starting up,
7609 don't call notice_new_inferior.
7610 (get_current_thread): New function, factored out from ...
7611 (add_current_inferior_and_thread): ... this. Adjust.
7612 (remote_start_remote) <all-stop>: Fetch the thread list. If we
7613 found any thread, then select the remote's current thread as GDB's
7616 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7618 * NEWS: Create a new section for the next release branch.
7619 Rename the section of the current branch, now that it has
7622 2014-01-08 Joel Brobecker <brobecker@adacore.com>
7624 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
7625 * version.in: Bump version to 7.7.50.DATE-cvs.
7627 2014-01-08 Yao Qi <yao@codesourcery.com>
7629 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
7630 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
7631 (spu_xfer_partial): Cast 'buf' to 'const char *'.
7633 2014-01-08 Yao Qi <yao@codesourcery.com>
7635 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
7636 return value of bfd_get_filename to symbol_file_add_from_bfd.
7638 2014-01-08 Pierre Muller <muller@sourceware.org>
7641 * coff-pe-read.c (struct read_pe_section_data): Add index field.
7642 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
7643 to prim_record_mininal_symbol_and_info.
7644 (add_pe_forwarded_sym): Use known section number of forwarded symbol
7645 in call to prim_record_minimal_symbol_and_info.
7646 (read_pe_exported_syms): Set index field of section_data.
7648 2014-01-07 Andrew Pinski <apinski@cavium.com>
7650 * features/aarch64-core.xml (cpsr): Change to be 64bit.
7651 * features/aarch64.c: Regenerate.
7653 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
7655 * target.c (return_null): Define.
7656 (update_current_target): Use it instead of return_zero for
7657 functions that return a pointer.
7659 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
7661 * source.c (add_path): Fix check for duplicated paths in the previously
7664 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
7666 * ada-lang.c: Remove duplicated include statements.
7667 * alphabsd-nat.c: Ditto.
7668 * amd64-darwin-tdep.c: Ditto.
7669 * amd64fbsd-nat.c: Ditto.
7670 * auto-load.c: Ditto.
7672 * breakpoint.c: Ditto.
7674 * fork-child.c: Ditto.
7675 * gdb_usleep.c: Ditto.
7676 * i386-darwin-tdep.c: Ditto.
7677 * i386fbsd-nat.c: Ditto.
7679 * inferior.c: Ditto.
7681 * linux-nat.c: Ditto.
7682 * linux-tdep.c: Ditto.
7683 * m68kbsd-nat.c: Ditto.
7684 * m68klinux-nat.c: Ditto.
7685 * microblaze-tdep.c: Ditto.
7686 * mips-linux-tdep.c: Ditto.
7687 * mn10300-tdep.c: Ditto.
7688 * nto-tdep.c: Ditto.
7689 * opencl-lang.c: Ditto.
7691 * printcmd.c: Ditto.
7692 * regcache.c: Ditto.
7693 * remote-m32r-sdi.c: Ditto.
7697 * tilegx-linux-nat.c: Ditto.
7698 * tilegx-tdep.c: Ditto.
7699 * tracepoint.c: Ditto.
7701 * vaxbsd-nat.c: Ditto.
7702 * windows-nat.c: Ditto.
7703 * xtensa-tdep.c: Ditto.
7705 2014-01-07 Yao Qi <yao@codesourcery.com>
7707 * spu-linux-nat.c (_initialize_spu_nat): Declare.
7709 2014-01-07 Yao Qi <yao@codesourcery.com>
7710 Joel Brobecker <brobecker@adacore.com>
7712 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
7713 (pdc_write_regs): Likewise.
7714 (fetch_regs_kernel_thread): Likewise.
7715 (store_regs_kernel_thread): Likewise.
7717 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7719 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
7720 tagged type objects to their actual type.
7722 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7724 * ada-valprint.c (print_field_values): Add "language" parameter.
7725 Update calls to print_field_values and print_variant_part.
7726 Pass new parameter "language" in call to val_print instead
7727 of "current_language". Replace call to ada_val_print by call
7729 (print_variant_part): Add "language" parameter.
7730 (ada_val_print_struct_union): Update call to print_field_values.
7732 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7734 * ada-valprint.c (ui_memcpy): Delete.
7735 (ada_print_floating): Update documentation. Add empty line
7736 between between function documentation and implementation.
7737 Delete variable "buffer". Use ui_file_xstrdup in place of
7738 ui_file_put. Minor adjustments following this change.
7740 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7742 * ada-valprint.c (ada_val_print_string): New function,
7743 extracted from ada_val_print_array.
7744 (ada_val_print_array): Replace extracted code by call
7745 to ada_val_print_string followed by a return. Move
7746 "else" branch to the function's top block.
7748 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7750 * ada-valprint.c (ada_val_print_array): Move implementation
7751 down. Rename parameter "offset" and "val" into "offset_aligned"
7752 and "original_value" respectively. Add parameter "offset".
7754 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7756 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
7757 re-organizing the code. Change the "???" message printed
7758 when target type is a TYPE_CODE_UNDEF into
7759 "<ref to undefined type>".
7761 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7763 * ada-valprint.c (print_record): Delete, implementation inlined...
7764 (ada_val_print_struct_union): ... here. Remove call to
7765 ada_check_typedef in inlined implementation.
7767 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7769 * ada-valprint.c (ada_val_print_gnat_array): New function,
7770 extracted from ada_val_print_1;
7771 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
7772 (ada_val_print_flt, ada_val_print_struct_union)
7773 (ada_val_print_ref): Likewise.
7774 (ada_val_print_1): Delete variables i and elttype.
7775 Replace extracted-out code by call to corresponding
7778 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7780 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
7782 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7784 * ada-valprint.c (ada_val_print_1): Replace calls to
7785 ada_val_print_1 by calls to val_print.
7787 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7789 * ada-valprint.c (ada_val_print_1): Add parameter "language".
7790 Update calls to self accordingly. Replace calls to c_val_print
7791 by calls to val_print.
7793 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7795 * ada-valprint.c (print_record): Delete declaration.
7796 (adjust_type_signedness, ada_val_print_1): Likewise.
7797 (ada_val_print): Move function implementation down.
7798 (print_variant_part, print_field_values, print_record):
7799 Move function implementation up.
7801 2014-01-07 Joel Brobecker <brobecker@adacore.com>
7803 * python/py-type.c (typy_get_name): New function.
7804 (type_object_getset): Add entry for attribute "name".
7805 * NEWS: Add entry mentioning this new attribute.
7807 2014-01-07 Yao Qi <yao@codesourcery.com>
7809 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
7812 2014-01-07 Yao Qi <yao@codesourcery.com>
7814 * gnu-nat.c (info_port_rights): Add qualifier const to
7817 2014-01-07 Yao Qi <yao@codesourcery.com>
7819 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
7821 2014-01-07 Yao Qi <yao@codesourcery.com>
7823 * gnu-nat.c (make_inf) Update declaration.
7824 (make_inf): Make it static.
7825 (inf_set_traced): Likewise.
7826 (inf_port_to_thread, inf_task_died_status): Likewise.
7828 2014-01-07 Yao Qi <yao@codesourcery.com>
7830 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
7832 2014-01-07 Yao Qi <yao@codesourcery.com>
7834 * gnu-nat.c (_initialize_gnu_nat): Declare.
7836 2014-01-07 Yao Qi <yao@codesourcery.com>
7838 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
7840 (struct gdbarch_info) <byte_order>: Change type to
7842 <byte_order_for_code>: Likewise.
7843 * gdbarch.c, gdbarch.h: Regenerated.
7845 2014-01-06 Sasha Smundak <asmundak@google.com>
7847 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
7849 2014-01-06 Tom Tromey <tromey@redhat.com>
7851 * doublest.c (convert_doublest_to_floatformat): Use const, not
7853 * somread.c (som_symtab_read): Likewise.
7855 2014-01-07 Hui Zhu <hui@codesourcery.com>
7857 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
7858 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
7859 (gdb_bfd_fopen): Ditto.
7860 (gdb_bfd_openr): Ditto.
7861 (gdb_bfd_openw): Ditto.
7862 (gdb_bfd_openr_iovec): Ditto.
7863 (gdb_bfd_fdopenr): Ditto.
7864 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
7865 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
7867 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
7869 * symfile-mem.c (symbol_file_add_from_memory): Removed
7870 gdb_bfd_stash_filename.
7872 2014-01-03 Doug Evans <dje@google.com>
7874 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
7877 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7879 Update year range in copyright notice of all files.
7881 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7883 * top.c (print_gdb_version): Set copyright year to 2014.
7885 2014-01-01 Joel Brobecker <brobecker@adacore.com>
7887 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
7889 For older changes see ChangeLog-2013.
7895 version-control: never