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