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