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