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