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