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