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