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