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