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