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