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