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