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