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