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