1 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
4 * mem-break.c (z_type_supported): Return zero if
5 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
7 2014-06-04 Tom Tromey <tromey@redhat.com>
9 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
10 value_from_contents_and_address_unresolved.
11 (ada_template_to_fixed_record_type_1): Likewise.
12 (ada_which_variant_applies): Likewise.
13 * value.h (value_from_contents_and_address_unresolved): Declare.
14 * value.c (value_from_contents_and_address_unresolved): New
16 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
17 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
18 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
20 2014-06-04 Tom Tromey <tromey@redhat.com>
22 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
24 2014-06-04 Tom Tromey <tromey@redhat.com>
26 * procfs.c (procfs_attach): Make "args" const.
27 * windows-nat.c (windows_attach): Make "args" const.
28 * nto-procfs.c (procfs_attach): Make "args" const.
29 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
30 * go32-nat.c (go32_attach): Make "args" const.
31 * gnu-nat.c (gnu_attach): Make "args" const.
32 * darwin-nat.c (darwin_attach): Make "args" const.
33 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
34 * linux-nat.c (linux_nat_attach): Make "args" const.
35 * remote.c (extended_remote_attach_1, extended_remote_attach):
37 * target.h (struct target_ops) <to_attach>: Make "args" const.
38 (find_default_attach): Likewise.
39 * utils.c (parse_pid_to_attach): Make "args" const.
40 * utils.h (parse_pid_to_attach): Update.
42 2014-06-04 Tom Tromey <tromey@redhat.com>
44 * target-delegates.c: Rebuild.
45 * target.c (default_thread_address_space): New function.
46 (target_thread_address_space): Simplify.
47 * target.h (struct target_ops) <to_thread_address_space>: Add
50 2014-06-04 Doug Evans <xdje42@gmail.com>
52 * guile/scm-type.c (type_smob): Remove duplicate typedef.
54 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
56 * record-btrace.c: Include event-loop.h and inf-loop.h.
57 (record_btrace_resume_exec_dir)
58 (record_btrace_async_inferior_event_handler)
59 (record_btrace_handle_async_inferior_event): New.
60 (record_btrace_open): Create async event handler.
61 (record_btrace_close): Delete async event handler.
62 (record_btrace_resume): Set record_btrace_resume_exec_dir,
63 Mark async event handler.
64 (record_btrace_execution_direction): New.
65 (init_record_btrace_ops): Initialize to_execution_direction.
67 2014-06-03 Doug Evans <xdje42@gmail.com>
69 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
70 (gdbscm_make_parameter): Ditto.
72 2014-06-03 Doug Evans <dje@google.com>
74 * exec.c (exec_close_1): Call clear_section_table instead of
76 (clear_section_table): New function.
77 (resize_section_table): Make static. Rename arg num_added to
79 * exec.h (clear_section_table): Declare.
80 (resize_section_table): Delete.
81 * progspace.c (release_program_space): Call clear_section_table
82 instead of resize_section_table.
84 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
86 * NEWS (Python Scripting): Add entry about the new xmethods
89 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
91 * python/py-xmethods.c: New file.
92 * python/py-objfile.c (objfile_object): New field 'xmethods'.
93 (objfpy_dealloc): XDECREF on the new xmethods field.
94 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
96 (objfpy_get_xmethods): New function.
97 (objfile_getset): New entry 'xmethods'.
98 * python/py-progspace.c (pspace_object): New field 'xmethods'.
99 (pspy_dealloc): XDECREF on the new xmethods field.
100 (pspy_new, pspace_to_pspace_object): Initialize xmethods
102 (pspy_get_xmethods): New function.
103 (pspace_getset): New entry 'xmethods'.
104 * python/python-internal.h: Add declarations for new functions.
105 * python/python.c (_initialize_python): Invoke
106 gdbpy_initialize_xmethods.
107 * python/lib/gdb/__init__.py (xmethods): New
109 * python/lib/gdb/xmethod.py: New file.
110 * python/lib/gdb/command/xmethods.py: New file.
112 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
114 * eval.c (evaluate_subexp_standard): Call the xmethod if the
115 best match method returned by find_overload_match is an xmethod.
116 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
117 the best matching operator returned by find_overload_match is an
119 * valops.c: #include "extension.h".
120 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
121 Return void. The list of matching source methods is returned in
122 "fn_list" and a vector of matching debug method workers is
123 returned in "xm_worker_vec". Update all callers.
124 (value_find_oload_method_list): Likewise.
125 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
126 non-NULL, then the index of the best matching method in this
127 vector is returned. Update all callers.
128 (find_overload_match): Include xmethods while performing overload
131 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
133 * defs.h (enum lval_type): New enumerator "lval_xcallable".
134 * extension-priv.h (struct extension_language_ops): Add the
136 * extension.c (new_xmethod_worker, clone_xmethod_worker,
137 get_matching_xmethod_workers, get_xmethod_argtypes,
138 invoke_xmethod, free_xmethod_worker,
139 free_xmethod_worker_vec): New functions.
140 * extension.h: #include "common/vec.h".
141 New function declarations.
142 (struct xmethod_worker): New struct.
143 (VEC (xmethod_worker_ptr)): New vector type.
144 (xmethod_worker_ptr): New typedef.
145 (xmethod_worker_vec): Likewise.
146 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
148 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
149 (struct builtin_type): New field "xmethod".
150 * valarith.c (value_ptradd): Assert that the value argument is not
152 * valops.c (value_must_coerce_to_target): Return 0 for
153 lval_xcallable values.
154 * value.c (struct value): New field XM_WORKER in the field
156 (value_address, value_raw_address): Return 0 for lval_xcallable
158 (set_value_address): Assert that the value is not an
160 (value_free): Free the associated xmethod worker when freeing
161 lval_xcallable values.
162 (set_value_component_location): Assert that the WHOLE value is not
164 (value_of_xmethod, call_xmethod): New functions.
165 * value.h: Declare "struct xmethod_worker".
166 Declare new functions value_of_xmethod, call_xmethod.
168 2014-06-03 Joel Brobecker <brobecker@adacore.com>
169 Pedro Alves <palves@redhat.com>
172 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
173 New function, extracted from software_breakpoint_inserted_here_p.
174 (software_breakpoint_inserted_here_p): Replace factored out code
175 by call to find_non_raw_software_breakpoint_inserted_here.
176 (bp_target_info_copy_insertion_state): New function.
177 (bkpt_insert_location): Handle the case of a single-step
178 breakpoint already inserted at the same address.
179 (bkpt_remove_location): Handle the case of a single-step
180 breakpoint still inserted at the same address.
181 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
182 breakpoint already inserted at the same address.
183 (deprecated_remove_raw_breakpoint): Handle the case of a
184 non-raw breakpoint still inserted at the same address.
185 (find_single_step_breakpoint): New function, extracted from
186 single_step_breakpoint_inserted_here_p.
187 (find_single_step_breakpoint): New function,
188 factored out from single_step_breakpoint_inserted_here_p.
189 (single_step_breakpoint_inserted_here_p): Reimplement.
191 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
193 Pushed by Joel Brobecker <brobecker@adacore.com>
194 * source.c (show_substitute_path_command): Fix display of matching
197 2014-06-03 Gary Benson <gbenson@redhat.com>
199 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
201 2014-06-02 Doug Evans <xdje42@gmail.com>
203 Add parameter support for Guile.
204 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
205 (SUBDIR_GUILE_SRCS): Add scm-param.c.
206 (scm-param.o): New rule.
207 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
208 (gdbscm_misc_error): Declare.
209 (gdbscm_canonicalize_command_name): Declare.
210 (gdbscm_scm_to_host_string): Declare.
211 (gdbscm_scm_from_host_string): Declare.
212 (gdbscm_initialize_parameters): Declare.
213 * guile/guile.c (initialize_gdb_module): Call
214 gdbscm_initialize_parameters.
215 * guile/lib/gdb.scm: Export parameter symbols.
216 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
217 cmdscm_canonicalize_name and made public. All callers updated.
218 * guile/scm-exception.c (gdbscm_misc_error): New function.
219 * guile/scm-param.c: New file.
220 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
221 (gdbscm_scm_to_host_string): New function.
222 (gdbscm_scm_from_host_string): New function.
223 * scm-utils.c (gdbscm_gc_dup_argv): New function.
225 2014-06-02 Doug Evans <xdje42@gmail.com>
227 Add command support for Guile.
228 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
229 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
230 (scm-cmd.o): New rule.
231 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
232 (gdbscm_user_error_p): Declare.
233 (gdbscm_parse_command_name): Declare.
234 (gdbscm_valid_command_class_p): Declare.
235 (gdbscm_initialize_commands): Declare.
236 * guile/guile.c (initialize_gdb_module): Call
237 gdbscm_initialize_commands.
238 * guile/lib/gdb.scm: Export command symbols.
239 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
240 (throw-user-error): New function.
241 * guile/scm-cmd.c: New file.
242 * guile/scm-exception.c (user_error_symbol): New static global.
243 (gdbscm_user_error_p): New function.
244 (gdbscm_initialize_exceptions): Set user_error_symbol.
245 * scm-utils.c (gdbscm_gc_xstrdup): New function.
247 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
249 * top.c (command_loop): Handle comments here...
250 (command_line_input): ... not here.
252 2014-06-02 Doug Evans <xdje42@gmail.com>
254 Add progspace support for Guile.
255 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
256 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
257 (scm-progspace.o): New rule.
258 * guile/guile-internal.h (pspace_smob): New typedef.
259 (psscm_pspace_smob_pretty_printers): Declare.
260 (psscm_pspace_smob_from_pspace): Declare.
261 (psscm_scm_from_pspace): Declare.
262 * guile/guile.c (initialize_gdb_module): Call
263 gdbscm_initialize_pspaces.
264 * guile/lib/gdb.scm: Export progspace symbols.
265 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
267 (append-pretty-printer!): Ditto.
268 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
270 * guile/scm-progspace.c: New file.
272 2014-06-03 Alan Modra <amodra@gmail.com>
274 * ppc64-tdep.c (ppc64_standard_linkage8): New.
275 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
277 2014-06-02 Doug Evans <dje@google.com>
279 Add support for skeletonless type units.
280 * dwarf2read.c (struct dwarf2_per_objfile): New member
281 n_allocated_type_units.
282 (struct dwarf2_per_objfile) <tu_stats>: New member
283 nr_all_type_units_reallocs.
284 (create_signatured_type_table_from_index): Initialize
285 n_allocated_type_units
286 (create_all_type_units): Ditto.
287 (add_type_unit): Move up in file. New arg slot.
288 All callers updated. Increase space for all_type_units more
290 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
291 (lookup_dwo_signatured_type): Handle skeletonless TUs.
292 (lookup_dwp_signatured_type): Ditto.
293 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
295 (build_type_psymtabs_1): Leave type_unit_groups as
296 NULL if no TUs present.
297 (print_tu_stats): New function.
298 (process_skeletonless_type_unit): New function.
299 (process_dwo_file_for_skeletonless_type_units): New
301 (process_skeletonless_type_units): New function.
302 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
303 Call print tu_stats if debugging enabled.
305 2014-06-02 Pedro Alves <palves@redhat.com>
307 * breakpoint.c (build_target_command_list): Don't build a command
308 list if we have any duplicate location that isn't a dprintf.
310 2014-06-02 Pedro Alves <palves@redhat.com>
312 * breakpoint.c (dprintf_breakpoint_hit): New function.
313 (initialize_breakpoint_ops): Install it as dprintf's
314 breakpoint_hit method.
316 2014-06-02 Joel Brobecker <brobecker@adacore.com>
318 * source.c (substitute_path_rule_matches): Simplify using
319 filename_ncmp instead of FILENAME_CMP.
321 2014-06-02 Joel Brobecker <brobecker@adacore.com>
323 * source.c (substitute_path_rule_matches): Remove trailing spaces.
325 2014-06-01 Ludovic Courtès <ludo@gnu.org>
327 * configure.ac: When Guile is available, check for the
328 availability of 'scm_new_smob'.
329 * configure, config.h.in: Regenerate.
330 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
333 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
335 * frame.c (struct frame_info): Add stop_string field.
336 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
337 (get_prev_frame_always): Old content moved into
338 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
339 TRY_CATCH, handle MEMORY_ERROR exceptions.
340 (frame_stop_reason_string): New function definition.
341 * frame.h (unwind_stop_reason_to_string): Extend comment to
342 mention frame_stop_reason_string.
343 (frame_stop_reason_string): New function declaration.
344 * stack.c (frame_info): Switch to frame_stop_reason_string.
345 (backtrace_command_1): Switch to frame_stop_reason_string.
346 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
347 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
348 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
350 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
352 * frame.c (frame_stop_reason_string): Rename to ...
353 (unwind_stop_reason_to_string): this.
354 * frame.h (frame_stop_reason_string): Rename to ...
355 (unwind_stop_reason_to_string): this.
356 * stack.c (frame_info): Update call to frame_stop_reason_string.
357 (backtrace_command_1): Likewise.
358 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
359 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
361 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
363 * frame.c (remove_prev_frame): New function.
364 (get_prev_frame_if_no_cycle): Create / discard cleanup using
367 2014-05-29 Pedro Alves <palves@redhat.com>
369 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
370 and make it const. When a single-step decays to a continue,
371 clear 'step', not 'hw_step'. Pass whether the caller wanted
372 to step to user_visible_resume_ptid, not what we ask the
375 2014-05-29 Pedro Alves <palves@redhat.com>
377 * infrun.c (process_event_stop_test, handle_step_into_function)
378 (handle_step_into_function_backward): Adjust.
379 Don't set the even thread's stop_step and call stop_waiting before
380 calling end_stepping_range. Instead do that ...
381 (end_stepping_range): ... here. Take an ecs pointer parameter.
383 2014-05-29 Pedro Alves <palves@redhat.com>
385 * infrun.c (stop_stepping): Rename to ...
386 (stop_waiting): ... this.
387 (proceed): Update comment.
388 (process_event_stop_test, handle_inferior_event)
389 (handle_signal_stop, handle_step_into_function)
390 (handle_step_into_function_backward): Update.
392 2014-05-29 Pedro Alves <palves@redhat.com>
394 * infcall.c (run_inferior_call): Don't check whether the current
395 thread is running after the proceed call.
397 2014-05-29 Pedro Alves <palves@redhat.com>
398 Tom Tromey <tromey@redhat.com>
400 * NEWS: Mention "maint set target-async", "set mi-async", and that
401 background execution commands are now always available.
402 * target.h (target_async_permitted): Update comment.
403 * target.c (target_async_permitted, target_async_permitted_1):
405 (set_target_async_command): Rename to ...
406 (maint_set_target_async_command): ... this.
407 (show_target_async_command): Rename to ...
408 (maint_show_target_async_command): ... this.
409 (_initialize_target): Adjust.
410 * infcmd.c (prepare_execution_command): Make extern.
411 * inferior.h (prepare_execution_command): Declare.
412 * infrun.c (set_observer_mode): Leave target async alone.
413 * mi/mi-interp.c (mi_interpreter_init): Install
414 mi_on_sync_execution_done as sync_execution_done observer.
415 (mi_on_sync_execution_done): New function.
416 (mi_execute_command_input_handler): Don't print the prompt if we
417 just started a synchronous command with an async target.
418 (mi_on_resume): Check sync_execution before printing prompt.
419 * mi/mi-main.h (mi_async_p): Declare.
420 * mi/mi-main.c: Include gdbcmd.h.
421 (mi_async_p): New function.
422 (mi_async, mi_async_1): New globals.
423 (set_mi_async_command, show_mi_async_command, mi_async): New
425 (exec_continue): Call prepare_execution_command.
426 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
427 (mi_execute_async_cli_command): Use mi_async_p.
428 (_initialize_mi_main): Install "set mi-async". Make
429 "target-async" a deprecated alias.
431 2014-05-29 Pedro Alves <palves@redhat.com>
433 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
434 (_initialize_cli_interp): Adjust.
435 * event-loop.c: Include "observer.h".
436 (start_event_loop): Notify 'command_error' observers instead of
437 calling display_gdb_prompt. Remove FIXME comment.
438 * event-top.c (display_gdb_prompt): Remove call into the
440 * inf-loop.c: Include "observer.h".
441 (inferior_event_handler): Notify 'command_error' observers instead
442 of calling display_gdb_prompt.
443 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
444 observers instead of calling display_gdb_prompt.
445 * interps.c (interp_set): Don't call display_gdb_prompt.
446 (current_interp_display_prompt_p): Delete.
447 * interps.h (interp_prompt_p): Delete declaration.
448 (interp_prompt_p_ftype): Delete.
449 (struct interp_procs) <prompt_proc_p>: Delete field.
450 (current_interp_display_prompt_p): Delete declaration.
451 * mi-interp.c (mi_interpreter_prompt_p): Delete.
452 (_initialize_mi_interp): Adjust.
453 * tui-interp.c (tui_init): Install 'sync_execution_done' and
454 'command_error' observers.
455 (tui_on_sync_execution_done, tui_on_command_error): New
457 (tui_display_prompt_p): Delete.
458 (_initialize_tui_interp): Adjust.
460 2014-05-29 Pedro Alves <palves@redhat.com>
463 * cli/cli-interp.c: Include infrun.h and observer.h.
464 (cli_uiout, cli_interp): New globals.
465 (cli_on_signal_received, cli_on_end_stepping_range)
466 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
468 (cli_interpreter_init): Install them as 'end_stepping_range',
469 'signal_received' 'signal_exited', 'exited' and 'no_history'
471 (_initialize_cli_interp): Remove cli_interp local.
472 * infrun.c (handle_inferior_event): Call the several stop reason
473 observers instead of printing the stop reason directly.
474 (end_stepping_range): New function.
475 (print_end_stepping_range_reason, print_signal_exited_reason)
476 (print_exited_reason, print_signal_received_reason)
477 (print_no_history_reason): Make static, and add an uiout
478 parameter. Print to that instead of to CURRENT_UIOUT.
479 * infrun.h (print_end_stepping_range_reason)
480 (print_signal_exited_reason, print_exited_reason)
481 (print_signal_received_reason print_no_history_reason): New
483 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
485 <cli_uiout>: New field.
486 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
487 uiout for CLI output. Install 'signal_received',
488 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
490 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
491 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
492 (mi_on_no_history): New functions.
493 (ui_out_free_cleanup): Delete function.
494 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
495 instead use the one already stored in the MI interpreter data.
497 * tui/tui-interp.c: Include infrun.h and observer.h.
498 (tui_interp): New global.
499 (tui_on_signal_received, tui_on_end_stepping_range)
500 (tui_on_signal_exited, tui_on_exited)
501 (tui_on_no_history): New functions.
502 (tui_init): Install them as 'end_stepping_range',
503 'signal_received' 'signal_exited', 'exited' and 'no_history'
505 (_initialize_tui_interp): Delete tui_interp local.
507 2014-05-29 Pedro Alves <palves@redhat.com>
510 * linux-nat.c (linux_nat_resume_callback): Rename the second
511 parameter to 'except'. Skip LP if it points to EXCEPT.
512 (linux_nat_resume): Don't mark the event lwp as not stopped
513 before resuming sibling lwps. Instead ask
514 linux_nat_resume_callback to skip the event lwp. Mark it as not
515 stopped after actually resuming it.
516 (linux_handle_syscall_trap): Mark the lwp as not stopped after
518 (wait_lwp): Mark the lwp as stopped here.
519 (stop_wait_callback): Mark the lwp as not stopped right after
520 resuming it. Don't mark lwps as stopped here.
521 (linux_nat_filter_event): Mark the lwp as stopped earlier.
522 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
524 2014-05-29 Pedro Alves <palves@redhat.com>
527 * infrun.c (resume): Determine how much to resume depending on
528 whether the caller wanted a step, not whether we can hardware step
529 the target. Mark all threads that we intend to run as running,
530 unless we're calling an inferior function.
531 (normal_stop): If the thread is running an infcall, don't finish
533 * target.c (target_resume): Don't mark threads as running here.
535 2014-05-28 Joel Brobecker <brobecker@adacore.com>
537 * serial.c (_initialize_serial): Remove support for
538 the "set remotebaud" and "show remotebaud" commands.
539 * NEWS: Add entry documenting the removal of that command.
541 2014-05-28 Yao Qi <yao@codesourcery.com>
543 * charset.c: Fix typo in comments.
545 2014-05-27 Gary Benson <gbenson@redhat.com>
547 * utils.c (internal_vproblem): Prompt for a bug report.
549 2014-05-26 Andy Wingo <wingo@igalia.com>
551 * guile/scm-arch.c (arscm_mark_arch_smob):
552 * guile/scm-block.c (bkscm_mark_block_smob)
553 (bkscm_mark_block_syms_progress_smob):
554 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
555 * guile/scm-exception.c (exscm_mark_exception_smob):
556 * guile/scm-frame.c (frscm_mark_frame_smob):
557 * guile/scm-iterator.c (itscm_mark_iterator_smob):
558 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
559 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
560 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
561 (ppscm_mark_pretty_printer_worker_smob):
562 * guile/scm-symbol.c (syscm_mark_symbol_smob):
563 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
564 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
565 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
567 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
570 2014-05-26 Andy Wingo <wingo@igalia.com>
571 Doug Evans <xdje42@gmail.com>
573 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
574 empty_base_class. All uses updated.
575 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
576 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
578 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
579 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
580 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
581 (gdbscm_gsmob_has_property_p, add_property_name)
582 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
583 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
584 (gdb-object-has-property?, gdb-object-properties): Remove.
585 (gdb-object-kind): Renamed from gsmob-kind.
587 2014-05-26 Andy Wingo <wingo@igalia.com>
589 * configure.ac (try_guile_versions): Allow building with guile 2.2.
590 * configure: Regenerate.
592 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
594 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
596 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
598 * record-btrace.c (record_btrace_allow_memory_access): Remove.
599 (replay_memory_access_read_only, replay_memory_access_read_write)
600 (replay_memory_access_types, replay_memory_access)
601 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
602 (cmd_set_record_btrace, cmd_show_record_btrace)
603 (cmd_show_replay_memory_access): New.
604 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
605 (record_btrace_remove_breakpoint): Replace
606 record_btrace_allow_memory_access with replay_memory_access.
607 (_initialize_record_btrace): Add commands.
610 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
612 * aarch64-linux-nat.c (asm/ptrace.h): Include.
614 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
616 * MAINTAINERS (Write After Approval): Move self back from
619 2014-05-22 Pedro Alves <palves@redhat.com>
621 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
622 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
623 (disable_randomization, enum exec_direction_kind)
624 (execution_direction, stop_registers, start_remote)
625 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
626 (wait_for_inferior, normal_stop, get_last_target_status)
627 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
628 (insert_step_resume_breakpoint_at_sal)
629 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
630 (set_step_info, print_stop_event, signal_stop_state)
631 (signal_print_state, signal_pass_state, signal_stop_update)
632 (signal_print_update, signal_pass_update)
633 (update_signals_program_target, clear_exit_convenience_vars)
634 (displaced_step_dump_bytes, update_observer_mode)
635 (signal_catch_update, gdb_signal_from_command): Move
637 * infrun.h: ... to this new file.
638 * amd64-tdep.c: Include infrun.h.
639 * annotate.c: Include infrun.h.
640 * arch-utils.c: Include infrun.h.
641 * arm-linux-tdep.c: Include infrun.h.
642 * arm-tdep.c: Include infrun.h.
643 * break-catch-sig.c: Include infrun.h.
644 * breakpoint.c: Include infrun.h.
645 * common/agent.c: Include infrun.h instead of inferior.h.
646 * corelow.c: Include infrun.h.
647 * event-top.c: Include infrun.h.
648 * go32-nat.c: Include infrun.h.
649 * i386-tdep.c: Include infrun.h.
650 * inf-loop.c: Include infrun.h.
651 * infcall.c: Include infrun.h.
652 * infcmd.c: Include infrun.h.
653 * infrun.c: Include infrun.h.
654 * linux-fork.c: Include infrun.h.
655 * linux-nat.c: Include infrun.h.
656 * linux-thread-db.c: Include infrun.h.
657 * monitor.c: Include infrun.h.
658 * nto-tdep.c: Include infrun.h.
659 * procfs.c: Include infrun.h.
660 * record-btrace.c: Include infrun.h.
661 * record-full.c: Include infrun.h.
662 * remote-m32r-sdi.c: Include infrun.h.
663 * remote-mips.c: Include infrun.h.
664 * remote-notif.c: Include infrun.h.
665 * remote-sim.c: Include infrun.h.
666 * remote.c: Include infrun.h.
667 * reverse.c: Include infrun.h.
668 * rs6000-tdep.c: Include infrun.h.
669 * s390-linux-tdep.c: Include infrun.h.
670 * solib-irix.c: Include infrun.h.
671 * solib-osf.c: Include infrun.h.
672 * solib-svr4.c: Include infrun.h.
673 * target.c: Include infrun.h.
674 * top.c: Include infrun.h.
675 * windows-nat.c: Include infrun.h.
676 * mi/mi-interp.c: Include infrun.h.
677 * mi/mi-main.c: Include infrun.h.
678 * python/py-threadevent.c: Include infrun.h.
680 2014-05-22 Pedro Alves <palves@redhat.com>
682 * infrun.c (handle_inferior_event): Store the exit code for
683 --return-child-result here, instead of ...
684 (print_exited_reason): ... here.
686 2014-05-21 Pedro Alves <palves@redhat.com>
689 * gdbthread.h (struct thread_control_state): New field
691 * infrun.c (follow_fork): Copy the new thread control field to the
693 (clear_proceed_status_thread): Clear the new thread control field.
694 (proceed): Set the new thread control field.
695 * interps.h (command_interp): Declare.
696 * interps.c (command_interpreter): New global.
697 (command_interp): New function.
698 (interp_exec): Set `command_interpreter' while here.
699 * cli-out.c (cli_uiout_dtor): New function.
700 (cli_ui_out_impl): Install it.
701 * mi/mi-interp.c: Include cli-out.h.
702 (mi_cmd_interpreter_exec): Add comment.
703 (restore_current_uiout_cleanup): New function.
704 (ui_out_free_cleanup): New function.
705 (mi_on_normal_stop): If finishing an execution command started by
706 a CLI command, or any kind of breakpoint-like event triggered,
707 print the stop event to the output (CLI) stream.
708 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
710 2014-05-21 Pedro Alves <palves@redhat.com>
712 * cli/cli-cmds.c (list_command): Handle the first "list" after the
713 current source line having changed.
714 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
715 * infrun.c (normal_stop): Adjust call to
716 set_current_sal_from_frame.
717 * source.c (clear_lines_listed_range): New function.
718 (set_current_source_symtab_and_line, identify_source_line): Clear
719 the lines listed range.
720 (line_info): Handle the first "info line" after the current source
722 * stack.c (print_stack_frame): Remove center handling.
723 (set_current_sal_from_frame): Remove 'center' parameter. Don't
726 2014-05-21 Pedro Alves <palves@redhat.com>
728 * inf-child.c (inf_child_mourn_inferior): New function.
729 * inf-child.h (inf_child_mourn_inferior): New declaration.
730 * darwin-nat.c (darwin_mourn_inferior): Use
731 inf_child_mourn_inferior.
732 * gnu-nat.c (gnu_mourn_inferior): Likewise.
733 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
734 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
735 * nto-procfs.c (procfs_mourn_inferior): Likewise.
736 * windows-nat.c (windows_mourn_inferior): Likewise.
738 2014-05-21 Doug Evans <xdje42@gmail.com>
740 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
742 2014-05-21 Doug Evans <xdje42@gmail.com>
744 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
745 (gdbscm_out_of_range_error): Ditto.
746 (gdbscm_memory_error): Ditto.
747 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
748 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
749 (gdbscm_out_of_range_error): Update.
750 (gdbscm_memory_error): Update.
751 (gdbscm_scm_to_target_string_unsafe): Delete.
753 2014-05-21 Pedro Alves <palves@redhat.com>
755 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
757 (inf_child_open_target): New function.
758 (inf_child_open): Use inf_child_open_target to push the target
759 instead of erroring out.
760 (inf_child_disconnect, inf_child_close)
761 (inf_child_maybe_unpush_target): New functions.
762 (inf_child_target): Install inf_child_disconnect and
763 inf_child_close. Store a pointer to the returned object.
764 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
766 * target.c (auto_connect_native_target): New global.
767 (show_default_run_target): New function.
768 (find_default_run_target): Return NULL if automatically connecting
769 to the native target is disabled.
770 (_initialize_target): Install set/show auto-connect-native-target.
771 * NEWS: Mention "set auto-connect-native-target", and "target
773 * linux-nat.c (super_close): New global.
774 (linux_nat_close): Call super_close.
775 (linux_nat_add_target): Store a pointer to the base class's
777 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
778 inf_child_maybe_unpush.
779 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
781 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
782 the inferior. Use inf_child_maybe_unpush_target.
783 (inf_ttrace_attach): Don't push the target if it is already
785 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
786 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
787 after mourning the inferior. Use inf_child_maybe_unpush_target.
788 (darwin_attach_pid): Don't push the target if it is already
790 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
791 mourning the inferior. Use inf_child_maybe_unpush_target.
792 (gnu_detach): Use inf_child_maybe_unpush_target.
793 * go32-nat.c (go32_create_inferior): Don't push the target if it
795 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
796 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
797 (procfs_open): Rename to ...
798 (procfs_open_1): ... this. Add target_ops parameter. Adjust
799 comments. Can target_preopen before changing node. Call
800 inf_child_open_target to push the target explicitly.
801 (procfs_attach): Don't push the target if it is already pushed.
802 (procfs_detach): Use inf_child_maybe_unpush_target.
803 (procfs_create_inferior): Don't push the target if it is already
805 (nto_native_ops): New global.
806 (procfs_open): Reimplement.
807 (procfs_native_open): New function.
808 (init_procfs_targets): Install procfs_native_open as to_open of
809 "target native". Store a pointer to the "native" target in
811 * procfs.c (procfs_attach): Don't push the target if it is already
813 (procfs_detach): Use inf_child_maybe_unpush_target.
814 (procfs_mourn_inferior): Only unpush the target after mourning the
815 inferior. Use inf_child_maybe_unpush_target.
816 (procfs_init_inferior): Don't push the target if it is already
818 * windows-nat.c (do_initial_windows_stuff): Don't push the target
819 if it is already pushed.
821 2014-05-21 Pedro Alves <palves@redhat.com>
823 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
824 and "procfs" targets are now called "native" instead.
826 2014-05-21 Pedro Alves <palves@redhat.com>
828 * go32-nat.c (go32_open): Delete.
829 (go32_target): Don't override the to_open method.
831 2014-05-21 Pedro Alves <palves@redhat.com>
833 * nto-procfs.c (procfs_can_run): New function.
834 (nto_procfs_ops): New global.
835 (init_procfs_targets): New, based on procfs_target. Install
836 "target native" in addition to "target procfs".
837 (_initialize_procfs): Call init_procfs_targets instead of adding
840 2014-05-21 Pedro Alves <palves@redhat.com>
842 * windows-nat.c (windows_target): Don't override to_shortname,
843 to_longname or to_doc.
845 2014-05-21 Pedro Alves <palves@redhat.com>
847 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
850 2014-05-21 Pedro Alves <palves@redhat.com>
852 * darwin-nat.c (_initialize_darwin_inferior): Don't override
853 to_shortname, to_longname or to_doc.
855 2014-05-21 Pedro Alves <palves@redhat.com>
857 * go32-nat.c (go32_target): Don't override to_shortname,
858 to_longname or to_doc.
860 2014-05-21 Pedro Alves <palves@redhat.com>
862 * inf-child.c (inf_child_open): Remove mention of "child".
863 (inf_child_target): Rename target to "native" instead of "child".
865 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
867 * Makefile.in (SFILES): Delete "regset.c".
868 (COMMON_OBS): Delete "regset.o".
870 * regset.h (regset_alloc): Delete prototype.
872 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
874 * sparc-linux-tdep.c (sparc32_linux_gregset)
875 (sparc32_linux_fpregset): New static regset structures.
876 (sparc32_linux_init_abi): Drop dynamic regset allocations.
877 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
879 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
880 (sparc64_linux_fpregset): New static regset structures.
881 (sparc64_linux_init_abi): Drop dynamic regset allocations.
882 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
883 New static regset structures.
884 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
885 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
886 New static regset structures.
887 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
888 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
889 New static regset structures.
890 (sparc64obsd_init_abi): Drop dynamic regset allocations.
891 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
892 New static regset structures.
893 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
895 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
897 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
898 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
899 register maps ("regmaps") from "*regset" to "*regmap". Do this
900 for all regmap types and variables.
901 * sparc-linux-tdep.c (sparc32_linux_step_trap)
902 (sparc32_linux_supply_core_gregset)
903 (sparc32_linux_collect_core_gregset)
904 (sparc32_linux_supply_core_fpregset)
905 (sparc32_linux_collect_core_fpregset): Likewise.
906 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
907 (sparc_gregmap, sparc_fpregmap): ... these.
908 (sparc_supply_gregset, sparc_collect_gregset)
909 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
910 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
911 (_initialize_sparc_nat): Rename regmaps.
912 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
913 (sparc_gregmap, sparc_fpregmap): ... these.
914 (sparc_supply_gregset, sparc_collect_gregset)
915 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
916 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
918 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
919 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
921 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
923 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
924 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
925 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
927 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
928 (sparc32_bsd_fpregset): Rename to...
929 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
930 (sparc32_bsd_fpregmap): ... these.
931 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
932 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
933 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
934 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
935 (struct sparc_gregmap, struct sparc_fpregmap)
936 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
937 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
938 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
939 (sparc32_supply_regset, sparc32_collect_gregset)
940 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
942 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
943 (sparc64_linux_ptrace_gregmap): ... this.
944 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
945 (_initialize_sparc64_linux_nat): Rename regmaps.
946 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
947 (sparc64_linux_core_gregmap): ... this.
948 (sparc64_linux_supply_core_gregset)
949 (sparc64_linux_collect_core_gregset)
950 (sparc64_linux_supply_core_fpregset)
951 (sparc64_linux_collect_core_fpregset): Rename regmaps.
952 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
953 (sparc64_sol2_fpregset): Rename to...
954 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
955 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
956 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
958 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
959 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
960 (sparc64_bsd_fpregset): Rename to...
961 (struct sparc_gregmap, sparc64_sol2_gregmap)
962 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
963 (sparc64_bsd_fpregmap): ... these.
964 (sparc64_supply_gregset, sparc64_collect_gregset)
965 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
967 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
968 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
969 (sparc64fbsd_gregmap): ... this.
970 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
971 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
973 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
974 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
975 (sparc64nbsd_collect_fpregset): Likewise.
976 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
977 (sparc64nbsd_gregmap): ... this.
978 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
980 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
981 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
982 (sparc64obsd_gregmap): ... this.
983 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
985 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
986 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
987 (sparc32nbsd_gregmap): ... this.
988 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
991 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
993 * score-tdep.c (score7_linux_gregset): New static regset
995 (score7_linux_regset_from_core_section): Remove dynamic regset
997 (score_gdbarch_init): Drop allocation of tdep structure.
998 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1000 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1002 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1004 (am33_regset_from_core_section): Remove dynamic regset
1007 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1009 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1010 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1012 (mips_linux_regset_from_core_section): Remove dynamic regset
1014 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1015 'gregset64', 'fpregset', and 'fpregset64'.
1016 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1017 deleted tdep fields.
1019 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1021 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1023 (amd64_regset_from_core_section): Remove dynamic regset
1025 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1027 (amd64obsd_regset_from_core_section): Remove dynamic regset
1029 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1031 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1032 x86-common regset supply function.
1033 * i386-tdep.c (i386_collect_gregset): Make static.
1034 (i386_gregset): New global regset structure.
1035 (i386_fpregset, i386_xstateregset): New static regset structures.
1036 (i386_regset_from_core_section): Remove dynamic regset
1038 (i386_gdbarch_init): Remove initialization of tdep fields
1039 'gregset', 'fpregset', and 'xstateregset'.
1040 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1041 'fpregset', and 'xstateregset'.
1042 (i386_collect_gregset): Remove prototype.
1043 (i386_gregset): New declaration.
1044 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1046 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1049 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1051 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1052 (arm_linux_vfpregset): New static regset structures.
1053 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1055 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1056 and 'vfpregset' fields.
1058 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1060 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1061 (aarch64_linux_fpregset): New static regset structures.
1062 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1063 of regset structures.
1064 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1067 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1069 * regset.h (struct regset): Remove gdbarch field.
1070 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1071 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1072 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1074 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1075 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1076 (ppc32_linux_vsxregset): Likewise.
1077 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1078 via the regcache instead of the regset.
1079 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1080 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1081 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1082 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1085 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1087 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1088 Constify structures.
1089 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1090 (alphanbsd_aout_gregset): Likewise.
1091 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1092 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1094 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1095 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1097 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1098 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1099 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1100 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1101 * m88k-tdep.c (m88k_gregset): Likewise.
1102 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1103 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1104 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1105 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1106 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1107 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1108 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1109 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1110 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1112 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1113 * sh-tdep.h (sh_corefile_gregset): Likewise.
1114 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1115 * vax-tdep.c (vax_gregset): Likewise.
1117 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1119 Fix TLS access for -static -pthread.
1120 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1121 (try_thread_db_load_1): Initialize it.
1122 (thread_db_get_thread_local_address): Call it if LM is zero.
1123 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1124 * target.h (struct target_ops) (to_get_thread_local_address): Add
1125 load_module_addr comment.
1127 2014-05-21 Pedro Alves <palves@redhat.com>
1129 * dcache.c (dcache_read_memory_partial): If reading the cache line
1130 fails, fallback to reading just the memory the caller wanted.
1132 2014-05-20 Doug Evans <dje@google.com>
1134 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1135 instead of get_current_arch.
1137 2014-05-20 Pedro Alves <palves@redhat.com>
1139 * NEWS: Mention that compare-sections now works with all targets.
1141 * remote.c (PACKET_qCRC): New enum value.
1142 (remote_verify_memory): Don't send qCRC if the target has no
1143 execution. Use packet_support/packet_ok. If the target doesn't
1144 support the qCRC packet, fallback to a deep memory copy.
1145 (compare_sections_command): Say "target image" instead of "remote
1147 (_initialize_remote): Add PACKET_qCRC to the list of config
1148 packets that have no associated command. Extend comment.
1149 * target.c (simple_verify_memory, default_verify_memory): New
1151 * target.h (struct target_ops) <to_verify_memory>: Default to
1152 default_verify_memory.
1153 (simple_verify_memory): New declaration.
1154 * target-delegates.c: Regenerate.
1156 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1158 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1160 2014-05-20 Hui Zhu <hui@codesourcery.com>
1161 Yao Qi <yao@codesourcery.com>
1164 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1165 and change address of sp and pc.
1167 2014-05-19 Tom Tromey <tromey@redhat.com>
1169 * gdbtypes.c (rank_function): Use XNEWVEC.
1170 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1172 2014-05-19 Doug Evans <dje@google.com>
1174 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1175 build_type_unit_groups and moved closer to only caller. Remove
1176 arguments. All references updated. Remove outdated .gdb_index
1178 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1179 build_type_psymtabs_1.
1181 2014-05-19 Doug Evans <dje@google.com>
1183 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1184 n_type_unit_groups, all_type_unit_groups. All uses removed.
1185 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1186 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1187 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1188 (add_type_unit_group_to_table): Delete.
1190 2014-05-19 Doug Evans <dje@google.com>
1192 * eval.c (evaluate_subexp_standard): Add some comments.
1194 2014-05-17 Doug Evans <xdje42@gmail.com>
1196 * progspace.c (remove_program_space): Delete, unused.
1197 * progspace.h (remove_program_space): Ditto.
1199 2014-05-17 Doug Evans <xdje42@gmail.com>
1201 * inferior.c (prune_inferiors): Fix comment.
1202 (remove_inferior_command): Call prune_program_spaces.
1204 2014-05-16 Doug Evans <dje@google.com>
1206 New command line option -D.
1208 * main.c (set_gdb_data_directory): New function.
1209 (captured_main): Recognize -D. Flag error for --data-directory "".
1210 Call set_gdb_data_directory.
1211 (print_gdb_help): Print --data-directory, -D.
1212 * main.h (set_gdb_data_directory): Declare.
1213 * top.c (staged_gdb_datadir): New static global.
1214 (set_gdb_datadir): Call set_gdb_data_directory
1215 (show_gdb_datadir): New function.
1216 (init_main): Update init of data-directory parameter.
1218 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1220 Import the "dirfd" gnulib module.
1221 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1222 * gnulib/aclocal.m4: Update.
1223 * gnulib/config.in: Update.
1224 * gnulib/configure: Update.
1225 * gnulib/import/Makefile.am: Update.
1226 * gnulib/import/Makefile.in: Update.
1227 * gnulib/import/dirfd.c: New.
1228 * gnulib/import/m4/dirfd.m4: New.
1229 * gnulib/import/m4/gnulib-cache.m4: Update.
1230 * gnulib/import/m4/gnulib-comp.m4: Update.
1232 2014-05-16 Pierre Muller <muller@sourceware.org>
1233 Yao Qi <yao@codesourcery.com>
1235 * valprint.c (print_wchar): Move the code on checking whether
1236 W is a printable wide char to the default branch of switch
1237 statement below. Call wchar_printable instead of gdb_iswprint.
1239 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1241 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1242 ldr.w and ldrd instructions.
1244 2014-05-15 Doug Evans <dje@google.com>
1246 * dwarf2read.c (read_structure_type): Delete outdated comments.
1248 2014-05-14 Tom Tromey <tromey@redhat.com>
1250 * macrocmd.c (print_macro_definition): Reindent.
1252 2014-05-13 Doug Evans <xdje42@gmail.com>
1254 * python/py-cmd.c (cmdpy_completer): Add comment.
1255 (completers): Make const.
1257 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1259 * infrun.c (resume): Remove should_resume (unused). Move up
1260 declaration of resume_ptid.
1262 2014-05-13 Tom Tromey <tromey@redhat.com>
1264 * language.h (unop_type_check): Remove.
1265 (binop_type_check): Don't declare.
1267 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1269 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1270 call to regcache_raw_collect.
1272 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1274 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1275 mi_console->quote as the quoting character.
1277 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1279 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1281 2014-04-29 Tom Tromey <tromey@redhat.com>
1283 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1284 "show debug varobj".
1286 2014-05-07 Kyle McMartin <kyle@redhat.com>
1288 Pushed by Joel Brobecker <brobecker@adacore.com>.
1289 * aarch64-tdep.c (aarch64_software_single_step): New function.
1290 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1291 with aarch64_software_single_step.
1293 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1297 2014-05-05 Keith Seitz <keiths@redhat.com>
1299 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1300 variable or history value is successfully parsed.
1302 2014-05-05 Yao Qi <yao@codesourcery.com>
1303 Pedro Alves <palves@redhat.com>
1305 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1306 address of blocks that intersects the requested range. Trim
1307 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1309 * ctf.c (ctf_xfer_partial): Likewise.
1311 2014-05-05 Yao Qi <yao@codesourcery.com>
1313 * printcmd.c (display_command): Remove the check to
1314 target_has_execution.
1316 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1318 * ppcobsd-nat.c: Include "obsd-nat.h".
1319 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1321 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1323 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1325 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1326 and 16-bit signed and unsigned arguments. Update comment.
1327 (stap_parse_probe_arguments): Extend code to handle such
1328 arguments. Use warning instead of complaint to notify about
1329 unrecognized bitness.
1331 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1333 PR breakpoints/16889
1334 * stap-probe.c (stap_parse_probe_arguments): Simplify
1335 check for non-prefixed probes (i.e., probes whose
1336 arguments do not start with "N@"). Always set the
1337 argument type to a sane value.
1339 2014-05-01 David Taylor <dtaylor@emc.com>
1341 * remote.c (compare_sections_command): Add -r option to compare
1342 all loadable read-only sections.
1344 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1346 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1347 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1349 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1350 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1351 Remove unused CORE_ADDR argument. Update all callers.
1353 2014-04-29 Pedro Alves <palves@redhat.com>
1355 * remote.c (struct packet_config) <detect>: Extend comment.
1356 (add_packet_config_cmd): Don't set the config's detect or support
1358 (init_all_packet_configs): Also initialize the config's 'detect'
1360 (reset_all_packet_configs_support): New function.
1361 (remote_open_1): Call reset_all_packet_configs_support instead of
1362 init_all_packet_configs.
1363 (_initialize_remote): Initialize all packet configs. Assert that
1364 all packets have an associated command, except a few known
1367 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1369 * dwarf2read.c (read_subrange_type): Handle dynamic
1370 DW_AT_lower_bound attributes.
1372 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1374 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1375 dynamic bounds before computing its upper bound.
1376 (ada_discrete_type_low_bound): Same as above with the lower bound.
1378 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1380 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1381 range types. Adjust the array handling implementation to
1382 take advantage of this change.
1383 (resolve_dynamic_range): New function, mostly extracted from
1384 resolve_dynamic_bounds.
1385 (resolve_dynamic_array): New function, mostly extracted from
1386 resolve_dynamic_bounds.
1387 (resolve_dynamic_bounds): Delete.
1388 (resolve_dynamic_type): Reimplement. Add handling of
1389 TYPE_CODE_RANGE types.
1391 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1393 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1394 handling of parallel ___XA types.
1396 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1398 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1399 unnecessary second call to static_unwrap_type.
1401 2014-04-27 Hui Zhu <hui@codesourcery.com>
1403 * stack.c (print_frame_info): Call do_gdb_disassembly with
1404 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1406 2014-04-26 Doug Evans <xdje42@gmail.com>
1408 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1410 2014-04-25 Pedro Alves <palves@redhat.com>
1413 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1414 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1415 and newline from built string.
1416 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1417 (linux_ptrace_attach_fail_reason): ... this.
1418 * linux-nat.c (linux_nat_attach): Adjust to use
1419 linux_ptrace_attach_fail_reason.
1421 2014-04-25 Pedro Alves <palves@redhat.com>
1423 * remote.c (struct remote_state): Remove multi_process_aware,
1424 non_stop_aware, cond_tracepoints, cond_breakpoints,
1425 breakpoint_commands, fast_tracepoints, static_tracepoints,
1426 install_in_trace, disconnected_tracing,
1427 enable_disable_tracepoints, string_tracing, and
1428 augmented_libraries_svr4_read fields.
1429 (remote_multi_process_p): Move further below in the file.
1430 (struct packet_config): Add comments.
1431 (update_packet_config): Delete function.
1432 (show_packet_config_cmd): Use packet_config_support.
1433 (add_packet_config_cmd): Use NULL as set callback.
1434 (packet_ok): "set remote foo-packet"-style commands no longer
1435 change config->supported -- adjust.
1436 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1437 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1438 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1439 (PACKET_QNonStop, PACKET_multiprocess_feature)
1440 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1441 (PACKET_DisconnectedTracing_feature)
1442 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1443 (set_remote_protocol_packet_cmd): Delete function.
1444 (packet_config_support, packet_support): New functions.
1445 (set_remote_protocol_Z_packet_cmd): Don't call
1446 update_packet_config.
1447 (remote_query_attached, remote_pass_signals)
1448 (remote_program_signals, remote_threads_info)
1449 (remote_threads_extra_info, remote_start_remote): Use
1451 (remote_start_remote): Use packet_config_support and
1453 (init_all_packet_configs): Set all packets to unknown support,
1454 instead of calling update_packet_config.
1455 (remote_check_symbols): Use packet_support.
1456 (remote_supported_packet): Unconditionally set the packet config's
1458 (remote_multi_process_feature, remote_non_stop_feature)
1459 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1460 (remote_breakpoint_commands_feature)
1461 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1462 (remote_install_in_trace_feature)
1463 (remote_disconnected_tracing_feature)
1464 (remote_enable_disable_tracepoint_feature)
1465 (remote_string_tracing_feature)
1466 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1467 (remote_protocol_features): Adjust to use remote_supported_packet
1468 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1469 "ConditionalTracepoints", "ConditionalBreakpoints",
1470 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1471 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1472 "EnableDisableTracepoints", and "tracenz".
1473 (remote_query_supported): Use packet_support.
1474 (remote_open_1): Adjust.
1475 (extended_remote_attach_1): Use packet_support. Switch on the
1476 result of packet_ok instead of checking whether the packet ended
1478 (remote_vcont_resume): Use packet_support.
1479 (remote_resume, remote_stop_ns, fetch_register_using_p)
1480 (remote_prepare_to_store, store_register_using_P)
1481 (check_binary_download, remote_write_bytes): Use packet_support.
1482 (remote_vkill): Use packet_support. Switch on the result of
1483 packet_ok instead of checking whether the packet ended up
1485 (extended_remote_supports_disable_randomization): Use
1487 (extended_remote_run): Switch on the result of packet_ok instead
1488 of checking whether the packet ended up disabled.
1489 (remote_insert_breakpoint, remote_remove_breakpoint)
1490 (remote_insert_watchpoint, remote_remove_watchpoint)
1491 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1493 (remote_search_memory): Use packet_config_support.
1494 (remote_get_thread_local_address, remote_get_tib_address)
1495 (remote_hostio_send_command, remote_can_execute_reverse): Use
1497 (remote_supports_cond_tracepoints)
1498 (remote_supports_cond_breakpoints)
1499 (remote_supports_fast_tracepoints)
1500 (remote_supports_static_tracepoints)
1501 (remote_supports_install_in_trace)
1502 (remote_supports_enable_disable_tracepoint)
1503 (remote_supports_string_tracing)
1504 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1505 the packet config says the feature is enabled or disabled.
1506 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1507 (remote_get_trace_status): Use packet_support.
1508 (remote_set_disconnected_tracing): Adjust to check whether the
1509 feature is enabled with packet_support.
1510 (remote_set_trace_buffer_size, remote_use_agent)
1511 (remote_can_use_agent, remote_supports_btrace): Use
1513 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1514 Use packet_config_support.
1515 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1516 the packet config says the feature is enabled or disabled.
1517 (set_range_stepping): Use packet_support.
1519 2014-04-25 Tom Tromey <tromey@redhat.com>
1521 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1524 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1526 * NEWS: Mention support for C99 variable length arrays.
1528 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1530 * ada-lang.c (standard_exc): Expand introductory comment.
1532 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1533 Walfred Tedeschi <walfred.tedeschi@intel.com>
1535 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1537 (amd64_linux_read_description): Add code to handle AVX512 xstate
1538 mask and return respective tdesc.
1539 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1540 and features/i386/x32-avx512-linux.c.
1541 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1542 (amd64_linux_core_read_description): Add code to handle AVX512
1543 xstate mask and return respective tdesc.
1544 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1545 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1547 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1548 (tdesc_amd64_avx512_linux): New prototype.
1549 (tdesc_x32_avx512_linux): Likewise.
1550 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1551 features/i386/x32-avx512.c.
1552 (amd64_ymm_avx512_names): New register names for pseudo
1554 (amd64_ymmh_avx512_names): New register names for raw registers
1556 (amd64_k_names): New register names for K registers.
1557 (amd64_zmmh_names): New register names for ZMM raw registers.
1558 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1559 (amd64_xmm_avx512_names): New register names for XMM16-31
1561 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1563 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1564 if feature is present.
1565 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1566 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1567 (AMD64_NUM_REGS): Adjust to new number of registers.
1568 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1569 registers supplied via XSTATE by AVX512 registers.
1570 (i386_linux_read_description): Add case for AVX512.
1571 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1572 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1573 (i386_linux_core_read_description): Add case for AVX512.
1574 (i386_linux_init_abi): Install supported register note section
1576 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1578 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1579 registers to be number of zmm7h + 1.
1580 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1581 * i386-tdep.c: Include features/i386/i386-avx512.c.
1582 (i386_zmm_names): Add ZMM pseudo register names array.
1583 (i386_zmmh_names): Add ZMM raw register names array.
1584 (i386_k_names): Add K raw register names array.
1585 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1586 registers. AVX512 has 16 more ZMM registers than there are YMM
1588 (i386_zmmh_regnum_p): Add function to look up register number of
1590 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1591 (i386_k_regnum_p): Likewise for K raw registers.
1592 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1593 registers added by AVX512.
1594 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1595 registers added by AVX512.
1596 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1598 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1599 (i386_pseudo_register_name): Add ZMM pseudo registers.
1600 (i386_zmm_type): Construct and return vector registers type for ZMM
1602 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1603 ZMM0-31 pseudo registers and K registers.
1604 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1605 and YMM16-31 registers from register cache.
1606 (i386_pseudo_register_write): Add code to write K, ZMM and
1608 (i386_register_reggroup_p): Add code to include/exclude AVX512
1609 registers in/from respective register groups.
1610 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1611 registers if feature is present in xcr0.
1612 (i386_gdbarch_init): Add code to initialize AVX512 feature
1613 variables in tdep structure, wire in pseudo registers and call
1614 initialize_tdesc_i386_avx512.
1615 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1617 (i386_regnum): Add AVX512 registers.
1618 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1619 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1620 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1621 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1623 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1624 (i386_ymm_avx512_regnum_p): Likewise.
1625 (i386_k_regnum_p): Likewise.
1626 (i386_zmm_regnum_p): Likewise.
1627 (i386_zmmh_regnum_p): Likewise.
1628 * i387-tdep.c : Update year in copyright notice.
1629 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1631 (XSAVE_YMM_AVX512_ADDR): New macro.
1632 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1634 (XSAVE_XMM_AVX512_ADDR): New macro.
1635 (xsave_avx512_k_offset): New table for K register offsets in
1637 (XSAVE_AVX512_K_ADDR): New macro.
1638 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1640 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1641 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1643 (i387_collect_xsave): Add code to collect AVX512 registers from
1645 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1646 of XMM16-31 registers.
1647 (I387_NUM_K_REGS): New define for number of K registers.
1648 (I387_K0_REGNUM): New define for K0 register number.
1649 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1650 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1651 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1653 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1654 (I387_XMM16_REGNUM): New define for XMM16 register number.
1655 (I387_YMM0_REGNUM): New define for YMM0 register number.
1656 (I387_KEND_REGNUM): New define for last K register number.
1657 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1658 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1660 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1662 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1664 * features/Makefile: Add AVX512 related files.
1665 * features/i386/32bit-avx512.xml: New file.
1666 * features/i386/64bit-avx512.xml: Likewise.
1667 * features/i386/amd64-avx512-linux.c: Likewise.
1668 * features/i386/amd64-avx512-linux.xml: Likewise.
1669 * features/i386/amd64-avx512.c: Likewise.
1670 * features/i386/amd64-avx512.xml: Likewise.
1671 * features/i386/i386-avx512-linux.c: Likewise.
1672 * features/i386/i386-avx512-linux.xml: Likewise.
1673 * features/i386/i386-avx512.c: Likewise.
1674 * features/i386/i386-avx512.xml: Likewise.
1675 * features/i386/x32-avx512-linux.c: Likewise.
1676 * features/i386/x32-avx512-linux.xml: Likewise.
1677 * features/i386/x32-avx512.c: Likewise.
1678 * features/i386/x32-avx512.xml: Likewise.
1679 * regformats/i386/amd64-avx512-linux.dat: New file.
1680 * regformats/i386/amd64-avx512.dat: Likewise.
1681 * regformats/i386/i386-avx512-linux.dat: Likewise.
1682 * regformats/i386/i386-avx512.dat: Likewise.
1683 * regformats/i386/x32-avx512-linux.dat: Likewise.
1684 * regformats/i386/x32-avx512.dat: Likewise.
1685 * NEWS: Add note about new support for AVX512.
1688 2014-04-23 Pedro Alves <palves@redhat.com>
1690 * breakpoint.c (insert_bp_location): Tolerate errors if the
1691 breakpoint is set in a user-loaded objfile.
1692 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1693 location is marked shlib_disabled. If the breakpoint is set in a
1694 user-loaded objfile is a GDB-side memory breakpoint, validate it
1695 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1696 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1698 * mem-break.c (memory_validate_breakpoint): New function.
1699 * objfiles.c (userloaded_objfile_contains_address_p): New
1701 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1702 * target.h (memory_validate_breakpoint): New declaration.
1704 2014-04-23 Pedro Alves <palves@redhat.com>
1706 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1707 the breakpoint is set in a shared library, only suppress
1708 errors for software breakpoints, not hardware breakpoints.
1710 2014-04-22 Pedro Alves <palves@redhat.com>
1712 * infrun.c (schedlock_applies): New function, factored out from
1713 find_thread_needs_step_over.
1714 (find_thread_needs_step_over): Use it.
1715 (switch_back_to_stepped_thread): Always clear trap_expected if the
1716 step over is finished. Return early if scheduler locking applies.
1717 Look for the stepping thread and a potential step-over thread with
1719 (currently_stepping_or_nexting_callback): Delete.
1721 2014-04-22 Nick Clifton <nickc@redhat.com>
1723 * NEWS: Mention that ARM sim now supports tracing.
1725 2014-04-22 Yao Qi <yao@codesourcery.com>
1727 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1729 * tracefile.c (tracefile_fetch_registers): ... it. New
1731 * tracefile.h (tracefile_fetch_registers): Declare.
1732 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1733 tracefile_fetch_registers.
1735 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1738 * windows-nat.c (thread_rec): Don't display a warning when
1739 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1740 fails for any reason, set th->suspended to -1, so that we don't
1741 try to resume such a thread. Also, don't return NULL in these
1742 cases, to avoid completely ruin the session due to "PC register is
1743 not available" error.
1744 (do_windows_fetch_inferior_registers): Check errors in
1745 GetThreadContext call.
1746 (windows_continue): Accept an additional argument KILLED; if not
1747 zero, ignore errors in the SetThreadContext call, since the
1748 inferior was killed and is shutting down.
1749 (windows_resume, get_windows_debug_event)
1750 (windows_create_inferior, windows_mourn_inferior)
1751 (windows_kill_inferior): All callers of windows_continue changed
1752 to adjust to its new calling sequence.
1754 2014-04-19 Yao Qi <yao@codesourcery.com>
1756 * ctf.c (ctf_open): Call post_create_inferior.
1758 2014-04-19 Yao Qi <yao@codesourcery.com>
1760 * ctf.c (handle_id): New static variable.
1761 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1762 value. Get the declaration of event "register" and get length
1763 of field "contents".
1765 2014-04-19 Yao Qi <yao@codesourcery.com>
1767 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1769 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1771 * valops.c (oload_method_static): Remove unnecessary argument
1772 METHOD. Update all callers.
1774 2014-04-18 Pedro alves <palves@redhat.com>
1775 Tom Tromey <tromey@redhat.com>
1778 * frame.c (get_prev_frame_1): Rename to ...
1779 (get_prev_frame_always): ... this, and make extern. Adjust.
1780 (skip_artificial_frames): Use get_prev_frame_always.
1781 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1782 (get_frame_unwind_stop_reason): Adjust to rename.
1783 * frame.h (get_prev_frame_always): Declare.
1784 * inline-frame.c: Include frame.h.
1785 (inline_frame_this_id): Use get_prev_frame_always.
1787 2014-04-18 Tristan Gingold <gingold@adacore.com>
1789 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1790 code by using bfd_mach_o_get_base_address.
1792 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1794 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1795 (spu_ax_pseudo_register_collect): New function.
1796 (spu_ax_pseudo_register_push_stack): Likewise.
1797 (spu_dwarf_reg_to_regnum): Likewise.
1798 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1800 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1802 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1803 Replace FRAME argument with FRAME_ID.
1804 * gdbarch.c, gdbarch.h: Regenerate.
1805 * findvar.c (default_value_from_register): Add GDBARCH argument;
1806 replace FRAME by FRAME_ID. No longer call get_frame_id.
1807 (value_from_register): Update call to gdbarch_value_from_register.
1808 * value.h (default_value_from_register): Update prototype.
1809 * s390-linux-tdep.c (s390_value_from_register): Update interface
1810 and call to default_value_from_register.
1811 * spu-tdep.c (spu_value_from_register): Likewise.
1813 * findvar.c (address_from_register): Remove TYPE argument.
1814 Do not call value_from_register; use gdbarch_value_from_register
1815 with null_frame_id instead.
1816 * value.h (address_from_register): Update prototype.
1817 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1818 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1819 address_from_register interface change.
1821 2014-04-17 Yao Qi <yao@codesourcery.com>
1823 * gdbtypes.h: Update comments to link to types and macros'
1826 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1828 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1830 2014-04-16 Keith Seitz <keiths@redhat.com>
1833 * dwarf2read.c (skip_one_die): Check that all relative-offset
1834 sibling DIEs fall within range of the current reader's buffer.
1835 (read_partial_die): Likewise.
1837 2014-04-16 Keith Seitz <keiths@redhat.com>
1840 * cp-namespace.c (lookup_symbol_file): If the type name of
1841 `this' is NULL, return immediately.
1843 2014-04-14 Keith Seitz <keiths@redhat.com>
1846 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1847 from symbol_matches_domain in symtab.c. All local callers
1848 of symbol_matches_domain updated.
1849 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1850 search STRUCT_DOMAIN.
1851 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1852 independently. standard_lookup will do that automatically.
1853 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1854 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1855 (cp_lookup_symbol_in_namespace): Likewise.
1856 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1857 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1858 may return a STRUCT_DOMAIN match.
1859 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1860 * cp-support.c: Include language.h.
1861 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1863 * psymtab.c (match_partial_symbol): Compare the requested
1864 domain with the symbol's domain directly.
1865 (lookup_partial_symbol): Likewise.
1866 * symtab.c (lookup_symbol_in_language): Explain when/why
1867 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1868 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1869 appropriate languages.
1870 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1871 and moved to ada-lang.c
1872 (lookup_block_symbol): Explain that this function only returns
1873 symbol matching the requested DOMAIN.
1874 Compare the requested domain with the symbol's domain directly.
1875 (iterate_over_symbols): Compare the requested domain with the
1876 symbol's domain directly.
1877 * symtab.h (symbol_matches_domain): Remove.
1879 2014-04-14 Tom Tromey <tromey@redhat.com>
1882 * c-exp.y (type_aggregate_p): New function.
1883 (qualified_name, classify_inner_name): Use it.
1884 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1885 and TYPE_TARGET_TYPE of an enum type.
1886 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1888 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1889 handle TYPE_DECLARED_CLASS.
1890 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1892 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1893 * valops.c (enum_constant_from_type): New function.
1894 (value_aggregate_elt): Use it.
1895 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1898 2014-04-14 Tom Tromey <tromey@redhat.com>
1900 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1901 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1903 * value.h (value_aggregate_elt): Update.
1905 2014-04-14 Tom Tromey <tromey@redhat.com>
1907 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1909 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1911 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1912 (evaluate_subexp_standard): Pass noside argument.
1913 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1914 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1915 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1916 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1917 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1919 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1921 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1922 points to a constant blob.
1924 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1926 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1927 property and store it as the high bound and flag the range accordingly.
1928 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1929 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1930 * gdbtypes.h (enum range_flags): New enum.
1931 (struct range_bounds): Add flags member.
1933 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1935 * c-typeprint.c (c_type_print_varspec_suffix): Added
1936 check for not yet resolved high bound. If unresolved, print
1937 "variable length" string to the console instead of random
1940 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1942 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1944 (ada_template_to_fixed_record_type_1): Likewise.
1945 (ada_to_fixed_type_1): Likewise.
1946 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1947 (cp_print_value): Likewise.
1948 * d-valprint.c (dynamic_array_type): Likewise.
1949 * findvar.c (address_of_variable): Likewise.
1950 * jv-valprint.c (java_value_print): Likewise.
1951 * valops.c (value_ind): Likewise.
1952 * value.c (coerce_ref): Likewise.
1954 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1956 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1957 value and retrieve the dynamic type size.
1959 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1961 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1962 passed to sizeof is dynamic evaluate the argument to compute the length.
1964 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1965 Joel Brobecker <brobecker@adacore.com>
1967 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1968 (dwarf2_evaluate_property): New function.
1969 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1970 * dwarf2read.c (attr_to_dynamic_prop): New function.
1971 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1973 * gdbtypes.c: Include dwarf2loc.h.
1974 (is_dynamic_type): New function.
1975 (resolve_dynamic_type): New function.
1976 (resolve_dynamic_bounds): New function.
1977 (get_type_length): New function.
1978 (check_typedef): Use get_type_length to compute type length.
1979 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1980 (TYPE_LOW_BOUND_KIND): New macro.
1981 (is_dynamic_type): New function prototype.
1982 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1983 to resolve dynamic properties of the type. Update comment.
1984 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1986 2014-04-14 Richard Henderson <rth@redhat.com>
1988 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1990 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1991 Doug Evans <xdje42@gmail.com>
1993 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1994 dereference TYPE_CODE_REF values.
1996 2014-04-11 Joel Brobecker <brobecker@adacore.com>
1998 Revert the following changes due to regressions:
2000 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2001 (dwarf2_evaluate_property): New function.
2002 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2003 * dwarf2read.c (attr_to_dynamic_prop): New function.
2004 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2006 * gdbtypes.c: Include dwarf2loc.h.
2007 (is_dynamic_type): New function.
2008 (resolve_dynamic_type): New function.
2009 (resolve_dynamic_bounds): New function.
2010 (get_type_length): New function.
2011 (check_typedef): Use get_type_length to compute type length.
2012 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2013 (TYPE_LOW_BOUND_KIND): New macro.
2014 (is_dynamic_type): New function prototype.
2015 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2016 to resolve dynamic properties of the type. Update comment.
2017 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2019 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2020 passed to sizeof is dynamic evaluate the argument to compute the length.
2022 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2023 value and retrieve the dynamic type size.
2025 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2026 (ada_template_to_fixed_record_type_1): Likewise.
2027 (ada_to_fixed_type_1): Likewise.
2028 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2029 (cp_print_value): Likewise.
2030 * d-valprint.c (dynamic_array_type): Likewise.
2031 * eval.c (evaluate_subexp_with_coercion): Likewise.
2032 * findvar.c (address_of_variable): Likewise.
2033 * jv-valprint.c (java_value_print): Likewise.
2034 * valops.c (value_ind): Likewise.
2035 * value.c (coerce_ref): Likewise.
2037 * c-typeprint.c (c_type_print_varspec_suffix): Added
2038 check for not yet resolved high bound. If unresolved, print
2039 "variable length" string to the console instead of random
2042 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2043 property and store it as the high bound and flag the range accordingly.
2044 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2045 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2046 * gdbtypes.h (enum range_flags): New enum.
2047 (struct range_bounds): Add flags member.
2049 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2050 points to a constant blob.
2052 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2053 (evaluate_subexp_standard): Pass noside argument.
2054 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2055 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2056 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2057 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2058 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2060 2014-04-11 Keith Seitz <keiths@redhat.com>
2063 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2064 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2067 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2069 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2070 (evaluate_subexp_standard): Pass noside argument.
2071 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2072 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2073 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2074 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2075 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2077 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2079 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2080 points to a constant blob.
2082 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2084 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2085 property and store it as the high bound and flag the range accordingly.
2086 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2087 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2088 * gdbtypes.h (enum range_flags): New enum.
2089 (struct range_bounds): Add flags member.
2091 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2093 * c-typeprint.c (c_type_print_varspec_suffix): Added
2094 check for not yet resolved high bound. If unresolved, print
2095 "variable length" string to the console instead of random
2098 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2100 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2101 (ada_template_to_fixed_record_type_1): Likewise.
2102 (ada_to_fixed_type_1): Likewise.
2103 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2104 (cp_print_value): Likewise.
2105 * d-valprint.c (dynamic_array_type): Likewise.
2106 * eval.c (evaluate_subexp_with_coercion): Likewise.
2107 * findvar.c (address_of_variable): Likewise.
2108 * jv-valprint.c (java_value_print): Likewise.
2109 * valops.c (value_ind): Likewise.
2110 * value.c (coerce_ref): Likewise.
2112 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2114 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2115 value and retrieve the dynamic type size.
2117 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2119 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2120 passed to sizeof is dynamic evaluate the argument to compute the length.
2122 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2124 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2125 (dwarf2_evaluate_property): New function.
2126 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2127 * dwarf2read.c (attr_to_dynamic_prop): New function.
2128 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2130 * gdbtypes.c: Include dwarf2loc.h.
2131 (is_dynamic_type): New function.
2132 (resolve_dynamic_type): New function.
2133 (resolve_dynamic_bounds): New function.
2134 (get_type_length): New function.
2135 (check_typedef): Use get_type_length to compute type length.
2136 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2137 (TYPE_LOW_BOUND_KIND): New macro.
2138 (is_dynamic_type): New function prototype.
2139 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2140 to resolve dynamic properties of the type. Update comment.
2141 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2143 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2145 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2146 declaring high/low bounds and change uses accordingly. Call
2147 create_range_type instead of create_static_range_type.
2148 * gdbtypes.c (create_range_type): New function.
2149 (create_range_type): Convert bounds into struct bound_prop and pass
2150 them to create_range_type.
2151 * gdbtypes.h (struct bound_prop): New struct.
2152 (create_range_type): New function prototype.
2153 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2154 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2155 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2157 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2159 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2161 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2162 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2163 * ada-lang.c: All uses of create_range_type updated.
2164 * coffread.c: All uses of create_range_type updated.
2165 * dwarf2read.c: All uses of create_range_type updated.
2166 * f-exp.y: All uses of create_range_type updated.
2167 * m2-valprint.c: All uses of create_range_type updated.
2168 * mdebugread.c: All uses of create_range_type updated.
2169 * stabsread.c: All uses of create_range_type updated.
2170 * valops.c: All uses of create_range_type updated.
2171 * valprint.c: All uses of create_range_type updated.
2173 2014-04-10 Pedro Alves <palves@redhat.com>
2175 * breakpoint.c (single_step_breakpoints)
2176 (single_step_gdbarch): Move up in the file.
2177 (one_breakpoint_xfer_memory): New function, factored out from ...
2178 (breakpoint_xfer_memory): ... here. Also process single-step
2181 2014-04-09 Tristan Gingold <gingold@adacore.com>
2183 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2185 (darwin_decode_exception_message): Free port only after use.
2187 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2189 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2190 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2191 when setting the size of call_length.
2193 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2195 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2196 dereference TYPE_CODE_REF values.
2198 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2200 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2201 end of warning message.
2203 2014-04-03 Doug Evans <dje@google.com>
2205 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2206 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2208 2014-04-02 Alan Modra <amodra@gmail.com>
2210 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2211 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2212 (struct symbol_file_add_from_memory_args): Add size field.
2213 (find_vdso_size): New function.
2214 (add_vsyscall_page): Attempt to find vdso size.
2216 2014-04-01 Doug Evans <dje@google.com>
2218 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2220 2014-04-01 Tristan Gingold <gingold@adacore.com>
2222 * darwin-nat.c (darwin_encode_reply): Add prototype.
2223 (darwin_decode_exception_message): Reply to unknown inferiors.
2224 (darwin_decode_message): Handle message by id. Ignore message
2225 to unknown inferior.
2226 (darwin_wait): Discard unknown messages, add debug trace.
2228 2014-03-31 Doug Evans <dje@google.com>
2230 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2233 2014-03-31 Doug Evans <dje@google.com>
2235 New option "set print symbol-loading".
2237 * solib.c (solib_read_symbols): Only print symbol loading messages
2239 (solib_add): If symbol loading is in "brief" mode, notify user
2240 symbols are being loaded.
2241 (reload_shared_libraries_1): Ditto.
2242 * symfile.c (print_symbol_loading_off): New static global.
2243 (print_symbol_loading_brief): New static global.
2244 (print_symbol_loading_full): New static global.
2245 (print_symbol_loading_enums): New static global.
2246 (print_symbol_loading): New static global.
2247 (print_symbol_loading_p): New function.
2248 (symbol_file_add_with_addrs): Only print symbol loading messages
2250 (_initialize_symfile): Register "print symbol-loading" set/show
2252 * symfile.h (print_symbol_loading_p): Declare.
2254 2014-03-30 Doug Evans <xdje42@gmail.com>
2256 * infrun.c (set_last_target_status): New function.
2257 (handle_inferior_event): Call it.
2259 2014-03-30 Doug Evans <xdje42@gmail.com>
2261 * inferior.h (enum stop_kind): Improve comment.
2263 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2265 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2266 a reference, strip the reference layer before calling
2267 the lang_ops value_has_mutated callback.
2269 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2271 Remove some globals from our parser.
2272 * language.c (unk_lang_parser): Add "struct parser_state"
2274 * language.h (struct language_defn) <la_parser>: Likewise.
2275 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2276 (initialize_expout): Add "struct parser_state" argument.
2277 Rewrite function to use the parser state.
2278 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2279 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2280 write_exp_elt_longcst, write_exp_elt_dblcst,
2281 write_exp_elt_decfloatcst, write_exp_elt_type,
2282 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2283 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2284 write_dollar_variable): Likewise.
2285 (parse_exp_in_context_1): Use parser state.
2286 (insert_type_address_space): Add "struct parser_state" argument.
2288 (increase_expout_size): New function.
2289 * parser-defs.h: Forward declare "struct language_defn" and
2290 "struct parser_state".
2291 (expout, expout_size, expout_ptr): Remove extern declarations.
2292 (parse_gdbarch, parse_language): Rewrite macro declarations to
2293 accept the parser state.
2294 (struct parser_state): New struct.
2295 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2296 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2297 write_exp_elt_decfloatcst, write_exp_elt_type,
2298 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2299 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2300 write_exp_msymbol, write_dollar_variable,
2301 mark_struct_expression, insert_type_address_space): Add "struct
2302 parser_state" argument.
2303 (increase_expout_size): New function.
2304 * utils.c (do_clear_parser_state): New function.
2305 (make_cleanup_clear_parser_state): Likewise.
2306 * utils.h (make_cleanup_clear_parser_state): New function
2308 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2309 Update calls to write_exp* in order to pass the parser state.
2310 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2311 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2312 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2313 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2314 * stap-probe.c (stap_parse_register_operand): Likewise.
2315 (stap_parse_single_operand): Likewise.
2316 (stap_parse_argument_1): Likewise.
2317 (stap_parse_argument): Use parser state.
2318 * stap-probe.h: Include "parser-defs.h".
2319 (struct stap_parse_info) <pstate>: New field.
2320 * c-exp.y (parse_type): Rewrite to use parser state.
2321 (yyparse): Redefine to c_parse_internal.
2322 (pstate): New global variable.
2323 (parse_number): Add "struct parser_state" argument.
2324 (write_destructor_name): Likewise.
2325 (type_exp): Update calls to write_exp* and similars in order to
2327 (exp1, exp, variable, qualified_name, space_identifier,
2328 typename, typebase): Likewise.
2329 (write_destructor_name, parse_number, lex_one_token,
2330 classify_name, classify_inner_name, c_parse): Add "struct
2331 parser_state" argument. Update function to use parser state.
2332 * c-lang.h: Forward declare "struct parser_state".
2333 (c_parse): Add "struct parser_state" argument.
2334 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2335 (yyparse): Redefine macro to ada_parse_internal.
2336 (pstate): New variable.
2337 (write_int, write_object_renaming, write_var_or_type,
2338 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2339 type_int, type_long, type_long_long, type_float, type_double,
2340 type_long_double, type_char, type_boolean, type_system_address):
2341 Add "struct parser_state" argument.
2342 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2343 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2344 var_or_type, aggregate, aggregate_component_list,
2345 positional_list, others, component_group,
2346 component_associations): Update calls to write_exp* and similar
2347 functions in order to use parser state.
2348 (ada_parse, write_var_from_sym, write_int,
2349 write_exp_op_with_string, write_object_renaming,
2350 find_primitive_type, write_selectors, write_ambiguous_var,
2351 write_var_or_type, write_name_assoc, type_int, type_long,
2352 type_long_long, type_float, type_double, type_long_double,
2353 type_char, type_boolean, type_system_address): Add "struct
2354 parser_state" argument. Adjust function to use parser state.
2355 * ada-lang.c (parse): Likewise.
2356 * ada-lang.h: Forward declare "struct parser_state".
2357 (ada_parse): Add "struct parser_state" argument.
2358 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2359 calls to both functions.
2360 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2362 (yyparse): Redefine macro to f_parse_internal.
2363 (pstate): New variable.
2364 (parse_number): Add "struct parser_state" argument.
2365 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2366 and similars in order to use parser state.
2367 (parse_number): Adjust code to use parser state.
2369 (f_parse): New function.
2370 * f-lang.h: Forward declare "struct parser_state".
2371 (f_parse): Add "struct parser_state" argument.
2372 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2374 (yyparse): Redefine macro for java_parse_internal.
2375 (pstate): New variable.
2376 (push_expression_name, push_expression_name, insert_exp): Add
2377 "struct parser_state" argument.
2378 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2379 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2380 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2381 PostIncrementExpression, PostDecrementExpression,
2382 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2383 UnaryExpressionNotPlusMinus, CastExpression,
2384 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2385 RelationalExpression, EqualityExpression, AndExpression,
2386 ExclusiveOrExpression, InclusiveOrExpression,
2387 ConditionalAndExpression, ConditionalOrExpression,
2388 ConditionalExpression, Assignment, LeftHandSide): Update
2389 calls to write_exp* and similars in order to use parser state.
2390 (parse_number): Ajust code to use parser state.
2392 (java_parse): New function.
2393 (push_variable): Add "struct parser_state" argument. Adjust
2394 code to user parser state.
2395 (push_fieldnames, push_qualified_expression_name,
2396 push_expression_name, insert_exp): Likewise.
2397 * jv-lang.h: Forward declare "struct parser_state".
2398 (java_parse): Add "struct parser_state" argument.
2399 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2401 (yyparse): Redefine macro to m2_parse_internal.
2402 (pstate): New variable.
2403 (type_exp, exp, fblock, variable, type): Update calls to
2404 write_exp* and similars to use parser state.
2406 (m2_parse): New function.
2407 * m2-lang.h: Forward declare "struct parser_state".
2408 (m2_parse): Add "struct parser_state" argument.
2409 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2410 * objc-lang.h: Forward declare "struct parser_state".
2411 (end_msglist): Add "struct parser_state" argument.
2412 * p-exp.y (parse_type): Rewrite macro to use parser state.
2413 (yyparse): Redefine macro to pascal_parse_internal.
2414 (pstate): New variable.
2415 (parse_number): Add "struct parser_state" argument.
2416 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2417 write_exp* and similars in order to use parser state.
2418 (parse_number, yylex): Adjust code to use parser state.
2419 (pascal_parse): New function.
2420 * p-lang.h: Forward declare "struct parser_state".
2421 (pascal_parse): Add "struct parser_state" argument.
2422 * go-exp.y (parse_type): Rewrite macro to use parser state.
2423 (yyparse): Redefine macro to go_parse_internal.
2424 (pstate): New variable.
2425 (parse_number): Add "struct parser_state" argument.
2426 (type_exp, exp1, exp, variable, type): Update calls to
2427 write_exp* and similars in order to use parser state.
2428 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2429 to use parser state.
2430 (go_parse): Likewise.
2431 * go-lang.h: Forward declare "struct parser_state".
2432 (go_parse): Add "struct parser_state" argument.
2434 2014-03-27 Doug Evans <dje@google.com>
2436 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2438 2014-03-27 Doug Evans <dje@google.com>
2440 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2441 Remove argument abbrev_section. All callers updated.
2443 2014-03-27 Doug Evans <dje@google.com>
2445 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2446 addr_base, ranges_base.
2448 2014-03-26 Keith Seitz <keiths@redhat.com>
2450 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2451 types, not VAR_DOMAIN.
2453 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2455 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2457 * features/nios2-linux.c: Regenerated.
2458 * features/nios2.c: Regenerated.
2460 2014-03-25 Pedro Alves <palves@redhat.com>
2462 * cli/cli-script.c (script_from_file): Force the interpreter to
2465 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2467 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2468 small stack allocation.
2470 2014-03-24 Tristan Gingold <gingold@adacore.com>
2472 * darwin-nat.c (exc_server): Remove unused prototype.
2473 (darwin_dump_message): Correctly display data on x86_64.
2474 (darwin_encode_reply): Fix style.
2475 Add comments and fix indentation.
2477 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2479 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2481 2014-03-22 Doug Evans <xdje42@gmail.com>
2483 * infcmd.c: Whitespace fixes.
2484 (interrupt_command): Merge two function comments into one.
2486 2014-03-22 Doug Evans <xdje42@gmail.com>
2488 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2491 2014-03-22 Yao Qi <yao@codesourcery.com>
2493 * remote.c (target_read_live_memory): Remove.
2494 (memory_xfer_live_readonly_partial): Rename it to
2495 remote_xfer_live_readonly_partial. Remove argument 'object'.
2496 All callers updated. Call remote_read_bytes_1
2497 instead of target_read_live_memory.
2498 * tracepoint.c (set_traceframe_number): Remove.
2499 (make_cleanup_restore_traceframe_number): Likewise .
2500 * tracepoint.h (set_traceframe_number): Remove declaration.
2501 (make_cleanup_restore_traceframe_number): Likewise.
2503 2014-03-22 Yao Qi <yao@codesourcery.com>
2505 * remote.c (remote_read_bytes): Move code on reading from the
2507 (remote_read_bytes_1): ... here. New function.
2509 2014-03-22 Yao Qi <yao@codesourcery.com>
2511 * ctf.c (ctf_xfer_partial): Check the return value of
2512 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2513 return TARGET_XFER_UNAVAILABLE.
2514 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2515 * target.c (target_read_live_memory): Move it to remote.c.
2516 (memory_xfer_live_readonly_partial): Likewise.
2517 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2518 * remote.c (target_read_live_memory): Moved from target.c.
2519 (memory_xfer_live_readonly_partial): Likewise.
2520 (remote_read_bytes): Factored out from
2521 memory_xfer_partial_1.
2523 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2525 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2528 2014-03-21 Pedro Alves <palves@redhat.com>
2530 * infrun.c (normal_stop): Extend comment.
2532 2014-03-21 Hui Zhu <hui@codesourcery.com>
2533 Pedro Alves <palves@redhat.com>
2535 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2537 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2538 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2539 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2541 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2543 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2544 `z' formatted output modifier.
2546 2014-03-20 Tom Tromey <tromey@redhat.com>
2547 Sergio Durigan Junior <sergiodj@redhat.com>
2549 * probe.c (parse_probes): Turn assert into an ordinary error.
2550 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2551 exceptions when parsing probes. Rearrange the code for clarity.
2553 2014-03-20 Tom Tromey <tromey@redhat.com>
2556 * top.c (execute_command): Only dispatch events if the command
2559 2014-03-20 Tom Tromey <tromey@redhat.com>
2562 * infcall.c: Include event-top.h.
2563 (run_inferior_call): Call async_disable_stdin if needed.
2565 2014-03-20 Pedro Alves <palves@redhat.com>
2567 * infrun.c (prepare_to_proceed): Delete.
2568 (thread_still_needs_step_over): New function.
2569 (find_thread_needs_step_over): New function.
2570 (proceed): If the current thread needs a step-over, set its
2571 steping_over_breakpoint flag. Adjust to use
2572 find_thread_needs_step_over instead of prepare_to_proceed.
2573 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2574 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2576 (switch_back_to_stepped_thread): Step over breakpoints of all
2577 threads not the stepping thread, before switching back to the
2580 2014-03-20 Pedro Alves <palves@redhat.com>
2582 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2584 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2585 * infrun.c (saved_singlestep_ptid)
2586 (stepping_past_singlestep_breakpoint): Delete.
2587 (resume): Remove stepping_past_singlestep_breakpoint handling.
2588 (proceed): Store the prev_pc of the stepping thread too.
2589 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2591 (enum infwait_states): Delete infwait_thread_hop_state.
2592 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2594 (handle_inferior_event): Adjust.
2595 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2596 handling and the thread-hop code. Before removing single-step
2597 breakpoints, check whether the thread hit a single-step breakpoint
2598 of another thread. If it did, the trap is not a random signal.
2599 (switch_back_to_stepped_thread): If the event thread hit a
2600 single-step breakpoint, unblock it before switching to the
2601 stepping thread. Handle the case of the stepped thread having
2603 (keep_going): Handle the case of the current thread moving past a
2604 single-step breakpoint.
2606 2014-03-20 Pedro Alves <palves@redhat.com>
2609 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2610 are being stepped over.
2611 (breakpoint_address_match): Make extern.
2612 * breakpoint.h (breakpoint_address_match): New declaration.
2613 * inferior.h (stepping_past_instruction_at): New declaration.
2614 * infrun.c (struct step_over_info): New type.
2615 (step_over_info): New global.
2616 (set_step_over_info, clear_step_over_info)
2617 (stepping_past_instruction_at): New functions.
2618 (handle_inferior_event): Clear the step-over info when
2619 trap_expected is cleared.
2620 (resume): Remove now stale comment.
2621 (clear_proceed_status): Clear step-over info.
2622 (proceed): Adjust step-over handling to set or clear the step-over
2623 info instead of removing all breakpoints.
2624 (handle_signal_stop): When setting up a thread-hop, don't remove
2626 (stop_stepping): Clear step-over info.
2627 (keep_going): Adjust step-over handling to set or clear step-over
2628 info and then always inserting breakpoints, instead of removing
2629 all breakpoints when stepping over one.
2631 2014-03-20 Pedro Alves <palves@redhat.com>
2633 * infrun.c (previous_inferior_ptid): Adjust comment.
2634 (deferred_step_ptid): Delete.
2635 (infrun_thread_ptid_changed, prepare_to_proceed)
2636 (init_wait_for_inferior): Adjust.
2637 (handle_signal_stop): Delete deferred_step_ptid handling.
2639 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2642 * defs.h (sync_quit_force_run): New declaration.
2643 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2644 * event-top.c (async_sigterm_handler): New declaration.
2645 (async_sigterm_token): New variable.
2646 (async_init_signals): Create also async_sigterm_token.
2647 (async_sigterm_handler): New function.
2648 (sync_quit_force_run): New variable.
2649 (handle_sigterm): Replace quit_force call by other calls.
2650 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2652 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2654 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2655 offset into SPE pseudo registers.
2657 2014-03-18 Pedro Alves <palves@redhat.com>
2660 * inferior.h (print_stop_event): Declare.
2661 * infrun.c (print_stop_event): New, factored out from ...
2662 (normal_stop): ... this.
2663 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2664 of bpstat_print/print_stack_frame.
2666 2014-03-17 Tom Tromey <tromey@redhat.com>
2668 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2670 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2672 * ada-lang.c (decode_constrained_packed_array): Perform a
2673 minimal coercion for reference with coerce_ref instead of
2676 2014-03-17 Tristan Gingold <gingold@adacore.com>
2678 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2679 (darwin_solib_create_inferior_hook): Emit a warning if version
2682 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2684 * python/py-value.c (get_field_flag): Cast flag_name argument to
2685 PyObject_GetAttrString to support Python 2.4.
2687 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2689 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2690 (Global Maintainers): Remove Jan Kratochvil.
2692 2014-03-14 Pedro Alves <palves@redhat.com>
2694 * inferior.h (terminal_ours_for_output): Rename to ...
2695 (child_terminal_ours_for_output): ... this.
2696 (terminal_save_ours): Rename to ...
2697 (child_terminal_save_ours): ... this.
2698 (terminal_ours): Rename to ...
2699 (child_terminal_ours): ... this.
2700 (terminal_inferior): Rename to ...
2701 (child_terminal_inferior): ... this.
2702 (terminal_init_inferior): Rename to ...
2703 (child_terminal_init_inferior): ... this.
2704 (terminal_init_inferior_with_pgrp): Rename to ...
2705 (child_terminal_init_inferior_with_pgrp): ... this.
2706 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2707 (child_terminal_init_with_pgrp): ... this.
2708 (terminal_save_ours): Rename to ...
2709 (child_terminal_save_ours): ... this.
2710 (terminal_init_inferior): Rename to ...
2711 (child_terminal_init): ... this. Adjust.
2712 (terminal_inferior): Rename to ...
2713 (child_terminal_inferior): ... this.
2714 (terminal_ours_for_output): Rename to ...
2715 (child_terminal_ours_for_output): ... this. Adjust.
2716 (terminal_ours): Rename to ...
2717 (child_terminal_ours): ... this.
2718 (terminal_ours_1): Rename to ...
2719 (child_terminal_ours_1): ... this. Adjust.
2720 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2721 * windows-nat.c (do_initial_windows_stuff): Adjust.
2722 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2723 (gnu_terminal_init): ... this. Adjust.
2724 (gnu_target): Adjust.
2725 * inf-child.c (inf_child_target): Adjust.
2727 2014-03-13 Doug Evans <xdje42@gmail.com>
2730 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2733 2014-03-13 Doug Evans <xdje42@gmail.com>
2735 * value.c (record_latest_value): Call release_value_or_incref
2736 instead of release_value.
2738 2014-03-13 Pedro Alves <palves@redhat.com>
2740 * procfs.c (procfs_target): Don't override to_shortname,
2741 to_longname or to_doc.
2743 2014-03-13 Pedro Alves <palves@redhat.com>
2745 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2746 Unix in user visible strings.
2748 2014-03-12 Stan Shebs <stan@codesourcery.com>
2750 * gdbtypes.h: Annotate comments for Doxygen, add a page
2751 block comment with some general info.
2753 2014-03-12 Pedro Alves <palves@redhat.com>
2755 * infcmd.c (prepare_execution_command): New function, factored out
2756 from several execution commands.
2757 (run_command_1, continue_command, step_1, jump_command)
2758 (signal_command, until_command, advance_command, finish_command)
2759 (attach_command): Use prepare_execution_command.
2761 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2763 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2766 (struct arm_linux_thread_points): Removed.
2767 (struct arm_linux_process_info): New.
2768 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2769 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2770 (arm_linux_find_breakpoints_by_tid): Removed.
2771 (struct arch_lwp_info): New.
2772 (arm_linux_find_process_pid): New functions.
2773 (arm_linux_add_process): New functions.
2774 (arm_linux_process_info_get): New functions.
2775 (arm_linux_forget_process): New function.
2776 (arm_linux_get_debug_reg_state): New function.
2777 (struct update_registers_data): New.
2778 (update_registers_callback): New function.
2779 (arm_linux_insert_hw_breakpoint1): Updated.
2780 (arm_linux_remove_hw_breakpoint1): Updated.
2781 (arm_linux_insert_hw_breakpoint): Updated.
2782 (arm_linux_remove_hw_breakpoint): Updated.
2783 (arm_linux_insert_watchpoint): Updated.
2784 (arm_linux_remove_watchpoint): Updated.
2785 (arm_linux_new_thread): Updated.
2786 (arm_linux_prepare_to_resume): New function.
2787 (arm_linux_new_fork): New function.
2788 (_initialize_arm_linux_nat): Updated.
2790 2014-03-12 Pedro Alves <palves@redhat.com>
2792 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2794 2014-03-12 Tom Tromey <tromey@redhat.com>
2796 * inf-child.c (return_zero): New function.
2797 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2798 * aix-thread.c (aix_thread_inferior_created): New function.
2799 (aix_thread_attach): Remove.
2800 (init_aix_thread_ops): Don't set to_attach.
2801 (_initialize_aix_thread): Register inferior_created observer.
2802 * corelow.c (init_core_ops): Don't set to_attach or
2804 * exec.c (init_exec_ops): Don't set to_attach or
2806 * infcmd.c (run_command_1): Use find_run_target. Make direct
2808 (attach_command): Use find_attach_target. Make direct target
2810 * record-btrace.c (init_record_btrace_ops): Don't set
2812 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2814 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2815 set to_create_inferior.
2816 * target.c (complete_target_initialization): Add assertion.
2817 (target_create_inferior): Remove.
2818 (find_default_attach, find_default_create_inferior): Remove.
2819 (find_attach_target, find_run_target): New functions.
2820 (find_default_is_async_p, find_default_can_async_p)
2821 (target_supports_non_stop, target_attach): Remove.
2822 (init_dummy_target): Don't set to_create_inferior or
2823 to_supports_non_stop.
2824 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2825 TARGET_DEFAULT_FUNC.
2826 <to_create_inferior>: Add comment.
2827 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2828 TARGET_DEFAULT_RETURN.
2829 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2830 (find_attach_target, find_run_target): Declare.
2831 (target_create_inferior): Remove.
2832 (target_has_execution_1): Update comment.
2833 (target_supports_non_stop): Remove.
2834 * target-delegates.c: Rebuild.
2836 2014-03-12 Pedro Alves <palves@redhat.com>
2838 * inf-child.h: Update comment to not mention Unix.
2840 2014-03-12 Pedro Alves <palves@redhat.com>
2842 * inf-child.c: Update top comment to not mention Unix. Add
2843 generic comment describing how this target is meant to be used.
2844 (inf_child_post_attach, inf_child_post_startup_inferior)
2845 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2848 2014-03-12 Pedro Alves <palves@redhat.com>
2850 * nto-procfs.c: Include inf-child.h.
2851 (procfs_ops): Delete global.
2852 (procfs_can_run): Delete method.
2853 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2854 target pointer instead of referencing procfs_ops.
2855 (procfs_prepare_to_store): Delete.
2856 (init_procfs_ops): Delete function.
2857 (procfs_target): New function, based on init_procfs_ops, but
2858 inherit inf_child_target.
2859 (_initialize_procfs): Use procfs_target.
2861 2014-03-12 Pedro Alves <palves@redhat.com>
2863 * windows-nat.c: Include inf-child.h.
2864 (windows_ops): Delete global.
2865 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2867 (init_windows_ops): Delete function.
2868 (windows_target): New function, based on init_windows_ops, but
2869 inherit inf_child_target.
2870 (_initialize_windows_nat): Use windows_target. Install x86
2871 specific target methods here.
2873 2014-03-10 Doug Evans <xdje42@gmail.com>
2875 * guile/guile.c (call_initialize_gdb_module): New function.
2876 (initialize_guile): Replace call to scm_init_guile with call to
2879 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2881 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2882 in call to TYPE_CODE macro.
2884 2014-03-10 Jerome Guitton <guitton@adacore.com>
2886 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2887 Resolve tagged types to full view.
2889 2014-03-10 Hui Zhu <hui@codesourcery.com>
2891 * target.h (target_insert_breakpoint): Remove "hardware" from its
2894 2014-03-07 Doug Evans <dje@google.com>
2896 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2898 2014-03-07 Doug Evans <dje@google.com>
2900 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2901 Remove unused local comp_dir_attr. Assert exactly one of
2902 stub_comp_unit_die, stub_comp_dir is non-NULL.
2904 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2906 * target.h (complete_target_initialization, add_target):
2909 2014-03-07 Pedro Alves <palves@redhat.com>
2911 * go32-nat.c: Include inf-child.h.
2912 (go32_ops): Delete global.
2913 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2915 (go32_create_inferior): Push the passed in target pointer instead
2916 of referencing go32_ops.
2917 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2918 (go32_target): New function, based on init_go32_ops, but inherit
2920 (_initialize_go32_nat): Use go32_target. Move parts of
2923 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2925 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2926 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2927 SYMBOL_VALUE_ADDRESS.
2928 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2930 2014-03-06 Yao Qi <yao@codesourcery.com>
2932 * breakpoint.c (get_tracepoint_by_number): Remove argument
2933 optional_p. All callers updated. Adjust comments. Update
2935 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2937 2014-03-06 Yao Qi <yao@codesourcery.com>
2939 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2940 early if get_number returns zero. Use 'p' instead of 'args'.
2942 2014-03-06 Yao Qi <yao@codesourcery.com>
2944 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2947 2014-03-06 Yao Qi <yao@codesourcery.com>
2949 PR breakpoints/16508
2950 * tracepoint.c (check_trace_running): New function.
2951 (trace_find_command): Move code to check_trace_running and
2952 call check_trace_running.
2953 (trace_find_pc_command): Likewise.
2954 (trace_find_tracepoint_command): Likewise.
2955 (trace_find_line_command): Likewise.
2956 (trace_find_range_command): Likewise.
2957 * tracepoint.h (check_trace_running): Likewise.
2958 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2960 2014-03-06 Yao Qi <yao@codesourcery.com>
2962 * target.h (struct target_ops) <to_traceframe_info>: Use
2963 TARGET_DEFAULT_NORETURN (tcomplain ()).
2964 * target-delegates.c: Regenerated.
2966 2014-03-05 Pedro Alves <palves@redhat.com>
2969 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2970 void. Update comment.
2971 (dcache_xfer_memory): Delete.
2972 (dcache_read_memory_partial): New, based on the read bits of
2974 (dcache_update): Add status parameter. Use ULONGEST for len, and
2975 adjust. Discard cache lines if the reason for the update was
2977 * dcache.h (dcache_xfer_memory): Delete declaration.
2978 (dcache_read_memory_partial): New declaration.
2979 (dcache_update): Update prototype.
2980 * target.c (raw_memory_xfer_partial): Update the dcache here.
2981 (memory_xfer_partial_1): Don't handle dcache writes here.
2983 2014-03-05 Mike Frysinger <vapier@gentoo.org>
2985 * remote-sim.c (gdbsim_load): Add const to prog.
2987 2014-03-03 Tom Tromey <tromey@redhat.com>
2989 * elfread.c (probe_key): Change to bfd_data.
2990 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2991 now per-BFD, not per-objfile.
2992 * stap-probe.c (stap_probe_destroy): Update comment.
2993 (handle_stap_probe): Allocate on the per-BFD obstack.
2995 2014-03-03 Tom Tromey <tromey@redhat.com>
2997 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2998 * breakpoint.c (create_longjmp_master_breakpoint): Use
3000 (add_location_to_breakpoint, bkpt_probe_insert_location)
3001 (bkpt_probe_remove_location): Update.
3002 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3003 * elfread.c (elf_symfile_relocate_probe): Remove.
3004 (elf_probe_fns): Update.
3005 (insert_exception_resume_breakpoint): Change type of "probe"
3006 parameter to bound_probe.
3007 (check_exception_resume): Update.
3008 * objfiles.c (objfile_relocate1): Don't relocate probes.
3009 * probe.c (bound_probe_s): New typedef.
3010 (parse_probes): Use get_probe_address. Set sal's objfile.
3011 (find_probe_by_pc): Return a bound_probe.
3012 (collect_probes): Return a VEC(bound_probe_s).
3013 (compare_probes): Update.
3014 (gen_ui_out_table_header_info): Change type of "probes"
3016 (info_probes_for_ops): Update.
3017 (get_probe_address): New function.
3018 (probe_safe_evaluate_at_pc): Update.
3019 * probe.h (struct probe_ops) <get_probe_address>: New field.
3020 <set_semaphore, clear_semaphore>: Add objfile parameter.
3021 (struct probe) <objfile>: Remove field.
3023 <address>: Update comment.
3024 (struct bound_probe): New.
3025 (find_probe_by_pc): Return a bound_probe.
3026 (get_probe_address): Declare.
3027 * solib-svr4.c (struct probe_and_action) <address>: New field.
3028 (hash_probe_and_action, equal_probe_and_action): Update.
3029 (register_solib_event_probe): Add address parameter.
3030 (solib_event_probe_at): Update.
3031 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3033 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3034 (stap_get_probe_address): New function.
3035 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3036 (compile_probe_arg): Update.
3037 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3039 (handle_stap_probe): Don't relocate the probe.
3040 (stap_relocate): Remove.
3041 (stap_gen_info_probes_table_values): Update.
3042 (stap_probe_ops): Remove stap_relocate.
3043 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3044 (debug_sym_probe_fns): Update.
3045 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3046 * symtab.c (init_sal): Use memset.
3047 * symtab.h (struct symtab_and_line) <objfile>: New field.
3048 * tracepoint.c (start_tracing, stop_tracing): Update.
3050 2014-03-03 Tom Tromey <tromey@redhat.com>
3052 * probe.h (parse_probes, find_probe_by_pc)
3053 (find_probes_in_objfile): Fix comments.
3055 2014-03-02 Doug Evans <xdje42@gmail.com>
3057 * infrun.c (handle_signal_stop): Replace test for
3058 TARGET_WAITKIND_STOPPED with an assert.
3060 2014-03-02 Doug Evans <xdje42@gmail.com>
3062 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3064 2014-03-02 Doug Evans <xdje42@gmail.com>
3066 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3068 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3070 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3072 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3074 * i386obsd-nat.c: Include "obsd-nat.h".
3075 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3077 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3079 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3081 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3083 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3085 * mips64obsd-nat.c: Include "obsd-nath".
3086 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3088 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3090 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3092 * amd64obsd-nat.c: Include "obsd-nat,h.
3093 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3095 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3097 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3099 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3100 (find_overload_match): Update call to find_oload_champ.
3101 (find_oload_champ_namespace_loop): Likewise
3103 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3105 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3107 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3108 * config/sparc/obsd64.mh: New file.
3109 * sparc64obsd-nat.c: New file.
3111 * obsd-nat.h: New file.
3112 * obsd-nat.c: New file.
3113 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3114 (ALLDEPFILES): Add obsd-nat.c.
3116 2014-02-28 Tom Tromey <tromey@redhat.com>
3118 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3119 * cli-out.h (cli_ui_out_impl): Now const.
3120 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3121 * ui-out.c (struct ui_out) <impl>: Now const.
3122 (default_ui_out_impl): Now const.
3123 (ui_out_new): Make 'impl' parameter const.
3124 * ui-out.h (ui_out_new): Update.
3126 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3128 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3130 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3132 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3134 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3136 Additional PR 8882 fix.
3137 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3139 2014-02-27 Pedro Alves <palves@redhat.com>
3141 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3144 2014-02-27 Pedro Alves <palves@redhat.com>
3147 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3148 * nat/linux-waitpid.c: Include string.h.
3149 (status_to_str): Moved here and made extern.
3150 * nat/linux-waitpid.h (status_to_str): New declaration.
3152 2014-02-27 Hui Zhu <hui@codesourcery.com>
3155 * infrun.c (ptid_match): Move ...
3156 * common/ptid.c (ptid_match): ... here.
3157 * inferior.h (ptid_match): Move ...
3158 * common/ptid.h (ptid_match): ... here.
3160 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3162 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3163 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3166 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3168 * obsd-tdep.c (obsd_auxv_parse): New function.
3169 (obsd_init_abi): Set auxv_parse.
3171 * gdbarch.sh (auxv_parse): New.
3172 * gdbarch.h: Regenerated.
3173 * gdbarch.c: Regenerated.
3174 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3176 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3178 * guile/scm-value.c (gdbscm_history_append_x): New function.
3179 (value_functions): Add it.
3181 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3183 * dwarf2read.c (attr_value_as_address): New function.
3184 (dwarf2_find_base_address, read_call_site_scope): Use
3185 attr_value_as_address in place of DW_ADDR.
3186 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3187 the low and high addresses. Slight rework of the handling
3188 of the high pc being a constant form, and limit it to
3189 DWARF verson 4 or higher.
3190 (dwarf2_record_block_ranges): Likewise.
3191 (read_partial_die): Likewise.
3192 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3194 2014-02-26 Tom Tromey <tromey@redhat.com>
3196 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3198 2014-02-26 Tom Tromey <tromey@redhat.com>
3200 * elfread.c (elf_read_minimal_symbols): Return early if
3201 minimal symbols have already been read. Add "ei" parameter.
3202 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3203 * minsyms.c (prim_record_minimal_symbol_full): Update.
3204 * objfiles.h (struct objstats) <n_minsyms>: Move...
3205 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3206 * symmisc.c (print_objfile_statistics): Update.
3208 2014-02-26 Tom Tromey <tromey@redhat.com>
3210 * elfread.c (elf_read_minimal_symbols): New function, from
3212 (elf_symfile_read): Call it.
3214 2014-02-26 Tom Tromey <tromey@redhat.com>
3216 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3217 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3218 (lookup_minimal_symbol_solib_trampoline)
3219 (lookup_minimal_symbol_by_pc_section_1)
3220 (lookup_minimal_symbol_and_objfile): Update.
3221 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3222 Don't allocate a minimal symbol if minsyms have already been read.
3223 (build_minimal_symbol_hash_tables): Update.
3224 (install_minimal_symbols): Do nothing if minsyms already read.
3225 Use the per-BFD obstack.
3226 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3227 * objfiles.c (allocate_objfile): Call
3228 terminate_minimal_symbol_table later.
3229 (have_minimal_symbols): Update.
3230 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3231 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3232 Move from struct objfile.
3233 <minsyms_read>: New field.
3234 (struct objfile) <msymbols, minimal_symbol_count,
3235 msymbol_hash, msymbol_demangled_hash>: Move.
3236 (ALL_OBJFILE_MSYMBOLS): Update.
3237 * symfile.c (read_symbols): Set minsyms_read.
3238 (reread_symbols): Update.
3239 * symmisc.c (dump_objfile, dump_msymbols): Update.
3241 2014-02-26 Tom Tromey <tromey@redhat.com>
3243 * minsyms.c (msymbols_sort): Remove.
3244 * minsyms.h (msymbols_sort): Remove.
3245 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3246 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3247 * elfread.c (elf_symtab_read): Don't add section offsets.
3248 * xcoffread.c (record_minimal_symbol): Don't add section offset
3249 to minimal symbol address.
3250 * somread.c (text_offset, data_offset): Remove.
3251 (som_symtab_read): Don't add section offsets to minimal symbol
3253 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3254 Don't add section offsets to minimal symbols.
3255 * coffread.c (coff_symtab_read): Don't add section offsets
3256 to minimal symbol addresses.
3257 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3258 to minimal symbol addresses.
3259 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3260 section offset to minimal symbol addresses.
3261 * mdebugread.c (parse_partial_symbols): Don't add section
3262 offset to minimal symbol addresses.
3263 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3264 offset to minimal symbol addresses.
3266 2014-02-26 Tom Tromey <tromey@redhat.com>
3268 * ada-lang.c (ada_main_name): Update.
3269 (ada_add_standard_exceptions): Update.
3270 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3271 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3272 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3273 * auxv.c (ld_so_xfer_auxv): Update.
3274 * avr-tdep.c (avr_scan_prologue): Update.
3275 * ax-gdb.c (gen_var_ref): Update.
3276 * blockframe.c (get_pc_function_start)
3277 (find_pc_partial_function_gnu_ifunc): Update.
3278 * breakpoint.c (create_overlay_event_breakpoint)
3279 (create_longjmp_master_breakpoint)
3280 (create_std_terminate_master_breakpoint)
3281 (create_exception_master_breakpoint): Update.
3282 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3283 * c-valprint.c (c_val_print): Update.
3284 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3285 * common/agent.c (agent_look_up_symbols): Update.
3286 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3287 * dwarf2loc.c (call_site_to_target_addr): Update.
3288 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3289 * elfread.c (elf_gnu_ifunc_record_cache)
3290 (elf_gnu_ifunc_resolve_by_got): Update.
3291 * findvar.c (default_read_var_value): Update.
3292 * frame.c (inside_main_func): Update.
3293 * frv-tdep.c (frv_frame_this_id): Update.
3294 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3295 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3297 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3298 (hppa_hpux_find_dummy_bpaddr): Update.
3299 * hppa-tdep.c (hppa_symbol_address): Update.
3300 * infcmd.c (until_next_command): Update.
3301 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3303 * linespec.c (minsym_found, add_minsym): Update.
3304 * linux-nat.c (get_signo): Update.
3305 * linux-thread-db.c (inferior_has_bug): Update.
3306 * m32c-tdep.c (m32c_return_value)
3307 (m32c_m16c_address_to_pointer): Update.
3308 * m32r-tdep.c (m32r_frame_this_id): Update.
3309 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3310 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3311 * maint.c (maintenance_translate_address): Update.
3312 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3313 (frob_address): New function.
3314 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3315 frob_address. Rename parameter to "pc_in".
3316 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3318 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3320 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3321 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3322 * objc-lang.c (find_objc_msgsend): Update.
3323 * objfiles.c (objfile_relocate1): Update.
3324 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3325 * p-valprint.c (pascal_val_print): Update.
3326 * parse.c (write_exp_msymbol): Update.
3327 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3328 (ppc_elfv2_skip_entrypoint): Update.
3329 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3330 * printcmd.c (build_address_symbolic, msym_info)
3331 (address_info): Update.
3332 * proc-service.c (ps_pglobal_lookup): Update.
3333 * psymtab.c (find_pc_sect_psymtab_closer)
3334 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3335 Change msymbol parameter to bound_minimal_symbol.
3336 * ravenscar-thread.c (get_running_thread_id): Update.
3337 * remote.c (remote_check_symbols): Update.
3338 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3340 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3341 * solib-dsbt.c (lm_base): Update.
3342 * solib-frv.c (lm_base, main_got): Update.
3343 * solib-irix.c (locate_base): Update.
3344 * solib-som.c (som_solib_create_inferior_hook)
3345 (link_map_start): Update.
3346 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3347 * solib-svr4.c (elf_locate_base, enable_break): Update.
3348 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3349 (flush_ea_cache): Update.
3350 * stabsread.c (define_symbol, scan_file_globals): Update.
3351 * stack.c (find_frame_funname): Update.
3352 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3353 (debug_qf_find_pc_sect_symtab): Update.
3354 * symfile.c (simple_read_overlay_table)
3355 (simple_overlay_update): Update.
3356 * symfile.h (struct quick_symbol_functions)
3357 <find_pc_sect_symtab>: Change type of msymbol to
3358 bound_minimal_symbol.
3359 * symmisc.c (dump_msymbols): Update.
3360 * symtab.c (find_pc_sect_symtab_via_partial)
3361 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3362 (search_symbols, print_msymbol_info): Update.
3363 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3364 (MSYMBOL_VALUE_ADDRESS): Redefine.
3365 (BMSYMBOL_VALUE_ADDRESS): New macro.
3366 * tracepoint.c (scope_info): Update.
3367 * tui/tui-disasm.c (tui_find_disassembly_address)
3368 (tui_get_begin_asm_address): Update.
3369 * valops.c (find_function_in_inferior): Update.
3370 * value.c (value_static_field, value_fn_field): Update.
3372 2014-02-26 Tom Tromey <tromey@redhat.com>
3374 * ada-lang.c (ada_update_initial_language): Update.
3375 (ada_main_name, ada_has_this_exception_support): Update.
3376 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3377 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3378 * arm-tdep.c (arm_skip_stub): Update.
3379 * auxv.c (ld_so_xfer_auxv): Update.
3380 * avr-tdep.c (avr_scan_prologue): Update.
3381 * ax-gdb.c (gen_var_ref): Update.
3382 * breakpoint.c (struct breakpoint_objfile_data)
3383 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3384 type to bound_minimal_symbol.
3385 (create_overlay_event_breakpoint)
3386 (create_longjmp_master_breakpoint)
3387 (create_std_terminate_master_breakpoint)
3388 (create_exception_master_breakpoint): Update.
3389 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3390 * c-exp.y (classify_name): Update.
3391 * coffread.c (coff_symfile_read): Update.
3392 * common/agent.c (agent_look_up_symbols): Update.
3393 * d-lang.c (d_main_name): Update.
3394 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3395 * dec-thread.c (enable_dec_thread): Update.
3396 * dwarf2loc.c (call_site_to_target_addr): Update.
3397 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3398 * eval.c (evaluate_subexp_standard): Update.
3399 * findvar.c (struct minsym_lookup_data) <result>: Change type
3400 to bound_minimal_symbol.
3402 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3403 * frame.c (inside_main_func): Update.
3404 * frv-tdep.c (frv_frame_this_id): Update.
3405 * gcore.c (call_target_sbrk): Update.
3406 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3407 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3409 * go-lang.c (go_main_name): Update.
3410 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3411 (hppa_hpux_find_import_stub_for_addr): Update.
3412 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3413 Update. Change return type.
3414 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3416 * jit.c (jit_breakpoint_re_set_internal): Update.
3417 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3419 * linux-nat.c (get_signo): Update.
3420 * linux-thread-db.c (inferior_has_bug): Update
3421 * m32c-tdep.c (m32c_return_value)
3422 (m32c_m16c_address_to_pointer): Update.
3423 * m32r-tdep.c (m32r_frame_this_id): Update.
3424 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3425 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3426 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3427 lookup_minimal_symbol. Change return type.
3428 (lookup_minimal_symbol): Remove.
3429 (lookup_bound_minimal_symbol): Update.
3430 (lookup_minimal_symbol_text): Change return type.
3431 (lookup_minimal_symbol_solib_trampoline): Change return type.
3432 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3433 (lookup_minimal_symbol_solib_trampoline): Change return type.
3434 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3435 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3436 (value_nsstring, find_imps): Update.
3437 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3438 * p-lang.c (pascal_main_name): Update.
3439 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3440 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3441 * proc-service.c (ps_pglobal_lookup): Update.
3442 * ravenscar-thread.c (get_running_thread_msymbol): Change
3444 (has_ravenscar_runtime, get_running_thread_id): Update.
3445 * remote.c (remote_check_symbols): Update.
3446 * sol-thread.c (ps_pglobal_lookup): Update.
3447 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3448 * solib-dsbt.c (lm_base): Update.
3449 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3451 * solib-irix.c (locate_base): Update.
3452 * solib-som.c (som_solib_create_inferior_hook)
3453 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3455 * solib-spu.c (spu_enable_break): Update.
3456 * solib-svr4.c (elf_locate_base, enable_break): Update.
3457 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3458 (flush_ea_cache): Update.
3459 * stabsread.c (define_symbol): Update.
3460 * symfile.c (simple_read_overlay_table): Update.
3461 * symtab.c (find_pc_sect_line): Update.
3462 * tracepoint.c (scope_info): Update.
3463 * tui-disasm.c (tui_get_begin_asm_address): Update.
3464 * value.c (value_static_field): Update.
3466 2014-02-26 Tom Tromey <tromey@redhat.com>
3468 * minsyms.c (prim_record_minimal_symbol_full): Use
3469 SET_MSYMBOL_VALUE_ADDRESS.
3470 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3471 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3472 SET_MSYMBOL_VALUE_ADDRESS.
3473 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3474 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3476 2014-02-26 Tom Tromey <tromey@redhat.com>
3478 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3479 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3480 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3481 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3482 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3483 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3484 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3485 * ada-lang.c (ada_main_name): Update.
3486 (ada_lookup_simple_minsym): Update.
3487 (ada_make_symbol_completion_list): Update.
3488 (ada_add_standard_exceptions): Update.
3489 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3490 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3491 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3492 * arm-tdep.c (skip_prologue_function): Update.
3493 (arm_skip_stack_protector, arm_skip_stub): Update.
3494 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3495 (arm_wince_skip_main_prologue): Update.
3496 * auxv.c (ld_so_xfer_auxv): Update.
3497 * avr-tdep.c (avr_scan_prologue): Update.
3498 * ax-gdb.c (gen_var_ref): Update.
3499 * block.c (call_site_for_pc): Update.
3500 * blockframe.c (get_pc_function_start): Update.
3501 (find_pc_partial_function_gnu_ifunc): Update.
3502 * breakpoint.c (create_overlay_event_breakpoint): Update.
3503 (create_longjmp_master_breakpoint): Update.
3504 (create_std_terminate_master_breakpoint): Update.
3505 (create_exception_master_breakpoint): Update.
3506 (resolve_sal_pc): Update.
3507 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3508 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3510 * c-valprint.c (c_val_print): Update.
3511 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3512 * coffread.c (coff_symfile_read): Update.
3513 * common/agent.c (agent_look_up_symbols): Update.
3514 * dbxread.c (find_stab_function_addr): Update.
3515 (end_psymtab): Update.
3516 * dwarf2loc.c (call_site_to_target_addr): Update.
3517 (func_verify_no_selftailcall): Update.
3518 (tailcall_dump): Update.
3519 (call_site_find_chain_1): Update.
3520 (dwarf_expr_reg_to_entry_parameter): Update.
3521 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3522 (elf_gnu_ifunc_resolve_by_got): Update.
3523 * f-valprint.c (info_common_command): Update.
3524 * findvar.c (read_var_value): Update.
3525 * frame.c (get_prev_frame_1): Update.
3526 (inside_main_func): Update.
3527 * frv-tdep.c (frv_skip_main_prologue): Update.
3528 (frv_frame_this_id): Update.
3529 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3530 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3531 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3532 (gnuv3_skip_trampoline): Update.
3533 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3534 (hppa64_hpux_in_solib_call_trampoline): Update.
3535 (hppa_hpux_skip_trampoline_code): Update.
3536 (hppa64_hpux_search_dummy_call_sequence): Update.
3537 (hppa_hpux_find_import_stub_for_addr): Update.
3538 (hppa_hpux_find_dummy_bpaddr): Update.
3539 * hppa-tdep.c (hppa_symbol_address)
3540 (hppa_lookup_stub_minimal_symbol): Update.
3541 * i386-tdep.c (i386_skip_main_prologue): Update.
3542 (i386_pe_skip_trampoline_code): Update.
3543 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3544 * infcall.c (get_function_name): Update.
3545 * infcmd.c (until_next_command): Update.
3546 * jit.c (jit_breakpoint_re_set_internal): Update.
3547 (jit_inferior_init): Update.
3548 * linespec.c (minsym_found): Update.
3549 (add_minsym): Update.
3550 * linux-fork.c (info_checkpoints_command): Update.
3551 * linux-nat.c (get_signo): Update.
3552 * linux-thread-db.c (inferior_has_bug): Update.
3553 * m32c-tdep.c (m32c_return_value): Update.
3554 (m32c_m16c_address_to_pointer): Update.
3555 (m32c_m16c_pointer_to_address): Update.
3556 * m32r-tdep.c (m32r_frame_this_id): Update.
3557 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3558 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3559 * maint.c (maintenance_translate_address): Update.
3560 * minsyms.c (add_minsym_to_hash_table): Update.
3561 (add_minsym_to_demangled_hash_table): Update.
3562 (msymbol_objfile): Update.
3563 (lookup_minimal_symbol): Update.
3564 (iterate_over_minimal_symbols): Update.
3565 (lookup_minimal_symbol_text): Update.
3566 (lookup_minimal_symbol_by_pc_name): Update.
3567 (lookup_minimal_symbol_solib_trampoline): Update.
3568 (lookup_minimal_symbol_by_pc_section_1): Update.
3569 (lookup_minimal_symbol_and_objfile): Update.
3570 (prim_record_minimal_symbol_full): Update.
3571 (compare_minimal_symbols): Update.
3572 (compact_minimal_symbols): Update.
3573 (build_minimal_symbol_hash_tables): Update.
3574 (install_minimal_symbols): Update.
3575 (terminate_minimal_symbol_table): Update.
3576 (find_solib_trampoline_target): Update.
3577 (minimal_symbol_upper_bound): Update.
3578 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3579 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3580 (mips_skip_pic_trampoline_code): Update.
3581 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3582 * objc-lang.c (selectors_info): Update.
3583 (classes_info): Update.
3584 (find_methods): Update.
3585 (find_imps): Update.
3586 (find_objc_msgsend): Update.
3587 * objfiles.c (objfile_relocate1): Update.
3588 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3589 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3590 * p-valprint.c (pascal_val_print): Update.
3591 * parse.c (write_exp_msymbol): Update.
3592 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3593 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3594 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3595 * printcmd.c (build_address_symbolic): Update.
3597 (address_info): Update.
3598 * proc-service.c (ps_pglobal_lookup): Update.
3599 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3600 (find_pc_sect_psymtab): Update.
3601 * python/py-framefilter.c (py_print_frame): Update.
3602 * ravenscar-thread.c (get_running_thread_id): Update.
3603 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3605 * remote.c (remote_check_symbols): Update.
3606 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3607 (rs6000_skip_trampoline_code): Update.
3608 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3609 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3610 * solib-dsbt.c (lm_base): Update.
3611 * solib-frv.c (lm_base): Update.
3613 * solib-irix.c (locate_base): Update.
3614 * solib-som.c (som_solib_create_inferior_hook): Update.
3615 (som_solib_desire_dynamic_linker_symbols): Update.
3616 (link_map_start): Update.
3617 * solib-spu.c (spu_enable_break): Update.
3618 (ocl_enable_break): Update.
3619 * solib-svr4.c (elf_locate_base): Update.
3620 (enable_break): Update.
3621 * spu-tdep.c (spu_get_overlay_table): Update.
3622 (spu_catch_start): Update.
3623 (flush_ea_cache): Update.
3624 * stabsread.c (define_symbol): Update.
3625 (scan_file_globals): Update.
3626 * stack.c (find_frame_funname): Update.
3627 (frame_info): Update.
3628 * symfile.c (simple_read_overlay_table): Update.
3629 (simple_overlay_update): Update.
3630 * symmisc.c (dump_msymbols): Update.
3631 * symtab.c (fixup_section): Update.
3632 (find_pc_sect_line): Update.
3633 (skip_prologue_sal): Update.
3634 (search_symbols): Update.
3635 (print_msymbol_info): Update.
3636 (rbreak_command): Update.
3637 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3638 (completion_list_objc_symbol): Update.
3639 (default_make_symbol_completion_list_break_on): Update.
3640 * tracepoint.c (scope_info): Update.
3641 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3642 (tui_get_begin_asm_address): Update.
3643 * valops.c (find_function_in_inferior): Update.
3644 * value.c (value_static_field): Update.
3645 (value_fn_field): Update.
3647 2014-02-26 Tom Tromey <tromey@redhat.com>
3649 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3650 bound minimal symbols. Move code that knows about minsym
3652 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3654 * minsyms.h (minimal_symbol_upper_bound): Declare.
3655 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3656 minimal_symbol_upper_bound.
3658 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3660 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3661 Use the type's name if its basic type does not have a tag.
3663 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3665 * dwarf2read.c (read_subrange_type): Add comment.
3667 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3669 * dwarf2read.c (update_enumeration_type_from_children): New
3670 function, mostly extracted from process_structure_scope.
3671 (read_enumeration_type): Call update_enumeration_type_from_children.
3672 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3673 and flag_flag_enum fields.
3675 2014-02-26 Pedro Alves <palves@redhat.com>
3677 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3678 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3679 to_xfer_partial method.
3681 2014-02-26 Pedro Alves <palves@redhat.com>
3683 * target.c (complete_target_initialization): Don't install
3684 default_xfer_partial as to_xfer_partial hook.
3686 (update_current_target): Don't INHERIT nor de_fault
3687 deprecated_xfer_memory. Delete de_fault macro.
3688 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3689 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3690 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3693 2014-02-26 Pedro Alves <palves@redhat.com>
3695 * go32-nat.c (my_write_child): New function.
3696 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3697 (go32_xfer_partial): New function.
3698 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3699 Instead install a to_xfer_partial hook.
3701 2014-02-26 Pedro Alves <palves@redhat.com>
3703 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3704 to_xfer_partial helper. Rewrite.
3705 (procfs_xfer_partial): New function.
3706 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3707 Install a to_xfer_partial hook.
3709 2014-02-26 Pedro Alves <palves@redhat.com>
3711 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3712 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3713 (m32r_xfer_partial): New function.
3714 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3715 Install a to_xfer_partial hook.
3717 2014-02-26 Pedro Alves <palves@redhat.com>
3719 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3721 (mips_xfer_partial): New function.
3722 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3723 hook. Install a to_xfer_partial hook.
3725 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3727 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3728 * gdbtypes.c (create_array_type_with_stride): New function,
3729 renaming create_array_type, but with an added parameter
3730 called "bit_stride".
3731 (create_array_type): Re-implement using
3732 create_array_type_with_stride.
3733 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3734 and DW_AT_bit_stride attributes.
3736 2014-02-26 Pedro Alves <palves@redhat.com>
3738 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3739 task-specific breakpoints.
3741 2014-02-25 Pedro Alves <palves@redhat.com>
3743 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3744 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3746 2014-02-25 Stan Shebs <stan@codesourcery.com>
3748 * defs.h: Annotate comments for Doxygen.
3750 2014-02-25 Tom Tromey <tromey@redhat.com>
3752 * target.h (target_ignore): Don't declare.
3753 * target.c (target_ignore): Remove.
3755 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3758 * auto-load.c (auto_load_objfile_script_1): Change filename to
3761 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3763 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3764 documentation. Adjust prototype to match the target_ops
3765 to_xfer_partial method. Adjust implementation accordingly.
3767 2014-02-25 Hui Zhu <hui@codesourcery.com>
3769 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3772 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3774 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3775 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3776 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3777 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3778 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3779 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3780 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3781 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3783 (rl78_register_type): Use a data pointer type for SP and
3784 new pseudo registers mentioned above. Use a 16 bit integer
3785 type for all other register pairs.
3786 (rl78_register_name, rl78_g10_register_name): Update for
3787 new pseudo registers.
3788 (rl78_pseudo_register_read): Likewise.
3789 (rl78_pseudo_register_write): Likewise.
3790 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3791 to the newly added pseudo registers.
3793 2014-02-24 Doug Evans <dje@google.com>
3795 * value.c (record_latest_value): Fix comment.
3796 * printcmd.c (print_command_1): Remove code to handle -1 return from
3797 record_latest_value.
3799 2014-02-24 Pedro Alves <palves@redhat.com>
3801 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3802 deprecated_xfer_memory hook.
3803 (procfs_xfer_partial): Call procfs_xfer_memory instead
3804 of the deprecated_xfer_memory target hook.
3805 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3808 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3810 * windows-nat.c (windows_xfer_shared_libraries): Return
3811 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3812 requested object is TARGET_OBJECT_LIBRARIES.
3814 2014-02-24 Yao Qi <yao@codesourcery.com>
3816 * target.h (enum target_xfer_status)
3817 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3818 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3820 * corefile.c (memory_error_message): User updated.
3821 * exec.c (section_table_read_available_memory): Likewise.
3822 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3823 * target.c (target_xfer_status_to_string): Likewise.
3824 (raw_memory_xfer_partial): Likewise.
3825 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3826 * valops.c (read_value_memory): Likewise.
3827 * exec.h: Update comments.
3829 2014-02-24 Yao Qi <yao@codesourcery.com>
3831 * target.c (target_xfer_status_to_string): Rename argument err
3833 * target.h (target_xfer_status_to_string): Update declaration.
3834 Replace target_xfer_error_to_string with
3835 target_xfer_status_to_string in comment.
3837 2014-02-24 Yao Qi <yao@codesourcery.com>
3839 * mips-linux-nat.c (super_close): Update its type.
3840 (mips_linux_close): Pass 'self' to super_close.
3842 2014-02-24 Yao Qi <yao@codesourcery.com>
3844 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3845 * corefile.c (read_memory): Adjusted.
3846 * target.c (target_write_with_progress): Adjusted.
3848 2014-02-23 Yao Qi <yao@codesourcery.com>
3852 2013-10-25 Yao Qi <yao@codesourcery.com>
3854 * remote.c (remote_traceframe_info): Return early if
3855 traceframe is not selected.
3857 2013-07-19 Yao Qi <yao@codesourcery.com>
3859 * target.c (update_current_target): Change the default action
3860 of 'to_traceframe_info' from tcomplain to return_zero.
3861 * target.h (struct target_ops) <to_traceframe_info>: Add more
3864 2014-02-23 Yao Qi <yao@codesourcery.com>
3866 * valops.c (read_value_memory): Rewrite it. Call
3867 target_xfer_partial in a loop.
3868 * exec.h (section_table_available_memory): Remove declaration.
3869 Move comments to ...
3870 * exec.c (section_table_available_memory): ... here. Make it
3873 2014-02-23 Yao Qi <yao@codesourcery.com>
3875 * exec.c (section_table_read_available_memory): New function.
3876 * exec.h (section_table_read_available_memory): Declare.
3877 * ctf.c (ctf_xfer_partial): Call
3878 section_table_read_available_memory.
3879 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3881 2014-02-23 Yao Qi <yao@codesourcery.com>
3883 * ctf.c (ctf_xfer_partial): Move code to ...
3884 * exec.c (exec_read_partial_read_only): ... it. New function.
3885 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3886 * tracefile.c: Include "exec.h".
3887 * exec.h (exec_read_partial_read_only): Declare.
3889 2014-02-23 Yao Qi <yao@codesourcery.com>
3891 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3892 (tfile_has_memory): Remove.
3893 (init_tfile_ops): Don't set fields to_has_all_memory and
3894 to_has_memory of tfile_ops.
3895 * tracefile.c (tracefile_has_all_memory): New function.
3896 (tracefile_has_memory): New function.
3897 (init_tracefile_ops): Initialize fields to_has_all_memory and
3898 to_has_memory of 'ops'.
3900 2014-02-23 Yao Qi <yao@codesourcery.com>
3902 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3903 (ctf_thread_alive, ctf_get_trace_status): Remove.
3904 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3906 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3907 (tfile_has_stack, tfile_has_registers): Remove.
3908 (tfile_thread_alive): Remove.
3909 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3911 * tracefile.c (tracefile_has_stack): New function.
3912 (tracefile_has_registers): New function.
3913 (tracefile_thread_alive): New function.
3914 (tracefile_get_trace_status): New function.
3915 (init_tracefile_ops): New function.
3916 * tracefile.h (init_tracefile_ops): Declare.
3918 2014-02-23 Yao Qi <yao@codesourcery.com>
3920 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3921 (O_LARGEFILE): Likewise.
3922 (tfile_ops): Likewise.
3923 (TRACE_HEADER_SIZE): Likewise.
3924 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3925 (cur_data_size): Likewise.
3926 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3927 (tfile_close, tfile_files_info): Likewise.
3928 (tfile_get_trace_status): Likewise.
3929 (tfile_get_tracepoint_status): Likewise.
3930 (tfile_get_traceframe_address): Likewise.
3931 (tfile_trace_find, match_blocktype): Likewise.
3932 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3933 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3934 (tfile_get_trace_state_variable_value): Likewise.
3935 (tfile_has_all_memory, tfile_has_memory): Likewise.
3936 (tfile_has_stack, tfile_has_registers): Likewise.
3937 (tfile_thread_alive, build_traceframe_info): Likewise.
3938 (tfile_traceframe_info, init_tfile_ops): Likewise.
3939 (_initialize_tracepoint): Don't call init_tfile_ops
3940 and add_target_with_completer.
3941 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3942 exec.h, completer.h and filenames.h.
3943 (_initialize_tracefile_tfile): New function.
3945 2014-02-23 Yao Qi <yao@codesourcery.com>
3947 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3949 (HFILES_NO_SRCDIR): Add tracefile.h.
3950 * ctf.c: Include "tracefile.h".
3951 * tracefile.h: New file.
3952 * tracefile.c: New file
3953 * tracefile-tfile.c: New file.
3954 * tracepoint.c: Include "tracefile.h".
3955 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3956 (stop_reason_names): Add const.
3957 (trace_file_writer_xfree): Move it to tracefile.c.
3958 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3959 (trace_save_ctf): Likewise.
3960 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3961 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3962 (tfile_write_header, tfile_write_regblock_type): Likewise.
3963 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3964 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3965 (tfile_write_raw_data, tfile_end): Likewise.
3966 (tfile_trace_file_writer_new): Likewise.
3967 (free_uploaded_tp): Make it extern.
3968 (free_uploaded_tsv): Make it extern.
3969 (_initialize_tracepoint): Move code to register command 'tsave'
3971 * tracepoint.h (stop_reason_names): Declare.
3972 (struct trace_frame_write_ops): Move it to tracefile.h.
3973 (struct trace_file_write_ops): Likewise.
3974 (struct trace_file_writer): Likewise.
3975 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3977 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3980 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3982 (get_cores_used_by_process): New parameter num_cores, use it.
3983 (linux_xfer_osdata_processes): Pass num_cores to it.
3984 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3987 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3989 * target.c (memory_xfer_partial): Fix length arg in call to
3990 breakpoint_xfer_memory.
3992 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3995 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3996 number comes after the + or - signs. Adjust length of register
3997 name to be extracted.
3999 2014-02-20 Tom Tromey <tromey@redhat.com>
4001 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4002 (ada_varobj_ops): Mark "extern".
4004 2014-02-20 Tom Tromey <tromey@redhat.com>
4006 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4008 2014-02-20 Doug Evans <xdje42@gmail.com>
4010 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4011 All callers updated.
4012 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4013 All callers updated.
4014 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4015 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4017 2014-02-20 lin zuojian <manjian2006@gmail.com>
4018 Joel Brobecker <brobecker@adacore.com>
4019 Doug Evans <xdje42@gmail.com>
4022 * dwarf2read.c (struct die_info): New member in_process.
4023 (reset_die_in_process): New function.
4024 (process_die): Set it at the start, reset when returning.
4025 (inherit_abstract_dies): Only call process_die if origin_child_die
4026 not already being processed.
4028 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4030 * windows-nat.c (handle_unload_dll): Add function documentation.
4031 (do_initial_windows_stuff): Add comment explaining why we wait
4032 until after inferior initialization has finished before
4033 processing all DLLs.
4035 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4037 * windows-nat.c (get_module_name): Delete.
4038 (windows_get_exec_module_filename): New function, mostly
4039 inspired from get_module_name.
4040 (windows_pid_to_exec_file): Replace call to get_module_name
4041 by call to windows_get_exec_module_filename.
4043 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4045 * windows-nat.c (handle_load_dll): Rewrite this function's
4046 introductory comment. Remove code using get_module_name
4047 to get the DLL's name.
4049 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4051 * windows-nat.c (get_windows_debug_event): Ignore
4052 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4053 if windows_initialization_done == 0.
4054 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4055 Adjust implementation to always load all DLLs.
4056 (do_initial_windows_stuff): Replace call to
4057 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4059 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4061 * windows-nat.c (_initialize_windows_nat): Deprecate the
4062 "dll-symbols" command. Turn the "add-shared-symbol-files"
4063 and "assf" aliases into commands, and deprecate them as well.
4064 * NEWS: Add entry explaining that "dll-symbols" and its two
4065 aliases are now deprecated.
4067 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4069 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4070 new-line in debug string. Remove trailing spaces.
4072 2014-02-19 Stan Shebs <stan@codesourcery.com>
4074 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4076 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4078 * NEWS: Add entry for the new feature
4079 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4082 2014-02-19 Stan Shebs <stan@codesourcery.com>
4084 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4086 2014-02-19 Pedro Alves <palves@redhat.com>
4088 * common/ptid.h (struct ptid): Mention that process_stratum
4089 targets should prefer ptid.lwp.
4091 2014-02-19 Pedro Alves <palves@redhat.com>
4093 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4094 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4095 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4096 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4097 store remote thread ids rather than ptid.tid.
4098 (_initialize_remote): Adjust.
4100 2014-02-19 Tom Tromey <tromey@redhat.com>
4102 * target.c (target_get_unwinder): Rewrite.
4103 (target_get_tailcall_unwinder): Rewrite.
4104 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4105 (record_btrace_to_get_tailcall_unwinder): New function.
4106 (init_record_btrace_ops): Update.
4107 * target.h (struct target_ops) <to_get_unwinder,
4108 to_get_tailcall_unwinder>: Now function pointers. Use
4109 TARGET_DEFAULT_RETURN.
4111 2014-02-19 Tom Tromey <tromey@redhat.com>
4113 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4115 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4117 2014-02-19 Tom Tromey <tromey@redhat.com>
4119 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4121 * target-delegates.c: Rebuild.
4122 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4123 TARGET_DEFAULT_FUNC.
4124 * target.c (default_target_decr_pc_after_break): Rename from
4125 forward_target_decr_pc_after_break. Simplify.
4126 (target_decr_pc_after_break): Rely on delegation.
4128 2014-02-19 Tom Tromey <tromey@redhat.com>
4130 * target.c (update_current_target): Do not INHERIT to_doc or
4131 to_magic. Do not de_fault to_open or to_close.
4133 2014-02-19 Tom Tromey <tromey@redhat.com>
4135 * gcore.h (objfile_find_memory_regions): Declare.
4136 * gcore.c (objfile_find_memory_regions): No longer static. Add
4138 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4139 * exec.c: Include gcore.h.
4140 (exec_set_find_memory_regions): Remove.
4141 (exec_find_memory_regions): Remove.
4142 (exec_do_find_memory_regions): Remove.
4143 (init_exec_ops): Update.
4144 * defs.h (exec_set_find_memory_regions): Remove.
4146 2014-02-19 Tom Tromey <tromey@redhat.com>
4148 * target-delegates.c: Rebuild.
4149 * target.h (struct target_ops) <to_extra_thread_info,
4150 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4151 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4152 not 0, in TARGET_DEFAULT_RETURN.
4154 2014-02-19 Tom Tromey <tromey@redhat.com>
4156 * target.c (complete_target_initialization): Remove casts. Use
4157 return_zero_has_execution.
4158 (return_zero): Add "ignore" argument.
4159 (return_zero_has_execution): New function.
4160 (init_dummy_target): Remove casts. Use
4161 return_zero_has_execution.
4163 2014-02-19 Tom Tromey <tromey@redhat.com>
4165 * target.c (update_current_target): Update comments. Do not
4168 2014-02-19 Tom Tromey <tromey@redhat.com>
4170 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4172 * corelow.c (core_read_description): Delegate when needed.
4173 * remote.c (remote_read_description): Delegate when needed.
4174 * target-delegates.c: Rebuild.
4175 * target.c (target_read_description): Rewrite.
4176 * target.h (struct target_ops) <to_read_description>: Update
4177 comment. Use TARGET_DEFAULT_RETURN.
4179 2014-02-19 Tom Tromey <tromey@redhat.com>
4181 * target-delegates.c: Rebuild.
4182 * target.c (update_current_target): Don't inherit or default
4184 (find_default_run_target): Check against delegate_can_run.
4185 * target.h (struct target_ops) <to_can_run>: Use
4186 TARGET_DEFAULT_RETURN.
4188 2014-02-19 Tom Tromey <tromey@redhat.com>
4190 * target-delegates.c: Rebuild.
4191 * target.c (target_disconnect): Unconditionally delegate.
4192 * target.h (struct target_ops) <to_disconnect>: Use
4193 TARGET_DEFAULT_NORETURN.
4195 2014-02-19 Tom Tromey <tromey@redhat.com>
4197 * record.c (record_stop): Unconditionally delegate.
4198 * target-delegates.c: Rebuild.
4199 * target.c (target_stop_recording): Unconditionally delegate.
4200 * target.h (struct target_ops) <to_stop_recording>: Use
4201 TARGET_DEFAULT_IGNORE.
4203 2014-02-19 Tom Tromey <tromey@redhat.com>
4205 * target-delegates.c: Rebuild.
4206 * target.c (target_enable_btrace): Unconditionally delegate.
4207 * target.h (struct target_ops) <to_enable_btrace>: Use
4208 TARGET_DEFAULT_NORETURN.
4210 2014-02-19 Tom Tromey <tromey@redhat.com>
4212 * target-delegates.c: Rebuild.
4213 * target.c (target_read_btrace): Unconditionally delegate.
4214 * target.h (struct target_ops) <to_read_btrace>: Use
4215 TARGET_DEFAULT_NORETURN.
4217 2014-02-19 Tom Tromey <tromey@redhat.com>
4219 * target-delegates.c: Rebuild.
4220 * target.c (target_teardown_btrace): Unconditionally delegate.
4221 * target.h (struct target_ops) <to_teardown_btrace>: Use
4222 TARGET_DEFAULT_NORETURN.
4224 2014-02-19 Tom Tromey <tromey@redhat.com>
4226 * target-delegates.c: Rebuild.
4227 * target.c (target_disable_btrace): Unconditionally delegate.
4228 * target.h (struct target_ops) <to_disable_btrace>: Use
4229 TARGET_DEFAULT_NORETURN.
4231 2014-02-19 Tom Tromey <tromey@redhat.com>
4233 * target-delegates.c: Rebuild.
4234 * target.c (default_search_memory): New function.
4235 (simple_search_memory): Update comment.
4236 (target_search_memory): Unconditionally delegate.
4237 * target.h (struct target_ops) <to_search_memory>: Use
4238 TARGET_DEFAULT_FUNC.
4240 2014-02-19 Tom Tromey <tromey@redhat.com>
4242 * auxv.c (default_auxv_parse): No longer static.
4243 (target_auxv_parse): Unconditionally delegate.
4244 * auxv.h (default_auxv_parse): Declare.
4245 * target-delegates.c: Rebuild.
4246 * target.c: Include auxv.h.
4247 * target.h (struct target_ops) <to_auxv_parse>: Use
4248 TARGET_DEFAULT_FUNC.
4250 2014-02-19 Tom Tromey <tromey@redhat.com>
4252 * target-delegates.c: Rebuild.
4253 * target.c (target_memory_map): Unconditionally delegate.
4254 * target.h (struct target_ops) <to_memory_map>: Use
4255 TARGET_DEFAULT_RETURN.
4257 2014-02-19 Tom Tromey <tromey@redhat.com>
4259 * target-delegates.c: Rebuild.
4260 * target.c (target_thread_alive): Unconditionally delegate.
4261 * target.h (struct target_ops) <to_thread_alive>: Use
4262 TARGET_DEFAULT_RETURN.
4264 2014-02-19 Tom Tromey <tromey@redhat.com>
4266 * target-delegates.c: Rebuild.
4267 * target.c (target_save_record): Unconditionally delegate.
4268 * target.h (struct target_ops) <to_save_record>: Use
4269 TARGET_DEFAULT_NORETURN.
4271 2014-02-19 Tom Tromey <tromey@redhat.com>
4273 * target-delegates.c: Rebuild.
4274 * target.c (target_delete_record): Unconditionally delegate.
4275 * target.h (struct target_ops) <to_delete_record>: Use
4276 TARGET_DEFAULT_NORETURN.
4278 2014-02-19 Tom Tromey <tromey@redhat.com>
4280 * target-delegates.c: Rebuild.
4281 * target.c (target_record_is_replaying): Unconditionally
4283 * target.h (struct target_ops) <to_record_is_replaying>: Use
4284 TARGET_DEFAULT_RETURN.
4286 2014-02-19 Tom Tromey <tromey@redhat.com>
4288 * target-delegates.c: Rebuild.
4289 * target.c (target_goto_record_begin): Unconditionally delegate.
4290 * target.h (struct target_ops) <to_goto_record_begin>: Use
4291 TARGET_DEFAULT_NORETURN.
4293 2014-02-19 Tom Tromey <tromey@redhat.com>
4295 * target-delegates.c: Rebuild.
4296 * target.c (target_goto_record_end): Unconditionally delegate.
4297 * target.h (struct target_ops) <to_goto_record_end>: Use
4298 TARGET_DEFAULT_NORETURN.
4300 2014-02-19 Tom Tromey <tromey@redhat.com>
4302 * target-delegates.c: Rebuild.
4303 * target.c (target_goto_record): Unconditionally delegate.
4304 * target.h (struct target_ops) <to_goto_record>: Use
4305 TARGET_DEFAULT_NORETURN.
4307 2014-02-19 Tom Tromey <tromey@redhat.com>
4309 * target-delegates.c: Rebuild.
4310 * target.c (target_insn_history): Unconditionally delegate.
4311 * target.h (struct target_ops) <to_insn_history>: Use
4312 TARGET_DEFAULT_NORETURN.
4314 2014-02-19 Tom Tromey <tromey@redhat.com>
4316 * target-delegates.c: Rebuild.
4317 * target.c (target_insn_history_from): Unconditionally delegate.
4318 * target.h (struct target_ops) <to_insn_history_from>: Use
4319 TARGET_DEFAULT_NORETURN.
4321 2014-02-19 Tom Tromey <tromey@redhat.com>
4323 * target-delegates.c: Rebuild.
4324 * target.c (target_insn_history_range): Unconditionally delegate.
4325 * target.h (struct target_ops) <to_insn_history_range>: Use
4326 TARGET_DEFAULT_NORETURN.
4328 2014-02-19 Tom Tromey <tromey@redhat.com>
4330 * target-delegates.c: Rebuild.
4331 * target.c (target_call_history): Unconditionally delegate.
4332 * target.h (struct target_ops) <to_call_history>: Use
4333 TARGET_DEFAULT_NORETURN.
4335 2014-02-19 Tom Tromey <tromey@redhat.com>
4337 * target-delegates.c: Rebuild.
4338 * target.c (target_call_history_from): Unconditionally delegate.
4339 * target.h (struct target_ops) <to_call_history_from>: Use
4340 TARGET_DEFAULT_NORETURN.
4342 2014-02-19 Tom Tromey <tromey@redhat.com>
4344 * target-delegates.c: Rebuild.
4345 * target.c (target_call_history_range): Unconditionally delegate.
4346 * target.h (struct target_ops) <to_call_history_range>: Use
4347 TARGET_DEFAULT_NORETURN.
4349 2014-02-19 Tom Tromey <tromey@redhat.com>
4351 * target-delegates.c: Rebuild.
4352 * target.c (target_verify_memory): Unconditionally delegate.
4353 * target.h (struct target_ops) <to_verify_memory>: Use
4354 TARGET_DEFAULT_NORETURN.
4356 2014-02-19 Tom Tromey <tromey@redhat.com>
4358 * target-delegates.c: Rebuild.
4359 * target.c (target_core_of_thread): Unconditionally delegate.
4360 * target.h (struct target_ops) <to_core_of_thread>: Use
4361 TARGET_DEFAULT_RETURN.
4363 2014-02-19 Tom Tromey <tromey@redhat.com>
4365 * target-delegates.c: Rebuild.
4366 * target.c (target_flash_done): Unconditionally delegate.
4367 * target.h (struct target_ops) <to_flash_done>: Use
4368 TARGET_DEFAULT_NORETURN.
4370 2014-02-19 Tom Tromey <tromey@redhat.com>
4372 * target-delegates.c: Rebuild.
4373 * target.c (target_flash_erase): Unconditionally delegate.
4374 * target.h (struct target_ops) <to_flash_erase>: Use
4375 TARGET_DEFAULT_NORETURN.
4377 2014-02-19 Tom Tromey <tromey@redhat.com>
4379 * target-delegates.c: Rebuild.
4380 * target.c (target_get_section_table): Unconditionally delegate.
4381 * target.h (struct target_ops) <to_get_section_table>: Use
4382 TARGET_DEFAULT_RETURN.
4384 2014-02-19 Tom Tromey <tromey@redhat.com>
4386 * target-delegates.c: Rebuild.
4387 * target.c (target_pid_to_str): Unconditionally delegate.
4388 (init_dummy_target): Don't initialize to_pid_to_str.
4389 (default_pid_to_str): Rename from dummy_pid_to_str.
4390 * target.h (struct target_ops) <to_pid_to_str>: Use
4391 TARGET_DEFAULT_FUNC.
4393 2014-02-19 Tom Tromey <tromey@redhat.com>
4395 * target-delegates.c: Rebuild.
4396 * target.c (target_find_new_threads): Unconditionally delegate.
4397 * target.h (struct target_ops) <to_find_new_threads>: Use
4398 TARGET_DEFAULT_RETURN.
4400 2014-02-19 Tom Tromey <tromey@redhat.com>
4402 * target-delegates.c: Rebuild.
4403 * target.c (target_program_signals): Unconditionally delegate.
4404 * target.h (struct target_ops) <to_program_signals>: Use
4405 TARGET_DEFAULT_IGNORE.
4407 2014-02-19 Tom Tromey <tromey@redhat.com>
4409 * target-delegates.c: Rebuild.
4410 * target.c (target_pass_signals): Unconditionally delegate.
4411 * target.h (struct target_ops) <to_pass_signals>: Use
4412 TARGET_DEFAULT_IGNORE.
4414 2014-02-19 Tom Tromey <tromey@redhat.com>
4416 * target-delegates.c: Rebuild.
4417 * target.c (default_mourn_inferior): New function.
4418 (target_mourn_inferior): Unconditionally delegate.
4419 * target.h (struct target_ops) <to_mourn_inferior>: Use
4420 TARGET_DEFAULT_FUNC.
4422 2014-02-19 Tom Tromey <tromey@redhat.com>
4424 * target-delegates.c: Rebuild.
4425 * target.c (default_follow_fork): New function.
4426 (target_follow_fork): Unconditionally delegate.
4427 * target.h (struct target_ops) <to_follow_fork>: Use
4428 TARGET_DEFAULT_FUNC.
4430 2014-02-19 Tom Tromey <tromey@redhat.com>
4432 * target-delegates.c: Rebuild.
4433 * target.c (target_kill): Unconditionally delegate.
4434 * target.h (struct target_ops) <to_kill>: Use
4435 TARGET_DEFAULT_NORETURN.
4437 2014-02-19 Tom Tromey <tromey@redhat.com>
4439 * target-delegates.c: Rebuild.
4440 * target.c (target_masked_watch_num_registers): Unconditionally
4442 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4443 Use TARGET_DEFAULT_RETURN.
4445 2014-02-19 Tom Tromey <tromey@redhat.com>
4447 * target-delegates.c: Rebuild.
4448 * target.c (target_remove_mask_watchpoint): Unconditionally
4450 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4451 TARGET_DEFAULT_RETURN.
4453 2014-02-19 Tom Tromey <tromey@redhat.com>
4455 * target-delegates.c: Rebuild.
4456 * target.c (target_insert_mask_watchpoint): Unconditionally
4458 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4459 TARGET_DEFAULT_RETURN.
4461 2014-02-19 Tom Tromey <tromey@redhat.com>
4463 * target-delegates.c: Rebuild.
4464 * target.c (target_ranged_break_num_registers): Unconditionally
4466 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4467 Use TARGET_DEFAULT_RETURN.
4469 2014-02-19 Tom Tromey <tromey@redhat.com>
4471 * target-delegates.c: Rebuild.
4472 * target.c (target_fetch_registers): Unconditionally delegate.
4473 * target.h (struct target_ops) <to_fetch_registers>: 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 * target.h (struct target_ops) <to_stop>: Use
4482 TARGET_DEFAULT_IGNORE.
4484 2014-02-19 Tom Tromey <tromey@redhat.com>
4486 * target-delegates.c: Rebuild.
4487 * target.c (update_current_target): Don't inherit or default
4488 to_can_run_breakpoint_commands.
4489 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4490 Use TARGET_DEFAULT_RETURN.
4492 2014-02-19 Tom Tromey <tromey@redhat.com>
4494 * target-delegates.c: Rebuild.
4495 * target.c (update_current_target): Don't inherit or default
4496 to_supports_evaluation_of_breakpoint_conditions.
4497 * target.h (struct target_ops)
4498 <to_supports_evaluation_of_breakpoint_conditions>: Use
4499 TARGET_DEFAULT_RETURN.
4501 2014-02-19 Tom Tromey <tromey@redhat.com>
4503 * target-delegates.c: Rebuild.
4504 * target.c (update_current_target): Don't inherit or default
4505 to_augmented_libraries_svr4_read.
4506 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4507 Use TARGET_DEFAULT_RETURN.
4509 2014-02-19 Tom Tromey <tromey@redhat.com>
4511 * target-delegates.c: Rebuild.
4512 * target.c (update_current_target): Don't inherit or default
4514 * target.h (struct target_ops) <to_can_use_agent>: Use
4515 TARGET_DEFAULT_RETURN.
4517 2014-02-19 Tom Tromey <tromey@redhat.com>
4519 * target-delegates.c: Rebuild.
4520 * target.c (update_current_target): Don't inherit or default
4522 * target.h (struct target_ops) <to_use_agent>: Use
4523 TARGET_DEFAULT_NORETURN.
4525 2014-02-19 Tom Tromey <tromey@redhat.com>
4527 * target-delegates.c: Rebuild.
4528 * target.c (update_current_target): Don't inherit or default
4530 (return_null): Remove.
4531 * target.h (struct target_ops) <to_traceframe_info>: Use
4532 TARGET_DEFAULT_RETURN.
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_static_tracepoint_markers_by_strid.
4539 * target.h (struct target_ops)
4540 <to_static_tracepoint_markers_by_strid>: Use
4541 TARGET_DEFAULT_NORETURN.
4543 2014-02-19 Tom Tromey <tromey@redhat.com>
4545 * target-delegates.c: Rebuild.
4546 * target.c (update_current_target): Don't inherit or default
4547 to_static_tracepoint_marker_at.
4548 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4549 Use TARGET_DEFAULT_RETURN.
4551 2014-02-19 Tom Tromey <tromey@redhat.com>
4553 * target-delegates.c: Rebuild.
4554 * target.c (update_current_target): Don't inherit or default
4556 * target.h (struct target_ops) <to_set_permissions>: Use
4557 TARGET_DEFAULT_IGNORE.
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
4564 * target.h (struct target_ops) <to_get_tib_address>: 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
4572 * target.h (struct target_ops) <to_set_trace_notes>: Use
4573 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 initialize
4579 to_set_trace_buffer_size.
4580 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4581 TARGET_DEFAULT_IGNORE.
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
4587 to_set_circular_trace_buffer.
4588 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4589 TARGET_DEFAULT_IGNORE.
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_set_disconnected_tracing.
4596 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4597 TARGET_DEFAULT_IGNORE.
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
4603 to_get_min_fast_tracepoint_insn_len.
4604 (return_minus_one): Remove.
4605 * target.h (struct target_ops)
4606 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4608 2014-02-19 Tom Tromey <tromey@redhat.com>
4610 * target-delegates.c: Rebuild.
4611 * target.c (update_current_target): Don't inherit or default
4612 to_get_raw_trace_data.
4613 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4614 TARGET_DEFAULT_NORETURN.
4616 2014-02-19 Tom Tromey <tromey@redhat.com>
4618 * target-delegates.c: Rebuild.
4619 * target.c (update_current_target): Don't inherit or default
4620 to_upload_trace_state_variables.
4621 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4622 Use TARGET_DEFAULT_RETURN.
4624 2014-02-19 Tom Tromey <tromey@redhat.com>
4626 * target-delegates.c: Rebuild.
4627 * target.c (update_current_target): Don't inherit or default
4628 to_upload_tracepoints.
4629 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4630 TARGET_DEFAULT_RETURN.
4632 2014-02-19 Tom Tromey <tromey@redhat.com>
4634 * target-delegates.c: Rebuild.
4635 * target.c (update_current_target): Don't inherit or default
4637 * target.h (struct target_ops) <to_save_trace_data>: Use
4638 TARGET_DEFAULT_NORETURN.
4640 2014-02-19 Tom Tromey <tromey@redhat.com>
4642 * target-delegates.c: Rebuild.
4643 * target.c (update_current_target): Don't inherit or default
4644 to_get_trace_state_variable_value.
4645 * target.h (struct target_ops)
4646 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4648 2014-02-19 Tom Tromey <tromey@redhat.com>
4650 * target-delegates.c: Rebuild.
4651 * target.c (update_current_target): Don't inherit or default
4653 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4655 2014-02-19 Tom Tromey <tromey@redhat.com>
4657 * target-delegates.c: Rebuild.
4658 * target.c (update_current_target): Don't inherit or default
4660 * target.h (struct target_ops) <to_trace_stop>: Use
4661 TARGET_DEFAULT_NORETURN.
4663 2014-02-19 Tom Tromey <tromey@redhat.com>
4665 * target-delegates.c: Rebuild.
4666 * target.c (update_current_target): Don't inherit or default
4667 to_get_tracepoint_status.
4668 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4669 TARGET_DEFAULT_NORETURN.
4671 2014-02-19 Tom Tromey <tromey@redhat.com>
4673 * target-delegates.c: Rebuild.
4674 * target.c (update_current_target): Don't inherit or default
4675 to_get_trace_status.
4676 * target.h (struct target_ops) <to_get_trace_status>: Use
4677 TARGET_DEFAULT_RETURN.
4679 2014-02-19 Tom Tromey <tromey@redhat.com>
4681 * target-delegates.c: Rebuild.
4682 * target.c (update_current_target): Don't inherit or default
4684 * target.h (struct target_ops) <to_trace_start>: Use
4685 TARGET_DEFAULT_NORETURN.
4687 2014-02-19 Tom Tromey <tromey@redhat.com>
4689 * target-delegates.c: Rebuild.
4690 * target.c (update_current_target): Don't inherit or default
4691 to_trace_set_readonly_regions.
4692 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4693 Use TARGET_DEFAULT_NORETURN.
4695 2014-02-19 Tom Tromey <tromey@redhat.com>
4697 * target-delegates.c: Rebuild.
4698 * target.c (update_current_target): Don't inherit or default
4699 to_disable_tracepoint.
4700 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4701 TARGET_DEFAULT_NORETURN.
4703 2014-02-19 Tom Tromey <tromey@redhat.com>
4705 * target-delegates.c: Rebuild.
4706 * target.c (update_current_target): Don't inherit or default
4707 to_enable_tracepoint.
4708 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4709 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
4716 * target.h (struct target_ops) <to_download_trace_state_variable>:
4717 Use TARGET_DEFAULT_NORETURN.
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_can_download_tracepoint.
4724 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4725 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
4732 * target.h (struct target_ops) <to_download_tracepoint>: Use
4733 TARGET_DEFAULT_NORETURN.
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
4740 * target.h (struct target_ops) <to_trace_init>: Use
4741 TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
4748 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4749 TARGET_DEFAULT_RETURN.
4751 2014-02-19 Tom Tromey <tromey@redhat.com>
4753 * target-delegates.c: Rebuild.
4754 * target.c (update_current_target): Don't inherit or default
4755 to_supports_enable_disable_tracepoint.
4756 * target.h (struct target_ops)
4757 <to_supports_enable_disable_tracepoint>: Use
4758 TARGET_DEFAULT_RETURN.
4760 2014-02-19 Tom Tromey <tromey@redhat.com>
4762 * target-delegates.c: Rebuild.
4763 * target.c (update_current_target): Don't inherit or default
4764 to_supports_multi_process.
4765 * target.h (struct target_ops) <to_supports_multi_process>: Use
4766 TARGET_DEFAULT_RETURN.
4768 2014-02-19 Tom Tromey <tromey@redhat.com>
4770 * target-delegates.c: Rebuild.
4771 * target.c (update_current_target): Don't inherit or default
4772 to_get_ada_task_ptid.
4773 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4774 TARGET_DEFAULT_FUNC.
4776 2014-02-19 Tom Tromey <tromey@redhat.com>
4778 * target-delegates.c: Rebuild.
4779 * target.c (update_current_target): Don't inherit or default
4780 to_thread_architecture.
4781 * target.h (struct target_ops) <to_thread_architecture>: Use
4782 TARGET_DEFAULT_FUNC.
4784 2014-02-19 Tom Tromey <tromey@redhat.com>
4786 * target-delegates.c: Rebuild.
4787 * target.c (update_current_target): Don't inherit or default
4788 to_execution_direction.
4789 * target.h (struct target_ops) <to_execution_direction>: Use
4790 TARGET_DEFAULT_FUNC.
4792 2014-02-19 Tom Tromey <tromey@redhat.com>
4794 * target-delegates.c: Rebuild.
4795 * target.c (update_current_target): Don't inherit or default
4796 to_can_execute_reverse.
4797 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4798 TARGET_DEFAULT_RETURN.
4799 (target_can_execute_reverse): Unconditionally delegate.
4801 2014-02-19 Tom Tromey <tromey@redhat.com>
4803 * target-delegates.c: Rebuild.
4804 * target.c (update_current_target): Don't inherit or default
4806 (dummy_goto_bookmark): Remove.
4807 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4808 * target.h (struct target_ops) <to_goto_bookmark>: Use
4809 TARGET_DEFAULT_NORETURN.
4811 2014-02-19 Tom Tromey <tromey@redhat.com>
4813 * target-delegates.c: Rebuild.
4814 * target.c (update_current_target): Don't inherit or default
4816 (dummy_get_bookmark): Remove.
4817 (init_dummy_target): Don't inherit or default to_get_bookmark.
4818 * target.h (struct target_ops) <to_get_bookmark>: Use
4819 TARGET_DEFAULT_NORETURN
4821 2014-02-19 Tom Tromey <tromey@redhat.com>
4823 * target-delegates.c: Rebuild.
4824 * target.c (update_current_target): Don't inherit or default
4825 to_make_corefile_notes.
4826 (init_dummy_target): Don't initialize to_make_corefile_notes.
4827 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4828 TARGET_DEFAULT_FUNC.
4830 2014-02-19 Tom Tromey <tromey@redhat.com>
4832 * target-delegates.c: Rebuild.
4833 * target.c (update_current_target): Don't inherit or default
4834 to_find_memory_regions.
4835 (init_dummy_target): Don't initialize to_find_memory_regions.
4836 * target.h (struct target_ops) <to_find_memory_regions>: Use
4837 TARGET_DEFAULT_FUNC.
4839 2014-02-19 Tom Tromey <tromey@redhat.com>
4841 * target-delegates.c: Rebuild.
4842 * target.c (update_current_target): Don't inherit or default
4844 * target.h (struct target_ops) <to_log_command>: Use
4845 TARGET_DEFAULT_IGNORE.
4846 (target_log_command): Unconditionally delegate.
4848 2014-02-19 Tom Tromey <tromey@redhat.com>
4850 * target-delegates.c: Rebuild.
4851 * target.c (update_current_target): Don't inherit or default
4852 to_pid_to_exec_file.
4853 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4854 TARGET_DEFAULT_RETURN.
4856 2014-02-19 Tom Tromey <tromey@redhat.com>
4858 * target-delegates.c: Rebuild.
4859 * target.c (update_current_target): Don't inherit or default
4861 (target_thread_name): Unconditionally delegate.
4862 * target.h (struct target_ops) <to_thread_name>: 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_extra_thread_info.
4870 * target.h (struct target_ops) <to_extra_thread_info>: 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
4878 * target.h (struct target_ops) <to_has_exited>: 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_set_syscall_catchpoint.
4886 (return_one): Remove.
4887 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4888 TARGET_DEFAULT_RETURN.
4890 2014-02-19 Tom Tromey <tromey@redhat.com>
4892 * target-delegates.c: Rebuild.
4893 * target.c (update_current_target): Don't inherit or default
4894 to_insert_exec_catchpoint.
4895 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4896 TARGET_DEFAULT_RETURN.
4898 2014-01-08 Tom Tromey <tromey@redhat.com>
4900 * target-delegates.c: Rebuild.
4901 * target.c (update_current_target): Don't inherit or default
4902 to_insert_exec_catchpoint.
4903 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4904 TARGET_DEFAULT_RETURN.
4906 2014-02-19 Tom Tromey <tromey@redhat.com>
4908 * target-delegates.c: Rebuild.
4909 * target.c (update_current_target): Don't inherit or default
4910 to_remove_vfork_catchpoint.
4911 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4912 TARGET_DEFAULT_RETURN.
4914 2014-02-19 Tom Tromey <tromey@redhat.com>
4916 * target-delegates.c: Rebuild.
4917 * target.c (update_current_target): Don't inherit or default
4918 to_insert_vfork_catchpoint.
4919 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4920 TARGET_DEFAULT_RETURN.
4922 2014-02-19 Tom Tromey <tromey@redhat.com>
4924 * target-delegates.c: Rebuild.
4925 * target.c (update_current_target): Don't inherit or default
4926 to_remove_fork_catchpoint.
4927 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4928 TARGET_DEFAULT_RETURN.
4930 2014-02-19 Tom Tromey <tromey@redhat.com>
4932 * target-delegates.c: Rebuild.
4933 * target.c (update_current_target): Don't inherit or default
4934 to_insert_fork_catchpoint.
4935 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4936 TARGET_DEFAULT_RETURN.
4938 2014-02-19 Tom Tromey <tromey@redhat.com>
4940 * target-delegates.c: Rebuild.
4941 * target.c (update_current_target): Don't inherit or default
4942 to_post_startup_inferior.
4943 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4944 TARGET_DEFAULT_IGNORE.
4946 2014-02-19 Tom Tromey <tromey@redhat.com>
4948 * target-delegates.c: Rebuild.
4949 * target.c (update_current_target): Don't inherit or default
4951 * target.h (struct target_ops) <to_load>: Use
4952 TARGET_DEFAULT_NORETURN.
4954 2014-02-19 Tom Tromey <tromey@redhat.com>
4956 * target-delegates.c: Rebuild.
4957 * target.c (update_current_target): Don't inherit or default
4959 * target.h (struct target_ops) <to_terminal_info>: Use
4960 TARGET_DEFAULT_FUNC.
4962 2014-02-19 Tom Tromey <tromey@redhat.com>
4964 * target-delegates.c: Rebuild.
4965 * target.c (update_current_target): Don't inherit or default
4966 to_terminal_save_ours.
4967 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4968 TARGET_DEFAULT_IGNORE.
4970 2014-02-19 Tom Tromey <tromey@redhat.com>
4972 * target-delegates.c: Rebuild.
4973 * target.c (update_current_target): Don't inherit or default
4975 * target.h (struct target_ops) <to_terminal_ours>: Use
4976 TARGET_DEFAULT_IGNORE.
4978 2014-02-19 Tom Tromey <tromey@redhat.com>
4980 * target-delegates.c: Rebuild.
4981 * target.c (update_current_target): Don't inherit or default
4982 to_terminal_ours_for_output.
4983 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4984 TARGET_DEFAULT_IGNORE.
4986 2014-02-19 Tom Tromey <tromey@redhat.com>
4988 * target-delegates.c: Rebuild.
4989 * target.c (update_current_target): Don't inherit or default
4990 to_terminal_inferior.
4991 * target.h (struct target_ops) <to_terminal_inferior>: Use
4992 TARGET_DEFAULT_IGNORE.
4994 2014-02-19 Tom Tromey <tromey@redhat.com>
4996 * target-delegates.c: Rebuild.
4997 * target.c (update_current_target): Don't inherit or default
4999 * target.h (struct target_ops) <to_terminal_init>: Use
5000 TARGET_DEFAULT_IGNORE.
5002 2014-02-19 Tom Tromey <tromey@redhat.com>
5004 * target-delegates.c: Rebuild.
5005 * target.c (update_current_target): Don't inherit or default
5006 to_can_accel_watchpoint_condition.
5007 * target.h (struct target_ops)
5008 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5010 2014-02-19 Tom Tromey <tromey@redhat.com>
5012 * target-delegates.c: Rebuild.
5013 * target.c (update_current_target): Don't inherit or default
5014 to_region_ok_for_hw_watchpoint.
5015 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5016 Use TARGET_DEFAULT_FUNC.
5018 2014-02-19 Tom Tromey <tromey@redhat.com>
5020 * target-delegates.c: Rebuild.
5021 * target.c (update_current_target): Don't inherit or default
5022 to_watchpoint_addr_within_range.
5023 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5024 Use TARGET_DEFAULT_FUNC.
5026 2014-02-19 Tom Tromey <tromey@redhat.com>
5028 * target-delegates.c: Rebuild.
5029 * target.c (update_current_target): Don't inherit or default
5030 to_remove_watchpoint.
5031 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5032 TARGET_DEFAULT_NORETURN.
5034 2014-02-19 Tom Tromey <tromey@redhat.com>
5036 * target-delegates.c: Rebuild.
5037 * target.c (update_current_target): Don't inherit or default
5038 to_insert_watchpoint.
5039 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5040 TARGET_DEFAULT_RETURN.
5042 2014-02-19 Tom Tromey <tromey@redhat.com>
5044 * target-delegates.c: Rebuild.
5045 * target.c (update_current_target): Don't inherit or default
5046 to_remove_hw_breakpoint.
5047 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5048 TARGET_DEFAULT_RETURN.
5050 2014-02-19 Tom Tromey <tromey@redhat.com>
5052 * target-delegates.c: Rebuild.
5053 * target.c (update_current_target): Don't inherit or default
5054 to_insert_hw_breakpoint.
5055 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5056 TARGET_DEFAULT_RETURN.
5058 2014-02-19 Tom Tromey <tromey@redhat.com>
5060 * target-delegates.c: Rebuild.
5061 * target.c (update_current_target): Don't inherit or default
5062 to_can_use_hw_breakpoint.
5063 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5064 TARGET_DEFAULT_RETURN.
5066 2014-02-19 Tom Tromey <tromey@redhat.com>
5068 * target-delegates.c: Rebuild.
5069 * target.c (update_current_target): Don't inherit or default
5071 * target.h (struct target_ops) <to_files_info>: Use
5072 TARGET_DEFAULT_IGNORE.
5074 2014-02-19 Tom Tromey <tromey@redhat.com>
5076 * target-delegates.c: Rebuild.
5077 * target.c (update_current_target): Don't inherit or default
5079 * target.h (struct target_ops) <to_store>: Use
5080 TARGET_DEFAULT_NORETURN.
5082 2014-02-19 Tom Tromey <tromey@redhat.com>
5084 * target-delegates.c: Rebuild.
5085 * target.c (update_current_target): Don't inherit or default
5087 * target.h (struct target_ops) <to_post_attach>: Use
5088 TARGET_DEFAULT_IGNORE.
5090 2014-02-19 Tom Tromey <tromey@redhat.com>
5092 * target-delegates.c: Rebuild.
5093 * target.c (update_current_target): Don't inherit or default
5095 (default_rcmd): New function.
5096 (do_monitor_command): Unconditionally delegate.
5097 * target.h (struct target_ops) <to_rmcd>: Use
5098 TARGET_DEFAULT_FUNC.
5100 2014-02-19 Tom Tromey <tromey@redhat.com>
5102 * target-delegates.c: Rebuild.
5103 * target.c (init_dummy_target): Don't initialize to_attach.
5104 (target_attach): Unconditionally delegate.
5105 * target.h (struct target_ops) <to_attach>: Use
5106 TARGET_DEFAULT_FUNC.
5108 2014-02-19 Tom Tromey <tromey@redhat.com>
5110 * target-delegates.c: Rebuild.
5111 * target.c (target_detach): Unconditionally delegate.
5112 (init_dummy_target): Don't initialize to_detach.
5113 * target.h (struct target_ops) <to_detach>: Use
5114 TARGET_DEFAULT_IGNORE.
5116 2014-02-19 Tom Tromey <tromey@redhat.com>
5118 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5120 (target_augmented_libraries_svr4_read): Add argument.
5121 * target.c (update_current_target): Update.
5122 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5125 2014-02-19 Tom Tromey <tromey@redhat.com>
5127 * target.h (struct target_ops) <to_call_history_range>: Add
5129 * target.c (target_call_history_range): Add argument.
5130 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5132 (record_btrace_call_history_from): Update.
5134 2014-02-19 Tom Tromey <tromey@redhat.com>
5136 * target.h (struct target_ops) <to_call_history_from>: Add
5138 * target.c (target_call_history_from): Add argument.
5139 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5142 2014-02-19 Tom Tromey <tromey@redhat.com>
5144 * target.h (struct target_ops) <to_call_history>: Add argument.
5145 * target.c (target_call_history): Add argument.
5146 * record-btrace.c (record_btrace_call_history): Add 'self'
5149 2014-02-19 Tom Tromey <tromey@redhat.com>
5151 * target.h (struct target_ops) <to_insn_history_range>: Add
5153 * target.c (target_insn_history_range): Add argument.
5154 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5156 (record_btrace_insn_history_from): Update.
5158 2014-02-19 Tom Tromey <tromey@redhat.com>
5160 * target.h (struct target_ops) <to_insn_history_from>: Add
5162 * target.c (target_insn_history_from): Add argument.
5163 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5166 2014-02-19 Tom Tromey <tromey@redhat.com>
5168 * target.h (struct target_ops) <to_insn_history>: Add argument.
5169 * target.c (target_insn_history): Add argument.
5170 * record-btrace.c (record_btrace_insn_history): Add 'self'
5173 2014-02-19 Tom Tromey <tromey@redhat.com>
5175 * target.h (struct target_ops) <to_goto_record>: Add argument.
5176 * target.c (target_goto_record): Add argument.
5177 * record-full.c (record_full_goto): Add 'self' argument.
5178 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5180 2014-02-19 Tom Tromey <tromey@redhat.com>
5182 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5183 * target.c (target_goto_record_end): Add argument.
5184 * record-full.c (record_full_goto_end): Add 'self' argument.
5185 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5187 2014-02-19 Tom Tromey <tromey@redhat.com>
5189 * target.h (struct target_ops) <to_goto_record_begin>: Add
5191 * target.c (target_goto_record_begin): Add argument.
5192 * record-full.c (record_full_goto_begin): Add 'self' argument.
5193 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5196 2014-02-19 Tom Tromey <tromey@redhat.com>
5198 * target.h (struct target_ops) <to_record_is_replaying>: Add
5200 * target.c (target_record_is_replaying): Add argument.
5201 * record-full.c (record_full_is_replaying): Add 'self' argument.
5202 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5204 (record_btrace_xfer_partial, record_btrace_store_registers)
5205 (record_btrace_prepare_to_store, record_btrace_resume)
5206 (record_btrace_wait, record_btrace_decr_pc_after_break)
5207 (record_btrace_find_new_threads, record_btrace_thread_alive):
5210 2014-02-19 Tom Tromey <tromey@redhat.com>
5212 * target.h (struct target_ops) <to_delete_record>: Add argument.
5213 * target.c (target_delete_record): Add argument.
5214 * record-full.c (record_full_delete): Add 'self' argument.
5216 2014-02-19 Tom Tromey <tromey@redhat.com>
5218 * target.h (struct target_ops) <to_save_record>: Add argument.
5219 * target.c (target_save_record): Add argument.
5220 * record-full.c (record_full_save): Add 'self' argument.
5221 (record_full_save): Add 'self' argument.
5223 2014-02-19 Tom Tromey <tromey@redhat.com>
5225 * target.h (struct target_ops) <to_info_record>: Add argument.
5226 * target.c (target_info_record): Add argument.
5227 * record.c (info_record_command): Add argument.
5228 * record-full.c (record_full_info): Add 'self' argument.
5229 * record-btrace.c (record_btrace_info): Add 'self' argument.
5231 2014-02-19 Tom Tromey <tromey@redhat.com>
5233 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5234 * target.c (target_stop_recording): Add argument.
5235 * record.c (record_stop): Add argument.
5236 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5239 2014-02-19 Tom Tromey <tromey@redhat.com>
5241 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5242 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5243 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5245 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5246 (_initialize_amd64_linux_nat): Use it.
5247 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5248 (_initialize_i386_linux_nat): Use it.
5250 2014-02-19 Tom Tromey <tromey@redhat.com>
5252 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5253 * target.c (target_teardown_btrace): Add argument.
5254 * remote.c (remote_teardown_btrace): Add 'self' argument.
5255 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5257 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5260 2014-02-19 Tom Tromey <tromey@redhat.com>
5262 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5263 * target.c (target_disable_btrace): Add argument.
5264 * remote.c (remote_disable_btrace): Add 'self' argument.
5265 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5267 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5270 2014-02-19 Tom Tromey <tromey@redhat.com>
5272 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5273 * target.c (target_enable_btrace): Add argument.
5274 * remote.c (remote_enable_btrace): Add 'self' argument.
5275 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5277 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5280 2014-02-19 Tom Tromey <tromey@redhat.com>
5282 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5283 (target_can_use_agent): Add argument.
5284 * target.c (update_current_target): Update.
5285 * remote.c (remote_can_use_agent): Add 'self' argument.
5286 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5288 2014-02-19 Tom Tromey <tromey@redhat.com>
5290 * target.h (struct target_ops) <to_use_agent>: Add argument.
5291 (target_use_agent): Add argument.
5292 * target.c (update_current_target): Update.
5293 * remote.c (remote_use_agent): Add 'self' argument.
5294 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5296 2014-02-19 Tom Tromey <tromey@redhat.com>
5298 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5299 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5300 (target_traceframe_info): Add argument.
5301 * target.c (update_current_target): Update.
5302 * remote.c (remote_traceframe_info): Add 'self' argument.
5303 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5305 2014-02-19 Tom Tromey <tromey@redhat.com>
5307 * target.h (target_static_tracepoint_markers_by_strid): Add
5309 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5311 * target.c (update_current_target): Update.
5312 * remote.c (struct target_ops)
5313 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5314 * linux-nat.c (struct target_ops)
5315 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5317 2014-02-19 Tom Tromey <tromey@redhat.com>
5319 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5321 (target_static_tracepoint_marker_at): Add argument.
5322 * target.c (update_current_target): Update.
5323 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5326 2014-02-19 Tom Tromey <tromey@redhat.com>
5328 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5329 (target_set_permissions): Add argument.
5330 * target.c (update_current_target): Update.
5331 * remote.c (remote_set_permissions): Add 'self' argument.
5332 (remote_start_remote): Update.
5334 2014-02-19 Tom Tromey <tromey@redhat.com>
5336 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5337 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5338 (target_get_tib_address): Add argument.
5339 * target.c (update_current_target): Update.
5340 * remote.c (remote_get_tib_address): Add 'self' argument.
5342 2014-02-19 Tom Tromey <tromey@redhat.com>
5344 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5345 (target_set_trace_notes): Add argument.
5346 * target.c (update_current_target): Update.
5347 * remote.c (remote_set_trace_notes): Add 'self' argument.
5349 2014-02-19 Tom Tromey <tromey@redhat.com>
5351 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5353 (target_set_trace_buffer_size): Add argument.
5354 * target.c (update_current_target): Update.
5355 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5357 2014-02-19 Tom Tromey <tromey@redhat.com>
5359 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5361 (target_set_circular_trace_buffer): Add argument.
5362 * target.c (update_current_target): Update.
5363 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5366 2014-02-19 Tom Tromey <tromey@redhat.com>
5368 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5370 (target_set_disconnected_tracing): Add argument.
5371 * target.c (update_current_target): Update.
5372 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5374 2014-02-19 Tom Tromey <tromey@redhat.com>
5376 * target.h (struct target_ops)
5377 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5378 (target_get_min_fast_tracepoint_insn_len): Add argument.
5379 * target.c (update_current_target): Update.
5380 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5383 2014-02-19 Tom Tromey <tromey@redhat.com>
5385 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5387 (target_get_raw_trace_data): Add argument.
5388 * target.c (update_current_target): Update.
5389 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5391 2014-02-19 Tom Tromey <tromey@redhat.com>
5393 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5395 (target_upload_trace_state_variables): Add argument.
5396 * target.c (update_current_target): Update.
5397 * remote.c (remote_upload_trace_state_variables): Add 'self'
5399 (remote_start_remote): Update.
5401 2014-02-19 Tom Tromey <tromey@redhat.com>
5403 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5405 (target_upload_tracepoints): Add argument.
5406 * target.c (update_current_target): Update.
5407 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5408 (remote_start_remote): Update.
5410 2014-02-19 Tom Tromey <tromey@redhat.com>
5412 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5413 (target_save_trace_data): Add argument.
5414 * target.c (update_current_target): Update.
5415 * remote.c (remote_save_trace_data): Add 'self' argument.
5417 2014-02-19 Tom Tromey <tromey@redhat.com>
5419 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5421 * target.h (struct target_ops)
5422 <to_get_trace_state_variable_value>: Add argument.
5423 (target_get_trace_state_variable_value): Add argument.
5424 * target.c (update_current_target): Update.
5425 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5427 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5429 2014-02-19 Tom Tromey <tromey@redhat.com>
5431 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5432 * target.h (struct target_ops) <to_trace_find>: Add argument.
5433 (target_trace_find): Add argument.
5434 * target.c (update_current_target): Update.
5435 * remote.c (remote_trace_find): Add 'self' argument.
5436 * ctf.c (ctf_trace_find): Add 'self' argument.
5438 2014-02-19 Tom Tromey <tromey@redhat.com>
5440 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5441 (target_trace_stop): Add argument.
5442 * target.c (update_current_target): Update.
5443 * remote.c (remote_trace_stop): Add 'self' argument.
5445 2014-02-19 Tom Tromey <tromey@redhat.com>
5447 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5448 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5450 (target_get_tracepoint_status): Add argument.
5451 * target.c (update_current_target): Update.
5452 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5454 2014-02-19 Tom Tromey <tromey@redhat.com>
5456 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5457 * target.h (struct target_ops) <to_get_trace_status>: Add
5459 (target_get_trace_status): Add argument.
5460 * target.c (update_current_target): Update.
5461 * remote.c (remote_get_trace_status): Add 'self' argument.
5462 (remote_start_remote, remote_can_download_tracepoint): Update.
5463 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5465 2014-02-19 Tom Tromey <tromey@redhat.com>
5467 * target.h (struct target_ops) <to_trace_start>: Add argument.
5468 (target_trace_start): Add argument.
5469 * target.c (update_current_target): Update.
5470 * remote.c (remote_trace_start): Add 'self' argument.
5472 2014-02-19 Tom Tromey <tromey@redhat.com>
5474 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5476 (target_trace_set_readonly_regions): Add argument.
5477 * target.c (update_current_target): Update.
5478 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5481 2014-02-19 Tom Tromey <tromey@redhat.com>
5483 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5485 (target_disable_tracepoint): Add argument.
5486 * target.c (update_current_target): Update.
5487 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5489 2014-02-19 Tom Tromey <tromey@redhat.com>
5491 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5493 (target_enable_tracepoint): Add argument.
5494 * target.c (update_current_target): Update.
5495 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5497 2014-02-19 Tom Tromey <tromey@redhat.com>
5499 * target.h (struct target_ops) <to_download_trace_state_variable>:
5501 (target_download_trace_state_variable): Add argument.
5502 * target.c (update_current_target): Update.
5503 * remote.c (remote_download_trace_state_variable): Add 'self'
5506 2014-02-19 Tom Tromey <tromey@redhat.com>
5508 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5510 (target_can_download_tracepoint): Add argument.
5511 * target.c (update_current_target): Update.
5512 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5514 2014-02-19 Tom Tromey <tromey@redhat.com>
5516 * target.h (struct target_ops) <to_download_tracepoint>: Add
5518 (target_download_tracepoint): Add argument.
5519 * target.c (update_current_target): Update.
5520 * remote.c (remote_download_tracepoint): Add 'self' argument.
5522 2014-02-19 Tom Tromey <tromey@redhat.com>
5524 * target.h (struct target_ops) <to_trace_init>: Add argument.
5525 (target_trace_init): Add argument.
5526 * target.c (update_current_target): Update.
5527 * remote.c (remote_trace_init): Add 'self' argument.
5529 2014-02-19 Tom Tromey <tromey@redhat.com>
5531 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5532 * target.c (target_fileio_readlink): Add argument.
5533 * remote.c (remote_hostio_readlink): Add 'self' argument.
5534 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5536 2014-02-19 Tom Tromey <tromey@redhat.com>
5538 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5539 * target.c (target_fileio_unlink): Add argument.
5540 * remote.c (remote_hostio_unlink): Add 'self' argument.
5541 (remote_file_delete): Update.
5542 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5544 2014-02-19 Tom Tromey <tromey@redhat.com>
5546 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5547 * target.c (target_fileio_close): Add argument.
5548 * remote.c (remote_hostio_close): Add 'self' argument.
5549 (remote_hostio_close_cleanup): Update.
5550 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5552 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5554 2014-02-19 Tom Tromey <tromey@redhat.com>
5556 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5557 * target.c (target_fileio_pread): Add argument.
5558 * remote.c (remote_hostio_pread): Add 'self' argument.
5559 (remote_bfd_iovec_pread, remote_file_get): Update.
5560 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5562 2014-02-19 Tom Tromey <tromey@redhat.com>
5564 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5565 * target.c (target_fileio_pwrite): Add argument.
5566 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5567 (remote_file_put): Update.
5568 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5570 2014-02-19 Tom Tromey <tromey@redhat.com>
5572 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5573 * target.c (target_fileio_open): Add argument.
5574 * remote.c (remote_hostio_open): Add 'self' argument.
5575 (remote_bfd_iovec_open): Add 'self' argument.
5576 (remote_file_put): Add 'self' argument.
5577 (remote_file_get): Add 'self' argument.
5578 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5580 2014-02-19 Tom Tromey <tromey@redhat.com>
5582 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5584 (target_can_run_breakpoint_commands): Add argument.
5585 * target.c (update_current_target): Update.
5586 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5588 (remote_insert_breakpoint): Add 'self' argument.
5589 (remote_insert_hw_breakpoint): Add 'self' argument.
5590 (remote_can_run_breakpoint_commands): Add 'self' argument.
5592 2014-02-19 Tom Tromey <tromey@redhat.com>
5594 * target.h (struct target_ops)
5595 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5596 (target_supports_evaluation_of_breakpoint_conditions): Add
5598 * target.c (update_current_target): Update.
5599 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5601 (remote_insert_breakpoint): Add 'self' argument.
5602 (remote_insert_hw_breakpoint): Add 'self' argument.
5603 (remote_supports_cond_breakpoints): Add 'self' argument.
5605 2014-02-19 Tom Tromey <tromey@redhat.com>
5607 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5609 (target_supports_string_tracing): Add argument.
5610 * target.c (update_current_target): Update.
5611 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5613 2014-02-19 Tom Tromey <tromey@redhat.com>
5615 * target.h (struct target_ops)
5616 <to_supports_disable_randomization>: Add argument.
5617 * target.c (find_default_supports_disable_randomization): Add
5619 (target_supports_disable_randomization): Add argument.
5620 (find_default_supports_disable_randomization): Add 'self'
5622 * remote.c (extended_remote_supports_disable_randomization): Add
5624 (remote_supports_disable_randomization): Add 'self' argument.
5625 (extended_remote_create_inferior): Update.
5626 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5629 2014-02-19 Tom Tromey <tromey@redhat.com>
5631 * target.h (struct target_ops)
5632 <to_supports_enable_disable_tracepoint>: Add argument.
5633 (target_supports_enable_disable_tracepoint): Add argument.
5634 * target.c (update_current_target): Update.
5635 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5638 2014-02-19 Tom Tromey <tromey@redhat.com>
5640 * target.h (struct target_ops) <to_supports_multi_process>: Add
5642 (target_supports_multi_process): Add argument.
5643 * target.c (update_current_target): Update.
5644 * remote.c (remote_supports_multi_process): Add 'self' argument.
5645 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5647 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5650 2014-02-19 Tom Tromey <tromey@redhat.com>
5652 * target.h (struct target_ops) <to_execution_direction>: Add
5654 (target_execution_direction): Add argument.
5655 * target.c (default_execution_direction): Add 'self' argument.
5656 * record-full.c (record_full_execution_direction): Add 'self'
5659 2014-02-19 Tom Tromey <tromey@redhat.com>
5661 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5663 (target_can_execute_reverse): Add argument.
5664 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5665 * record-full.c (record_full_can_execute_reverse): Add 'self'
5667 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5670 2014-02-19 Tom Tromey <tromey@redhat.com>
5672 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5673 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5675 (target_get_ada_task_ptid): Add argument.
5676 * target.c (update_current_target): Update.
5677 (default_get_ada_task_ptid): Add 'self' argument.
5678 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5679 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5680 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5682 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5684 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5686 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5688 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5689 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5692 2014-02-19 Tom Tromey <tromey@redhat.com>
5694 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5695 (target_goto_bookmark): Add argument.
5696 * target.c (dummy_goto_bookmark): Add 'self' argument.
5697 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5699 2014-02-19 Tom Tromey <tromey@redhat.com>
5701 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5702 (target_get_bookmark): Add argument.
5703 * target.c (dummy_get_bookmark): Add 'self' argument.
5704 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5706 2014-02-19 Tom Tromey <tromey@redhat.com>
5708 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5710 (target_make_corefile_notes): Add argument.
5711 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5712 * procfs.c (procfs_make_note_section): Add 'self' argument.
5713 (procfs_make_note_section): Add 'self' argument.
5714 (procfs_make_note_section): Add 'self' argument.
5715 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5717 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5718 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5719 * exec.c (exec_make_note_section): Add 'self' argument.
5720 (exec_make_note_section): Add 'self' argument.
5722 2014-02-19 Tom Tromey <tromey@redhat.com>
5724 * target.h (struct target_ops) <to_find_memory_regions>: Add
5726 (target_find_memory_regions): Add argument.
5727 * target.c (dummy_find_memory_regions): Add 'self' argument.
5728 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5729 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5730 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5731 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5732 * exec. (exec_do_find_memory_regions): New global.
5733 (exec_set_find_memory_regions): Rewrite.
5734 (exec_find_memory_regions): New function.
5735 (init_exec_ops): Use exec_find_memory_regions.
5737 2014-02-19 Tom Tromey <tromey@redhat.com>
5739 * target.h (struct target_ops) <to_supports_non_stop>: Add
5741 * target.c (find_default_supports_non_stop): Add argument.
5742 (target_supports_non_stop): Add argument.
5743 (find_default_supports_non_stop): Add 'self' argument.
5744 * remote.c (remote_supports_non_stop): Add 'self' argument.
5745 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5747 2014-02-19 Tom Tromey <tromey@redhat.com>
5749 * target.h (struct target_ops) <to_log_command>: Add argument.
5750 (target_log_command): Add argument.
5751 * serial.h (serial_log_command): Add 'self' argument.
5752 * serial.c (serial_log_command): Add 'self' argument.
5754 2014-02-19 Tom Tromey <tromey@redhat.com>
5756 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5757 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5759 (target_pid_to_exec_file): Add argument.
5760 * target.c (debug_to_pid_to_exec_file): Add argument.
5761 (update_current_target): Update.
5762 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5763 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5764 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5765 (linux_handle_extended_wait): Update.
5766 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5767 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5768 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5769 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5771 2014-02-19 Tom Tromey <tromey@redhat.com>
5773 * target.h (struct target_ops) <to_rcmd>: Add argument.
5774 (target_rcmd): Add argument.
5775 * target.c (debug_to_rcmd): Add argument.
5776 (update_current_target, do_monitor_command): Update.
5777 * remote.c (remote_rcmd): Add 'self' argument.
5778 * monitor.c (monitor_rcmd): Add 'self' argument.
5780 2014-02-19 Tom Tromey <tromey@redhat.com>
5782 * windows-nat.c (windows_stop): Add 'self' argument.
5783 * target.h (struct target_ops) <to_stop>: Add argument.
5784 * target.c (target_stop): Add argument.
5785 (debug_to_stop): Add argument.
5786 (update_current_target): Update.
5787 * remote.c (remote_stop): Add 'self' argument.
5788 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5789 (gdbsim_cntrl_c): Update.
5790 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5791 * procfs.c (procfs_stop): Add 'self' argument.
5792 * nto-procfs.c (procfs_stop): Add 'self' argument.
5793 * monitor.c (monitor_stop): Add 'self' argument.
5794 (monitor_open): Update.
5795 * linux-nat.c (linux_nat_stop): Add argument.
5796 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5797 * gnu-nat.c (gnu_stop): Add 'self' argument.
5798 * darwin-nat.c (darwin_stop): Add 'self' argument.
5800 2014-02-19 Tom Tromey <tromey@redhat.com>
5802 * target.h (struct target_ops) <to_thread_name>: Add argument.
5803 * target.c (target_thread_name): Add argument.
5804 (update_current_target): Update.
5805 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5807 2014-02-19 Tom Tromey <tromey@redhat.com>
5809 * target.h (struct target_ops) <to_extra_thread_info>: Add
5811 (target_extra_thread_info): Add argument.
5812 * target.c (update_current_target): Update.
5813 * remote.c (remote_threads_extra_info): Add 'self' argument.
5814 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5816 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5817 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5818 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5820 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5822 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5824 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5827 2014-02-19 Tom Tromey <tromey@redhat.com>
5829 * target.h (struct target_ops) <to_program_signals>: Add argument.
5830 * target.c (target_program_signals): Add argument.
5831 * remote.c (remote_program_signals): Add 'self' argument.
5833 2014-02-19 Tom Tromey <tromey@redhat.com>
5835 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5836 * target.c (target_pass_signals): Add argument.
5837 * remote.c (remote_pass_signals): Add 'self' argument.
5838 (remote_start_remote): Update.
5839 * procfs.c (procfs_pass_signals): Add 'self' argument.
5840 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5841 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5842 (linux_nat_create_inferior, linux_nat_attach): Update.
5844 2014-02-19 Tom Tromey <tromey@redhat.com>
5846 * windows-nat.c (windows_can_run): Add 'self' argument.
5847 * target.h (struct target_ops) <to_can_run>: Add argument.
5848 (target_can_run): Add argument.
5849 * target.c (debug_to_can_run): Add argument.
5850 (update_current_target): Update.
5851 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5852 * inf-child.c (inf_child_can_run): Add 'self' argument.
5853 * go32-nat.c (go32_can_run): Add 'self' argument.
5855 2014-02-19 Tom Tromey <tromey@redhat.com>
5857 * target.h (struct target_ops) <to_has_exited>: Add argument.
5858 (target_has_exited): Add argument.
5859 * target.c (debug_to_has_exited): Add argument.
5860 (update_current_target): Update.
5862 2014-02-19 Tom Tromey <tromey@redhat.com>
5864 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5866 (target_set_syscall_catchpoint): Add argument.
5867 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5869 * target.c (update_current_target): Update.
5871 2014-02-19 Tom Tromey <tromey@redhat.com>
5873 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5875 (target_remove_exec_catchpoint): Add argument.
5876 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5877 (update_current_target): Update.
5878 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5881 2014-02-19 Tom Tromey <tromey@redhat.com>
5883 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5885 (target_insert_exec_catchpoint): Add argument.
5886 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5887 (update_current_target): Update.
5888 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5891 2014-02-19 Tom Tromey <tromey@redhat.com>
5893 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5895 (target_remove_vfork_catchpoint): Add argument.
5896 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5897 (update_current_target): Update.
5898 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5901 2014-02-19 Tom Tromey <tromey@redhat.com>
5903 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5905 (target_insert_vfork_catchpoint): Add argument.
5906 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5907 (update_current_target): Update.
5908 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5911 2014-02-19 Tom Tromey <tromey@redhat.com>
5913 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5915 (target_remove_fork_catchpoint): Add argument.
5916 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5917 (update_current_target): Update.
5918 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5921 2014-02-19 Tom Tromey <tromey@redhat.com>
5923 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5925 (target_insert_fork_catchpoint): Add argument.
5926 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5927 (update_current_target): Update.
5928 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5931 2014-02-19 Tom Tromey <tromey@redhat.com>
5933 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5935 (target_post_startup_inferior): Add argument.
5936 * target.c (debug_to_post_startup_inferior): Add argument.
5937 (update_current_target): Update.
5938 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5940 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5942 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5944 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5946 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5948 (super_post_startup_inferior): Likewise.
5949 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5951 (super_post_startup_inferior): Likewise.
5952 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5953 Add 'self' argument.
5954 (super_post_startup_inferior): Likewise.
5956 2014-02-19 Tom Tromey <tromey@redhat.com>
5958 * target.h (struct target_ops) <to_load>: Add argument.
5959 * target.c (target_load): Add argument.
5960 (debug_to_load): Add argument.
5961 (update_current_target): Update.
5962 * remote.c (remote_load): Add 'self' argument.
5963 * remote-sim.c (gdbsim_load): Add 'self' argument.
5964 * remote-mips.c (mips_load): Add 'self' argument.
5965 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5966 * monitor.c (monitor_load): Add 'self' argument.
5967 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5969 2014-02-19 Tom Tromey <tromey@redhat.com>
5971 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5972 (target_terminal_info): Add argument.
5973 * target.c (debug_to_terminal_info): Add argument.
5974 (default_terminal_info): Likewise.
5975 * inflow.c (child_terminal_info): Add 'self' argument.
5976 * inferior.h (child_terminal_info): Add 'self' argument.
5977 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5979 2014-02-19 Tom Tromey <tromey@redhat.com>
5981 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5983 (target_terminal_save_ours): Add argument.
5984 * target.c (debug_to_terminal_save_ours): Add argument.
5985 (update_current_target): Update.
5986 * inflow.c (terminal_save_ours): Add 'self' argument.
5987 * inferior.h (terminal_save_ours): Add 'self' argument.
5989 2014-02-19 Tom Tromey <tromey@redhat.com>
5991 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5992 (target_terminal_ours): Add argument.
5993 * target.c (debug_to_terminal_ours): Add argument.
5994 (update_current_target): Update.
5995 * remote.c (remote_terminal_ours): Add 'self' argument.
5996 (remote_close): Update.
5997 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5998 * inflow.c (terminal_ours): Add 'self' argument.
5999 * inferior.h (terminal_ours): Add 'self' argument.
6000 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6002 2014-02-19 Pedro Alves <palves@redhat.com>
6003 Tom Tromey <tromey@redhat.com>
6005 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6007 (target_terminal_ours_for_output): Add argument.
6008 * target.c (debug_to_terminal_ours_for_output): Add argument.
6009 (update_current_target): Update.
6010 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6011 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6012 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6014 2014-02-19 Tom Tromey <tromey@redhat.com>
6016 * target.h (struct target_ops) <to_terminal_inferior>: Add
6018 * target.c (target_terminal_inferior): Add argument.
6019 (update_current_target): Update.
6020 * remote.c (remote_terminal_inferior): Add 'self' argument.
6021 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6022 * inflow.c (terminal_inferior): Add 'self' argument.
6023 * inferior.h (terminal_inferior): Add 'self' argument.
6024 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6025 (go32_terminal_inferior): Add 'self' argument.
6027 2014-02-19 Tom Tromey <tromey@redhat.com>
6029 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6030 (target_terminal_init): Add argument.
6031 * target.c (debug_to_terminal_init): Add argument.
6032 (update_current_target): Update.
6033 * inflow.c (terminal_init_inferior): Add 'self' argument.
6034 * inferior.h (terminal_init_inferior): Add 'self' argument.
6035 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6036 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6038 2014-02-19 Tom Tromey <tromey@redhat.com>
6040 * target.h (struct target_ops)
6041 <to_can_accel_watchpoint_condition>: Add argument.
6042 (target_can_accel_watchpoint_condition): Add argument.
6043 * target.c (debug_to_can_accel_watchpoint_condition): Add
6045 (update_current_target): Update.
6046 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6049 2014-02-19 Tom Tromey <tromey@redhat.com>
6051 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6053 (target_region_ok_for_hw_watchpoint): Add argument.
6054 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6055 (default_region_ok_for_hw_watchpoint): Add argument.
6056 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6057 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6059 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6061 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6063 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6065 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6067 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6069 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6070 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6072 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6073 Add 'self' argument.
6075 2014-02-19 Tom Tromey <tromey@redhat.com>
6077 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6079 (target_insert_watchpoint): Add argument.
6080 * target.c (debug_to_insert_watchpoint): Add argument.
6081 (update_current_target): Update.
6082 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6083 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6084 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6085 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6086 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6087 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6089 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6090 (procfs_insert_hw_watchpoint): Add 'self' argument.
6091 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6093 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6095 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6097 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6098 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6100 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6103 2014-02-19 Tom Tromey <tromey@redhat.com>
6105 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6107 (target_remove_watchpoint): Add argument.
6108 * target.c (debug_to_remove_watchpoint): Add argument.
6109 (update_current_target): Update.
6110 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6111 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6112 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6113 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6114 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6115 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6117 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6118 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6120 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6122 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6124 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6125 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6127 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6130 2014-02-19 Tom Tromey <tromey@redhat.com>
6132 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6134 (target_remove_hw_breakpoint): Add argument.
6135 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6136 (update_current_target): Update.
6137 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6138 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6140 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6141 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6143 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6146 2014-02-19 Tom Tromey <tromey@redhat.com>
6148 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6150 (target_insert_hw_breakpoint): Add argument.
6151 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6152 (update_current_target): Update.
6153 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6154 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6156 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6157 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6158 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6160 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6163 2014-02-19 Tom Tromey <tromey@redhat.com>
6165 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6167 (target_can_use_hardware_watchpoint): Add argument.
6168 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6169 (update_current_target): Update.
6170 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6172 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6174 * remote.c (remote_check_watch_resources): Add 'self' argument.
6175 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6176 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6178 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6179 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6181 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6183 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6185 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6187 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6189 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6191 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6192 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6194 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6197 2014-02-19 Tom Tromey <tromey@redhat.com>
6199 * target.h (struct target_ops) <to_post_attach>: Add argument.
6200 (target_post_attach): Add argument.
6201 * target.c (debug_to_post_attach): Add argument.
6202 (update_current_target): Update.
6203 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6204 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6205 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6206 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6207 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6209 2014-02-19 Tom Tromey <tromey@redhat.com>
6211 * windows-nat.c (windows_close): Add 'self' argument.
6212 * tracepoint.c (tfile_close): Add 'self' argument.
6213 * target.h (struct target_ops) <to_close>: Add argument.
6214 * target.c (target_close): Add argument.
6215 (update_current_target): Update.
6216 * remote.c (remote_close): Add 'self' argument.
6217 * remote-sim.c (gdbsim_close): Add 'self' argument.
6218 * remote-mips.c (mips_close): Add 'self' argument.
6219 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6220 * record-full.c (record_full_close): Add 'self' argument.
6221 * record-btrace.c (record_btrace_close): Add 'self' argument.
6222 * monitor.h (monitor_close): Add 'self' argument.
6223 * monitor.c (monitor_close): Add 'self' argument.
6224 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6225 * linux-nat.c (linux_nat_close): Add argument.
6226 * go32-nat.c (go32_close): Add 'self' argument.
6227 * exec.c (exec_close_1): Add 'self' argument.
6228 * ctf.c (ctf_close): Add 'self' argument.
6229 * corelow.c (core_close): Add 'self' argument.
6230 (core_close_cleanup): Update.
6231 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6232 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6234 2014-02-19 Tom Tromey <tromey@redhat.com>
6236 * remote.c (remote_load): New function.
6237 (init_remote_ops): Use it.
6239 2014-02-19 Tom Tromey <tromey@redhat.com>
6241 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6243 * common/linux-btrace.h (linux_supports_btrace): Update.
6244 * remote.c (remote_supports_btrace): Add "self" argument.
6245 * target-delegates.c: Rebuild.
6246 * target.c (target_supports_btrace): Remove.
6247 * target.h (struct target_ops) <to_supports_btrace>: Add
6248 target_ops argument.
6249 (target_supports_btrace): New define.
6251 2014-02-19 Tom Tromey <tromey@redhat.com>
6253 * record-full.c (record_full_beneath_to_resume_ops)
6254 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6255 (record_full_beneath_to_wait)
6256 (record_full_beneath_to_store_registers_ops)
6257 (record_full_beneath_to_store_registers)
6258 (record_full_beneath_to_xfer_partial_ops)
6259 (record_full_beneath_to_xfer_partial)
6260 (record_full_beneath_to_insert_breakpoint_ops)
6261 (record_full_beneath_to_insert_breakpoint)
6262 (record_full_beneath_to_remove_breakpoint_ops)
6263 (record_full_beneath_to_remove_breakpoint)
6264 (record_full_beneath_to_stopped_by_watchpoint)
6265 (record_full_beneath_to_stopped_data_address)
6266 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6267 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6268 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6269 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6270 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6271 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6272 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6273 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6274 (record_full_resume, record_full_wait_1)
6275 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6276 (record_full_store_registers, record_full_xfer_partial)
6277 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6278 (record_full_async, record_full_core_xfer_partial): Use target
6280 * target-delegates.c: Rebuild.
6281 * target.c (current_xfer_partial): Remove.
6282 (update_current_target): Do not INHERIT or de_fault
6283 to_insert_breakpoint, to_remove_breakpoint,
6284 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6285 to_is_async_p, to_async. Do not set to_xfer_partial field.
6286 (default_xfer_partial): Simplify.
6287 (current_xfer_partial): Remove.
6288 (target_wait, target_resume): Simplify.
6289 (find_default_can_async_p, find_default_is_async_p): Update.
6290 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6291 to_xfer_partial, to_stopped_by_watchpoint,
6292 to_stopped_data_address.
6293 (target_store_registers): Simplify.
6294 (forward_target_remove_breakpoint)
6295 (forward_target_insert_breakpoint): Remove.
6296 (target_remove_breakpoint, target_insert_breakpoint)
6297 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6298 * target.h (struct target_ops) <to_resume, to_wait,
6299 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6300 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6301 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6303 (forward_target_remove_breakpoint)
6304 (forward_target_insert_breakpoint): Remove.
6305 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6307 (record_btrace_insert_breakpoint): Delegate directly.
6309 2014-02-19 Tom Tromey <tromey@redhat.com>
6312 * target-delegates.c: New file.
6313 * target.c: Include target-delegates.c.
6314 (init_dummy_target): Call install_dummy_methods.
6315 (complete_target_initialization): Call install_delegators.
6316 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6317 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6318 * make-target-delegates: New file.
6320 2014-02-19 Tom Tromey <tromey@redhat.com>
6322 * record.c (find_record_target): Use find_target_at.
6323 * target.c (find_target_at): New function.
6324 * target.h (find_target_at): Declare.
6326 2014-02-19 Tom Tromey <tromey@redhat.com>
6328 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6330 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6332 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6333 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6335 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6337 * linux-nat.c (save_sigtrap): Update.
6338 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6339 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6340 (linux_nat_close): Update.
6341 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6343 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6345 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6346 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6347 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6348 (tmp_to_async): Add 'ops' argument.
6349 (record_full_stopped_by_watchpoint, record_full_async)
6350 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6352 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6353 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6354 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6355 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6356 (remote_is_async_p, remote_async): Add 'ops' argument.
6357 (remote_stopped_data_address): Update.
6358 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6359 * target.c (update_current_target)
6360 (find_default_can_async_p, find_default_is_async_p): Update.
6361 (init_dummy_target): Update.
6362 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6363 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6364 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6365 (target_can_async_p, target_is_async_p, target_async)
6366 (target_stopped_by_watchpoint): Update.
6368 2014-02-19 Yao Qi <yao@codesourcery.com>
6371 * gdbarch.sh: Remove startup_gdbarch.
6372 * gdbarch.c: Regenerated.
6373 * gdbarch.h: Likewise.
6375 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6377 * rl78-tdep.c (rl78_g10_register_name): New function.
6378 (rl78_return_value): Add g10 support.
6379 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6382 2014-02-17 Doug Evans <xdje42@gmail.com>
6384 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6385 (SUBDIR_GUILE_SRCS): Ditto.
6386 (scm-gsmob.o): Ditto.
6388 2014-02-17 Yao Qi <yao@codesourcery.com>
6390 * gnu-nat.c (ILL_RPC): Declare defined function.
6392 2014-02-17 Yao Qi <yao@codesourcery.com>
6394 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6395 mach_msg_type_number_t.
6396 (gnu_write_inferior): Likewise.
6398 2014-02-17 Yao Qi <yao@codesourcery.com>
6400 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6402 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6403 (inf_validate_procs, inf_signal): Likewise.
6404 (S_exception_raise_request): Likewise.
6405 (do_mach_notify_dead_name): Likewise.
6406 (steal_exc_port): Likewise.
6407 (gnu_read_inferior): Change 'copy_count''s type to
6408 mach_msg_type_number_t.
6409 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6412 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6414 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6415 flag. Adjust all users; in particular...
6416 (gnu_wait): ..., don't decrement its value in here...
6417 (gnu_create_inferior): ..., and instead set the flag in here,
6418 around the startup_inferior call, and call that one with
6419 START_INFERIOR_TRAPS_EXPECTED.
6421 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6422 (ILL_RPC): ... new macro.
6423 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6424 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6425 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6426 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6427 functions with ILL_RPC macro.
6428 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6429 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6430 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6431 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6432 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6433 (S_proc_getlogin_reply, S_proc_getsid_reply)
6434 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6435 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6436 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6437 (S_proc_getnports_reply, S_proc_is_important_reply)
6438 (S_proc_get_code_reply): New stub functions, generated with
6441 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6442 collected the type check structures.
6444 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6446 2014-02-14 Doug Evans <dje@google.com>
6448 * target.c (target_write_partial): Fix result type.
6450 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6452 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6453 the proper offsets to access fpregset_t.
6455 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6457 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6458 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6459 * h8300-tdep.c (setmachinelist): Remove global.
6460 * hppa-tdep.c (hppa_sigtramp): Remove global.
6461 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6462 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6463 * ravenscar-thread.c (update_target_observer): Remove global.
6464 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6466 2014-02-12 Tom Tromey <tromey@redhat.com>
6468 * common/rsp-low.c: Update comments.
6469 * common/rsp-low.h: Update comments.
6471 2014-02-12 Tom Tromey <tromey@redhat.com>
6473 * common/rsp-low.c (convert_ascii_to_int): Remove.
6474 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6476 2014-02-12 Tom Tromey <tromey@redhat.com>
6478 * common/rsp-low.h (unhexify): Don't declare.
6479 * common/rsp-low.c (unhexify): Remove.
6481 2014-02-12 Tom Tromey <tromey@redhat.com>
6483 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6484 * common/rsp-low.c (convert_int_to_ascii): Remove.
6486 2014-02-12 Tom Tromey <tromey@redhat.com>
6488 * common/rsp-low.h (hexify): Don't declare.
6489 * common/rsp-low.c (hexify): Remove.
6491 2014-02-12 Tom Tromey <tromey@redhat.com>
6493 * common/rsp-low.c (hexify): Never take strlen of argument.
6495 2014-02-12 Tom Tromey <tromey@redhat.com>
6497 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6498 * remote.c (extended_remote_run, remote_rcmd)
6499 (remote_download_trace_state_variable, remote_save_trace_data)
6500 (remote_set_trace_notes): Update.
6501 * tracepoint.c (encode_source_string, tfile_write_status)
6502 (tfile_write_uploaded_tsv): Update.
6504 2014-02-12 Tom Tromey <tromey@redhat.com>
6506 * tracepoint.c: Include rsp-low.h.
6507 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6508 * remote.c: Include rsp-low.h.
6509 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6510 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6511 (remote_unescape_input): Move to common/rsp-low.c.
6512 * common/rsp-low.h: New file.
6513 * common/rsp-low.c: New file.
6514 * Makefile.in (SFILES): Add common/rsp-low.c.
6515 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6516 (COMMON_OBS): Add rsp-low.o.
6517 (rsp-low.o): New target.
6519 2014-02-12 Tom Tromey <tromey@redhat.com>
6521 * utils.h: Include print-utils.h.
6522 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6523 (int_string, core_addr_to_string, core_addr_to_string_nz)
6524 (hex_string, hex_string_custom): Don't declare.
6525 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6526 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6527 (hex_string_custom, int_string, core_addr_to_string)
6528 (core_addr_to_string_nz, host_address_to_string): Move to
6529 common/print-utils.c.
6530 * common/print-utils.h: New file.
6531 * common/print-utils.c: New file
6532 * Makefile.in (SFILES): Add common/print-utils.c.
6533 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6534 (COMMON_OBS): Add print-utils.o.
6535 (print-utils.o): New target.
6537 2014-02-12 Tom Tromey <tromey@redhat.com>
6539 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6541 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6543 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6545 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6547 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6548 if a PT_IO ptrace request returns sucessfully but indicates that 0
6549 bytes were transferred.
6551 2014-02-12 Pedro Alves <palves@redhat.com>
6552 Kevin Buettner <kevinb@redhat.com>
6554 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6555 TYPE_INSTANCE_FLAG_CODE_SPACE.
6557 2014-02-12 Pedro Alves <palves@redhat.com>
6559 * h8300-tdep.c (pseudo_from_raw_register)
6560 (raw_from_pseudo_register): New functions.
6561 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6564 2014-02-12 Pedro Alves <palves@redhat.com>
6566 * h8300-tdep.c (h8300_register_sim_regno): New function.
6567 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6568 gdbarch_register_sim_regno hook.
6570 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6572 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6574 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6576 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6578 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6580 * obsd-tdep.h (obsd_init_abi): New prototype.
6581 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6582 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6583 (obsd_init_abi): New functions.
6584 * i386obsd-tdep.c: Include "obsd-tdep.h".
6585 (i386obsd_init_abi): Call obsd_init_abi.
6586 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6587 (amd64obsd_init_abi): Call obsd_init_abi.
6588 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6589 obsd-tdep.c to gdb_target_obs.
6591 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6593 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6594 double float arguments to 16-byte in the argument slots.
6596 2014-02-11 Doug Evans <xdje42@gmail.com>
6598 * configure.ac: Don't crash if pkg-config is not found and guile
6599 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6601 * configure: Regenerate.
6603 2014-02-11 Yao Qi <yao@codesourcery.com>
6605 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6606 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6607 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6608 * gnu-nat.c (gnu_xfer_memory): Likewise.
6609 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6610 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6611 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6612 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6614 2014-02-11 Yao Qi <yao@codesourcery.com>
6616 * target.h (enum target_xfer_error): Rename to ...
6617 (enum target_xfer_status): ... it. New. All users updated.
6618 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6620 (TARGET_XFER_STATUS_ERROR_P): New macro.
6621 (target_xfer_error_to_string): Remove declaration.
6622 (target_xfer_status_to_string): Declare.
6623 (target_xfer_partial_ftype): Adjust it.
6624 (struct target_ops) <to_xfer_partial>: Return
6625 target_xfer_status. Add argument xfered_len. Update
6627 * target.c (target_xfer_error_to_string): Rename to ...
6628 (target_xfer_status_to_string): ... it. New. All callers
6630 (target_read_live_memory): Likewise. Call target_xfer_partial
6631 instead of target_read.
6632 (memory_xfer_live_readonly_partial): Return
6633 target_xfer_status. Add argument xfered_len.
6634 (raw_memory_xfer_partial): Likewise.
6635 (memory_xfer_partial_1): Likewise.
6636 (memory_xfer_partial): Likewise.
6637 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6638 properly. Update debug message.
6639 (default_xfer_partial, current_xfer_partial): Likewise.
6640 (target_write_partial): Likewise.
6641 (target_read_partial): Likewise. All callers updated.
6642 (read_whatever_is_readable): Likewise.
6643 (target_write_with_progress): Likewise.
6644 (target_read_alloc_1): Likewise.
6646 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6647 * auxv.c (procfs_xfer_auxv): Likewise.
6648 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6649 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6650 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6651 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6652 * corefile.c (read_memory): Adjust.
6653 * corelow.c (core_xfer_partial): Likewise.
6654 * ctf.c (ctf_xfer_partial): Likewise.
6655 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6657 (darwin_xfer_partial): Likewise.
6658 * exec.c (section_table_xfer_memory_partial): Likewise. All
6660 (exec_xfer_partial): Likewise.
6661 * exec.h (section_table_xfer_memory_partial): Update
6663 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6665 (gnu_xfer_partial): Likewise.
6666 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6667 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6668 (ia64_hpux_xfer_solib_got): Likewise.
6669 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6670 type of 'partial_len' to ULONGEST.
6671 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6672 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6673 (linux_nat_xfer_partial): Likewise.
6674 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6675 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6676 * monitor.c (monitor_xfer_memory): Likewise.
6677 (monitor_xfer_partial): Likewise.
6678 * procfs.c (procfs_xfer_partial): Likewise.
6679 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6680 * record-full.c (record_full_xfer_partial): Likewise.
6681 (record_full_core_xfer_partial): Likewise.
6682 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6683 (gdbsim_xfer_partial): Likewise.
6684 * remote.c (remote_write_bytes_aux): Likewise. All callers
6686 (remote_write_bytes, remote_read_bytes): Likewise. All
6688 (remote_flash_erase): Likewise. All callers updated.
6689 (remote_write_qxfer): Likewise. All callers updated.
6690 (remote_read_qxfer): Likewise. All callers updated.
6691 (remote_xfer_partial): Likewise.
6692 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6693 (rs6000_xfer_shared_libraries): Likewise.
6694 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6695 (sol_thread_xfer_partial): Likewise.
6696 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6697 (sparc_xfer_partial): Likewise.
6698 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6700 (spu_xfer_partial): Likewise.
6701 * spu-multiarch.c (spu_xfer_partial): Likewise.
6702 * tracepoint.c (tfile_xfer_partial): Likewise.
6703 * windows-nat.c (windows_xfer_memory): Likewise.
6704 (windows_xfer_shared_libraries): Likewise.
6705 (windows_xfer_partial): Likewise.
6706 * valprint.c: Replace 'target_xfer_error' with
6707 'target_xfer_status' in comments.
6709 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6711 Checked in by Joel Brobecker <brobecker@adacore.com>.
6712 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6714 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6716 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6717 function parameters.
6719 2014-02-10 Will Newton <will.newton@linaro.org>
6721 * elfread.c (elf_rel_plt_read): Look for a .got section if
6722 looking up .got.plt fails.
6723 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6724 on address passed to elf_gnu_ifunc_record_cache.
6725 (elf_gnu_ifunc_resolve_addr): Likewise.
6726 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6728 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6730 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6731 (X_RETTURN): New macro.
6732 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6734 * sparc64-tdep.c (sparc64_init_abi): Hook
6735 sparc_in_function_epilogue_p.
6737 2014-02-10 Gary Benson <gbenson@redhat.com>
6739 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6740 Rename name_matcher to symbol_matcher.
6742 2014-02-10 Gary Benson <gbenson@redhat.com>
6744 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6745 Use expand_symtabs_file_matcher_ftype and
6746 expand_symtabs_symbol_matcher_ftype.
6748 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6750 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6751 (struct ada_symbol_cache): New.
6752 (ada_free_symbol_cache): Forward declare.
6753 (struct ada_pspace_data): New.
6754 (ada_pspace_data_handle): New static global.
6755 (get_ada_pspace_data, ada_pspace_data_cleanup)
6756 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6757 (cache_space, cache): Delete, now folded inside struct
6759 (ada_get_symbol_cache): New function.
6760 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6762 (_initialize_ada_language): Remove initialization of cache_space.
6763 Move call to observer_attach_inferior_exit up, grouping it
6764 with the other observer registrations inside this function.
6765 Rename command to be more general. Add call to
6766 register_program_space_data_with_cleanup.
6768 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6770 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6771 ada_new_objfile_observer.
6772 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6773 (_initialize_tasks): Update uses of ada_new_objfile_observer
6774 and ada_tasks_normal_stop_observer.
6776 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6778 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6779 returned by the 'Length attribute to integer.
6781 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6783 * ada-lang.c (_initialize_ada_language): Initialize
6784 cache_space obstack.
6786 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6788 * ada-lang.c (HASH_SIZE): New macro.
6789 (struct cache_entry): New type.
6790 (cache_space, cache): New static globals.
6791 (ada_clear_symbol_cache, find_entry): New functions.
6792 (lookup_cached_symbol, cache_symbol): Implement.
6793 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6794 (_initialize_ada_language): Attach ada_new_objfile_observer
6795 and ada_free_objfile_observer.
6797 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6799 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6800 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6801 struct block * parameter.
6802 (ada_lookup_symbol_list_worker): Constify local variable "block".
6803 Remove cast which is no longer necessary.
6805 2014-02-10 Doug Evans <xdje42@gmail.com>
6807 Add Guile as an extension language.
6808 * NEWS: Mention Guile scripting.
6809 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6810 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6811 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6812 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6813 (CLIBS): Add GUILE_LIBS.
6814 (install-guile): New rule.
6815 (guile.o): New rule.
6816 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6817 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6818 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6819 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6820 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6821 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6822 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6823 * configure.ac: New option --with-guile.
6824 * configure: Regenerate.
6825 * config.in: Regenerate.
6826 * auto-load.c: Remove #include "python/python.h". Add #include
6827 "gdb/section-scripts.h".
6828 (source_section_scripts): Handle Guile scripts.
6829 (_initialize_auto_load): Add name of Guile objfile script to
6830 scripts-directory help text.
6831 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6832 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6833 (struct breakpoint): New member scm_bp_object.
6834 * defs.h (enum command_control_type): New value guile_control.
6835 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6837 (show_user): Update comment.
6838 (_initialize_cli_cmds): Update help text for "show user". Update help
6839 text for max-user-call-depth.
6840 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6842 (multi_line_command_p): Add guile_control.
6843 (print_command_lines): Handle guile_control.
6844 (execute_control_command, recurse_read_control_structure): Ditto.
6845 (process_next_line): Recognize "guile" commands.
6846 * disasm.c (gdb_disassemble_info): Make non-static.
6847 * disasm.h: #include "dis-asm.h".
6848 (struct gdbarch): Add forward decl.
6849 (gdb_disassemble_info): Declare.
6850 * extension.c: #include "guile/guile.h".
6851 (extension_languages): Add guile.
6852 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6853 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6854 * gdbtypes.c (get_unsigned_type_max): New function.
6855 (get_signed_type_minmax): New function.
6856 * gdbtypes.h (get_unsigned_type_max): Declare.
6857 (get_signed_type_minmax): Declare.
6858 * guile/README: New file.
6859 * guile/guile-internal.h: New file.
6860 * guile/guile.c: New file.
6861 * guile/guile.h: New file.
6862 * guile/scm-arch.c: New file.
6863 * guile/scm-auto-load.c: New file.
6864 * guile/scm-block.c: New file.
6865 * guile/scm-breakpoint.c: New file.
6866 * guile/scm-disasm.c: New file.
6867 * guile/scm-exception.c: New file.
6868 * guile/scm-frame.c: New file.
6869 * guile/scm-gsmob.c: New file.
6870 * guile/scm-iterator.c: New file.
6871 * guile/scm-lazy-string.c: New file.
6872 * guile/scm-math.c: New file.
6873 * guile/scm-objfile.c: New file.
6874 * guile/scm-ports.c: New file.
6875 * guile/scm-pretty-print.c: New file.
6876 * guile/scm-safe-call.c: New file.
6877 * guile/scm-string.c: New file.
6878 * guile/scm-symbol.c: New file.
6879 * guile/scm-symtab.c: New file.
6880 * guile/scm-type.c: New file.
6881 * guile/scm-utils.c: New file.
6882 * guile/scm-value.c: New file.
6883 * guile/lib/gdb.scm: New file.
6884 * guile/lib/gdb/boot.scm: New file.
6885 * guile/lib/gdb/experimental.scm: New file.
6886 * guile/lib/gdb/init.scm: New file.
6887 * guile/lib/gdb/iterator.scm: New file.
6888 * guile/lib/gdb/printing.scm: New file.
6889 * guile/lib/gdb/types.scm: New file.
6890 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6891 (VPATH): Add $(GUILE_SRCDIR).
6892 (GUILE_DIR): New variable.
6893 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6894 (all): Add stamp-guile dependency.
6895 (stamp-guile): New rule.
6896 (clean-guile, install-guile, uninstall-guile): New rules.
6897 (install-only): Add install-guile dependency.
6898 (uninstall): Add uninstall-guile dependency.
6899 (clean): Add clean-guile dependency.
6901 2014-02-09 Doug Evans <xdje42@gmail.com>
6903 Revert this patch (which I approved, mea culpa).
6905 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6907 * Makefile.in (all-lib): Remove.
6908 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6910 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6912 Fix Python stack corruption.
6913 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6916 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6918 * Makefile.in (all-lib): Remove.
6919 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6921 2014-02-07 Doug Evans <dje@google.com>
6923 * extension-priv.h (extension_language_script_ops): Add comment.
6924 (extension_language_ops): Add comment.
6925 (active_ext_lang_state): Fix typo in comment.
6927 2014-02-07 Pedro Alves <palves@redhat.com>
6929 PR breakpoints/16292
6930 * infrun.c (handle_signal_stop) <signal arrives while stepping
6931 over a breakpoint>: Switch back to the stepping thread.
6933 2014-02-07 Yao Qi <yao@codesourcery.com>
6935 * target.c (target_xfer_partial): Return zero if LEN is zero.
6937 2014-02-07 Yao Qi <yao@codesourcery.com>
6939 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6940 (ld_so_xfer_auxv): Likewise.
6941 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6942 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6943 * corelow.c (core_xfer_partial): Likewise.
6944 * ctf.c (ctf_xfer_partial): Likewise.
6945 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6946 (darwin_xfer_partial): Likewise.
6947 * exec.c (exec_xfer_partial): Likewise.
6948 * gnu-nat.c (gnu_xfer_partial): Likewise.
6949 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6950 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6951 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6952 * linux-nat.c (linux_xfer_siginfo): Likewise.
6953 (linux_proc_xfer_spu): Likewise.
6954 * procfs.c (procfs_xfer_partial): Likewise.
6955 * record-full.c (record_full_xfer_partial): Likewise.
6956 (record_full_core_xfer_partial): Likewise.
6957 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6958 * remote.c (remote_write_qxfer): Likewise.
6959 (remote_write_qxfer, remote_read_qxfer): Likewise.
6960 (remote_xfer_partial): Likewise.
6961 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6962 (rs6000_xfer_shared_libraries): Likewise.
6963 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6964 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6965 (spu_xfer_partial): Likewise.
6966 * target.c (memory_xfer_partial_1): Likewise.
6967 * tracepoint.c (tfile_xfer_partial): Likewise.
6968 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6969 (windows_xfer_partial): Likewise.
6971 2014-02-07 Yao Qi <yao@codesourcery.com>
6973 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6975 (core_xfer_shared_libraries_aix): Likewise.
6976 * gdbarch.c, gdbarch.h: Regenerated.
6977 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6978 ULONGEST. Change 'len_avail' type to ULONGEST.
6979 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6980 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6982 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6984 2014-02-07 Yao Qi <yao@codesourcery.com>
6986 * corefile.c (memory_error): Get 'exception' from ERR and pass
6987 'exception' to throw_error.
6989 2014-02-06 Doug Evans <xdje42@gmail.com>
6991 * configure.ac (libpython checking): Remove all but python.o from
6992 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6993 * configure: Regenerate.
6995 * Makefile.in (SFILES): Add extension.c.
6996 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6997 (COMMON_OBS): Add extension.o.
6998 * extension.h: New file.
6999 * extension-priv.h: New file.
7000 * extension.c: New file.
7002 * python/python-internal.h: #include "extension.h".
7003 (gdbpy_auto_load_enabled): Declare.
7004 (gdbpy_apply_val_pretty_printer): Declare.
7005 (gdbpy_apply_frame_filter): Declare.
7006 (gdbpy_preserve_values): Declare.
7007 (gdbpy_breakpoint_cond_says_stop): Declare.
7008 (gdbpy_breakpoint_has_cond): Declare.
7009 (void source_python_script_for_objfile): Delete.
7010 * python/python.c: #include "extension-priv.h".
7011 Delete inclusion of "observer.h".
7012 (extension_language_python): Moved here and renamed from
7013 script_language_python in py-auto-load.c.
7014 Redefined to be of type extension_language_defn.
7015 (python_extension_script_ops): New global.
7016 (python_extension_ops): New global.
7017 (struct python_env): New member previous_active.
7018 (restore_python_env): Call restore_active_ext_lang.
7019 (ensure_python_env): Call set_active_ext_lang.
7020 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7022 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7024 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7026 (gdbpy_eval_from_control_command): Renamed from
7027 eval_python_from_control_command, made static. New arg extlang.
7028 (gdbpy_source_script) Renamed from source_python_script, made static.
7030 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7031 result to int. New arg extlang.
7032 (gdbpy_source_objfile_script): Renamed from
7033 source_python_script_for_objfile, made static. New arg extlang.
7034 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7035 static. New args extlang, extlang_printers. Change result type to
7037 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7038 static. New arg extlang. Rename arg printers to extlang_printers
7039 and change type to ext_lang_type_printers *.
7040 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7041 static. Replace argument arg with extlang, extlang_printers.
7042 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7043 (!HAVE_PYTHON, source_python_script): Delete.
7044 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7045 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7046 (!HAVE_PYTHON, start_type_printers): Delete.
7047 (!HAVE_PYTHON, apply_type_printers): Delete.
7048 (!HAVE_PYTHON, free_type_printers): Delete.
7049 (_initialize_python): Delete call to observer_attach_before_prompt.
7050 (finalize_python): Set/restore active extension language.
7051 (gdbpy_finish_initialization) Renamed from
7052 finish_python_initialization, made static. New arg extlang.
7053 (gdbpy_initialized): New function.
7054 * python/python.h: #include "extension.h". Delete #include
7055 "value.h", "mi/mi-cmds.h".
7056 (extension_language_python): Declare.
7057 (GDBPY_AUTO_FILE_NAME): Delete.
7058 (enum py_bt_status): Moved to extension.h and renamed to
7060 (enum frame_filter_flags): Moved to extension.h.
7061 (enum py_frame_args): Moved to extension.h and renamed to
7062 ext_lang_frame_args.
7063 (finish_python_initialization): Delete.
7064 (eval_python_from_control_command): Delete.
7065 (source_python_script): Delete.
7066 (apply_val_pretty_printer): Delete.
7067 (apply_frame_filter): Delete.
7068 (preserve_python_values): Delete.
7069 (gdbpy_script_language_defn): Delete.
7070 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7071 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7073 * auto-load.c: #include "extension.h".
7074 (GDB_AUTO_FILE_NAME): Delete.
7075 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7076 (script_language_gdb): Delete, moved to extension.c and renamed to
7077 extension_language_gdb.
7078 (source_gdb_script_for_objfile): Delete.
7079 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7080 (loaded_script): Change type of language member to
7081 struct extension_language_defn *.
7082 (init_loaded_scripts_info): Initialize
7083 unsupported_script_warning_printed.
7084 (maybe_add_script): Make static. Change type of language arg to
7085 struct extension_language_defn *.
7086 (clear_section_scripts): Reset unsupported_script_warning_printed.
7087 (auto_load_objfile_script_1): Rewrite to use extension language API.
7088 (auto_load_objfile_script): Make public. Remove support-compiled-in
7089 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7090 (source_section_scripts): Rewrite to use extension language API.
7091 (load_auto_scripts_for_objfile): Rewrite to use
7092 auto_load_scripts_for_objfile.
7093 (collect_matching_scripts_data): Change type of language member to
7094 struct extension_language_defn *.
7095 (auto_load_info_scripts): Change type of language arg to
7096 struct extension_language_defn *.
7097 (unsupported_script_warning_print): New function.
7098 (script_not_found_warning_print): Make static.
7099 (_initialize_auto_load): Rewrite construction of scripts-directory
7101 * auto-load.h (struct objfile): Add forward decl.
7102 (struct script_language): Delete.
7103 (struct auto_load_pspace_info): Add forward decl.
7104 (struct extension_language_defn): Add forward decl.
7105 (maybe_add_script): Delete.
7106 (auto_load_objfile_script): Declare.
7107 (script_not_found_warning_print): Delete.
7108 (auto_load_info_scripts): Update prototype.
7109 (auto_load_gdb_scripts_enabled): Declare.
7110 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7111 auto_load_python_scripts_enabled and made public.
7112 (script_language_python): Delete, moved to python.c.
7113 (gdbpy_script_language_defn): Delete.
7114 (info_auto_load_python_scripts): Update to use
7115 extension_language_python.
7117 * breakpoint.c (condition_command): Replace call to
7118 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7119 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7120 with call to breakpoint_ext_lang_cond_says_stop.
7121 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7122 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7123 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7124 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7126 (local_setattro): Print name of extension language with existing
7129 * valprint.c (val_print, value_print): Update to call
7130 apply_ext_lang_val_pretty_printer.
7131 * cp-valprint.c (cp_print_value): Update call to
7132 apply_ext_lang_val_pretty_printer.
7133 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7134 (gdbpy_apply_val_pretty_printer): Renamed from
7135 apply_val_pretty_printer. New arg extlang.
7136 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7138 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7139 extension language API.
7140 * cli/cli-script.c (execute_control_command): Update to call
7141 eval_ext_lang_from_control_command.
7143 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7144 enum ext_lang_bt_status values. Update call to
7145 apply_ext_lang_frame_filter.
7146 (mi_cmd_stack_list_locals): Ditto.
7147 (mi_cmd_stack_list_args): Ditto.
7148 (mi_cmd_stack_list_variables): Ditto.
7149 * mi/mi-main.c: Delete #include "python/python-internal.h".
7150 Add #include "extension.h".
7151 (mi_cmd_list_features): Replace reference to python internal variable
7152 gdb_python_initialized with call to ext_lang_initialized_p.
7154 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7155 Update to use enum ext_lang_frame_args. Update to call
7156 apply_ext_lang_frame_filter.
7157 * python/py-framefilter.c (extract_sym): Update to use enum
7159 (extract_value, py_print_type, py_print_value): Ditto.
7160 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7161 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7162 (py_print_frame): Ditto.
7163 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7164 New arg extlang. Update to use enum ext_lang_bt_status.
7166 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7167 finish_python_initialization. Replace with call to
7168 finish_ext_lang_initialization.
7170 * typeprint.c (do_free_global_table): Update to call
7171 free_ext_lang_type_printers.
7172 (create_global_typedef_table): Update to call
7173 start_ext_lang_type_printers.
7174 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7175 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7176 (type_print_options): Change type of global_printers from "void *"
7177 to "struct ext_lang_type_printers *".
7179 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7180 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7181 (gdbpy_preserve_values): Renamed from preserve_python_values.
7183 (!HAVE_PYTHON, preserve_python_values): Delete.
7185 * utils.c (quit_flag): Delete, moved to extension.c.
7186 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7189 * eval.c: Delete #include "python/python.h".
7190 * main.c: Delete #include "python/python.h".
7192 * defs.h: Update comment.
7194 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7198 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7200 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7203 2014-02-05 Yao Qi <yao@codesourcery.com>
7205 * remote.c (remote_pass_signals): Remove local 'buf' and use
7207 (remote_program_signals): Likewise.
7209 2014-02-05 Yao Qi <yao@codesourcery.com>
7211 * ctf.c: Include "inferior.h" and "gdbthread.h".
7212 (CTF_PID): A new macro.
7213 (ctf_open): Call inferior_appeared and add_thread_silent.
7214 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7215 (ctf_thread_alive): New function.
7216 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7218 2014-02-05 Yao Qi <yao@codesourcery.com>
7222 2013-05-24 Yao Qi <yao@codesourcery.com>
7224 * tracepoint.c (TFILE_PID): Remove.
7225 (tfile_open): Don't add thread and inferior.
7226 (tfile_close): Don't set 'inferior_ptid'. Don't call
7227 exit_inferior_silent.
7228 (tfile_thread_alive): Remove.
7229 (init_tfile_ops): Don't set field 'to_thread_alive' of
7232 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7234 * remote.c (remote_start_remote): Call remote_check_symbols even
7235 if only symbol-file (not file) has been given.
7237 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7239 * gdbarch.sh (skip_entrypoint): New callback.
7240 * gdbarch.c, gdbarch.h: Regenerate.
7241 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7242 * infrun.c (fill_in_stop_func): Likewise.
7243 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7244 (ppc_elfv2_elf_make_msymbol_special): New function.
7245 (ppc_elfv2_skip_entrypoint): Likewise.
7246 (ppc_linux_init_abi): Install them for ELFv2.
7248 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7250 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7251 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7252 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7253 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7254 structures returned in GPRs.
7256 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7258 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7259 offset to the stack parameter list for the ELFv2 ABI.
7261 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7263 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7264 set_gdbarch_convert_from_func_ptr_addr and
7265 set_gdbarch_elf_make_msymbol_special for ELFv1.
7266 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7267 function descriptors on ELFv1.
7268 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7269 set up r12 at function entry.
7271 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7273 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7274 (struct gdbarch_tdep): New member elf_abi.
7276 * rs6000-tdep.c: Include "elf/ppc64.h".
7277 (rs6000_gdbarch_init): Detect ELF ABI version.
7279 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7281 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7282 within a register pair holding a DFP 128-bit value on little-endian.
7283 (ppc64_sysv_abi_return_value_base): Likewise.
7284 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7285 (dfp_pseudo_register_write): Likewise.
7287 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7289 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7290 offset on little-endian when passing _Decimal32.
7291 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7293 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7295 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7296 of the overlapped FP register within the VSX register on little-
7298 (efpr_pseudo_register_write): Likewise.
7300 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7302 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7303 offset on little-endian when passing small structures.
7305 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7307 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7308 (struct ppc64_sysv_argpos): New data structure.
7309 (ppc64_sysv_abi_push_float): Remove.
7310 (ppc64_sysv_abi_push_val): New function.
7311 (ppc64_sysv_abi_push_integer): Likewise.
7312 (ppc64_sysv_abi_push_freg): Likewise.
7313 (ppc64_sysv_abi_push_vreg): Likewise.
7314 (ppc64_sysv_abi_push_param): Likewise.
7315 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7316 (ppc64_sysv_abi_return_value_base): New function.
7317 (ppc64_sysv_abi_return_value): Refactor to use it.
7319 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7321 * NEWS: Document new target powerpc64le-*-linux*.
7323 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7325 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7326 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7328 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7329 register set used in ELF core dumps. Add floating-point register set.
7331 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7333 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7334 dwarf2_to_gdb[] table using symbolic constants. Adjust
7335 penultimate entry from number representing the PC register
7336 to symbolic constant representing the MDR register. Add
7337 constant for the PC register to the end of the table.
7339 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7341 * bsd-kvm.c: Include <sys/param.h>
7343 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7345 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7347 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7349 * ada-lang.h (clear_ada_sym_cache): Delete.
7351 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7353 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7355 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7357 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7358 the sigreturn register save area only if the syscall is
7361 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7363 * valops.c (value_slice): Minor reformatting.
7365 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7367 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7369 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7371 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7373 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7374 (ada_ignore_descriptive_types_p): New static global.
7375 (find_parallel_type_by_descriptive_type): Return immediately
7376 if ada_ignore_descriptive_types_p is set.
7377 (_initialize_ada_language): Register new commands "maintenance
7378 set ada", "maintenance show ada", "maintenance set ada
7379 ignore-descriptive-types" and "maintenance show ada
7380 ignore-descriptive-types".
7381 * NEWS: Add entry for new "maint ada set/show
7382 ignore-descriptive-types" commands.
7384 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7386 * record-btrace.c (record_btrace_close): Call btrace_teardown
7389 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7391 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7394 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7396 * ada-typeprint (type_is_full_subrange_of_target_type):
7398 (print_range): Add parameter bounds_prefered_p. If not set,
7399 try printing range types using the name of their base type.
7400 (print_range_type): Add parameter bounds_prefered_p.
7401 Use it in call to print_range.
7402 (print_array_type, ada_print_type): Update calls to print_range
7403 and print_range_type.
7405 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7407 * ada-typeprint.c (print_array_type, print_choices, print_range)
7408 (print_range_bound, print_dynamic_range_bound, print_range_type):
7411 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7413 * ada-typeprint.c (print_range): Add missing empty line
7414 after local declaration.
7416 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7418 * ada-valprint.c (print_optional_low_bound): Get index_type's
7419 target type for as long as it is a TYPE_CODE_RANGE.
7421 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7423 * procfs.c (procfs_make_note_section): Remove assertion and
7426 2014-01-24 Yao Qi <yao@codesourcery.com>
7428 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7429 * corelow.c (get_core_siginfo): Likewise.
7431 2014-01-24 Yao Qi <yao@codesourcery.com>
7433 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7434 ULONGEST. Don't check 'len' is negative.
7435 (remote_write_bytes): Change type of 'len' to ULONGEST.
7437 2014-01-23 Tom Tromey <tromey@redhat.com>
7440 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7441 Handle exception from frame.block.
7442 (FrameVars.fetch_frame_locals): Likewise.
7444 2014-01-23 Tom Tromey <tromey@redhat.com>
7447 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7448 on a NULL pointer. Move "goto error" to correct place.
7450 2014-01-23 Tom Tromey <tromey@redhat.com>
7453 * python/py-framefilter.c (apply_frame_filter): Call
7454 ensure_python_env after computing gdbarch.
7456 2014-01-23 Yao Qi <yao@codesourcery.com>
7458 * target.c (raw_memory_xfer_partial): Change argument type
7459 from void * to gdb_byte *.
7460 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7462 2014-01-22 Doug Evans <dje@google.com>
7464 New gdbserver option --debug-format=timestamp.
7467 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7469 * syscalls/s390x-linux.xml: New file.
7470 * syscalls/s390-linux.xml: New file.
7471 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7472 (XML_SYSCALL_FILENAME_S390X): Likewise.
7473 (op_svc): New enum value for SVC opcode.
7474 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7475 (s390_linux_get_syscall_number): New function.
7476 (s390_gdbarch_init): Register '*get_syscall_number' and the
7477 syscall xml file name.
7478 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7479 "s390-linux.xml" and "s390x-linux.xml".
7480 * NEWS: Announce new feature.
7482 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7484 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7486 2014-01-22 Pedro Alves <palves@redhat.com>
7488 * xtensa-config.c: Include defs.h.
7490 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7492 * common/common-utils.h: Add "ARI:" comment beside __func__
7495 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7497 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7498 documentation a bit.
7500 2014-01-21 Roland McGrath <mcgrathr@google.com>
7502 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7503 * configure: Regenerate.
7504 * aclocal.m4: Regenerate.
7505 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7506 New substituted variables.
7507 (install-strip): New target.
7508 (INSTALL_SCRIPT): New substituted variable.
7509 (FLAGS_TO_PASS): Add it.
7510 (install-only): Use $(INSTALL_SCRIPT) rather than
7511 $(INSTALL_PROGRAM) for gcore.
7513 2014-01-20 Tom Tromey <tromey@redhat.com>
7515 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7518 2014-01-20 Tom Tromey <tromey@redhat.com>
7520 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7521 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7522 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7523 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7524 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7525 (struct cmd_list_element) <flags>: Remove.
7526 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7527 doc_allocated>: New fields.
7528 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7530 * maint.c (maintenance_do_deprecate): Update.
7531 * top.c (execute_command): Update.
7533 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7535 * xtensa-linux-nat.c: Include asm/ptrace.h.
7537 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7539 * Makefile.in (SFILES): Add d-support.c.
7540 (COMMON_OBS): Add d-support.o.
7541 * d-lang.h (d_parse_symbol): Add comment, now defined in
7543 * d-lang.c (parse_call_convention)
7544 (parse_attributes, parse_function_types)
7545 (parse_function_args, parse_type, parse_identifier)
7546 (call_convention_p, d_parse_symbol): Move functions to ...
7547 * d-support.c: ... New file.
7549 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7551 * d-lang.h (d_parse_symbol): Add declaration.
7552 * d-lang.c (extract_identifiers)
7553 (extract_type_info): Remove functions.
7554 (parse_call_convention, parse_attributes)
7555 (parse_function_types, parse_function_args)
7556 (parse_type, parse_identifier, call_convention_p)
7557 (d_parse_symbol): New functions.
7558 (d_demangle): Use d_parse_symbol to demangle D symbols.
7560 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7562 * d-lang.h (struct builtin_d_type): New data type.
7563 (builtin_d_type): Add declaration.
7564 * d-lang.c (d_language_arch_info, build_d_types)
7565 (builtin_d_type): New functions.
7566 (enum d_primitive_types): New data type.
7567 (d_language_defn): Change c_language_arch_info to
7568 d_language_arch_info.
7569 (d_type_data): New static variable.
7570 (_initialize_d_language): Initialize d_type_data.
7572 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7574 * d-lang.h (d_main_name): Add declaration.
7575 * d-lang.c (d_main_name): New function.
7576 * symtab.c (find_main_name): Add call to d_main_name.
7578 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7580 * d-lang.c (d_language_defn): Change macro_expansion_c to
7583 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7585 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7587 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7589 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7590 gdb_exception" declaration.
7591 * remote.c (getpkt_or_notif_sane): Likewise.
7593 2014-01-17 Doug Evans <dje@google.com>
7595 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7596 function, contents of dirnames_to_char_ptr_vec_append moved here.
7597 (delim_string_to_char_ptr_vec): New function.
7598 (dirnames_to_char_ptr_vec_append): Rewrite.
7599 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7601 2014-01-17 Doug Evans <dje@google.com>
7603 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7605 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7606 #include "common-utils.h".
7607 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7608 * common/vec.h (VEC_ASSERT_PASS): Update.
7609 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7610 (MACH_CHECK_ERROR): Update.
7612 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7614 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7616 * gdbarch.h: Regenerate.
7618 2014-01-16 Tom Tromey <tromey@redhat.com>
7620 * value.c (struct value) <regnum>: Move earlier.
7622 2014-01-16 Tom Tromey <tromey@redhat.com>
7624 * remote.c (extended_remote_create_inferior): Rename from
7625 extended_remote_create_inferior_1. Add "ops" argument. Remove
7628 2014-01-16 Pedro Alves <palves@redhat.com>
7630 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7631 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7634 2014-01-16 Doug Evans <dje@google.com>
7636 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7638 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7640 * btrace.h (btrace_thread_flag): New.
7641 (struct btrace_thread_info) <flags>: New.
7642 * record-btrace.c (record_btrace_resume_thread)
7643 (record_btrace_find_thread_to_move, btrace_step_no_history)
7644 (btrace_step_stopped, record_btrace_start_replaying)
7645 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7646 (record_btrace_find_resume_thread): New.
7647 (record_btrace_resume, record_btrace_wait): Extend.
7648 (record_btrace_can_execute_reverse): New.
7649 (record_btrace_open): Fail in non-stop mode.
7650 (record_btrace_set_replay): Split into this, ...
7651 (record_btrace_stop_replaying): ... this, ...
7652 (record_btrace_clear_histories): ... and this.
7653 (init_record_btrace_ops): Init to_can_execute_reverse.
7654 * NEWS: Announce it.
7656 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7658 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7659 (forward_target_decr_pc_after_break)
7660 (target_decr_pc_after_break): New.
7661 * target.c (forward_target_decr_pc_after_break)
7662 (target_decr_pc_after_break): New.
7663 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7664 instead of gdbarch_decr_pc_after_break.
7665 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7666 instead of gdbarch_decr_pc_after_break.
7667 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7668 instead of gdbarch_decr_pc_after_break.
7669 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7670 instead of gdbarch_decr_pc_after_break.
7671 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7672 instead of gdbarch_decr_pc_after_break.
7673 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7674 instead of gdbarch_decr_pc_after_break.
7676 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7678 * btrace.c: Include regcache.h.
7679 (btrace_add_pc): New.
7680 (btrace_enable): Call btrace_add_pc.
7681 (btrace_is_empty): New.
7682 * btrace.h (btrace_is_empty): New.
7683 * record-btrace.c (require_btrace, record_btrace_info): Call
7686 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7688 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7689 Support delta reads.
7690 (linux_disable_btrace): Change return type.
7691 * common/linux-btrace.h (linux_read_btrace): Change parameters
7692 and return type to allow error reporting. Update users.
7693 (linux_disable_btrace): Change return type. Update users.
7694 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7696 (btrace_error): New.
7697 (btrace_block) <begin>: Comment on BEGIN == 0.
7698 * btrace.c (btrace_compute_ftrace): Start from the end of
7700 (btrace_stitch_trace, btrace_clear_history): New.
7701 (btrace_fetch): Read delta trace, return if replaying.
7702 (btrace_clear): Move clear history code to btrace_clear_history.
7703 (parse_xml_btrace): Throw an error if parsing failed.
7704 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7705 and return type to allow error reporting.
7706 (target_read_btrace): Change parameters and return type to allow
7708 * target.c (target_read_btrace): Update.
7709 * remote.c (remote_read_btrace): Support delta reads. Pass
7711 * NEWS: Announce it.
7713 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7715 * record.h (record_btrace_frame_unwind)
7716 (record_btrace_tailcall_frame_unwind): New declarations.
7717 * dwarf2-frame: Include record.h
7718 (dwarf2_frame_cfa): Throw an error for btrace frames.
7719 * record-btrace.c: Include hashtab.h.
7720 (btrace_get_bfun_name): New.
7721 (btrace_call_history): Call btrace_get_bfun_name.
7722 (struct btrace_frame_cache): New.
7724 (bfcache_hash, bfcache_eq, bfcache_new): New.
7725 (btrace_get_frame_function): New.
7726 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7727 (record_btrace_frame_this_id): Compute own id.
7728 (record_btrace_frame_prev_register): Provide PC, throw_error
7729 for all other registers.
7730 (record_btrace_frame_sniffer): Detect btrace frames.
7731 (record_btrace_tailcall_frame_sniffer): New.
7732 (record_btrace_frame_dealloc_cache): New.
7733 (record_btrace_frame_unwind): Add new functions.
7734 (record_btrace_tailcall_frame_unwind): New.
7735 (_initialize_record_btrace): Allocate cache.
7736 * btrace.c (btrace_clear): Call reinit_frame_cache.
7737 * NEWS: Announce it.
7739 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7741 * record-btrace.c (record_btrace_set_replay)
7742 (record_btrace_goto_begin, record_btrace_goto_end)
7743 (record_btrace_goto): New.
7744 (init_record_btrace_ops): Initialize them.
7745 * NEWS: Announce it.
7747 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7749 * record-btrace.c (record_btrace_find_new_threads)
7750 (record_btrace_thread_alive): New.
7751 (init_record_btrace_ops): Initialize to_find_new_threads and
7754 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7756 * record-btrace.c (record_btrace_resume): New.
7757 (record_btrace_wait): New.
7758 (init_record_btrace_ops): Initialize to_wait and to_resume.
7760 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7762 * record-btrace.c (record_btrace_xfer_partial)
7763 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7764 (record_btrace_allow_memory_access): New.
7765 (init_record_btrace_ops): Initialize new methods.
7766 * target.c (raw_memory_xfer_partial): Bail out if target reports
7767 that this memory is not available.
7769 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7771 * target.h (target_ops) <to_insert_breakpoint>
7772 <to_remove_breakpoint>: Add target_ops parameter.
7773 (forward_target_insert_breakpoint): New.
7774 (forward_target_remove_breakpoint): New.
7775 (memory_remove_breakpoint, memory_insert_breakpoint):
7776 Add target_ops parameter.
7777 * target.c (target_insert_breakpoint): Split into this and ...
7778 (forward_target_insert_breakpoint): ... this.
7779 (target_remove_breakpoint): Split into this and ...
7780 (forward_target_remove_breakpoint): ... this.
7781 (debug_to_insert_breakpoint): Add target_ops parameter.
7782 Call forward_target_insert_breakpoint.
7783 (debug_to_remove_breakpoint): Add target_ops parameter.
7784 Call forward_target_remove_breakpoint.
7785 (update_current_target): Do not inherit or default to_insert_breakpoint
7786 and to_remove_breakpoint.
7787 * corelow.c (ignore): Add target_ops parameter.
7788 * exec.c (ignore): Add target_ops parameter.
7789 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7790 Add target_ops parameter.
7791 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7792 Add target_ops parameter.
7793 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7794 Add target_ops parameter.
7795 * record-full.c (record_full_beneath_to_insert_breakpoint)
7796 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7797 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7798 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7799 (record_full_core_remove_breakpoint): Add target_ops parameter.
7801 (record_full_beneath_to_insert_breakpoint_ops)
7802 (record_full_beneath_to_remove_breakpoint_ops)
7803 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7804 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7805 tmp_to_remove_breakpoint_ops,
7806 record_full_beneath_to_insert_breakpoint_ops, and
7807 record_full_beneath_to_remove_breakpoint_ops.
7808 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7809 (m32r_remove_breakpoint): Add target_ops parameter.
7810 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7811 Add target_ops parameter.
7812 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7813 Add target_ops parameter.
7815 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7816 Markus Metzger <markus.t.metzger@intel.com>
7818 * record-btrace.c: Include frame-unwind.h.
7819 (record_btrace_frame_unwind_stop_reason)
7820 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7821 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7823 (init_record_btrace_ops): Install it.
7825 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7827 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7830 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7832 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7835 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7837 * frame-unwind.c: Include target.h.
7838 (frame_unwind_try_unwinder): New function with code from ...
7839 (frame_unwind_find_by_frame): ... here. New variable
7840 unwinder_from_target, call also target_get_unwinder)
7841 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7842 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7843 * target.h (struct target_ops): New fields to_get_unwinder and
7844 to_get_tailcall_unwinder.
7845 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7847 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7849 * record-btrace.c (record_btrace_fetch_registers)
7850 (record_btrace_store_registers)
7851 (record_btrace_to_prepare_to_store): New.
7852 (init_record_btrace_ops): Add the above.
7854 2014-01-16 Tom Tromey <tromey@redhat.com>
7856 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7857 * target.h (struct target_ops) <to_prepare_to_store>: Add
7859 (target_prepare_to_store): Add argument.
7860 * target.c (debug_to_prepare_to_store): Add argument.
7861 (update_current_target): Update.
7862 * remote.c (remote_prepare_to_store): Add 'self' argument.
7863 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7864 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7865 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7866 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7868 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7869 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7870 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7871 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7872 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7874 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7876 * btrace.h (replay) <replay>: New.
7877 (btrace_is_replaying): New.
7878 * btrace.c (btrace_clear): Free replay iterator.
7879 (btrace_is_replaying): New.
7880 * record-btrace.c (record_btrace_is_replaying): New.
7881 (record_btrace_info): Print insn number if replaying.
7882 (record_btrace_insn_history): Start at replay position.
7883 (record_btrace_call_history): Start at replay position.
7884 (init_record_btrace_ops): Init to_record_is_replaying.
7886 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7888 * record-btrace.c (record_btrace_insn_history_range): Include
7890 (record_btrace_insn_history_from): Adjust range.
7891 (record_btrace_call_history_range): Include
7893 (record_btrace_call_history_from): Adjust range.
7894 * NEWS: Announce changes.
7896 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7898 * record.h (enum record_print_flag)
7899 <record_print_indent_calls>: New.
7900 * record.c (get_call_history_modifiers): Recognize /c modifier.
7901 (_initialize_record): Document /c modifier.
7902 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7903 Reorder fields. Optionally indent the function name. Update
7905 * NEWS: Announce changes.
7907 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7909 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7911 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7913 * btrace.c (ftrace_new_function): Start counting at one.
7914 * record-btrace.c (record_btrace_info): Adjust number of calls
7916 * NEWS: Announce it.
7918 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7920 * record-btrace.c (btrace_call_history_insn_range): Print
7921 insn range as [begin, end].
7923 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7925 * btrace.h (struct btrace_func_link): New.
7926 (enum btrace_function_flag): New.
7927 (struct btrace_inst): Rename to ...
7928 (struct btrace_insn): ...this. Update all users.
7929 (struct btrace_func) <ibegin, iend>: Remove.
7930 (struct btrace_func_link): New.
7931 (struct btrace_func): Rename to ...
7932 (struct btrace_function): ...this. Update all users.
7933 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7934 (number, level, flags>: New.
7935 (struct btrace_insn_iterator): Rename to ...
7936 (struct btrace_insn_history): ...this.
7938 (struct btrace_insn_iterator, btrace_call_iterator): New.
7939 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7940 (struct btrace_target_info) <begin, end, level>
7941 <insn_history, call_history>: New.
7942 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7943 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7944 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7945 (btrace_call_number, btrace_call_begin, btrace_call_end)
7946 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7947 (btrace_find_function_by_number, btrace_set_insn_history)
7948 (btrace_set_call_history): New.
7949 * btrace.c (btrace_init_insn_iterator)
7950 (btrace_init_func_iterator, compute_itrace): Remove.
7951 (ftrace_print_function_name, ftrace_print_filename)
7952 (ftrace_skip_file): Change
7954 (ftrace_init_func): Remove.
7955 (ftrace_debug): Use new btrace_function fields.
7956 (ftrace_function_switched): Also consider gaining and
7957 losing symbol information).
7958 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7959 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7960 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7962 (ftrace_new_function): Move. Remove debug print.
7963 (ftrace_update_lines, ftrace_update_insns): New.
7964 (ftrace_update_function): Check for call, ret, and jump.
7965 (compute_ftrace): Renamed to ...
7966 (btrace_compute_ftrace): ...this. Rewritten to compute call
7968 (btrace_fetch, btrace_clear): Updated.
7969 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7970 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7971 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7972 (btrace_call_number, btrace_call_begin, btrace_call_end)
7973 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7974 (btrace_find_function_by_number, btrace_set_insn_history)
7975 (btrace_set_call_history): New.
7976 * record-btrace.c (require_btrace): Use new btrace thread
7978 (record_btrace_info, btrace_insn_history)
7979 (record_btrace_insn_history, record_btrace_insn_history_range):
7980 Use new btrace thread info fields and new iterator.
7981 (btrace_func_history_src_line): Rename to ...
7982 (btrace_call_history_src_line): ...this. Use new btrace
7984 (btrace_func_history): Rename to ...
7985 (btrace_call_history): ...this. Use new btrace thread info
7986 fields and new iterator.
7987 (record_btrace_call_history, record_btrace_call_history_range):
7988 Use new btrace thread info fields and new iterator.
7990 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7992 * frame.h (frame_id_build_unavailable_stack_special): New.
7993 * frame.c (frame_id_build_unavailable_stack_special): New.
7995 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7997 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7998 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7999 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8001 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8002 (i386_insn_is_jump, i386_jmp_p): New.
8003 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8004 insn_is_jump to gdbarch.
8005 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8006 * gdbarch.h: Regenerated.
8007 * gdbarch.c: Regenerated.
8008 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8009 (default_insn_is_jump): New.
8010 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8011 (default_insn_is_jump): New.
8013 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8015 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8017 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8018 (btrace_read_type) <btrace_read_new>: Change to ...
8019 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8021 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8023 * common/linux-btrace.c (linux_read_btrace): Free trace from
8026 2014-01-15 Doug Evans <dje@google.com>
8028 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8031 2014-01-15 Tom Tromey <tromey@redhat.com>
8033 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8034 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8035 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8036 (set_objfile_main_name): New function.
8037 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8038 language_of_main>: New fields.
8039 (set_objfile_main_name): Declare.
8040 * symtab.c (find_main_name): Loop over objfiles to find the main
8042 (set_main_name): Now static.
8043 (get_main_info): Add comment.
8044 * symtab.h (set_main_name): Don't declare.
8046 2014-01-15 Tom Tromey <tromey@redhat.com>
8048 * symtab.c (main_progspace_key): New global.
8049 (struct main_info): New.
8050 (name_of_main, language_of_main): Remove.
8051 (get_main_info, main_info_cleanup): New function.
8052 (set_main_name, main_name, main_language): Use get_main_info.
8053 (_initialize_symtab): Initialize main_progspace_key.
8055 2014-01-15 Tom Tromey <tromey@redhat.com>
8057 * dbxread.c (process_one_symbol): Update.
8058 * dwarf2read.c (read_partial_die): Update.
8059 * symfile.c (set_initial_language): Call main_language.
8060 * symtab.c (language_of_main): Now static.
8061 (set_main_name): Add 'lang' parameter.
8062 (find_main_name): Update.
8063 (main_language): New function.
8064 (symtab_observer_executable_changed): Update.
8065 * symtab.h (set_main_name): Update.
8066 (language_of_main): Remove.
8067 (main_language): Declare.
8069 2014-01-15 Tom Tromey <tromey@redhat.com>
8071 * symfile.c (init_entry_point_info): Use new "initialized" field.
8073 * objfiles.h (struct entry_point) <initialized>: New field.
8074 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8075 (struct objfile) <ei>: ...here. Remove.
8076 * objfiles.c (entry_point_address_query): Update.
8078 2014-01-15 Tom Tromey <tromey@redhat.com>
8080 * objfiles.c (entry_point_address_query): Relocate entry point
8082 (objfile_relocate1): Do not relocate entry point address.
8083 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8084 <the_bfd_section_index>: New field.
8085 * symfile.c (init_entry_point_info): Find the entry point's
8088 2014-01-15 Tom Tromey <tromey@redhat.com>
8090 * solib-frv.c (enable_break): Use entry_point_address_query.
8092 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8094 * NEWS: Add note on improved process record-replay on
8095 arm*-linux* targets.
8097 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8099 * arm-tdep.c (enum arm_record_result): New enum.
8100 (arm_record_unsupported_insn): New function.
8101 (arm_record_coproc_data_proc): Removed.
8102 (thumb2_record_ld_st_multiple): New function.
8103 (thumb2_record_ld_st_dual_ex_tbb): New function.
8104 (thumb2_record_data_proc_sreg_mimm): New function.
8105 (thumb2_record_ps_dest_generic): New function.
8106 (thumb2_record_branch_misc_cntrl): New function.
8107 (thumb2_record_str_single_data): New function.
8108 (thumb2_record_ld_mem_hints): New function.
8109 (thumb2_record_ld_word): New function.
8110 (thumb2_record_lmul_lmla_div): New function.
8111 (thumb2_record_decode_insn_handler): New function.
8112 (decode_insn): Add thumb32 instruction handlers.
8114 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8116 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8117 (struct arm_linux_record_tdep): Declare.
8118 (arm_canonicalize_syscall): New function.
8119 (arm_all_but_pc_registers_record): New function.
8120 (arm_linux_syscall_record): New function.
8121 (arm_linux_init_abi): Add syscall recording constructs.
8122 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8123 decoding. (arm_record_coproc_data_proc): Update arm syscall
8125 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8126 <arm_syscall_record>: New field.
8127 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8130 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8132 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8133 register for push instruction recording.
8135 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8137 * arm-tdep.c (thumb_record_misc): Update to correct logical
8138 error while recording ldm, ldmia and pop instructions.
8140 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8142 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8144 2014-01-15 Pedro Alves <palves@redhat.com>
8146 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8147 (go32_resume, go32_fetch_registers, store_register)
8148 (go32_store_registers, go32_prepare_to_store)
8149 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8150 (go32_create_inferior, go32_can_run, go32_terminal_init)
8151 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8154 2014-01-15 Tom Tromey <tromey@redhat.com>
8156 * target.h (async_callback_ftype): New typedef.
8157 (struct target_ops) <to_async>: Use it.
8159 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8161 * python/py-value.c (get_field_type): Remove unnecessary curly
8162 braces for single-statement if block.
8164 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8166 * python/py-type.c (convert_field): Add missing empty line
8169 2014-01-14 Doug Evans <dje@google.com>
8171 * symfile.h (expand_symtabs_matching): Renamed from
8172 expand_partial_symbol_names. Update prototype.
8173 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8174 * symfile.c (expand_symtabs_matching): Renamed from
8175 expand_partial_symbol_names. New args file_matcher, kind.
8176 Rename arg fun to symbol_matcher.
8177 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8178 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8179 ada_expand_partial_symbol_name.
8180 (ada_make_symbol_completion_list): Update to call
8181 expand_symtabs_matching.
8182 (ada_add_global_exceptions): Call expand_symtabs_matching.
8183 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8184 call map_symbol_filenames.
8185 * symtab.c (sources_info): Update to call map_symbol_filenames.
8186 (search_symbols): Call expand_symtabs_matching.
8187 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8188 (default_make_symbol_completion_list_break_on): Update to call
8189 expand_symtabs_matching.
8190 (make_source_files_completion_list): Update to call
8191 map_symbol_filenames.
8193 2014-01-14 Doug Evans <dje@google.com>
8195 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8196 (expand_symtabs_symbol_matcher_ftype): New typedef.
8197 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8198 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8199 * symfile.c (expand_partial_symbol_names): Update to use
8200 expand_symtabs_symbol_matcher_ftype.
8201 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8202 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8203 Arg name_matcher renamed to symbol_matcher.
8204 * psymtab.c (recursively_search_psymtabs): Update to use
8205 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8207 (expand_symtabs_matching_via_partial): Update to use
8208 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8209 Arg name_matcher renamed to symbol_matcher.
8211 2014-01-14 Doug Evans <dje@google.com>
8213 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8214 (map_partial_symbol_filenames): Ditto.
8215 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8216 (map_partial_symbol_filenames): Ditto.
8217 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8218 (map_partial_symbol_filenames): Ditto.
8219 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8220 (map_partial_symbol_filenames): Ditto.
8221 * symtab.c: Delete #include "psymtab.h".
8223 2014-01-14 Pedro Alves <palves@redhat.com>
8224 Tom Tromey <tromey@redhat.com>
8226 * infrun.c (use_displaced_stepping): Use find_record_target
8227 instead of RECORD_IS_USED.
8228 (adjust_pc_after_break): Use record_full_is_used instead of
8230 * record-btrace.c (record_btrace_open): Call record_preopen
8231 instead of checking RECORD_IS_USED.
8232 * record-full.c (record_full_shortname)
8233 (record_full_core_shortname): New globals.
8234 (record_full_is_used): New function.
8235 (find_full_open): Call record_preopen instead of checking
8237 (init_record_full_ops): Set the target's shortname to
8238 record_full_shortname.
8239 (init_record_full_core_ops): Set the target's shortname to
8240 record_full_core_shortname.
8241 * record-full.h (record_full_is_used): Declare.
8242 * record.c (find_record_target): Make extern.
8243 (record_preopen): New function.
8244 * record.h (RECORD_IS_USED): Delete macro.
8245 (find_record_target, record_preopen): Declare functions.
8247 2014-01-14 Yao Qi <yao@codesourcery.com>
8249 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8250 'len''s type to ULONGEST.
8251 (core_xfer_shared_libraries_aix): Likewise.
8252 * gdbarch.c, gdbarch.h: Regenerated.
8253 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8254 Change type of 'len' to ULONGEST.
8255 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8256 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8258 2014-01-14 Yao Qi <yao@codesourcery.com>
8260 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8261 type of 'len' to ULONGEST.
8262 (linux_xfer_osdata_processgroups): Likewise.
8263 (linux_xfer_osdata_threads): Likewise.
8264 (linux_xfer_osdata_fds): Likewise.
8265 (linux_xfer_osdata_isockets): Likewise.
8266 (linux_xfer_osdata_shm): Likewise.
8267 (linux_xfer_osdata_sem): Likewise.
8268 (linux_xfer_osdata_msg): Likewise.
8269 (linux_common_xfer_osdata): Likewise.
8270 (struct osdata_type) <getter>: Likewise.
8271 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8274 2014-01-14 Yao Qi <yao@codesourcery.com>
8276 * target.h (target_xfer_partial_ftype): Update.
8277 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8279 * aix-thread.c (aix_thread_xfer_partial): Change type of
8280 argument 'len' to ULONGEST.
8281 * auxv.c (procfs_xfer_auxv): Likewise.
8282 (ld_so_xfer_auxv): Likewise.
8283 (memory_xfer_auxv): Likewise.
8284 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8285 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8286 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8287 * corelow.c (core_xfer_partial): Likewise.
8288 * ctf.c (ctf_xfer_partial): Likewise.
8289 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8291 (darwin_read_dyld_info): Likewise.
8292 (darwin_xfer_partial): Likewise.
8293 * exec.c (section_table_xfer_memory_partial): Likewise.
8294 (exec_xfer_partial): Likewise.
8295 * exec.h (section_table_xfer_memory_partial): Update
8297 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8298 instead of plongest.
8299 (gnu_xfer_partial): Likewise.
8300 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8301 (ia64_hpux_xfer_solib_got): Likewise.
8302 (ia64_hpux_xfer_partial): Likewise.
8303 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8304 * inf-ptrace.c (inf_ptrace_xfer_partial):
8305 * inf-ttrace.c (inf_ttrace_xfer_partial):
8306 * linux-nat.c (linux_xfer_siginfo): Likewise.
8307 (linux_nat_xfer_partial): Likewise.
8308 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8309 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8310 * monitor.c (monitor_xfer_memory): Likewise.
8311 (monitor_xfer_partial): Likewise.
8312 * procfs.c (procfs_xfer_partial): Likewise.
8313 * record-full.c (record_full_xfer_partial): Likewise.
8314 (record_full_core_xfer_partial): Likewise.
8315 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8316 instead of plongest.
8317 (gdbsim_xfer_partial): Likewise.
8318 * remote.c (remote_xfer_partial): Likewise.
8319 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8320 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8322 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8323 (rs6000_xfer_shared_libraries): Likewise.
8324 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8325 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8326 (sparc_xfer_partial): Likewise.
8327 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8328 (spu_xfer_partial): Likewise.
8329 * spu-multiarch.c (spu_xfer_partial): Likewise.
8330 * target.c (target_read_live_memory): Likewise.
8331 (memory_xfer_live_readonly_partial): Likewise.
8332 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8333 (target_xfer_partial, default_xfer_partial): Likewise.
8334 (current_xfer_partial): Likewise.
8335 * tracepoint.c (tfile_xfer_partial): Likewise.
8336 * windows-nat.c (windows_xfer_memory): Likewise. Call
8337 pulongest instead of plongest.
8338 (windows_xfer_partial): Likewise.
8339 (windows_xfer_shared_libraries): Likewise.
8341 2014-01-14 Yao Qi <yao@codesourcery.com>
8343 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8344 target_xfer_partial_ftype.
8346 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8350 * valops.c (value_struct_elt_bitpos): New function
8351 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8352 object to 'None' if the field name is an empty string ("").
8353 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8354 attribute to look for a field when 'name' is 'None'.
8355 (get_field_type): New function
8357 2014-01-13 Doug Evans <dje@google.com>
8360 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8361 (try_open_dwop_file): Ditto.
8362 * gdb_bfd.c: #include "vec.h".
8363 (bfdp): New typedef.
8364 (struct gdb_bfd_data): New member included_bfds.
8365 (gdb_bfd_unref): Unref all included bfds.
8366 (gdb_bfd_record_inclusion): New function.
8367 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8369 2014-01-13 Tom Tromey <tromey@redhat.com>
8371 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8373 2014-01-13 Tom Tromey <tromey@redhat.com>
8375 * defs.h (use_windows): Remove.
8376 * gdb.c (main): Update.
8377 * main.c (captured_main, gdb_main): Update.
8378 * main.h (struct captured_main_args) <use_windows>: Remove.
8379 * top.c (use_windows): Remove.
8381 2014-01-13 Tom Tromey <tromey@redhat.com>
8383 * defs.h (deprecated_flush_hook): Remove.
8385 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8388 * linux-thread-db.c (try_thread_db_load): Add parameter
8389 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8390 (try_thread_db_load_from_pdir_1): Move it there from here.
8391 (try_thread_db_load_from_sdir): Update caller.
8392 (try_thread_db_load_from_dir): Move it there from here.
8394 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8396 * regformats/regdat.sh: Always rewrite the register file.
8398 2014-01-13 Pedro Alves <palves@redhat.com>
8400 * Makefile.in (CHECK_HEADERS): New variable.
8401 (check-headers:): New rule.
8403 2014-01-13 Tom Tromey <tromey@redhat.com>
8405 * cli/cli-setshow.c (do_set_command): Update.
8406 * defs.h (deprecated_set_hook): Remove.
8407 * top.c (deprecated_set_hook): Remove.
8409 2014-01-13 Pedro Alves <palves@redhat.com>
8411 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8412 the tracepoint if the PC is a pseudo-register.
8414 2014-01-13 Tom Tromey <tromey@redhat.com>
8416 * defs.h (XCALLOC): Remove.
8417 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8418 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8419 * dwarf2loc.c (allocate_piece_closure): Likewise.
8420 * elfread.c (elf_symfile_segments): Likewise.
8421 (elf_symfile_segments): Likewise.
8422 * gdbtypes.c (copy_type_recursive): Likewise.
8423 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8424 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8425 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8427 * mt-tdep.c (mt_gdbarch_init): Likewise.
8428 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8430 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8431 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8432 * registry.c (registry_alloc_data): Likewise.
8433 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8434 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8435 * serial.c (serial_fdopen_ops): Likewise.
8436 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8438 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8439 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8442 2014-01-13 Tom Tromey <tromey@redhat.com>
8444 * defs.h (XMALLOC): Remove.
8445 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8446 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8447 * cli-out.c (struct ui_out *): Likewise.
8448 * cli/cli-dump.c (add_dump_command): Likewise.
8449 (add_dump_command): Likewise.
8450 * complaints.c (get_complaints): Likewise.
8451 (find_complaint): Likewise.
8452 * dwarf2-frame.c (execute_cfa_program): Likewise.
8453 * dwarf2read.c (abbrev_table_read_table): Likewise.
8454 * gdbarch.sh: Likewise.
8455 * gdbarch.c: Rebuild.
8456 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8457 * interps.c (interp_new): Likewise.
8458 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8459 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8460 * mi/mi-console.c (mi_console_file_new): Likewise.
8461 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8462 * mi/mi-out.c (mi_out_new): Likewise.
8463 * mi/mi-parse.c (mi_parse): Likewise.
8464 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8465 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8466 * observer.c (xalloc_observer_list_node): Likewise.
8467 * regcache.c (regcache_xmalloc_1): Likewise.
8468 * reggroups.c (reggroup_new): Likewise.
8469 (_initialize_reggroup): Likewise.
8470 * registry.c (register_data_with_cleanup): Likewise.
8471 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8472 * ser-base.c (serial_ttystate): Likewise.
8473 * ser-mingw.c (make_pipe_state): Likewise.
8474 * ser-pipe.c (pipe_open): Likewise.
8475 * serial.c (serial_open): Likewise.
8476 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8477 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8478 (tui_alloc_win_info): Likewise.
8479 (tui_add_content_elements): Likewise.
8480 * tui/tui-file.c (tui_file_new): Likewise.
8481 * tui/tui-out.c (tui_out_new): Likewise.
8482 * ui-file.c (mem_file_new): Likewise.
8483 * ui-out.c (push_level): Likewise.
8484 (make_cleanup_ui_out_end): Likewise.
8485 (append_header_to_list): Likewise.
8486 (ui_out_new): Likewise.
8487 * user-regs.c (user_reg_add_builtin): Likewise.
8489 2014-01-13 Tom Tromey <tromey@redhat.com>
8491 * defs.h (XZALLOC): Remove.
8492 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8493 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8494 (get_ada_tasks_inferior_data): Likewise.
8495 * auto-load.c (get_auto_load_pspace_data): Likewise.
8496 * auxv.c (get_auxv_inferior_data): Likewise.
8497 * bfd-target.c (target_bfd_reopen): Likewise.
8498 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8499 (deprecated_insert_raw_breakpoint): Likewise.
8500 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8501 * corelow.c (core_open): Likewise.
8502 * darwin-nat.c (darwin_check_new_threads): Likewise.
8503 (darwin_attach_pid): Likewise.
8504 * dummy-frame.c (dummy_frame_push): Likewise.
8505 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8506 * dwarf2loc.c (allocate_piece_closure): Likewise.
8507 * elfread.c (elf_symfile_segments): Likewise.
8508 * eval.c (ptrmath_type_p): Likewise.
8509 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8510 * gdbtypes.c (alloc_type_arch): Likewise.
8511 (alloc_type_instance): Likewise.
8512 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8513 * inf-child.c (inf_child_can_use_agent): Likewise.
8514 * inflow.c (get_inflow_inferior_data): Likewise.
8515 * infrun.c (save_infcall_suspend_state): Likewise.
8516 * jit.c (jit_reader_load): Likewise.
8517 (get_jit_objfile_data): Likewise.
8518 (get_jit_program_space_data): Likewise.
8519 (jit_object_open_impl): Likewise.
8520 (jit_symtab_open_impl): Likewise.
8521 (jit_block_open_impl): Likewise.
8522 (jit_frame_sniffer): Likewise.
8523 * linux-fork.c (add_fork): Likewise.
8524 * maint.c (make_command_stats_cleanup): Likewise.
8525 * objfiles.c (get_objfile_pspace_data): Likewise.
8526 * opencl-lang.c (struct lval_closure): Likewise.
8527 * osdata.c (osdata_start_osdata): Likewise.
8528 * progspace.c (new_address_space): Likewise.
8529 (add_program_space): Likewise.
8530 * remote-sim.c (get_sim_inferior_data): Likewise.
8531 * sh-tdep.c (sh_gdbarch_init): Likewise.
8532 * skip.c (Ignore): Likewise.
8533 (skip_delete_command): Likewise.
8534 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8535 (library_list_start_library): Likewise.
8536 (solib_aix_current_sos): Likewise.
8537 * solib-darwin.c (get_darwin_info): Likewise.
8538 (darwin_current_sos): Likewise.
8539 * solib-dsbt.c (get_dsbt_info): Likewise.
8540 * solib-ia64-hpux.c (new_so_list): Likewise.
8541 (ia64_hpux_get_solib_linkage_addr): Likewise.
8542 * solib-spu.c (append_ocl_sos): Likewise.
8543 (spu_current_sos): Likewise.
8544 * solib-svr4.c (get_svr4_info): Likewise.
8545 (svr4_keep_data_in_core): Likewise.
8546 (library_list_start_library): Likewise.
8547 (svr4_default_sos): Likewise.
8548 (svr4_read_so_list): Likewise.
8549 * solib-target.c (library_list_start_library): Likewise.
8550 (solib_target_current_sos): Likewise.
8551 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8552 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8553 * symfile.c (default_symfile_segments): Likewise.
8554 * target-descriptions.c (tdesc_data_init): Likewise.
8555 (tdesc_create_reg): Likewise.
8556 (struct tdesc_type *): Likewise.
8557 (tdesc_create_vector): Likewise.
8558 (tdesc_set_struct_size): Likewise.
8559 (struct tdesc_type *): Likewise.
8560 (tdesc_free_feature): Likewise.
8561 (tdesc_create_feature): Likewise.
8562 * windows-nat.c (windows_add_thread): Likewise.
8563 (windows_make_so): Likewise.
8564 * xml-support.c (gdb_xml_body_text): Likewise.
8565 (gdb_xml_create_parser_and_cleanup): Likewise.
8566 (xml_process_xincludes): Likewise.
8567 * xml-syscall.c (allocate_syscalls_info): Likewise.
8568 (syscall_create_syscall_desc): Likewise.
8570 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8572 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8573 function, with code from i386_stap_parse_special_token.
8574 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8575 (i386_stap_parse_special_token): Move code to the two functions
8578 2014-01-09 Pedro Alves <palves@redhat.com>
8579 Hui Zhu <hui@codesourcery.com>
8582 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8583 bp_err_string. Don't mark the location shlib_disabled if the
8584 error thrown wasn't a generic or memory error. Catch errors
8585 thrown while inserting breakpoints in overlayed code. Output
8586 error message of software breakpoints.
8587 * remote.c (remote_insert_breakpoint): If this breakpoint has
8588 target-side commands but this stub doesn't support Z0 packets,
8589 throw NOT_SUPPORTED_ERROR error.
8590 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8591 * target.h (target_insert_breakpoint): Extend comment.
8592 (target_insert_hw_breakpoint): Add comment.
8594 2014-01-08 Pedro Alves <palves@redhat.com>
8596 * remote.c (remote_add_thread): Add threads silently if starting
8598 (remote_notice_new_inferior): If in all-stop, and starting up,
8599 don't call notice_new_inferior.
8600 (get_current_thread): New function, factored out from ...
8601 (add_current_inferior_and_thread): ... this. Adjust.
8602 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8603 found any thread, then select the remote's current thread as GDB's
8606 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8608 * NEWS: Create a new section for the next release branch.
8609 Rename the section of the current branch, now that it has
8612 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8614 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8615 * version.in: Bump version to 7.7.50.DATE-cvs.
8617 2014-01-08 Yao Qi <yao@codesourcery.com>
8619 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8620 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8621 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8623 2014-01-08 Yao Qi <yao@codesourcery.com>
8625 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8626 return value of bfd_get_filename to symbol_file_add_from_bfd.
8628 2014-01-08 Pierre Muller <muller@sourceware.org>
8631 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8632 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8633 to prim_record_mininal_symbol_and_info.
8634 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8635 in call to prim_record_minimal_symbol_and_info.
8636 (read_pe_exported_syms): Set index field of section_data.
8638 2014-01-07 Andrew Pinski <apinski@cavium.com>
8640 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8641 * features/aarch64.c: Regenerate.
8643 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8645 * target.c (return_null): Define.
8646 (update_current_target): Use it instead of return_zero for
8647 functions that return a pointer.
8649 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8651 * source.c (add_path): Fix check for duplicated paths in the previously
8654 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8656 * ada-lang.c: Remove duplicated include statements.
8657 * alphabsd-nat.c: Ditto.
8658 * amd64-darwin-tdep.c: Ditto.
8659 * amd64fbsd-nat.c: Ditto.
8660 * auto-load.c: Ditto.
8662 * breakpoint.c: Ditto.
8664 * fork-child.c: Ditto.
8665 * gdb_usleep.c: Ditto.
8666 * i386-darwin-tdep.c: Ditto.
8667 * i386fbsd-nat.c: Ditto.
8669 * inferior.c: Ditto.
8671 * linux-nat.c: Ditto.
8672 * linux-tdep.c: Ditto.
8673 * m68kbsd-nat.c: Ditto.
8674 * m68klinux-nat.c: Ditto.
8675 * microblaze-tdep.c: Ditto.
8676 * mips-linux-tdep.c: Ditto.
8677 * mn10300-tdep.c: Ditto.
8678 * nto-tdep.c: Ditto.
8679 * opencl-lang.c: Ditto.
8681 * printcmd.c: Ditto.
8682 * regcache.c: Ditto.
8683 * remote-m32r-sdi.c: Ditto.
8687 * tilegx-linux-nat.c: Ditto.
8688 * tilegx-tdep.c: Ditto.
8689 * tracepoint.c: Ditto.
8691 * vaxbsd-nat.c: Ditto.
8692 * windows-nat.c: Ditto.
8693 * xtensa-tdep.c: Ditto.
8695 2014-01-07 Yao Qi <yao@codesourcery.com>
8697 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8699 2014-01-07 Yao Qi <yao@codesourcery.com>
8700 Joel Brobecker <brobecker@adacore.com>
8702 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8703 (pdc_write_regs): Likewise.
8704 (fetch_regs_kernel_thread): Likewise.
8705 (store_regs_kernel_thread): Likewise.
8707 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8709 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8710 tagged type objects to their actual type.
8712 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8714 * ada-valprint.c (print_field_values): Add "language" parameter.
8715 Update calls to print_field_values and print_variant_part.
8716 Pass new parameter "language" in call to val_print instead
8717 of "current_language". Replace call to ada_val_print by call
8719 (print_variant_part): Add "language" parameter.
8720 (ada_val_print_struct_union): Update call to print_field_values.
8722 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8724 * ada-valprint.c (ui_memcpy): Delete.
8725 (ada_print_floating): Update documentation. Add empty line
8726 between between function documentation and implementation.
8727 Delete variable "buffer". Use ui_file_xstrdup in place of
8728 ui_file_put. Minor adjustments following this change.
8730 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8732 * ada-valprint.c (ada_val_print_string): New function,
8733 extracted from ada_val_print_array.
8734 (ada_val_print_array): Replace extracted code by call
8735 to ada_val_print_string followed by a return. Move
8736 "else" branch to the function's top block.
8738 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8740 * ada-valprint.c (ada_val_print_array): Move implementation
8741 down. Rename parameter "offset" and "val" into "offset_aligned"
8742 and "original_value" respectively. Add parameter "offset".
8744 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8746 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8747 re-organizing the code. Change the "???" message printed
8748 when target type is a TYPE_CODE_UNDEF into
8749 "<ref to undefined type>".
8751 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8753 * ada-valprint.c (print_record): Delete, implementation inlined...
8754 (ada_val_print_struct_union): ... here. Remove call to
8755 ada_check_typedef in inlined implementation.
8757 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8759 * ada-valprint.c (ada_val_print_gnat_array): New function,
8760 extracted from ada_val_print_1;
8761 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8762 (ada_val_print_flt, ada_val_print_struct_union)
8763 (ada_val_print_ref): Likewise.
8764 (ada_val_print_1): Delete variables i and elttype.
8765 Replace extracted-out code by call to corresponding
8768 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8770 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8772 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8774 * ada-valprint.c (ada_val_print_1): Replace calls to
8775 ada_val_print_1 by calls to val_print.
8777 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8779 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8780 Update calls to self accordingly. Replace calls to c_val_print
8781 by calls to val_print.
8783 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8785 * ada-valprint.c (print_record): Delete declaration.
8786 (adjust_type_signedness, ada_val_print_1): Likewise.
8787 (ada_val_print): Move function implementation down.
8788 (print_variant_part, print_field_values, print_record):
8789 Move function implementation up.
8791 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8793 * python/py-type.c (typy_get_name): New function.
8794 (type_object_getset): Add entry for attribute "name".
8795 * NEWS: Add entry mentioning this new attribute.
8797 2014-01-07 Yao Qi <yao@codesourcery.com>
8799 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8802 2014-01-07 Yao Qi <yao@codesourcery.com>
8804 * gnu-nat.c (info_port_rights): Add qualifier const to
8807 2014-01-07 Yao Qi <yao@codesourcery.com>
8809 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8811 2014-01-07 Yao Qi <yao@codesourcery.com>
8813 * gnu-nat.c (make_inf) Update declaration.
8814 (make_inf): Make it static.
8815 (inf_set_traced): Likewise.
8816 (inf_port_to_thread, inf_task_died_status): Likewise.
8818 2014-01-07 Yao Qi <yao@codesourcery.com>
8820 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8822 2014-01-07 Yao Qi <yao@codesourcery.com>
8824 * gnu-nat.c (_initialize_gnu_nat): Declare.
8826 2014-01-07 Yao Qi <yao@codesourcery.com>
8828 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8830 (struct gdbarch_info) <byte_order>: Change type to
8832 <byte_order_for_code>: Likewise.
8833 * gdbarch.c, gdbarch.h: Regenerated.
8835 2014-01-06 Sasha Smundak <asmundak@google.com>
8837 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8839 2014-01-06 Tom Tromey <tromey@redhat.com>
8841 * doublest.c (convert_doublest_to_floatformat): Use const, not
8843 * somread.c (som_symtab_read): Likewise.
8845 2014-01-07 Hui Zhu <hui@codesourcery.com>
8847 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8848 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8849 (gdb_bfd_fopen): Ditto.
8850 (gdb_bfd_openr): Ditto.
8851 (gdb_bfd_openw): Ditto.
8852 (gdb_bfd_openr_iovec): Ditto.
8853 (gdb_bfd_fdopenr): Ditto.
8854 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8855 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8857 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8859 * symfile-mem.c (symbol_file_add_from_memory): Removed
8860 gdb_bfd_stash_filename.
8862 2014-01-03 Doug Evans <dje@google.com>
8864 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8867 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8869 Update year range in copyright notice of all files.
8871 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8873 * top.c (print_gdb_version): Set copyright year to 2014.
8875 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8877 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8879 For older changes see ChangeLog-2013.
8885 version-control: never