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