1 2014-06-04 Doug Evans <xdje42@gmail.com>
3 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
5 (bpscm_make_breakpoint_smob): Initialize new members.
6 (gdbscm_create_breakpoint_x): Split into two ...
7 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
8 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
9 (scheme_function breakpoint_functions): Update.
10 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
11 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
14 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
17 * mem-break.c (z_type_supported): Return zero if
18 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
20 2014-06-04 Tom Tromey <tromey@redhat.com>
22 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
23 value_from_contents_and_address_unresolved.
24 (ada_template_to_fixed_record_type_1): Likewise.
25 (ada_which_variant_applies): Likewise.
26 * value.h (value_from_contents_and_address_unresolved): Declare.
27 * value.c (value_from_contents_and_address_unresolved): New
29 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
30 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
31 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
33 2014-06-04 Tom Tromey <tromey@redhat.com>
35 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
37 2014-06-04 Tom Tromey <tromey@redhat.com>
39 * procfs.c (procfs_attach): Make "args" const.
40 * windows-nat.c (windows_attach): Make "args" const.
41 * nto-procfs.c (procfs_attach): Make "args" const.
42 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
43 * go32-nat.c (go32_attach): Make "args" const.
44 * gnu-nat.c (gnu_attach): Make "args" const.
45 * darwin-nat.c (darwin_attach): Make "args" const.
46 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
47 * linux-nat.c (linux_nat_attach): Make "args" const.
48 * remote.c (extended_remote_attach_1, extended_remote_attach):
50 * target.h (struct target_ops) <to_attach>: Make "args" const.
51 (find_default_attach): Likewise.
52 * utils.c (parse_pid_to_attach): Make "args" const.
53 * utils.h (parse_pid_to_attach): Update.
55 2014-06-04 Tom Tromey <tromey@redhat.com>
57 * target-delegates.c: Rebuild.
58 * target.c (default_thread_address_space): New function.
59 (target_thread_address_space): Simplify.
60 * target.h (struct target_ops) <to_thread_address_space>: Add
63 2014-06-04 Doug Evans <xdje42@gmail.com>
65 * guile/scm-type.c (type_smob): Remove duplicate typedef.
67 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
69 * record-btrace.c: Include event-loop.h and inf-loop.h.
70 (record_btrace_resume_exec_dir)
71 (record_btrace_async_inferior_event_handler)
72 (record_btrace_handle_async_inferior_event): New.
73 (record_btrace_open): Create async event handler.
74 (record_btrace_close): Delete async event handler.
75 (record_btrace_resume): Set record_btrace_resume_exec_dir,
76 Mark async event handler.
77 (record_btrace_execution_direction): New.
78 (init_record_btrace_ops): Initialize to_execution_direction.
80 2014-06-03 Doug Evans <xdje42@gmail.com>
82 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
83 (gdbscm_make_parameter): Ditto.
85 2014-06-03 Doug Evans <dje@google.com>
87 * exec.c (exec_close_1): Call clear_section_table instead of
89 (clear_section_table): New function.
90 (resize_section_table): Make static. Rename arg num_added to
92 * exec.h (clear_section_table): Declare.
93 (resize_section_table): Delete.
94 * progspace.c (release_program_space): Call clear_section_table
95 instead of resize_section_table.
97 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
99 * NEWS (Python Scripting): Add entry about the new xmethods
102 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
104 * python/py-xmethods.c: New file.
105 * python/py-objfile.c (objfile_object): New field 'xmethods'.
106 (objfpy_dealloc): XDECREF on the new xmethods field.
107 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
109 (objfpy_get_xmethods): New function.
110 (objfile_getset): New entry 'xmethods'.
111 * python/py-progspace.c (pspace_object): New field 'xmethods'.
112 (pspy_dealloc): XDECREF on the new xmethods field.
113 (pspy_new, pspace_to_pspace_object): Initialize xmethods
115 (pspy_get_xmethods): New function.
116 (pspace_getset): New entry 'xmethods'.
117 * python/python-internal.h: Add declarations for new functions.
118 * python/python.c (_initialize_python): Invoke
119 gdbpy_initialize_xmethods.
120 * python/lib/gdb/__init__.py (xmethods): New
122 * python/lib/gdb/xmethod.py: New file.
123 * python/lib/gdb/command/xmethods.py: New file.
125 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
127 * eval.c (evaluate_subexp_standard): Call the xmethod if the
128 best match method returned by find_overload_match is an xmethod.
129 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
130 the best matching operator returned by find_overload_match is an
132 * valops.c: #include "extension.h".
133 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
134 Return void. The list of matching source methods is returned in
135 "fn_list" and a vector of matching debug method workers is
136 returned in "xm_worker_vec". Update all callers.
137 (value_find_oload_method_list): Likewise.
138 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
139 non-NULL, then the index of the best matching method in this
140 vector is returned. Update all callers.
141 (find_overload_match): Include xmethods while performing overload
144 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
146 * defs.h (enum lval_type): New enumerator "lval_xcallable".
147 * extension-priv.h (struct extension_language_ops): Add the
149 * extension.c (new_xmethod_worker, clone_xmethod_worker,
150 get_matching_xmethod_workers, get_xmethod_argtypes,
151 invoke_xmethod, free_xmethod_worker,
152 free_xmethod_worker_vec): New functions.
153 * extension.h: #include "common/vec.h".
154 New function declarations.
155 (struct xmethod_worker): New struct.
156 (VEC (xmethod_worker_ptr)): New vector type.
157 (xmethod_worker_ptr): New typedef.
158 (xmethod_worker_vec): Likewise.
159 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
161 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
162 (struct builtin_type): New field "xmethod".
163 * valarith.c (value_ptradd): Assert that the value argument is not
165 * valops.c (value_must_coerce_to_target): Return 0 for
166 lval_xcallable values.
167 * value.c (struct value): New field XM_WORKER in the field
169 (value_address, value_raw_address): Return 0 for lval_xcallable
171 (set_value_address): Assert that the value is not an
173 (value_free): Free the associated xmethod worker when freeing
174 lval_xcallable values.
175 (set_value_component_location): Assert that the WHOLE value is not
177 (value_of_xmethod, call_xmethod): New functions.
178 * value.h: Declare "struct xmethod_worker".
179 Declare new functions value_of_xmethod, call_xmethod.
181 2014-06-03 Joel Brobecker <brobecker@adacore.com>
182 Pedro Alves <palves@redhat.com>
185 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
186 New function, extracted from software_breakpoint_inserted_here_p.
187 (software_breakpoint_inserted_here_p): Replace factored out code
188 by call to find_non_raw_software_breakpoint_inserted_here.
189 (bp_target_info_copy_insertion_state): New function.
190 (bkpt_insert_location): Handle the case of a single-step
191 breakpoint already inserted at the same address.
192 (bkpt_remove_location): Handle the case of a single-step
193 breakpoint still inserted at the same address.
194 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
195 breakpoint already inserted at the same address.
196 (deprecated_remove_raw_breakpoint): Handle the case of a
197 non-raw breakpoint still inserted at the same address.
198 (find_single_step_breakpoint): New function, extracted from
199 single_step_breakpoint_inserted_here_p.
200 (find_single_step_breakpoint): New function,
201 factored out from single_step_breakpoint_inserted_here_p.
202 (single_step_breakpoint_inserted_here_p): Reimplement.
204 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
206 Pushed by Joel Brobecker <brobecker@adacore.com>
207 * source.c (show_substitute_path_command): Fix display of matching
210 2014-06-03 Gary Benson <gbenson@redhat.com>
212 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
214 2014-06-02 Doug Evans <xdje42@gmail.com>
216 Add parameter support for Guile.
217 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
218 (SUBDIR_GUILE_SRCS): Add scm-param.c.
219 (scm-param.o): New rule.
220 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
221 (gdbscm_misc_error): Declare.
222 (gdbscm_canonicalize_command_name): Declare.
223 (gdbscm_scm_to_host_string): Declare.
224 (gdbscm_scm_from_host_string): Declare.
225 (gdbscm_initialize_parameters): Declare.
226 * guile/guile.c (initialize_gdb_module): Call
227 gdbscm_initialize_parameters.
228 * guile/lib/gdb.scm: Export parameter symbols.
229 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
230 cmdscm_canonicalize_name and made public. All callers updated.
231 * guile/scm-exception.c (gdbscm_misc_error): New function.
232 * guile/scm-param.c: New file.
233 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
234 (gdbscm_scm_to_host_string): New function.
235 (gdbscm_scm_from_host_string): New function.
236 * scm-utils.c (gdbscm_gc_dup_argv): New function.
238 2014-06-02 Doug Evans <xdje42@gmail.com>
240 Add command support for Guile.
241 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
242 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
243 (scm-cmd.o): New rule.
244 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
245 (gdbscm_user_error_p): Declare.
246 (gdbscm_parse_command_name): Declare.
247 (gdbscm_valid_command_class_p): Declare.
248 (gdbscm_initialize_commands): Declare.
249 * guile/guile.c (initialize_gdb_module): Call
250 gdbscm_initialize_commands.
251 * guile/lib/gdb.scm: Export command symbols.
252 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
253 (throw-user-error): New function.
254 * guile/scm-cmd.c: New file.
255 * guile/scm-exception.c (user_error_symbol): New static global.
256 (gdbscm_user_error_p): New function.
257 (gdbscm_initialize_exceptions): Set user_error_symbol.
258 * scm-utils.c (gdbscm_gc_xstrdup): New function.
260 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
262 * top.c (command_loop): Handle comments here...
263 (command_line_input): ... not here.
265 2014-06-02 Doug Evans <xdje42@gmail.com>
267 Add progspace support for Guile.
268 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
269 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
270 (scm-progspace.o): New rule.
271 * guile/guile-internal.h (pspace_smob): New typedef.
272 (psscm_pspace_smob_pretty_printers): Declare.
273 (psscm_pspace_smob_from_pspace): Declare.
274 (psscm_scm_from_pspace): Declare.
275 * guile/guile.c (initialize_gdb_module): Call
276 gdbscm_initialize_pspaces.
277 * guile/lib/gdb.scm: Export progspace symbols.
278 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
280 (append-pretty-printer!): Ditto.
281 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
283 * guile/scm-progspace.c: New file.
285 2014-06-03 Alan Modra <amodra@gmail.com>
287 * ppc64-tdep.c (ppc64_standard_linkage8): New.
288 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
290 2014-06-02 Doug Evans <dje@google.com>
292 Add support for skeletonless type units.
293 * dwarf2read.c (struct dwarf2_per_objfile): New member
294 n_allocated_type_units.
295 (struct dwarf2_per_objfile) <tu_stats>: New member
296 nr_all_type_units_reallocs.
297 (create_signatured_type_table_from_index): Initialize
298 n_allocated_type_units
299 (create_all_type_units): Ditto.
300 (add_type_unit): Move up in file. New arg slot.
301 All callers updated. Increase space for all_type_units more
303 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
304 (lookup_dwo_signatured_type): Handle skeletonless TUs.
305 (lookup_dwp_signatured_type): Ditto.
306 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
308 (build_type_psymtabs_1): Leave type_unit_groups as
309 NULL if no TUs present.
310 (print_tu_stats): New function.
311 (process_skeletonless_type_unit): New function.
312 (process_dwo_file_for_skeletonless_type_units): New
314 (process_skeletonless_type_units): New function.
315 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
316 Call print tu_stats if debugging enabled.
318 2014-06-02 Pedro Alves <palves@redhat.com>
320 * breakpoint.c (build_target_command_list): Don't build a command
321 list if we have any duplicate location that isn't a dprintf.
323 2014-06-02 Pedro Alves <palves@redhat.com>
325 * breakpoint.c (dprintf_breakpoint_hit): New function.
326 (initialize_breakpoint_ops): Install it as dprintf's
327 breakpoint_hit method.
329 2014-06-02 Joel Brobecker <brobecker@adacore.com>
331 * source.c (substitute_path_rule_matches): Simplify using
332 filename_ncmp instead of FILENAME_CMP.
334 2014-06-02 Joel Brobecker <brobecker@adacore.com>
336 * source.c (substitute_path_rule_matches): Remove trailing spaces.
338 2014-06-01 Ludovic Courtès <ludo@gnu.org>
340 * configure.ac: When Guile is available, check for the
341 availability of 'scm_new_smob'.
342 * configure, config.h.in: Regenerate.
343 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
346 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
348 * frame.c (struct frame_info): Add stop_string field.
349 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
350 (get_prev_frame_always): Old content moved into
351 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
352 TRY_CATCH, handle MEMORY_ERROR exceptions.
353 (frame_stop_reason_string): New function definition.
354 * frame.h (unwind_stop_reason_to_string): Extend comment to
355 mention frame_stop_reason_string.
356 (frame_stop_reason_string): New function declaration.
357 * stack.c (frame_info): Switch to frame_stop_reason_string.
358 (backtrace_command_1): Switch to frame_stop_reason_string.
359 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
360 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
361 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
363 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
365 * frame.c (frame_stop_reason_string): Rename to ...
366 (unwind_stop_reason_to_string): this.
367 * frame.h (frame_stop_reason_string): Rename to ...
368 (unwind_stop_reason_to_string): this.
369 * stack.c (frame_info): Update call to frame_stop_reason_string.
370 (backtrace_command_1): Likewise.
371 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
372 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
374 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
376 * frame.c (remove_prev_frame): New function.
377 (get_prev_frame_if_no_cycle): Create / discard cleanup using
380 2014-05-29 Pedro Alves <palves@redhat.com>
382 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
383 and make it const. When a single-step decays to a continue,
384 clear 'step', not 'hw_step'. Pass whether the caller wanted
385 to step to user_visible_resume_ptid, not what we ask the
388 2014-05-29 Pedro Alves <palves@redhat.com>
390 * infrun.c (process_event_stop_test, handle_step_into_function)
391 (handle_step_into_function_backward): Adjust.
392 Don't set the even thread's stop_step and call stop_waiting before
393 calling end_stepping_range. Instead do that ...
394 (end_stepping_range): ... here. Take an ecs pointer parameter.
396 2014-05-29 Pedro Alves <palves@redhat.com>
398 * infrun.c (stop_stepping): Rename to ...
399 (stop_waiting): ... this.
400 (proceed): Update comment.
401 (process_event_stop_test, handle_inferior_event)
402 (handle_signal_stop, handle_step_into_function)
403 (handle_step_into_function_backward): Update.
405 2014-05-29 Pedro Alves <palves@redhat.com>
407 * infcall.c (run_inferior_call): Don't check whether the current
408 thread is running after the proceed call.
410 2014-05-29 Pedro Alves <palves@redhat.com>
411 Tom Tromey <tromey@redhat.com>
413 * NEWS: Mention "maint set target-async", "set mi-async", and that
414 background execution commands are now always available.
415 * target.h (target_async_permitted): Update comment.
416 * target.c (target_async_permitted, target_async_permitted_1):
418 (set_target_async_command): Rename to ...
419 (maint_set_target_async_command): ... this.
420 (show_target_async_command): Rename to ...
421 (maint_show_target_async_command): ... this.
422 (_initialize_target): Adjust.
423 * infcmd.c (prepare_execution_command): Make extern.
424 * inferior.h (prepare_execution_command): Declare.
425 * infrun.c (set_observer_mode): Leave target async alone.
426 * mi/mi-interp.c (mi_interpreter_init): Install
427 mi_on_sync_execution_done as sync_execution_done observer.
428 (mi_on_sync_execution_done): New function.
429 (mi_execute_command_input_handler): Don't print the prompt if we
430 just started a synchronous command with an async target.
431 (mi_on_resume): Check sync_execution before printing prompt.
432 * mi/mi-main.h (mi_async_p): Declare.
433 * mi/mi-main.c: Include gdbcmd.h.
434 (mi_async_p): New function.
435 (mi_async, mi_async_1): New globals.
436 (set_mi_async_command, show_mi_async_command, mi_async): New
438 (exec_continue): Call prepare_execution_command.
439 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
440 (mi_execute_async_cli_command): Use mi_async_p.
441 (_initialize_mi_main): Install "set mi-async". Make
442 "target-async" a deprecated alias.
444 2014-05-29 Pedro Alves <palves@redhat.com>
446 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
447 (_initialize_cli_interp): Adjust.
448 * event-loop.c: Include "observer.h".
449 (start_event_loop): Notify 'command_error' observers instead of
450 calling display_gdb_prompt. Remove FIXME comment.
451 * event-top.c (display_gdb_prompt): Remove call into the
453 * inf-loop.c: Include "observer.h".
454 (inferior_event_handler): Notify 'command_error' observers instead
455 of calling display_gdb_prompt.
456 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
457 observers instead of calling display_gdb_prompt.
458 * interps.c (interp_set): Don't call display_gdb_prompt.
459 (current_interp_display_prompt_p): Delete.
460 * interps.h (interp_prompt_p): Delete declaration.
461 (interp_prompt_p_ftype): Delete.
462 (struct interp_procs) <prompt_proc_p>: Delete field.
463 (current_interp_display_prompt_p): Delete declaration.
464 * mi-interp.c (mi_interpreter_prompt_p): Delete.
465 (_initialize_mi_interp): Adjust.
466 * tui-interp.c (tui_init): Install 'sync_execution_done' and
467 'command_error' observers.
468 (tui_on_sync_execution_done, tui_on_command_error): New
470 (tui_display_prompt_p): Delete.
471 (_initialize_tui_interp): Adjust.
473 2014-05-29 Pedro Alves <palves@redhat.com>
476 * cli/cli-interp.c: Include infrun.h and observer.h.
477 (cli_uiout, cli_interp): New globals.
478 (cli_on_signal_received, cli_on_end_stepping_range)
479 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
481 (cli_interpreter_init): Install them as 'end_stepping_range',
482 'signal_received' 'signal_exited', 'exited' and 'no_history'
484 (_initialize_cli_interp): Remove cli_interp local.
485 * infrun.c (handle_inferior_event): Call the several stop reason
486 observers instead of printing the stop reason directly.
487 (end_stepping_range): New function.
488 (print_end_stepping_range_reason, print_signal_exited_reason)
489 (print_exited_reason, print_signal_received_reason)
490 (print_no_history_reason): Make static, and add an uiout
491 parameter. Print to that instead of to CURRENT_UIOUT.
492 * infrun.h (print_end_stepping_range_reason)
493 (print_signal_exited_reason, print_exited_reason)
494 (print_signal_received_reason print_no_history_reason): New
496 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
498 <cli_uiout>: New field.
499 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
500 uiout for CLI output. Install 'signal_received',
501 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
503 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
504 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
505 (mi_on_no_history): New functions.
506 (ui_out_free_cleanup): Delete function.
507 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
508 instead use the one already stored in the MI interpreter data.
510 * tui/tui-interp.c: Include infrun.h and observer.h.
511 (tui_interp): New global.
512 (tui_on_signal_received, tui_on_end_stepping_range)
513 (tui_on_signal_exited, tui_on_exited)
514 (tui_on_no_history): New functions.
515 (tui_init): Install them as 'end_stepping_range',
516 'signal_received' 'signal_exited', 'exited' and 'no_history'
518 (_initialize_tui_interp): Delete tui_interp local.
520 2014-05-29 Pedro Alves <palves@redhat.com>
523 * linux-nat.c (linux_nat_resume_callback): Rename the second
524 parameter to 'except'. Skip LP if it points to EXCEPT.
525 (linux_nat_resume): Don't mark the event lwp as not stopped
526 before resuming sibling lwps. Instead ask
527 linux_nat_resume_callback to skip the event lwp. Mark it as not
528 stopped after actually resuming it.
529 (linux_handle_syscall_trap): Mark the lwp as not stopped after
531 (wait_lwp): Mark the lwp as stopped here.
532 (stop_wait_callback): Mark the lwp as not stopped right after
533 resuming it. Don't mark lwps as stopped here.
534 (linux_nat_filter_event): Mark the lwp as stopped earlier.
535 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
537 2014-05-29 Pedro Alves <palves@redhat.com>
540 * infrun.c (resume): Determine how much to resume depending on
541 whether the caller wanted a step, not whether we can hardware step
542 the target. Mark all threads that we intend to run as running,
543 unless we're calling an inferior function.
544 (normal_stop): If the thread is running an infcall, don't finish
546 * target.c (target_resume): Don't mark threads as running here.
548 2014-05-28 Joel Brobecker <brobecker@adacore.com>
550 * serial.c (_initialize_serial): Remove support for
551 the "set remotebaud" and "show remotebaud" commands.
552 * NEWS: Add entry documenting the removal of that command.
554 2014-05-28 Yao Qi <yao@codesourcery.com>
556 * charset.c: Fix typo in comments.
558 2014-05-27 Gary Benson <gbenson@redhat.com>
560 * utils.c (internal_vproblem): Prompt for a bug report.
562 2014-05-26 Andy Wingo <wingo@igalia.com>
564 * guile/scm-arch.c (arscm_mark_arch_smob):
565 * guile/scm-block.c (bkscm_mark_block_smob)
566 (bkscm_mark_block_syms_progress_smob):
567 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
568 * guile/scm-exception.c (exscm_mark_exception_smob):
569 * guile/scm-frame.c (frscm_mark_frame_smob):
570 * guile/scm-iterator.c (itscm_mark_iterator_smob):
571 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
572 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
573 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
574 (ppscm_mark_pretty_printer_worker_smob):
575 * guile/scm-symbol.c (syscm_mark_symbol_smob):
576 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
577 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
578 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
580 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
583 2014-05-26 Andy Wingo <wingo@igalia.com>
584 Doug Evans <xdje42@gmail.com>
586 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
587 empty_base_class. All uses updated.
588 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
589 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
591 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
592 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
593 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
594 (gdbscm_gsmob_has_property_p, add_property_name)
595 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
596 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
597 (gdb-object-has-property?, gdb-object-properties): Remove.
598 (gdb-object-kind): Renamed from gsmob-kind.
600 2014-05-26 Andy Wingo <wingo@igalia.com>
602 * configure.ac (try_guile_versions): Allow building with guile 2.2.
603 * configure: Regenerate.
605 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
607 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
609 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
611 * record-btrace.c (record_btrace_allow_memory_access): Remove.
612 (replay_memory_access_read_only, replay_memory_access_read_write)
613 (replay_memory_access_types, replay_memory_access)
614 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
615 (cmd_set_record_btrace, cmd_show_record_btrace)
616 (cmd_show_replay_memory_access): New.
617 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
618 (record_btrace_remove_breakpoint): Replace
619 record_btrace_allow_memory_access with replay_memory_access.
620 (_initialize_record_btrace): Add commands.
623 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
625 * aarch64-linux-nat.c (asm/ptrace.h): Include.
627 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
629 * MAINTAINERS (Write After Approval): Move self back from
632 2014-05-22 Pedro Alves <palves@redhat.com>
634 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
635 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
636 (disable_randomization, enum exec_direction_kind)
637 (execution_direction, stop_registers, start_remote)
638 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
639 (wait_for_inferior, normal_stop, get_last_target_status)
640 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
641 (insert_step_resume_breakpoint_at_sal)
642 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
643 (set_step_info, print_stop_event, signal_stop_state)
644 (signal_print_state, signal_pass_state, signal_stop_update)
645 (signal_print_update, signal_pass_update)
646 (update_signals_program_target, clear_exit_convenience_vars)
647 (displaced_step_dump_bytes, update_observer_mode)
648 (signal_catch_update, gdb_signal_from_command): Move
650 * infrun.h: ... to this new file.
651 * amd64-tdep.c: Include infrun.h.
652 * annotate.c: Include infrun.h.
653 * arch-utils.c: Include infrun.h.
654 * arm-linux-tdep.c: Include infrun.h.
655 * arm-tdep.c: Include infrun.h.
656 * break-catch-sig.c: Include infrun.h.
657 * breakpoint.c: Include infrun.h.
658 * common/agent.c: Include infrun.h instead of inferior.h.
659 * corelow.c: Include infrun.h.
660 * event-top.c: Include infrun.h.
661 * go32-nat.c: Include infrun.h.
662 * i386-tdep.c: Include infrun.h.
663 * inf-loop.c: Include infrun.h.
664 * infcall.c: Include infrun.h.
665 * infcmd.c: Include infrun.h.
666 * infrun.c: Include infrun.h.
667 * linux-fork.c: Include infrun.h.
668 * linux-nat.c: Include infrun.h.
669 * linux-thread-db.c: Include infrun.h.
670 * monitor.c: Include infrun.h.
671 * nto-tdep.c: Include infrun.h.
672 * procfs.c: Include infrun.h.
673 * record-btrace.c: Include infrun.h.
674 * record-full.c: Include infrun.h.
675 * remote-m32r-sdi.c: Include infrun.h.
676 * remote-mips.c: Include infrun.h.
677 * remote-notif.c: Include infrun.h.
678 * remote-sim.c: Include infrun.h.
679 * remote.c: Include infrun.h.
680 * reverse.c: Include infrun.h.
681 * rs6000-tdep.c: Include infrun.h.
682 * s390-linux-tdep.c: Include infrun.h.
683 * solib-irix.c: Include infrun.h.
684 * solib-osf.c: Include infrun.h.
685 * solib-svr4.c: Include infrun.h.
686 * target.c: Include infrun.h.
687 * top.c: Include infrun.h.
688 * windows-nat.c: Include infrun.h.
689 * mi/mi-interp.c: Include infrun.h.
690 * mi/mi-main.c: Include infrun.h.
691 * python/py-threadevent.c: Include infrun.h.
693 2014-05-22 Pedro Alves <palves@redhat.com>
695 * infrun.c (handle_inferior_event): Store the exit code for
696 --return-child-result here, instead of ...
697 (print_exited_reason): ... here.
699 2014-05-21 Pedro Alves <palves@redhat.com>
702 * gdbthread.h (struct thread_control_state): New field
704 * infrun.c (follow_fork): Copy the new thread control field to the
706 (clear_proceed_status_thread): Clear the new thread control field.
707 (proceed): Set the new thread control field.
708 * interps.h (command_interp): Declare.
709 * interps.c (command_interpreter): New global.
710 (command_interp): New function.
711 (interp_exec): Set `command_interpreter' while here.
712 * cli-out.c (cli_uiout_dtor): New function.
713 (cli_ui_out_impl): Install it.
714 * mi/mi-interp.c: Include cli-out.h.
715 (mi_cmd_interpreter_exec): Add comment.
716 (restore_current_uiout_cleanup): New function.
717 (ui_out_free_cleanup): New function.
718 (mi_on_normal_stop): If finishing an execution command started by
719 a CLI command, or any kind of breakpoint-like event triggered,
720 print the stop event to the output (CLI) stream.
721 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
723 2014-05-21 Pedro Alves <palves@redhat.com>
725 * cli/cli-cmds.c (list_command): Handle the first "list" after the
726 current source line having changed.
727 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
728 * infrun.c (normal_stop): Adjust call to
729 set_current_sal_from_frame.
730 * source.c (clear_lines_listed_range): New function.
731 (set_current_source_symtab_and_line, identify_source_line): Clear
732 the lines listed range.
733 (line_info): Handle the first "info line" after the current source
735 * stack.c (print_stack_frame): Remove center handling.
736 (set_current_sal_from_frame): Remove 'center' parameter. Don't
739 2014-05-21 Pedro Alves <palves@redhat.com>
741 * inf-child.c (inf_child_mourn_inferior): New function.
742 * inf-child.h (inf_child_mourn_inferior): New declaration.
743 * darwin-nat.c (darwin_mourn_inferior): Use
744 inf_child_mourn_inferior.
745 * gnu-nat.c (gnu_mourn_inferior): Likewise.
746 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
747 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
748 * nto-procfs.c (procfs_mourn_inferior): Likewise.
749 * windows-nat.c (windows_mourn_inferior): Likewise.
751 2014-05-21 Doug Evans <xdje42@gmail.com>
753 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
755 2014-05-21 Doug Evans <xdje42@gmail.com>
757 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
758 (gdbscm_out_of_range_error): Ditto.
759 (gdbscm_memory_error): Ditto.
760 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
761 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
762 (gdbscm_out_of_range_error): Update.
763 (gdbscm_memory_error): Update.
764 (gdbscm_scm_to_target_string_unsafe): Delete.
766 2014-05-21 Pedro Alves <palves@redhat.com>
768 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
770 (inf_child_open_target): New function.
771 (inf_child_open): Use inf_child_open_target to push the target
772 instead of erroring out.
773 (inf_child_disconnect, inf_child_close)
774 (inf_child_maybe_unpush_target): New functions.
775 (inf_child_target): Install inf_child_disconnect and
776 inf_child_close. Store a pointer to the returned object.
777 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
779 * target.c (auto_connect_native_target): New global.
780 (show_default_run_target): New function.
781 (find_default_run_target): Return NULL if automatically connecting
782 to the native target is disabled.
783 (_initialize_target): Install set/show auto-connect-native-target.
784 * NEWS: Mention "set auto-connect-native-target", and "target
786 * linux-nat.c (super_close): New global.
787 (linux_nat_close): Call super_close.
788 (linux_nat_add_target): Store a pointer to the base class's
790 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
791 inf_child_maybe_unpush.
792 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
794 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
795 the inferior. Use inf_child_maybe_unpush_target.
796 (inf_ttrace_attach): Don't push the target if it is already
798 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
799 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
800 after mourning the inferior. Use inf_child_maybe_unpush_target.
801 (darwin_attach_pid): Don't push the target if it is already
803 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
804 mourning the inferior. Use inf_child_maybe_unpush_target.
805 (gnu_detach): Use inf_child_maybe_unpush_target.
806 * go32-nat.c (go32_create_inferior): Don't push the target if it
808 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
809 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
810 (procfs_open): Rename to ...
811 (procfs_open_1): ... this. Add target_ops parameter. Adjust
812 comments. Can target_preopen before changing node. Call
813 inf_child_open_target to push the target explicitly.
814 (procfs_attach): Don't push the target if it is already pushed.
815 (procfs_detach): Use inf_child_maybe_unpush_target.
816 (procfs_create_inferior): Don't push the target if it is already
818 (nto_native_ops): New global.
819 (procfs_open): Reimplement.
820 (procfs_native_open): New function.
821 (init_procfs_targets): Install procfs_native_open as to_open of
822 "target native". Store a pointer to the "native" target in
824 * procfs.c (procfs_attach): Don't push the target if it is already
826 (procfs_detach): Use inf_child_maybe_unpush_target.
827 (procfs_mourn_inferior): Only unpush the target after mourning the
828 inferior. Use inf_child_maybe_unpush_target.
829 (procfs_init_inferior): Don't push the target if it is already
831 * windows-nat.c (do_initial_windows_stuff): Don't push the target
832 if it is already pushed.
834 2014-05-21 Pedro Alves <palves@redhat.com>
836 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
837 and "procfs" targets are now called "native" instead.
839 2014-05-21 Pedro Alves <palves@redhat.com>
841 * go32-nat.c (go32_open): Delete.
842 (go32_target): Don't override the to_open method.
844 2014-05-21 Pedro Alves <palves@redhat.com>
846 * nto-procfs.c (procfs_can_run): New function.
847 (nto_procfs_ops): New global.
848 (init_procfs_targets): New, based on procfs_target. Install
849 "target native" in addition to "target procfs".
850 (_initialize_procfs): Call init_procfs_targets instead of adding
853 2014-05-21 Pedro Alves <palves@redhat.com>
855 * windows-nat.c (windows_target): Don't override to_shortname,
856 to_longname or to_doc.
858 2014-05-21 Pedro Alves <palves@redhat.com>
860 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
863 2014-05-21 Pedro Alves <palves@redhat.com>
865 * darwin-nat.c (_initialize_darwin_inferior): Don't override
866 to_shortname, to_longname or to_doc.
868 2014-05-21 Pedro Alves <palves@redhat.com>
870 * go32-nat.c (go32_target): Don't override to_shortname,
871 to_longname or to_doc.
873 2014-05-21 Pedro Alves <palves@redhat.com>
875 * inf-child.c (inf_child_open): Remove mention of "child".
876 (inf_child_target): Rename target to "native" instead of "child".
878 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
880 * Makefile.in (SFILES): Delete "regset.c".
881 (COMMON_OBS): Delete "regset.o".
883 * regset.h (regset_alloc): Delete prototype.
885 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
887 * sparc-linux-tdep.c (sparc32_linux_gregset)
888 (sparc32_linux_fpregset): New static regset structures.
889 (sparc32_linux_init_abi): Drop dynamic regset allocations.
890 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
892 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
893 (sparc64_linux_fpregset): New static regset structures.
894 (sparc64_linux_init_abi): Drop dynamic regset allocations.
895 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
896 New static regset structures.
897 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
898 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
899 New static regset structures.
900 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
901 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
902 New static regset structures.
903 (sparc64obsd_init_abi): Drop dynamic regset allocations.
904 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
905 New static regset structures.
906 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
908 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
910 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
911 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
912 register maps ("regmaps") from "*regset" to "*regmap". Do this
913 for all regmap types and variables.
914 * sparc-linux-tdep.c (sparc32_linux_step_trap)
915 (sparc32_linux_supply_core_gregset)
916 (sparc32_linux_collect_core_gregset)
917 (sparc32_linux_supply_core_fpregset)
918 (sparc32_linux_collect_core_fpregset): Likewise.
919 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
920 (sparc_gregmap, sparc_fpregmap): ... these.
921 (sparc_supply_gregset, sparc_collect_gregset)
922 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
923 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
924 (_initialize_sparc_nat): Rename regmaps.
925 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
926 (sparc_gregmap, sparc_fpregmap): ... these.
927 (sparc_supply_gregset, sparc_collect_gregset)
928 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
929 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
931 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
932 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
934 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
936 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
937 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
938 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
940 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
941 (sparc32_bsd_fpregset): Rename to...
942 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
943 (sparc32_bsd_fpregmap): ... these.
944 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
945 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
946 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
947 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
948 (struct sparc_gregmap, struct sparc_fpregmap)
949 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
950 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
951 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
952 (sparc32_supply_regset, sparc32_collect_gregset)
953 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
955 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
956 (sparc64_linux_ptrace_gregmap): ... this.
957 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
958 (_initialize_sparc64_linux_nat): Rename regmaps.
959 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
960 (sparc64_linux_core_gregmap): ... this.
961 (sparc64_linux_supply_core_gregset)
962 (sparc64_linux_collect_core_gregset)
963 (sparc64_linux_supply_core_fpregset)
964 (sparc64_linux_collect_core_fpregset): Rename regmaps.
965 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
966 (sparc64_sol2_fpregset): Rename to...
967 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
968 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
969 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
971 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
972 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
973 (sparc64_bsd_fpregset): Rename to...
974 (struct sparc_gregmap, sparc64_sol2_gregmap)
975 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
976 (sparc64_bsd_fpregmap): ... these.
977 (sparc64_supply_gregset, sparc64_collect_gregset)
978 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
980 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
981 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
982 (sparc64fbsd_gregmap): ... this.
983 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
984 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
986 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
987 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
988 (sparc64nbsd_collect_fpregset): Likewise.
989 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
990 (sparc64nbsd_gregmap): ... this.
991 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
993 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
994 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
995 (sparc64obsd_gregmap): ... this.
996 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
998 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
999 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1000 (sparc32nbsd_gregmap): ... this.
1001 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1004 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1006 * score-tdep.c (score7_linux_gregset): New static regset
1008 (score7_linux_regset_from_core_section): Remove dynamic regset
1010 (score_gdbarch_init): Drop allocation of tdep structure.
1011 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1013 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1015 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1017 (am33_regset_from_core_section): Remove dynamic regset
1020 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1022 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1023 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1025 (mips_linux_regset_from_core_section): Remove dynamic regset
1027 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1028 'gregset64', 'fpregset', and 'fpregset64'.
1029 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1030 deleted tdep fields.
1032 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1034 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1036 (amd64_regset_from_core_section): Remove dynamic regset
1038 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1040 (amd64obsd_regset_from_core_section): Remove dynamic regset
1042 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1044 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1045 x86-common regset supply function.
1046 * i386-tdep.c (i386_collect_gregset): Make static.
1047 (i386_gregset): New global regset structure.
1048 (i386_fpregset, i386_xstateregset): New static regset structures.
1049 (i386_regset_from_core_section): Remove dynamic regset
1051 (i386_gdbarch_init): Remove initialization of tdep fields
1052 'gregset', 'fpregset', and 'xstateregset'.
1053 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1054 'fpregset', and 'xstateregset'.
1055 (i386_collect_gregset): Remove prototype.
1056 (i386_gregset): New declaration.
1057 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1059 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1062 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1064 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1065 (arm_linux_vfpregset): New static regset structures.
1066 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1068 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1069 and 'vfpregset' fields.
1071 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1073 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1074 (aarch64_linux_fpregset): New static regset structures.
1075 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1076 of regset structures.
1077 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1080 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1082 * regset.h (struct regset): Remove gdbarch field.
1083 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1084 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1085 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1087 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1088 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1089 (ppc32_linux_vsxregset): Likewise.
1090 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1091 via the regcache instead of the regset.
1092 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1093 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1094 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1095 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1098 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1100 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1101 Constify structures.
1102 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1103 (alphanbsd_aout_gregset): Likewise.
1104 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1105 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1107 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1108 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1110 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1111 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1112 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1113 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1114 * m88k-tdep.c (m88k_gregset): Likewise.
1115 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1116 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1117 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1118 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1119 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1120 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1121 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1122 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1123 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1125 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1126 * sh-tdep.h (sh_corefile_gregset): Likewise.
1127 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1128 * vax-tdep.c (vax_gregset): Likewise.
1130 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1132 Fix TLS access for -static -pthread.
1133 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1134 (try_thread_db_load_1): Initialize it.
1135 (thread_db_get_thread_local_address): Call it if LM is zero.
1136 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1137 * target.h (struct target_ops) (to_get_thread_local_address): Add
1138 load_module_addr comment.
1140 2014-05-21 Pedro Alves <palves@redhat.com>
1142 * dcache.c (dcache_read_memory_partial): If reading the cache line
1143 fails, fallback to reading just the memory the caller wanted.
1145 2014-05-20 Doug Evans <dje@google.com>
1147 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1148 instead of get_current_arch.
1150 2014-05-20 Pedro Alves <palves@redhat.com>
1152 * NEWS: Mention that compare-sections now works with all targets.
1154 * remote.c (PACKET_qCRC): New enum value.
1155 (remote_verify_memory): Don't send qCRC if the target has no
1156 execution. Use packet_support/packet_ok. If the target doesn't
1157 support the qCRC packet, fallback to a deep memory copy.
1158 (compare_sections_command): Say "target image" instead of "remote
1160 (_initialize_remote): Add PACKET_qCRC to the list of config
1161 packets that have no associated command. Extend comment.
1162 * target.c (simple_verify_memory, default_verify_memory): New
1164 * target.h (struct target_ops) <to_verify_memory>: Default to
1165 default_verify_memory.
1166 (simple_verify_memory): New declaration.
1167 * target-delegates.c: Regenerate.
1169 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1171 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1173 2014-05-20 Hui Zhu <hui@codesourcery.com>
1174 Yao Qi <yao@codesourcery.com>
1177 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1178 and change address of sp and pc.
1180 2014-05-19 Tom Tromey <tromey@redhat.com>
1182 * gdbtypes.c (rank_function): Use XNEWVEC.
1183 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1185 2014-05-19 Doug Evans <dje@google.com>
1187 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1188 build_type_unit_groups and moved closer to only caller. Remove
1189 arguments. All references updated. Remove outdated .gdb_index
1191 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1192 build_type_psymtabs_1.
1194 2014-05-19 Doug Evans <dje@google.com>
1196 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1197 n_type_unit_groups, all_type_unit_groups. All uses removed.
1198 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1199 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1200 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1201 (add_type_unit_group_to_table): Delete.
1203 2014-05-19 Doug Evans <dje@google.com>
1205 * eval.c (evaluate_subexp_standard): Add some comments.
1207 2014-05-17 Doug Evans <xdje42@gmail.com>
1209 * progspace.c (remove_program_space): Delete, unused.
1210 * progspace.h (remove_program_space): Ditto.
1212 2014-05-17 Doug Evans <xdje42@gmail.com>
1214 * inferior.c (prune_inferiors): Fix comment.
1215 (remove_inferior_command): Call prune_program_spaces.
1217 2014-05-16 Doug Evans <dje@google.com>
1219 New command line option -D.
1221 * main.c (set_gdb_data_directory): New function.
1222 (captured_main): Recognize -D. Flag error for --data-directory "".
1223 Call set_gdb_data_directory.
1224 (print_gdb_help): Print --data-directory, -D.
1225 * main.h (set_gdb_data_directory): Declare.
1226 * top.c (staged_gdb_datadir): New static global.
1227 (set_gdb_datadir): Call set_gdb_data_directory
1228 (show_gdb_datadir): New function.
1229 (init_main): Update init of data-directory parameter.
1231 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1233 Import the "dirfd" gnulib module.
1234 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1235 * gnulib/aclocal.m4: Update.
1236 * gnulib/config.in: Update.
1237 * gnulib/configure: Update.
1238 * gnulib/import/Makefile.am: Update.
1239 * gnulib/import/Makefile.in: Update.
1240 * gnulib/import/dirfd.c: New.
1241 * gnulib/import/m4/dirfd.m4: New.
1242 * gnulib/import/m4/gnulib-cache.m4: Update.
1243 * gnulib/import/m4/gnulib-comp.m4: Update.
1245 2014-05-16 Pierre Muller <muller@sourceware.org>
1246 Yao Qi <yao@codesourcery.com>
1248 * valprint.c (print_wchar): Move the code on checking whether
1249 W is a printable wide char to the default branch of switch
1250 statement below. Call wchar_printable instead of gdb_iswprint.
1252 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1254 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1255 ldr.w and ldrd instructions.
1257 2014-05-15 Doug Evans <dje@google.com>
1259 * dwarf2read.c (read_structure_type): Delete outdated comments.
1261 2014-05-14 Tom Tromey <tromey@redhat.com>
1263 * macrocmd.c (print_macro_definition): Reindent.
1265 2014-05-13 Doug Evans <xdje42@gmail.com>
1267 * python/py-cmd.c (cmdpy_completer): Add comment.
1268 (completers): Make const.
1270 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1272 * infrun.c (resume): Remove should_resume (unused). Move up
1273 declaration of resume_ptid.
1275 2014-05-13 Tom Tromey <tromey@redhat.com>
1277 * language.h (unop_type_check): Remove.
1278 (binop_type_check): Don't declare.
1280 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1282 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1283 call to regcache_raw_collect.
1285 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1287 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1288 mi_console->quote as the quoting character.
1290 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1292 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1294 2014-04-29 Tom Tromey <tromey@redhat.com>
1296 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1297 "show debug varobj".
1299 2014-05-07 Kyle McMartin <kyle@redhat.com>
1301 Pushed by Joel Brobecker <brobecker@adacore.com>.
1302 * aarch64-tdep.c (aarch64_software_single_step): New function.
1303 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1304 with aarch64_software_single_step.
1306 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1310 2014-05-05 Keith Seitz <keiths@redhat.com>
1312 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1313 variable or history value is successfully parsed.
1315 2014-05-05 Yao Qi <yao@codesourcery.com>
1316 Pedro Alves <palves@redhat.com>
1318 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1319 address of blocks that intersects the requested range. Trim
1320 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1322 * ctf.c (ctf_xfer_partial): Likewise.
1324 2014-05-05 Yao Qi <yao@codesourcery.com>
1326 * printcmd.c (display_command): Remove the check to
1327 target_has_execution.
1329 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1331 * ppcobsd-nat.c: Include "obsd-nat.h".
1332 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1334 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1336 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1338 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1339 and 16-bit signed and unsigned arguments. Update comment.
1340 (stap_parse_probe_arguments): Extend code to handle such
1341 arguments. Use warning instead of complaint to notify about
1342 unrecognized bitness.
1344 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1346 PR breakpoints/16889
1347 * stap-probe.c (stap_parse_probe_arguments): Simplify
1348 check for non-prefixed probes (i.e., probes whose
1349 arguments do not start with "N@"). Always set the
1350 argument type to a sane value.
1352 2014-05-01 David Taylor <dtaylor@emc.com>
1354 * remote.c (compare_sections_command): Add -r option to compare
1355 all loadable read-only sections.
1357 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1359 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1360 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1362 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1363 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1364 Remove unused CORE_ADDR argument. Update all callers.
1366 2014-04-29 Pedro Alves <palves@redhat.com>
1368 * remote.c (struct packet_config) <detect>: Extend comment.
1369 (add_packet_config_cmd): Don't set the config's detect or support
1371 (init_all_packet_configs): Also initialize the config's 'detect'
1373 (reset_all_packet_configs_support): New function.
1374 (remote_open_1): Call reset_all_packet_configs_support instead of
1375 init_all_packet_configs.
1376 (_initialize_remote): Initialize all packet configs. Assert that
1377 all packets have an associated command, except a few known
1380 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1382 * dwarf2read.c (read_subrange_type): Handle dynamic
1383 DW_AT_lower_bound attributes.
1385 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1387 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1388 dynamic bounds before computing its upper bound.
1389 (ada_discrete_type_low_bound): Same as above with the lower bound.
1391 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1393 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1394 range types. Adjust the array handling implementation to
1395 take advantage of this change.
1396 (resolve_dynamic_range): New function, mostly extracted from
1397 resolve_dynamic_bounds.
1398 (resolve_dynamic_array): New function, mostly extracted from
1399 resolve_dynamic_bounds.
1400 (resolve_dynamic_bounds): Delete.
1401 (resolve_dynamic_type): Reimplement. Add handling of
1402 TYPE_CODE_RANGE types.
1404 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1406 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1407 handling of parallel ___XA types.
1409 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1411 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1412 unnecessary second call to static_unwrap_type.
1414 2014-04-27 Hui Zhu <hui@codesourcery.com>
1416 * stack.c (print_frame_info): Call do_gdb_disassembly with
1417 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1419 2014-04-26 Doug Evans <xdje42@gmail.com>
1421 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1423 2014-04-25 Pedro Alves <palves@redhat.com>
1426 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1427 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1428 and newline from built string.
1429 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1430 (linux_ptrace_attach_fail_reason): ... this.
1431 * linux-nat.c (linux_nat_attach): Adjust to use
1432 linux_ptrace_attach_fail_reason.
1434 2014-04-25 Pedro Alves <palves@redhat.com>
1436 * remote.c (struct remote_state): Remove multi_process_aware,
1437 non_stop_aware, cond_tracepoints, cond_breakpoints,
1438 breakpoint_commands, fast_tracepoints, static_tracepoints,
1439 install_in_trace, disconnected_tracing,
1440 enable_disable_tracepoints, string_tracing, and
1441 augmented_libraries_svr4_read fields.
1442 (remote_multi_process_p): Move further below in the file.
1443 (struct packet_config): Add comments.
1444 (update_packet_config): Delete function.
1445 (show_packet_config_cmd): Use packet_config_support.
1446 (add_packet_config_cmd): Use NULL as set callback.
1447 (packet_ok): "set remote foo-packet"-style commands no longer
1448 change config->supported -- adjust.
1449 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1450 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1451 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1452 (PACKET_QNonStop, PACKET_multiprocess_feature)
1453 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1454 (PACKET_DisconnectedTracing_feature)
1455 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1456 (set_remote_protocol_packet_cmd): Delete function.
1457 (packet_config_support, packet_support): New functions.
1458 (set_remote_protocol_Z_packet_cmd): Don't call
1459 update_packet_config.
1460 (remote_query_attached, remote_pass_signals)
1461 (remote_program_signals, remote_threads_info)
1462 (remote_threads_extra_info, remote_start_remote): Use
1464 (remote_start_remote): Use packet_config_support and
1466 (init_all_packet_configs): Set all packets to unknown support,
1467 instead of calling update_packet_config.
1468 (remote_check_symbols): Use packet_support.
1469 (remote_supported_packet): Unconditionally set the packet config's
1471 (remote_multi_process_feature, remote_non_stop_feature)
1472 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1473 (remote_breakpoint_commands_feature)
1474 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1475 (remote_install_in_trace_feature)
1476 (remote_disconnected_tracing_feature)
1477 (remote_enable_disable_tracepoint_feature)
1478 (remote_string_tracing_feature)
1479 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1480 (remote_protocol_features): Adjust to use remote_supported_packet
1481 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1482 "ConditionalTracepoints", "ConditionalBreakpoints",
1483 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1484 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1485 "EnableDisableTracepoints", and "tracenz".
1486 (remote_query_supported): Use packet_support.
1487 (remote_open_1): Adjust.
1488 (extended_remote_attach_1): Use packet_support. Switch on the
1489 result of packet_ok instead of checking whether the packet ended
1491 (remote_vcont_resume): Use packet_support.
1492 (remote_resume, remote_stop_ns, fetch_register_using_p)
1493 (remote_prepare_to_store, store_register_using_P)
1494 (check_binary_download, remote_write_bytes): Use packet_support.
1495 (remote_vkill): Use packet_support. Switch on the result of
1496 packet_ok instead of checking whether the packet ended up
1498 (extended_remote_supports_disable_randomization): Use
1500 (extended_remote_run): Switch on the result of packet_ok instead
1501 of checking whether the packet ended up disabled.
1502 (remote_insert_breakpoint, remote_remove_breakpoint)
1503 (remote_insert_watchpoint, remote_remove_watchpoint)
1504 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1506 (remote_search_memory): Use packet_config_support.
1507 (remote_get_thread_local_address, remote_get_tib_address)
1508 (remote_hostio_send_command, remote_can_execute_reverse): Use
1510 (remote_supports_cond_tracepoints)
1511 (remote_supports_cond_breakpoints)
1512 (remote_supports_fast_tracepoints)
1513 (remote_supports_static_tracepoints)
1514 (remote_supports_install_in_trace)
1515 (remote_supports_enable_disable_tracepoint)
1516 (remote_supports_string_tracing)
1517 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1518 the packet config says the feature is enabled or disabled.
1519 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1520 (remote_get_trace_status): Use packet_support.
1521 (remote_set_disconnected_tracing): Adjust to check whether the
1522 feature is enabled with packet_support.
1523 (remote_set_trace_buffer_size, remote_use_agent)
1524 (remote_can_use_agent, remote_supports_btrace): Use
1526 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1527 Use packet_config_support.
1528 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1529 the packet config says the feature is enabled or disabled.
1530 (set_range_stepping): Use packet_support.
1532 2014-04-25 Tom Tromey <tromey@redhat.com>
1534 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1537 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1539 * NEWS: Mention support for C99 variable length arrays.
1541 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1543 * ada-lang.c (standard_exc): Expand introductory comment.
1545 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1546 Walfred Tedeschi <walfred.tedeschi@intel.com>
1548 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1550 (amd64_linux_read_description): Add code to handle AVX512 xstate
1551 mask and return respective tdesc.
1552 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1553 and features/i386/x32-avx512-linux.c.
1554 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1555 (amd64_linux_core_read_description): Add code to handle AVX512
1556 xstate mask and return respective tdesc.
1557 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1558 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1560 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1561 (tdesc_amd64_avx512_linux): New prototype.
1562 (tdesc_x32_avx512_linux): Likewise.
1563 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1564 features/i386/x32-avx512.c.
1565 (amd64_ymm_avx512_names): New register names for pseudo
1567 (amd64_ymmh_avx512_names): New register names for raw registers
1569 (amd64_k_names): New register names for K registers.
1570 (amd64_zmmh_names): New register names for ZMM raw registers.
1571 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1572 (amd64_xmm_avx512_names): New register names for XMM16-31
1574 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1576 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1577 if feature is present.
1578 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1579 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1580 (AMD64_NUM_REGS): Adjust to new number of registers.
1581 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1582 registers supplied via XSTATE by AVX512 registers.
1583 (i386_linux_read_description): Add case for AVX512.
1584 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1585 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1586 (i386_linux_core_read_description): Add case for AVX512.
1587 (i386_linux_init_abi): Install supported register note section
1589 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1591 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1592 registers to be number of zmm7h + 1.
1593 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1594 * i386-tdep.c: Include features/i386/i386-avx512.c.
1595 (i386_zmm_names): Add ZMM pseudo register names array.
1596 (i386_zmmh_names): Add ZMM raw register names array.
1597 (i386_k_names): Add K raw register names array.
1598 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1599 registers. AVX512 has 16 more ZMM registers than there are YMM
1601 (i386_zmmh_regnum_p): Add function to look up register number of
1603 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1604 (i386_k_regnum_p): Likewise for K raw registers.
1605 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1606 registers added by AVX512.
1607 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1608 registers added by AVX512.
1609 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1611 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1612 (i386_pseudo_register_name): Add ZMM pseudo registers.
1613 (i386_zmm_type): Construct and return vector registers type for ZMM
1615 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1616 ZMM0-31 pseudo registers and K registers.
1617 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1618 and YMM16-31 registers from register cache.
1619 (i386_pseudo_register_write): Add code to write K, ZMM and
1621 (i386_register_reggroup_p): Add code to include/exclude AVX512
1622 registers in/from respective register groups.
1623 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1624 registers if feature is present in xcr0.
1625 (i386_gdbarch_init): Add code to initialize AVX512 feature
1626 variables in tdep structure, wire in pseudo registers and call
1627 initialize_tdesc_i386_avx512.
1628 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1630 (i386_regnum): Add AVX512 registers.
1631 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1632 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1633 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1634 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1636 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1637 (i386_ymm_avx512_regnum_p): Likewise.
1638 (i386_k_regnum_p): Likewise.
1639 (i386_zmm_regnum_p): Likewise.
1640 (i386_zmmh_regnum_p): Likewise.
1641 * i387-tdep.c : Update year in copyright notice.
1642 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1644 (XSAVE_YMM_AVX512_ADDR): New macro.
1645 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1647 (XSAVE_XMM_AVX512_ADDR): New macro.
1648 (xsave_avx512_k_offset): New table for K register offsets in
1650 (XSAVE_AVX512_K_ADDR): New macro.
1651 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1653 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1654 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1656 (i387_collect_xsave): Add code to collect AVX512 registers from
1658 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1659 of XMM16-31 registers.
1660 (I387_NUM_K_REGS): New define for number of K registers.
1661 (I387_K0_REGNUM): New define for K0 register number.
1662 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1663 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1664 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1666 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1667 (I387_XMM16_REGNUM): New define for XMM16 register number.
1668 (I387_YMM0_REGNUM): New define for YMM0 register number.
1669 (I387_KEND_REGNUM): New define for last K register number.
1670 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1671 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1673 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1675 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1677 * features/Makefile: Add AVX512 related files.
1678 * features/i386/32bit-avx512.xml: New file.
1679 * features/i386/64bit-avx512.xml: Likewise.
1680 * features/i386/amd64-avx512-linux.c: Likewise.
1681 * features/i386/amd64-avx512-linux.xml: Likewise.
1682 * features/i386/amd64-avx512.c: Likewise.
1683 * features/i386/amd64-avx512.xml: Likewise.
1684 * features/i386/i386-avx512-linux.c: Likewise.
1685 * features/i386/i386-avx512-linux.xml: Likewise.
1686 * features/i386/i386-avx512.c: Likewise.
1687 * features/i386/i386-avx512.xml: Likewise.
1688 * features/i386/x32-avx512-linux.c: Likewise.
1689 * features/i386/x32-avx512-linux.xml: Likewise.
1690 * features/i386/x32-avx512.c: Likewise.
1691 * features/i386/x32-avx512.xml: Likewise.
1692 * regformats/i386/amd64-avx512-linux.dat: New file.
1693 * regformats/i386/amd64-avx512.dat: Likewise.
1694 * regformats/i386/i386-avx512-linux.dat: Likewise.
1695 * regformats/i386/i386-avx512.dat: Likewise.
1696 * regformats/i386/x32-avx512-linux.dat: Likewise.
1697 * regformats/i386/x32-avx512.dat: Likewise.
1698 * NEWS: Add note about new support for AVX512.
1701 2014-04-23 Pedro Alves <palves@redhat.com>
1703 * breakpoint.c (insert_bp_location): Tolerate errors if the
1704 breakpoint is set in a user-loaded objfile.
1705 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1706 location is marked shlib_disabled. If the breakpoint is set in a
1707 user-loaded objfile is a GDB-side memory breakpoint, validate it
1708 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1709 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1711 * mem-break.c (memory_validate_breakpoint): New function.
1712 * objfiles.c (userloaded_objfile_contains_address_p): New
1714 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1715 * target.h (memory_validate_breakpoint): New declaration.
1717 2014-04-23 Pedro Alves <palves@redhat.com>
1719 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1720 the breakpoint is set in a shared library, only suppress
1721 errors for software breakpoints, not hardware breakpoints.
1723 2014-04-22 Pedro Alves <palves@redhat.com>
1725 * infrun.c (schedlock_applies): New function, factored out from
1726 find_thread_needs_step_over.
1727 (find_thread_needs_step_over): Use it.
1728 (switch_back_to_stepped_thread): Always clear trap_expected if the
1729 step over is finished. Return early if scheduler locking applies.
1730 Look for the stepping thread and a potential step-over thread with
1732 (currently_stepping_or_nexting_callback): Delete.
1734 2014-04-22 Nick Clifton <nickc@redhat.com>
1736 * NEWS: Mention that ARM sim now supports tracing.
1738 2014-04-22 Yao Qi <yao@codesourcery.com>
1740 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1742 * tracefile.c (tracefile_fetch_registers): ... it. New
1744 * tracefile.h (tracefile_fetch_registers): Declare.
1745 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1746 tracefile_fetch_registers.
1748 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1751 * windows-nat.c (thread_rec): Don't display a warning when
1752 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1753 fails for any reason, set th->suspended to -1, so that we don't
1754 try to resume such a thread. Also, don't return NULL in these
1755 cases, to avoid completely ruin the session due to "PC register is
1756 not available" error.
1757 (do_windows_fetch_inferior_registers): Check errors in
1758 GetThreadContext call.
1759 (windows_continue): Accept an additional argument KILLED; if not
1760 zero, ignore errors in the SetThreadContext call, since the
1761 inferior was killed and is shutting down.
1762 (windows_resume, get_windows_debug_event)
1763 (windows_create_inferior, windows_mourn_inferior)
1764 (windows_kill_inferior): All callers of windows_continue changed
1765 to adjust to its new calling sequence.
1767 2014-04-19 Yao Qi <yao@codesourcery.com>
1769 * ctf.c (ctf_open): Call post_create_inferior.
1771 2014-04-19 Yao Qi <yao@codesourcery.com>
1773 * ctf.c (handle_id): New static variable.
1774 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1775 value. Get the declaration of event "register" and get length
1776 of field "contents".
1778 2014-04-19 Yao Qi <yao@codesourcery.com>
1780 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1782 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1784 * valops.c (oload_method_static): Remove unnecessary argument
1785 METHOD. Update all callers.
1787 2014-04-18 Pedro alves <palves@redhat.com>
1788 Tom Tromey <tromey@redhat.com>
1791 * frame.c (get_prev_frame_1): Rename to ...
1792 (get_prev_frame_always): ... this, and make extern. Adjust.
1793 (skip_artificial_frames): Use get_prev_frame_always.
1794 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1795 (get_frame_unwind_stop_reason): Adjust to rename.
1796 * frame.h (get_prev_frame_always): Declare.
1797 * inline-frame.c: Include frame.h.
1798 (inline_frame_this_id): Use get_prev_frame_always.
1800 2014-04-18 Tristan Gingold <gingold@adacore.com>
1802 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1803 code by using bfd_mach_o_get_base_address.
1805 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1807 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1808 (spu_ax_pseudo_register_collect): New function.
1809 (spu_ax_pseudo_register_push_stack): Likewise.
1810 (spu_dwarf_reg_to_regnum): Likewise.
1811 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1813 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1815 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1816 Replace FRAME argument with FRAME_ID.
1817 * gdbarch.c, gdbarch.h: Regenerate.
1818 * findvar.c (default_value_from_register): Add GDBARCH argument;
1819 replace FRAME by FRAME_ID. No longer call get_frame_id.
1820 (value_from_register): Update call to gdbarch_value_from_register.
1821 * value.h (default_value_from_register): Update prototype.
1822 * s390-linux-tdep.c (s390_value_from_register): Update interface
1823 and call to default_value_from_register.
1824 * spu-tdep.c (spu_value_from_register): Likewise.
1826 * findvar.c (address_from_register): Remove TYPE argument.
1827 Do not call value_from_register; use gdbarch_value_from_register
1828 with null_frame_id instead.
1829 * value.h (address_from_register): Update prototype.
1830 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1831 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1832 address_from_register interface change.
1834 2014-04-17 Yao Qi <yao@codesourcery.com>
1836 * gdbtypes.h: Update comments to link to types and macros'
1839 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1841 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1843 2014-04-16 Keith Seitz <keiths@redhat.com>
1846 * dwarf2read.c (skip_one_die): Check that all relative-offset
1847 sibling DIEs fall within range of the current reader's buffer.
1848 (read_partial_die): Likewise.
1850 2014-04-16 Keith Seitz <keiths@redhat.com>
1853 * cp-namespace.c (lookup_symbol_file): If the type name of
1854 `this' is NULL, return immediately.
1856 2014-04-14 Keith Seitz <keiths@redhat.com>
1859 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1860 from symbol_matches_domain in symtab.c. All local callers
1861 of symbol_matches_domain updated.
1862 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1863 search STRUCT_DOMAIN.
1864 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1865 independently. standard_lookup will do that automatically.
1866 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1867 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1868 (cp_lookup_symbol_in_namespace): Likewise.
1869 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1870 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1871 may return a STRUCT_DOMAIN match.
1872 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1873 * cp-support.c: Include language.h.
1874 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1876 * psymtab.c (match_partial_symbol): Compare the requested
1877 domain with the symbol's domain directly.
1878 (lookup_partial_symbol): Likewise.
1879 * symtab.c (lookup_symbol_in_language): Explain when/why
1880 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1881 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1882 appropriate languages.
1883 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1884 and moved to ada-lang.c
1885 (lookup_block_symbol): Explain that this function only returns
1886 symbol matching the requested DOMAIN.
1887 Compare the requested domain with the symbol's domain directly.
1888 (iterate_over_symbols): Compare the requested domain with the
1889 symbol's domain directly.
1890 * symtab.h (symbol_matches_domain): Remove.
1892 2014-04-14 Tom Tromey <tromey@redhat.com>
1895 * c-exp.y (type_aggregate_p): New function.
1896 (qualified_name, classify_inner_name): Use it.
1897 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1898 and TYPE_TARGET_TYPE of an enum type.
1899 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1901 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1902 handle TYPE_DECLARED_CLASS.
1903 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1905 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1906 * valops.c (enum_constant_from_type): New function.
1907 (value_aggregate_elt): Use it.
1908 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1911 2014-04-14 Tom Tromey <tromey@redhat.com>
1913 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1914 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1916 * value.h (value_aggregate_elt): Update.
1918 2014-04-14 Tom Tromey <tromey@redhat.com>
1920 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1922 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1924 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1925 (evaluate_subexp_standard): Pass noside argument.
1926 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1927 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1928 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1929 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1930 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1932 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1934 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1935 points to a constant blob.
1937 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1939 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1940 property and store it as the high bound and flag the range accordingly.
1941 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1942 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1943 * gdbtypes.h (enum range_flags): New enum.
1944 (struct range_bounds): Add flags member.
1946 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1948 * c-typeprint.c (c_type_print_varspec_suffix): Added
1949 check for not yet resolved high bound. If unresolved, print
1950 "variable length" string to the console instead of random
1953 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1955 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1957 (ada_template_to_fixed_record_type_1): Likewise.
1958 (ada_to_fixed_type_1): Likewise.
1959 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1960 (cp_print_value): Likewise.
1961 * d-valprint.c (dynamic_array_type): Likewise.
1962 * findvar.c (address_of_variable): Likewise.
1963 * jv-valprint.c (java_value_print): Likewise.
1964 * valops.c (value_ind): Likewise.
1965 * value.c (coerce_ref): Likewise.
1967 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1969 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1970 value and retrieve the dynamic type size.
1972 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1974 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1975 passed to sizeof is dynamic evaluate the argument to compute the length.
1977 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1978 Joel Brobecker <brobecker@adacore.com>
1980 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1981 (dwarf2_evaluate_property): New function.
1982 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1983 * dwarf2read.c (attr_to_dynamic_prop): New function.
1984 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1986 * gdbtypes.c: Include dwarf2loc.h.
1987 (is_dynamic_type): New function.
1988 (resolve_dynamic_type): New function.
1989 (resolve_dynamic_bounds): New function.
1990 (get_type_length): New function.
1991 (check_typedef): Use get_type_length to compute type length.
1992 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1993 (TYPE_LOW_BOUND_KIND): New macro.
1994 (is_dynamic_type): New function prototype.
1995 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1996 to resolve dynamic properties of the type. Update comment.
1997 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1999 2014-04-14 Richard Henderson <rth@redhat.com>
2001 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2003 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2004 Doug Evans <xdje42@gmail.com>
2006 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2007 dereference TYPE_CODE_REF values.
2009 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2011 Revert the following changes due to regressions:
2013 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2014 (dwarf2_evaluate_property): New function.
2015 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2016 * dwarf2read.c (attr_to_dynamic_prop): New function.
2017 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2019 * gdbtypes.c: Include dwarf2loc.h.
2020 (is_dynamic_type): New function.
2021 (resolve_dynamic_type): New function.
2022 (resolve_dynamic_bounds): New function.
2023 (get_type_length): New function.
2024 (check_typedef): Use get_type_length to compute type length.
2025 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2026 (TYPE_LOW_BOUND_KIND): New macro.
2027 (is_dynamic_type): New function prototype.
2028 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2029 to resolve dynamic properties of the type. Update comment.
2030 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2032 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2033 passed to sizeof is dynamic evaluate the argument to compute the length.
2035 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2036 value and retrieve the dynamic type size.
2038 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2039 (ada_template_to_fixed_record_type_1): Likewise.
2040 (ada_to_fixed_type_1): Likewise.
2041 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2042 (cp_print_value): Likewise.
2043 * d-valprint.c (dynamic_array_type): Likewise.
2044 * eval.c (evaluate_subexp_with_coercion): Likewise.
2045 * findvar.c (address_of_variable): Likewise.
2046 * jv-valprint.c (java_value_print): Likewise.
2047 * valops.c (value_ind): Likewise.
2048 * value.c (coerce_ref): Likewise.
2050 * c-typeprint.c (c_type_print_varspec_suffix): Added
2051 check for not yet resolved high bound. If unresolved, print
2052 "variable length" string to the console instead of random
2055 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2056 property and store it as the high bound and flag the range accordingly.
2057 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2058 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2059 * gdbtypes.h (enum range_flags): New enum.
2060 (struct range_bounds): Add flags member.
2062 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2063 points to a constant blob.
2065 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2066 (evaluate_subexp_standard): Pass noside argument.
2067 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2068 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2069 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2070 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2071 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2073 2014-04-11 Keith Seitz <keiths@redhat.com>
2076 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2077 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2080 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2082 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2083 (evaluate_subexp_standard): Pass noside argument.
2084 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2085 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2086 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2087 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2088 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2090 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2092 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2093 points to a constant blob.
2095 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2097 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2098 property and store it as the high bound and flag the range accordingly.
2099 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2100 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2101 * gdbtypes.h (enum range_flags): New enum.
2102 (struct range_bounds): Add flags member.
2104 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2106 * c-typeprint.c (c_type_print_varspec_suffix): Added
2107 check for not yet resolved high bound. If unresolved, print
2108 "variable length" string to the console instead of random
2111 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2113 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2114 (ada_template_to_fixed_record_type_1): Likewise.
2115 (ada_to_fixed_type_1): Likewise.
2116 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2117 (cp_print_value): Likewise.
2118 * d-valprint.c (dynamic_array_type): Likewise.
2119 * eval.c (evaluate_subexp_with_coercion): Likewise.
2120 * findvar.c (address_of_variable): Likewise.
2121 * jv-valprint.c (java_value_print): Likewise.
2122 * valops.c (value_ind): Likewise.
2123 * value.c (coerce_ref): Likewise.
2125 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2127 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2128 value and retrieve the dynamic type size.
2130 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2132 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2133 passed to sizeof is dynamic evaluate the argument to compute the length.
2135 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2137 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2138 (dwarf2_evaluate_property): New function.
2139 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2140 * dwarf2read.c (attr_to_dynamic_prop): New function.
2141 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2143 * gdbtypes.c: Include dwarf2loc.h.
2144 (is_dynamic_type): New function.
2145 (resolve_dynamic_type): New function.
2146 (resolve_dynamic_bounds): New function.
2147 (get_type_length): New function.
2148 (check_typedef): Use get_type_length to compute type length.
2149 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2150 (TYPE_LOW_BOUND_KIND): New macro.
2151 (is_dynamic_type): New function prototype.
2152 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2153 to resolve dynamic properties of the type. Update comment.
2154 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2156 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2158 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2159 declaring high/low bounds and change uses accordingly. Call
2160 create_range_type instead of create_static_range_type.
2161 * gdbtypes.c (create_range_type): New function.
2162 (create_range_type): Convert bounds into struct bound_prop and pass
2163 them to create_range_type.
2164 * gdbtypes.h (struct bound_prop): New struct.
2165 (create_range_type): New function prototype.
2166 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2167 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2168 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2170 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2172 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2174 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2175 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2176 * ada-lang.c: All uses of create_range_type updated.
2177 * coffread.c: All uses of create_range_type updated.
2178 * dwarf2read.c: All uses of create_range_type updated.
2179 * f-exp.y: All uses of create_range_type updated.
2180 * m2-valprint.c: All uses of create_range_type updated.
2181 * mdebugread.c: All uses of create_range_type updated.
2182 * stabsread.c: All uses of create_range_type updated.
2183 * valops.c: All uses of create_range_type updated.
2184 * valprint.c: All uses of create_range_type updated.
2186 2014-04-10 Pedro Alves <palves@redhat.com>
2188 * breakpoint.c (single_step_breakpoints)
2189 (single_step_gdbarch): Move up in the file.
2190 (one_breakpoint_xfer_memory): New function, factored out from ...
2191 (breakpoint_xfer_memory): ... here. Also process single-step
2194 2014-04-09 Tristan Gingold <gingold@adacore.com>
2196 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2198 (darwin_decode_exception_message): Free port only after use.
2200 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2202 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2203 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2204 when setting the size of call_length.
2206 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2208 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2209 dereference TYPE_CODE_REF values.
2211 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2213 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2214 end of warning message.
2216 2014-04-03 Doug Evans <dje@google.com>
2218 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2219 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2221 2014-04-02 Alan Modra <amodra@gmail.com>
2223 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2224 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2225 (struct symbol_file_add_from_memory_args): Add size field.
2226 (find_vdso_size): New function.
2227 (add_vsyscall_page): Attempt to find vdso size.
2229 2014-04-01 Doug Evans <dje@google.com>
2231 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2233 2014-04-01 Tristan Gingold <gingold@adacore.com>
2235 * darwin-nat.c (darwin_encode_reply): Add prototype.
2236 (darwin_decode_exception_message): Reply to unknown inferiors.
2237 (darwin_decode_message): Handle message by id. Ignore message
2238 to unknown inferior.
2239 (darwin_wait): Discard unknown messages, add debug trace.
2241 2014-03-31 Doug Evans <dje@google.com>
2243 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2246 2014-03-31 Doug Evans <dje@google.com>
2248 New option "set print symbol-loading".
2250 * solib.c (solib_read_symbols): Only print symbol loading messages
2252 (solib_add): If symbol loading is in "brief" mode, notify user
2253 symbols are being loaded.
2254 (reload_shared_libraries_1): Ditto.
2255 * symfile.c (print_symbol_loading_off): New static global.
2256 (print_symbol_loading_brief): New static global.
2257 (print_symbol_loading_full): New static global.
2258 (print_symbol_loading_enums): New static global.
2259 (print_symbol_loading): New static global.
2260 (print_symbol_loading_p): New function.
2261 (symbol_file_add_with_addrs): Only print symbol loading messages
2263 (_initialize_symfile): Register "print symbol-loading" set/show
2265 * symfile.h (print_symbol_loading_p): Declare.
2267 2014-03-30 Doug Evans <xdje42@gmail.com>
2269 * infrun.c (set_last_target_status): New function.
2270 (handle_inferior_event): Call it.
2272 2014-03-30 Doug Evans <xdje42@gmail.com>
2274 * inferior.h (enum stop_kind): Improve comment.
2276 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2278 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2279 a reference, strip the reference layer before calling
2280 the lang_ops value_has_mutated callback.
2282 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2284 Remove some globals from our parser.
2285 * language.c (unk_lang_parser): Add "struct parser_state"
2287 * language.h (struct language_defn) <la_parser>: Likewise.
2288 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2289 (initialize_expout): Add "struct parser_state" argument.
2290 Rewrite function to use the parser state.
2291 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2292 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2293 write_exp_elt_longcst, write_exp_elt_dblcst,
2294 write_exp_elt_decfloatcst, write_exp_elt_type,
2295 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2296 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2297 write_dollar_variable): Likewise.
2298 (parse_exp_in_context_1): Use parser state.
2299 (insert_type_address_space): Add "struct parser_state" argument.
2301 (increase_expout_size): New function.
2302 * parser-defs.h: Forward declare "struct language_defn" and
2303 "struct parser_state".
2304 (expout, expout_size, expout_ptr): Remove extern declarations.
2305 (parse_gdbarch, parse_language): Rewrite macro declarations to
2306 accept the parser state.
2307 (struct parser_state): New struct.
2308 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2309 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2310 write_exp_elt_decfloatcst, write_exp_elt_type,
2311 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2312 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2313 write_exp_msymbol, write_dollar_variable,
2314 mark_struct_expression, insert_type_address_space): Add "struct
2315 parser_state" argument.
2316 (increase_expout_size): New function.
2317 * utils.c (do_clear_parser_state): New function.
2318 (make_cleanup_clear_parser_state): Likewise.
2319 * utils.h (make_cleanup_clear_parser_state): New function
2321 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2322 Update calls to write_exp* in order to pass the parser state.
2323 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2324 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2325 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2326 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2327 * stap-probe.c (stap_parse_register_operand): Likewise.
2328 (stap_parse_single_operand): Likewise.
2329 (stap_parse_argument_1): Likewise.
2330 (stap_parse_argument): Use parser state.
2331 * stap-probe.h: Include "parser-defs.h".
2332 (struct stap_parse_info) <pstate>: New field.
2333 * c-exp.y (parse_type): Rewrite to use parser state.
2334 (yyparse): Redefine to c_parse_internal.
2335 (pstate): New global variable.
2336 (parse_number): Add "struct parser_state" argument.
2337 (write_destructor_name): Likewise.
2338 (type_exp): Update calls to write_exp* and similars in order to
2340 (exp1, exp, variable, qualified_name, space_identifier,
2341 typename, typebase): Likewise.
2342 (write_destructor_name, parse_number, lex_one_token,
2343 classify_name, classify_inner_name, c_parse): Add "struct
2344 parser_state" argument. Update function to use parser state.
2345 * c-lang.h: Forward declare "struct parser_state".
2346 (c_parse): Add "struct parser_state" argument.
2347 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2348 (yyparse): Redefine macro to ada_parse_internal.
2349 (pstate): New variable.
2350 (write_int, write_object_renaming, write_var_or_type,
2351 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2352 type_int, type_long, type_long_long, type_float, type_double,
2353 type_long_double, type_char, type_boolean, type_system_address):
2354 Add "struct parser_state" argument.
2355 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2356 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2357 var_or_type, aggregate, aggregate_component_list,
2358 positional_list, others, component_group,
2359 component_associations): Update calls to write_exp* and similar
2360 functions in order to use parser state.
2361 (ada_parse, write_var_from_sym, write_int,
2362 write_exp_op_with_string, write_object_renaming,
2363 find_primitive_type, write_selectors, write_ambiguous_var,
2364 write_var_or_type, write_name_assoc, type_int, type_long,
2365 type_long_long, type_float, type_double, type_long_double,
2366 type_char, type_boolean, type_system_address): Add "struct
2367 parser_state" argument. Adjust function to use parser state.
2368 * ada-lang.c (parse): Likewise.
2369 * ada-lang.h: Forward declare "struct parser_state".
2370 (ada_parse): Add "struct parser_state" argument.
2371 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2372 calls to both functions.
2373 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2375 (yyparse): Redefine macro to f_parse_internal.
2376 (pstate): New variable.
2377 (parse_number): Add "struct parser_state" argument.
2378 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2379 and similars in order to use parser state.
2380 (parse_number): Adjust code to use parser state.
2382 (f_parse): New function.
2383 * f-lang.h: Forward declare "struct parser_state".
2384 (f_parse): Add "struct parser_state" argument.
2385 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2387 (yyparse): Redefine macro for java_parse_internal.
2388 (pstate): New variable.
2389 (push_expression_name, push_expression_name, insert_exp): Add
2390 "struct parser_state" argument.
2391 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2392 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2393 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2394 PostIncrementExpression, PostDecrementExpression,
2395 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2396 UnaryExpressionNotPlusMinus, CastExpression,
2397 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2398 RelationalExpression, EqualityExpression, AndExpression,
2399 ExclusiveOrExpression, InclusiveOrExpression,
2400 ConditionalAndExpression, ConditionalOrExpression,
2401 ConditionalExpression, Assignment, LeftHandSide): Update
2402 calls to write_exp* and similars in order to use parser state.
2403 (parse_number): Ajust code to use parser state.
2405 (java_parse): New function.
2406 (push_variable): Add "struct parser_state" argument. Adjust
2407 code to user parser state.
2408 (push_fieldnames, push_qualified_expression_name,
2409 push_expression_name, insert_exp): Likewise.
2410 * jv-lang.h: Forward declare "struct parser_state".
2411 (java_parse): Add "struct parser_state" argument.
2412 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2414 (yyparse): Redefine macro to m2_parse_internal.
2415 (pstate): New variable.
2416 (type_exp, exp, fblock, variable, type): Update calls to
2417 write_exp* and similars to use parser state.
2419 (m2_parse): New function.
2420 * m2-lang.h: Forward declare "struct parser_state".
2421 (m2_parse): Add "struct parser_state" argument.
2422 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2423 * objc-lang.h: Forward declare "struct parser_state".
2424 (end_msglist): Add "struct parser_state" argument.
2425 * p-exp.y (parse_type): Rewrite macro to use parser state.
2426 (yyparse): Redefine macro to pascal_parse_internal.
2427 (pstate): New variable.
2428 (parse_number): Add "struct parser_state" argument.
2429 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2430 write_exp* and similars in order to use parser state.
2431 (parse_number, yylex): Adjust code to use parser state.
2432 (pascal_parse): New function.
2433 * p-lang.h: Forward declare "struct parser_state".
2434 (pascal_parse): Add "struct parser_state" argument.
2435 * go-exp.y (parse_type): Rewrite macro to use parser state.
2436 (yyparse): Redefine macro to go_parse_internal.
2437 (pstate): New variable.
2438 (parse_number): Add "struct parser_state" argument.
2439 (type_exp, exp1, exp, variable, type): Update calls to
2440 write_exp* and similars in order to use parser state.
2441 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2442 to use parser state.
2443 (go_parse): Likewise.
2444 * go-lang.h: Forward declare "struct parser_state".
2445 (go_parse): Add "struct parser_state" argument.
2447 2014-03-27 Doug Evans <dje@google.com>
2449 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2451 2014-03-27 Doug Evans <dje@google.com>
2453 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2454 Remove argument abbrev_section. All callers updated.
2456 2014-03-27 Doug Evans <dje@google.com>
2458 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2459 addr_base, ranges_base.
2461 2014-03-26 Keith Seitz <keiths@redhat.com>
2463 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2464 types, not VAR_DOMAIN.
2466 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2468 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2470 * features/nios2-linux.c: Regenerated.
2471 * features/nios2.c: Regenerated.
2473 2014-03-25 Pedro Alves <palves@redhat.com>
2475 * cli/cli-script.c (script_from_file): Force the interpreter to
2478 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2480 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2481 small stack allocation.
2483 2014-03-24 Tristan Gingold <gingold@adacore.com>
2485 * darwin-nat.c (exc_server): Remove unused prototype.
2486 (darwin_dump_message): Correctly display data on x86_64.
2487 (darwin_encode_reply): Fix style.
2488 Add comments and fix indentation.
2490 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2492 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2494 2014-03-22 Doug Evans <xdje42@gmail.com>
2496 * infcmd.c: Whitespace fixes.
2497 (interrupt_command): Merge two function comments into one.
2499 2014-03-22 Doug Evans <xdje42@gmail.com>
2501 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2504 2014-03-22 Yao Qi <yao@codesourcery.com>
2506 * remote.c (target_read_live_memory): Remove.
2507 (memory_xfer_live_readonly_partial): Rename it to
2508 remote_xfer_live_readonly_partial. Remove argument 'object'.
2509 All callers updated. Call remote_read_bytes_1
2510 instead of target_read_live_memory.
2511 * tracepoint.c (set_traceframe_number): Remove.
2512 (make_cleanup_restore_traceframe_number): Likewise .
2513 * tracepoint.h (set_traceframe_number): Remove declaration.
2514 (make_cleanup_restore_traceframe_number): Likewise.
2516 2014-03-22 Yao Qi <yao@codesourcery.com>
2518 * remote.c (remote_read_bytes): Move code on reading from the
2520 (remote_read_bytes_1): ... here. New function.
2522 2014-03-22 Yao Qi <yao@codesourcery.com>
2524 * ctf.c (ctf_xfer_partial): Check the return value of
2525 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2526 return TARGET_XFER_UNAVAILABLE.
2527 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2528 * target.c (target_read_live_memory): Move it to remote.c.
2529 (memory_xfer_live_readonly_partial): Likewise.
2530 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2531 * remote.c (target_read_live_memory): Moved from target.c.
2532 (memory_xfer_live_readonly_partial): Likewise.
2533 (remote_read_bytes): Factored out from
2534 memory_xfer_partial_1.
2536 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2538 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2541 2014-03-21 Pedro Alves <palves@redhat.com>
2543 * infrun.c (normal_stop): Extend comment.
2545 2014-03-21 Hui Zhu <hui@codesourcery.com>
2546 Pedro Alves <palves@redhat.com>
2548 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2550 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2551 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2552 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2554 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2556 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2557 `z' formatted output modifier.
2559 2014-03-20 Tom Tromey <tromey@redhat.com>
2560 Sergio Durigan Junior <sergiodj@redhat.com>
2562 * probe.c (parse_probes): Turn assert into an ordinary error.
2563 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2564 exceptions when parsing probes. Rearrange the code for clarity.
2566 2014-03-20 Tom Tromey <tromey@redhat.com>
2569 * top.c (execute_command): Only dispatch events if the command
2572 2014-03-20 Tom Tromey <tromey@redhat.com>
2575 * infcall.c: Include event-top.h.
2576 (run_inferior_call): Call async_disable_stdin if needed.
2578 2014-03-20 Pedro Alves <palves@redhat.com>
2580 * infrun.c (prepare_to_proceed): Delete.
2581 (thread_still_needs_step_over): New function.
2582 (find_thread_needs_step_over): New function.
2583 (proceed): If the current thread needs a step-over, set its
2584 steping_over_breakpoint flag. Adjust to use
2585 find_thread_needs_step_over instead of prepare_to_proceed.
2586 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2587 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2589 (switch_back_to_stepped_thread): Step over breakpoints of all
2590 threads not the stepping thread, before switching back to the
2593 2014-03-20 Pedro Alves <palves@redhat.com>
2595 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2597 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2598 * infrun.c (saved_singlestep_ptid)
2599 (stepping_past_singlestep_breakpoint): Delete.
2600 (resume): Remove stepping_past_singlestep_breakpoint handling.
2601 (proceed): Store the prev_pc of the stepping thread too.
2602 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2604 (enum infwait_states): Delete infwait_thread_hop_state.
2605 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2607 (handle_inferior_event): Adjust.
2608 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2609 handling and the thread-hop code. Before removing single-step
2610 breakpoints, check whether the thread hit a single-step breakpoint
2611 of another thread. If it did, the trap is not a random signal.
2612 (switch_back_to_stepped_thread): If the event thread hit a
2613 single-step breakpoint, unblock it before switching to the
2614 stepping thread. Handle the case of the stepped thread having
2616 (keep_going): Handle the case of the current thread moving past a
2617 single-step breakpoint.
2619 2014-03-20 Pedro Alves <palves@redhat.com>
2622 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2623 are being stepped over.
2624 (breakpoint_address_match): Make extern.
2625 * breakpoint.h (breakpoint_address_match): New declaration.
2626 * inferior.h (stepping_past_instruction_at): New declaration.
2627 * infrun.c (struct step_over_info): New type.
2628 (step_over_info): New global.
2629 (set_step_over_info, clear_step_over_info)
2630 (stepping_past_instruction_at): New functions.
2631 (handle_inferior_event): Clear the step-over info when
2632 trap_expected is cleared.
2633 (resume): Remove now stale comment.
2634 (clear_proceed_status): Clear step-over info.
2635 (proceed): Adjust step-over handling to set or clear the step-over
2636 info instead of removing all breakpoints.
2637 (handle_signal_stop): When setting up a thread-hop, don't remove
2639 (stop_stepping): Clear step-over info.
2640 (keep_going): Adjust step-over handling to set or clear step-over
2641 info and then always inserting breakpoints, instead of removing
2642 all breakpoints when stepping over one.
2644 2014-03-20 Pedro Alves <palves@redhat.com>
2646 * infrun.c (previous_inferior_ptid): Adjust comment.
2647 (deferred_step_ptid): Delete.
2648 (infrun_thread_ptid_changed, prepare_to_proceed)
2649 (init_wait_for_inferior): Adjust.
2650 (handle_signal_stop): Delete deferred_step_ptid handling.
2652 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2655 * defs.h (sync_quit_force_run): New declaration.
2656 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2657 * event-top.c (async_sigterm_handler): New declaration.
2658 (async_sigterm_token): New variable.
2659 (async_init_signals): Create also async_sigterm_token.
2660 (async_sigterm_handler): New function.
2661 (sync_quit_force_run): New variable.
2662 (handle_sigterm): Replace quit_force call by other calls.
2663 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2665 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2667 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2668 offset into SPE pseudo registers.
2670 2014-03-18 Pedro Alves <palves@redhat.com>
2673 * inferior.h (print_stop_event): Declare.
2674 * infrun.c (print_stop_event): New, factored out from ...
2675 (normal_stop): ... this.
2676 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2677 of bpstat_print/print_stack_frame.
2679 2014-03-17 Tom Tromey <tromey@redhat.com>
2681 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2683 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2685 * ada-lang.c (decode_constrained_packed_array): Perform a
2686 minimal coercion for reference with coerce_ref instead of
2689 2014-03-17 Tristan Gingold <gingold@adacore.com>
2691 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2692 (darwin_solib_create_inferior_hook): Emit a warning if version
2695 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2697 * python/py-value.c (get_field_flag): Cast flag_name argument to
2698 PyObject_GetAttrString to support Python 2.4.
2700 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2702 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2703 (Global Maintainers): Remove Jan Kratochvil.
2705 2014-03-14 Pedro Alves <palves@redhat.com>
2707 * inferior.h (terminal_ours_for_output): Rename to ...
2708 (child_terminal_ours_for_output): ... this.
2709 (terminal_save_ours): Rename to ...
2710 (child_terminal_save_ours): ... this.
2711 (terminal_ours): Rename to ...
2712 (child_terminal_ours): ... this.
2713 (terminal_inferior): Rename to ...
2714 (child_terminal_inferior): ... this.
2715 (terminal_init_inferior): Rename to ...
2716 (child_terminal_init_inferior): ... this.
2717 (terminal_init_inferior_with_pgrp): Rename to ...
2718 (child_terminal_init_inferior_with_pgrp): ... this.
2719 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2720 (child_terminal_init_with_pgrp): ... this.
2721 (terminal_save_ours): Rename to ...
2722 (child_terminal_save_ours): ... this.
2723 (terminal_init_inferior): Rename to ...
2724 (child_terminal_init): ... this. Adjust.
2725 (terminal_inferior): Rename to ...
2726 (child_terminal_inferior): ... this.
2727 (terminal_ours_for_output): Rename to ...
2728 (child_terminal_ours_for_output): ... this. Adjust.
2729 (terminal_ours): Rename to ...
2730 (child_terminal_ours): ... this.
2731 (terminal_ours_1): Rename to ...
2732 (child_terminal_ours_1): ... this. Adjust.
2733 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2734 * windows-nat.c (do_initial_windows_stuff): Adjust.
2735 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2736 (gnu_terminal_init): ... this. Adjust.
2737 (gnu_target): Adjust.
2738 * inf-child.c (inf_child_target): Adjust.
2740 2014-03-13 Doug Evans <xdje42@gmail.com>
2743 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2746 2014-03-13 Doug Evans <xdje42@gmail.com>
2748 * value.c (record_latest_value): Call release_value_or_incref
2749 instead of release_value.
2751 2014-03-13 Pedro Alves <palves@redhat.com>
2753 * procfs.c (procfs_target): Don't override to_shortname,
2754 to_longname or to_doc.
2756 2014-03-13 Pedro Alves <palves@redhat.com>
2758 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2759 Unix in user visible strings.
2761 2014-03-12 Stan Shebs <stan@codesourcery.com>
2763 * gdbtypes.h: Annotate comments for Doxygen, add a page
2764 block comment with some general info.
2766 2014-03-12 Pedro Alves <palves@redhat.com>
2768 * infcmd.c (prepare_execution_command): New function, factored out
2769 from several execution commands.
2770 (run_command_1, continue_command, step_1, jump_command)
2771 (signal_command, until_command, advance_command, finish_command)
2772 (attach_command): Use prepare_execution_command.
2774 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2776 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2779 (struct arm_linux_thread_points): Removed.
2780 (struct arm_linux_process_info): New.
2781 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2782 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2783 (arm_linux_find_breakpoints_by_tid): Removed.
2784 (struct arch_lwp_info): New.
2785 (arm_linux_find_process_pid): New functions.
2786 (arm_linux_add_process): New functions.
2787 (arm_linux_process_info_get): New functions.
2788 (arm_linux_forget_process): New function.
2789 (arm_linux_get_debug_reg_state): New function.
2790 (struct update_registers_data): New.
2791 (update_registers_callback): New function.
2792 (arm_linux_insert_hw_breakpoint1): Updated.
2793 (arm_linux_remove_hw_breakpoint1): Updated.
2794 (arm_linux_insert_hw_breakpoint): Updated.
2795 (arm_linux_remove_hw_breakpoint): Updated.
2796 (arm_linux_insert_watchpoint): Updated.
2797 (arm_linux_remove_watchpoint): Updated.
2798 (arm_linux_new_thread): Updated.
2799 (arm_linux_prepare_to_resume): New function.
2800 (arm_linux_new_fork): New function.
2801 (_initialize_arm_linux_nat): Updated.
2803 2014-03-12 Pedro Alves <palves@redhat.com>
2805 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2807 2014-03-12 Tom Tromey <tromey@redhat.com>
2809 * inf-child.c (return_zero): New function.
2810 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2811 * aix-thread.c (aix_thread_inferior_created): New function.
2812 (aix_thread_attach): Remove.
2813 (init_aix_thread_ops): Don't set to_attach.
2814 (_initialize_aix_thread): Register inferior_created observer.
2815 * corelow.c (init_core_ops): Don't set to_attach or
2817 * exec.c (init_exec_ops): Don't set to_attach or
2819 * infcmd.c (run_command_1): Use find_run_target. Make direct
2821 (attach_command): Use find_attach_target. Make direct target
2823 * record-btrace.c (init_record_btrace_ops): Don't set
2825 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2827 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2828 set to_create_inferior.
2829 * target.c (complete_target_initialization): Add assertion.
2830 (target_create_inferior): Remove.
2831 (find_default_attach, find_default_create_inferior): Remove.
2832 (find_attach_target, find_run_target): New functions.
2833 (find_default_is_async_p, find_default_can_async_p)
2834 (target_supports_non_stop, target_attach): Remove.
2835 (init_dummy_target): Don't set to_create_inferior or
2836 to_supports_non_stop.
2837 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2838 TARGET_DEFAULT_FUNC.
2839 <to_create_inferior>: Add comment.
2840 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2841 TARGET_DEFAULT_RETURN.
2842 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2843 (find_attach_target, find_run_target): Declare.
2844 (target_create_inferior): Remove.
2845 (target_has_execution_1): Update comment.
2846 (target_supports_non_stop): Remove.
2847 * target-delegates.c: Rebuild.
2849 2014-03-12 Pedro Alves <palves@redhat.com>
2851 * inf-child.h: Update comment to not mention Unix.
2853 2014-03-12 Pedro Alves <palves@redhat.com>
2855 * inf-child.c: Update top comment to not mention Unix. Add
2856 generic comment describing how this target is meant to be used.
2857 (inf_child_post_attach, inf_child_post_startup_inferior)
2858 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2861 2014-03-12 Pedro Alves <palves@redhat.com>
2863 * nto-procfs.c: Include inf-child.h.
2864 (procfs_ops): Delete global.
2865 (procfs_can_run): Delete method.
2866 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2867 target pointer instead of referencing procfs_ops.
2868 (procfs_prepare_to_store): Delete.
2869 (init_procfs_ops): Delete function.
2870 (procfs_target): New function, based on init_procfs_ops, but
2871 inherit inf_child_target.
2872 (_initialize_procfs): Use procfs_target.
2874 2014-03-12 Pedro Alves <palves@redhat.com>
2876 * windows-nat.c: Include inf-child.h.
2877 (windows_ops): Delete global.
2878 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2880 (init_windows_ops): Delete function.
2881 (windows_target): New function, based on init_windows_ops, but
2882 inherit inf_child_target.
2883 (_initialize_windows_nat): Use windows_target. Install x86
2884 specific target methods here.
2886 2014-03-10 Doug Evans <xdje42@gmail.com>
2888 * guile/guile.c (call_initialize_gdb_module): New function.
2889 (initialize_guile): Replace call to scm_init_guile with call to
2892 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2894 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2895 in call to TYPE_CODE macro.
2897 2014-03-10 Jerome Guitton <guitton@adacore.com>
2899 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2900 Resolve tagged types to full view.
2902 2014-03-10 Hui Zhu <hui@codesourcery.com>
2904 * target.h (target_insert_breakpoint): Remove "hardware" from its
2907 2014-03-07 Doug Evans <dje@google.com>
2909 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2911 2014-03-07 Doug Evans <dje@google.com>
2913 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2914 Remove unused local comp_dir_attr. Assert exactly one of
2915 stub_comp_unit_die, stub_comp_dir is non-NULL.
2917 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2919 * target.h (complete_target_initialization, add_target):
2922 2014-03-07 Pedro Alves <palves@redhat.com>
2924 * go32-nat.c: Include inf-child.h.
2925 (go32_ops): Delete global.
2926 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2928 (go32_create_inferior): Push the passed in target pointer instead
2929 of referencing go32_ops.
2930 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2931 (go32_target): New function, based on init_go32_ops, but inherit
2933 (_initialize_go32_nat): Use go32_target. Move parts of
2936 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2938 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2939 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2940 SYMBOL_VALUE_ADDRESS.
2941 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2943 2014-03-06 Yao Qi <yao@codesourcery.com>
2945 * breakpoint.c (get_tracepoint_by_number): Remove argument
2946 optional_p. All callers updated. Adjust comments. Update
2948 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2950 2014-03-06 Yao Qi <yao@codesourcery.com>
2952 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2953 early if get_number returns zero. Use 'p' instead of 'args'.
2955 2014-03-06 Yao Qi <yao@codesourcery.com>
2957 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2960 2014-03-06 Yao Qi <yao@codesourcery.com>
2962 PR breakpoints/16508
2963 * tracepoint.c (check_trace_running): New function.
2964 (trace_find_command): Move code to check_trace_running and
2965 call check_trace_running.
2966 (trace_find_pc_command): Likewise.
2967 (trace_find_tracepoint_command): Likewise.
2968 (trace_find_line_command): Likewise.
2969 (trace_find_range_command): Likewise.
2970 * tracepoint.h (check_trace_running): Likewise.
2971 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2973 2014-03-06 Yao Qi <yao@codesourcery.com>
2975 * target.h (struct target_ops) <to_traceframe_info>: Use
2976 TARGET_DEFAULT_NORETURN (tcomplain ()).
2977 * target-delegates.c: Regenerated.
2979 2014-03-05 Pedro Alves <palves@redhat.com>
2982 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2983 void. Update comment.
2984 (dcache_xfer_memory): Delete.
2985 (dcache_read_memory_partial): New, based on the read bits of
2987 (dcache_update): Add status parameter. Use ULONGEST for len, and
2988 adjust. Discard cache lines if the reason for the update was
2990 * dcache.h (dcache_xfer_memory): Delete declaration.
2991 (dcache_read_memory_partial): New declaration.
2992 (dcache_update): Update prototype.
2993 * target.c (raw_memory_xfer_partial): Update the dcache here.
2994 (memory_xfer_partial_1): Don't handle dcache writes here.
2996 2014-03-05 Mike Frysinger <vapier@gentoo.org>
2998 * remote-sim.c (gdbsim_load): Add const to prog.
3000 2014-03-03 Tom Tromey <tromey@redhat.com>
3002 * elfread.c (probe_key): Change to bfd_data.
3003 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3004 now per-BFD, not per-objfile.
3005 * stap-probe.c (stap_probe_destroy): Update comment.
3006 (handle_stap_probe): Allocate on the per-BFD obstack.
3008 2014-03-03 Tom Tromey <tromey@redhat.com>
3010 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3011 * breakpoint.c (create_longjmp_master_breakpoint): Use
3013 (add_location_to_breakpoint, bkpt_probe_insert_location)
3014 (bkpt_probe_remove_location): Update.
3015 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3016 * elfread.c (elf_symfile_relocate_probe): Remove.
3017 (elf_probe_fns): Update.
3018 (insert_exception_resume_breakpoint): Change type of "probe"
3019 parameter to bound_probe.
3020 (check_exception_resume): Update.
3021 * objfiles.c (objfile_relocate1): Don't relocate probes.
3022 * probe.c (bound_probe_s): New typedef.
3023 (parse_probes): Use get_probe_address. Set sal's objfile.
3024 (find_probe_by_pc): Return a bound_probe.
3025 (collect_probes): Return a VEC(bound_probe_s).
3026 (compare_probes): Update.
3027 (gen_ui_out_table_header_info): Change type of "probes"
3029 (info_probes_for_ops): Update.
3030 (get_probe_address): New function.
3031 (probe_safe_evaluate_at_pc): Update.
3032 * probe.h (struct probe_ops) <get_probe_address>: New field.
3033 <set_semaphore, clear_semaphore>: Add objfile parameter.
3034 (struct probe) <objfile>: Remove field.
3036 <address>: Update comment.
3037 (struct bound_probe): New.
3038 (find_probe_by_pc): Return a bound_probe.
3039 (get_probe_address): Declare.
3040 * solib-svr4.c (struct probe_and_action) <address>: New field.
3041 (hash_probe_and_action, equal_probe_and_action): Update.
3042 (register_solib_event_probe): Add address parameter.
3043 (solib_event_probe_at): Update.
3044 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3046 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3047 (stap_get_probe_address): New function.
3048 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3049 (compile_probe_arg): Update.
3050 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3052 (handle_stap_probe): Don't relocate the probe.
3053 (stap_relocate): Remove.
3054 (stap_gen_info_probes_table_values): Update.
3055 (stap_probe_ops): Remove stap_relocate.
3056 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3057 (debug_sym_probe_fns): Update.
3058 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3059 * symtab.c (init_sal): Use memset.
3060 * symtab.h (struct symtab_and_line) <objfile>: New field.
3061 * tracepoint.c (start_tracing, stop_tracing): Update.
3063 2014-03-03 Tom Tromey <tromey@redhat.com>
3065 * probe.h (parse_probes, find_probe_by_pc)
3066 (find_probes_in_objfile): Fix comments.
3068 2014-03-02 Doug Evans <xdje42@gmail.com>
3070 * infrun.c (handle_signal_stop): Replace test for
3071 TARGET_WAITKIND_STOPPED with an assert.
3073 2014-03-02 Doug Evans <xdje42@gmail.com>
3075 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3077 2014-03-02 Doug Evans <xdje42@gmail.com>
3079 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3081 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3083 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3085 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3087 * i386obsd-nat.c: Include "obsd-nat.h".
3088 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3090 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3092 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3094 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3096 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3098 * mips64obsd-nat.c: Include "obsd-nath".
3099 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3101 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3103 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3105 * amd64obsd-nat.c: Include "obsd-nat,h.
3106 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3108 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3110 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3112 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3113 (find_overload_match): Update call to find_oload_champ.
3114 (find_oload_champ_namespace_loop): Likewise
3116 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3118 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3120 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3121 * config/sparc/obsd64.mh: New file.
3122 * sparc64obsd-nat.c: New file.
3124 * obsd-nat.h: New file.
3125 * obsd-nat.c: New file.
3126 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3127 (ALLDEPFILES): Add obsd-nat.c.
3129 2014-02-28 Tom Tromey <tromey@redhat.com>
3131 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3132 * cli-out.h (cli_ui_out_impl): Now const.
3133 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3134 * ui-out.c (struct ui_out) <impl>: Now const.
3135 (default_ui_out_impl): Now const.
3136 (ui_out_new): Make 'impl' parameter const.
3137 * ui-out.h (ui_out_new): Update.
3139 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3141 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3143 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3145 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3147 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3149 Additional PR 8882 fix.
3150 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3152 2014-02-27 Pedro Alves <palves@redhat.com>
3154 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3157 2014-02-27 Pedro Alves <palves@redhat.com>
3160 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3161 * nat/linux-waitpid.c: Include string.h.
3162 (status_to_str): Moved here and made extern.
3163 * nat/linux-waitpid.h (status_to_str): New declaration.
3165 2014-02-27 Hui Zhu <hui@codesourcery.com>
3168 * infrun.c (ptid_match): Move ...
3169 * common/ptid.c (ptid_match): ... here.
3170 * inferior.h (ptid_match): Move ...
3171 * common/ptid.h (ptid_match): ... here.
3173 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3175 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3176 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3179 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3181 * obsd-tdep.c (obsd_auxv_parse): New function.
3182 (obsd_init_abi): Set auxv_parse.
3184 * gdbarch.sh (auxv_parse): New.
3185 * gdbarch.h: Regenerated.
3186 * gdbarch.c: Regenerated.
3187 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3189 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3191 * guile/scm-value.c (gdbscm_history_append_x): New function.
3192 (value_functions): Add it.
3194 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3196 * dwarf2read.c (attr_value_as_address): New function.
3197 (dwarf2_find_base_address, read_call_site_scope): Use
3198 attr_value_as_address in place of DW_ADDR.
3199 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3200 the low and high addresses. Slight rework of the handling
3201 of the high pc being a constant form, and limit it to
3202 DWARF verson 4 or higher.
3203 (dwarf2_record_block_ranges): Likewise.
3204 (read_partial_die): Likewise.
3205 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3207 2014-02-26 Tom Tromey <tromey@redhat.com>
3209 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3211 2014-02-26 Tom Tromey <tromey@redhat.com>
3213 * elfread.c (elf_read_minimal_symbols): Return early if
3214 minimal symbols have already been read. Add "ei" parameter.
3215 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3216 * minsyms.c (prim_record_minimal_symbol_full): Update.
3217 * objfiles.h (struct objstats) <n_minsyms>: Move...
3218 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3219 * symmisc.c (print_objfile_statistics): Update.
3221 2014-02-26 Tom Tromey <tromey@redhat.com>
3223 * elfread.c (elf_read_minimal_symbols): New function, from
3225 (elf_symfile_read): Call it.
3227 2014-02-26 Tom Tromey <tromey@redhat.com>
3229 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3230 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3231 (lookup_minimal_symbol_solib_trampoline)
3232 (lookup_minimal_symbol_by_pc_section_1)
3233 (lookup_minimal_symbol_and_objfile): Update.
3234 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3235 Don't allocate a minimal symbol if minsyms have already been read.
3236 (build_minimal_symbol_hash_tables): Update.
3237 (install_minimal_symbols): Do nothing if minsyms already read.
3238 Use the per-BFD obstack.
3239 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3240 * objfiles.c (allocate_objfile): Call
3241 terminate_minimal_symbol_table later.
3242 (have_minimal_symbols): Update.
3243 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3244 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3245 Move from struct objfile.
3246 <minsyms_read>: New field.
3247 (struct objfile) <msymbols, minimal_symbol_count,
3248 msymbol_hash, msymbol_demangled_hash>: Move.
3249 (ALL_OBJFILE_MSYMBOLS): Update.
3250 * symfile.c (read_symbols): Set minsyms_read.
3251 (reread_symbols): Update.
3252 * symmisc.c (dump_objfile, dump_msymbols): Update.
3254 2014-02-26 Tom Tromey <tromey@redhat.com>
3256 * minsyms.c (msymbols_sort): Remove.
3257 * minsyms.h (msymbols_sort): Remove.
3258 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3259 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3260 * elfread.c (elf_symtab_read): Don't add section offsets.
3261 * xcoffread.c (record_minimal_symbol): Don't add section offset
3262 to minimal symbol address.
3263 * somread.c (text_offset, data_offset): Remove.
3264 (som_symtab_read): Don't add section offsets to minimal symbol
3266 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3267 Don't add section offsets to minimal symbols.
3268 * coffread.c (coff_symtab_read): Don't add section offsets
3269 to minimal symbol addresses.
3270 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3271 to minimal symbol addresses.
3272 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3273 section offset to minimal symbol addresses.
3274 * mdebugread.c (parse_partial_symbols): Don't add section
3275 offset to minimal symbol addresses.
3276 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3277 offset to minimal symbol addresses.
3279 2014-02-26 Tom Tromey <tromey@redhat.com>
3281 * ada-lang.c (ada_main_name): Update.
3282 (ada_add_standard_exceptions): Update.
3283 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3284 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3285 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3286 * auxv.c (ld_so_xfer_auxv): Update.
3287 * avr-tdep.c (avr_scan_prologue): Update.
3288 * ax-gdb.c (gen_var_ref): Update.
3289 * blockframe.c (get_pc_function_start)
3290 (find_pc_partial_function_gnu_ifunc): Update.
3291 * breakpoint.c (create_overlay_event_breakpoint)
3292 (create_longjmp_master_breakpoint)
3293 (create_std_terminate_master_breakpoint)
3294 (create_exception_master_breakpoint): Update.
3295 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3296 * c-valprint.c (c_val_print): Update.
3297 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3298 * common/agent.c (agent_look_up_symbols): Update.
3299 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3300 * dwarf2loc.c (call_site_to_target_addr): Update.
3301 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3302 * elfread.c (elf_gnu_ifunc_record_cache)
3303 (elf_gnu_ifunc_resolve_by_got): Update.
3304 * findvar.c (default_read_var_value): Update.
3305 * frame.c (inside_main_func): Update.
3306 * frv-tdep.c (frv_frame_this_id): Update.
3307 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3308 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3310 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3311 (hppa_hpux_find_dummy_bpaddr): Update.
3312 * hppa-tdep.c (hppa_symbol_address): Update.
3313 * infcmd.c (until_next_command): Update.
3314 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3316 * linespec.c (minsym_found, add_minsym): Update.
3317 * linux-nat.c (get_signo): Update.
3318 * linux-thread-db.c (inferior_has_bug): Update.
3319 * m32c-tdep.c (m32c_return_value)
3320 (m32c_m16c_address_to_pointer): Update.
3321 * m32r-tdep.c (m32r_frame_this_id): Update.
3322 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3323 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3324 * maint.c (maintenance_translate_address): Update.
3325 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3326 (frob_address): New function.
3327 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3328 frob_address. Rename parameter to "pc_in".
3329 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3331 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3333 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3334 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3335 * objc-lang.c (find_objc_msgsend): Update.
3336 * objfiles.c (objfile_relocate1): Update.
3337 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3338 * p-valprint.c (pascal_val_print): Update.
3339 * parse.c (write_exp_msymbol): Update.
3340 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3341 (ppc_elfv2_skip_entrypoint): Update.
3342 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3343 * printcmd.c (build_address_symbolic, msym_info)
3344 (address_info): Update.
3345 * proc-service.c (ps_pglobal_lookup): Update.
3346 * psymtab.c (find_pc_sect_psymtab_closer)
3347 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3348 Change msymbol parameter to bound_minimal_symbol.
3349 * ravenscar-thread.c (get_running_thread_id): Update.
3350 * remote.c (remote_check_symbols): Update.
3351 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3353 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3354 * solib-dsbt.c (lm_base): Update.
3355 * solib-frv.c (lm_base, main_got): Update.
3356 * solib-irix.c (locate_base): Update.
3357 * solib-som.c (som_solib_create_inferior_hook)
3358 (link_map_start): Update.
3359 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3360 * solib-svr4.c (elf_locate_base, enable_break): Update.
3361 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3362 (flush_ea_cache): Update.
3363 * stabsread.c (define_symbol, scan_file_globals): Update.
3364 * stack.c (find_frame_funname): Update.
3365 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3366 (debug_qf_find_pc_sect_symtab): Update.
3367 * symfile.c (simple_read_overlay_table)
3368 (simple_overlay_update): Update.
3369 * symfile.h (struct quick_symbol_functions)
3370 <find_pc_sect_symtab>: Change type of msymbol to
3371 bound_minimal_symbol.
3372 * symmisc.c (dump_msymbols): Update.
3373 * symtab.c (find_pc_sect_symtab_via_partial)
3374 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3375 (search_symbols, print_msymbol_info): Update.
3376 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3377 (MSYMBOL_VALUE_ADDRESS): Redefine.
3378 (BMSYMBOL_VALUE_ADDRESS): New macro.
3379 * tracepoint.c (scope_info): Update.
3380 * tui/tui-disasm.c (tui_find_disassembly_address)
3381 (tui_get_begin_asm_address): Update.
3382 * valops.c (find_function_in_inferior): Update.
3383 * value.c (value_static_field, value_fn_field): Update.
3385 2014-02-26 Tom Tromey <tromey@redhat.com>
3387 * ada-lang.c (ada_update_initial_language): Update.
3388 (ada_main_name, ada_has_this_exception_support): Update.
3389 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3390 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3391 * arm-tdep.c (arm_skip_stub): Update.
3392 * auxv.c (ld_so_xfer_auxv): Update.
3393 * avr-tdep.c (avr_scan_prologue): Update.
3394 * ax-gdb.c (gen_var_ref): Update.
3395 * breakpoint.c (struct breakpoint_objfile_data)
3396 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3397 type to bound_minimal_symbol.
3398 (create_overlay_event_breakpoint)
3399 (create_longjmp_master_breakpoint)
3400 (create_std_terminate_master_breakpoint)
3401 (create_exception_master_breakpoint): Update.
3402 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3403 * c-exp.y (classify_name): Update.
3404 * coffread.c (coff_symfile_read): Update.
3405 * common/agent.c (agent_look_up_symbols): Update.
3406 * d-lang.c (d_main_name): Update.
3407 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3408 * dec-thread.c (enable_dec_thread): Update.
3409 * dwarf2loc.c (call_site_to_target_addr): Update.
3410 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3411 * eval.c (evaluate_subexp_standard): Update.
3412 * findvar.c (struct minsym_lookup_data) <result>: Change type
3413 to bound_minimal_symbol.
3415 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3416 * frame.c (inside_main_func): Update.
3417 * frv-tdep.c (frv_frame_this_id): Update.
3418 * gcore.c (call_target_sbrk): Update.
3419 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3420 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3422 * go-lang.c (go_main_name): Update.
3423 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3424 (hppa_hpux_find_import_stub_for_addr): Update.
3425 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3426 Update. Change return type.
3427 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3429 * jit.c (jit_breakpoint_re_set_internal): Update.
3430 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3432 * linux-nat.c (get_signo): Update.
3433 * linux-thread-db.c (inferior_has_bug): Update
3434 * m32c-tdep.c (m32c_return_value)
3435 (m32c_m16c_address_to_pointer): Update.
3436 * m32r-tdep.c (m32r_frame_this_id): Update.
3437 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3438 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3439 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3440 lookup_minimal_symbol. Change return type.
3441 (lookup_minimal_symbol): Remove.
3442 (lookup_bound_minimal_symbol): Update.
3443 (lookup_minimal_symbol_text): Change return type.
3444 (lookup_minimal_symbol_solib_trampoline): Change return type.
3445 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3446 (lookup_minimal_symbol_solib_trampoline): Change return type.
3447 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3448 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3449 (value_nsstring, find_imps): Update.
3450 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3451 * p-lang.c (pascal_main_name): Update.
3452 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3453 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3454 * proc-service.c (ps_pglobal_lookup): Update.
3455 * ravenscar-thread.c (get_running_thread_msymbol): Change
3457 (has_ravenscar_runtime, get_running_thread_id): Update.
3458 * remote.c (remote_check_symbols): Update.
3459 * sol-thread.c (ps_pglobal_lookup): Update.
3460 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3461 * solib-dsbt.c (lm_base): Update.
3462 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3464 * solib-irix.c (locate_base): Update.
3465 * solib-som.c (som_solib_create_inferior_hook)
3466 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3468 * solib-spu.c (spu_enable_break): Update.
3469 * solib-svr4.c (elf_locate_base, enable_break): Update.
3470 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3471 (flush_ea_cache): Update.
3472 * stabsread.c (define_symbol): Update.
3473 * symfile.c (simple_read_overlay_table): Update.
3474 * symtab.c (find_pc_sect_line): Update.
3475 * tracepoint.c (scope_info): Update.
3476 * tui-disasm.c (tui_get_begin_asm_address): Update.
3477 * value.c (value_static_field): Update.
3479 2014-02-26 Tom Tromey <tromey@redhat.com>
3481 * minsyms.c (prim_record_minimal_symbol_full): Use
3482 SET_MSYMBOL_VALUE_ADDRESS.
3483 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3484 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3485 SET_MSYMBOL_VALUE_ADDRESS.
3486 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3487 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3489 2014-02-26 Tom Tromey <tromey@redhat.com>
3491 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3492 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3493 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3494 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3495 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3496 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3497 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3498 * ada-lang.c (ada_main_name): Update.
3499 (ada_lookup_simple_minsym): Update.
3500 (ada_make_symbol_completion_list): Update.
3501 (ada_add_standard_exceptions): Update.
3502 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3503 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3504 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3505 * arm-tdep.c (skip_prologue_function): Update.
3506 (arm_skip_stack_protector, arm_skip_stub): Update.
3507 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3508 (arm_wince_skip_main_prologue): Update.
3509 * auxv.c (ld_so_xfer_auxv): Update.
3510 * avr-tdep.c (avr_scan_prologue): Update.
3511 * ax-gdb.c (gen_var_ref): Update.
3512 * block.c (call_site_for_pc): Update.
3513 * blockframe.c (get_pc_function_start): Update.
3514 (find_pc_partial_function_gnu_ifunc): Update.
3515 * breakpoint.c (create_overlay_event_breakpoint): Update.
3516 (create_longjmp_master_breakpoint): Update.
3517 (create_std_terminate_master_breakpoint): Update.
3518 (create_exception_master_breakpoint): Update.
3519 (resolve_sal_pc): Update.
3520 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3521 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3523 * c-valprint.c (c_val_print): Update.
3524 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3525 * coffread.c (coff_symfile_read): Update.
3526 * common/agent.c (agent_look_up_symbols): Update.
3527 * dbxread.c (find_stab_function_addr): Update.
3528 (end_psymtab): Update.
3529 * dwarf2loc.c (call_site_to_target_addr): Update.
3530 (func_verify_no_selftailcall): Update.
3531 (tailcall_dump): Update.
3532 (call_site_find_chain_1): Update.
3533 (dwarf_expr_reg_to_entry_parameter): Update.
3534 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3535 (elf_gnu_ifunc_resolve_by_got): Update.
3536 * f-valprint.c (info_common_command): Update.
3537 * findvar.c (read_var_value): Update.
3538 * frame.c (get_prev_frame_1): Update.
3539 (inside_main_func): Update.
3540 * frv-tdep.c (frv_skip_main_prologue): Update.
3541 (frv_frame_this_id): Update.
3542 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3543 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3544 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3545 (gnuv3_skip_trampoline): Update.
3546 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3547 (hppa64_hpux_in_solib_call_trampoline): Update.
3548 (hppa_hpux_skip_trampoline_code): Update.
3549 (hppa64_hpux_search_dummy_call_sequence): Update.
3550 (hppa_hpux_find_import_stub_for_addr): Update.
3551 (hppa_hpux_find_dummy_bpaddr): Update.
3552 * hppa-tdep.c (hppa_symbol_address)
3553 (hppa_lookup_stub_minimal_symbol): Update.
3554 * i386-tdep.c (i386_skip_main_prologue): Update.
3555 (i386_pe_skip_trampoline_code): Update.
3556 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3557 * infcall.c (get_function_name): Update.
3558 * infcmd.c (until_next_command): Update.
3559 * jit.c (jit_breakpoint_re_set_internal): Update.
3560 (jit_inferior_init): Update.
3561 * linespec.c (minsym_found): Update.
3562 (add_minsym): Update.
3563 * linux-fork.c (info_checkpoints_command): Update.
3564 * linux-nat.c (get_signo): Update.
3565 * linux-thread-db.c (inferior_has_bug): Update.
3566 * m32c-tdep.c (m32c_return_value): Update.
3567 (m32c_m16c_address_to_pointer): Update.
3568 (m32c_m16c_pointer_to_address): Update.
3569 * m32r-tdep.c (m32r_frame_this_id): Update.
3570 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3571 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3572 * maint.c (maintenance_translate_address): Update.
3573 * minsyms.c (add_minsym_to_hash_table): Update.
3574 (add_minsym_to_demangled_hash_table): Update.
3575 (msymbol_objfile): Update.
3576 (lookup_minimal_symbol): Update.
3577 (iterate_over_minimal_symbols): Update.
3578 (lookup_minimal_symbol_text): Update.
3579 (lookup_minimal_symbol_by_pc_name): Update.
3580 (lookup_minimal_symbol_solib_trampoline): Update.
3581 (lookup_minimal_symbol_by_pc_section_1): Update.
3582 (lookup_minimal_symbol_and_objfile): Update.
3583 (prim_record_minimal_symbol_full): Update.
3584 (compare_minimal_symbols): Update.
3585 (compact_minimal_symbols): Update.
3586 (build_minimal_symbol_hash_tables): Update.
3587 (install_minimal_symbols): Update.
3588 (terminate_minimal_symbol_table): Update.
3589 (find_solib_trampoline_target): Update.
3590 (minimal_symbol_upper_bound): Update.
3591 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3592 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3593 (mips_skip_pic_trampoline_code): Update.
3594 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3595 * objc-lang.c (selectors_info): Update.
3596 (classes_info): Update.
3597 (find_methods): Update.
3598 (find_imps): Update.
3599 (find_objc_msgsend): Update.
3600 * objfiles.c (objfile_relocate1): Update.
3601 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3602 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3603 * p-valprint.c (pascal_val_print): Update.
3604 * parse.c (write_exp_msymbol): Update.
3605 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3606 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3607 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3608 * printcmd.c (build_address_symbolic): Update.
3610 (address_info): Update.
3611 * proc-service.c (ps_pglobal_lookup): Update.
3612 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3613 (find_pc_sect_psymtab): Update.
3614 * python/py-framefilter.c (py_print_frame): Update.
3615 * ravenscar-thread.c (get_running_thread_id): Update.
3616 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3618 * remote.c (remote_check_symbols): Update.
3619 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3620 (rs6000_skip_trampoline_code): Update.
3621 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3622 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3623 * solib-dsbt.c (lm_base): Update.
3624 * solib-frv.c (lm_base): Update.
3626 * solib-irix.c (locate_base): Update.
3627 * solib-som.c (som_solib_create_inferior_hook): Update.
3628 (som_solib_desire_dynamic_linker_symbols): Update.
3629 (link_map_start): Update.
3630 * solib-spu.c (spu_enable_break): Update.
3631 (ocl_enable_break): Update.
3632 * solib-svr4.c (elf_locate_base): Update.
3633 (enable_break): Update.
3634 * spu-tdep.c (spu_get_overlay_table): Update.
3635 (spu_catch_start): Update.
3636 (flush_ea_cache): Update.
3637 * stabsread.c (define_symbol): Update.
3638 (scan_file_globals): Update.
3639 * stack.c (find_frame_funname): Update.
3640 (frame_info): Update.
3641 * symfile.c (simple_read_overlay_table): Update.
3642 (simple_overlay_update): Update.
3643 * symmisc.c (dump_msymbols): Update.
3644 * symtab.c (fixup_section): Update.
3645 (find_pc_sect_line): Update.
3646 (skip_prologue_sal): Update.
3647 (search_symbols): Update.
3648 (print_msymbol_info): Update.
3649 (rbreak_command): Update.
3650 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3651 (completion_list_objc_symbol): Update.
3652 (default_make_symbol_completion_list_break_on): Update.
3653 * tracepoint.c (scope_info): Update.
3654 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3655 (tui_get_begin_asm_address): Update.
3656 * valops.c (find_function_in_inferior): Update.
3657 * value.c (value_static_field): Update.
3658 (value_fn_field): Update.
3660 2014-02-26 Tom Tromey <tromey@redhat.com>
3662 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3663 bound minimal symbols. Move code that knows about minsym
3665 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3667 * minsyms.h (minimal_symbol_upper_bound): Declare.
3668 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3669 minimal_symbol_upper_bound.
3671 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3673 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3674 Use the type's name if its basic type does not have a tag.
3676 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3678 * dwarf2read.c (read_subrange_type): Add comment.
3680 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3682 * dwarf2read.c (update_enumeration_type_from_children): New
3683 function, mostly extracted from process_structure_scope.
3684 (read_enumeration_type): Call update_enumeration_type_from_children.
3685 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3686 and flag_flag_enum fields.
3688 2014-02-26 Pedro Alves <palves@redhat.com>
3690 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3691 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3692 to_xfer_partial method.
3694 2014-02-26 Pedro Alves <palves@redhat.com>
3696 * target.c (complete_target_initialization): Don't install
3697 default_xfer_partial as to_xfer_partial hook.
3699 (update_current_target): Don't INHERIT nor de_fault
3700 deprecated_xfer_memory. Delete de_fault macro.
3701 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3702 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3703 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3706 2014-02-26 Pedro Alves <palves@redhat.com>
3708 * go32-nat.c (my_write_child): New function.
3709 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3710 (go32_xfer_partial): New function.
3711 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3712 Instead install a to_xfer_partial hook.
3714 2014-02-26 Pedro Alves <palves@redhat.com>
3716 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3717 to_xfer_partial helper. Rewrite.
3718 (procfs_xfer_partial): New function.
3719 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3720 Install a to_xfer_partial hook.
3722 2014-02-26 Pedro Alves <palves@redhat.com>
3724 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3725 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3726 (m32r_xfer_partial): New function.
3727 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3728 Install a to_xfer_partial hook.
3730 2014-02-26 Pedro Alves <palves@redhat.com>
3732 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3734 (mips_xfer_partial): New function.
3735 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3736 hook. Install a to_xfer_partial hook.
3738 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3740 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3741 * gdbtypes.c (create_array_type_with_stride): New function,
3742 renaming create_array_type, but with an added parameter
3743 called "bit_stride".
3744 (create_array_type): Re-implement using
3745 create_array_type_with_stride.
3746 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3747 and DW_AT_bit_stride attributes.
3749 2014-02-26 Pedro Alves <palves@redhat.com>
3751 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3752 task-specific breakpoints.
3754 2014-02-25 Pedro Alves <palves@redhat.com>
3756 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3757 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3759 2014-02-25 Stan Shebs <stan@codesourcery.com>
3761 * defs.h: Annotate comments for Doxygen.
3763 2014-02-25 Tom Tromey <tromey@redhat.com>
3765 * target.h (target_ignore): Don't declare.
3766 * target.c (target_ignore): Remove.
3768 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3771 * auto-load.c (auto_load_objfile_script_1): Change filename to
3774 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3776 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3777 documentation. Adjust prototype to match the target_ops
3778 to_xfer_partial method. Adjust implementation accordingly.
3780 2014-02-25 Hui Zhu <hui@codesourcery.com>
3782 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3785 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3787 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3788 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3789 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3790 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3791 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3792 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3793 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3794 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3796 (rl78_register_type): Use a data pointer type for SP and
3797 new pseudo registers mentioned above. Use a 16 bit integer
3798 type for all other register pairs.
3799 (rl78_register_name, rl78_g10_register_name): Update for
3800 new pseudo registers.
3801 (rl78_pseudo_register_read): Likewise.
3802 (rl78_pseudo_register_write): Likewise.
3803 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3804 to the newly added pseudo registers.
3806 2014-02-24 Doug Evans <dje@google.com>
3808 * value.c (record_latest_value): Fix comment.
3809 * printcmd.c (print_command_1): Remove code to handle -1 return from
3810 record_latest_value.
3812 2014-02-24 Pedro Alves <palves@redhat.com>
3814 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3815 deprecated_xfer_memory hook.
3816 (procfs_xfer_partial): Call procfs_xfer_memory instead
3817 of the deprecated_xfer_memory target hook.
3818 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3821 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3823 * windows-nat.c (windows_xfer_shared_libraries): Return
3824 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3825 requested object is TARGET_OBJECT_LIBRARIES.
3827 2014-02-24 Yao Qi <yao@codesourcery.com>
3829 * target.h (enum target_xfer_status)
3830 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3831 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3833 * corefile.c (memory_error_message): User updated.
3834 * exec.c (section_table_read_available_memory): Likewise.
3835 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3836 * target.c (target_xfer_status_to_string): Likewise.
3837 (raw_memory_xfer_partial): Likewise.
3838 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3839 * valops.c (read_value_memory): Likewise.
3840 * exec.h: Update comments.
3842 2014-02-24 Yao Qi <yao@codesourcery.com>
3844 * target.c (target_xfer_status_to_string): Rename argument err
3846 * target.h (target_xfer_status_to_string): Update declaration.
3847 Replace target_xfer_error_to_string with
3848 target_xfer_status_to_string in comment.
3850 2014-02-24 Yao Qi <yao@codesourcery.com>
3852 * mips-linux-nat.c (super_close): Update its type.
3853 (mips_linux_close): Pass 'self' to super_close.
3855 2014-02-24 Yao Qi <yao@codesourcery.com>
3857 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3858 * corefile.c (read_memory): Adjusted.
3859 * target.c (target_write_with_progress): Adjusted.
3861 2014-02-23 Yao Qi <yao@codesourcery.com>
3865 2013-10-25 Yao Qi <yao@codesourcery.com>
3867 * remote.c (remote_traceframe_info): Return early if
3868 traceframe is not selected.
3870 2013-07-19 Yao Qi <yao@codesourcery.com>
3872 * target.c (update_current_target): Change the default action
3873 of 'to_traceframe_info' from tcomplain to return_zero.
3874 * target.h (struct target_ops) <to_traceframe_info>: Add more
3877 2014-02-23 Yao Qi <yao@codesourcery.com>
3879 * valops.c (read_value_memory): Rewrite it. Call
3880 target_xfer_partial in a loop.
3881 * exec.h (section_table_available_memory): Remove declaration.
3882 Move comments to ...
3883 * exec.c (section_table_available_memory): ... here. Make it
3886 2014-02-23 Yao Qi <yao@codesourcery.com>
3888 * exec.c (section_table_read_available_memory): New function.
3889 * exec.h (section_table_read_available_memory): Declare.
3890 * ctf.c (ctf_xfer_partial): Call
3891 section_table_read_available_memory.
3892 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3894 2014-02-23 Yao Qi <yao@codesourcery.com>
3896 * ctf.c (ctf_xfer_partial): Move code to ...
3897 * exec.c (exec_read_partial_read_only): ... it. New function.
3898 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3899 * tracefile.c: Include "exec.h".
3900 * exec.h (exec_read_partial_read_only): Declare.
3902 2014-02-23 Yao Qi <yao@codesourcery.com>
3904 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3905 (tfile_has_memory): Remove.
3906 (init_tfile_ops): Don't set fields to_has_all_memory and
3907 to_has_memory of tfile_ops.
3908 * tracefile.c (tracefile_has_all_memory): New function.
3909 (tracefile_has_memory): New function.
3910 (init_tracefile_ops): Initialize fields to_has_all_memory and
3911 to_has_memory of 'ops'.
3913 2014-02-23 Yao Qi <yao@codesourcery.com>
3915 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3916 (ctf_thread_alive, ctf_get_trace_status): Remove.
3917 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3919 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3920 (tfile_has_stack, tfile_has_registers): Remove.
3921 (tfile_thread_alive): Remove.
3922 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3924 * tracefile.c (tracefile_has_stack): New function.
3925 (tracefile_has_registers): New function.
3926 (tracefile_thread_alive): New function.
3927 (tracefile_get_trace_status): New function.
3928 (init_tracefile_ops): New function.
3929 * tracefile.h (init_tracefile_ops): Declare.
3931 2014-02-23 Yao Qi <yao@codesourcery.com>
3933 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3934 (O_LARGEFILE): Likewise.
3935 (tfile_ops): Likewise.
3936 (TRACE_HEADER_SIZE): Likewise.
3937 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3938 (cur_data_size): Likewise.
3939 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3940 (tfile_close, tfile_files_info): Likewise.
3941 (tfile_get_trace_status): Likewise.
3942 (tfile_get_tracepoint_status): Likewise.
3943 (tfile_get_traceframe_address): Likewise.
3944 (tfile_trace_find, match_blocktype): Likewise.
3945 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3946 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3947 (tfile_get_trace_state_variable_value): Likewise.
3948 (tfile_has_all_memory, tfile_has_memory): Likewise.
3949 (tfile_has_stack, tfile_has_registers): Likewise.
3950 (tfile_thread_alive, build_traceframe_info): Likewise.
3951 (tfile_traceframe_info, init_tfile_ops): Likewise.
3952 (_initialize_tracepoint): Don't call init_tfile_ops
3953 and add_target_with_completer.
3954 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3955 exec.h, completer.h and filenames.h.
3956 (_initialize_tracefile_tfile): New function.
3958 2014-02-23 Yao Qi <yao@codesourcery.com>
3960 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3962 (HFILES_NO_SRCDIR): Add tracefile.h.
3963 * ctf.c: Include "tracefile.h".
3964 * tracefile.h: New file.
3965 * tracefile.c: New file
3966 * tracefile-tfile.c: New file.
3967 * tracepoint.c: Include "tracefile.h".
3968 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3969 (stop_reason_names): Add const.
3970 (trace_file_writer_xfree): Move it to tracefile.c.
3971 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3972 (trace_save_ctf): Likewise.
3973 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3974 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3975 (tfile_write_header, tfile_write_regblock_type): Likewise.
3976 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3977 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3978 (tfile_write_raw_data, tfile_end): Likewise.
3979 (tfile_trace_file_writer_new): Likewise.
3980 (free_uploaded_tp): Make it extern.
3981 (free_uploaded_tsv): Make it extern.
3982 (_initialize_tracepoint): Move code to register command 'tsave'
3984 * tracepoint.h (stop_reason_names): Declare.
3985 (struct trace_frame_write_ops): Move it to tracefile.h.
3986 (struct trace_file_write_ops): Likewise.
3987 (struct trace_file_writer): Likewise.
3988 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3990 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3993 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3995 (get_cores_used_by_process): New parameter num_cores, use it.
3996 (linux_xfer_osdata_processes): Pass num_cores to it.
3997 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4000 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4002 * target.c (memory_xfer_partial): Fix length arg in call to
4003 breakpoint_xfer_memory.
4005 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4008 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4009 number comes after the + or - signs. Adjust length of register
4010 name to be extracted.
4012 2014-02-20 Tom Tromey <tromey@redhat.com>
4014 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4015 (ada_varobj_ops): Mark "extern".
4017 2014-02-20 Tom Tromey <tromey@redhat.com>
4019 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4021 2014-02-20 Doug Evans <xdje42@gmail.com>
4023 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4024 All callers updated.
4025 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4026 All callers updated.
4027 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4028 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4030 2014-02-20 lin zuojian <manjian2006@gmail.com>
4031 Joel Brobecker <brobecker@adacore.com>
4032 Doug Evans <xdje42@gmail.com>
4035 * dwarf2read.c (struct die_info): New member in_process.
4036 (reset_die_in_process): New function.
4037 (process_die): Set it at the start, reset when returning.
4038 (inherit_abstract_dies): Only call process_die if origin_child_die
4039 not already being processed.
4041 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4043 * windows-nat.c (handle_unload_dll): Add function documentation.
4044 (do_initial_windows_stuff): Add comment explaining why we wait
4045 until after inferior initialization has finished before
4046 processing all DLLs.
4048 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4050 * windows-nat.c (get_module_name): Delete.
4051 (windows_get_exec_module_filename): New function, mostly
4052 inspired from get_module_name.
4053 (windows_pid_to_exec_file): Replace call to get_module_name
4054 by call to windows_get_exec_module_filename.
4056 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4058 * windows-nat.c (handle_load_dll): Rewrite this function's
4059 introductory comment. Remove code using get_module_name
4060 to get the DLL's name.
4062 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4064 * windows-nat.c (get_windows_debug_event): Ignore
4065 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4066 if windows_initialization_done == 0.
4067 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4068 Adjust implementation to always load all DLLs.
4069 (do_initial_windows_stuff): Replace call to
4070 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4072 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4074 * windows-nat.c (_initialize_windows_nat): Deprecate the
4075 "dll-symbols" command. Turn the "add-shared-symbol-files"
4076 and "assf" aliases into commands, and deprecate them as well.
4077 * NEWS: Add entry explaining that "dll-symbols" and its two
4078 aliases are now deprecated.
4080 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4082 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4083 new-line in debug string. Remove trailing spaces.
4085 2014-02-19 Stan Shebs <stan@codesourcery.com>
4087 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4089 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4091 * NEWS: Add entry for the new feature
4092 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4095 2014-02-19 Stan Shebs <stan@codesourcery.com>
4097 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4099 2014-02-19 Pedro Alves <palves@redhat.com>
4101 * common/ptid.h (struct ptid): Mention that process_stratum
4102 targets should prefer ptid.lwp.
4104 2014-02-19 Pedro Alves <palves@redhat.com>
4106 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4107 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4108 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4109 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4110 store remote thread ids rather than ptid.tid.
4111 (_initialize_remote): Adjust.
4113 2014-02-19 Tom Tromey <tromey@redhat.com>
4115 * target.c (target_get_unwinder): Rewrite.
4116 (target_get_tailcall_unwinder): Rewrite.
4117 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4118 (record_btrace_to_get_tailcall_unwinder): New function.
4119 (init_record_btrace_ops): Update.
4120 * target.h (struct target_ops) <to_get_unwinder,
4121 to_get_tailcall_unwinder>: Now function pointers. Use
4122 TARGET_DEFAULT_RETURN.
4124 2014-02-19 Tom Tromey <tromey@redhat.com>
4126 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4128 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4130 2014-02-19 Tom Tromey <tromey@redhat.com>
4132 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4134 * target-delegates.c: Rebuild.
4135 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4136 TARGET_DEFAULT_FUNC.
4137 * target.c (default_target_decr_pc_after_break): Rename from
4138 forward_target_decr_pc_after_break. Simplify.
4139 (target_decr_pc_after_break): Rely on delegation.
4141 2014-02-19 Tom Tromey <tromey@redhat.com>
4143 * target.c (update_current_target): Do not INHERIT to_doc or
4144 to_magic. Do not de_fault to_open or to_close.
4146 2014-02-19 Tom Tromey <tromey@redhat.com>
4148 * gcore.h (objfile_find_memory_regions): Declare.
4149 * gcore.c (objfile_find_memory_regions): No longer static. Add
4151 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4152 * exec.c: Include gcore.h.
4153 (exec_set_find_memory_regions): Remove.
4154 (exec_find_memory_regions): Remove.
4155 (exec_do_find_memory_regions): Remove.
4156 (init_exec_ops): Update.
4157 * defs.h (exec_set_find_memory_regions): Remove.
4159 2014-02-19 Tom Tromey <tromey@redhat.com>
4161 * target-delegates.c: Rebuild.
4162 * target.h (struct target_ops) <to_extra_thread_info,
4163 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4164 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4165 not 0, in TARGET_DEFAULT_RETURN.
4167 2014-02-19 Tom Tromey <tromey@redhat.com>
4169 * target.c (complete_target_initialization): Remove casts. Use
4170 return_zero_has_execution.
4171 (return_zero): Add "ignore" argument.
4172 (return_zero_has_execution): New function.
4173 (init_dummy_target): Remove casts. Use
4174 return_zero_has_execution.
4176 2014-02-19 Tom Tromey <tromey@redhat.com>
4178 * target.c (update_current_target): Update comments. Do not
4181 2014-02-19 Tom Tromey <tromey@redhat.com>
4183 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4185 * corelow.c (core_read_description): Delegate when needed.
4186 * remote.c (remote_read_description): Delegate when needed.
4187 * target-delegates.c: Rebuild.
4188 * target.c (target_read_description): Rewrite.
4189 * target.h (struct target_ops) <to_read_description>: Update
4190 comment. Use TARGET_DEFAULT_RETURN.
4192 2014-02-19 Tom Tromey <tromey@redhat.com>
4194 * target-delegates.c: Rebuild.
4195 * target.c (update_current_target): Don't inherit or default
4197 (find_default_run_target): Check against delegate_can_run.
4198 * target.h (struct target_ops) <to_can_run>: Use
4199 TARGET_DEFAULT_RETURN.
4201 2014-02-19 Tom Tromey <tromey@redhat.com>
4203 * target-delegates.c: Rebuild.
4204 * target.c (target_disconnect): Unconditionally delegate.
4205 * target.h (struct target_ops) <to_disconnect>: Use
4206 TARGET_DEFAULT_NORETURN.
4208 2014-02-19 Tom Tromey <tromey@redhat.com>
4210 * record.c (record_stop): Unconditionally delegate.
4211 * target-delegates.c: Rebuild.
4212 * target.c (target_stop_recording): Unconditionally delegate.
4213 * target.h (struct target_ops) <to_stop_recording>: Use
4214 TARGET_DEFAULT_IGNORE.
4216 2014-02-19 Tom Tromey <tromey@redhat.com>
4218 * target-delegates.c: Rebuild.
4219 * target.c (target_enable_btrace): Unconditionally delegate.
4220 * target.h (struct target_ops) <to_enable_btrace>: Use
4221 TARGET_DEFAULT_NORETURN.
4223 2014-02-19 Tom Tromey <tromey@redhat.com>
4225 * target-delegates.c: Rebuild.
4226 * target.c (target_read_btrace): Unconditionally delegate.
4227 * target.h (struct target_ops) <to_read_btrace>: Use
4228 TARGET_DEFAULT_NORETURN.
4230 2014-02-19 Tom Tromey <tromey@redhat.com>
4232 * target-delegates.c: Rebuild.
4233 * target.c (target_teardown_btrace): Unconditionally delegate.
4234 * target.h (struct target_ops) <to_teardown_btrace>: Use
4235 TARGET_DEFAULT_NORETURN.
4237 2014-02-19 Tom Tromey <tromey@redhat.com>
4239 * target-delegates.c: Rebuild.
4240 * target.c (target_disable_btrace): Unconditionally delegate.
4241 * target.h (struct target_ops) <to_disable_btrace>: Use
4242 TARGET_DEFAULT_NORETURN.
4244 2014-02-19 Tom Tromey <tromey@redhat.com>
4246 * target-delegates.c: Rebuild.
4247 * target.c (default_search_memory): New function.
4248 (simple_search_memory): Update comment.
4249 (target_search_memory): Unconditionally delegate.
4250 * target.h (struct target_ops) <to_search_memory>: Use
4251 TARGET_DEFAULT_FUNC.
4253 2014-02-19 Tom Tromey <tromey@redhat.com>
4255 * auxv.c (default_auxv_parse): No longer static.
4256 (target_auxv_parse): Unconditionally delegate.
4257 * auxv.h (default_auxv_parse): Declare.
4258 * target-delegates.c: Rebuild.
4259 * target.c: Include auxv.h.
4260 * target.h (struct target_ops) <to_auxv_parse>: Use
4261 TARGET_DEFAULT_FUNC.
4263 2014-02-19 Tom Tromey <tromey@redhat.com>
4265 * target-delegates.c: Rebuild.
4266 * target.c (target_memory_map): Unconditionally delegate.
4267 * target.h (struct target_ops) <to_memory_map>: Use
4268 TARGET_DEFAULT_RETURN.
4270 2014-02-19 Tom Tromey <tromey@redhat.com>
4272 * target-delegates.c: Rebuild.
4273 * target.c (target_thread_alive): Unconditionally delegate.
4274 * target.h (struct target_ops) <to_thread_alive>: Use
4275 TARGET_DEFAULT_RETURN.
4277 2014-02-19 Tom Tromey <tromey@redhat.com>
4279 * target-delegates.c: Rebuild.
4280 * target.c (target_save_record): Unconditionally delegate.
4281 * target.h (struct target_ops) <to_save_record>: Use
4282 TARGET_DEFAULT_NORETURN.
4284 2014-02-19 Tom Tromey <tromey@redhat.com>
4286 * target-delegates.c: Rebuild.
4287 * target.c (target_delete_record): Unconditionally delegate.
4288 * target.h (struct target_ops) <to_delete_record>: Use
4289 TARGET_DEFAULT_NORETURN.
4291 2014-02-19 Tom Tromey <tromey@redhat.com>
4293 * target-delegates.c: Rebuild.
4294 * target.c (target_record_is_replaying): Unconditionally
4296 * target.h (struct target_ops) <to_record_is_replaying>: Use
4297 TARGET_DEFAULT_RETURN.
4299 2014-02-19 Tom Tromey <tromey@redhat.com>
4301 * target-delegates.c: Rebuild.
4302 * target.c (target_goto_record_begin): Unconditionally delegate.
4303 * target.h (struct target_ops) <to_goto_record_begin>: Use
4304 TARGET_DEFAULT_NORETURN.
4306 2014-02-19 Tom Tromey <tromey@redhat.com>
4308 * target-delegates.c: Rebuild.
4309 * target.c (target_goto_record_end): Unconditionally delegate.
4310 * target.h (struct target_ops) <to_goto_record_end>: Use
4311 TARGET_DEFAULT_NORETURN.
4313 2014-02-19 Tom Tromey <tromey@redhat.com>
4315 * target-delegates.c: Rebuild.
4316 * target.c (target_goto_record): Unconditionally delegate.
4317 * target.h (struct target_ops) <to_goto_record>: Use
4318 TARGET_DEFAULT_NORETURN.
4320 2014-02-19 Tom Tromey <tromey@redhat.com>
4322 * target-delegates.c: Rebuild.
4323 * target.c (target_insn_history): Unconditionally delegate.
4324 * target.h (struct target_ops) <to_insn_history>: Use
4325 TARGET_DEFAULT_NORETURN.
4327 2014-02-19 Tom Tromey <tromey@redhat.com>
4329 * target-delegates.c: Rebuild.
4330 * target.c (target_insn_history_from): Unconditionally delegate.
4331 * target.h (struct target_ops) <to_insn_history_from>: Use
4332 TARGET_DEFAULT_NORETURN.
4334 2014-02-19 Tom Tromey <tromey@redhat.com>
4336 * target-delegates.c: Rebuild.
4337 * target.c (target_insn_history_range): Unconditionally delegate.
4338 * target.h (struct target_ops) <to_insn_history_range>: Use
4339 TARGET_DEFAULT_NORETURN.
4341 2014-02-19 Tom Tromey <tromey@redhat.com>
4343 * target-delegates.c: Rebuild.
4344 * target.c (target_call_history): Unconditionally delegate.
4345 * target.h (struct target_ops) <to_call_history>: Use
4346 TARGET_DEFAULT_NORETURN.
4348 2014-02-19 Tom Tromey <tromey@redhat.com>
4350 * target-delegates.c: Rebuild.
4351 * target.c (target_call_history_from): Unconditionally delegate.
4352 * target.h (struct target_ops) <to_call_history_from>: Use
4353 TARGET_DEFAULT_NORETURN.
4355 2014-02-19 Tom Tromey <tromey@redhat.com>
4357 * target-delegates.c: Rebuild.
4358 * target.c (target_call_history_range): Unconditionally delegate.
4359 * target.h (struct target_ops) <to_call_history_range>: Use
4360 TARGET_DEFAULT_NORETURN.
4362 2014-02-19 Tom Tromey <tromey@redhat.com>
4364 * target-delegates.c: Rebuild.
4365 * target.c (target_verify_memory): Unconditionally delegate.
4366 * target.h (struct target_ops) <to_verify_memory>: Use
4367 TARGET_DEFAULT_NORETURN.
4369 2014-02-19 Tom Tromey <tromey@redhat.com>
4371 * target-delegates.c: Rebuild.
4372 * target.c (target_core_of_thread): Unconditionally delegate.
4373 * target.h (struct target_ops) <to_core_of_thread>: Use
4374 TARGET_DEFAULT_RETURN.
4376 2014-02-19 Tom Tromey <tromey@redhat.com>
4378 * target-delegates.c: Rebuild.
4379 * target.c (target_flash_done): Unconditionally delegate.
4380 * target.h (struct target_ops) <to_flash_done>: Use
4381 TARGET_DEFAULT_NORETURN.
4383 2014-02-19 Tom Tromey <tromey@redhat.com>
4385 * target-delegates.c: Rebuild.
4386 * target.c (target_flash_erase): Unconditionally delegate.
4387 * target.h (struct target_ops) <to_flash_erase>: Use
4388 TARGET_DEFAULT_NORETURN.
4390 2014-02-19 Tom Tromey <tromey@redhat.com>
4392 * target-delegates.c: Rebuild.
4393 * target.c (target_get_section_table): Unconditionally delegate.
4394 * target.h (struct target_ops) <to_get_section_table>: Use
4395 TARGET_DEFAULT_RETURN.
4397 2014-02-19 Tom Tromey <tromey@redhat.com>
4399 * target-delegates.c: Rebuild.
4400 * target.c (target_pid_to_str): Unconditionally delegate.
4401 (init_dummy_target): Don't initialize to_pid_to_str.
4402 (default_pid_to_str): Rename from dummy_pid_to_str.
4403 * target.h (struct target_ops) <to_pid_to_str>: Use
4404 TARGET_DEFAULT_FUNC.
4406 2014-02-19 Tom Tromey <tromey@redhat.com>
4408 * target-delegates.c: Rebuild.
4409 * target.c (target_find_new_threads): Unconditionally delegate.
4410 * target.h (struct target_ops) <to_find_new_threads>: Use
4411 TARGET_DEFAULT_RETURN.
4413 2014-02-19 Tom Tromey <tromey@redhat.com>
4415 * target-delegates.c: Rebuild.
4416 * target.c (target_program_signals): Unconditionally delegate.
4417 * target.h (struct target_ops) <to_program_signals>: Use
4418 TARGET_DEFAULT_IGNORE.
4420 2014-02-19 Tom Tromey <tromey@redhat.com>
4422 * target-delegates.c: Rebuild.
4423 * target.c (target_pass_signals): Unconditionally delegate.
4424 * target.h (struct target_ops) <to_pass_signals>: Use
4425 TARGET_DEFAULT_IGNORE.
4427 2014-02-19 Tom Tromey <tromey@redhat.com>
4429 * target-delegates.c: Rebuild.
4430 * target.c (default_mourn_inferior): New function.
4431 (target_mourn_inferior): Unconditionally delegate.
4432 * target.h (struct target_ops) <to_mourn_inferior>: Use
4433 TARGET_DEFAULT_FUNC.
4435 2014-02-19 Tom Tromey <tromey@redhat.com>
4437 * target-delegates.c: Rebuild.
4438 * target.c (default_follow_fork): New function.
4439 (target_follow_fork): Unconditionally delegate.
4440 * target.h (struct target_ops) <to_follow_fork>: Use
4441 TARGET_DEFAULT_FUNC.
4443 2014-02-19 Tom Tromey <tromey@redhat.com>
4445 * target-delegates.c: Rebuild.
4446 * target.c (target_kill): Unconditionally delegate.
4447 * target.h (struct target_ops) <to_kill>: Use
4448 TARGET_DEFAULT_NORETURN.
4450 2014-02-19 Tom Tromey <tromey@redhat.com>
4452 * target-delegates.c: Rebuild.
4453 * target.c (target_masked_watch_num_registers): Unconditionally
4455 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4456 Use TARGET_DEFAULT_RETURN.
4458 2014-02-19 Tom Tromey <tromey@redhat.com>
4460 * target-delegates.c: Rebuild.
4461 * target.c (target_remove_mask_watchpoint): Unconditionally
4463 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4464 TARGET_DEFAULT_RETURN.
4466 2014-02-19 Tom Tromey <tromey@redhat.com>
4468 * target-delegates.c: Rebuild.
4469 * target.c (target_insert_mask_watchpoint): Unconditionally
4471 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4472 TARGET_DEFAULT_RETURN.
4474 2014-02-19 Tom Tromey <tromey@redhat.com>
4476 * target-delegates.c: Rebuild.
4477 * target.c (target_ranged_break_num_registers): Unconditionally
4479 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4480 Use TARGET_DEFAULT_RETURN.
4482 2014-02-19 Tom Tromey <tromey@redhat.com>
4484 * target-delegates.c: Rebuild.
4485 * target.c (target_fetch_registers): Unconditionally delegate.
4486 * target.h (struct target_ops) <to_fetch_registers>: Use
4487 TARGET_DEFAULT_NORETURN.
4489 2014-02-19 Tom Tromey <tromey@redhat.com>
4491 * target-delegates.c: Rebuild.
4492 * target.c (update_current_target): Don't inherit or default
4494 * target.h (struct target_ops) <to_stop>: Use
4495 TARGET_DEFAULT_IGNORE.
4497 2014-02-19 Tom Tromey <tromey@redhat.com>
4499 * target-delegates.c: Rebuild.
4500 * target.c (update_current_target): Don't inherit or default
4501 to_can_run_breakpoint_commands.
4502 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4503 Use TARGET_DEFAULT_RETURN.
4505 2014-02-19 Tom Tromey <tromey@redhat.com>
4507 * target-delegates.c: Rebuild.
4508 * target.c (update_current_target): Don't inherit or default
4509 to_supports_evaluation_of_breakpoint_conditions.
4510 * target.h (struct target_ops)
4511 <to_supports_evaluation_of_breakpoint_conditions>: Use
4512 TARGET_DEFAULT_RETURN.
4514 2014-02-19 Tom Tromey <tromey@redhat.com>
4516 * target-delegates.c: Rebuild.
4517 * target.c (update_current_target): Don't inherit or default
4518 to_augmented_libraries_svr4_read.
4519 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4520 Use TARGET_DEFAULT_RETURN.
4522 2014-02-19 Tom Tromey <tromey@redhat.com>
4524 * target-delegates.c: Rebuild.
4525 * target.c (update_current_target): Don't inherit or default
4527 * target.h (struct target_ops) <to_can_use_agent>: Use
4528 TARGET_DEFAULT_RETURN.
4530 2014-02-19 Tom Tromey <tromey@redhat.com>
4532 * target-delegates.c: Rebuild.
4533 * target.c (update_current_target): Don't inherit or default
4535 * target.h (struct target_ops) <to_use_agent>: Use
4536 TARGET_DEFAULT_NORETURN.
4538 2014-02-19 Tom Tromey <tromey@redhat.com>
4540 * target-delegates.c: Rebuild.
4541 * target.c (update_current_target): Don't inherit or default
4543 (return_null): Remove.
4544 * target.h (struct target_ops) <to_traceframe_info>: Use
4545 TARGET_DEFAULT_RETURN.
4547 2014-02-19 Tom Tromey <tromey@redhat.com>
4549 * target-delegates.c: Rebuild.
4550 * target.c (update_current_target): Don't inherit or default
4551 to_static_tracepoint_markers_by_strid.
4552 * target.h (struct target_ops)
4553 <to_static_tracepoint_markers_by_strid>: Use
4554 TARGET_DEFAULT_NORETURN.
4556 2014-02-19 Tom Tromey <tromey@redhat.com>
4558 * target-delegates.c: Rebuild.
4559 * target.c (update_current_target): Don't inherit or default
4560 to_static_tracepoint_marker_at.
4561 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4562 Use TARGET_DEFAULT_RETURN.
4564 2014-02-19 Tom Tromey <tromey@redhat.com>
4566 * target-delegates.c: Rebuild.
4567 * target.c (update_current_target): Don't inherit or default
4569 * target.h (struct target_ops) <to_set_permissions>: Use
4570 TARGET_DEFAULT_IGNORE.
4572 2014-02-19 Tom Tromey <tromey@redhat.com>
4574 * target-delegates.c: Rebuild.
4575 * target.c (update_current_target): Don't inherit or default
4577 * target.h (struct target_ops) <to_get_tib_address>: Use
4578 TARGET_DEFAULT_NORETURN.
4580 2014-02-19 Tom Tromey <tromey@redhat.com>
4582 * target-delegates.c: Rebuild.
4583 * target.c (update_current_target): Don't inherit or default
4585 * target.h (struct target_ops) <to_set_trace_notes>: Use
4586 TARGET_DEFAULT_RETURN.
4588 2014-02-19 Tom Tromey <tromey@redhat.com>
4590 * target-delegates.c: Rebuild.
4591 * target.c (update_current_target): Don't initialize
4592 to_set_trace_buffer_size.
4593 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4594 TARGET_DEFAULT_IGNORE.
4596 2014-02-19 Tom Tromey <tromey@redhat.com>
4598 * target-delegates.c: Rebuild.
4599 * target.c (update_current_target): Don't inherit or default
4600 to_set_circular_trace_buffer.
4601 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4602 TARGET_DEFAULT_IGNORE.
4604 2014-02-19 Tom Tromey <tromey@redhat.com>
4606 * target-delegates.c: Rebuild.
4607 * target.c (update_current_target): Don't inherit or default
4608 to_set_disconnected_tracing.
4609 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4610 TARGET_DEFAULT_IGNORE.
4612 2014-02-19 Tom Tromey <tromey@redhat.com>
4614 * target-delegates.c: Rebuild.
4615 * target.c (update_current_target): Don't inherit or default
4616 to_get_min_fast_tracepoint_insn_len.
4617 (return_minus_one): Remove.
4618 * target.h (struct target_ops)
4619 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4621 2014-02-19 Tom Tromey <tromey@redhat.com>
4623 * target-delegates.c: Rebuild.
4624 * target.c (update_current_target): Don't inherit or default
4625 to_get_raw_trace_data.
4626 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4627 TARGET_DEFAULT_NORETURN.
4629 2014-02-19 Tom Tromey <tromey@redhat.com>
4631 * target-delegates.c: Rebuild.
4632 * target.c (update_current_target): Don't inherit or default
4633 to_upload_trace_state_variables.
4634 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4635 Use TARGET_DEFAULT_RETURN.
4637 2014-02-19 Tom Tromey <tromey@redhat.com>
4639 * target-delegates.c: Rebuild.
4640 * target.c (update_current_target): Don't inherit or default
4641 to_upload_tracepoints.
4642 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4643 TARGET_DEFAULT_RETURN.
4645 2014-02-19 Tom Tromey <tromey@redhat.com>
4647 * target-delegates.c: Rebuild.
4648 * target.c (update_current_target): Don't inherit or default
4650 * target.h (struct target_ops) <to_save_trace_data>: Use
4651 TARGET_DEFAULT_NORETURN.
4653 2014-02-19 Tom Tromey <tromey@redhat.com>
4655 * target-delegates.c: Rebuild.
4656 * target.c (update_current_target): Don't inherit or default
4657 to_get_trace_state_variable_value.
4658 * target.h (struct target_ops)
4659 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4661 2014-02-19 Tom Tromey <tromey@redhat.com>
4663 * target-delegates.c: Rebuild.
4664 * target.c (update_current_target): Don't inherit or default
4666 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4668 2014-02-19 Tom Tromey <tromey@redhat.com>
4670 * target-delegates.c: Rebuild.
4671 * target.c (update_current_target): Don't inherit or default
4673 * target.h (struct target_ops) <to_trace_stop>: Use
4674 TARGET_DEFAULT_NORETURN.
4676 2014-02-19 Tom Tromey <tromey@redhat.com>
4678 * target-delegates.c: Rebuild.
4679 * target.c (update_current_target): Don't inherit or default
4680 to_get_tracepoint_status.
4681 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4682 TARGET_DEFAULT_NORETURN.
4684 2014-02-19 Tom Tromey <tromey@redhat.com>
4686 * target-delegates.c: Rebuild.
4687 * target.c (update_current_target): Don't inherit or default
4688 to_get_trace_status.
4689 * target.h (struct target_ops) <to_get_trace_status>: Use
4690 TARGET_DEFAULT_RETURN.
4692 2014-02-19 Tom Tromey <tromey@redhat.com>
4694 * target-delegates.c: Rebuild.
4695 * target.c (update_current_target): Don't inherit or default
4697 * target.h (struct target_ops) <to_trace_start>: Use
4698 TARGET_DEFAULT_NORETURN.
4700 2014-02-19 Tom Tromey <tromey@redhat.com>
4702 * target-delegates.c: Rebuild.
4703 * target.c (update_current_target): Don't inherit or default
4704 to_trace_set_readonly_regions.
4705 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4706 Use TARGET_DEFAULT_NORETURN.
4708 2014-02-19 Tom Tromey <tromey@redhat.com>
4710 * target-delegates.c: Rebuild.
4711 * target.c (update_current_target): Don't inherit or default
4712 to_disable_tracepoint.
4713 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4714 TARGET_DEFAULT_NORETURN.
4716 2014-02-19 Tom Tromey <tromey@redhat.com>
4718 * target-delegates.c: Rebuild.
4719 * target.c (update_current_target): Don't inherit or default
4720 to_enable_tracepoint.
4721 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4722 TARGET_DEFAULT_NORETURN.
4724 2014-02-19 Tom Tromey <tromey@redhat.com>
4726 * target-delegates.c: Rebuild.
4727 * target.c (update_current_target): Don't inherit or default
4728 to_download_trace_state_variable.
4729 * target.h (struct target_ops) <to_download_trace_state_variable>:
4730 Use TARGET_DEFAULT_NORETURN.
4732 2014-02-19 Tom Tromey <tromey@redhat.com>
4734 * target-delegates.c: Rebuild.
4735 * target.c (update_current_target): Don't inherit or default
4736 to_can_download_tracepoint.
4737 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4738 TARGET_DEFAULT_RETURN.
4740 2014-02-19 Tom Tromey <tromey@redhat.com>
4742 * target-delegates.c: Rebuild.
4743 * target.c (update_current_target): Don't inherit or default
4744 to_download_tracepoint.
4745 * target.h (struct target_ops) <to_download_tracepoint>: Use
4746 TARGET_DEFAULT_NORETURN.
4748 2014-02-19 Tom Tromey <tromey@redhat.com>
4750 * target-delegates.c: Rebuild.
4751 * target.c (update_current_target): Don't inherit or default
4753 * target.h (struct target_ops) <to_trace_init>: Use
4754 TARGET_DEFAULT_RETURN.
4756 2014-02-19 Tom Tromey <tromey@redhat.com>
4758 * target-delegates.c: Rebuild.
4759 * target.c (update_current_target): Don't inherit or default
4760 to_supports_string_tracing.
4761 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4762 TARGET_DEFAULT_RETURN.
4764 2014-02-19 Tom Tromey <tromey@redhat.com>
4766 * target-delegates.c: Rebuild.
4767 * target.c (update_current_target): Don't inherit or default
4768 to_supports_enable_disable_tracepoint.
4769 * target.h (struct target_ops)
4770 <to_supports_enable_disable_tracepoint>: Use
4771 TARGET_DEFAULT_RETURN.
4773 2014-02-19 Tom Tromey <tromey@redhat.com>
4775 * target-delegates.c: Rebuild.
4776 * target.c (update_current_target): Don't inherit or default
4777 to_supports_multi_process.
4778 * target.h (struct target_ops) <to_supports_multi_process>: Use
4779 TARGET_DEFAULT_RETURN.
4781 2014-02-19 Tom Tromey <tromey@redhat.com>
4783 * target-delegates.c: Rebuild.
4784 * target.c (update_current_target): Don't inherit or default
4785 to_get_ada_task_ptid.
4786 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4787 TARGET_DEFAULT_FUNC.
4789 2014-02-19 Tom Tromey <tromey@redhat.com>
4791 * target-delegates.c: Rebuild.
4792 * target.c (update_current_target): Don't inherit or default
4793 to_thread_architecture.
4794 * target.h (struct target_ops) <to_thread_architecture>: Use
4795 TARGET_DEFAULT_FUNC.
4797 2014-02-19 Tom Tromey <tromey@redhat.com>
4799 * target-delegates.c: Rebuild.
4800 * target.c (update_current_target): Don't inherit or default
4801 to_execution_direction.
4802 * target.h (struct target_ops) <to_execution_direction>: Use
4803 TARGET_DEFAULT_FUNC.
4805 2014-02-19 Tom Tromey <tromey@redhat.com>
4807 * target-delegates.c: Rebuild.
4808 * target.c (update_current_target): Don't inherit or default
4809 to_can_execute_reverse.
4810 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4811 TARGET_DEFAULT_RETURN.
4812 (target_can_execute_reverse): Unconditionally delegate.
4814 2014-02-19 Tom Tromey <tromey@redhat.com>
4816 * target-delegates.c: Rebuild.
4817 * target.c (update_current_target): Don't inherit or default
4819 (dummy_goto_bookmark): Remove.
4820 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4821 * target.h (struct target_ops) <to_goto_bookmark>: Use
4822 TARGET_DEFAULT_NORETURN.
4824 2014-02-19 Tom Tromey <tromey@redhat.com>
4826 * target-delegates.c: Rebuild.
4827 * target.c (update_current_target): Don't inherit or default
4829 (dummy_get_bookmark): Remove.
4830 (init_dummy_target): Don't inherit or default to_get_bookmark.
4831 * target.h (struct target_ops) <to_get_bookmark>: Use
4832 TARGET_DEFAULT_NORETURN
4834 2014-02-19 Tom Tromey <tromey@redhat.com>
4836 * target-delegates.c: Rebuild.
4837 * target.c (update_current_target): Don't inherit or default
4838 to_make_corefile_notes.
4839 (init_dummy_target): Don't initialize to_make_corefile_notes.
4840 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4841 TARGET_DEFAULT_FUNC.
4843 2014-02-19 Tom Tromey <tromey@redhat.com>
4845 * target-delegates.c: Rebuild.
4846 * target.c (update_current_target): Don't inherit or default
4847 to_find_memory_regions.
4848 (init_dummy_target): Don't initialize to_find_memory_regions.
4849 * target.h (struct target_ops) <to_find_memory_regions>: Use
4850 TARGET_DEFAULT_FUNC.
4852 2014-02-19 Tom Tromey <tromey@redhat.com>
4854 * target-delegates.c: Rebuild.
4855 * target.c (update_current_target): Don't inherit or default
4857 * target.h (struct target_ops) <to_log_command>: Use
4858 TARGET_DEFAULT_IGNORE.
4859 (target_log_command): Unconditionally delegate.
4861 2014-02-19 Tom Tromey <tromey@redhat.com>
4863 * target-delegates.c: Rebuild.
4864 * target.c (update_current_target): Don't inherit or default
4865 to_pid_to_exec_file.
4866 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4867 TARGET_DEFAULT_RETURN.
4869 2014-02-19 Tom Tromey <tromey@redhat.com>
4871 * target-delegates.c: Rebuild.
4872 * target.c (update_current_target): Don't inherit or default
4874 (target_thread_name): Unconditionally delegate.
4875 * target.h (struct target_ops) <to_thread_name>: Use
4876 TARGET_DEFAULT_RETURN.
4878 2014-02-19 Tom Tromey <tromey@redhat.com>
4880 * target-delegates.c: Rebuild.
4881 * target.c (update_current_target): Don't inherit or default
4882 to_extra_thread_info.
4883 * target.h (struct target_ops) <to_extra_thread_info>: Use
4884 TARGET_DEFAULT_RETURN.
4886 2014-02-19 Tom Tromey <tromey@redhat.com>
4888 * target-delegates.c: Rebuild.
4889 * target.c (update_current_target): Don't inherit or default
4891 * target.h (struct target_ops) <to_has_exited>: Use
4892 TARGET_DEFAULT_RETURN..
4894 2014-02-19 Tom Tromey <tromey@redhat.com>
4896 * target-delegates.c: Rebuild.
4897 * target.c (update_current_target): Don't inherit or default
4898 to_set_syscall_catchpoint.
4899 (return_one): Remove.
4900 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4901 TARGET_DEFAULT_RETURN.
4903 2014-02-19 Tom Tromey <tromey@redhat.com>
4905 * target-delegates.c: Rebuild.
4906 * target.c (update_current_target): Don't inherit or default
4907 to_insert_exec_catchpoint.
4908 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4909 TARGET_DEFAULT_RETURN.
4911 2014-01-08 Tom Tromey <tromey@redhat.com>
4913 * target-delegates.c: Rebuild.
4914 * target.c (update_current_target): Don't inherit or default
4915 to_insert_exec_catchpoint.
4916 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4917 TARGET_DEFAULT_RETURN.
4919 2014-02-19 Tom Tromey <tromey@redhat.com>
4921 * target-delegates.c: Rebuild.
4922 * target.c (update_current_target): Don't inherit or default
4923 to_remove_vfork_catchpoint.
4924 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4925 TARGET_DEFAULT_RETURN.
4927 2014-02-19 Tom Tromey <tromey@redhat.com>
4929 * target-delegates.c: Rebuild.
4930 * target.c (update_current_target): Don't inherit or default
4931 to_insert_vfork_catchpoint.
4932 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4933 TARGET_DEFAULT_RETURN.
4935 2014-02-19 Tom Tromey <tromey@redhat.com>
4937 * target-delegates.c: Rebuild.
4938 * target.c (update_current_target): Don't inherit or default
4939 to_remove_fork_catchpoint.
4940 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4941 TARGET_DEFAULT_RETURN.
4943 2014-02-19 Tom Tromey <tromey@redhat.com>
4945 * target-delegates.c: Rebuild.
4946 * target.c (update_current_target): Don't inherit or default
4947 to_insert_fork_catchpoint.
4948 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4949 TARGET_DEFAULT_RETURN.
4951 2014-02-19 Tom Tromey <tromey@redhat.com>
4953 * target-delegates.c: Rebuild.
4954 * target.c (update_current_target): Don't inherit or default
4955 to_post_startup_inferior.
4956 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4957 TARGET_DEFAULT_IGNORE.
4959 2014-02-19 Tom Tromey <tromey@redhat.com>
4961 * target-delegates.c: Rebuild.
4962 * target.c (update_current_target): Don't inherit or default
4964 * target.h (struct target_ops) <to_load>: Use
4965 TARGET_DEFAULT_NORETURN.
4967 2014-02-19 Tom Tromey <tromey@redhat.com>
4969 * target-delegates.c: Rebuild.
4970 * target.c (update_current_target): Don't inherit or default
4972 * target.h (struct target_ops) <to_terminal_info>: Use
4973 TARGET_DEFAULT_FUNC.
4975 2014-02-19 Tom Tromey <tromey@redhat.com>
4977 * target-delegates.c: Rebuild.
4978 * target.c (update_current_target): Don't inherit or default
4979 to_terminal_save_ours.
4980 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4981 TARGET_DEFAULT_IGNORE.
4983 2014-02-19 Tom Tromey <tromey@redhat.com>
4985 * target-delegates.c: Rebuild.
4986 * target.c (update_current_target): Don't inherit or default
4988 * target.h (struct target_ops) <to_terminal_ours>: Use
4989 TARGET_DEFAULT_IGNORE.
4991 2014-02-19 Tom Tromey <tromey@redhat.com>
4993 * target-delegates.c: Rebuild.
4994 * target.c (update_current_target): Don't inherit or default
4995 to_terminal_ours_for_output.
4996 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4997 TARGET_DEFAULT_IGNORE.
4999 2014-02-19 Tom Tromey <tromey@redhat.com>
5001 * target-delegates.c: Rebuild.
5002 * target.c (update_current_target): Don't inherit or default
5003 to_terminal_inferior.
5004 * target.h (struct target_ops) <to_terminal_inferior>: Use
5005 TARGET_DEFAULT_IGNORE.
5007 2014-02-19 Tom Tromey <tromey@redhat.com>
5009 * target-delegates.c: Rebuild.
5010 * target.c (update_current_target): Don't inherit or default
5012 * target.h (struct target_ops) <to_terminal_init>: Use
5013 TARGET_DEFAULT_IGNORE.
5015 2014-02-19 Tom Tromey <tromey@redhat.com>
5017 * target-delegates.c: Rebuild.
5018 * target.c (update_current_target): Don't inherit or default
5019 to_can_accel_watchpoint_condition.
5020 * target.h (struct target_ops)
5021 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5023 2014-02-19 Tom Tromey <tromey@redhat.com>
5025 * target-delegates.c: Rebuild.
5026 * target.c (update_current_target): Don't inherit or default
5027 to_region_ok_for_hw_watchpoint.
5028 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5029 Use TARGET_DEFAULT_FUNC.
5031 2014-02-19 Tom Tromey <tromey@redhat.com>
5033 * target-delegates.c: Rebuild.
5034 * target.c (update_current_target): Don't inherit or default
5035 to_watchpoint_addr_within_range.
5036 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5037 Use TARGET_DEFAULT_FUNC.
5039 2014-02-19 Tom Tromey <tromey@redhat.com>
5041 * target-delegates.c: Rebuild.
5042 * target.c (update_current_target): Don't inherit or default
5043 to_remove_watchpoint.
5044 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5045 TARGET_DEFAULT_NORETURN.
5047 2014-02-19 Tom Tromey <tromey@redhat.com>
5049 * target-delegates.c: Rebuild.
5050 * target.c (update_current_target): Don't inherit or default
5051 to_insert_watchpoint.
5052 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5053 TARGET_DEFAULT_RETURN.
5055 2014-02-19 Tom Tromey <tromey@redhat.com>
5057 * target-delegates.c: Rebuild.
5058 * target.c (update_current_target): Don't inherit or default
5059 to_remove_hw_breakpoint.
5060 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5061 TARGET_DEFAULT_RETURN.
5063 2014-02-19 Tom Tromey <tromey@redhat.com>
5065 * target-delegates.c: Rebuild.
5066 * target.c (update_current_target): Don't inherit or default
5067 to_insert_hw_breakpoint.
5068 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5069 TARGET_DEFAULT_RETURN.
5071 2014-02-19 Tom Tromey <tromey@redhat.com>
5073 * target-delegates.c: Rebuild.
5074 * target.c (update_current_target): Don't inherit or default
5075 to_can_use_hw_breakpoint.
5076 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5077 TARGET_DEFAULT_RETURN.
5079 2014-02-19 Tom Tromey <tromey@redhat.com>
5081 * target-delegates.c: Rebuild.
5082 * target.c (update_current_target): Don't inherit or default
5084 * target.h (struct target_ops) <to_files_info>: Use
5085 TARGET_DEFAULT_IGNORE.
5087 2014-02-19 Tom Tromey <tromey@redhat.com>
5089 * target-delegates.c: Rebuild.
5090 * target.c (update_current_target): Don't inherit or default
5092 * target.h (struct target_ops) <to_store>: Use
5093 TARGET_DEFAULT_NORETURN.
5095 2014-02-19 Tom Tromey <tromey@redhat.com>
5097 * target-delegates.c: Rebuild.
5098 * target.c (update_current_target): Don't inherit or default
5100 * target.h (struct target_ops) <to_post_attach>: Use
5101 TARGET_DEFAULT_IGNORE.
5103 2014-02-19 Tom Tromey <tromey@redhat.com>
5105 * target-delegates.c: Rebuild.
5106 * target.c (update_current_target): Don't inherit or default
5108 (default_rcmd): New function.
5109 (do_monitor_command): Unconditionally delegate.
5110 * target.h (struct target_ops) <to_rmcd>: Use
5111 TARGET_DEFAULT_FUNC.
5113 2014-02-19 Tom Tromey <tromey@redhat.com>
5115 * target-delegates.c: Rebuild.
5116 * target.c (init_dummy_target): Don't initialize to_attach.
5117 (target_attach): Unconditionally delegate.
5118 * target.h (struct target_ops) <to_attach>: Use
5119 TARGET_DEFAULT_FUNC.
5121 2014-02-19 Tom Tromey <tromey@redhat.com>
5123 * target-delegates.c: Rebuild.
5124 * target.c (target_detach): Unconditionally delegate.
5125 (init_dummy_target): Don't initialize to_detach.
5126 * target.h (struct target_ops) <to_detach>: Use
5127 TARGET_DEFAULT_IGNORE.
5129 2014-02-19 Tom Tromey <tromey@redhat.com>
5131 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5133 (target_augmented_libraries_svr4_read): Add argument.
5134 * target.c (update_current_target): Update.
5135 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5138 2014-02-19 Tom Tromey <tromey@redhat.com>
5140 * target.h (struct target_ops) <to_call_history_range>: Add
5142 * target.c (target_call_history_range): Add argument.
5143 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5145 (record_btrace_call_history_from): Update.
5147 2014-02-19 Tom Tromey <tromey@redhat.com>
5149 * target.h (struct target_ops) <to_call_history_from>: Add
5151 * target.c (target_call_history_from): Add argument.
5152 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5155 2014-02-19 Tom Tromey <tromey@redhat.com>
5157 * target.h (struct target_ops) <to_call_history>: Add argument.
5158 * target.c (target_call_history): Add argument.
5159 * record-btrace.c (record_btrace_call_history): Add 'self'
5162 2014-02-19 Tom Tromey <tromey@redhat.com>
5164 * target.h (struct target_ops) <to_insn_history_range>: Add
5166 * target.c (target_insn_history_range): Add argument.
5167 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5169 (record_btrace_insn_history_from): Update.
5171 2014-02-19 Tom Tromey <tromey@redhat.com>
5173 * target.h (struct target_ops) <to_insn_history_from>: Add
5175 * target.c (target_insn_history_from): Add argument.
5176 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5179 2014-02-19 Tom Tromey <tromey@redhat.com>
5181 * target.h (struct target_ops) <to_insn_history>: Add argument.
5182 * target.c (target_insn_history): Add argument.
5183 * record-btrace.c (record_btrace_insn_history): Add 'self'
5186 2014-02-19 Tom Tromey <tromey@redhat.com>
5188 * target.h (struct target_ops) <to_goto_record>: Add argument.
5189 * target.c (target_goto_record): Add argument.
5190 * record-full.c (record_full_goto): Add 'self' argument.
5191 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5193 2014-02-19 Tom Tromey <tromey@redhat.com>
5195 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5196 * target.c (target_goto_record_end): Add argument.
5197 * record-full.c (record_full_goto_end): Add 'self' argument.
5198 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5200 2014-02-19 Tom Tromey <tromey@redhat.com>
5202 * target.h (struct target_ops) <to_goto_record_begin>: Add
5204 * target.c (target_goto_record_begin): Add argument.
5205 * record-full.c (record_full_goto_begin): Add 'self' argument.
5206 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5209 2014-02-19 Tom Tromey <tromey@redhat.com>
5211 * target.h (struct target_ops) <to_record_is_replaying>: Add
5213 * target.c (target_record_is_replaying): Add argument.
5214 * record-full.c (record_full_is_replaying): Add 'self' argument.
5215 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5217 (record_btrace_xfer_partial, record_btrace_store_registers)
5218 (record_btrace_prepare_to_store, record_btrace_resume)
5219 (record_btrace_wait, record_btrace_decr_pc_after_break)
5220 (record_btrace_find_new_threads, record_btrace_thread_alive):
5223 2014-02-19 Tom Tromey <tromey@redhat.com>
5225 * target.h (struct target_ops) <to_delete_record>: Add argument.
5226 * target.c (target_delete_record): Add argument.
5227 * record-full.c (record_full_delete): Add 'self' argument.
5229 2014-02-19 Tom Tromey <tromey@redhat.com>
5231 * target.h (struct target_ops) <to_save_record>: Add argument.
5232 * target.c (target_save_record): Add argument.
5233 * record-full.c (record_full_save): Add 'self' argument.
5234 (record_full_save): Add 'self' argument.
5236 2014-02-19 Tom Tromey <tromey@redhat.com>
5238 * target.h (struct target_ops) <to_info_record>: Add argument.
5239 * target.c (target_info_record): Add argument.
5240 * record.c (info_record_command): Add argument.
5241 * record-full.c (record_full_info): Add 'self' argument.
5242 * record-btrace.c (record_btrace_info): Add 'self' argument.
5244 2014-02-19 Tom Tromey <tromey@redhat.com>
5246 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5247 * target.c (target_stop_recording): Add argument.
5248 * record.c (record_stop): Add argument.
5249 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5252 2014-02-19 Tom Tromey <tromey@redhat.com>
5254 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5255 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5256 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5258 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5259 (_initialize_amd64_linux_nat): Use it.
5260 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5261 (_initialize_i386_linux_nat): Use it.
5263 2014-02-19 Tom Tromey <tromey@redhat.com>
5265 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5266 * target.c (target_teardown_btrace): Add argument.
5267 * remote.c (remote_teardown_btrace): Add 'self' argument.
5268 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5270 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5273 2014-02-19 Tom Tromey <tromey@redhat.com>
5275 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5276 * target.c (target_disable_btrace): Add argument.
5277 * remote.c (remote_disable_btrace): Add 'self' argument.
5278 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5280 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5283 2014-02-19 Tom Tromey <tromey@redhat.com>
5285 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5286 * target.c (target_enable_btrace): Add argument.
5287 * remote.c (remote_enable_btrace): Add 'self' argument.
5288 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5290 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5293 2014-02-19 Tom Tromey <tromey@redhat.com>
5295 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5296 (target_can_use_agent): Add argument.
5297 * target.c (update_current_target): Update.
5298 * remote.c (remote_can_use_agent): Add 'self' argument.
5299 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5301 2014-02-19 Tom Tromey <tromey@redhat.com>
5303 * target.h (struct target_ops) <to_use_agent>: Add argument.
5304 (target_use_agent): Add argument.
5305 * target.c (update_current_target): Update.
5306 * remote.c (remote_use_agent): Add 'self' argument.
5307 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5309 2014-02-19 Tom Tromey <tromey@redhat.com>
5311 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5312 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5313 (target_traceframe_info): Add argument.
5314 * target.c (update_current_target): Update.
5315 * remote.c (remote_traceframe_info): Add 'self' argument.
5316 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5318 2014-02-19 Tom Tromey <tromey@redhat.com>
5320 * target.h (target_static_tracepoint_markers_by_strid): Add
5322 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5324 * target.c (update_current_target): Update.
5325 * remote.c (struct target_ops)
5326 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5327 * linux-nat.c (struct target_ops)
5328 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5330 2014-02-19 Tom Tromey <tromey@redhat.com>
5332 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5334 (target_static_tracepoint_marker_at): Add argument.
5335 * target.c (update_current_target): Update.
5336 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5339 2014-02-19 Tom Tromey <tromey@redhat.com>
5341 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5342 (target_set_permissions): Add argument.
5343 * target.c (update_current_target): Update.
5344 * remote.c (remote_set_permissions): Add 'self' argument.
5345 (remote_start_remote): Update.
5347 2014-02-19 Tom Tromey <tromey@redhat.com>
5349 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5350 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5351 (target_get_tib_address): Add argument.
5352 * target.c (update_current_target): Update.
5353 * remote.c (remote_get_tib_address): Add 'self' argument.
5355 2014-02-19 Tom Tromey <tromey@redhat.com>
5357 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5358 (target_set_trace_notes): Add argument.
5359 * target.c (update_current_target): Update.
5360 * remote.c (remote_set_trace_notes): Add 'self' argument.
5362 2014-02-19 Tom Tromey <tromey@redhat.com>
5364 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5366 (target_set_trace_buffer_size): Add argument.
5367 * target.c (update_current_target): Update.
5368 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5370 2014-02-19 Tom Tromey <tromey@redhat.com>
5372 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5374 (target_set_circular_trace_buffer): Add argument.
5375 * target.c (update_current_target): Update.
5376 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5379 2014-02-19 Tom Tromey <tromey@redhat.com>
5381 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5383 (target_set_disconnected_tracing): Add argument.
5384 * target.c (update_current_target): Update.
5385 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5387 2014-02-19 Tom Tromey <tromey@redhat.com>
5389 * target.h (struct target_ops)
5390 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5391 (target_get_min_fast_tracepoint_insn_len): Add argument.
5392 * target.c (update_current_target): Update.
5393 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5396 2014-02-19 Tom Tromey <tromey@redhat.com>
5398 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5400 (target_get_raw_trace_data): Add argument.
5401 * target.c (update_current_target): Update.
5402 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5404 2014-02-19 Tom Tromey <tromey@redhat.com>
5406 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5408 (target_upload_trace_state_variables): Add argument.
5409 * target.c (update_current_target): Update.
5410 * remote.c (remote_upload_trace_state_variables): Add 'self'
5412 (remote_start_remote): Update.
5414 2014-02-19 Tom Tromey <tromey@redhat.com>
5416 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5418 (target_upload_tracepoints): Add argument.
5419 * target.c (update_current_target): Update.
5420 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5421 (remote_start_remote): Update.
5423 2014-02-19 Tom Tromey <tromey@redhat.com>
5425 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5426 (target_save_trace_data): Add argument.
5427 * target.c (update_current_target): Update.
5428 * remote.c (remote_save_trace_data): Add 'self' argument.
5430 2014-02-19 Tom Tromey <tromey@redhat.com>
5432 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5434 * target.h (struct target_ops)
5435 <to_get_trace_state_variable_value>: Add argument.
5436 (target_get_trace_state_variable_value): Add argument.
5437 * target.c (update_current_target): Update.
5438 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5440 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5442 2014-02-19 Tom Tromey <tromey@redhat.com>
5444 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5445 * target.h (struct target_ops) <to_trace_find>: Add argument.
5446 (target_trace_find): Add argument.
5447 * target.c (update_current_target): Update.
5448 * remote.c (remote_trace_find): Add 'self' argument.
5449 * ctf.c (ctf_trace_find): Add 'self' argument.
5451 2014-02-19 Tom Tromey <tromey@redhat.com>
5453 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5454 (target_trace_stop): Add argument.
5455 * target.c (update_current_target): Update.
5456 * remote.c (remote_trace_stop): Add 'self' argument.
5458 2014-02-19 Tom Tromey <tromey@redhat.com>
5460 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5461 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5463 (target_get_tracepoint_status): Add argument.
5464 * target.c (update_current_target): Update.
5465 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5467 2014-02-19 Tom Tromey <tromey@redhat.com>
5469 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5470 * target.h (struct target_ops) <to_get_trace_status>: Add
5472 (target_get_trace_status): Add argument.
5473 * target.c (update_current_target): Update.
5474 * remote.c (remote_get_trace_status): Add 'self' argument.
5475 (remote_start_remote, remote_can_download_tracepoint): Update.
5476 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5478 2014-02-19 Tom Tromey <tromey@redhat.com>
5480 * target.h (struct target_ops) <to_trace_start>: Add argument.
5481 (target_trace_start): Add argument.
5482 * target.c (update_current_target): Update.
5483 * remote.c (remote_trace_start): Add 'self' argument.
5485 2014-02-19 Tom Tromey <tromey@redhat.com>
5487 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5489 (target_trace_set_readonly_regions): Add argument.
5490 * target.c (update_current_target): Update.
5491 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5494 2014-02-19 Tom Tromey <tromey@redhat.com>
5496 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5498 (target_disable_tracepoint): Add argument.
5499 * target.c (update_current_target): Update.
5500 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5502 2014-02-19 Tom Tromey <tromey@redhat.com>
5504 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5506 (target_enable_tracepoint): Add argument.
5507 * target.c (update_current_target): Update.
5508 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5510 2014-02-19 Tom Tromey <tromey@redhat.com>
5512 * target.h (struct target_ops) <to_download_trace_state_variable>:
5514 (target_download_trace_state_variable): Add argument.
5515 * target.c (update_current_target): Update.
5516 * remote.c (remote_download_trace_state_variable): Add 'self'
5519 2014-02-19 Tom Tromey <tromey@redhat.com>
5521 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5523 (target_can_download_tracepoint): Add argument.
5524 * target.c (update_current_target): Update.
5525 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5527 2014-02-19 Tom Tromey <tromey@redhat.com>
5529 * target.h (struct target_ops) <to_download_tracepoint>: Add
5531 (target_download_tracepoint): Add argument.
5532 * target.c (update_current_target): Update.
5533 * remote.c (remote_download_tracepoint): Add 'self' argument.
5535 2014-02-19 Tom Tromey <tromey@redhat.com>
5537 * target.h (struct target_ops) <to_trace_init>: Add argument.
5538 (target_trace_init): Add argument.
5539 * target.c (update_current_target): Update.
5540 * remote.c (remote_trace_init): Add 'self' argument.
5542 2014-02-19 Tom Tromey <tromey@redhat.com>
5544 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5545 * target.c (target_fileio_readlink): Add argument.
5546 * remote.c (remote_hostio_readlink): Add 'self' argument.
5547 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5549 2014-02-19 Tom Tromey <tromey@redhat.com>
5551 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5552 * target.c (target_fileio_unlink): Add argument.
5553 * remote.c (remote_hostio_unlink): Add 'self' argument.
5554 (remote_file_delete): Update.
5555 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5557 2014-02-19 Tom Tromey <tromey@redhat.com>
5559 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5560 * target.c (target_fileio_close): Add argument.
5561 * remote.c (remote_hostio_close): Add 'self' argument.
5562 (remote_hostio_close_cleanup): Update.
5563 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5565 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5567 2014-02-19 Tom Tromey <tromey@redhat.com>
5569 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5570 * target.c (target_fileio_pread): Add argument.
5571 * remote.c (remote_hostio_pread): Add 'self' argument.
5572 (remote_bfd_iovec_pread, remote_file_get): Update.
5573 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5575 2014-02-19 Tom Tromey <tromey@redhat.com>
5577 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5578 * target.c (target_fileio_pwrite): Add argument.
5579 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5580 (remote_file_put): Update.
5581 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5583 2014-02-19 Tom Tromey <tromey@redhat.com>
5585 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5586 * target.c (target_fileio_open): Add argument.
5587 * remote.c (remote_hostio_open): Add 'self' argument.
5588 (remote_bfd_iovec_open): Add 'self' argument.
5589 (remote_file_put): Add 'self' argument.
5590 (remote_file_get): Add 'self' argument.
5591 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5593 2014-02-19 Tom Tromey <tromey@redhat.com>
5595 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5597 (target_can_run_breakpoint_commands): Add argument.
5598 * target.c (update_current_target): Update.
5599 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5601 (remote_insert_breakpoint): Add 'self' argument.
5602 (remote_insert_hw_breakpoint): Add 'self' argument.
5603 (remote_can_run_breakpoint_commands): Add 'self' argument.
5605 2014-02-19 Tom Tromey <tromey@redhat.com>
5607 * target.h (struct target_ops)
5608 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5609 (target_supports_evaluation_of_breakpoint_conditions): Add
5611 * target.c (update_current_target): Update.
5612 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5614 (remote_insert_breakpoint): Add 'self' argument.
5615 (remote_insert_hw_breakpoint): Add 'self' argument.
5616 (remote_supports_cond_breakpoints): Add 'self' argument.
5618 2014-02-19 Tom Tromey <tromey@redhat.com>
5620 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5622 (target_supports_string_tracing): Add argument.
5623 * target.c (update_current_target): Update.
5624 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5626 2014-02-19 Tom Tromey <tromey@redhat.com>
5628 * target.h (struct target_ops)
5629 <to_supports_disable_randomization>: Add argument.
5630 * target.c (find_default_supports_disable_randomization): Add
5632 (target_supports_disable_randomization): Add argument.
5633 (find_default_supports_disable_randomization): Add 'self'
5635 * remote.c (extended_remote_supports_disable_randomization): Add
5637 (remote_supports_disable_randomization): Add 'self' argument.
5638 (extended_remote_create_inferior): Update.
5639 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5642 2014-02-19 Tom Tromey <tromey@redhat.com>
5644 * target.h (struct target_ops)
5645 <to_supports_enable_disable_tracepoint>: Add argument.
5646 (target_supports_enable_disable_tracepoint): Add argument.
5647 * target.c (update_current_target): Update.
5648 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5651 2014-02-19 Tom Tromey <tromey@redhat.com>
5653 * target.h (struct target_ops) <to_supports_multi_process>: Add
5655 (target_supports_multi_process): Add argument.
5656 * target.c (update_current_target): Update.
5657 * remote.c (remote_supports_multi_process): Add 'self' argument.
5658 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5660 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5663 2014-02-19 Tom Tromey <tromey@redhat.com>
5665 * target.h (struct target_ops) <to_execution_direction>: Add
5667 (target_execution_direction): Add argument.
5668 * target.c (default_execution_direction): Add 'self' argument.
5669 * record-full.c (record_full_execution_direction): Add 'self'
5672 2014-02-19 Tom Tromey <tromey@redhat.com>
5674 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5676 (target_can_execute_reverse): Add argument.
5677 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5678 * record-full.c (record_full_can_execute_reverse): Add 'self'
5680 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5683 2014-02-19 Tom Tromey <tromey@redhat.com>
5685 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5686 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5688 (target_get_ada_task_ptid): Add argument.
5689 * target.c (update_current_target): Update.
5690 (default_get_ada_task_ptid): Add 'self' argument.
5691 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5692 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5693 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5695 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5697 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5699 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5701 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5702 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5705 2014-02-19 Tom Tromey <tromey@redhat.com>
5707 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5708 (target_goto_bookmark): Add argument.
5709 * target.c (dummy_goto_bookmark): Add 'self' argument.
5710 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5712 2014-02-19 Tom Tromey <tromey@redhat.com>
5714 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5715 (target_get_bookmark): Add argument.
5716 * target.c (dummy_get_bookmark): Add 'self' argument.
5717 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5719 2014-02-19 Tom Tromey <tromey@redhat.com>
5721 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5723 (target_make_corefile_notes): Add argument.
5724 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5725 * procfs.c (procfs_make_note_section): Add 'self' argument.
5726 (procfs_make_note_section): Add 'self' argument.
5727 (procfs_make_note_section): Add 'self' argument.
5728 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5730 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5731 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5732 * exec.c (exec_make_note_section): Add 'self' argument.
5733 (exec_make_note_section): Add 'self' argument.
5735 2014-02-19 Tom Tromey <tromey@redhat.com>
5737 * target.h (struct target_ops) <to_find_memory_regions>: Add
5739 (target_find_memory_regions): Add argument.
5740 * target.c (dummy_find_memory_regions): Add 'self' argument.
5741 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5742 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5743 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5744 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5745 * exec. (exec_do_find_memory_regions): New global.
5746 (exec_set_find_memory_regions): Rewrite.
5747 (exec_find_memory_regions): New function.
5748 (init_exec_ops): Use exec_find_memory_regions.
5750 2014-02-19 Tom Tromey <tromey@redhat.com>
5752 * target.h (struct target_ops) <to_supports_non_stop>: Add
5754 * target.c (find_default_supports_non_stop): Add argument.
5755 (target_supports_non_stop): Add argument.
5756 (find_default_supports_non_stop): Add 'self' argument.
5757 * remote.c (remote_supports_non_stop): Add 'self' argument.
5758 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5760 2014-02-19 Tom Tromey <tromey@redhat.com>
5762 * target.h (struct target_ops) <to_log_command>: Add argument.
5763 (target_log_command): Add argument.
5764 * serial.h (serial_log_command): Add 'self' argument.
5765 * serial.c (serial_log_command): Add 'self' argument.
5767 2014-02-19 Tom Tromey <tromey@redhat.com>
5769 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5770 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5772 (target_pid_to_exec_file): Add argument.
5773 * target.c (debug_to_pid_to_exec_file): Add argument.
5774 (update_current_target): Update.
5775 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5776 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5777 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5778 (linux_handle_extended_wait): Update.
5779 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5780 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5781 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5782 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5784 2014-02-19 Tom Tromey <tromey@redhat.com>
5786 * target.h (struct target_ops) <to_rcmd>: Add argument.
5787 (target_rcmd): Add argument.
5788 * target.c (debug_to_rcmd): Add argument.
5789 (update_current_target, do_monitor_command): Update.
5790 * remote.c (remote_rcmd): Add 'self' argument.
5791 * monitor.c (monitor_rcmd): Add 'self' argument.
5793 2014-02-19 Tom Tromey <tromey@redhat.com>
5795 * windows-nat.c (windows_stop): Add 'self' argument.
5796 * target.h (struct target_ops) <to_stop>: Add argument.
5797 * target.c (target_stop): Add argument.
5798 (debug_to_stop): Add argument.
5799 (update_current_target): Update.
5800 * remote.c (remote_stop): Add 'self' argument.
5801 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5802 (gdbsim_cntrl_c): Update.
5803 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5804 * procfs.c (procfs_stop): Add 'self' argument.
5805 * nto-procfs.c (procfs_stop): Add 'self' argument.
5806 * monitor.c (monitor_stop): Add 'self' argument.
5807 (monitor_open): Update.
5808 * linux-nat.c (linux_nat_stop): Add argument.
5809 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5810 * gnu-nat.c (gnu_stop): Add 'self' argument.
5811 * darwin-nat.c (darwin_stop): Add 'self' argument.
5813 2014-02-19 Tom Tromey <tromey@redhat.com>
5815 * target.h (struct target_ops) <to_thread_name>: Add argument.
5816 * target.c (target_thread_name): Add argument.
5817 (update_current_target): Update.
5818 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5820 2014-02-19 Tom Tromey <tromey@redhat.com>
5822 * target.h (struct target_ops) <to_extra_thread_info>: Add
5824 (target_extra_thread_info): Add argument.
5825 * target.c (update_current_target): Update.
5826 * remote.c (remote_threads_extra_info): Add 'self' argument.
5827 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5829 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5830 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5831 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5833 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5835 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5837 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5840 2014-02-19 Tom Tromey <tromey@redhat.com>
5842 * target.h (struct target_ops) <to_program_signals>: Add argument.
5843 * target.c (target_program_signals): Add argument.
5844 * remote.c (remote_program_signals): Add 'self' argument.
5846 2014-02-19 Tom Tromey <tromey@redhat.com>
5848 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5849 * target.c (target_pass_signals): Add argument.
5850 * remote.c (remote_pass_signals): Add 'self' argument.
5851 (remote_start_remote): Update.
5852 * procfs.c (procfs_pass_signals): Add 'self' argument.
5853 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5854 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5855 (linux_nat_create_inferior, linux_nat_attach): Update.
5857 2014-02-19 Tom Tromey <tromey@redhat.com>
5859 * windows-nat.c (windows_can_run): Add 'self' argument.
5860 * target.h (struct target_ops) <to_can_run>: Add argument.
5861 (target_can_run): Add argument.
5862 * target.c (debug_to_can_run): Add argument.
5863 (update_current_target): Update.
5864 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5865 * inf-child.c (inf_child_can_run): Add 'self' argument.
5866 * go32-nat.c (go32_can_run): Add 'self' argument.
5868 2014-02-19 Tom Tromey <tromey@redhat.com>
5870 * target.h (struct target_ops) <to_has_exited>: Add argument.
5871 (target_has_exited): Add argument.
5872 * target.c (debug_to_has_exited): Add argument.
5873 (update_current_target): Update.
5875 2014-02-19 Tom Tromey <tromey@redhat.com>
5877 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5879 (target_set_syscall_catchpoint): Add argument.
5880 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5882 * target.c (update_current_target): Update.
5884 2014-02-19 Tom Tromey <tromey@redhat.com>
5886 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5888 (target_remove_exec_catchpoint): Add argument.
5889 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5890 (update_current_target): Update.
5891 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5894 2014-02-19 Tom Tromey <tromey@redhat.com>
5896 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5898 (target_insert_exec_catchpoint): Add argument.
5899 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5900 (update_current_target): Update.
5901 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5904 2014-02-19 Tom Tromey <tromey@redhat.com>
5906 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5908 (target_remove_vfork_catchpoint): Add argument.
5909 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5910 (update_current_target): Update.
5911 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5914 2014-02-19 Tom Tromey <tromey@redhat.com>
5916 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5918 (target_insert_vfork_catchpoint): Add argument.
5919 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5920 (update_current_target): Update.
5921 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5924 2014-02-19 Tom Tromey <tromey@redhat.com>
5926 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5928 (target_remove_fork_catchpoint): Add argument.
5929 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5930 (update_current_target): Update.
5931 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5934 2014-02-19 Tom Tromey <tromey@redhat.com>
5936 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5938 (target_insert_fork_catchpoint): Add argument.
5939 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5940 (update_current_target): Update.
5941 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5944 2014-02-19 Tom Tromey <tromey@redhat.com>
5946 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5948 (target_post_startup_inferior): Add argument.
5949 * target.c (debug_to_post_startup_inferior): Add argument.
5950 (update_current_target): Update.
5951 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5953 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5955 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5957 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5959 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5961 (super_post_startup_inferior): Likewise.
5962 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5964 (super_post_startup_inferior): Likewise.
5965 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5966 Add 'self' argument.
5967 (super_post_startup_inferior): Likewise.
5969 2014-02-19 Tom Tromey <tromey@redhat.com>
5971 * target.h (struct target_ops) <to_load>: Add argument.
5972 * target.c (target_load): Add argument.
5973 (debug_to_load): Add argument.
5974 (update_current_target): Update.
5975 * remote.c (remote_load): Add 'self' argument.
5976 * remote-sim.c (gdbsim_load): Add 'self' argument.
5977 * remote-mips.c (mips_load): Add 'self' argument.
5978 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5979 * monitor.c (monitor_load): Add 'self' argument.
5980 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5982 2014-02-19 Tom Tromey <tromey@redhat.com>
5984 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5985 (target_terminal_info): Add argument.
5986 * target.c (debug_to_terminal_info): Add argument.
5987 (default_terminal_info): Likewise.
5988 * inflow.c (child_terminal_info): Add 'self' argument.
5989 * inferior.h (child_terminal_info): Add 'self' argument.
5990 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5992 2014-02-19 Tom Tromey <tromey@redhat.com>
5994 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5996 (target_terminal_save_ours): Add argument.
5997 * target.c (debug_to_terminal_save_ours): Add argument.
5998 (update_current_target): Update.
5999 * inflow.c (terminal_save_ours): Add 'self' argument.
6000 * inferior.h (terminal_save_ours): Add 'self' argument.
6002 2014-02-19 Tom Tromey <tromey@redhat.com>
6004 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6005 (target_terminal_ours): Add argument.
6006 * target.c (debug_to_terminal_ours): Add argument.
6007 (update_current_target): Update.
6008 * remote.c (remote_terminal_ours): Add 'self' argument.
6009 (remote_close): Update.
6010 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6011 * inflow.c (terminal_ours): Add 'self' argument.
6012 * inferior.h (terminal_ours): Add 'self' argument.
6013 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6015 2014-02-19 Pedro Alves <palves@redhat.com>
6016 Tom Tromey <tromey@redhat.com>
6018 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6020 (target_terminal_ours_for_output): Add argument.
6021 * target.c (debug_to_terminal_ours_for_output): Add argument.
6022 (update_current_target): Update.
6023 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6024 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6025 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6027 2014-02-19 Tom Tromey <tromey@redhat.com>
6029 * target.h (struct target_ops) <to_terminal_inferior>: Add
6031 * target.c (target_terminal_inferior): Add argument.
6032 (update_current_target): Update.
6033 * remote.c (remote_terminal_inferior): Add 'self' argument.
6034 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6035 * inflow.c (terminal_inferior): Add 'self' argument.
6036 * inferior.h (terminal_inferior): Add 'self' argument.
6037 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6038 (go32_terminal_inferior): Add 'self' argument.
6040 2014-02-19 Tom Tromey <tromey@redhat.com>
6042 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6043 (target_terminal_init): Add argument.
6044 * target.c (debug_to_terminal_init): Add argument.
6045 (update_current_target): Update.
6046 * inflow.c (terminal_init_inferior): Add 'self' argument.
6047 * inferior.h (terminal_init_inferior): Add 'self' argument.
6048 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6049 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6051 2014-02-19 Tom Tromey <tromey@redhat.com>
6053 * target.h (struct target_ops)
6054 <to_can_accel_watchpoint_condition>: Add argument.
6055 (target_can_accel_watchpoint_condition): Add argument.
6056 * target.c (debug_to_can_accel_watchpoint_condition): Add
6058 (update_current_target): Update.
6059 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6062 2014-02-19 Tom Tromey <tromey@redhat.com>
6064 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6066 (target_region_ok_for_hw_watchpoint): Add argument.
6067 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6068 (default_region_ok_for_hw_watchpoint): Add argument.
6069 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6070 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6072 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6074 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6076 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6078 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6080 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6082 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6083 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6085 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6086 Add 'self' argument.
6088 2014-02-19 Tom Tromey <tromey@redhat.com>
6090 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6092 (target_insert_watchpoint): Add argument.
6093 * target.c (debug_to_insert_watchpoint): Add argument.
6094 (update_current_target): Update.
6095 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6096 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6097 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6098 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6099 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6100 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6102 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6103 (procfs_insert_hw_watchpoint): Add 'self' argument.
6104 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6106 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6108 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6110 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6111 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6113 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6116 2014-02-19 Tom Tromey <tromey@redhat.com>
6118 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6120 (target_remove_watchpoint): Add argument.
6121 * target.c (debug_to_remove_watchpoint): Add argument.
6122 (update_current_target): Update.
6123 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6124 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6125 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6126 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6127 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6128 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6130 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6131 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6133 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6135 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6137 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6138 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6140 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6143 2014-02-19 Tom Tromey <tromey@redhat.com>
6145 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6147 (target_remove_hw_breakpoint): Add argument.
6148 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6149 (update_current_target): Update.
6150 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6151 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6153 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6154 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6156 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6159 2014-02-19 Tom Tromey <tromey@redhat.com>
6161 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6163 (target_insert_hw_breakpoint): Add argument.
6164 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6165 (update_current_target): Update.
6166 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6167 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6169 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6170 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6171 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6173 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6176 2014-02-19 Tom Tromey <tromey@redhat.com>
6178 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6180 (target_can_use_hardware_watchpoint): Add argument.
6181 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6182 (update_current_target): Update.
6183 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6185 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6187 * remote.c (remote_check_watch_resources): Add 'self' argument.
6188 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6189 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6191 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6192 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6194 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6196 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6198 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6200 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6202 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6204 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6205 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6207 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6210 2014-02-19 Tom Tromey <tromey@redhat.com>
6212 * target.h (struct target_ops) <to_post_attach>: Add argument.
6213 (target_post_attach): Add argument.
6214 * target.c (debug_to_post_attach): Add argument.
6215 (update_current_target): Update.
6216 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6217 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6218 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6219 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6220 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6222 2014-02-19 Tom Tromey <tromey@redhat.com>
6224 * windows-nat.c (windows_close): Add 'self' argument.
6225 * tracepoint.c (tfile_close): Add 'self' argument.
6226 * target.h (struct target_ops) <to_close>: Add argument.
6227 * target.c (target_close): Add argument.
6228 (update_current_target): Update.
6229 * remote.c (remote_close): Add 'self' argument.
6230 * remote-sim.c (gdbsim_close): Add 'self' argument.
6231 * remote-mips.c (mips_close): Add 'self' argument.
6232 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6233 * record-full.c (record_full_close): Add 'self' argument.
6234 * record-btrace.c (record_btrace_close): Add 'self' argument.
6235 * monitor.h (monitor_close): Add 'self' argument.
6236 * monitor.c (monitor_close): Add 'self' argument.
6237 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6238 * linux-nat.c (linux_nat_close): Add argument.
6239 * go32-nat.c (go32_close): Add 'self' argument.
6240 * exec.c (exec_close_1): Add 'self' argument.
6241 * ctf.c (ctf_close): Add 'self' argument.
6242 * corelow.c (core_close): Add 'self' argument.
6243 (core_close_cleanup): Update.
6244 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6245 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6247 2014-02-19 Tom Tromey <tromey@redhat.com>
6249 * remote.c (remote_load): New function.
6250 (init_remote_ops): Use it.
6252 2014-02-19 Tom Tromey <tromey@redhat.com>
6254 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6256 * common/linux-btrace.h (linux_supports_btrace): Update.
6257 * remote.c (remote_supports_btrace): Add "self" argument.
6258 * target-delegates.c: Rebuild.
6259 * target.c (target_supports_btrace): Remove.
6260 * target.h (struct target_ops) <to_supports_btrace>: Add
6261 target_ops argument.
6262 (target_supports_btrace): New define.
6264 2014-02-19 Tom Tromey <tromey@redhat.com>
6266 * record-full.c (record_full_beneath_to_resume_ops)
6267 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6268 (record_full_beneath_to_wait)
6269 (record_full_beneath_to_store_registers_ops)
6270 (record_full_beneath_to_store_registers)
6271 (record_full_beneath_to_xfer_partial_ops)
6272 (record_full_beneath_to_xfer_partial)
6273 (record_full_beneath_to_insert_breakpoint_ops)
6274 (record_full_beneath_to_insert_breakpoint)
6275 (record_full_beneath_to_remove_breakpoint_ops)
6276 (record_full_beneath_to_remove_breakpoint)
6277 (record_full_beneath_to_stopped_by_watchpoint)
6278 (record_full_beneath_to_stopped_data_address)
6279 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6280 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6281 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6282 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6283 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6284 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6285 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6286 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6287 (record_full_resume, record_full_wait_1)
6288 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6289 (record_full_store_registers, record_full_xfer_partial)
6290 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6291 (record_full_async, record_full_core_xfer_partial): Use target
6293 * target-delegates.c: Rebuild.
6294 * target.c (current_xfer_partial): Remove.
6295 (update_current_target): Do not INHERIT or de_fault
6296 to_insert_breakpoint, to_remove_breakpoint,
6297 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6298 to_is_async_p, to_async. Do not set to_xfer_partial field.
6299 (default_xfer_partial): Simplify.
6300 (current_xfer_partial): Remove.
6301 (target_wait, target_resume): Simplify.
6302 (find_default_can_async_p, find_default_is_async_p): Update.
6303 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6304 to_xfer_partial, to_stopped_by_watchpoint,
6305 to_stopped_data_address.
6306 (target_store_registers): Simplify.
6307 (forward_target_remove_breakpoint)
6308 (forward_target_insert_breakpoint): Remove.
6309 (target_remove_breakpoint, target_insert_breakpoint)
6310 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6311 * target.h (struct target_ops) <to_resume, to_wait,
6312 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6313 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6314 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6316 (forward_target_remove_breakpoint)
6317 (forward_target_insert_breakpoint): Remove.
6318 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6320 (record_btrace_insert_breakpoint): Delegate directly.
6322 2014-02-19 Tom Tromey <tromey@redhat.com>
6325 * target-delegates.c: New file.
6326 * target.c: Include target-delegates.c.
6327 (init_dummy_target): Call install_dummy_methods.
6328 (complete_target_initialization): Call install_delegators.
6329 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6330 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6331 * make-target-delegates: New file.
6333 2014-02-19 Tom Tromey <tromey@redhat.com>
6335 * record.c (find_record_target): Use find_target_at.
6336 * target.c (find_target_at): New function.
6337 * target.h (find_target_at): Declare.
6339 2014-02-19 Tom Tromey <tromey@redhat.com>
6341 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6343 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6345 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6346 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6348 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6350 * linux-nat.c (save_sigtrap): Update.
6351 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6352 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6353 (linux_nat_close): Update.
6354 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6356 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6358 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6359 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6360 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6361 (tmp_to_async): Add 'ops' argument.
6362 (record_full_stopped_by_watchpoint, record_full_async)
6363 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6365 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6366 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6367 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6368 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6369 (remote_is_async_p, remote_async): Add 'ops' argument.
6370 (remote_stopped_data_address): Update.
6371 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6372 * target.c (update_current_target)
6373 (find_default_can_async_p, find_default_is_async_p): Update.
6374 (init_dummy_target): Update.
6375 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6376 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6377 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6378 (target_can_async_p, target_is_async_p, target_async)
6379 (target_stopped_by_watchpoint): Update.
6381 2014-02-19 Yao Qi <yao@codesourcery.com>
6384 * gdbarch.sh: Remove startup_gdbarch.
6385 * gdbarch.c: Regenerated.
6386 * gdbarch.h: Likewise.
6388 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6390 * rl78-tdep.c (rl78_g10_register_name): New function.
6391 (rl78_return_value): Add g10 support.
6392 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6395 2014-02-17 Doug Evans <xdje42@gmail.com>
6397 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6398 (SUBDIR_GUILE_SRCS): Ditto.
6399 (scm-gsmob.o): Ditto.
6401 2014-02-17 Yao Qi <yao@codesourcery.com>
6403 * gnu-nat.c (ILL_RPC): Declare defined function.
6405 2014-02-17 Yao Qi <yao@codesourcery.com>
6407 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6408 mach_msg_type_number_t.
6409 (gnu_write_inferior): Likewise.
6411 2014-02-17 Yao Qi <yao@codesourcery.com>
6413 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6415 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6416 (inf_validate_procs, inf_signal): Likewise.
6417 (S_exception_raise_request): Likewise.
6418 (do_mach_notify_dead_name): Likewise.
6419 (steal_exc_port): Likewise.
6420 (gnu_read_inferior): Change 'copy_count''s type to
6421 mach_msg_type_number_t.
6422 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6425 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6427 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6428 flag. Adjust all users; in particular...
6429 (gnu_wait): ..., don't decrement its value in here...
6430 (gnu_create_inferior): ..., and instead set the flag in here,
6431 around the startup_inferior call, and call that one with
6432 START_INFERIOR_TRAPS_EXPECTED.
6434 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6435 (ILL_RPC): ... new macro.
6436 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6437 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6438 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6439 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6440 functions with ILL_RPC macro.
6441 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6442 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6443 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6444 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6445 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6446 (S_proc_getlogin_reply, S_proc_getsid_reply)
6447 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6448 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6449 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6450 (S_proc_getnports_reply, S_proc_is_important_reply)
6451 (S_proc_get_code_reply): New stub functions, generated with
6454 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6455 collected the type check structures.
6457 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6459 2014-02-14 Doug Evans <dje@google.com>
6461 * target.c (target_write_partial): Fix result type.
6463 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6465 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6466 the proper offsets to access fpregset_t.
6468 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6470 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6471 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6472 * h8300-tdep.c (setmachinelist): Remove global.
6473 * hppa-tdep.c (hppa_sigtramp): Remove global.
6474 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6475 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6476 * ravenscar-thread.c (update_target_observer): Remove global.
6477 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6479 2014-02-12 Tom Tromey <tromey@redhat.com>
6481 * common/rsp-low.c: Update comments.
6482 * common/rsp-low.h: Update comments.
6484 2014-02-12 Tom Tromey <tromey@redhat.com>
6486 * common/rsp-low.c (convert_ascii_to_int): Remove.
6487 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6489 2014-02-12 Tom Tromey <tromey@redhat.com>
6491 * common/rsp-low.h (unhexify): Don't declare.
6492 * common/rsp-low.c (unhexify): Remove.
6494 2014-02-12 Tom Tromey <tromey@redhat.com>
6496 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6497 * common/rsp-low.c (convert_int_to_ascii): Remove.
6499 2014-02-12 Tom Tromey <tromey@redhat.com>
6501 * common/rsp-low.h (hexify): Don't declare.
6502 * common/rsp-low.c (hexify): Remove.
6504 2014-02-12 Tom Tromey <tromey@redhat.com>
6506 * common/rsp-low.c (hexify): Never take strlen of argument.
6508 2014-02-12 Tom Tromey <tromey@redhat.com>
6510 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6511 * remote.c (extended_remote_run, remote_rcmd)
6512 (remote_download_trace_state_variable, remote_save_trace_data)
6513 (remote_set_trace_notes): Update.
6514 * tracepoint.c (encode_source_string, tfile_write_status)
6515 (tfile_write_uploaded_tsv): Update.
6517 2014-02-12 Tom Tromey <tromey@redhat.com>
6519 * tracepoint.c: Include rsp-low.h.
6520 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6521 * remote.c: Include rsp-low.h.
6522 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6523 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6524 (remote_unescape_input): Move to common/rsp-low.c.
6525 * common/rsp-low.h: New file.
6526 * common/rsp-low.c: New file.
6527 * Makefile.in (SFILES): Add common/rsp-low.c.
6528 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6529 (COMMON_OBS): Add rsp-low.o.
6530 (rsp-low.o): New target.
6532 2014-02-12 Tom Tromey <tromey@redhat.com>
6534 * utils.h: Include print-utils.h.
6535 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6536 (int_string, core_addr_to_string, core_addr_to_string_nz)
6537 (hex_string, hex_string_custom): Don't declare.
6538 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6539 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6540 (hex_string_custom, int_string, core_addr_to_string)
6541 (core_addr_to_string_nz, host_address_to_string): Move to
6542 common/print-utils.c.
6543 * common/print-utils.h: New file.
6544 * common/print-utils.c: New file
6545 * Makefile.in (SFILES): Add common/print-utils.c.
6546 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6547 (COMMON_OBS): Add print-utils.o.
6548 (print-utils.o): New target.
6550 2014-02-12 Tom Tromey <tromey@redhat.com>
6552 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6554 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6556 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6558 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6560 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6561 if a PT_IO ptrace request returns sucessfully but indicates that 0
6562 bytes were transferred.
6564 2014-02-12 Pedro Alves <palves@redhat.com>
6565 Kevin Buettner <kevinb@redhat.com>
6567 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6568 TYPE_INSTANCE_FLAG_CODE_SPACE.
6570 2014-02-12 Pedro Alves <palves@redhat.com>
6572 * h8300-tdep.c (pseudo_from_raw_register)
6573 (raw_from_pseudo_register): New functions.
6574 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6577 2014-02-12 Pedro Alves <palves@redhat.com>
6579 * h8300-tdep.c (h8300_register_sim_regno): New function.
6580 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6581 gdbarch_register_sim_regno hook.
6583 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6585 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6587 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6589 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6591 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6593 * obsd-tdep.h (obsd_init_abi): New prototype.
6594 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6595 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6596 (obsd_init_abi): New functions.
6597 * i386obsd-tdep.c: Include "obsd-tdep.h".
6598 (i386obsd_init_abi): Call obsd_init_abi.
6599 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6600 (amd64obsd_init_abi): Call obsd_init_abi.
6601 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6602 obsd-tdep.c to gdb_target_obs.
6604 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6606 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6607 double float arguments to 16-byte in the argument slots.
6609 2014-02-11 Doug Evans <xdje42@gmail.com>
6611 * configure.ac: Don't crash if pkg-config is not found and guile
6612 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6614 * configure: Regenerate.
6616 2014-02-11 Yao Qi <yao@codesourcery.com>
6618 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6619 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6620 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6621 * gnu-nat.c (gnu_xfer_memory): Likewise.
6622 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6623 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6624 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6625 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6627 2014-02-11 Yao Qi <yao@codesourcery.com>
6629 * target.h (enum target_xfer_error): Rename to ...
6630 (enum target_xfer_status): ... it. New. All users updated.
6631 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6633 (TARGET_XFER_STATUS_ERROR_P): New macro.
6634 (target_xfer_error_to_string): Remove declaration.
6635 (target_xfer_status_to_string): Declare.
6636 (target_xfer_partial_ftype): Adjust it.
6637 (struct target_ops) <to_xfer_partial>: Return
6638 target_xfer_status. Add argument xfered_len. Update
6640 * target.c (target_xfer_error_to_string): Rename to ...
6641 (target_xfer_status_to_string): ... it. New. All callers
6643 (target_read_live_memory): Likewise. Call target_xfer_partial
6644 instead of target_read.
6645 (memory_xfer_live_readonly_partial): Return
6646 target_xfer_status. Add argument xfered_len.
6647 (raw_memory_xfer_partial): Likewise.
6648 (memory_xfer_partial_1): Likewise.
6649 (memory_xfer_partial): Likewise.
6650 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6651 properly. Update debug message.
6652 (default_xfer_partial, current_xfer_partial): Likewise.
6653 (target_write_partial): Likewise.
6654 (target_read_partial): Likewise. All callers updated.
6655 (read_whatever_is_readable): Likewise.
6656 (target_write_with_progress): Likewise.
6657 (target_read_alloc_1): Likewise.
6659 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6660 * auxv.c (procfs_xfer_auxv): Likewise.
6661 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6662 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6663 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6664 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6665 * corefile.c (read_memory): Adjust.
6666 * corelow.c (core_xfer_partial): Likewise.
6667 * ctf.c (ctf_xfer_partial): Likewise.
6668 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6670 (darwin_xfer_partial): Likewise.
6671 * exec.c (section_table_xfer_memory_partial): Likewise. All
6673 (exec_xfer_partial): Likewise.
6674 * exec.h (section_table_xfer_memory_partial): Update
6676 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6678 (gnu_xfer_partial): Likewise.
6679 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6680 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6681 (ia64_hpux_xfer_solib_got): Likewise.
6682 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6683 type of 'partial_len' to ULONGEST.
6684 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6685 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6686 (linux_nat_xfer_partial): Likewise.
6687 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6688 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6689 * monitor.c (monitor_xfer_memory): Likewise.
6690 (monitor_xfer_partial): Likewise.
6691 * procfs.c (procfs_xfer_partial): Likewise.
6692 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6693 * record-full.c (record_full_xfer_partial): Likewise.
6694 (record_full_core_xfer_partial): Likewise.
6695 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6696 (gdbsim_xfer_partial): Likewise.
6697 * remote.c (remote_write_bytes_aux): Likewise. All callers
6699 (remote_write_bytes, remote_read_bytes): Likewise. All
6701 (remote_flash_erase): Likewise. All callers updated.
6702 (remote_write_qxfer): Likewise. All callers updated.
6703 (remote_read_qxfer): Likewise. All callers updated.
6704 (remote_xfer_partial): Likewise.
6705 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6706 (rs6000_xfer_shared_libraries): Likewise.
6707 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6708 (sol_thread_xfer_partial): Likewise.
6709 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6710 (sparc_xfer_partial): Likewise.
6711 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6713 (spu_xfer_partial): Likewise.
6714 * spu-multiarch.c (spu_xfer_partial): Likewise.
6715 * tracepoint.c (tfile_xfer_partial): Likewise.
6716 * windows-nat.c (windows_xfer_memory): Likewise.
6717 (windows_xfer_shared_libraries): Likewise.
6718 (windows_xfer_partial): Likewise.
6719 * valprint.c: Replace 'target_xfer_error' with
6720 'target_xfer_status' in comments.
6722 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6724 Checked in by Joel Brobecker <brobecker@adacore.com>.
6725 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6727 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6729 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6730 function parameters.
6732 2014-02-10 Will Newton <will.newton@linaro.org>
6734 * elfread.c (elf_rel_plt_read): Look for a .got section if
6735 looking up .got.plt fails.
6736 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6737 on address passed to elf_gnu_ifunc_record_cache.
6738 (elf_gnu_ifunc_resolve_addr): Likewise.
6739 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6741 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6743 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6744 (X_RETTURN): New macro.
6745 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6747 * sparc64-tdep.c (sparc64_init_abi): Hook
6748 sparc_in_function_epilogue_p.
6750 2014-02-10 Gary Benson <gbenson@redhat.com>
6752 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6753 Rename name_matcher to symbol_matcher.
6755 2014-02-10 Gary Benson <gbenson@redhat.com>
6757 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6758 Use expand_symtabs_file_matcher_ftype and
6759 expand_symtabs_symbol_matcher_ftype.
6761 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6763 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6764 (struct ada_symbol_cache): New.
6765 (ada_free_symbol_cache): Forward declare.
6766 (struct ada_pspace_data): New.
6767 (ada_pspace_data_handle): New static global.
6768 (get_ada_pspace_data, ada_pspace_data_cleanup)
6769 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6770 (cache_space, cache): Delete, now folded inside struct
6772 (ada_get_symbol_cache): New function.
6773 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6775 (_initialize_ada_language): Remove initialization of cache_space.
6776 Move call to observer_attach_inferior_exit up, grouping it
6777 with the other observer registrations inside this function.
6778 Rename command to be more general. Add call to
6779 register_program_space_data_with_cleanup.
6781 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6783 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6784 ada_new_objfile_observer.
6785 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6786 (_initialize_tasks): Update uses of ada_new_objfile_observer
6787 and ada_tasks_normal_stop_observer.
6789 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6791 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6792 returned by the 'Length attribute to integer.
6794 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6796 * ada-lang.c (_initialize_ada_language): Initialize
6797 cache_space obstack.
6799 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6801 * ada-lang.c (HASH_SIZE): New macro.
6802 (struct cache_entry): New type.
6803 (cache_space, cache): New static globals.
6804 (ada_clear_symbol_cache, find_entry): New functions.
6805 (lookup_cached_symbol, cache_symbol): Implement.
6806 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6807 (_initialize_ada_language): Attach ada_new_objfile_observer
6808 and ada_free_objfile_observer.
6810 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6812 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6813 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6814 struct block * parameter.
6815 (ada_lookup_symbol_list_worker): Constify local variable "block".
6816 Remove cast which is no longer necessary.
6818 2014-02-10 Doug Evans <xdje42@gmail.com>
6820 Add Guile as an extension language.
6821 * NEWS: Mention Guile scripting.
6822 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6823 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6824 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6825 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6826 (CLIBS): Add GUILE_LIBS.
6827 (install-guile): New rule.
6828 (guile.o): New rule.
6829 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6830 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6831 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6832 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6833 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6834 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6835 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6836 * configure.ac: New option --with-guile.
6837 * configure: Regenerate.
6838 * config.in: Regenerate.
6839 * auto-load.c: Remove #include "python/python.h". Add #include
6840 "gdb/section-scripts.h".
6841 (source_section_scripts): Handle Guile scripts.
6842 (_initialize_auto_load): Add name of Guile objfile script to
6843 scripts-directory help text.
6844 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6845 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6846 (struct breakpoint): New member scm_bp_object.
6847 * defs.h (enum command_control_type): New value guile_control.
6848 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6850 (show_user): Update comment.
6851 (_initialize_cli_cmds): Update help text for "show user". Update help
6852 text for max-user-call-depth.
6853 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6855 (multi_line_command_p): Add guile_control.
6856 (print_command_lines): Handle guile_control.
6857 (execute_control_command, recurse_read_control_structure): Ditto.
6858 (process_next_line): Recognize "guile" commands.
6859 * disasm.c (gdb_disassemble_info): Make non-static.
6860 * disasm.h: #include "dis-asm.h".
6861 (struct gdbarch): Add forward decl.
6862 (gdb_disassemble_info): Declare.
6863 * extension.c: #include "guile/guile.h".
6864 (extension_languages): Add guile.
6865 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6866 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6867 * gdbtypes.c (get_unsigned_type_max): New function.
6868 (get_signed_type_minmax): New function.
6869 * gdbtypes.h (get_unsigned_type_max): Declare.
6870 (get_signed_type_minmax): Declare.
6871 * guile/README: New file.
6872 * guile/guile-internal.h: New file.
6873 * guile/guile.c: New file.
6874 * guile/guile.h: New file.
6875 * guile/scm-arch.c: New file.
6876 * guile/scm-auto-load.c: New file.
6877 * guile/scm-block.c: New file.
6878 * guile/scm-breakpoint.c: New file.
6879 * guile/scm-disasm.c: New file.
6880 * guile/scm-exception.c: New file.
6881 * guile/scm-frame.c: New file.
6882 * guile/scm-gsmob.c: New file.
6883 * guile/scm-iterator.c: New file.
6884 * guile/scm-lazy-string.c: New file.
6885 * guile/scm-math.c: New file.
6886 * guile/scm-objfile.c: New file.
6887 * guile/scm-ports.c: New file.
6888 * guile/scm-pretty-print.c: New file.
6889 * guile/scm-safe-call.c: New file.
6890 * guile/scm-string.c: New file.
6891 * guile/scm-symbol.c: New file.
6892 * guile/scm-symtab.c: New file.
6893 * guile/scm-type.c: New file.
6894 * guile/scm-utils.c: New file.
6895 * guile/scm-value.c: New file.
6896 * guile/lib/gdb.scm: New file.
6897 * guile/lib/gdb/boot.scm: New file.
6898 * guile/lib/gdb/experimental.scm: New file.
6899 * guile/lib/gdb/init.scm: New file.
6900 * guile/lib/gdb/iterator.scm: New file.
6901 * guile/lib/gdb/printing.scm: New file.
6902 * guile/lib/gdb/types.scm: New file.
6903 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6904 (VPATH): Add $(GUILE_SRCDIR).
6905 (GUILE_DIR): New variable.
6906 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6907 (all): Add stamp-guile dependency.
6908 (stamp-guile): New rule.
6909 (clean-guile, install-guile, uninstall-guile): New rules.
6910 (install-only): Add install-guile dependency.
6911 (uninstall): Add uninstall-guile dependency.
6912 (clean): Add clean-guile dependency.
6914 2014-02-09 Doug Evans <xdje42@gmail.com>
6916 Revert this patch (which I approved, mea culpa).
6918 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6920 * Makefile.in (all-lib): Remove.
6921 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6923 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6925 Fix Python stack corruption.
6926 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6929 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6931 * Makefile.in (all-lib): Remove.
6932 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6934 2014-02-07 Doug Evans <dje@google.com>
6936 * extension-priv.h (extension_language_script_ops): Add comment.
6937 (extension_language_ops): Add comment.
6938 (active_ext_lang_state): Fix typo in comment.
6940 2014-02-07 Pedro Alves <palves@redhat.com>
6942 PR breakpoints/16292
6943 * infrun.c (handle_signal_stop) <signal arrives while stepping
6944 over a breakpoint>: Switch back to the stepping thread.
6946 2014-02-07 Yao Qi <yao@codesourcery.com>
6948 * target.c (target_xfer_partial): Return zero if LEN is zero.
6950 2014-02-07 Yao Qi <yao@codesourcery.com>
6952 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6953 (ld_so_xfer_auxv): Likewise.
6954 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6955 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6956 * corelow.c (core_xfer_partial): Likewise.
6957 * ctf.c (ctf_xfer_partial): Likewise.
6958 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6959 (darwin_xfer_partial): Likewise.
6960 * exec.c (exec_xfer_partial): Likewise.
6961 * gnu-nat.c (gnu_xfer_partial): Likewise.
6962 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6963 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6964 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6965 * linux-nat.c (linux_xfer_siginfo): Likewise.
6966 (linux_proc_xfer_spu): Likewise.
6967 * procfs.c (procfs_xfer_partial): Likewise.
6968 * record-full.c (record_full_xfer_partial): Likewise.
6969 (record_full_core_xfer_partial): Likewise.
6970 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6971 * remote.c (remote_write_qxfer): Likewise.
6972 (remote_write_qxfer, remote_read_qxfer): Likewise.
6973 (remote_xfer_partial): Likewise.
6974 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6975 (rs6000_xfer_shared_libraries): Likewise.
6976 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6977 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6978 (spu_xfer_partial): Likewise.
6979 * target.c (memory_xfer_partial_1): Likewise.
6980 * tracepoint.c (tfile_xfer_partial): Likewise.
6981 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6982 (windows_xfer_partial): Likewise.
6984 2014-02-07 Yao Qi <yao@codesourcery.com>
6986 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6988 (core_xfer_shared_libraries_aix): Likewise.
6989 * gdbarch.c, gdbarch.h: Regenerated.
6990 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6991 ULONGEST. Change 'len_avail' type to ULONGEST.
6992 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6993 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6995 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6997 2014-02-07 Yao Qi <yao@codesourcery.com>
6999 * corefile.c (memory_error): Get 'exception' from ERR and pass
7000 'exception' to throw_error.
7002 2014-02-06 Doug Evans <xdje42@gmail.com>
7004 * configure.ac (libpython checking): Remove all but python.o from
7005 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7006 * configure: Regenerate.
7008 * Makefile.in (SFILES): Add extension.c.
7009 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7010 (COMMON_OBS): Add extension.o.
7011 * extension.h: New file.
7012 * extension-priv.h: New file.
7013 * extension.c: New file.
7015 * python/python-internal.h: #include "extension.h".
7016 (gdbpy_auto_load_enabled): Declare.
7017 (gdbpy_apply_val_pretty_printer): Declare.
7018 (gdbpy_apply_frame_filter): Declare.
7019 (gdbpy_preserve_values): Declare.
7020 (gdbpy_breakpoint_cond_says_stop): Declare.
7021 (gdbpy_breakpoint_has_cond): Declare.
7022 (void source_python_script_for_objfile): Delete.
7023 * python/python.c: #include "extension-priv.h".
7024 Delete inclusion of "observer.h".
7025 (extension_language_python): Moved here and renamed from
7026 script_language_python in py-auto-load.c.
7027 Redefined to be of type extension_language_defn.
7028 (python_extension_script_ops): New global.
7029 (python_extension_ops): New global.
7030 (struct python_env): New member previous_active.
7031 (restore_python_env): Call restore_active_ext_lang.
7032 (ensure_python_env): Call set_active_ext_lang.
7033 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7035 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7037 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7039 (gdbpy_eval_from_control_command): Renamed from
7040 eval_python_from_control_command, made static. New arg extlang.
7041 (gdbpy_source_script) Renamed from source_python_script, made static.
7043 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7044 result to int. New arg extlang.
7045 (gdbpy_source_objfile_script): Renamed from
7046 source_python_script_for_objfile, made static. New arg extlang.
7047 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7048 static. New args extlang, extlang_printers. Change result type to
7050 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7051 static. New arg extlang. Rename arg printers to extlang_printers
7052 and change type to ext_lang_type_printers *.
7053 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7054 static. Replace argument arg with extlang, extlang_printers.
7055 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7056 (!HAVE_PYTHON, source_python_script): Delete.
7057 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7058 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7059 (!HAVE_PYTHON, start_type_printers): Delete.
7060 (!HAVE_PYTHON, apply_type_printers): Delete.
7061 (!HAVE_PYTHON, free_type_printers): Delete.
7062 (_initialize_python): Delete call to observer_attach_before_prompt.
7063 (finalize_python): Set/restore active extension language.
7064 (gdbpy_finish_initialization) Renamed from
7065 finish_python_initialization, made static. New arg extlang.
7066 (gdbpy_initialized): New function.
7067 * python/python.h: #include "extension.h". Delete #include
7068 "value.h", "mi/mi-cmds.h".
7069 (extension_language_python): Declare.
7070 (GDBPY_AUTO_FILE_NAME): Delete.
7071 (enum py_bt_status): Moved to extension.h and renamed to
7073 (enum frame_filter_flags): Moved to extension.h.
7074 (enum py_frame_args): Moved to extension.h and renamed to
7075 ext_lang_frame_args.
7076 (finish_python_initialization): Delete.
7077 (eval_python_from_control_command): Delete.
7078 (source_python_script): Delete.
7079 (apply_val_pretty_printer): Delete.
7080 (apply_frame_filter): Delete.
7081 (preserve_python_values): Delete.
7082 (gdbpy_script_language_defn): Delete.
7083 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7084 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7086 * auto-load.c: #include "extension.h".
7087 (GDB_AUTO_FILE_NAME): Delete.
7088 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7089 (script_language_gdb): Delete, moved to extension.c and renamed to
7090 extension_language_gdb.
7091 (source_gdb_script_for_objfile): Delete.
7092 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7093 (loaded_script): Change type of language member to
7094 struct extension_language_defn *.
7095 (init_loaded_scripts_info): Initialize
7096 unsupported_script_warning_printed.
7097 (maybe_add_script): Make static. Change type of language arg to
7098 struct extension_language_defn *.
7099 (clear_section_scripts): Reset unsupported_script_warning_printed.
7100 (auto_load_objfile_script_1): Rewrite to use extension language API.
7101 (auto_load_objfile_script): Make public. Remove support-compiled-in
7102 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7103 (source_section_scripts): Rewrite to use extension language API.
7104 (load_auto_scripts_for_objfile): Rewrite to use
7105 auto_load_scripts_for_objfile.
7106 (collect_matching_scripts_data): Change type of language member to
7107 struct extension_language_defn *.
7108 (auto_load_info_scripts): Change type of language arg to
7109 struct extension_language_defn *.
7110 (unsupported_script_warning_print): New function.
7111 (script_not_found_warning_print): Make static.
7112 (_initialize_auto_load): Rewrite construction of scripts-directory
7114 * auto-load.h (struct objfile): Add forward decl.
7115 (struct script_language): Delete.
7116 (struct auto_load_pspace_info): Add forward decl.
7117 (struct extension_language_defn): Add forward decl.
7118 (maybe_add_script): Delete.
7119 (auto_load_objfile_script): Declare.
7120 (script_not_found_warning_print): Delete.
7121 (auto_load_info_scripts): Update prototype.
7122 (auto_load_gdb_scripts_enabled): Declare.
7123 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7124 auto_load_python_scripts_enabled and made public.
7125 (script_language_python): Delete, moved to python.c.
7126 (gdbpy_script_language_defn): Delete.
7127 (info_auto_load_python_scripts): Update to use
7128 extension_language_python.
7130 * breakpoint.c (condition_command): Replace call to
7131 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7132 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7133 with call to breakpoint_ext_lang_cond_says_stop.
7134 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7135 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7136 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7137 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7139 (local_setattro): Print name of extension language with existing
7142 * valprint.c (val_print, value_print): Update to call
7143 apply_ext_lang_val_pretty_printer.
7144 * cp-valprint.c (cp_print_value): Update call to
7145 apply_ext_lang_val_pretty_printer.
7146 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7147 (gdbpy_apply_val_pretty_printer): Renamed from
7148 apply_val_pretty_printer. New arg extlang.
7149 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7151 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7152 extension language API.
7153 * cli/cli-script.c (execute_control_command): Update to call
7154 eval_ext_lang_from_control_command.
7156 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7157 enum ext_lang_bt_status values. Update call to
7158 apply_ext_lang_frame_filter.
7159 (mi_cmd_stack_list_locals): Ditto.
7160 (mi_cmd_stack_list_args): Ditto.
7161 (mi_cmd_stack_list_variables): Ditto.
7162 * mi/mi-main.c: Delete #include "python/python-internal.h".
7163 Add #include "extension.h".
7164 (mi_cmd_list_features): Replace reference to python internal variable
7165 gdb_python_initialized with call to ext_lang_initialized_p.
7167 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7168 Update to use enum ext_lang_frame_args. Update to call
7169 apply_ext_lang_frame_filter.
7170 * python/py-framefilter.c (extract_sym): Update to use enum
7172 (extract_value, py_print_type, py_print_value): Ditto.
7173 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7174 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7175 (py_print_frame): Ditto.
7176 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7177 New arg extlang. Update to use enum ext_lang_bt_status.
7179 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7180 finish_python_initialization. Replace with call to
7181 finish_ext_lang_initialization.
7183 * typeprint.c (do_free_global_table): Update to call
7184 free_ext_lang_type_printers.
7185 (create_global_typedef_table): Update to call
7186 start_ext_lang_type_printers.
7187 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7188 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7189 (type_print_options): Change type of global_printers from "void *"
7190 to "struct ext_lang_type_printers *".
7192 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7193 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7194 (gdbpy_preserve_values): Renamed from preserve_python_values.
7196 (!HAVE_PYTHON, preserve_python_values): Delete.
7198 * utils.c (quit_flag): Delete, moved to extension.c.
7199 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7202 * eval.c: Delete #include "python/python.h".
7203 * main.c: Delete #include "python/python.h".
7205 * defs.h: Update comment.
7207 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7211 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7213 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7216 2014-02-05 Yao Qi <yao@codesourcery.com>
7218 * remote.c (remote_pass_signals): Remove local 'buf' and use
7220 (remote_program_signals): Likewise.
7222 2014-02-05 Yao Qi <yao@codesourcery.com>
7224 * ctf.c: Include "inferior.h" and "gdbthread.h".
7225 (CTF_PID): A new macro.
7226 (ctf_open): Call inferior_appeared and add_thread_silent.
7227 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7228 (ctf_thread_alive): New function.
7229 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7231 2014-02-05 Yao Qi <yao@codesourcery.com>
7235 2013-05-24 Yao Qi <yao@codesourcery.com>
7237 * tracepoint.c (TFILE_PID): Remove.
7238 (tfile_open): Don't add thread and inferior.
7239 (tfile_close): Don't set 'inferior_ptid'. Don't call
7240 exit_inferior_silent.
7241 (tfile_thread_alive): Remove.
7242 (init_tfile_ops): Don't set field 'to_thread_alive' of
7245 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7247 * remote.c (remote_start_remote): Call remote_check_symbols even
7248 if only symbol-file (not file) has been given.
7250 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7252 * gdbarch.sh (skip_entrypoint): New callback.
7253 * gdbarch.c, gdbarch.h: Regenerate.
7254 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7255 * infrun.c (fill_in_stop_func): Likewise.
7256 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7257 (ppc_elfv2_elf_make_msymbol_special): New function.
7258 (ppc_elfv2_skip_entrypoint): Likewise.
7259 (ppc_linux_init_abi): Install them for ELFv2.
7261 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7263 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7264 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7265 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7266 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7267 structures returned in GPRs.
7269 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7271 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7272 offset to the stack parameter list for the ELFv2 ABI.
7274 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7276 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7277 set_gdbarch_convert_from_func_ptr_addr and
7278 set_gdbarch_elf_make_msymbol_special for ELFv1.
7279 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7280 function descriptors on ELFv1.
7281 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7282 set up r12 at function entry.
7284 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7286 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7287 (struct gdbarch_tdep): New member elf_abi.
7289 * rs6000-tdep.c: Include "elf/ppc64.h".
7290 (rs6000_gdbarch_init): Detect ELF ABI version.
7292 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7294 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7295 within a register pair holding a DFP 128-bit value on little-endian.
7296 (ppc64_sysv_abi_return_value_base): Likewise.
7297 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7298 (dfp_pseudo_register_write): Likewise.
7300 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7302 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7303 offset on little-endian when passing _Decimal32.
7304 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7306 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7308 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7309 of the overlapped FP register within the VSX register on little-
7311 (efpr_pseudo_register_write): Likewise.
7313 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7315 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7316 offset on little-endian when passing small structures.
7318 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7320 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7321 (struct ppc64_sysv_argpos): New data structure.
7322 (ppc64_sysv_abi_push_float): Remove.
7323 (ppc64_sysv_abi_push_val): New function.
7324 (ppc64_sysv_abi_push_integer): Likewise.
7325 (ppc64_sysv_abi_push_freg): Likewise.
7326 (ppc64_sysv_abi_push_vreg): Likewise.
7327 (ppc64_sysv_abi_push_param): Likewise.
7328 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7329 (ppc64_sysv_abi_return_value_base): New function.
7330 (ppc64_sysv_abi_return_value): Refactor to use it.
7332 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7334 * NEWS: Document new target powerpc64le-*-linux*.
7336 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7338 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7339 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7341 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7342 register set used in ELF core dumps. Add floating-point register set.
7344 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7346 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7347 dwarf2_to_gdb[] table using symbolic constants. Adjust
7348 penultimate entry from number representing the PC register
7349 to symbolic constant representing the MDR register. Add
7350 constant for the PC register to the end of the table.
7352 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7354 * bsd-kvm.c: Include <sys/param.h>
7356 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7358 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7360 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7362 * ada-lang.h (clear_ada_sym_cache): Delete.
7364 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7366 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7368 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7370 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7371 the sigreturn register save area only if the syscall is
7374 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7376 * valops.c (value_slice): Minor reformatting.
7378 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7380 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7382 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7384 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7386 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7387 (ada_ignore_descriptive_types_p): New static global.
7388 (find_parallel_type_by_descriptive_type): Return immediately
7389 if ada_ignore_descriptive_types_p is set.
7390 (_initialize_ada_language): Register new commands "maintenance
7391 set ada", "maintenance show ada", "maintenance set ada
7392 ignore-descriptive-types" and "maintenance show ada
7393 ignore-descriptive-types".
7394 * NEWS: Add entry for new "maint ada set/show
7395 ignore-descriptive-types" commands.
7397 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7399 * record-btrace.c (record_btrace_close): Call btrace_teardown
7402 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7404 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7407 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7409 * ada-typeprint (type_is_full_subrange_of_target_type):
7411 (print_range): Add parameter bounds_prefered_p. If not set,
7412 try printing range types using the name of their base type.
7413 (print_range_type): Add parameter bounds_prefered_p.
7414 Use it in call to print_range.
7415 (print_array_type, ada_print_type): Update calls to print_range
7416 and print_range_type.
7418 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7420 * ada-typeprint.c (print_array_type, print_choices, print_range)
7421 (print_range_bound, print_dynamic_range_bound, print_range_type):
7424 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7426 * ada-typeprint.c (print_range): Add missing empty line
7427 after local declaration.
7429 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7431 * ada-valprint.c (print_optional_low_bound): Get index_type's
7432 target type for as long as it is a TYPE_CODE_RANGE.
7434 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7436 * procfs.c (procfs_make_note_section): Remove assertion and
7439 2014-01-24 Yao Qi <yao@codesourcery.com>
7441 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7442 * corelow.c (get_core_siginfo): Likewise.
7444 2014-01-24 Yao Qi <yao@codesourcery.com>
7446 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7447 ULONGEST. Don't check 'len' is negative.
7448 (remote_write_bytes): Change type of 'len' to ULONGEST.
7450 2014-01-23 Tom Tromey <tromey@redhat.com>
7453 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7454 Handle exception from frame.block.
7455 (FrameVars.fetch_frame_locals): Likewise.
7457 2014-01-23 Tom Tromey <tromey@redhat.com>
7460 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7461 on a NULL pointer. Move "goto error" to correct place.
7463 2014-01-23 Tom Tromey <tromey@redhat.com>
7466 * python/py-framefilter.c (apply_frame_filter): Call
7467 ensure_python_env after computing gdbarch.
7469 2014-01-23 Yao Qi <yao@codesourcery.com>
7471 * target.c (raw_memory_xfer_partial): Change argument type
7472 from void * to gdb_byte *.
7473 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7475 2014-01-22 Doug Evans <dje@google.com>
7477 New gdbserver option --debug-format=timestamp.
7480 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7482 * syscalls/s390x-linux.xml: New file.
7483 * syscalls/s390-linux.xml: New file.
7484 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7485 (XML_SYSCALL_FILENAME_S390X): Likewise.
7486 (op_svc): New enum value for SVC opcode.
7487 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7488 (s390_linux_get_syscall_number): New function.
7489 (s390_gdbarch_init): Register '*get_syscall_number' and the
7490 syscall xml file name.
7491 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7492 "s390-linux.xml" and "s390x-linux.xml".
7493 * NEWS: Announce new feature.
7495 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7497 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7499 2014-01-22 Pedro Alves <palves@redhat.com>
7501 * xtensa-config.c: Include defs.h.
7503 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7505 * common/common-utils.h: Add "ARI:" comment beside __func__
7508 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7510 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7511 documentation a bit.
7513 2014-01-21 Roland McGrath <mcgrathr@google.com>
7515 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7516 * configure: Regenerate.
7517 * aclocal.m4: Regenerate.
7518 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7519 New substituted variables.
7520 (install-strip): New target.
7521 (INSTALL_SCRIPT): New substituted variable.
7522 (FLAGS_TO_PASS): Add it.
7523 (install-only): Use $(INSTALL_SCRIPT) rather than
7524 $(INSTALL_PROGRAM) for gcore.
7526 2014-01-20 Tom Tromey <tromey@redhat.com>
7528 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7531 2014-01-20 Tom Tromey <tromey@redhat.com>
7533 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7534 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7535 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7536 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7537 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7538 (struct cmd_list_element) <flags>: Remove.
7539 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7540 doc_allocated>: New fields.
7541 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7543 * maint.c (maintenance_do_deprecate): Update.
7544 * top.c (execute_command): Update.
7546 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7548 * xtensa-linux-nat.c: Include asm/ptrace.h.
7550 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7552 * Makefile.in (SFILES): Add d-support.c.
7553 (COMMON_OBS): Add d-support.o.
7554 * d-lang.h (d_parse_symbol): Add comment, now defined in
7556 * d-lang.c (parse_call_convention)
7557 (parse_attributes, parse_function_types)
7558 (parse_function_args, parse_type, parse_identifier)
7559 (call_convention_p, d_parse_symbol): Move functions to ...
7560 * d-support.c: ... New file.
7562 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7564 * d-lang.h (d_parse_symbol): Add declaration.
7565 * d-lang.c (extract_identifiers)
7566 (extract_type_info): Remove functions.
7567 (parse_call_convention, parse_attributes)
7568 (parse_function_types, parse_function_args)
7569 (parse_type, parse_identifier, call_convention_p)
7570 (d_parse_symbol): New functions.
7571 (d_demangle): Use d_parse_symbol to demangle D symbols.
7573 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7575 * d-lang.h (struct builtin_d_type): New data type.
7576 (builtin_d_type): Add declaration.
7577 * d-lang.c (d_language_arch_info, build_d_types)
7578 (builtin_d_type): New functions.
7579 (enum d_primitive_types): New data type.
7580 (d_language_defn): Change c_language_arch_info to
7581 d_language_arch_info.
7582 (d_type_data): New static variable.
7583 (_initialize_d_language): Initialize d_type_data.
7585 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7587 * d-lang.h (d_main_name): Add declaration.
7588 * d-lang.c (d_main_name): New function.
7589 * symtab.c (find_main_name): Add call to d_main_name.
7591 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7593 * d-lang.c (d_language_defn): Change macro_expansion_c to
7596 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7598 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7600 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7602 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7603 gdb_exception" declaration.
7604 * remote.c (getpkt_or_notif_sane): Likewise.
7606 2014-01-17 Doug Evans <dje@google.com>
7608 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7609 function, contents of dirnames_to_char_ptr_vec_append moved here.
7610 (delim_string_to_char_ptr_vec): New function.
7611 (dirnames_to_char_ptr_vec_append): Rewrite.
7612 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7614 2014-01-17 Doug Evans <dje@google.com>
7616 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7618 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7619 #include "common-utils.h".
7620 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7621 * common/vec.h (VEC_ASSERT_PASS): Update.
7622 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7623 (MACH_CHECK_ERROR): Update.
7625 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7627 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7629 * gdbarch.h: Regenerate.
7631 2014-01-16 Tom Tromey <tromey@redhat.com>
7633 * value.c (struct value) <regnum>: Move earlier.
7635 2014-01-16 Tom Tromey <tromey@redhat.com>
7637 * remote.c (extended_remote_create_inferior): Rename from
7638 extended_remote_create_inferior_1. Add "ops" argument. Remove
7641 2014-01-16 Pedro Alves <palves@redhat.com>
7643 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7644 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7647 2014-01-16 Doug Evans <dje@google.com>
7649 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7651 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7653 * btrace.h (btrace_thread_flag): New.
7654 (struct btrace_thread_info) <flags>: New.
7655 * record-btrace.c (record_btrace_resume_thread)
7656 (record_btrace_find_thread_to_move, btrace_step_no_history)
7657 (btrace_step_stopped, record_btrace_start_replaying)
7658 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7659 (record_btrace_find_resume_thread): New.
7660 (record_btrace_resume, record_btrace_wait): Extend.
7661 (record_btrace_can_execute_reverse): New.
7662 (record_btrace_open): Fail in non-stop mode.
7663 (record_btrace_set_replay): Split into this, ...
7664 (record_btrace_stop_replaying): ... this, ...
7665 (record_btrace_clear_histories): ... and this.
7666 (init_record_btrace_ops): Init to_can_execute_reverse.
7667 * NEWS: Announce it.
7669 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7671 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7672 (forward_target_decr_pc_after_break)
7673 (target_decr_pc_after_break): New.
7674 * target.c (forward_target_decr_pc_after_break)
7675 (target_decr_pc_after_break): New.
7676 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7677 instead of gdbarch_decr_pc_after_break.
7678 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7679 instead of gdbarch_decr_pc_after_break.
7680 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7681 instead of gdbarch_decr_pc_after_break.
7682 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7683 instead of gdbarch_decr_pc_after_break.
7684 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7685 instead of gdbarch_decr_pc_after_break.
7686 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7687 instead of gdbarch_decr_pc_after_break.
7689 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7691 * btrace.c: Include regcache.h.
7692 (btrace_add_pc): New.
7693 (btrace_enable): Call btrace_add_pc.
7694 (btrace_is_empty): New.
7695 * btrace.h (btrace_is_empty): New.
7696 * record-btrace.c (require_btrace, record_btrace_info): Call
7699 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7701 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7702 Support delta reads.
7703 (linux_disable_btrace): Change return type.
7704 * common/linux-btrace.h (linux_read_btrace): Change parameters
7705 and return type to allow error reporting. Update users.
7706 (linux_disable_btrace): Change return type. Update users.
7707 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7709 (btrace_error): New.
7710 (btrace_block) <begin>: Comment on BEGIN == 0.
7711 * btrace.c (btrace_compute_ftrace): Start from the end of
7713 (btrace_stitch_trace, btrace_clear_history): New.
7714 (btrace_fetch): Read delta trace, return if replaying.
7715 (btrace_clear): Move clear history code to btrace_clear_history.
7716 (parse_xml_btrace): Throw an error if parsing failed.
7717 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7718 and return type to allow error reporting.
7719 (target_read_btrace): Change parameters and return type to allow
7721 * target.c (target_read_btrace): Update.
7722 * remote.c (remote_read_btrace): Support delta reads. Pass
7724 * NEWS: Announce it.
7726 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7728 * record.h (record_btrace_frame_unwind)
7729 (record_btrace_tailcall_frame_unwind): New declarations.
7730 * dwarf2-frame: Include record.h
7731 (dwarf2_frame_cfa): Throw an error for btrace frames.
7732 * record-btrace.c: Include hashtab.h.
7733 (btrace_get_bfun_name): New.
7734 (btrace_call_history): Call btrace_get_bfun_name.
7735 (struct btrace_frame_cache): New.
7737 (bfcache_hash, bfcache_eq, bfcache_new): New.
7738 (btrace_get_frame_function): New.
7739 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7740 (record_btrace_frame_this_id): Compute own id.
7741 (record_btrace_frame_prev_register): Provide PC, throw_error
7742 for all other registers.
7743 (record_btrace_frame_sniffer): Detect btrace frames.
7744 (record_btrace_tailcall_frame_sniffer): New.
7745 (record_btrace_frame_dealloc_cache): New.
7746 (record_btrace_frame_unwind): Add new functions.
7747 (record_btrace_tailcall_frame_unwind): New.
7748 (_initialize_record_btrace): Allocate cache.
7749 * btrace.c (btrace_clear): Call reinit_frame_cache.
7750 * NEWS: Announce it.
7752 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7754 * record-btrace.c (record_btrace_set_replay)
7755 (record_btrace_goto_begin, record_btrace_goto_end)
7756 (record_btrace_goto): New.
7757 (init_record_btrace_ops): Initialize them.
7758 * NEWS: Announce it.
7760 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7762 * record-btrace.c (record_btrace_find_new_threads)
7763 (record_btrace_thread_alive): New.
7764 (init_record_btrace_ops): Initialize to_find_new_threads and
7767 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7769 * record-btrace.c (record_btrace_resume): New.
7770 (record_btrace_wait): New.
7771 (init_record_btrace_ops): Initialize to_wait and to_resume.
7773 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7775 * record-btrace.c (record_btrace_xfer_partial)
7776 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7777 (record_btrace_allow_memory_access): New.
7778 (init_record_btrace_ops): Initialize new methods.
7779 * target.c (raw_memory_xfer_partial): Bail out if target reports
7780 that this memory is not available.
7782 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7784 * target.h (target_ops) <to_insert_breakpoint>
7785 <to_remove_breakpoint>: Add target_ops parameter.
7786 (forward_target_insert_breakpoint): New.
7787 (forward_target_remove_breakpoint): New.
7788 (memory_remove_breakpoint, memory_insert_breakpoint):
7789 Add target_ops parameter.
7790 * target.c (target_insert_breakpoint): Split into this and ...
7791 (forward_target_insert_breakpoint): ... this.
7792 (target_remove_breakpoint): Split into this and ...
7793 (forward_target_remove_breakpoint): ... this.
7794 (debug_to_insert_breakpoint): Add target_ops parameter.
7795 Call forward_target_insert_breakpoint.
7796 (debug_to_remove_breakpoint): Add target_ops parameter.
7797 Call forward_target_remove_breakpoint.
7798 (update_current_target): Do not inherit or default to_insert_breakpoint
7799 and to_remove_breakpoint.
7800 * corelow.c (ignore): Add target_ops parameter.
7801 * exec.c (ignore): Add target_ops parameter.
7802 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7803 Add target_ops parameter.
7804 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7805 Add target_ops parameter.
7806 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7807 Add target_ops parameter.
7808 * record-full.c (record_full_beneath_to_insert_breakpoint)
7809 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7810 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7811 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7812 (record_full_core_remove_breakpoint): Add target_ops parameter.
7814 (record_full_beneath_to_insert_breakpoint_ops)
7815 (record_full_beneath_to_remove_breakpoint_ops)
7816 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7817 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7818 tmp_to_remove_breakpoint_ops,
7819 record_full_beneath_to_insert_breakpoint_ops, and
7820 record_full_beneath_to_remove_breakpoint_ops.
7821 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7822 (m32r_remove_breakpoint): Add target_ops parameter.
7823 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7824 Add target_ops parameter.
7825 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7826 Add target_ops parameter.
7828 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7829 Markus Metzger <markus.t.metzger@intel.com>
7831 * record-btrace.c: Include frame-unwind.h.
7832 (record_btrace_frame_unwind_stop_reason)
7833 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7834 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7836 (init_record_btrace_ops): Install it.
7838 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7840 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7843 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7845 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7848 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7850 * frame-unwind.c: Include target.h.
7851 (frame_unwind_try_unwinder): New function with code from ...
7852 (frame_unwind_find_by_frame): ... here. New variable
7853 unwinder_from_target, call also target_get_unwinder)
7854 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7855 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7856 * target.h (struct target_ops): New fields to_get_unwinder and
7857 to_get_tailcall_unwinder.
7858 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7860 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7862 * record-btrace.c (record_btrace_fetch_registers)
7863 (record_btrace_store_registers)
7864 (record_btrace_to_prepare_to_store): New.
7865 (init_record_btrace_ops): Add the above.
7867 2014-01-16 Tom Tromey <tromey@redhat.com>
7869 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7870 * target.h (struct target_ops) <to_prepare_to_store>: Add
7872 (target_prepare_to_store): Add argument.
7873 * target.c (debug_to_prepare_to_store): Add argument.
7874 (update_current_target): Update.
7875 * remote.c (remote_prepare_to_store): Add 'self' argument.
7876 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7877 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7878 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7879 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7881 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7882 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7883 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7884 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7885 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7887 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7889 * btrace.h (replay) <replay>: New.
7890 (btrace_is_replaying): New.
7891 * btrace.c (btrace_clear): Free replay iterator.
7892 (btrace_is_replaying): New.
7893 * record-btrace.c (record_btrace_is_replaying): New.
7894 (record_btrace_info): Print insn number if replaying.
7895 (record_btrace_insn_history): Start at replay position.
7896 (record_btrace_call_history): Start at replay position.
7897 (init_record_btrace_ops): Init to_record_is_replaying.
7899 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7901 * record-btrace.c (record_btrace_insn_history_range): Include
7903 (record_btrace_insn_history_from): Adjust range.
7904 (record_btrace_call_history_range): Include
7906 (record_btrace_call_history_from): Adjust range.
7907 * NEWS: Announce changes.
7909 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7911 * record.h (enum record_print_flag)
7912 <record_print_indent_calls>: New.
7913 * record.c (get_call_history_modifiers): Recognize /c modifier.
7914 (_initialize_record): Document /c modifier.
7915 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7916 Reorder fields. Optionally indent the function name. Update
7918 * NEWS: Announce changes.
7920 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7922 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7926 * btrace.c (ftrace_new_function): Start counting at one.
7927 * record-btrace.c (record_btrace_info): Adjust number of calls
7929 * NEWS: Announce it.
7931 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7933 * record-btrace.c (btrace_call_history_insn_range): Print
7934 insn range as [begin, end].
7936 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7938 * btrace.h (struct btrace_func_link): New.
7939 (enum btrace_function_flag): New.
7940 (struct btrace_inst): Rename to ...
7941 (struct btrace_insn): ...this. Update all users.
7942 (struct btrace_func) <ibegin, iend>: Remove.
7943 (struct btrace_func_link): New.
7944 (struct btrace_func): Rename to ...
7945 (struct btrace_function): ...this. Update all users.
7946 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7947 (number, level, flags>: New.
7948 (struct btrace_insn_iterator): Rename to ...
7949 (struct btrace_insn_history): ...this.
7951 (struct btrace_insn_iterator, btrace_call_iterator): New.
7952 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7953 (struct btrace_target_info) <begin, end, level>
7954 <insn_history, call_history>: New.
7955 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7956 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7957 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7958 (btrace_call_number, btrace_call_begin, btrace_call_end)
7959 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7960 (btrace_find_function_by_number, btrace_set_insn_history)
7961 (btrace_set_call_history): New.
7962 * btrace.c (btrace_init_insn_iterator)
7963 (btrace_init_func_iterator, compute_itrace): Remove.
7964 (ftrace_print_function_name, ftrace_print_filename)
7965 (ftrace_skip_file): Change
7967 (ftrace_init_func): Remove.
7968 (ftrace_debug): Use new btrace_function fields.
7969 (ftrace_function_switched): Also consider gaining and
7970 losing symbol information).
7971 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7972 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7973 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7975 (ftrace_new_function): Move. Remove debug print.
7976 (ftrace_update_lines, ftrace_update_insns): New.
7977 (ftrace_update_function): Check for call, ret, and jump.
7978 (compute_ftrace): Renamed to ...
7979 (btrace_compute_ftrace): ...this. Rewritten to compute call
7981 (btrace_fetch, btrace_clear): Updated.
7982 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7983 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7984 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7985 (btrace_call_number, btrace_call_begin, btrace_call_end)
7986 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7987 (btrace_find_function_by_number, btrace_set_insn_history)
7988 (btrace_set_call_history): New.
7989 * record-btrace.c (require_btrace): Use new btrace thread
7991 (record_btrace_info, btrace_insn_history)
7992 (record_btrace_insn_history, record_btrace_insn_history_range):
7993 Use new btrace thread info fields and new iterator.
7994 (btrace_func_history_src_line): Rename to ...
7995 (btrace_call_history_src_line): ...this. Use new btrace
7997 (btrace_func_history): Rename to ...
7998 (btrace_call_history): ...this. Use new btrace thread info
7999 fields and new iterator.
8000 (record_btrace_call_history, record_btrace_call_history_range):
8001 Use new btrace thread info fields and new iterator.
8003 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8005 * frame.h (frame_id_build_unavailable_stack_special): New.
8006 * frame.c (frame_id_build_unavailable_stack_special): New.
8008 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8010 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8011 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8012 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8014 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8015 (i386_insn_is_jump, i386_jmp_p): New.
8016 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8017 insn_is_jump to gdbarch.
8018 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8019 * gdbarch.h: Regenerated.
8020 * gdbarch.c: Regenerated.
8021 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8022 (default_insn_is_jump): New.
8023 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8024 (default_insn_is_jump): New.
8026 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8028 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8030 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8031 (btrace_read_type) <btrace_read_new>: Change to ...
8032 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8034 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8036 * common/linux-btrace.c (linux_read_btrace): Free trace from
8039 2014-01-15 Doug Evans <dje@google.com>
8041 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8044 2014-01-15 Tom Tromey <tromey@redhat.com>
8046 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8047 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8048 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8049 (set_objfile_main_name): New function.
8050 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8051 language_of_main>: New fields.
8052 (set_objfile_main_name): Declare.
8053 * symtab.c (find_main_name): Loop over objfiles to find the main
8055 (set_main_name): Now static.
8056 (get_main_info): Add comment.
8057 * symtab.h (set_main_name): Don't declare.
8059 2014-01-15 Tom Tromey <tromey@redhat.com>
8061 * symtab.c (main_progspace_key): New global.
8062 (struct main_info): New.
8063 (name_of_main, language_of_main): Remove.
8064 (get_main_info, main_info_cleanup): New function.
8065 (set_main_name, main_name, main_language): Use get_main_info.
8066 (_initialize_symtab): Initialize main_progspace_key.
8068 2014-01-15 Tom Tromey <tromey@redhat.com>
8070 * dbxread.c (process_one_symbol): Update.
8071 * dwarf2read.c (read_partial_die): Update.
8072 * symfile.c (set_initial_language): Call main_language.
8073 * symtab.c (language_of_main): Now static.
8074 (set_main_name): Add 'lang' parameter.
8075 (find_main_name): Update.
8076 (main_language): New function.
8077 (symtab_observer_executable_changed): Update.
8078 * symtab.h (set_main_name): Update.
8079 (language_of_main): Remove.
8080 (main_language): Declare.
8082 2014-01-15 Tom Tromey <tromey@redhat.com>
8084 * symfile.c (init_entry_point_info): Use new "initialized" field.
8086 * objfiles.h (struct entry_point) <initialized>: New field.
8087 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8088 (struct objfile) <ei>: ...here. Remove.
8089 * objfiles.c (entry_point_address_query): Update.
8091 2014-01-15 Tom Tromey <tromey@redhat.com>
8093 * objfiles.c (entry_point_address_query): Relocate entry point
8095 (objfile_relocate1): Do not relocate entry point address.
8096 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8097 <the_bfd_section_index>: New field.
8098 * symfile.c (init_entry_point_info): Find the entry point's
8101 2014-01-15 Tom Tromey <tromey@redhat.com>
8103 * solib-frv.c (enable_break): Use entry_point_address_query.
8105 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8107 * NEWS: Add note on improved process record-replay on
8108 arm*-linux* targets.
8110 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8112 * arm-tdep.c (enum arm_record_result): New enum.
8113 (arm_record_unsupported_insn): New function.
8114 (arm_record_coproc_data_proc): Removed.
8115 (thumb2_record_ld_st_multiple): New function.
8116 (thumb2_record_ld_st_dual_ex_tbb): New function.
8117 (thumb2_record_data_proc_sreg_mimm): New function.
8118 (thumb2_record_ps_dest_generic): New function.
8119 (thumb2_record_branch_misc_cntrl): New function.
8120 (thumb2_record_str_single_data): New function.
8121 (thumb2_record_ld_mem_hints): New function.
8122 (thumb2_record_ld_word): New function.
8123 (thumb2_record_lmul_lmla_div): New function.
8124 (thumb2_record_decode_insn_handler): New function.
8125 (decode_insn): Add thumb32 instruction handlers.
8127 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8129 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8130 (struct arm_linux_record_tdep): Declare.
8131 (arm_canonicalize_syscall): New function.
8132 (arm_all_but_pc_registers_record): New function.
8133 (arm_linux_syscall_record): New function.
8134 (arm_linux_init_abi): Add syscall recording constructs.
8135 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8136 decoding. (arm_record_coproc_data_proc): Update arm syscall
8138 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8139 <arm_syscall_record>: New field.
8140 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8143 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8145 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8146 register for push instruction recording.
8148 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8150 * arm-tdep.c (thumb_record_misc): Update to correct logical
8151 error while recording ldm, ldmia and pop instructions.
8153 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8155 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8157 2014-01-15 Pedro Alves <palves@redhat.com>
8159 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8160 (go32_resume, go32_fetch_registers, store_register)
8161 (go32_store_registers, go32_prepare_to_store)
8162 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8163 (go32_create_inferior, go32_can_run, go32_terminal_init)
8164 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8167 2014-01-15 Tom Tromey <tromey@redhat.com>
8169 * target.h (async_callback_ftype): New typedef.
8170 (struct target_ops) <to_async>: Use it.
8172 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8174 * python/py-value.c (get_field_type): Remove unnecessary curly
8175 braces for single-statement if block.
8177 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8179 * python/py-type.c (convert_field): Add missing empty line
8182 2014-01-14 Doug Evans <dje@google.com>
8184 * symfile.h (expand_symtabs_matching): Renamed from
8185 expand_partial_symbol_names. Update prototype.
8186 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8187 * symfile.c (expand_symtabs_matching): Renamed from
8188 expand_partial_symbol_names. New args file_matcher, kind.
8189 Rename arg fun to symbol_matcher.
8190 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8191 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8192 ada_expand_partial_symbol_name.
8193 (ada_make_symbol_completion_list): Update to call
8194 expand_symtabs_matching.
8195 (ada_add_global_exceptions): Call expand_symtabs_matching.
8196 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8197 call map_symbol_filenames.
8198 * symtab.c (sources_info): Update to call map_symbol_filenames.
8199 (search_symbols): Call expand_symtabs_matching.
8200 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8201 (default_make_symbol_completion_list_break_on): Update to call
8202 expand_symtabs_matching.
8203 (make_source_files_completion_list): Update to call
8204 map_symbol_filenames.
8206 2014-01-14 Doug Evans <dje@google.com>
8208 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8209 (expand_symtabs_symbol_matcher_ftype): New typedef.
8210 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8211 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8212 * symfile.c (expand_partial_symbol_names): Update to use
8213 expand_symtabs_symbol_matcher_ftype.
8214 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8215 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8216 Arg name_matcher renamed to symbol_matcher.
8217 * psymtab.c (recursively_search_psymtabs): Update to use
8218 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8220 (expand_symtabs_matching_via_partial): Update to use
8221 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8222 Arg name_matcher renamed to symbol_matcher.
8224 2014-01-14 Doug Evans <dje@google.com>
8226 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8227 (map_partial_symbol_filenames): Ditto.
8228 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8229 (map_partial_symbol_filenames): Ditto.
8230 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8231 (map_partial_symbol_filenames): Ditto.
8232 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8233 (map_partial_symbol_filenames): Ditto.
8234 * symtab.c: Delete #include "psymtab.h".
8236 2014-01-14 Pedro Alves <palves@redhat.com>
8237 Tom Tromey <tromey@redhat.com>
8239 * infrun.c (use_displaced_stepping): Use find_record_target
8240 instead of RECORD_IS_USED.
8241 (adjust_pc_after_break): Use record_full_is_used instead of
8243 * record-btrace.c (record_btrace_open): Call record_preopen
8244 instead of checking RECORD_IS_USED.
8245 * record-full.c (record_full_shortname)
8246 (record_full_core_shortname): New globals.
8247 (record_full_is_used): New function.
8248 (find_full_open): Call record_preopen instead of checking
8250 (init_record_full_ops): Set the target's shortname to
8251 record_full_shortname.
8252 (init_record_full_core_ops): Set the target's shortname to
8253 record_full_core_shortname.
8254 * record-full.h (record_full_is_used): Declare.
8255 * record.c (find_record_target): Make extern.
8256 (record_preopen): New function.
8257 * record.h (RECORD_IS_USED): Delete macro.
8258 (find_record_target, record_preopen): Declare functions.
8260 2014-01-14 Yao Qi <yao@codesourcery.com>
8262 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8263 'len''s type to ULONGEST.
8264 (core_xfer_shared_libraries_aix): Likewise.
8265 * gdbarch.c, gdbarch.h: Regenerated.
8266 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8267 Change type of 'len' to ULONGEST.
8268 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8269 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8271 2014-01-14 Yao Qi <yao@codesourcery.com>
8273 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8274 type of 'len' to ULONGEST.
8275 (linux_xfer_osdata_processgroups): Likewise.
8276 (linux_xfer_osdata_threads): Likewise.
8277 (linux_xfer_osdata_fds): Likewise.
8278 (linux_xfer_osdata_isockets): Likewise.
8279 (linux_xfer_osdata_shm): Likewise.
8280 (linux_xfer_osdata_sem): Likewise.
8281 (linux_xfer_osdata_msg): Likewise.
8282 (linux_common_xfer_osdata): Likewise.
8283 (struct osdata_type) <getter>: Likewise.
8284 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8287 2014-01-14 Yao Qi <yao@codesourcery.com>
8289 * target.h (target_xfer_partial_ftype): Update.
8290 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8292 * aix-thread.c (aix_thread_xfer_partial): Change type of
8293 argument 'len' to ULONGEST.
8294 * auxv.c (procfs_xfer_auxv): Likewise.
8295 (ld_so_xfer_auxv): Likewise.
8296 (memory_xfer_auxv): Likewise.
8297 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8298 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8299 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8300 * corelow.c (core_xfer_partial): Likewise.
8301 * ctf.c (ctf_xfer_partial): Likewise.
8302 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8304 (darwin_read_dyld_info): Likewise.
8305 (darwin_xfer_partial): Likewise.
8306 * exec.c (section_table_xfer_memory_partial): Likewise.
8307 (exec_xfer_partial): Likewise.
8308 * exec.h (section_table_xfer_memory_partial): Update
8310 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8311 instead of plongest.
8312 (gnu_xfer_partial): Likewise.
8313 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8314 (ia64_hpux_xfer_solib_got): Likewise.
8315 (ia64_hpux_xfer_partial): Likewise.
8316 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8317 * inf-ptrace.c (inf_ptrace_xfer_partial):
8318 * inf-ttrace.c (inf_ttrace_xfer_partial):
8319 * linux-nat.c (linux_xfer_siginfo): Likewise.
8320 (linux_nat_xfer_partial): Likewise.
8321 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8322 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8323 * monitor.c (monitor_xfer_memory): Likewise.
8324 (monitor_xfer_partial): Likewise.
8325 * procfs.c (procfs_xfer_partial): Likewise.
8326 * record-full.c (record_full_xfer_partial): Likewise.
8327 (record_full_core_xfer_partial): Likewise.
8328 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8329 instead of plongest.
8330 (gdbsim_xfer_partial): Likewise.
8331 * remote.c (remote_xfer_partial): Likewise.
8332 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8333 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8335 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8336 (rs6000_xfer_shared_libraries): Likewise.
8337 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8338 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8339 (sparc_xfer_partial): Likewise.
8340 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8341 (spu_xfer_partial): Likewise.
8342 * spu-multiarch.c (spu_xfer_partial): Likewise.
8343 * target.c (target_read_live_memory): Likewise.
8344 (memory_xfer_live_readonly_partial): Likewise.
8345 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8346 (target_xfer_partial, default_xfer_partial): Likewise.
8347 (current_xfer_partial): Likewise.
8348 * tracepoint.c (tfile_xfer_partial): Likewise.
8349 * windows-nat.c (windows_xfer_memory): Likewise. Call
8350 pulongest instead of plongest.
8351 (windows_xfer_partial): Likewise.
8352 (windows_xfer_shared_libraries): Likewise.
8354 2014-01-14 Yao Qi <yao@codesourcery.com>
8356 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8357 target_xfer_partial_ftype.
8359 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8363 * valops.c (value_struct_elt_bitpos): New function
8364 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8365 object to 'None' if the field name is an empty string ("").
8366 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8367 attribute to look for a field when 'name' is 'None'.
8368 (get_field_type): New function
8370 2014-01-13 Doug Evans <dje@google.com>
8373 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8374 (try_open_dwop_file): Ditto.
8375 * gdb_bfd.c: #include "vec.h".
8376 (bfdp): New typedef.
8377 (struct gdb_bfd_data): New member included_bfds.
8378 (gdb_bfd_unref): Unref all included bfds.
8379 (gdb_bfd_record_inclusion): New function.
8380 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8382 2014-01-13 Tom Tromey <tromey@redhat.com>
8384 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8386 2014-01-13 Tom Tromey <tromey@redhat.com>
8388 * defs.h (use_windows): Remove.
8389 * gdb.c (main): Update.
8390 * main.c (captured_main, gdb_main): Update.
8391 * main.h (struct captured_main_args) <use_windows>: Remove.
8392 * top.c (use_windows): Remove.
8394 2014-01-13 Tom Tromey <tromey@redhat.com>
8396 * defs.h (deprecated_flush_hook): Remove.
8398 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8401 * linux-thread-db.c (try_thread_db_load): Add parameter
8402 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8403 (try_thread_db_load_from_pdir_1): Move it there from here.
8404 (try_thread_db_load_from_sdir): Update caller.
8405 (try_thread_db_load_from_dir): Move it there from here.
8407 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8409 * regformats/regdat.sh: Always rewrite the register file.
8411 2014-01-13 Pedro Alves <palves@redhat.com>
8413 * Makefile.in (CHECK_HEADERS): New variable.
8414 (check-headers:): New rule.
8416 2014-01-13 Tom Tromey <tromey@redhat.com>
8418 * cli/cli-setshow.c (do_set_command): Update.
8419 * defs.h (deprecated_set_hook): Remove.
8420 * top.c (deprecated_set_hook): Remove.
8422 2014-01-13 Pedro Alves <palves@redhat.com>
8424 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8425 the tracepoint if the PC is a pseudo-register.
8427 2014-01-13 Tom Tromey <tromey@redhat.com>
8429 * defs.h (XCALLOC): Remove.
8430 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8431 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8432 * dwarf2loc.c (allocate_piece_closure): Likewise.
8433 * elfread.c (elf_symfile_segments): Likewise.
8434 (elf_symfile_segments): Likewise.
8435 * gdbtypes.c (copy_type_recursive): Likewise.
8436 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8437 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8438 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8440 * mt-tdep.c (mt_gdbarch_init): Likewise.
8441 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8443 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8444 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8445 * registry.c (registry_alloc_data): Likewise.
8446 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8447 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8448 * serial.c (serial_fdopen_ops): Likewise.
8449 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8451 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8452 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8455 2014-01-13 Tom Tromey <tromey@redhat.com>
8457 * defs.h (XMALLOC): Remove.
8458 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8459 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8460 * cli-out.c (struct ui_out *): Likewise.
8461 * cli/cli-dump.c (add_dump_command): Likewise.
8462 (add_dump_command): Likewise.
8463 * complaints.c (get_complaints): Likewise.
8464 (find_complaint): Likewise.
8465 * dwarf2-frame.c (execute_cfa_program): Likewise.
8466 * dwarf2read.c (abbrev_table_read_table): Likewise.
8467 * gdbarch.sh: Likewise.
8468 * gdbarch.c: Rebuild.
8469 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8470 * interps.c (interp_new): Likewise.
8471 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8472 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8473 * mi/mi-console.c (mi_console_file_new): Likewise.
8474 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8475 * mi/mi-out.c (mi_out_new): Likewise.
8476 * mi/mi-parse.c (mi_parse): Likewise.
8477 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8478 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8479 * observer.c (xalloc_observer_list_node): Likewise.
8480 * regcache.c (regcache_xmalloc_1): Likewise.
8481 * reggroups.c (reggroup_new): Likewise.
8482 (_initialize_reggroup): Likewise.
8483 * registry.c (register_data_with_cleanup): Likewise.
8484 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8485 * ser-base.c (serial_ttystate): Likewise.
8486 * ser-mingw.c (make_pipe_state): Likewise.
8487 * ser-pipe.c (pipe_open): Likewise.
8488 * serial.c (serial_open): Likewise.
8489 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8490 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8491 (tui_alloc_win_info): Likewise.
8492 (tui_add_content_elements): Likewise.
8493 * tui/tui-file.c (tui_file_new): Likewise.
8494 * tui/tui-out.c (tui_out_new): Likewise.
8495 * ui-file.c (mem_file_new): Likewise.
8496 * ui-out.c (push_level): Likewise.
8497 (make_cleanup_ui_out_end): Likewise.
8498 (append_header_to_list): Likewise.
8499 (ui_out_new): Likewise.
8500 * user-regs.c (user_reg_add_builtin): Likewise.
8502 2014-01-13 Tom Tromey <tromey@redhat.com>
8504 * defs.h (XZALLOC): Remove.
8505 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8506 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8507 (get_ada_tasks_inferior_data): Likewise.
8508 * auto-load.c (get_auto_load_pspace_data): Likewise.
8509 * auxv.c (get_auxv_inferior_data): Likewise.
8510 * bfd-target.c (target_bfd_reopen): Likewise.
8511 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8512 (deprecated_insert_raw_breakpoint): Likewise.
8513 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8514 * corelow.c (core_open): Likewise.
8515 * darwin-nat.c (darwin_check_new_threads): Likewise.
8516 (darwin_attach_pid): Likewise.
8517 * dummy-frame.c (dummy_frame_push): Likewise.
8518 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8519 * dwarf2loc.c (allocate_piece_closure): Likewise.
8520 * elfread.c (elf_symfile_segments): Likewise.
8521 * eval.c (ptrmath_type_p): Likewise.
8522 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8523 * gdbtypes.c (alloc_type_arch): Likewise.
8524 (alloc_type_instance): Likewise.
8525 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8526 * inf-child.c (inf_child_can_use_agent): Likewise.
8527 * inflow.c (get_inflow_inferior_data): Likewise.
8528 * infrun.c (save_infcall_suspend_state): Likewise.
8529 * jit.c (jit_reader_load): Likewise.
8530 (get_jit_objfile_data): Likewise.
8531 (get_jit_program_space_data): Likewise.
8532 (jit_object_open_impl): Likewise.
8533 (jit_symtab_open_impl): Likewise.
8534 (jit_block_open_impl): Likewise.
8535 (jit_frame_sniffer): Likewise.
8536 * linux-fork.c (add_fork): Likewise.
8537 * maint.c (make_command_stats_cleanup): Likewise.
8538 * objfiles.c (get_objfile_pspace_data): Likewise.
8539 * opencl-lang.c (struct lval_closure): Likewise.
8540 * osdata.c (osdata_start_osdata): Likewise.
8541 * progspace.c (new_address_space): Likewise.
8542 (add_program_space): Likewise.
8543 * remote-sim.c (get_sim_inferior_data): Likewise.
8544 * sh-tdep.c (sh_gdbarch_init): Likewise.
8545 * skip.c (Ignore): Likewise.
8546 (skip_delete_command): Likewise.
8547 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8548 (library_list_start_library): Likewise.
8549 (solib_aix_current_sos): Likewise.
8550 * solib-darwin.c (get_darwin_info): Likewise.
8551 (darwin_current_sos): Likewise.
8552 * solib-dsbt.c (get_dsbt_info): Likewise.
8553 * solib-ia64-hpux.c (new_so_list): Likewise.
8554 (ia64_hpux_get_solib_linkage_addr): Likewise.
8555 * solib-spu.c (append_ocl_sos): Likewise.
8556 (spu_current_sos): Likewise.
8557 * solib-svr4.c (get_svr4_info): Likewise.
8558 (svr4_keep_data_in_core): Likewise.
8559 (library_list_start_library): Likewise.
8560 (svr4_default_sos): Likewise.
8561 (svr4_read_so_list): Likewise.
8562 * solib-target.c (library_list_start_library): Likewise.
8563 (solib_target_current_sos): Likewise.
8564 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8565 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8566 * symfile.c (default_symfile_segments): Likewise.
8567 * target-descriptions.c (tdesc_data_init): Likewise.
8568 (tdesc_create_reg): Likewise.
8569 (struct tdesc_type *): Likewise.
8570 (tdesc_create_vector): Likewise.
8571 (tdesc_set_struct_size): Likewise.
8572 (struct tdesc_type *): Likewise.
8573 (tdesc_free_feature): Likewise.
8574 (tdesc_create_feature): Likewise.
8575 * windows-nat.c (windows_add_thread): Likewise.
8576 (windows_make_so): Likewise.
8577 * xml-support.c (gdb_xml_body_text): Likewise.
8578 (gdb_xml_create_parser_and_cleanup): Likewise.
8579 (xml_process_xincludes): Likewise.
8580 * xml-syscall.c (allocate_syscalls_info): Likewise.
8581 (syscall_create_syscall_desc): Likewise.
8583 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8585 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8586 function, with code from i386_stap_parse_special_token.
8587 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8588 (i386_stap_parse_special_token): Move code to the two functions
8591 2014-01-09 Pedro Alves <palves@redhat.com>
8592 Hui Zhu <hui@codesourcery.com>
8595 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8596 bp_err_string. Don't mark the location shlib_disabled if the
8597 error thrown wasn't a generic or memory error. Catch errors
8598 thrown while inserting breakpoints in overlayed code. Output
8599 error message of software breakpoints.
8600 * remote.c (remote_insert_breakpoint): If this breakpoint has
8601 target-side commands but this stub doesn't support Z0 packets,
8602 throw NOT_SUPPORTED_ERROR error.
8603 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8604 * target.h (target_insert_breakpoint): Extend comment.
8605 (target_insert_hw_breakpoint): Add comment.
8607 2014-01-08 Pedro Alves <palves@redhat.com>
8609 * remote.c (remote_add_thread): Add threads silently if starting
8611 (remote_notice_new_inferior): If in all-stop, and starting up,
8612 don't call notice_new_inferior.
8613 (get_current_thread): New function, factored out from ...
8614 (add_current_inferior_and_thread): ... this. Adjust.
8615 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8616 found any thread, then select the remote's current thread as GDB's
8619 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8621 * NEWS: Create a new section for the next release branch.
8622 Rename the section of the current branch, now that it has
8625 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8627 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8628 * version.in: Bump version to 7.7.50.DATE-cvs.
8630 2014-01-08 Yao Qi <yao@codesourcery.com>
8632 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8633 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8634 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8636 2014-01-08 Yao Qi <yao@codesourcery.com>
8638 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8639 return value of bfd_get_filename to symbol_file_add_from_bfd.
8641 2014-01-08 Pierre Muller <muller@sourceware.org>
8644 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8645 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8646 to prim_record_mininal_symbol_and_info.
8647 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8648 in call to prim_record_minimal_symbol_and_info.
8649 (read_pe_exported_syms): Set index field of section_data.
8651 2014-01-07 Andrew Pinski <apinski@cavium.com>
8653 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8654 * features/aarch64.c: Regenerate.
8656 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8658 * target.c (return_null): Define.
8659 (update_current_target): Use it instead of return_zero for
8660 functions that return a pointer.
8662 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8664 * source.c (add_path): Fix check for duplicated paths in the previously
8667 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8669 * ada-lang.c: Remove duplicated include statements.
8670 * alphabsd-nat.c: Ditto.
8671 * amd64-darwin-tdep.c: Ditto.
8672 * amd64fbsd-nat.c: Ditto.
8673 * auto-load.c: Ditto.
8675 * breakpoint.c: Ditto.
8677 * fork-child.c: Ditto.
8678 * gdb_usleep.c: Ditto.
8679 * i386-darwin-tdep.c: Ditto.
8680 * i386fbsd-nat.c: Ditto.
8682 * inferior.c: Ditto.
8684 * linux-nat.c: Ditto.
8685 * linux-tdep.c: Ditto.
8686 * m68kbsd-nat.c: Ditto.
8687 * m68klinux-nat.c: Ditto.
8688 * microblaze-tdep.c: Ditto.
8689 * mips-linux-tdep.c: Ditto.
8690 * mn10300-tdep.c: Ditto.
8691 * nto-tdep.c: Ditto.
8692 * opencl-lang.c: Ditto.
8694 * printcmd.c: Ditto.
8695 * regcache.c: Ditto.
8696 * remote-m32r-sdi.c: Ditto.
8700 * tilegx-linux-nat.c: Ditto.
8701 * tilegx-tdep.c: Ditto.
8702 * tracepoint.c: Ditto.
8704 * vaxbsd-nat.c: Ditto.
8705 * windows-nat.c: Ditto.
8706 * xtensa-tdep.c: Ditto.
8708 2014-01-07 Yao Qi <yao@codesourcery.com>
8710 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8712 2014-01-07 Yao Qi <yao@codesourcery.com>
8713 Joel Brobecker <brobecker@adacore.com>
8715 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8716 (pdc_write_regs): Likewise.
8717 (fetch_regs_kernel_thread): Likewise.
8718 (store_regs_kernel_thread): Likewise.
8720 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8722 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8723 tagged type objects to their actual type.
8725 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8727 * ada-valprint.c (print_field_values): Add "language" parameter.
8728 Update calls to print_field_values and print_variant_part.
8729 Pass new parameter "language" in call to val_print instead
8730 of "current_language". Replace call to ada_val_print by call
8732 (print_variant_part): Add "language" parameter.
8733 (ada_val_print_struct_union): Update call to print_field_values.
8735 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8737 * ada-valprint.c (ui_memcpy): Delete.
8738 (ada_print_floating): Update documentation. Add empty line
8739 between between function documentation and implementation.
8740 Delete variable "buffer". Use ui_file_xstrdup in place of
8741 ui_file_put. Minor adjustments following this change.
8743 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8745 * ada-valprint.c (ada_val_print_string): New function,
8746 extracted from ada_val_print_array.
8747 (ada_val_print_array): Replace extracted code by call
8748 to ada_val_print_string followed by a return. Move
8749 "else" branch to the function's top block.
8751 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8753 * ada-valprint.c (ada_val_print_array): Move implementation
8754 down. Rename parameter "offset" and "val" into "offset_aligned"
8755 and "original_value" respectively. Add parameter "offset".
8757 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8759 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8760 re-organizing the code. Change the "???" message printed
8761 when target type is a TYPE_CODE_UNDEF into
8762 "<ref to undefined type>".
8764 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8766 * ada-valprint.c (print_record): Delete, implementation inlined...
8767 (ada_val_print_struct_union): ... here. Remove call to
8768 ada_check_typedef in inlined implementation.
8770 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8772 * ada-valprint.c (ada_val_print_gnat_array): New function,
8773 extracted from ada_val_print_1;
8774 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8775 (ada_val_print_flt, ada_val_print_struct_union)
8776 (ada_val_print_ref): Likewise.
8777 (ada_val_print_1): Delete variables i and elttype.
8778 Replace extracted-out code by call to corresponding
8781 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8783 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8785 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8787 * ada-valprint.c (ada_val_print_1): Replace calls to
8788 ada_val_print_1 by calls to val_print.
8790 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8792 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8793 Update calls to self accordingly. Replace calls to c_val_print
8794 by calls to val_print.
8796 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8798 * ada-valprint.c (print_record): Delete declaration.
8799 (adjust_type_signedness, ada_val_print_1): Likewise.
8800 (ada_val_print): Move function implementation down.
8801 (print_variant_part, print_field_values, print_record):
8802 Move function implementation up.
8804 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8806 * python/py-type.c (typy_get_name): New function.
8807 (type_object_getset): Add entry for attribute "name".
8808 * NEWS: Add entry mentioning this new attribute.
8810 2014-01-07 Yao Qi <yao@codesourcery.com>
8812 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8815 2014-01-07 Yao Qi <yao@codesourcery.com>
8817 * gnu-nat.c (info_port_rights): Add qualifier const to
8820 2014-01-07 Yao Qi <yao@codesourcery.com>
8822 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8824 2014-01-07 Yao Qi <yao@codesourcery.com>
8826 * gnu-nat.c (make_inf) Update declaration.
8827 (make_inf): Make it static.
8828 (inf_set_traced): Likewise.
8829 (inf_port_to_thread, inf_task_died_status): Likewise.
8831 2014-01-07 Yao Qi <yao@codesourcery.com>
8833 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8835 2014-01-07 Yao Qi <yao@codesourcery.com>
8837 * gnu-nat.c (_initialize_gnu_nat): Declare.
8839 2014-01-07 Yao Qi <yao@codesourcery.com>
8841 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8843 (struct gdbarch_info) <byte_order>: Change type to
8845 <byte_order_for_code>: Likewise.
8846 * gdbarch.c, gdbarch.h: Regenerated.
8848 2014-01-06 Sasha Smundak <asmundak@google.com>
8850 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8852 2014-01-06 Tom Tromey <tromey@redhat.com>
8854 * doublest.c (convert_doublest_to_floatformat): Use const, not
8856 * somread.c (som_symtab_read): Likewise.
8858 2014-01-07 Hui Zhu <hui@codesourcery.com>
8860 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8861 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8862 (gdb_bfd_fopen): Ditto.
8863 (gdb_bfd_openr): Ditto.
8864 (gdb_bfd_openw): Ditto.
8865 (gdb_bfd_openr_iovec): Ditto.
8866 (gdb_bfd_fdopenr): Ditto.
8867 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8868 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8870 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8872 * symfile-mem.c (symbol_file_add_from_memory): Removed
8873 gdb_bfd_stash_filename.
8875 2014-01-03 Doug Evans <dje@google.com>
8877 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8880 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8882 Update year range in copyright notice of all files.
8884 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8886 * top.c (print_gdb_version): Set copyright year to 2014.
8888 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8890 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8892 For older changes see ChangeLog-2013.
8898 version-control: never