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