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