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