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