1 2014-06-03 Doug Evans <dje@google.com>
3 * exec.c (exec_close_1): Call clear_section_table instead of
5 (clear_section_table): New function.
6 (resize_section_table): Make static. Rename arg num_added to
8 * exec.h (clear_section_table): Declare.
9 (resize_section_table): Delete.
10 * progspace.c (release_program_space): Call clear_section_table
11 instead of resize_section_table.
13 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
15 * NEWS (Python Scripting): Add entry about the new xmethods
18 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
20 * python/py-xmethods.c: New file.
21 * python/py-objfile.c (objfile_object): New field 'xmethods'.
22 (objfpy_dealloc): XDECREF on the new xmethods field.
23 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
25 (objfpy_get_xmethods): New function.
26 (objfile_getset): New entry 'xmethods'.
27 * python/py-progspace.c (pspace_object): New field 'xmethods'.
28 (pspy_dealloc): XDECREF on the new xmethods field.
29 (pspy_new, pspace_to_pspace_object): Initialize xmethods
31 (pspy_get_xmethods): New function.
32 (pspace_getset): New entry 'xmethods'.
33 * python/python-internal.h: Add declarations for new functions.
34 * python/python.c (_initialize_python): Invoke
35 gdbpy_initialize_xmethods.
36 * python/lib/gdb/__init__.py (xmethods): New
38 * python/lib/gdb/xmethod.py: New file.
39 * python/lib/gdb/command/xmethods.py: New file.
41 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
43 * eval.c (evaluate_subexp_standard): Call the xmethod if the
44 best match method returned by find_overload_match is an xmethod.
45 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
46 the best matching operator returned by find_overload_match is an
48 * valops.c: #include "extension.h".
49 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
50 Return void. The list of matching source methods is returned in
51 "fn_list" and a vector of matching debug method workers is
52 returned in "xm_worker_vec". Update all callers.
53 (value_find_oload_method_list): Likewise.
54 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
55 non-NULL, then the index of the best matching method in this
56 vector is returned. Update all callers.
57 (find_overload_match): Include xmethods while performing overload
60 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
62 * defs.h (enum lval_type): New enumerator "lval_xcallable".
63 * extension-priv.h (struct extension_language_ops): Add the
65 * extension.c (new_xmethod_worker, clone_xmethod_worker,
66 get_matching_xmethod_workers, get_xmethod_argtypes,
67 invoke_xmethod, free_xmethod_worker,
68 free_xmethod_worker_vec): New functions.
69 * extension.h: #include "common/vec.h".
70 New function declarations.
71 (struct xmethod_worker): New struct.
72 (VEC (xmethod_worker_ptr)): New vector type.
73 (xmethod_worker_ptr): New typedef.
74 (xmethod_worker_vec): Likewise.
75 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
77 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
78 (struct builtin_type): New field "xmethod".
79 * valarith.c (value_ptradd): Assert that the value argument is not
81 * valops.c (value_must_coerce_to_target): Return 0 for
82 lval_xcallable values.
83 * value.c (struct value): New field XM_WORKER in the field
85 (value_address, value_raw_address): Return 0 for lval_xcallable
87 (set_value_address): Assert that the value is not an
89 (value_free): Free the associated xmethod worker when freeing
90 lval_xcallable values.
91 (set_value_component_location): Assert that the WHOLE value is not
93 (value_of_xmethod, call_xmethod): New functions.
94 * value.h: Declare "struct xmethod_worker".
95 Declare new functions value_of_xmethod, call_xmethod.
97 2014-06-03 Joel Brobecker <brobecker@adacore.com>
98 Pedro Alves <palves@redhat.com>
101 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
102 New function, extracted from software_breakpoint_inserted_here_p.
103 (software_breakpoint_inserted_here_p): Replace factored out code
104 by call to find_non_raw_software_breakpoint_inserted_here.
105 (bp_target_info_copy_insertion_state): New function.
106 (bkpt_insert_location): Handle the case of a single-step
107 breakpoint already inserted at the same address.
108 (bkpt_remove_location): Handle the case of a single-step
109 breakpoint still inserted at the same address.
110 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
111 breakpoint already inserted at the same address.
112 (deprecated_remove_raw_breakpoint): Handle the case of a
113 non-raw breakpoint still inserted at the same address.
114 (find_single_step_breakpoint): New function, extracted from
115 single_step_breakpoint_inserted_here_p.
116 (find_single_step_breakpoint): New function,
117 factored out from single_step_breakpoint_inserted_here_p.
118 (single_step_breakpoint_inserted_here_p): Reimplement.
120 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
122 Pushed by Joel Brobecker <brobecker@adacore.com>
123 * source.c (show_substitute_path_command): Fix display of matching
126 2014-06-03 Gary Benson <gbenson@redhat.com>
128 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
130 2014-06-02 Doug Evans <xdje42@gmail.com>
132 Add parameter support for Guile.
133 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
134 (SUBDIR_GUILE_SRCS): Add scm-param.c.
135 (scm-param.o): New rule.
136 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
137 (gdbscm_misc_error): Declare.
138 (gdbscm_canonicalize_command_name): Declare.
139 (gdbscm_scm_to_host_string): Declare.
140 (gdbscm_scm_from_host_string): Declare.
141 (gdbscm_initialize_parameters): Declare.
142 * guile/guile.c (initialize_gdb_module): Call
143 gdbscm_initialize_parameters.
144 * guile/lib/gdb.scm: Export parameter symbols.
145 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
146 cmdscm_canonicalize_name and made public. All callers updated.
147 * guile/scm-exception.c (gdbscm_misc_error): New function.
148 * guile/scm-param.c: New file.
149 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
150 (gdbscm_scm_to_host_string): New function.
151 (gdbscm_scm_from_host_string): New function.
152 * scm-utils.c (gdbscm_gc_dup_argv): New function.
154 2014-06-02 Doug Evans <xdje42@gmail.com>
156 Add command support for Guile.
157 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
158 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
159 (scm-cmd.o): New rule.
160 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
161 (gdbscm_user_error_p): Declare.
162 (gdbscm_parse_command_name): Declare.
163 (gdbscm_valid_command_class_p): Declare.
164 (gdbscm_initialize_commands): Declare.
165 * guile/guile.c (initialize_gdb_module): Call
166 gdbscm_initialize_commands.
167 * guile/lib/gdb.scm: Export command symbols.
168 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
169 (throw-user-error): New function.
170 * guile/scm-cmd.c: New file.
171 * guile/scm-exception.c (user_error_symbol): New static global.
172 (gdbscm_user_error_p): New function.
173 (gdbscm_initialize_exceptions): Set user_error_symbol.
174 * scm-utils.c (gdbscm_gc_xstrdup): New function.
176 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
178 * top.c (command_loop): Handle comments here...
179 (command_line_input): ... not here.
181 2014-06-02 Doug Evans <xdje42@gmail.com>
183 Add progspace support for Guile.
184 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
185 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
186 (scm-progspace.o): New rule.
187 * guile/guile-internal.h (pspace_smob): New typedef.
188 (psscm_pspace_smob_pretty_printers): Declare.
189 (psscm_pspace_smob_from_pspace): Declare.
190 (psscm_scm_from_pspace): Declare.
191 * guile/guile.c (initialize_gdb_module): Call
192 gdbscm_initialize_pspaces.
193 * guile/lib/gdb.scm: Export progspace symbols.
194 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
196 (append-pretty-printer!): Ditto.
197 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
199 * guile/scm-progspace.c: New file.
201 2014-06-03 Alan Modra <amodra@gmail.com>
203 * ppc64-tdep.c (ppc64_standard_linkage8): New.
204 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
206 2014-06-02 Doug Evans <dje@google.com>
208 Add support for skeletonless type units.
209 * dwarf2read.c (struct dwarf2_per_objfile): New member
210 n_allocated_type_units.
211 (struct dwarf2_per_objfile) <tu_stats>: New member
212 nr_all_type_units_reallocs.
213 (create_signatured_type_table_from_index): Initialize
214 n_allocated_type_units
215 (create_all_type_units): Ditto.
216 (add_type_unit): Move up in file. New arg slot.
217 All callers updated. Increase space for all_type_units more
219 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
220 (lookup_dwo_signatured_type): Handle skeletonless TUs.
221 (lookup_dwp_signatured_type): Ditto.
222 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
224 (build_type_psymtabs_1): Leave type_unit_groups as
225 NULL if no TUs present.
226 (print_tu_stats): New function.
227 (process_skeletonless_type_unit): New function.
228 (process_dwo_file_for_skeletonless_type_units): New
230 (process_skeletonless_type_units): New function.
231 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
232 Call print tu_stats if debugging enabled.
234 2014-06-02 Pedro Alves <palves@redhat.com>
236 * breakpoint.c (build_target_command_list): Don't build a command
237 list if we have any duplicate location that isn't a dprintf.
239 2014-06-02 Pedro Alves <palves@redhat.com>
241 * breakpoint.c (dprintf_breakpoint_hit): New function.
242 (initialize_breakpoint_ops): Install it as dprintf's
243 breakpoint_hit method.
245 2014-06-02 Joel Brobecker <brobecker@adacore.com>
247 * source.c (substitute_path_rule_matches): Simplify using
248 filename_ncmp instead of FILENAME_CMP.
250 2014-06-02 Joel Brobecker <brobecker@adacore.com>
252 * source.c (substitute_path_rule_matches): Remove trailing spaces.
254 2014-06-01 Ludovic Courtès <ludo@gnu.org>
256 * configure.ac: When Guile is available, check for the
257 availability of 'scm_new_smob'.
258 * configure, config.h.in: Regenerate.
259 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
262 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
264 * frame.c (struct frame_info): Add stop_string field.
265 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
266 (get_prev_frame_always): Old content moved into
267 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
268 TRY_CATCH, handle MEMORY_ERROR exceptions.
269 (frame_stop_reason_string): New function definition.
270 * frame.h (unwind_stop_reason_to_string): Extend comment to
271 mention frame_stop_reason_string.
272 (frame_stop_reason_string): New function declaration.
273 * stack.c (frame_info): Switch to frame_stop_reason_string.
274 (backtrace_command_1): Switch to frame_stop_reason_string.
275 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
276 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
277 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
279 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
281 * frame.c (frame_stop_reason_string): Rename to ...
282 (unwind_stop_reason_to_string): this.
283 * frame.h (frame_stop_reason_string): Rename to ...
284 (unwind_stop_reason_to_string): this.
285 * stack.c (frame_info): Update call to frame_stop_reason_string.
286 (backtrace_command_1): Likewise.
287 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
288 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
290 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
292 * frame.c (remove_prev_frame): New function.
293 (get_prev_frame_if_no_cycle): Create / discard cleanup using
296 2014-05-29 Pedro Alves <palves@redhat.com>
298 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
299 and make it const. When a single-step decays to a continue,
300 clear 'step', not 'hw_step'. Pass whether the caller wanted
301 to step to user_visible_resume_ptid, not what we ask the
304 2014-05-29 Pedro Alves <palves@redhat.com>
306 * infrun.c (process_event_stop_test, handle_step_into_function)
307 (handle_step_into_function_backward): Adjust.
308 Don't set the even thread's stop_step and call stop_waiting before
309 calling end_stepping_range. Instead do that ...
310 (end_stepping_range): ... here. Take an ecs pointer parameter.
312 2014-05-29 Pedro Alves <palves@redhat.com>
314 * infrun.c (stop_stepping): Rename to ...
315 (stop_waiting): ... this.
316 (proceed): Update comment.
317 (process_event_stop_test, handle_inferior_event)
318 (handle_signal_stop, handle_step_into_function)
319 (handle_step_into_function_backward): Update.
321 2014-05-29 Pedro Alves <palves@redhat.com>
323 * infcall.c (run_inferior_call): Don't check whether the current
324 thread is running after the proceed call.
326 2014-05-29 Pedro Alves <palves@redhat.com>
327 Tom Tromey <tromey@redhat.com>
329 * NEWS: Mention "maint set target-async", "set mi-async", and that
330 background execution commands are now always available.
331 * target.h (target_async_permitted): Update comment.
332 * target.c (target_async_permitted, target_async_permitted_1):
334 (set_target_async_command): Rename to ...
335 (maint_set_target_async_command): ... this.
336 (show_target_async_command): Rename to ...
337 (maint_show_target_async_command): ... this.
338 (_initialize_target): Adjust.
339 * infcmd.c (prepare_execution_command): Make extern.
340 * inferior.h (prepare_execution_command): Declare.
341 * infrun.c (set_observer_mode): Leave target async alone.
342 * mi/mi-interp.c (mi_interpreter_init): Install
343 mi_on_sync_execution_done as sync_execution_done observer.
344 (mi_on_sync_execution_done): New function.
345 (mi_execute_command_input_handler): Don't print the prompt if we
346 just started a synchronous command with an async target.
347 (mi_on_resume): Check sync_execution before printing prompt.
348 * mi/mi-main.h (mi_async_p): Declare.
349 * mi/mi-main.c: Include gdbcmd.h.
350 (mi_async_p): New function.
351 (mi_async, mi_async_1): New globals.
352 (set_mi_async_command, show_mi_async_command, mi_async): New
354 (exec_continue): Call prepare_execution_command.
355 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
356 (mi_execute_async_cli_command): Use mi_async_p.
357 (_initialize_mi_main): Install "set mi-async". Make
358 "target-async" a deprecated alias.
360 2014-05-29 Pedro Alves <palves@redhat.com>
362 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
363 (_initialize_cli_interp): Adjust.
364 * event-loop.c: Include "observer.h".
365 (start_event_loop): Notify 'command_error' observers instead of
366 calling display_gdb_prompt. Remove FIXME comment.
367 * event-top.c (display_gdb_prompt): Remove call into the
369 * inf-loop.c: Include "observer.h".
370 (inferior_event_handler): Notify 'command_error' observers instead
371 of calling display_gdb_prompt.
372 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
373 observers instead of calling display_gdb_prompt.
374 * interps.c (interp_set): Don't call display_gdb_prompt.
375 (current_interp_display_prompt_p): Delete.
376 * interps.h (interp_prompt_p): Delete declaration.
377 (interp_prompt_p_ftype): Delete.
378 (struct interp_procs) <prompt_proc_p>: Delete field.
379 (current_interp_display_prompt_p): Delete declaration.
380 * mi-interp.c (mi_interpreter_prompt_p): Delete.
381 (_initialize_mi_interp): Adjust.
382 * tui-interp.c (tui_init): Install 'sync_execution_done' and
383 'command_error' observers.
384 (tui_on_sync_execution_done, tui_on_command_error): New
386 (tui_display_prompt_p): Delete.
387 (_initialize_tui_interp): Adjust.
389 2014-05-29 Pedro Alves <palves@redhat.com>
392 * cli/cli-interp.c: Include infrun.h and observer.h.
393 (cli_uiout, cli_interp): New globals.
394 (cli_on_signal_received, cli_on_end_stepping_range)
395 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
397 (cli_interpreter_init): Install them as 'end_stepping_range',
398 'signal_received' 'signal_exited', 'exited' and 'no_history'
400 (_initialize_cli_interp): Remove cli_interp local.
401 * infrun.c (handle_inferior_event): Call the several stop reason
402 observers instead of printing the stop reason directly.
403 (end_stepping_range): New function.
404 (print_end_stepping_range_reason, print_signal_exited_reason)
405 (print_exited_reason, print_signal_received_reason)
406 (print_no_history_reason): Make static, and add an uiout
407 parameter. Print to that instead of to CURRENT_UIOUT.
408 * infrun.h (print_end_stepping_range_reason)
409 (print_signal_exited_reason, print_exited_reason)
410 (print_signal_received_reason print_no_history_reason): New
412 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
414 <cli_uiout>: New field.
415 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
416 uiout for CLI output. Install 'signal_received',
417 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
419 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
420 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
421 (mi_on_no_history): New functions.
422 (ui_out_free_cleanup): Delete function.
423 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
424 instead use the one already stored in the MI interpreter data.
426 * tui/tui-interp.c: Include infrun.h and observer.h.
427 (tui_interp): New global.
428 (tui_on_signal_received, tui_on_end_stepping_range)
429 (tui_on_signal_exited, tui_on_exited)
430 (tui_on_no_history): New functions.
431 (tui_init): Install them as 'end_stepping_range',
432 'signal_received' 'signal_exited', 'exited' and 'no_history'
434 (_initialize_tui_interp): Delete tui_interp local.
436 2014-05-29 Pedro Alves <palves@redhat.com>
439 * linux-nat.c (linux_nat_resume_callback): Rename the second
440 parameter to 'except'. Skip LP if it points to EXCEPT.
441 (linux_nat_resume): Don't mark the event lwp as not stopped
442 before resuming sibling lwps. Instead ask
443 linux_nat_resume_callback to skip the event lwp. Mark it as not
444 stopped after actually resuming it.
445 (linux_handle_syscall_trap): Mark the lwp as not stopped after
447 (wait_lwp): Mark the lwp as stopped here.
448 (stop_wait_callback): Mark the lwp as not stopped right after
449 resuming it. Don't mark lwps as stopped here.
450 (linux_nat_filter_event): Mark the lwp as stopped earlier.
451 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
453 2014-05-29 Pedro Alves <palves@redhat.com>
456 * infrun.c (resume): Determine how much to resume depending on
457 whether the caller wanted a step, not whether we can hardware step
458 the target. Mark all threads that we intend to run as running,
459 unless we're calling an inferior function.
460 (normal_stop): If the thread is running an infcall, don't finish
462 * target.c (target_resume): Don't mark threads as running here.
464 2014-05-28 Joel Brobecker <brobecker@adacore.com>
466 * serial.c (_initialize_serial): Remove support for
467 the "set remotebaud" and "show remotebaud" commands.
468 * NEWS: Add entry documenting the removal of that command.
470 2014-05-28 Yao Qi <yao@codesourcery.com>
472 * charset.c: Fix typo in comments.
474 2014-05-27 Gary Benson <gbenson@redhat.com>
476 * utils.c (internal_vproblem): Prompt for a bug report.
478 2014-05-26 Andy Wingo <wingo@igalia.com>
480 * guile/scm-arch.c (arscm_mark_arch_smob):
481 * guile/scm-block.c (bkscm_mark_block_smob)
482 (bkscm_mark_block_syms_progress_smob):
483 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
484 * guile/scm-exception.c (exscm_mark_exception_smob):
485 * guile/scm-frame.c (frscm_mark_frame_smob):
486 * guile/scm-iterator.c (itscm_mark_iterator_smob):
487 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
488 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
489 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
490 (ppscm_mark_pretty_printer_worker_smob):
491 * guile/scm-symbol.c (syscm_mark_symbol_smob):
492 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
493 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
494 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
496 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
499 2014-05-26 Andy Wingo <wingo@igalia.com>
500 Doug Evans <xdje42@gmail.com>
502 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
503 empty_base_class. All uses updated.
504 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
505 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
507 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
508 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
509 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
510 (gdbscm_gsmob_has_property_p, add_property_name)
511 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
512 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
513 (gdb-object-has-property?, gdb-object-properties): Remove.
514 (gdb-object-kind): Renamed from gsmob-kind.
516 2014-05-26 Andy Wingo <wingo@igalia.com>
518 * configure.ac (try_guile_versions): Allow building with guile 2.2.
519 * configure: Regenerate.
521 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
523 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
525 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
527 * record-btrace.c (record_btrace_allow_memory_access): Remove.
528 (replay_memory_access_read_only, replay_memory_access_read_write)
529 (replay_memory_access_types, replay_memory_access)
530 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
531 (cmd_set_record_btrace, cmd_show_record_btrace)
532 (cmd_show_replay_memory_access): New.
533 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
534 (record_btrace_remove_breakpoint): Replace
535 record_btrace_allow_memory_access with replay_memory_access.
536 (_initialize_record_btrace): Add commands.
539 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
541 * aarch64-linux-nat.c (asm/ptrace.h): Include.
543 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
545 * MAINTAINERS (Write After Approval): Move self back from
548 2014-05-22 Pedro Alves <palves@redhat.com>
550 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
551 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
552 (disable_randomization, enum exec_direction_kind)
553 (execution_direction, stop_registers, start_remote)
554 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
555 (wait_for_inferior, normal_stop, get_last_target_status)
556 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
557 (insert_step_resume_breakpoint_at_sal)
558 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
559 (set_step_info, print_stop_event, signal_stop_state)
560 (signal_print_state, signal_pass_state, signal_stop_update)
561 (signal_print_update, signal_pass_update)
562 (update_signals_program_target, clear_exit_convenience_vars)
563 (displaced_step_dump_bytes, update_observer_mode)
564 (signal_catch_update, gdb_signal_from_command): Move
566 * infrun.h: ... to this new file.
567 * amd64-tdep.c: Include infrun.h.
568 * annotate.c: Include infrun.h.
569 * arch-utils.c: Include infrun.h.
570 * arm-linux-tdep.c: Include infrun.h.
571 * arm-tdep.c: Include infrun.h.
572 * break-catch-sig.c: Include infrun.h.
573 * breakpoint.c: Include infrun.h.
574 * common/agent.c: Include infrun.h instead of inferior.h.
575 * corelow.c: Include infrun.h.
576 * event-top.c: Include infrun.h.
577 * go32-nat.c: Include infrun.h.
578 * i386-tdep.c: Include infrun.h.
579 * inf-loop.c: Include infrun.h.
580 * infcall.c: Include infrun.h.
581 * infcmd.c: Include infrun.h.
582 * infrun.c: Include infrun.h.
583 * linux-fork.c: Include infrun.h.
584 * linux-nat.c: Include infrun.h.
585 * linux-thread-db.c: Include infrun.h.
586 * monitor.c: Include infrun.h.
587 * nto-tdep.c: Include infrun.h.
588 * procfs.c: Include infrun.h.
589 * record-btrace.c: Include infrun.h.
590 * record-full.c: Include infrun.h.
591 * remote-m32r-sdi.c: Include infrun.h.
592 * remote-mips.c: Include infrun.h.
593 * remote-notif.c: Include infrun.h.
594 * remote-sim.c: Include infrun.h.
595 * remote.c: Include infrun.h.
596 * reverse.c: Include infrun.h.
597 * rs6000-tdep.c: Include infrun.h.
598 * s390-linux-tdep.c: Include infrun.h.
599 * solib-irix.c: Include infrun.h.
600 * solib-osf.c: Include infrun.h.
601 * solib-svr4.c: Include infrun.h.
602 * target.c: Include infrun.h.
603 * top.c: Include infrun.h.
604 * windows-nat.c: Include infrun.h.
605 * mi/mi-interp.c: Include infrun.h.
606 * mi/mi-main.c: Include infrun.h.
607 * python/py-threadevent.c: Include infrun.h.
609 2014-05-22 Pedro Alves <palves@redhat.com>
611 * infrun.c (handle_inferior_event): Store the exit code for
612 --return-child-result here, instead of ...
613 (print_exited_reason): ... here.
615 2014-05-21 Pedro Alves <palves@redhat.com>
618 * gdbthread.h (struct thread_control_state): New field
620 * infrun.c (follow_fork): Copy the new thread control field to the
622 (clear_proceed_status_thread): Clear the new thread control field.
623 (proceed): Set the new thread control field.
624 * interps.h (command_interp): Declare.
625 * interps.c (command_interpreter): New global.
626 (command_interp): New function.
627 (interp_exec): Set `command_interpreter' while here.
628 * cli-out.c (cli_uiout_dtor): New function.
629 (cli_ui_out_impl): Install it.
630 * mi/mi-interp.c: Include cli-out.h.
631 (mi_cmd_interpreter_exec): Add comment.
632 (restore_current_uiout_cleanup): New function.
633 (ui_out_free_cleanup): New function.
634 (mi_on_normal_stop): If finishing an execution command started by
635 a CLI command, or any kind of breakpoint-like event triggered,
636 print the stop event to the output (CLI) stream.
637 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
639 2014-05-21 Pedro Alves <palves@redhat.com>
641 * cli/cli-cmds.c (list_command): Handle the first "list" after the
642 current source line having changed.
643 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
644 * infrun.c (normal_stop): Adjust call to
645 set_current_sal_from_frame.
646 * source.c (clear_lines_listed_range): New function.
647 (set_current_source_symtab_and_line, identify_source_line): Clear
648 the lines listed range.
649 (line_info): Handle the first "info line" after the current source
651 * stack.c (print_stack_frame): Remove center handling.
652 (set_current_sal_from_frame): Remove 'center' parameter. Don't
655 2014-05-21 Pedro Alves <palves@redhat.com>
657 * inf-child.c (inf_child_mourn_inferior): New function.
658 * inf-child.h (inf_child_mourn_inferior): New declaration.
659 * darwin-nat.c (darwin_mourn_inferior): Use
660 inf_child_mourn_inferior.
661 * gnu-nat.c (gnu_mourn_inferior): Likewise.
662 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
663 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
664 * nto-procfs.c (procfs_mourn_inferior): Likewise.
665 * windows-nat.c (windows_mourn_inferior): Likewise.
667 2014-05-21 Doug Evans <xdje42@gmail.com>
669 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
671 2014-05-21 Doug Evans <xdje42@gmail.com>
673 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
674 (gdbscm_out_of_range_error): Ditto.
675 (gdbscm_memory_error): Ditto.
676 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
677 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
678 (gdbscm_out_of_range_error): Update.
679 (gdbscm_memory_error): Update.
680 (gdbscm_scm_to_target_string_unsafe): Delete.
682 2014-05-21 Pedro Alves <palves@redhat.com>
684 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
686 (inf_child_open_target): New function.
687 (inf_child_open): Use inf_child_open_target to push the target
688 instead of erroring out.
689 (inf_child_disconnect, inf_child_close)
690 (inf_child_maybe_unpush_target): New functions.
691 (inf_child_target): Install inf_child_disconnect and
692 inf_child_close. Store a pointer to the returned object.
693 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
695 * target.c (auto_connect_native_target): New global.
696 (show_default_run_target): New function.
697 (find_default_run_target): Return NULL if automatically connecting
698 to the native target is disabled.
699 (_initialize_target): Install set/show auto-connect-native-target.
700 * NEWS: Mention "set auto-connect-native-target", and "target
702 * linux-nat.c (super_close): New global.
703 (linux_nat_close): Call super_close.
704 (linux_nat_add_target): Store a pointer to the base class's
706 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
707 inf_child_maybe_unpush.
708 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
710 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
711 the inferior. Use inf_child_maybe_unpush_target.
712 (inf_ttrace_attach): Don't push the target if it is already
714 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
715 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
716 after mourning the inferior. Use inf_child_maybe_unpush_target.
717 (darwin_attach_pid): Don't push the target if it is already
719 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
720 mourning the inferior. Use inf_child_maybe_unpush_target.
721 (gnu_detach): Use inf_child_maybe_unpush_target.
722 * go32-nat.c (go32_create_inferior): Don't push the target if it
724 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
725 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
726 (procfs_open): Rename to ...
727 (procfs_open_1): ... this. Add target_ops parameter. Adjust
728 comments. Can target_preopen before changing node. Call
729 inf_child_open_target to push the target explicitly.
730 (procfs_attach): Don't push the target if it is already pushed.
731 (procfs_detach): Use inf_child_maybe_unpush_target.
732 (procfs_create_inferior): Don't push the target if it is already
734 (nto_native_ops): New global.
735 (procfs_open): Reimplement.
736 (procfs_native_open): New function.
737 (init_procfs_targets): Install procfs_native_open as to_open of
738 "target native". Store a pointer to the "native" target in
740 * procfs.c (procfs_attach): Don't push the target if it is already
742 (procfs_detach): Use inf_child_maybe_unpush_target.
743 (procfs_mourn_inferior): Only unpush the target after mourning the
744 inferior. Use inf_child_maybe_unpush_target.
745 (procfs_init_inferior): Don't push the target if it is already
747 * windows-nat.c (do_initial_windows_stuff): Don't push the target
748 if it is already pushed.
750 2014-05-21 Pedro Alves <palves@redhat.com>
752 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
753 and "procfs" targets are now called "native" instead.
755 2014-05-21 Pedro Alves <palves@redhat.com>
757 * go32-nat.c (go32_open): Delete.
758 (go32_target): Don't override the to_open method.
760 2014-05-21 Pedro Alves <palves@redhat.com>
762 * nto-procfs.c (procfs_can_run): New function.
763 (nto_procfs_ops): New global.
764 (init_procfs_targets): New, based on procfs_target. Install
765 "target native" in addition to "target procfs".
766 (_initialize_procfs): Call init_procfs_targets instead of adding
769 2014-05-21 Pedro Alves <palves@redhat.com>
771 * windows-nat.c (windows_target): Don't override to_shortname,
772 to_longname or to_doc.
774 2014-05-21 Pedro Alves <palves@redhat.com>
776 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
779 2014-05-21 Pedro Alves <palves@redhat.com>
781 * darwin-nat.c (_initialize_darwin_inferior): Don't override
782 to_shortname, to_longname or to_doc.
784 2014-05-21 Pedro Alves <palves@redhat.com>
786 * go32-nat.c (go32_target): Don't override to_shortname,
787 to_longname or to_doc.
789 2014-05-21 Pedro Alves <palves@redhat.com>
791 * inf-child.c (inf_child_open): Remove mention of "child".
792 (inf_child_target): Rename target to "native" instead of "child".
794 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
796 * Makefile.in (SFILES): Delete "regset.c".
797 (COMMON_OBS): Delete "regset.o".
799 * regset.h (regset_alloc): Delete prototype.
801 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
803 * sparc-linux-tdep.c (sparc32_linux_gregset)
804 (sparc32_linux_fpregset): New static regset structures.
805 (sparc32_linux_init_abi): Drop dynamic regset allocations.
806 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
808 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
809 (sparc64_linux_fpregset): New static regset structures.
810 (sparc64_linux_init_abi): Drop dynamic regset allocations.
811 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
812 New static regset structures.
813 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
814 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
815 New static regset structures.
816 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
817 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
818 New static regset structures.
819 (sparc64obsd_init_abi): Drop dynamic regset allocations.
820 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
821 New static regset structures.
822 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
824 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
826 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
827 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
828 register maps ("regmaps") from "*regset" to "*regmap". Do this
829 for all regmap types and variables.
830 * sparc-linux-tdep.c (sparc32_linux_step_trap)
831 (sparc32_linux_supply_core_gregset)
832 (sparc32_linux_collect_core_gregset)
833 (sparc32_linux_supply_core_fpregset)
834 (sparc32_linux_collect_core_fpregset): Likewise.
835 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
836 (sparc_gregmap, sparc_fpregmap): ... these.
837 (sparc_supply_gregset, sparc_collect_gregset)
838 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
839 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
840 (_initialize_sparc_nat): Rename regmaps.
841 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
842 (sparc_gregmap, sparc_fpregmap): ... these.
843 (sparc_supply_gregset, sparc_collect_gregset)
844 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
845 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
847 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
848 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
850 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
852 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
853 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
854 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
856 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
857 (sparc32_bsd_fpregset): Rename to...
858 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
859 (sparc32_bsd_fpregmap): ... these.
860 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
861 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
862 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
863 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
864 (struct sparc_gregmap, struct sparc_fpregmap)
865 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
866 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
867 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
868 (sparc32_supply_regset, sparc32_collect_gregset)
869 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
871 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
872 (sparc64_linux_ptrace_gregmap): ... this.
873 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
874 (_initialize_sparc64_linux_nat): Rename regmaps.
875 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
876 (sparc64_linux_core_gregmap): ... this.
877 (sparc64_linux_supply_core_gregset)
878 (sparc64_linux_collect_core_gregset)
879 (sparc64_linux_supply_core_fpregset)
880 (sparc64_linux_collect_core_fpregset): Rename regmaps.
881 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
882 (sparc64_sol2_fpregset): Rename to...
883 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
884 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
885 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
887 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
888 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
889 (sparc64_bsd_fpregset): Rename to...
890 (struct sparc_gregmap, sparc64_sol2_gregmap)
891 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
892 (sparc64_bsd_fpregmap): ... these.
893 (sparc64_supply_gregset, sparc64_collect_gregset)
894 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
896 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
897 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
898 (sparc64fbsd_gregmap): ... this.
899 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
900 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
902 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
903 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
904 (sparc64nbsd_collect_fpregset): Likewise.
905 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
906 (sparc64nbsd_gregmap): ... this.
907 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
909 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
910 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
911 (sparc64obsd_gregmap): ... this.
912 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
914 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
915 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
916 (sparc32nbsd_gregmap): ... this.
917 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
920 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
922 * score-tdep.c (score7_linux_gregset): New static regset
924 (score7_linux_regset_from_core_section): Remove dynamic regset
926 (score_gdbarch_init): Drop allocation of tdep structure.
927 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
929 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
931 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
933 (am33_regset_from_core_section): Remove dynamic regset
936 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
938 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
939 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
941 (mips_linux_regset_from_core_section): Remove dynamic regset
943 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
944 'gregset64', 'fpregset', and 'fpregset64'.
945 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
948 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
950 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
952 (amd64_regset_from_core_section): Remove dynamic regset
954 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
956 (amd64obsd_regset_from_core_section): Remove dynamic regset
958 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
960 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
961 x86-common regset supply function.
962 * i386-tdep.c (i386_collect_gregset): Make static.
963 (i386_gregset): New global regset structure.
964 (i386_fpregset, i386_xstateregset): New static regset structures.
965 (i386_regset_from_core_section): Remove dynamic regset
967 (i386_gdbarch_init): Remove initialization of tdep fields
968 'gregset', 'fpregset', and 'xstateregset'.
969 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
970 'fpregset', and 'xstateregset'.
971 (i386_collect_gregset): Remove prototype.
972 (i386_gregset): New declaration.
973 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
975 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
978 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
980 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
981 (arm_linux_vfpregset): New static regset structures.
982 (arm_linux_regset_from_core_section): Remove dynamic allocation of
984 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
985 and 'vfpregset' fields.
987 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
989 * aarch64-linux-tdep.c (aarch64_linux_gregset)
990 (aarch64_linux_fpregset): New static regset structures.
991 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
992 of regset structures.
993 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
996 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
998 * regset.h (struct regset): Remove gdbarch field.
999 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1000 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1001 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1003 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1004 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1005 (ppc32_linux_vsxregset): Likewise.
1006 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1007 via the regcache instead of the regset.
1008 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1009 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1010 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1011 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1014 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1016 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1017 Constify structures.
1018 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1019 (alphanbsd_aout_gregset): Likewise.
1020 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1021 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1023 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1024 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1026 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1027 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1028 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1029 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1030 * m88k-tdep.c (m88k_gregset): Likewise.
1031 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1032 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1033 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1034 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1035 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1036 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1037 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1038 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1039 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1041 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1042 * sh-tdep.h (sh_corefile_gregset): Likewise.
1043 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1044 * vax-tdep.c (vax_gregset): Likewise.
1046 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1048 Fix TLS access for -static -pthread.
1049 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1050 (try_thread_db_load_1): Initialize it.
1051 (thread_db_get_thread_local_address): Call it if LM is zero.
1052 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1053 * target.h (struct target_ops) (to_get_thread_local_address): Add
1054 load_module_addr comment.
1056 2014-05-21 Pedro Alves <palves@redhat.com>
1058 * dcache.c (dcache_read_memory_partial): If reading the cache line
1059 fails, fallback to reading just the memory the caller wanted.
1061 2014-05-20 Doug Evans <dje@google.com>
1063 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1064 instead of get_current_arch.
1066 2014-05-20 Pedro Alves <palves@redhat.com>
1068 * NEWS: Mention that compare-sections now works with all targets.
1070 * remote.c (PACKET_qCRC): New enum value.
1071 (remote_verify_memory): Don't send qCRC if the target has no
1072 execution. Use packet_support/packet_ok. If the target doesn't
1073 support the qCRC packet, fallback to a deep memory copy.
1074 (compare_sections_command): Say "target image" instead of "remote
1076 (_initialize_remote): Add PACKET_qCRC to the list of config
1077 packets that have no associated command. Extend comment.
1078 * target.c (simple_verify_memory, default_verify_memory): New
1080 * target.h (struct target_ops) <to_verify_memory>: Default to
1081 default_verify_memory.
1082 (simple_verify_memory): New declaration.
1083 * target-delegates.c: Regenerate.
1085 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1087 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1089 2014-05-20 Hui Zhu <hui@codesourcery.com>
1090 Yao Qi <yao@codesourcery.com>
1093 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1094 and change address of sp and pc.
1096 2014-05-19 Tom Tromey <tromey@redhat.com>
1098 * gdbtypes.c (rank_function): Use XNEWVEC.
1099 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1101 2014-05-19 Doug Evans <dje@google.com>
1103 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1104 build_type_unit_groups and moved closer to only caller. Remove
1105 arguments. All references updated. Remove outdated .gdb_index
1107 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1108 build_type_psymtabs_1.
1110 2014-05-19 Doug Evans <dje@google.com>
1112 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1113 n_type_unit_groups, all_type_unit_groups. All uses removed.
1114 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1115 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1116 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1117 (add_type_unit_group_to_table): Delete.
1119 2014-05-19 Doug Evans <dje@google.com>
1121 * eval.c (evaluate_subexp_standard): Add some comments.
1123 2014-05-17 Doug Evans <xdje42@gmail.com>
1125 * progspace.c (remove_program_space): Delete, unused.
1126 * progspace.h (remove_program_space): Ditto.
1128 2014-05-17 Doug Evans <xdje42@gmail.com>
1130 * inferior.c (prune_inferiors): Fix comment.
1131 (remove_inferior_command): Call prune_program_spaces.
1133 2014-05-16 Doug Evans <dje@google.com>
1135 New command line option -D.
1137 * main.c (set_gdb_data_directory): New function.
1138 (captured_main): Recognize -D. Flag error for --data-directory "".
1139 Call set_gdb_data_directory.
1140 (print_gdb_help): Print --data-directory, -D.
1141 * main.h (set_gdb_data_directory): Declare.
1142 * top.c (staged_gdb_datadir): New static global.
1143 (set_gdb_datadir): Call set_gdb_data_directory
1144 (show_gdb_datadir): New function.
1145 (init_main): Update init of data-directory parameter.
1147 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1149 Import the "dirfd" gnulib module.
1150 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1151 * gnulib/aclocal.m4: Update.
1152 * gnulib/config.in: Update.
1153 * gnulib/configure: Update.
1154 * gnulib/import/Makefile.am: Update.
1155 * gnulib/import/Makefile.in: Update.
1156 * gnulib/import/dirfd.c: New.
1157 * gnulib/import/m4/dirfd.m4: New.
1158 * gnulib/import/m4/gnulib-cache.m4: Update.
1159 * gnulib/import/m4/gnulib-comp.m4: Update.
1161 2014-05-16 Pierre Muller <muller@sourceware.org>
1162 Yao Qi <yao@codesourcery.com>
1164 * valprint.c (print_wchar): Move the code on checking whether
1165 W is a printable wide char to the default branch of switch
1166 statement below. Call wchar_printable instead of gdb_iswprint.
1168 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1170 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1171 ldr.w and ldrd instructions.
1173 2014-05-15 Doug Evans <dje@google.com>
1175 * dwarf2read.c (read_structure_type): Delete outdated comments.
1177 2014-05-14 Tom Tromey <tromey@redhat.com>
1179 * macrocmd.c (print_macro_definition): Reindent.
1181 2014-05-13 Doug Evans <xdje42@gmail.com>
1183 * python/py-cmd.c (cmdpy_completer): Add comment.
1184 (completers): Make const.
1186 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1188 * infrun.c (resume): Remove should_resume (unused). Move up
1189 declaration of resume_ptid.
1191 2014-05-13 Tom Tromey <tromey@redhat.com>
1193 * language.h (unop_type_check): Remove.
1194 (binop_type_check): Don't declare.
1196 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1198 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1199 call to regcache_raw_collect.
1201 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1203 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1204 mi_console->quote as the quoting character.
1206 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1208 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1210 2014-04-29 Tom Tromey <tromey@redhat.com>
1212 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1213 "show debug varobj".
1215 2014-05-07 Kyle McMartin <kyle@redhat.com>
1217 Pushed by Joel Brobecker <brobecker@adacore.com>.
1218 * aarch64-tdep.c (aarch64_software_single_step): New function.
1219 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1220 with aarch64_software_single_step.
1222 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1226 2014-05-05 Keith Seitz <keiths@redhat.com>
1228 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1229 variable or history value is successfully parsed.
1231 2014-05-05 Yao Qi <yao@codesourcery.com>
1232 Pedro Alves <palves@redhat.com>
1234 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1235 address of blocks that intersects the requested range. Trim
1236 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1238 * ctf.c (ctf_xfer_partial): Likewise.
1240 2014-05-05 Yao Qi <yao@codesourcery.com>
1242 * printcmd.c (display_command): Remove the check to
1243 target_has_execution.
1245 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1247 * ppcobsd-nat.c: Include "obsd-nat.h".
1248 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1250 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1252 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1254 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1255 and 16-bit signed and unsigned arguments. Update comment.
1256 (stap_parse_probe_arguments): Extend code to handle such
1257 arguments. Use warning instead of complaint to notify about
1258 unrecognized bitness.
1260 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1262 PR breakpoints/16889
1263 * stap-probe.c (stap_parse_probe_arguments): Simplify
1264 check for non-prefixed probes (i.e., probes whose
1265 arguments do not start with "N@"). Always set the
1266 argument type to a sane value.
1268 2014-05-01 David Taylor <dtaylor@emc.com>
1270 * remote.c (compare_sections_command): Add -r option to compare
1271 all loadable read-only sections.
1273 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1275 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1276 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1278 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1279 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1280 Remove unused CORE_ADDR argument. Update all callers.
1282 2014-04-29 Pedro Alves <palves@redhat.com>
1284 * remote.c (struct packet_config) <detect>: Extend comment.
1285 (add_packet_config_cmd): Don't set the config's detect or support
1287 (init_all_packet_configs): Also initialize the config's 'detect'
1289 (reset_all_packet_configs_support): New function.
1290 (remote_open_1): Call reset_all_packet_configs_support instead of
1291 init_all_packet_configs.
1292 (_initialize_remote): Initialize all packet configs. Assert that
1293 all packets have an associated command, except a few known
1296 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1298 * dwarf2read.c (read_subrange_type): Handle dynamic
1299 DW_AT_lower_bound attributes.
1301 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1303 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1304 dynamic bounds before computing its upper bound.
1305 (ada_discrete_type_low_bound): Same as above with the lower bound.
1307 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1309 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1310 range types. Adjust the array handling implementation to
1311 take advantage of this change.
1312 (resolve_dynamic_range): New function, mostly extracted from
1313 resolve_dynamic_bounds.
1314 (resolve_dynamic_array): New function, mostly extracted from
1315 resolve_dynamic_bounds.
1316 (resolve_dynamic_bounds): Delete.
1317 (resolve_dynamic_type): Reimplement. Add handling of
1318 TYPE_CODE_RANGE types.
1320 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1322 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1323 handling of parallel ___XA types.
1325 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1327 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1328 unnecessary second call to static_unwrap_type.
1330 2014-04-27 Hui Zhu <hui@codesourcery.com>
1332 * stack.c (print_frame_info): Call do_gdb_disassembly with
1333 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1335 2014-04-26 Doug Evans <xdje42@gmail.com>
1337 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1339 2014-04-25 Pedro Alves <palves@redhat.com>
1342 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1343 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1344 and newline from built string.
1345 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1346 (linux_ptrace_attach_fail_reason): ... this.
1347 * linux-nat.c (linux_nat_attach): Adjust to use
1348 linux_ptrace_attach_fail_reason.
1350 2014-04-25 Pedro Alves <palves@redhat.com>
1352 * remote.c (struct remote_state): Remove multi_process_aware,
1353 non_stop_aware, cond_tracepoints, cond_breakpoints,
1354 breakpoint_commands, fast_tracepoints, static_tracepoints,
1355 install_in_trace, disconnected_tracing,
1356 enable_disable_tracepoints, string_tracing, and
1357 augmented_libraries_svr4_read fields.
1358 (remote_multi_process_p): Move further below in the file.
1359 (struct packet_config): Add comments.
1360 (update_packet_config): Delete function.
1361 (show_packet_config_cmd): Use packet_config_support.
1362 (add_packet_config_cmd): Use NULL as set callback.
1363 (packet_ok): "set remote foo-packet"-style commands no longer
1364 change config->supported -- adjust.
1365 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1366 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1367 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1368 (PACKET_QNonStop, PACKET_multiprocess_feature)
1369 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1370 (PACKET_DisconnectedTracing_feature)
1371 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1372 (set_remote_protocol_packet_cmd): Delete function.
1373 (packet_config_support, packet_support): New functions.
1374 (set_remote_protocol_Z_packet_cmd): Don't call
1375 update_packet_config.
1376 (remote_query_attached, remote_pass_signals)
1377 (remote_program_signals, remote_threads_info)
1378 (remote_threads_extra_info, remote_start_remote): Use
1380 (remote_start_remote): Use packet_config_support and
1382 (init_all_packet_configs): Set all packets to unknown support,
1383 instead of calling update_packet_config.
1384 (remote_check_symbols): Use packet_support.
1385 (remote_supported_packet): Unconditionally set the packet config's
1387 (remote_multi_process_feature, remote_non_stop_feature)
1388 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1389 (remote_breakpoint_commands_feature)
1390 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1391 (remote_install_in_trace_feature)
1392 (remote_disconnected_tracing_feature)
1393 (remote_enable_disable_tracepoint_feature)
1394 (remote_string_tracing_feature)
1395 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1396 (remote_protocol_features): Adjust to use remote_supported_packet
1397 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1398 "ConditionalTracepoints", "ConditionalBreakpoints",
1399 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1400 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1401 "EnableDisableTracepoints", and "tracenz".
1402 (remote_query_supported): Use packet_support.
1403 (remote_open_1): Adjust.
1404 (extended_remote_attach_1): Use packet_support. Switch on the
1405 result of packet_ok instead of checking whether the packet ended
1407 (remote_vcont_resume): Use packet_support.
1408 (remote_resume, remote_stop_ns, fetch_register_using_p)
1409 (remote_prepare_to_store, store_register_using_P)
1410 (check_binary_download, remote_write_bytes): Use packet_support.
1411 (remote_vkill): Use packet_support. Switch on the result of
1412 packet_ok instead of checking whether the packet ended up
1414 (extended_remote_supports_disable_randomization): Use
1416 (extended_remote_run): Switch on the result of packet_ok instead
1417 of checking whether the packet ended up disabled.
1418 (remote_insert_breakpoint, remote_remove_breakpoint)
1419 (remote_insert_watchpoint, remote_remove_watchpoint)
1420 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1422 (remote_search_memory): Use packet_config_support.
1423 (remote_get_thread_local_address, remote_get_tib_address)
1424 (remote_hostio_send_command, remote_can_execute_reverse): Use
1426 (remote_supports_cond_tracepoints)
1427 (remote_supports_cond_breakpoints)
1428 (remote_supports_fast_tracepoints)
1429 (remote_supports_static_tracepoints)
1430 (remote_supports_install_in_trace)
1431 (remote_supports_enable_disable_tracepoint)
1432 (remote_supports_string_tracing)
1433 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1434 the packet config says the feature is enabled or disabled.
1435 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1436 (remote_get_trace_status): Use packet_support.
1437 (remote_set_disconnected_tracing): Adjust to check whether the
1438 feature is enabled with packet_support.
1439 (remote_set_trace_buffer_size, remote_use_agent)
1440 (remote_can_use_agent, remote_supports_btrace): Use
1442 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1443 Use packet_config_support.
1444 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1445 the packet config says the feature is enabled or disabled.
1446 (set_range_stepping): Use packet_support.
1448 2014-04-25 Tom Tromey <tromey@redhat.com>
1450 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1453 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1455 * NEWS: Mention support for C99 variable length arrays.
1457 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1459 * ada-lang.c (standard_exc): Expand introductory comment.
1461 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1462 Walfred Tedeschi <walfred.tedeschi@intel.com>
1464 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1466 (amd64_linux_read_description): Add code to handle AVX512 xstate
1467 mask and return respective tdesc.
1468 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1469 and features/i386/x32-avx512-linux.c.
1470 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1471 (amd64_linux_core_read_description): Add code to handle AVX512
1472 xstate mask and return respective tdesc.
1473 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1474 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1476 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1477 (tdesc_amd64_avx512_linux): New prototype.
1478 (tdesc_x32_avx512_linux): Likewise.
1479 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1480 features/i386/x32-avx512.c.
1481 (amd64_ymm_avx512_names): New register names for pseudo
1483 (amd64_ymmh_avx512_names): New register names for raw registers
1485 (amd64_k_names): New register names for K registers.
1486 (amd64_zmmh_names): New register names for ZMM raw registers.
1487 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1488 (amd64_xmm_avx512_names): New register names for XMM16-31
1490 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1492 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1493 if feature is present.
1494 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1495 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1496 (AMD64_NUM_REGS): Adjust to new number of registers.
1497 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1498 registers supplied via XSTATE by AVX512 registers.
1499 (i386_linux_read_description): Add case for AVX512.
1500 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1501 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1502 (i386_linux_core_read_description): Add case for AVX512.
1503 (i386_linux_init_abi): Install supported register note section
1505 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1507 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1508 registers to be number of zmm7h + 1.
1509 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1510 * i386-tdep.c: Include features/i386/i386-avx512.c.
1511 (i386_zmm_names): Add ZMM pseudo register names array.
1512 (i386_zmmh_names): Add ZMM raw register names array.
1513 (i386_k_names): Add K raw register names array.
1514 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1515 registers. AVX512 has 16 more ZMM registers than there are YMM
1517 (i386_zmmh_regnum_p): Add function to look up register number of
1519 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1520 (i386_k_regnum_p): Likewise for K raw registers.
1521 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1522 registers added by AVX512.
1523 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1524 registers added by AVX512.
1525 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1527 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1528 (i386_pseudo_register_name): Add ZMM pseudo registers.
1529 (i386_zmm_type): Construct and return vector registers type for ZMM
1531 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1532 ZMM0-31 pseudo registers and K registers.
1533 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1534 and YMM16-31 registers from register cache.
1535 (i386_pseudo_register_write): Add code to write K, ZMM and
1537 (i386_register_reggroup_p): Add code to include/exclude AVX512
1538 registers in/from respective register groups.
1539 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1540 registers if feature is present in xcr0.
1541 (i386_gdbarch_init): Add code to initialize AVX512 feature
1542 variables in tdep structure, wire in pseudo registers and call
1543 initialize_tdesc_i386_avx512.
1544 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1546 (i386_regnum): Add AVX512 registers.
1547 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1548 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1549 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1550 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1552 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1553 (i386_ymm_avx512_regnum_p): Likewise.
1554 (i386_k_regnum_p): Likewise.
1555 (i386_zmm_regnum_p): Likewise.
1556 (i386_zmmh_regnum_p): Likewise.
1557 * i387-tdep.c : Update year in copyright notice.
1558 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1560 (XSAVE_YMM_AVX512_ADDR): New macro.
1561 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1563 (XSAVE_XMM_AVX512_ADDR): New macro.
1564 (xsave_avx512_k_offset): New table for K register offsets in
1566 (XSAVE_AVX512_K_ADDR): New macro.
1567 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1569 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1570 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1572 (i387_collect_xsave): Add code to collect AVX512 registers from
1574 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1575 of XMM16-31 registers.
1576 (I387_NUM_K_REGS): New define for number of K registers.
1577 (I387_K0_REGNUM): New define for K0 register number.
1578 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1579 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1580 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1582 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1583 (I387_XMM16_REGNUM): New define for XMM16 register number.
1584 (I387_YMM0_REGNUM): New define for YMM0 register number.
1585 (I387_KEND_REGNUM): New define for last K register number.
1586 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1587 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1589 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1591 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1593 * features/Makefile: Add AVX512 related files.
1594 * features/i386/32bit-avx512.xml: New file.
1595 * features/i386/64bit-avx512.xml: Likewise.
1596 * features/i386/amd64-avx512-linux.c: Likewise.
1597 * features/i386/amd64-avx512-linux.xml: Likewise.
1598 * features/i386/amd64-avx512.c: Likewise.
1599 * features/i386/amd64-avx512.xml: Likewise.
1600 * features/i386/i386-avx512-linux.c: Likewise.
1601 * features/i386/i386-avx512-linux.xml: Likewise.
1602 * features/i386/i386-avx512.c: Likewise.
1603 * features/i386/i386-avx512.xml: Likewise.
1604 * features/i386/x32-avx512-linux.c: Likewise.
1605 * features/i386/x32-avx512-linux.xml: Likewise.
1606 * features/i386/x32-avx512.c: Likewise.
1607 * features/i386/x32-avx512.xml: Likewise.
1608 * regformats/i386/amd64-avx512-linux.dat: New file.
1609 * regformats/i386/amd64-avx512.dat: Likewise.
1610 * regformats/i386/i386-avx512-linux.dat: Likewise.
1611 * regformats/i386/i386-avx512.dat: Likewise.
1612 * regformats/i386/x32-avx512-linux.dat: Likewise.
1613 * regformats/i386/x32-avx512.dat: Likewise.
1614 * NEWS: Add note about new support for AVX512.
1617 2014-04-23 Pedro Alves <palves@redhat.com>
1619 * breakpoint.c (insert_bp_location): Tolerate errors if the
1620 breakpoint is set in a user-loaded objfile.
1621 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1622 location is marked shlib_disabled. If the breakpoint is set in a
1623 user-loaded objfile is a GDB-side memory breakpoint, validate it
1624 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1625 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1627 * mem-break.c (memory_validate_breakpoint): New function.
1628 * objfiles.c (userloaded_objfile_contains_address_p): New
1630 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1631 * target.h (memory_validate_breakpoint): New declaration.
1633 2014-04-23 Pedro Alves <palves@redhat.com>
1635 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1636 the breakpoint is set in a shared library, only suppress
1637 errors for software breakpoints, not hardware breakpoints.
1639 2014-04-22 Pedro Alves <palves@redhat.com>
1641 * infrun.c (schedlock_applies): New function, factored out from
1642 find_thread_needs_step_over.
1643 (find_thread_needs_step_over): Use it.
1644 (switch_back_to_stepped_thread): Always clear trap_expected if the
1645 step over is finished. Return early if scheduler locking applies.
1646 Look for the stepping thread and a potential step-over thread with
1648 (currently_stepping_or_nexting_callback): Delete.
1650 2014-04-22 Nick Clifton <nickc@redhat.com>
1652 * NEWS: Mention that ARM sim now supports tracing.
1654 2014-04-22 Yao Qi <yao@codesourcery.com>
1656 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1658 * tracefile.c (tracefile_fetch_registers): ... it. New
1660 * tracefile.h (tracefile_fetch_registers): Declare.
1661 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1662 tracefile_fetch_registers.
1664 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1667 * windows-nat.c (thread_rec): Don't display a warning when
1668 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1669 fails for any reason, set th->suspended to -1, so that we don't
1670 try to resume such a thread. Also, don't return NULL in these
1671 cases, to avoid completely ruin the session due to "PC register is
1672 not available" error.
1673 (do_windows_fetch_inferior_registers): Check errors in
1674 GetThreadContext call.
1675 (windows_continue): Accept an additional argument KILLED; if not
1676 zero, ignore errors in the SetThreadContext call, since the
1677 inferior was killed and is shutting down.
1678 (windows_resume, get_windows_debug_event)
1679 (windows_create_inferior, windows_mourn_inferior)
1680 (windows_kill_inferior): All callers of windows_continue changed
1681 to adjust to its new calling sequence.
1683 2014-04-19 Yao Qi <yao@codesourcery.com>
1685 * ctf.c (ctf_open): Call post_create_inferior.
1687 2014-04-19 Yao Qi <yao@codesourcery.com>
1689 * ctf.c (handle_id): New static variable.
1690 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1691 value. Get the declaration of event "register" and get length
1692 of field "contents".
1694 2014-04-19 Yao Qi <yao@codesourcery.com>
1696 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1698 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1700 * valops.c (oload_method_static): Remove unnecessary argument
1701 METHOD. Update all callers.
1703 2014-04-18 Pedro alves <palves@redhat.com>
1704 Tom Tromey <tromey@redhat.com>
1707 * frame.c (get_prev_frame_1): Rename to ...
1708 (get_prev_frame_always): ... this, and make extern. Adjust.
1709 (skip_artificial_frames): Use get_prev_frame_always.
1710 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1711 (get_frame_unwind_stop_reason): Adjust to rename.
1712 * frame.h (get_prev_frame_always): Declare.
1713 * inline-frame.c: Include frame.h.
1714 (inline_frame_this_id): Use get_prev_frame_always.
1716 2014-04-18 Tristan Gingold <gingold@adacore.com>
1718 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1719 code by using bfd_mach_o_get_base_address.
1721 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1723 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1724 (spu_ax_pseudo_register_collect): New function.
1725 (spu_ax_pseudo_register_push_stack): Likewise.
1726 (spu_dwarf_reg_to_regnum): Likewise.
1727 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1729 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1731 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1732 Replace FRAME argument with FRAME_ID.
1733 * gdbarch.c, gdbarch.h: Regenerate.
1734 * findvar.c (default_value_from_register): Add GDBARCH argument;
1735 replace FRAME by FRAME_ID. No longer call get_frame_id.
1736 (value_from_register): Update call to gdbarch_value_from_register.
1737 * value.h (default_value_from_register): Update prototype.
1738 * s390-linux-tdep.c (s390_value_from_register): Update interface
1739 and call to default_value_from_register.
1740 * spu-tdep.c (spu_value_from_register): Likewise.
1742 * findvar.c (address_from_register): Remove TYPE argument.
1743 Do not call value_from_register; use gdbarch_value_from_register
1744 with null_frame_id instead.
1745 * value.h (address_from_register): Update prototype.
1746 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1747 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1748 address_from_register interface change.
1750 2014-04-17 Yao Qi <yao@codesourcery.com>
1752 * gdbtypes.h: Update comments to link to types and macros'
1755 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1757 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1759 2014-04-16 Keith Seitz <keiths@redhat.com>
1762 * dwarf2read.c (skip_one_die): Check that all relative-offset
1763 sibling DIEs fall within range of the current reader's buffer.
1764 (read_partial_die): Likewise.
1766 2014-04-16 Keith Seitz <keiths@redhat.com>
1769 * cp-namespace.c (lookup_symbol_file): If the type name of
1770 `this' is NULL, return immediately.
1772 2014-04-14 Keith Seitz <keiths@redhat.com>
1775 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1776 from symbol_matches_domain in symtab.c. All local callers
1777 of symbol_matches_domain updated.
1778 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1779 search STRUCT_DOMAIN.
1780 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1781 independently. standard_lookup will do that automatically.
1782 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1783 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1784 (cp_lookup_symbol_in_namespace): Likewise.
1785 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1786 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1787 may return a STRUCT_DOMAIN match.
1788 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1789 * cp-support.c: Include language.h.
1790 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1792 * psymtab.c (match_partial_symbol): Compare the requested
1793 domain with the symbol's domain directly.
1794 (lookup_partial_symbol): Likewise.
1795 * symtab.c (lookup_symbol_in_language): Explain when/why
1796 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1797 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1798 appropriate languages.
1799 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1800 and moved to ada-lang.c
1801 (lookup_block_symbol): Explain that this function only returns
1802 symbol matching the requested DOMAIN.
1803 Compare the requested domain with the symbol's domain directly.
1804 (iterate_over_symbols): Compare the requested domain with the
1805 symbol's domain directly.
1806 * symtab.h (symbol_matches_domain): Remove.
1808 2014-04-14 Tom Tromey <tromey@redhat.com>
1811 * c-exp.y (type_aggregate_p): New function.
1812 (qualified_name, classify_inner_name): Use it.
1813 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1814 and TYPE_TARGET_TYPE of an enum type.
1815 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1817 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1818 handle TYPE_DECLARED_CLASS.
1819 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1821 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1822 * valops.c (enum_constant_from_type): New function.
1823 (value_aggregate_elt): Use it.
1824 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1827 2014-04-14 Tom Tromey <tromey@redhat.com>
1829 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1830 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1832 * value.h (value_aggregate_elt): Update.
1834 2014-04-14 Tom Tromey <tromey@redhat.com>
1836 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1838 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1840 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1841 (evaluate_subexp_standard): Pass noside argument.
1842 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1843 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1844 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1845 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1846 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1848 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1850 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1851 points to a constant blob.
1853 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1855 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1856 property and store it as the high bound and flag the range accordingly.
1857 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1858 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1859 * gdbtypes.h (enum range_flags): New enum.
1860 (struct range_bounds): Add flags member.
1862 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1864 * c-typeprint.c (c_type_print_varspec_suffix): Added
1865 check for not yet resolved high bound. If unresolved, print
1866 "variable length" string to the console instead of random
1869 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1871 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1873 (ada_template_to_fixed_record_type_1): Likewise.
1874 (ada_to_fixed_type_1): Likewise.
1875 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1876 (cp_print_value): Likewise.
1877 * d-valprint.c (dynamic_array_type): Likewise.
1878 * findvar.c (address_of_variable): Likewise.
1879 * jv-valprint.c (java_value_print): Likewise.
1880 * valops.c (value_ind): Likewise.
1881 * value.c (coerce_ref): Likewise.
1883 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1885 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1886 value and retrieve the dynamic type size.
1888 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1890 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1891 passed to sizeof is dynamic evaluate the argument to compute the length.
1893 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1894 Joel Brobecker <brobecker@adacore.com>
1896 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1897 (dwarf2_evaluate_property): New function.
1898 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1899 * dwarf2read.c (attr_to_dynamic_prop): New function.
1900 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1902 * gdbtypes.c: Include dwarf2loc.h.
1903 (is_dynamic_type): New function.
1904 (resolve_dynamic_type): New function.
1905 (resolve_dynamic_bounds): New function.
1906 (get_type_length): New function.
1907 (check_typedef): Use get_type_length to compute type length.
1908 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1909 (TYPE_LOW_BOUND_KIND): New macro.
1910 (is_dynamic_type): New function prototype.
1911 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1912 to resolve dynamic properties of the type. Update comment.
1913 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1915 2014-04-14 Richard Henderson <rth@redhat.com>
1917 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1919 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1920 Doug Evans <xdje42@gmail.com>
1922 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1923 dereference TYPE_CODE_REF values.
1925 2014-04-11 Joel Brobecker <brobecker@adacore.com>
1927 Revert the following changes due to regressions:
1929 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1930 (dwarf2_evaluate_property): New function.
1931 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1932 * dwarf2read.c (attr_to_dynamic_prop): New function.
1933 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1935 * gdbtypes.c: Include dwarf2loc.h.
1936 (is_dynamic_type): New function.
1937 (resolve_dynamic_type): New function.
1938 (resolve_dynamic_bounds): New function.
1939 (get_type_length): New function.
1940 (check_typedef): Use get_type_length to compute type length.
1941 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1942 (TYPE_LOW_BOUND_KIND): New macro.
1943 (is_dynamic_type): New function prototype.
1944 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1945 to resolve dynamic properties of the type. Update comment.
1946 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1948 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1949 passed to sizeof is dynamic evaluate the argument to compute the length.
1951 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1952 value and retrieve the dynamic type size.
1954 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1955 (ada_template_to_fixed_record_type_1): Likewise.
1956 (ada_to_fixed_type_1): Likewise.
1957 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1958 (cp_print_value): Likewise.
1959 * d-valprint.c (dynamic_array_type): Likewise.
1960 * eval.c (evaluate_subexp_with_coercion): Likewise.
1961 * findvar.c (address_of_variable): Likewise.
1962 * jv-valprint.c (java_value_print): Likewise.
1963 * valops.c (value_ind): Likewise.
1964 * value.c (coerce_ref): Likewise.
1966 * c-typeprint.c (c_type_print_varspec_suffix): Added
1967 check for not yet resolved high bound. If unresolved, print
1968 "variable length" string to the console instead of random
1971 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1972 property and store it as the high bound and flag the range accordingly.
1973 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1974 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1975 * gdbtypes.h (enum range_flags): New enum.
1976 (struct range_bounds): Add flags member.
1978 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1979 points to a constant blob.
1981 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1982 (evaluate_subexp_standard): Pass noside argument.
1983 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1984 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1985 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1986 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1987 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1989 2014-04-11 Keith Seitz <keiths@redhat.com>
1992 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
1993 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
1996 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
1998 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1999 (evaluate_subexp_standard): Pass noside argument.
2000 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2001 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2002 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2003 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2004 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2006 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2008 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2009 points to a constant blob.
2011 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2013 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2014 property and store it as the high bound and flag the range accordingly.
2015 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2016 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2017 * gdbtypes.h (enum range_flags): New enum.
2018 (struct range_bounds): Add flags member.
2020 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2022 * c-typeprint.c (c_type_print_varspec_suffix): Added
2023 check for not yet resolved high bound. If unresolved, print
2024 "variable length" string to the console instead of random
2027 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2029 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2030 (ada_template_to_fixed_record_type_1): Likewise.
2031 (ada_to_fixed_type_1): Likewise.
2032 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2033 (cp_print_value): Likewise.
2034 * d-valprint.c (dynamic_array_type): Likewise.
2035 * eval.c (evaluate_subexp_with_coercion): Likewise.
2036 * findvar.c (address_of_variable): Likewise.
2037 * jv-valprint.c (java_value_print): Likewise.
2038 * valops.c (value_ind): Likewise.
2039 * value.c (coerce_ref): Likewise.
2041 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2043 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2044 value and retrieve the dynamic type size.
2046 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2048 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2049 passed to sizeof is dynamic evaluate the argument to compute the length.
2051 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2053 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2054 (dwarf2_evaluate_property): New function.
2055 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2056 * dwarf2read.c (attr_to_dynamic_prop): New function.
2057 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2059 * gdbtypes.c: Include dwarf2loc.h.
2060 (is_dynamic_type): New function.
2061 (resolve_dynamic_type): New function.
2062 (resolve_dynamic_bounds): New function.
2063 (get_type_length): New function.
2064 (check_typedef): Use get_type_length to compute type length.
2065 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2066 (TYPE_LOW_BOUND_KIND): New macro.
2067 (is_dynamic_type): New function prototype.
2068 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2069 to resolve dynamic properties of the type. Update comment.
2070 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2072 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2074 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2075 declaring high/low bounds and change uses accordingly. Call
2076 create_range_type instead of create_static_range_type.
2077 * gdbtypes.c (create_range_type): New function.
2078 (create_range_type): Convert bounds into struct bound_prop and pass
2079 them to create_range_type.
2080 * gdbtypes.h (struct bound_prop): New struct.
2081 (create_range_type): New function prototype.
2082 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2083 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2084 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2086 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2088 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2090 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2091 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2092 * ada-lang.c: All uses of create_range_type updated.
2093 * coffread.c: All uses of create_range_type updated.
2094 * dwarf2read.c: All uses of create_range_type updated.
2095 * f-exp.y: All uses of create_range_type updated.
2096 * m2-valprint.c: All uses of create_range_type updated.
2097 * mdebugread.c: All uses of create_range_type updated.
2098 * stabsread.c: All uses of create_range_type updated.
2099 * valops.c: All uses of create_range_type updated.
2100 * valprint.c: All uses of create_range_type updated.
2102 2014-04-10 Pedro Alves <palves@redhat.com>
2104 * breakpoint.c (single_step_breakpoints)
2105 (single_step_gdbarch): Move up in the file.
2106 (one_breakpoint_xfer_memory): New function, factored out from ...
2107 (breakpoint_xfer_memory): ... here. Also process single-step
2110 2014-04-09 Tristan Gingold <gingold@adacore.com>
2112 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2114 (darwin_decode_exception_message): Free port only after use.
2116 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2118 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2119 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2120 when setting the size of call_length.
2122 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2124 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2125 dereference TYPE_CODE_REF values.
2127 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2129 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2130 end of warning message.
2132 2014-04-03 Doug Evans <dje@google.com>
2134 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2135 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2137 2014-04-02 Alan Modra <amodra@gmail.com>
2139 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2140 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2141 (struct symbol_file_add_from_memory_args): Add size field.
2142 (find_vdso_size): New function.
2143 (add_vsyscall_page): Attempt to find vdso size.
2145 2014-04-01 Doug Evans <dje@google.com>
2147 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2149 2014-04-01 Tristan Gingold <gingold@adacore.com>
2151 * darwin-nat.c (darwin_encode_reply): Add prototype.
2152 (darwin_decode_exception_message): Reply to unknown inferiors.
2153 (darwin_decode_message): Handle message by id. Ignore message
2154 to unknown inferior.
2155 (darwin_wait): Discard unknown messages, add debug trace.
2157 2014-03-31 Doug Evans <dje@google.com>
2159 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2162 2014-03-31 Doug Evans <dje@google.com>
2164 New option "set print symbol-loading".
2166 * solib.c (solib_read_symbols): Only print symbol loading messages
2168 (solib_add): If symbol loading is in "brief" mode, notify user
2169 symbols are being loaded.
2170 (reload_shared_libraries_1): Ditto.
2171 * symfile.c (print_symbol_loading_off): New static global.
2172 (print_symbol_loading_brief): New static global.
2173 (print_symbol_loading_full): New static global.
2174 (print_symbol_loading_enums): New static global.
2175 (print_symbol_loading): New static global.
2176 (print_symbol_loading_p): New function.
2177 (symbol_file_add_with_addrs): Only print symbol loading messages
2179 (_initialize_symfile): Register "print symbol-loading" set/show
2181 * symfile.h (print_symbol_loading_p): Declare.
2183 2014-03-30 Doug Evans <xdje42@gmail.com>
2185 * infrun.c (set_last_target_status): New function.
2186 (handle_inferior_event): Call it.
2188 2014-03-30 Doug Evans <xdje42@gmail.com>
2190 * inferior.h (enum stop_kind): Improve comment.
2192 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2194 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2195 a reference, strip the reference layer before calling
2196 the lang_ops value_has_mutated callback.
2198 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2200 Remove some globals from our parser.
2201 * language.c (unk_lang_parser): Add "struct parser_state"
2203 * language.h (struct language_defn) <la_parser>: Likewise.
2204 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2205 (initialize_expout): Add "struct parser_state" argument.
2206 Rewrite function to use the parser state.
2207 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2208 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2209 write_exp_elt_longcst, write_exp_elt_dblcst,
2210 write_exp_elt_decfloatcst, write_exp_elt_type,
2211 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2212 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2213 write_dollar_variable): Likewise.
2214 (parse_exp_in_context_1): Use parser state.
2215 (insert_type_address_space): Add "struct parser_state" argument.
2217 (increase_expout_size): New function.
2218 * parser-defs.h: Forward declare "struct language_defn" and
2219 "struct parser_state".
2220 (expout, expout_size, expout_ptr): Remove extern declarations.
2221 (parse_gdbarch, parse_language): Rewrite macro declarations to
2222 accept the parser state.
2223 (struct parser_state): New struct.
2224 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2225 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2226 write_exp_elt_decfloatcst, write_exp_elt_type,
2227 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2228 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2229 write_exp_msymbol, write_dollar_variable,
2230 mark_struct_expression, insert_type_address_space): Add "struct
2231 parser_state" argument.
2232 (increase_expout_size): New function.
2233 * utils.c (do_clear_parser_state): New function.
2234 (make_cleanup_clear_parser_state): Likewise.
2235 * utils.h (make_cleanup_clear_parser_state): New function
2237 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2238 Update calls to write_exp* in order to pass the parser state.
2239 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2240 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2241 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2242 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2243 * stap-probe.c (stap_parse_register_operand): Likewise.
2244 (stap_parse_single_operand): Likewise.
2245 (stap_parse_argument_1): Likewise.
2246 (stap_parse_argument): Use parser state.
2247 * stap-probe.h: Include "parser-defs.h".
2248 (struct stap_parse_info) <pstate>: New field.
2249 * c-exp.y (parse_type): Rewrite to use parser state.
2250 (yyparse): Redefine to c_parse_internal.
2251 (pstate): New global variable.
2252 (parse_number): Add "struct parser_state" argument.
2253 (write_destructor_name): Likewise.
2254 (type_exp): Update calls to write_exp* and similars in order to
2256 (exp1, exp, variable, qualified_name, space_identifier,
2257 typename, typebase): Likewise.
2258 (write_destructor_name, parse_number, lex_one_token,
2259 classify_name, classify_inner_name, c_parse): Add "struct
2260 parser_state" argument. Update function to use parser state.
2261 * c-lang.h: Forward declare "struct parser_state".
2262 (c_parse): Add "struct parser_state" argument.
2263 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2264 (yyparse): Redefine macro to ada_parse_internal.
2265 (pstate): New variable.
2266 (write_int, write_object_renaming, write_var_or_type,
2267 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2268 type_int, type_long, type_long_long, type_float, type_double,
2269 type_long_double, type_char, type_boolean, type_system_address):
2270 Add "struct parser_state" argument.
2271 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2272 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2273 var_or_type, aggregate, aggregate_component_list,
2274 positional_list, others, component_group,
2275 component_associations): Update calls to write_exp* and similar
2276 functions in order to use parser state.
2277 (ada_parse, write_var_from_sym, write_int,
2278 write_exp_op_with_string, write_object_renaming,
2279 find_primitive_type, write_selectors, write_ambiguous_var,
2280 write_var_or_type, write_name_assoc, type_int, type_long,
2281 type_long_long, type_float, type_double, type_long_double,
2282 type_char, type_boolean, type_system_address): Add "struct
2283 parser_state" argument. Adjust function to use parser state.
2284 * ada-lang.c (parse): Likewise.
2285 * ada-lang.h: Forward declare "struct parser_state".
2286 (ada_parse): Add "struct parser_state" argument.
2287 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2288 calls to both functions.
2289 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2291 (yyparse): Redefine macro to f_parse_internal.
2292 (pstate): New variable.
2293 (parse_number): Add "struct parser_state" argument.
2294 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2295 and similars in order to use parser state.
2296 (parse_number): Adjust code to use parser state.
2298 (f_parse): New function.
2299 * f-lang.h: Forward declare "struct parser_state".
2300 (f_parse): Add "struct parser_state" argument.
2301 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2303 (yyparse): Redefine macro for java_parse_internal.
2304 (pstate): New variable.
2305 (push_expression_name, push_expression_name, insert_exp): Add
2306 "struct parser_state" argument.
2307 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2308 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2309 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2310 PostIncrementExpression, PostDecrementExpression,
2311 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2312 UnaryExpressionNotPlusMinus, CastExpression,
2313 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2314 RelationalExpression, EqualityExpression, AndExpression,
2315 ExclusiveOrExpression, InclusiveOrExpression,
2316 ConditionalAndExpression, ConditionalOrExpression,
2317 ConditionalExpression, Assignment, LeftHandSide): Update
2318 calls to write_exp* and similars in order to use parser state.
2319 (parse_number): Ajust code to use parser state.
2321 (java_parse): New function.
2322 (push_variable): Add "struct parser_state" argument. Adjust
2323 code to user parser state.
2324 (push_fieldnames, push_qualified_expression_name,
2325 push_expression_name, insert_exp): Likewise.
2326 * jv-lang.h: Forward declare "struct parser_state".
2327 (java_parse): Add "struct parser_state" argument.
2328 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2330 (yyparse): Redefine macro to m2_parse_internal.
2331 (pstate): New variable.
2332 (type_exp, exp, fblock, variable, type): Update calls to
2333 write_exp* and similars to use parser state.
2335 (m2_parse): New function.
2336 * m2-lang.h: Forward declare "struct parser_state".
2337 (m2_parse): Add "struct parser_state" argument.
2338 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2339 * objc-lang.h: Forward declare "struct parser_state".
2340 (end_msglist): Add "struct parser_state" argument.
2341 * p-exp.y (parse_type): Rewrite macro to use parser state.
2342 (yyparse): Redefine macro to pascal_parse_internal.
2343 (pstate): New variable.
2344 (parse_number): Add "struct parser_state" argument.
2345 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2346 write_exp* and similars in order to use parser state.
2347 (parse_number, yylex): Adjust code to use parser state.
2348 (pascal_parse): New function.
2349 * p-lang.h: Forward declare "struct parser_state".
2350 (pascal_parse): Add "struct parser_state" argument.
2351 * go-exp.y (parse_type): Rewrite macro to use parser state.
2352 (yyparse): Redefine macro to go_parse_internal.
2353 (pstate): New variable.
2354 (parse_number): Add "struct parser_state" argument.
2355 (type_exp, exp1, exp, variable, type): Update calls to
2356 write_exp* and similars in order to use parser state.
2357 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2358 to use parser state.
2359 (go_parse): Likewise.
2360 * go-lang.h: Forward declare "struct parser_state".
2361 (go_parse): Add "struct parser_state" argument.
2363 2014-03-27 Doug Evans <dje@google.com>
2365 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2367 2014-03-27 Doug Evans <dje@google.com>
2369 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2370 Remove argument abbrev_section. All callers updated.
2372 2014-03-27 Doug Evans <dje@google.com>
2374 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2375 addr_base, ranges_base.
2377 2014-03-26 Keith Seitz <keiths@redhat.com>
2379 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2380 types, not VAR_DOMAIN.
2382 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2384 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2386 * features/nios2-linux.c: Regenerated.
2387 * features/nios2.c: Regenerated.
2389 2014-03-25 Pedro Alves <palves@redhat.com>
2391 * cli/cli-script.c (script_from_file): Force the interpreter to
2394 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2396 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2397 small stack allocation.
2399 2014-03-24 Tristan Gingold <gingold@adacore.com>
2401 * darwin-nat.c (exc_server): Remove unused prototype.
2402 (darwin_dump_message): Correctly display data on x86_64.
2403 (darwin_encode_reply): Fix style.
2404 Add comments and fix indentation.
2406 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2408 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2410 2014-03-22 Doug Evans <xdje42@gmail.com>
2412 * infcmd.c: Whitespace fixes.
2413 (interrupt_command): Merge two function comments into one.
2415 2014-03-22 Doug Evans <xdje42@gmail.com>
2417 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2420 2014-03-22 Yao Qi <yao@codesourcery.com>
2422 * remote.c (target_read_live_memory): Remove.
2423 (memory_xfer_live_readonly_partial): Rename it to
2424 remote_xfer_live_readonly_partial. Remove argument 'object'.
2425 All callers updated. Call remote_read_bytes_1
2426 instead of target_read_live_memory.
2427 * tracepoint.c (set_traceframe_number): Remove.
2428 (make_cleanup_restore_traceframe_number): Likewise .
2429 * tracepoint.h (set_traceframe_number): Remove declaration.
2430 (make_cleanup_restore_traceframe_number): Likewise.
2432 2014-03-22 Yao Qi <yao@codesourcery.com>
2434 * remote.c (remote_read_bytes): Move code on reading from the
2436 (remote_read_bytes_1): ... here. New function.
2438 2014-03-22 Yao Qi <yao@codesourcery.com>
2440 * ctf.c (ctf_xfer_partial): Check the return value of
2441 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2442 return TARGET_XFER_UNAVAILABLE.
2443 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2444 * target.c (target_read_live_memory): Move it to remote.c.
2445 (memory_xfer_live_readonly_partial): Likewise.
2446 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2447 * remote.c (target_read_live_memory): Moved from target.c.
2448 (memory_xfer_live_readonly_partial): Likewise.
2449 (remote_read_bytes): Factored out from
2450 memory_xfer_partial_1.
2452 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2454 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2457 2014-03-21 Pedro Alves <palves@redhat.com>
2459 * infrun.c (normal_stop): Extend comment.
2461 2014-03-21 Hui Zhu <hui@codesourcery.com>
2462 Pedro Alves <palves@redhat.com>
2464 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2466 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2467 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2468 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2470 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2472 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2473 `z' formatted output modifier.
2475 2014-03-20 Tom Tromey <tromey@redhat.com>
2476 Sergio Durigan Junior <sergiodj@redhat.com>
2478 * probe.c (parse_probes): Turn assert into an ordinary error.
2479 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2480 exceptions when parsing probes. Rearrange the code for clarity.
2482 2014-03-20 Tom Tromey <tromey@redhat.com>
2485 * top.c (execute_command): Only dispatch events if the command
2488 2014-03-20 Tom Tromey <tromey@redhat.com>
2491 * infcall.c: Include event-top.h.
2492 (run_inferior_call): Call async_disable_stdin if needed.
2494 2014-03-20 Pedro Alves <palves@redhat.com>
2496 * infrun.c (prepare_to_proceed): Delete.
2497 (thread_still_needs_step_over): New function.
2498 (find_thread_needs_step_over): New function.
2499 (proceed): If the current thread needs a step-over, set its
2500 steping_over_breakpoint flag. Adjust to use
2501 find_thread_needs_step_over instead of prepare_to_proceed.
2502 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2503 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2505 (switch_back_to_stepped_thread): Step over breakpoints of all
2506 threads not the stepping thread, before switching back to the
2509 2014-03-20 Pedro Alves <palves@redhat.com>
2511 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2513 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2514 * infrun.c (saved_singlestep_ptid)
2515 (stepping_past_singlestep_breakpoint): Delete.
2516 (resume): Remove stepping_past_singlestep_breakpoint handling.
2517 (proceed): Store the prev_pc of the stepping thread too.
2518 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2520 (enum infwait_states): Delete infwait_thread_hop_state.
2521 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2523 (handle_inferior_event): Adjust.
2524 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2525 handling and the thread-hop code. Before removing single-step
2526 breakpoints, check whether the thread hit a single-step breakpoint
2527 of another thread. If it did, the trap is not a random signal.
2528 (switch_back_to_stepped_thread): If the event thread hit a
2529 single-step breakpoint, unblock it before switching to the
2530 stepping thread. Handle the case of the stepped thread having
2532 (keep_going): Handle the case of the current thread moving past a
2533 single-step breakpoint.
2535 2014-03-20 Pedro Alves <palves@redhat.com>
2538 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2539 are being stepped over.
2540 (breakpoint_address_match): Make extern.
2541 * breakpoint.h (breakpoint_address_match): New declaration.
2542 * inferior.h (stepping_past_instruction_at): New declaration.
2543 * infrun.c (struct step_over_info): New type.
2544 (step_over_info): New global.
2545 (set_step_over_info, clear_step_over_info)
2546 (stepping_past_instruction_at): New functions.
2547 (handle_inferior_event): Clear the step-over info when
2548 trap_expected is cleared.
2549 (resume): Remove now stale comment.
2550 (clear_proceed_status): Clear step-over info.
2551 (proceed): Adjust step-over handling to set or clear the step-over
2552 info instead of removing all breakpoints.
2553 (handle_signal_stop): When setting up a thread-hop, don't remove
2555 (stop_stepping): Clear step-over info.
2556 (keep_going): Adjust step-over handling to set or clear step-over
2557 info and then always inserting breakpoints, instead of removing
2558 all breakpoints when stepping over one.
2560 2014-03-20 Pedro Alves <palves@redhat.com>
2562 * infrun.c (previous_inferior_ptid): Adjust comment.
2563 (deferred_step_ptid): Delete.
2564 (infrun_thread_ptid_changed, prepare_to_proceed)
2565 (init_wait_for_inferior): Adjust.
2566 (handle_signal_stop): Delete deferred_step_ptid handling.
2568 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2571 * defs.h (sync_quit_force_run): New declaration.
2572 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2573 * event-top.c (async_sigterm_handler): New declaration.
2574 (async_sigterm_token): New variable.
2575 (async_init_signals): Create also async_sigterm_token.
2576 (async_sigterm_handler): New function.
2577 (sync_quit_force_run): New variable.
2578 (handle_sigterm): Replace quit_force call by other calls.
2579 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2581 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2583 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2584 offset into SPE pseudo registers.
2586 2014-03-18 Pedro Alves <palves@redhat.com>
2589 * inferior.h (print_stop_event): Declare.
2590 * infrun.c (print_stop_event): New, factored out from ...
2591 (normal_stop): ... this.
2592 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2593 of bpstat_print/print_stack_frame.
2595 2014-03-17 Tom Tromey <tromey@redhat.com>
2597 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2599 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2601 * ada-lang.c (decode_constrained_packed_array): Perform a
2602 minimal coercion for reference with coerce_ref instead of
2605 2014-03-17 Tristan Gingold <gingold@adacore.com>
2607 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2608 (darwin_solib_create_inferior_hook): Emit a warning if version
2611 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2613 * python/py-value.c (get_field_flag): Cast flag_name argument to
2614 PyObject_GetAttrString to support Python 2.4.
2616 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2618 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2619 (Global Maintainers): Remove Jan Kratochvil.
2621 2014-03-14 Pedro Alves <palves@redhat.com>
2623 * inferior.h (terminal_ours_for_output): Rename to ...
2624 (child_terminal_ours_for_output): ... this.
2625 (terminal_save_ours): Rename to ...
2626 (child_terminal_save_ours): ... this.
2627 (terminal_ours): Rename to ...
2628 (child_terminal_ours): ... this.
2629 (terminal_inferior): Rename to ...
2630 (child_terminal_inferior): ... this.
2631 (terminal_init_inferior): Rename to ...
2632 (child_terminal_init_inferior): ... this.
2633 (terminal_init_inferior_with_pgrp): Rename to ...
2634 (child_terminal_init_inferior_with_pgrp): ... this.
2635 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2636 (child_terminal_init_with_pgrp): ... this.
2637 (terminal_save_ours): Rename to ...
2638 (child_terminal_save_ours): ... this.
2639 (terminal_init_inferior): Rename to ...
2640 (child_terminal_init): ... this. Adjust.
2641 (terminal_inferior): Rename to ...
2642 (child_terminal_inferior): ... this.
2643 (terminal_ours_for_output): Rename to ...
2644 (child_terminal_ours_for_output): ... this. Adjust.
2645 (terminal_ours): Rename to ...
2646 (child_terminal_ours): ... this.
2647 (terminal_ours_1): Rename to ...
2648 (child_terminal_ours_1): ... this. Adjust.
2649 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2650 * windows-nat.c (do_initial_windows_stuff): Adjust.
2651 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2652 (gnu_terminal_init): ... this. Adjust.
2653 (gnu_target): Adjust.
2654 * inf-child.c (inf_child_target): Adjust.
2656 2014-03-13 Doug Evans <xdje42@gmail.com>
2659 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2662 2014-03-13 Doug Evans <xdje42@gmail.com>
2664 * value.c (record_latest_value): Call release_value_or_incref
2665 instead of release_value.
2667 2014-03-13 Pedro Alves <palves@redhat.com>
2669 * procfs.c (procfs_target): Don't override to_shortname,
2670 to_longname or to_doc.
2672 2014-03-13 Pedro Alves <palves@redhat.com>
2674 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2675 Unix in user visible strings.
2677 2014-03-12 Stan Shebs <stan@codesourcery.com>
2679 * gdbtypes.h: Annotate comments for Doxygen, add a page
2680 block comment with some general info.
2682 2014-03-12 Pedro Alves <palves@redhat.com>
2684 * infcmd.c (prepare_execution_command): New function, factored out
2685 from several execution commands.
2686 (run_command_1, continue_command, step_1, jump_command)
2687 (signal_command, until_command, advance_command, finish_command)
2688 (attach_command): Use prepare_execution_command.
2690 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2692 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2695 (struct arm_linux_thread_points): Removed.
2696 (struct arm_linux_process_info): New.
2697 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2698 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2699 (arm_linux_find_breakpoints_by_tid): Removed.
2700 (struct arch_lwp_info): New.
2701 (arm_linux_find_process_pid): New functions.
2702 (arm_linux_add_process): New functions.
2703 (arm_linux_process_info_get): New functions.
2704 (arm_linux_forget_process): New function.
2705 (arm_linux_get_debug_reg_state): New function.
2706 (struct update_registers_data): New.
2707 (update_registers_callback): New function.
2708 (arm_linux_insert_hw_breakpoint1): Updated.
2709 (arm_linux_remove_hw_breakpoint1): Updated.
2710 (arm_linux_insert_hw_breakpoint): Updated.
2711 (arm_linux_remove_hw_breakpoint): Updated.
2712 (arm_linux_insert_watchpoint): Updated.
2713 (arm_linux_remove_watchpoint): Updated.
2714 (arm_linux_new_thread): Updated.
2715 (arm_linux_prepare_to_resume): New function.
2716 (arm_linux_new_fork): New function.
2717 (_initialize_arm_linux_nat): Updated.
2719 2014-03-12 Pedro Alves <palves@redhat.com>
2721 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2723 2014-03-12 Tom Tromey <tromey@redhat.com>
2725 * inf-child.c (return_zero): New function.
2726 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2727 * aix-thread.c (aix_thread_inferior_created): New function.
2728 (aix_thread_attach): Remove.
2729 (init_aix_thread_ops): Don't set to_attach.
2730 (_initialize_aix_thread): Register inferior_created observer.
2731 * corelow.c (init_core_ops): Don't set to_attach or
2733 * exec.c (init_exec_ops): Don't set to_attach or
2735 * infcmd.c (run_command_1): Use find_run_target. Make direct
2737 (attach_command): Use find_attach_target. Make direct target
2739 * record-btrace.c (init_record_btrace_ops): Don't set
2741 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2743 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2744 set to_create_inferior.
2745 * target.c (complete_target_initialization): Add assertion.
2746 (target_create_inferior): Remove.
2747 (find_default_attach, find_default_create_inferior): Remove.
2748 (find_attach_target, find_run_target): New functions.
2749 (find_default_is_async_p, find_default_can_async_p)
2750 (target_supports_non_stop, target_attach): Remove.
2751 (init_dummy_target): Don't set to_create_inferior or
2752 to_supports_non_stop.
2753 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2754 TARGET_DEFAULT_FUNC.
2755 <to_create_inferior>: Add comment.
2756 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2757 TARGET_DEFAULT_RETURN.
2758 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2759 (find_attach_target, find_run_target): Declare.
2760 (target_create_inferior): Remove.
2761 (target_has_execution_1): Update comment.
2762 (target_supports_non_stop): Remove.
2763 * target-delegates.c: Rebuild.
2765 2014-03-12 Pedro Alves <palves@redhat.com>
2767 * inf-child.h: Update comment to not mention Unix.
2769 2014-03-12 Pedro Alves <palves@redhat.com>
2771 * inf-child.c: Update top comment to not mention Unix. Add
2772 generic comment describing how this target is meant to be used.
2773 (inf_child_post_attach, inf_child_post_startup_inferior)
2774 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2777 2014-03-12 Pedro Alves <palves@redhat.com>
2779 * nto-procfs.c: Include inf-child.h.
2780 (procfs_ops): Delete global.
2781 (procfs_can_run): Delete method.
2782 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2783 target pointer instead of referencing procfs_ops.
2784 (procfs_prepare_to_store): Delete.
2785 (init_procfs_ops): Delete function.
2786 (procfs_target): New function, based on init_procfs_ops, but
2787 inherit inf_child_target.
2788 (_initialize_procfs): Use procfs_target.
2790 2014-03-12 Pedro Alves <palves@redhat.com>
2792 * windows-nat.c: Include inf-child.h.
2793 (windows_ops): Delete global.
2794 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2796 (init_windows_ops): Delete function.
2797 (windows_target): New function, based on init_windows_ops, but
2798 inherit inf_child_target.
2799 (_initialize_windows_nat): Use windows_target. Install x86
2800 specific target methods here.
2802 2014-03-10 Doug Evans <xdje42@gmail.com>
2804 * guile/guile.c (call_initialize_gdb_module): New function.
2805 (initialize_guile): Replace call to scm_init_guile with call to
2808 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2810 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2811 in call to TYPE_CODE macro.
2813 2014-03-10 Jerome Guitton <guitton@adacore.com>
2815 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2816 Resolve tagged types to full view.
2818 2014-03-10 Hui Zhu <hui@codesourcery.com>
2820 * target.h (target_insert_breakpoint): Remove "hardware" from its
2823 2014-03-07 Doug Evans <dje@google.com>
2825 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2827 2014-03-07 Doug Evans <dje@google.com>
2829 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2830 Remove unused local comp_dir_attr. Assert exactly one of
2831 stub_comp_unit_die, stub_comp_dir is non-NULL.
2833 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2835 * target.h (complete_target_initialization, add_target):
2838 2014-03-07 Pedro Alves <palves@redhat.com>
2840 * go32-nat.c: Include inf-child.h.
2841 (go32_ops): Delete global.
2842 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2844 (go32_create_inferior): Push the passed in target pointer instead
2845 of referencing go32_ops.
2846 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2847 (go32_target): New function, based on init_go32_ops, but inherit
2849 (_initialize_go32_nat): Use go32_target. Move parts of
2852 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2854 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2855 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2856 SYMBOL_VALUE_ADDRESS.
2857 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2859 2014-03-06 Yao Qi <yao@codesourcery.com>
2861 * breakpoint.c (get_tracepoint_by_number): Remove argument
2862 optional_p. All callers updated. Adjust comments. Update
2864 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2866 2014-03-06 Yao Qi <yao@codesourcery.com>
2868 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2869 early if get_number returns zero. Use 'p' instead of 'args'.
2871 2014-03-06 Yao Qi <yao@codesourcery.com>
2873 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2876 2014-03-06 Yao Qi <yao@codesourcery.com>
2878 PR breakpoints/16508
2879 * tracepoint.c (check_trace_running): New function.
2880 (trace_find_command): Move code to check_trace_running and
2881 call check_trace_running.
2882 (trace_find_pc_command): Likewise.
2883 (trace_find_tracepoint_command): Likewise.
2884 (trace_find_line_command): Likewise.
2885 (trace_find_range_command): Likewise.
2886 * tracepoint.h (check_trace_running): Likewise.
2887 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2889 2014-03-06 Yao Qi <yao@codesourcery.com>
2891 * target.h (struct target_ops) <to_traceframe_info>: Use
2892 TARGET_DEFAULT_NORETURN (tcomplain ()).
2893 * target-delegates.c: Regenerated.
2895 2014-03-05 Pedro Alves <palves@redhat.com>
2898 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2899 void. Update comment.
2900 (dcache_xfer_memory): Delete.
2901 (dcache_read_memory_partial): New, based on the read bits of
2903 (dcache_update): Add status parameter. Use ULONGEST for len, and
2904 adjust. Discard cache lines if the reason for the update was
2906 * dcache.h (dcache_xfer_memory): Delete declaration.
2907 (dcache_read_memory_partial): New declaration.
2908 (dcache_update): Update prototype.
2909 * target.c (raw_memory_xfer_partial): Update the dcache here.
2910 (memory_xfer_partial_1): Don't handle dcache writes here.
2912 2014-03-05 Mike Frysinger <vapier@gentoo.org>
2914 * remote-sim.c (gdbsim_load): Add const to prog.
2916 2014-03-03 Tom Tromey <tromey@redhat.com>
2918 * elfread.c (probe_key): Change to bfd_data.
2919 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2920 now per-BFD, not per-objfile.
2921 * stap-probe.c (stap_probe_destroy): Update comment.
2922 (handle_stap_probe): Allocate on the per-BFD obstack.
2924 2014-03-03 Tom Tromey <tromey@redhat.com>
2926 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2927 * breakpoint.c (create_longjmp_master_breakpoint): Use
2929 (add_location_to_breakpoint, bkpt_probe_insert_location)
2930 (bkpt_probe_remove_location): Update.
2931 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2932 * elfread.c (elf_symfile_relocate_probe): Remove.
2933 (elf_probe_fns): Update.
2934 (insert_exception_resume_breakpoint): Change type of "probe"
2935 parameter to bound_probe.
2936 (check_exception_resume): Update.
2937 * objfiles.c (objfile_relocate1): Don't relocate probes.
2938 * probe.c (bound_probe_s): New typedef.
2939 (parse_probes): Use get_probe_address. Set sal's objfile.
2940 (find_probe_by_pc): Return a bound_probe.
2941 (collect_probes): Return a VEC(bound_probe_s).
2942 (compare_probes): Update.
2943 (gen_ui_out_table_header_info): Change type of "probes"
2945 (info_probes_for_ops): Update.
2946 (get_probe_address): New function.
2947 (probe_safe_evaluate_at_pc): Update.
2948 * probe.h (struct probe_ops) <get_probe_address>: New field.
2949 <set_semaphore, clear_semaphore>: Add objfile parameter.
2950 (struct probe) <objfile>: Remove field.
2952 <address>: Update comment.
2953 (struct bound_probe): New.
2954 (find_probe_by_pc): Return a bound_probe.
2955 (get_probe_address): Declare.
2956 * solib-svr4.c (struct probe_and_action) <address>: New field.
2957 (hash_probe_and_action, equal_probe_and_action): Update.
2958 (register_solib_event_probe): Add address parameter.
2959 (solib_event_probe_at): Update.
2960 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2962 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2963 (stap_get_probe_address): New function.
2964 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2965 (compile_probe_arg): Update.
2966 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2968 (handle_stap_probe): Don't relocate the probe.
2969 (stap_relocate): Remove.
2970 (stap_gen_info_probes_table_values): Update.
2971 (stap_probe_ops): Remove stap_relocate.
2972 * symfile-debug.c (debug_sym_relocate_probe): Remove.
2973 (debug_sym_probe_fns): Update.
2974 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
2975 * symtab.c (init_sal): Use memset.
2976 * symtab.h (struct symtab_and_line) <objfile>: New field.
2977 * tracepoint.c (start_tracing, stop_tracing): Update.
2979 2014-03-03 Tom Tromey <tromey@redhat.com>
2981 * probe.h (parse_probes, find_probe_by_pc)
2982 (find_probes_in_objfile): Fix comments.
2984 2014-03-02 Doug Evans <xdje42@gmail.com>
2986 * infrun.c (handle_signal_stop): Replace test for
2987 TARGET_WAITKIND_STOPPED with an assert.
2989 2014-03-02 Doug Evans <xdje42@gmail.com>
2991 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
2993 2014-03-02 Doug Evans <xdje42@gmail.com>
2995 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
2997 2014-03-01 Mark Kettenis <kettenis@gnu.org>
2999 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3001 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3003 * i386obsd-nat.c: Include "obsd-nat.h".
3004 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3006 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3008 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3010 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3012 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3014 * mips64obsd-nat.c: Include "obsd-nath".
3015 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3017 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3019 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3021 * amd64obsd-nat.c: Include "obsd-nat,h.
3022 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3024 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3026 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3028 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3029 (find_overload_match): Update call to find_oload_champ.
3030 (find_oload_champ_namespace_loop): Likewise
3032 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3034 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3036 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3037 * config/sparc/obsd64.mh: New file.
3038 * sparc64obsd-nat.c: New file.
3040 * obsd-nat.h: New file.
3041 * obsd-nat.c: New file.
3042 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3043 (ALLDEPFILES): Add obsd-nat.c.
3045 2014-02-28 Tom Tromey <tromey@redhat.com>
3047 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3048 * cli-out.h (cli_ui_out_impl): Now const.
3049 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3050 * ui-out.c (struct ui_out) <impl>: Now const.
3051 (default_ui_out_impl): Now const.
3052 (ui_out_new): Make 'impl' parameter const.
3053 * ui-out.h (ui_out_new): Update.
3055 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3057 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3059 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3061 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3063 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3065 Additional PR 8882 fix.
3066 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3068 2014-02-27 Pedro Alves <palves@redhat.com>
3070 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3073 2014-02-27 Pedro Alves <palves@redhat.com>
3076 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3077 * nat/linux-waitpid.c: Include string.h.
3078 (status_to_str): Moved here and made extern.
3079 * nat/linux-waitpid.h (status_to_str): New declaration.
3081 2014-02-27 Hui Zhu <hui@codesourcery.com>
3084 * infrun.c (ptid_match): Move ...
3085 * common/ptid.c (ptid_match): ... here.
3086 * inferior.h (ptid_match): Move ...
3087 * common/ptid.h (ptid_match): ... here.
3089 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3091 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3092 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3095 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3097 * obsd-tdep.c (obsd_auxv_parse): New function.
3098 (obsd_init_abi): Set auxv_parse.
3100 * gdbarch.sh (auxv_parse): New.
3101 * gdbarch.h: Regenerated.
3102 * gdbarch.c: Regenerated.
3103 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3105 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3107 * guile/scm-value.c (gdbscm_history_append_x): New function.
3108 (value_functions): Add it.
3110 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3112 * dwarf2read.c (attr_value_as_address): New function.
3113 (dwarf2_find_base_address, read_call_site_scope): Use
3114 attr_value_as_address in place of DW_ADDR.
3115 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3116 the low and high addresses. Slight rework of the handling
3117 of the high pc being a constant form, and limit it to
3118 DWARF verson 4 or higher.
3119 (dwarf2_record_block_ranges): Likewise.
3120 (read_partial_die): Likewise.
3121 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3123 2014-02-26 Tom Tromey <tromey@redhat.com>
3125 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3127 2014-02-26 Tom Tromey <tromey@redhat.com>
3129 * elfread.c (elf_read_minimal_symbols): Return early if
3130 minimal symbols have already been read. Add "ei" parameter.
3131 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3132 * minsyms.c (prim_record_minimal_symbol_full): Update.
3133 * objfiles.h (struct objstats) <n_minsyms>: Move...
3134 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3135 * symmisc.c (print_objfile_statistics): Update.
3137 2014-02-26 Tom Tromey <tromey@redhat.com>
3139 * elfread.c (elf_read_minimal_symbols): New function, from
3141 (elf_symfile_read): Call it.
3143 2014-02-26 Tom Tromey <tromey@redhat.com>
3145 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3146 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3147 (lookup_minimal_symbol_solib_trampoline)
3148 (lookup_minimal_symbol_by_pc_section_1)
3149 (lookup_minimal_symbol_and_objfile): Update.
3150 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3151 Don't allocate a minimal symbol if minsyms have already been read.
3152 (build_minimal_symbol_hash_tables): Update.
3153 (install_minimal_symbols): Do nothing if minsyms already read.
3154 Use the per-BFD obstack.
3155 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3156 * objfiles.c (allocate_objfile): Call
3157 terminate_minimal_symbol_table later.
3158 (have_minimal_symbols): Update.
3159 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3160 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3161 Move from struct objfile.
3162 <minsyms_read>: New field.
3163 (struct objfile) <msymbols, minimal_symbol_count,
3164 msymbol_hash, msymbol_demangled_hash>: Move.
3165 (ALL_OBJFILE_MSYMBOLS): Update.
3166 * symfile.c (read_symbols): Set minsyms_read.
3167 (reread_symbols): Update.
3168 * symmisc.c (dump_objfile, dump_msymbols): Update.
3170 2014-02-26 Tom Tromey <tromey@redhat.com>
3172 * minsyms.c (msymbols_sort): Remove.
3173 * minsyms.h (msymbols_sort): Remove.
3174 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3175 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3176 * elfread.c (elf_symtab_read): Don't add section offsets.
3177 * xcoffread.c (record_minimal_symbol): Don't add section offset
3178 to minimal symbol address.
3179 * somread.c (text_offset, data_offset): Remove.
3180 (som_symtab_read): Don't add section offsets to minimal symbol
3182 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3183 Don't add section offsets to minimal symbols.
3184 * coffread.c (coff_symtab_read): Don't add section offsets
3185 to minimal symbol addresses.
3186 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3187 to minimal symbol addresses.
3188 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3189 section offset to minimal symbol addresses.
3190 * mdebugread.c (parse_partial_symbols): Don't add section
3191 offset to minimal symbol addresses.
3192 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3193 offset to minimal symbol addresses.
3195 2014-02-26 Tom Tromey <tromey@redhat.com>
3197 * ada-lang.c (ada_main_name): Update.
3198 (ada_add_standard_exceptions): Update.
3199 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3200 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3201 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3202 * auxv.c (ld_so_xfer_auxv): Update.
3203 * avr-tdep.c (avr_scan_prologue): Update.
3204 * ax-gdb.c (gen_var_ref): Update.
3205 * blockframe.c (get_pc_function_start)
3206 (find_pc_partial_function_gnu_ifunc): Update.
3207 * breakpoint.c (create_overlay_event_breakpoint)
3208 (create_longjmp_master_breakpoint)
3209 (create_std_terminate_master_breakpoint)
3210 (create_exception_master_breakpoint): Update.
3211 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3212 * c-valprint.c (c_val_print): Update.
3213 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3214 * common/agent.c (agent_look_up_symbols): Update.
3215 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3216 * dwarf2loc.c (call_site_to_target_addr): Update.
3217 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3218 * elfread.c (elf_gnu_ifunc_record_cache)
3219 (elf_gnu_ifunc_resolve_by_got): Update.
3220 * findvar.c (default_read_var_value): Update.
3221 * frame.c (inside_main_func): Update.
3222 * frv-tdep.c (frv_frame_this_id): Update.
3223 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3224 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3226 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3227 (hppa_hpux_find_dummy_bpaddr): Update.
3228 * hppa-tdep.c (hppa_symbol_address): Update.
3229 * infcmd.c (until_next_command): Update.
3230 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3232 * linespec.c (minsym_found, add_minsym): Update.
3233 * linux-nat.c (get_signo): Update.
3234 * linux-thread-db.c (inferior_has_bug): Update.
3235 * m32c-tdep.c (m32c_return_value)
3236 (m32c_m16c_address_to_pointer): Update.
3237 * m32r-tdep.c (m32r_frame_this_id): Update.
3238 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3239 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3240 * maint.c (maintenance_translate_address): Update.
3241 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3242 (frob_address): New function.
3243 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3244 frob_address. Rename parameter to "pc_in".
3245 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3247 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3249 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3250 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3251 * objc-lang.c (find_objc_msgsend): Update.
3252 * objfiles.c (objfile_relocate1): Update.
3253 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3254 * p-valprint.c (pascal_val_print): Update.
3255 * parse.c (write_exp_msymbol): Update.
3256 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3257 (ppc_elfv2_skip_entrypoint): Update.
3258 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3259 * printcmd.c (build_address_symbolic, msym_info)
3260 (address_info): Update.
3261 * proc-service.c (ps_pglobal_lookup): Update.
3262 * psymtab.c (find_pc_sect_psymtab_closer)
3263 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3264 Change msymbol parameter to bound_minimal_symbol.
3265 * ravenscar-thread.c (get_running_thread_id): Update.
3266 * remote.c (remote_check_symbols): Update.
3267 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3269 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3270 * solib-dsbt.c (lm_base): Update.
3271 * solib-frv.c (lm_base, main_got): Update.
3272 * solib-irix.c (locate_base): Update.
3273 * solib-som.c (som_solib_create_inferior_hook)
3274 (link_map_start): Update.
3275 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3276 * solib-svr4.c (elf_locate_base, enable_break): Update.
3277 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3278 (flush_ea_cache): Update.
3279 * stabsread.c (define_symbol, scan_file_globals): Update.
3280 * stack.c (find_frame_funname): Update.
3281 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3282 (debug_qf_find_pc_sect_symtab): Update.
3283 * symfile.c (simple_read_overlay_table)
3284 (simple_overlay_update): Update.
3285 * symfile.h (struct quick_symbol_functions)
3286 <find_pc_sect_symtab>: Change type of msymbol to
3287 bound_minimal_symbol.
3288 * symmisc.c (dump_msymbols): Update.
3289 * symtab.c (find_pc_sect_symtab_via_partial)
3290 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3291 (search_symbols, print_msymbol_info): Update.
3292 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3293 (MSYMBOL_VALUE_ADDRESS): Redefine.
3294 (BMSYMBOL_VALUE_ADDRESS): New macro.
3295 * tracepoint.c (scope_info): Update.
3296 * tui/tui-disasm.c (tui_find_disassembly_address)
3297 (tui_get_begin_asm_address): Update.
3298 * valops.c (find_function_in_inferior): Update.
3299 * value.c (value_static_field, value_fn_field): Update.
3301 2014-02-26 Tom Tromey <tromey@redhat.com>
3303 * ada-lang.c (ada_update_initial_language): Update.
3304 (ada_main_name, ada_has_this_exception_support): Update.
3305 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3306 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3307 * arm-tdep.c (arm_skip_stub): Update.
3308 * auxv.c (ld_so_xfer_auxv): Update.
3309 * avr-tdep.c (avr_scan_prologue): Update.
3310 * ax-gdb.c (gen_var_ref): Update.
3311 * breakpoint.c (struct breakpoint_objfile_data)
3312 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3313 type to bound_minimal_symbol.
3314 (create_overlay_event_breakpoint)
3315 (create_longjmp_master_breakpoint)
3316 (create_std_terminate_master_breakpoint)
3317 (create_exception_master_breakpoint): Update.
3318 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3319 * c-exp.y (classify_name): Update.
3320 * coffread.c (coff_symfile_read): Update.
3321 * common/agent.c (agent_look_up_symbols): Update.
3322 * d-lang.c (d_main_name): Update.
3323 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3324 * dec-thread.c (enable_dec_thread): Update.
3325 * dwarf2loc.c (call_site_to_target_addr): Update.
3326 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3327 * eval.c (evaluate_subexp_standard): Update.
3328 * findvar.c (struct minsym_lookup_data) <result>: Change type
3329 to bound_minimal_symbol.
3331 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3332 * frame.c (inside_main_func): Update.
3333 * frv-tdep.c (frv_frame_this_id): Update.
3334 * gcore.c (call_target_sbrk): Update.
3335 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3336 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3338 * go-lang.c (go_main_name): Update.
3339 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3340 (hppa_hpux_find_import_stub_for_addr): Update.
3341 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3342 Update. Change return type.
3343 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3345 * jit.c (jit_breakpoint_re_set_internal): Update.
3346 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3348 * linux-nat.c (get_signo): Update.
3349 * linux-thread-db.c (inferior_has_bug): Update
3350 * m32c-tdep.c (m32c_return_value)
3351 (m32c_m16c_address_to_pointer): Update.
3352 * m32r-tdep.c (m32r_frame_this_id): Update.
3353 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3354 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3355 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3356 lookup_minimal_symbol. Change return type.
3357 (lookup_minimal_symbol): Remove.
3358 (lookup_bound_minimal_symbol): Update.
3359 (lookup_minimal_symbol_text): Change return type.
3360 (lookup_minimal_symbol_solib_trampoline): Change return type.
3361 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3362 (lookup_minimal_symbol_solib_trampoline): Change return type.
3363 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3364 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3365 (value_nsstring, find_imps): Update.
3366 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3367 * p-lang.c (pascal_main_name): Update.
3368 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3369 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3370 * proc-service.c (ps_pglobal_lookup): Update.
3371 * ravenscar-thread.c (get_running_thread_msymbol): Change
3373 (has_ravenscar_runtime, get_running_thread_id): Update.
3374 * remote.c (remote_check_symbols): Update.
3375 * sol-thread.c (ps_pglobal_lookup): Update.
3376 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3377 * solib-dsbt.c (lm_base): Update.
3378 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3380 * solib-irix.c (locate_base): Update.
3381 * solib-som.c (som_solib_create_inferior_hook)
3382 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3384 * solib-spu.c (spu_enable_break): Update.
3385 * solib-svr4.c (elf_locate_base, enable_break): Update.
3386 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3387 (flush_ea_cache): Update.
3388 * stabsread.c (define_symbol): Update.
3389 * symfile.c (simple_read_overlay_table): Update.
3390 * symtab.c (find_pc_sect_line): Update.
3391 * tracepoint.c (scope_info): Update.
3392 * tui-disasm.c (tui_get_begin_asm_address): Update.
3393 * value.c (value_static_field): Update.
3395 2014-02-26 Tom Tromey <tromey@redhat.com>
3397 * minsyms.c (prim_record_minimal_symbol_full): Use
3398 SET_MSYMBOL_VALUE_ADDRESS.
3399 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3400 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3401 SET_MSYMBOL_VALUE_ADDRESS.
3402 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3403 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3405 2014-02-26 Tom Tromey <tromey@redhat.com>
3407 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3408 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3409 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3410 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3411 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3412 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3413 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3414 * ada-lang.c (ada_main_name): Update.
3415 (ada_lookup_simple_minsym): Update.
3416 (ada_make_symbol_completion_list): Update.
3417 (ada_add_standard_exceptions): Update.
3418 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3419 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3420 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3421 * arm-tdep.c (skip_prologue_function): Update.
3422 (arm_skip_stack_protector, arm_skip_stub): Update.
3423 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3424 (arm_wince_skip_main_prologue): Update.
3425 * auxv.c (ld_so_xfer_auxv): Update.
3426 * avr-tdep.c (avr_scan_prologue): Update.
3427 * ax-gdb.c (gen_var_ref): Update.
3428 * block.c (call_site_for_pc): Update.
3429 * blockframe.c (get_pc_function_start): Update.
3430 (find_pc_partial_function_gnu_ifunc): Update.
3431 * breakpoint.c (create_overlay_event_breakpoint): Update.
3432 (create_longjmp_master_breakpoint): Update.
3433 (create_std_terminate_master_breakpoint): Update.
3434 (create_exception_master_breakpoint): Update.
3435 (resolve_sal_pc): Update.
3436 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3437 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3439 * c-valprint.c (c_val_print): Update.
3440 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3441 * coffread.c (coff_symfile_read): Update.
3442 * common/agent.c (agent_look_up_symbols): Update.
3443 * dbxread.c (find_stab_function_addr): Update.
3444 (end_psymtab): Update.
3445 * dwarf2loc.c (call_site_to_target_addr): Update.
3446 (func_verify_no_selftailcall): Update.
3447 (tailcall_dump): Update.
3448 (call_site_find_chain_1): Update.
3449 (dwarf_expr_reg_to_entry_parameter): Update.
3450 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3451 (elf_gnu_ifunc_resolve_by_got): Update.
3452 * f-valprint.c (info_common_command): Update.
3453 * findvar.c (read_var_value): Update.
3454 * frame.c (get_prev_frame_1): Update.
3455 (inside_main_func): Update.
3456 * frv-tdep.c (frv_skip_main_prologue): Update.
3457 (frv_frame_this_id): Update.
3458 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3459 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3460 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3461 (gnuv3_skip_trampoline): Update.
3462 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3463 (hppa64_hpux_in_solib_call_trampoline): Update.
3464 (hppa_hpux_skip_trampoline_code): Update.
3465 (hppa64_hpux_search_dummy_call_sequence): Update.
3466 (hppa_hpux_find_import_stub_for_addr): Update.
3467 (hppa_hpux_find_dummy_bpaddr): Update.
3468 * hppa-tdep.c (hppa_symbol_address)
3469 (hppa_lookup_stub_minimal_symbol): Update.
3470 * i386-tdep.c (i386_skip_main_prologue): Update.
3471 (i386_pe_skip_trampoline_code): Update.
3472 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3473 * infcall.c (get_function_name): Update.
3474 * infcmd.c (until_next_command): Update.
3475 * jit.c (jit_breakpoint_re_set_internal): Update.
3476 (jit_inferior_init): Update.
3477 * linespec.c (minsym_found): Update.
3478 (add_minsym): Update.
3479 * linux-fork.c (info_checkpoints_command): Update.
3480 * linux-nat.c (get_signo): Update.
3481 * linux-thread-db.c (inferior_has_bug): Update.
3482 * m32c-tdep.c (m32c_return_value): Update.
3483 (m32c_m16c_address_to_pointer): Update.
3484 (m32c_m16c_pointer_to_address): Update.
3485 * m32r-tdep.c (m32r_frame_this_id): Update.
3486 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3487 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3488 * maint.c (maintenance_translate_address): Update.
3489 * minsyms.c (add_minsym_to_hash_table): Update.
3490 (add_minsym_to_demangled_hash_table): Update.
3491 (msymbol_objfile): Update.
3492 (lookup_minimal_symbol): Update.
3493 (iterate_over_minimal_symbols): Update.
3494 (lookup_minimal_symbol_text): Update.
3495 (lookup_minimal_symbol_by_pc_name): Update.
3496 (lookup_minimal_symbol_solib_trampoline): Update.
3497 (lookup_minimal_symbol_by_pc_section_1): Update.
3498 (lookup_minimal_symbol_and_objfile): Update.
3499 (prim_record_minimal_symbol_full): Update.
3500 (compare_minimal_symbols): Update.
3501 (compact_minimal_symbols): Update.
3502 (build_minimal_symbol_hash_tables): Update.
3503 (install_minimal_symbols): Update.
3504 (terminate_minimal_symbol_table): Update.
3505 (find_solib_trampoline_target): Update.
3506 (minimal_symbol_upper_bound): Update.
3507 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3508 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3509 (mips_skip_pic_trampoline_code): Update.
3510 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3511 * objc-lang.c (selectors_info): Update.
3512 (classes_info): Update.
3513 (find_methods): Update.
3514 (find_imps): Update.
3515 (find_objc_msgsend): Update.
3516 * objfiles.c (objfile_relocate1): Update.
3517 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3518 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3519 * p-valprint.c (pascal_val_print): Update.
3520 * parse.c (write_exp_msymbol): Update.
3521 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3522 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3523 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3524 * printcmd.c (build_address_symbolic): Update.
3526 (address_info): Update.
3527 * proc-service.c (ps_pglobal_lookup): Update.
3528 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3529 (find_pc_sect_psymtab): Update.
3530 * python/py-framefilter.c (py_print_frame): Update.
3531 * ravenscar-thread.c (get_running_thread_id): Update.
3532 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3534 * remote.c (remote_check_symbols): Update.
3535 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3536 (rs6000_skip_trampoline_code): Update.
3537 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3538 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3539 * solib-dsbt.c (lm_base): Update.
3540 * solib-frv.c (lm_base): Update.
3542 * solib-irix.c (locate_base): Update.
3543 * solib-som.c (som_solib_create_inferior_hook): Update.
3544 (som_solib_desire_dynamic_linker_symbols): Update.
3545 (link_map_start): Update.
3546 * solib-spu.c (spu_enable_break): Update.
3547 (ocl_enable_break): Update.
3548 * solib-svr4.c (elf_locate_base): Update.
3549 (enable_break): Update.
3550 * spu-tdep.c (spu_get_overlay_table): Update.
3551 (spu_catch_start): Update.
3552 (flush_ea_cache): Update.
3553 * stabsread.c (define_symbol): Update.
3554 (scan_file_globals): Update.
3555 * stack.c (find_frame_funname): Update.
3556 (frame_info): Update.
3557 * symfile.c (simple_read_overlay_table): Update.
3558 (simple_overlay_update): Update.
3559 * symmisc.c (dump_msymbols): Update.
3560 * symtab.c (fixup_section): Update.
3561 (find_pc_sect_line): Update.
3562 (skip_prologue_sal): Update.
3563 (search_symbols): Update.
3564 (print_msymbol_info): Update.
3565 (rbreak_command): Update.
3566 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3567 (completion_list_objc_symbol): Update.
3568 (default_make_symbol_completion_list_break_on): Update.
3569 * tracepoint.c (scope_info): Update.
3570 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3571 (tui_get_begin_asm_address): Update.
3572 * valops.c (find_function_in_inferior): Update.
3573 * value.c (value_static_field): Update.
3574 (value_fn_field): Update.
3576 2014-02-26 Tom Tromey <tromey@redhat.com>
3578 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3579 bound minimal symbols. Move code that knows about minsym
3581 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3583 * minsyms.h (minimal_symbol_upper_bound): Declare.
3584 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3585 minimal_symbol_upper_bound.
3587 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3589 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3590 Use the type's name if its basic type does not have a tag.
3592 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3594 * dwarf2read.c (read_subrange_type): Add comment.
3596 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3598 * dwarf2read.c (update_enumeration_type_from_children): New
3599 function, mostly extracted from process_structure_scope.
3600 (read_enumeration_type): Call update_enumeration_type_from_children.
3601 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3602 and flag_flag_enum fields.
3604 2014-02-26 Pedro Alves <palves@redhat.com>
3606 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3607 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3608 to_xfer_partial method.
3610 2014-02-26 Pedro Alves <palves@redhat.com>
3612 * target.c (complete_target_initialization): Don't install
3613 default_xfer_partial as to_xfer_partial hook.
3615 (update_current_target): Don't INHERIT nor de_fault
3616 deprecated_xfer_memory. Delete de_fault macro.
3617 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3618 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3619 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3622 2014-02-26 Pedro Alves <palves@redhat.com>
3624 * go32-nat.c (my_write_child): New function.
3625 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3626 (go32_xfer_partial): New function.
3627 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3628 Instead install a to_xfer_partial hook.
3630 2014-02-26 Pedro Alves <palves@redhat.com>
3632 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3633 to_xfer_partial helper. Rewrite.
3634 (procfs_xfer_partial): New function.
3635 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3636 Install a to_xfer_partial hook.
3638 2014-02-26 Pedro Alves <palves@redhat.com>
3640 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3641 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3642 (m32r_xfer_partial): New function.
3643 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3644 Install a to_xfer_partial hook.
3646 2014-02-26 Pedro Alves <palves@redhat.com>
3648 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3650 (mips_xfer_partial): New function.
3651 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3652 hook. Install a to_xfer_partial hook.
3654 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3656 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3657 * gdbtypes.c (create_array_type_with_stride): New function,
3658 renaming create_array_type, but with an added parameter
3659 called "bit_stride".
3660 (create_array_type): Re-implement using
3661 create_array_type_with_stride.
3662 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3663 and DW_AT_bit_stride attributes.
3665 2014-02-26 Pedro Alves <palves@redhat.com>
3667 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3668 task-specific breakpoints.
3670 2014-02-25 Pedro Alves <palves@redhat.com>
3672 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3673 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3675 2014-02-25 Stan Shebs <stan@codesourcery.com>
3677 * defs.h: Annotate comments for Doxygen.
3679 2014-02-25 Tom Tromey <tromey@redhat.com>
3681 * target.h (target_ignore): Don't declare.
3682 * target.c (target_ignore): Remove.
3684 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3687 * auto-load.c (auto_load_objfile_script_1): Change filename to
3690 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3692 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3693 documentation. Adjust prototype to match the target_ops
3694 to_xfer_partial method. Adjust implementation accordingly.
3696 2014-02-25 Hui Zhu <hui@codesourcery.com>
3698 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3701 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3703 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3704 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3705 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3706 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3707 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3708 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3709 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3710 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3712 (rl78_register_type): Use a data pointer type for SP and
3713 new pseudo registers mentioned above. Use a 16 bit integer
3714 type for all other register pairs.
3715 (rl78_register_name, rl78_g10_register_name): Update for
3716 new pseudo registers.
3717 (rl78_pseudo_register_read): Likewise.
3718 (rl78_pseudo_register_write): Likewise.
3719 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3720 to the newly added pseudo registers.
3722 2014-02-24 Doug Evans <dje@google.com>
3724 * value.c (record_latest_value): Fix comment.
3725 * printcmd.c (print_command_1): Remove code to handle -1 return from
3726 record_latest_value.
3728 2014-02-24 Pedro Alves <palves@redhat.com>
3730 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3731 deprecated_xfer_memory hook.
3732 (procfs_xfer_partial): Call procfs_xfer_memory instead
3733 of the deprecated_xfer_memory target hook.
3734 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3737 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3739 * windows-nat.c (windows_xfer_shared_libraries): Return
3740 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3741 requested object is TARGET_OBJECT_LIBRARIES.
3743 2014-02-24 Yao Qi <yao@codesourcery.com>
3745 * target.h (enum target_xfer_status)
3746 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3747 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3749 * corefile.c (memory_error_message): User updated.
3750 * exec.c (section_table_read_available_memory): Likewise.
3751 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3752 * target.c (target_xfer_status_to_string): Likewise.
3753 (raw_memory_xfer_partial): Likewise.
3754 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3755 * valops.c (read_value_memory): Likewise.
3756 * exec.h: Update comments.
3758 2014-02-24 Yao Qi <yao@codesourcery.com>
3760 * target.c (target_xfer_status_to_string): Rename argument err
3762 * target.h (target_xfer_status_to_string): Update declaration.
3763 Replace target_xfer_error_to_string with
3764 target_xfer_status_to_string in comment.
3766 2014-02-24 Yao Qi <yao@codesourcery.com>
3768 * mips-linux-nat.c (super_close): Update its type.
3769 (mips_linux_close): Pass 'self' to super_close.
3771 2014-02-24 Yao Qi <yao@codesourcery.com>
3773 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3774 * corefile.c (read_memory): Adjusted.
3775 * target.c (target_write_with_progress): Adjusted.
3777 2014-02-23 Yao Qi <yao@codesourcery.com>
3781 2013-10-25 Yao Qi <yao@codesourcery.com>
3783 * remote.c (remote_traceframe_info): Return early if
3784 traceframe is not selected.
3786 2013-07-19 Yao Qi <yao@codesourcery.com>
3788 * target.c (update_current_target): Change the default action
3789 of 'to_traceframe_info' from tcomplain to return_zero.
3790 * target.h (struct target_ops) <to_traceframe_info>: Add more
3793 2014-02-23 Yao Qi <yao@codesourcery.com>
3795 * valops.c (read_value_memory): Rewrite it. Call
3796 target_xfer_partial in a loop.
3797 * exec.h (section_table_available_memory): Remove declaration.
3798 Move comments to ...
3799 * exec.c (section_table_available_memory): ... here. Make it
3802 2014-02-23 Yao Qi <yao@codesourcery.com>
3804 * exec.c (section_table_read_available_memory): New function.
3805 * exec.h (section_table_read_available_memory): Declare.
3806 * ctf.c (ctf_xfer_partial): Call
3807 section_table_read_available_memory.
3808 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3810 2014-02-23 Yao Qi <yao@codesourcery.com>
3812 * ctf.c (ctf_xfer_partial): Move code to ...
3813 * exec.c (exec_read_partial_read_only): ... it. New function.
3814 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3815 * tracefile.c: Include "exec.h".
3816 * exec.h (exec_read_partial_read_only): Declare.
3818 2014-02-23 Yao Qi <yao@codesourcery.com>
3820 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3821 (tfile_has_memory): Remove.
3822 (init_tfile_ops): Don't set fields to_has_all_memory and
3823 to_has_memory of tfile_ops.
3824 * tracefile.c (tracefile_has_all_memory): New function.
3825 (tracefile_has_memory): New function.
3826 (init_tracefile_ops): Initialize fields to_has_all_memory and
3827 to_has_memory of 'ops'.
3829 2014-02-23 Yao Qi <yao@codesourcery.com>
3831 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3832 (ctf_thread_alive, ctf_get_trace_status): Remove.
3833 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3835 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3836 (tfile_has_stack, tfile_has_registers): Remove.
3837 (tfile_thread_alive): Remove.
3838 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3840 * tracefile.c (tracefile_has_stack): New function.
3841 (tracefile_has_registers): New function.
3842 (tracefile_thread_alive): New function.
3843 (tracefile_get_trace_status): New function.
3844 (init_tracefile_ops): New function.
3845 * tracefile.h (init_tracefile_ops): Declare.
3847 2014-02-23 Yao Qi <yao@codesourcery.com>
3849 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3850 (O_LARGEFILE): Likewise.
3851 (tfile_ops): Likewise.
3852 (TRACE_HEADER_SIZE): Likewise.
3853 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3854 (cur_data_size): Likewise.
3855 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3856 (tfile_close, tfile_files_info): Likewise.
3857 (tfile_get_trace_status): Likewise.
3858 (tfile_get_tracepoint_status): Likewise.
3859 (tfile_get_traceframe_address): Likewise.
3860 (tfile_trace_find, match_blocktype): Likewise.
3861 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3862 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3863 (tfile_get_trace_state_variable_value): Likewise.
3864 (tfile_has_all_memory, tfile_has_memory): Likewise.
3865 (tfile_has_stack, tfile_has_registers): Likewise.
3866 (tfile_thread_alive, build_traceframe_info): Likewise.
3867 (tfile_traceframe_info, init_tfile_ops): Likewise.
3868 (_initialize_tracepoint): Don't call init_tfile_ops
3869 and add_target_with_completer.
3870 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3871 exec.h, completer.h and filenames.h.
3872 (_initialize_tracefile_tfile): New function.
3874 2014-02-23 Yao Qi <yao@codesourcery.com>
3876 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3878 (HFILES_NO_SRCDIR): Add tracefile.h.
3879 * ctf.c: Include "tracefile.h".
3880 * tracefile.h: New file.
3881 * tracefile.c: New file
3882 * tracefile-tfile.c: New file.
3883 * tracepoint.c: Include "tracefile.h".
3884 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3885 (stop_reason_names): Add const.
3886 (trace_file_writer_xfree): Move it to tracefile.c.
3887 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3888 (trace_save_ctf): Likewise.
3889 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3890 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3891 (tfile_write_header, tfile_write_regblock_type): Likewise.
3892 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3893 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3894 (tfile_write_raw_data, tfile_end): Likewise.
3895 (tfile_trace_file_writer_new): Likewise.
3896 (free_uploaded_tp): Make it extern.
3897 (free_uploaded_tsv): Make it extern.
3898 (_initialize_tracepoint): Move code to register command 'tsave'
3900 * tracepoint.h (stop_reason_names): Declare.
3901 (struct trace_frame_write_ops): Move it to tracefile.h.
3902 (struct trace_file_write_ops): Likewise.
3903 (struct trace_file_writer): Likewise.
3904 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3906 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3909 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3911 (get_cores_used_by_process): New parameter num_cores, use it.
3912 (linux_xfer_osdata_processes): Pass num_cores to it.
3913 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3916 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3918 * target.c (memory_xfer_partial): Fix length arg in call to
3919 breakpoint_xfer_memory.
3921 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3924 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3925 number comes after the + or - signs. Adjust length of register
3926 name to be extracted.
3928 2014-02-20 Tom Tromey <tromey@redhat.com>
3930 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3931 (ada_varobj_ops): Mark "extern".
3933 2014-02-20 Tom Tromey <tromey@redhat.com>
3935 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3937 2014-02-20 Doug Evans <xdje42@gmail.com>
3939 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3940 All callers updated.
3941 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3942 All callers updated.
3943 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3944 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3946 2014-02-20 lin zuojian <manjian2006@gmail.com>
3947 Joel Brobecker <brobecker@adacore.com>
3948 Doug Evans <xdje42@gmail.com>
3951 * dwarf2read.c (struct die_info): New member in_process.
3952 (reset_die_in_process): New function.
3953 (process_die): Set it at the start, reset when returning.
3954 (inherit_abstract_dies): Only call process_die if origin_child_die
3955 not already being processed.
3957 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3959 * windows-nat.c (handle_unload_dll): Add function documentation.
3960 (do_initial_windows_stuff): Add comment explaining why we wait
3961 until after inferior initialization has finished before
3962 processing all DLLs.
3964 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3966 * windows-nat.c (get_module_name): Delete.
3967 (windows_get_exec_module_filename): New function, mostly
3968 inspired from get_module_name.
3969 (windows_pid_to_exec_file): Replace call to get_module_name
3970 by call to windows_get_exec_module_filename.
3972 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3974 * windows-nat.c (handle_load_dll): Rewrite this function's
3975 introductory comment. Remove code using get_module_name
3976 to get the DLL's name.
3978 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3980 * windows-nat.c (get_windows_debug_event): Ignore
3981 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
3982 if windows_initialization_done == 0.
3983 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
3984 Adjust implementation to always load all DLLs.
3985 (do_initial_windows_stuff): Replace call to
3986 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
3988 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3990 * windows-nat.c (_initialize_windows_nat): Deprecate the
3991 "dll-symbols" command. Turn the "add-shared-symbol-files"
3992 and "assf" aliases into commands, and deprecate them as well.
3993 * NEWS: Add entry explaining that "dll-symbols" and its two
3994 aliases are now deprecated.
3996 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3998 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
3999 new-line in debug string. Remove trailing spaces.
4001 2014-02-19 Stan Shebs <stan@codesourcery.com>
4003 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4005 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4007 * NEWS: Add entry for the new feature
4008 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4011 2014-02-19 Stan Shebs <stan@codesourcery.com>
4013 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4015 2014-02-19 Pedro Alves <palves@redhat.com>
4017 * common/ptid.h (struct ptid): Mention that process_stratum
4018 targets should prefer ptid.lwp.
4020 2014-02-19 Pedro Alves <palves@redhat.com>
4022 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4023 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4024 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4025 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4026 store remote thread ids rather than ptid.tid.
4027 (_initialize_remote): Adjust.
4029 2014-02-19 Tom Tromey <tromey@redhat.com>
4031 * target.c (target_get_unwinder): Rewrite.
4032 (target_get_tailcall_unwinder): Rewrite.
4033 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4034 (record_btrace_to_get_tailcall_unwinder): New function.
4035 (init_record_btrace_ops): Update.
4036 * target.h (struct target_ops) <to_get_unwinder,
4037 to_get_tailcall_unwinder>: Now function pointers. Use
4038 TARGET_DEFAULT_RETURN.
4040 2014-02-19 Tom Tromey <tromey@redhat.com>
4042 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4044 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4046 2014-02-19 Tom Tromey <tromey@redhat.com>
4048 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4050 * target-delegates.c: Rebuild.
4051 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4052 TARGET_DEFAULT_FUNC.
4053 * target.c (default_target_decr_pc_after_break): Rename from
4054 forward_target_decr_pc_after_break. Simplify.
4055 (target_decr_pc_after_break): Rely on delegation.
4057 2014-02-19 Tom Tromey <tromey@redhat.com>
4059 * target.c (update_current_target): Do not INHERIT to_doc or
4060 to_magic. Do not de_fault to_open or to_close.
4062 2014-02-19 Tom Tromey <tromey@redhat.com>
4064 * gcore.h (objfile_find_memory_regions): Declare.
4065 * gcore.c (objfile_find_memory_regions): No longer static. Add
4067 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4068 * exec.c: Include gcore.h.
4069 (exec_set_find_memory_regions): Remove.
4070 (exec_find_memory_regions): Remove.
4071 (exec_do_find_memory_regions): Remove.
4072 (init_exec_ops): Update.
4073 * defs.h (exec_set_find_memory_regions): Remove.
4075 2014-02-19 Tom Tromey <tromey@redhat.com>
4077 * target-delegates.c: Rebuild.
4078 * target.h (struct target_ops) <to_extra_thread_info,
4079 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4080 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4081 not 0, in TARGET_DEFAULT_RETURN.
4083 2014-02-19 Tom Tromey <tromey@redhat.com>
4085 * target.c (complete_target_initialization): Remove casts. Use
4086 return_zero_has_execution.
4087 (return_zero): Add "ignore" argument.
4088 (return_zero_has_execution): New function.
4089 (init_dummy_target): Remove casts. Use
4090 return_zero_has_execution.
4092 2014-02-19 Tom Tromey <tromey@redhat.com>
4094 * target.c (update_current_target): Update comments. Do not
4097 2014-02-19 Tom Tromey <tromey@redhat.com>
4099 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4101 * corelow.c (core_read_description): Delegate when needed.
4102 * remote.c (remote_read_description): Delegate when needed.
4103 * target-delegates.c: Rebuild.
4104 * target.c (target_read_description): Rewrite.
4105 * target.h (struct target_ops) <to_read_description>: Update
4106 comment. Use TARGET_DEFAULT_RETURN.
4108 2014-02-19 Tom Tromey <tromey@redhat.com>
4110 * target-delegates.c: Rebuild.
4111 * target.c (update_current_target): Don't inherit or default
4113 (find_default_run_target): Check against delegate_can_run.
4114 * target.h (struct target_ops) <to_can_run>: Use
4115 TARGET_DEFAULT_RETURN.
4117 2014-02-19 Tom Tromey <tromey@redhat.com>
4119 * target-delegates.c: Rebuild.
4120 * target.c (target_disconnect): Unconditionally delegate.
4121 * target.h (struct target_ops) <to_disconnect>: Use
4122 TARGET_DEFAULT_NORETURN.
4124 2014-02-19 Tom Tromey <tromey@redhat.com>
4126 * record.c (record_stop): Unconditionally delegate.
4127 * target-delegates.c: Rebuild.
4128 * target.c (target_stop_recording): Unconditionally delegate.
4129 * target.h (struct target_ops) <to_stop_recording>: Use
4130 TARGET_DEFAULT_IGNORE.
4132 2014-02-19 Tom Tromey <tromey@redhat.com>
4134 * target-delegates.c: Rebuild.
4135 * target.c (target_enable_btrace): Unconditionally delegate.
4136 * target.h (struct target_ops) <to_enable_btrace>: Use
4137 TARGET_DEFAULT_NORETURN.
4139 2014-02-19 Tom Tromey <tromey@redhat.com>
4141 * target-delegates.c: Rebuild.
4142 * target.c (target_read_btrace): Unconditionally delegate.
4143 * target.h (struct target_ops) <to_read_btrace>: Use
4144 TARGET_DEFAULT_NORETURN.
4146 2014-02-19 Tom Tromey <tromey@redhat.com>
4148 * target-delegates.c: Rebuild.
4149 * target.c (target_teardown_btrace): Unconditionally delegate.
4150 * target.h (struct target_ops) <to_teardown_btrace>: Use
4151 TARGET_DEFAULT_NORETURN.
4153 2014-02-19 Tom Tromey <tromey@redhat.com>
4155 * target-delegates.c: Rebuild.
4156 * target.c (target_disable_btrace): Unconditionally delegate.
4157 * target.h (struct target_ops) <to_disable_btrace>: Use
4158 TARGET_DEFAULT_NORETURN.
4160 2014-02-19 Tom Tromey <tromey@redhat.com>
4162 * target-delegates.c: Rebuild.
4163 * target.c (default_search_memory): New function.
4164 (simple_search_memory): Update comment.
4165 (target_search_memory): Unconditionally delegate.
4166 * target.h (struct target_ops) <to_search_memory>: Use
4167 TARGET_DEFAULT_FUNC.
4169 2014-02-19 Tom Tromey <tromey@redhat.com>
4171 * auxv.c (default_auxv_parse): No longer static.
4172 (target_auxv_parse): Unconditionally delegate.
4173 * auxv.h (default_auxv_parse): Declare.
4174 * target-delegates.c: Rebuild.
4175 * target.c: Include auxv.h.
4176 * target.h (struct target_ops) <to_auxv_parse>: Use
4177 TARGET_DEFAULT_FUNC.
4179 2014-02-19 Tom Tromey <tromey@redhat.com>
4181 * target-delegates.c: Rebuild.
4182 * target.c (target_memory_map): Unconditionally delegate.
4183 * target.h (struct target_ops) <to_memory_map>: Use
4184 TARGET_DEFAULT_RETURN.
4186 2014-02-19 Tom Tromey <tromey@redhat.com>
4188 * target-delegates.c: Rebuild.
4189 * target.c (target_thread_alive): Unconditionally delegate.
4190 * target.h (struct target_ops) <to_thread_alive>: Use
4191 TARGET_DEFAULT_RETURN.
4193 2014-02-19 Tom Tromey <tromey@redhat.com>
4195 * target-delegates.c: Rebuild.
4196 * target.c (target_save_record): Unconditionally delegate.
4197 * target.h (struct target_ops) <to_save_record>: Use
4198 TARGET_DEFAULT_NORETURN.
4200 2014-02-19 Tom Tromey <tromey@redhat.com>
4202 * target-delegates.c: Rebuild.
4203 * target.c (target_delete_record): Unconditionally delegate.
4204 * target.h (struct target_ops) <to_delete_record>: Use
4205 TARGET_DEFAULT_NORETURN.
4207 2014-02-19 Tom Tromey <tromey@redhat.com>
4209 * target-delegates.c: Rebuild.
4210 * target.c (target_record_is_replaying): Unconditionally
4212 * target.h (struct target_ops) <to_record_is_replaying>: Use
4213 TARGET_DEFAULT_RETURN.
4215 2014-02-19 Tom Tromey <tromey@redhat.com>
4217 * target-delegates.c: Rebuild.
4218 * target.c (target_goto_record_begin): Unconditionally delegate.
4219 * target.h (struct target_ops) <to_goto_record_begin>: Use
4220 TARGET_DEFAULT_NORETURN.
4222 2014-02-19 Tom Tromey <tromey@redhat.com>
4224 * target-delegates.c: Rebuild.
4225 * target.c (target_goto_record_end): Unconditionally delegate.
4226 * target.h (struct target_ops) <to_goto_record_end>: Use
4227 TARGET_DEFAULT_NORETURN.
4229 2014-02-19 Tom Tromey <tromey@redhat.com>
4231 * target-delegates.c: Rebuild.
4232 * target.c (target_goto_record): Unconditionally delegate.
4233 * target.h (struct target_ops) <to_goto_record>: Use
4234 TARGET_DEFAULT_NORETURN.
4236 2014-02-19 Tom Tromey <tromey@redhat.com>
4238 * target-delegates.c: Rebuild.
4239 * target.c (target_insn_history): Unconditionally delegate.
4240 * target.h (struct target_ops) <to_insn_history>: Use
4241 TARGET_DEFAULT_NORETURN.
4243 2014-02-19 Tom Tromey <tromey@redhat.com>
4245 * target-delegates.c: Rebuild.
4246 * target.c (target_insn_history_from): Unconditionally delegate.
4247 * target.h (struct target_ops) <to_insn_history_from>: Use
4248 TARGET_DEFAULT_NORETURN.
4250 2014-02-19 Tom Tromey <tromey@redhat.com>
4252 * target-delegates.c: Rebuild.
4253 * target.c (target_insn_history_range): Unconditionally delegate.
4254 * target.h (struct target_ops) <to_insn_history_range>: Use
4255 TARGET_DEFAULT_NORETURN.
4257 2014-02-19 Tom Tromey <tromey@redhat.com>
4259 * target-delegates.c: Rebuild.
4260 * target.c (target_call_history): Unconditionally delegate.
4261 * target.h (struct target_ops) <to_call_history>: Use
4262 TARGET_DEFAULT_NORETURN.
4264 2014-02-19 Tom Tromey <tromey@redhat.com>
4266 * target-delegates.c: Rebuild.
4267 * target.c (target_call_history_from): Unconditionally delegate.
4268 * target.h (struct target_ops) <to_call_history_from>: Use
4269 TARGET_DEFAULT_NORETURN.
4271 2014-02-19 Tom Tromey <tromey@redhat.com>
4273 * target-delegates.c: Rebuild.
4274 * target.c (target_call_history_range): Unconditionally delegate.
4275 * target.h (struct target_ops) <to_call_history_range>: Use
4276 TARGET_DEFAULT_NORETURN.
4278 2014-02-19 Tom Tromey <tromey@redhat.com>
4280 * target-delegates.c: Rebuild.
4281 * target.c (target_verify_memory): Unconditionally delegate.
4282 * target.h (struct target_ops) <to_verify_memory>: Use
4283 TARGET_DEFAULT_NORETURN.
4285 2014-02-19 Tom Tromey <tromey@redhat.com>
4287 * target-delegates.c: Rebuild.
4288 * target.c (target_core_of_thread): Unconditionally delegate.
4289 * target.h (struct target_ops) <to_core_of_thread>: Use
4290 TARGET_DEFAULT_RETURN.
4292 2014-02-19 Tom Tromey <tromey@redhat.com>
4294 * target-delegates.c: Rebuild.
4295 * target.c (target_flash_done): Unconditionally delegate.
4296 * target.h (struct target_ops) <to_flash_done>: Use
4297 TARGET_DEFAULT_NORETURN.
4299 2014-02-19 Tom Tromey <tromey@redhat.com>
4301 * target-delegates.c: Rebuild.
4302 * target.c (target_flash_erase): Unconditionally delegate.
4303 * target.h (struct target_ops) <to_flash_erase>: Use
4304 TARGET_DEFAULT_NORETURN.
4306 2014-02-19 Tom Tromey <tromey@redhat.com>
4308 * target-delegates.c: Rebuild.
4309 * target.c (target_get_section_table): Unconditionally delegate.
4310 * target.h (struct target_ops) <to_get_section_table>: Use
4311 TARGET_DEFAULT_RETURN.
4313 2014-02-19 Tom Tromey <tromey@redhat.com>
4315 * target-delegates.c: Rebuild.
4316 * target.c (target_pid_to_str): Unconditionally delegate.
4317 (init_dummy_target): Don't initialize to_pid_to_str.
4318 (default_pid_to_str): Rename from dummy_pid_to_str.
4319 * target.h (struct target_ops) <to_pid_to_str>: Use
4320 TARGET_DEFAULT_FUNC.
4322 2014-02-19 Tom Tromey <tromey@redhat.com>
4324 * target-delegates.c: Rebuild.
4325 * target.c (target_find_new_threads): Unconditionally delegate.
4326 * target.h (struct target_ops) <to_find_new_threads>: Use
4327 TARGET_DEFAULT_RETURN.
4329 2014-02-19 Tom Tromey <tromey@redhat.com>
4331 * target-delegates.c: Rebuild.
4332 * target.c (target_program_signals): Unconditionally delegate.
4333 * target.h (struct target_ops) <to_program_signals>: Use
4334 TARGET_DEFAULT_IGNORE.
4336 2014-02-19 Tom Tromey <tromey@redhat.com>
4338 * target-delegates.c: Rebuild.
4339 * target.c (target_pass_signals): Unconditionally delegate.
4340 * target.h (struct target_ops) <to_pass_signals>: Use
4341 TARGET_DEFAULT_IGNORE.
4343 2014-02-19 Tom Tromey <tromey@redhat.com>
4345 * target-delegates.c: Rebuild.
4346 * target.c (default_mourn_inferior): New function.
4347 (target_mourn_inferior): Unconditionally delegate.
4348 * target.h (struct target_ops) <to_mourn_inferior>: Use
4349 TARGET_DEFAULT_FUNC.
4351 2014-02-19 Tom Tromey <tromey@redhat.com>
4353 * target-delegates.c: Rebuild.
4354 * target.c (default_follow_fork): New function.
4355 (target_follow_fork): Unconditionally delegate.
4356 * target.h (struct target_ops) <to_follow_fork>: Use
4357 TARGET_DEFAULT_FUNC.
4359 2014-02-19 Tom Tromey <tromey@redhat.com>
4361 * target-delegates.c: Rebuild.
4362 * target.c (target_kill): Unconditionally delegate.
4363 * target.h (struct target_ops) <to_kill>: Use
4364 TARGET_DEFAULT_NORETURN.
4366 2014-02-19 Tom Tromey <tromey@redhat.com>
4368 * target-delegates.c: Rebuild.
4369 * target.c (target_masked_watch_num_registers): Unconditionally
4371 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4372 Use TARGET_DEFAULT_RETURN.
4374 2014-02-19 Tom Tromey <tromey@redhat.com>
4376 * target-delegates.c: Rebuild.
4377 * target.c (target_remove_mask_watchpoint): Unconditionally
4379 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4380 TARGET_DEFAULT_RETURN.
4382 2014-02-19 Tom Tromey <tromey@redhat.com>
4384 * target-delegates.c: Rebuild.
4385 * target.c (target_insert_mask_watchpoint): Unconditionally
4387 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4388 TARGET_DEFAULT_RETURN.
4390 2014-02-19 Tom Tromey <tromey@redhat.com>
4392 * target-delegates.c: Rebuild.
4393 * target.c (target_ranged_break_num_registers): Unconditionally
4395 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4396 Use TARGET_DEFAULT_RETURN.
4398 2014-02-19 Tom Tromey <tromey@redhat.com>
4400 * target-delegates.c: Rebuild.
4401 * target.c (target_fetch_registers): Unconditionally delegate.
4402 * target.h (struct target_ops) <to_fetch_registers>: Use
4403 TARGET_DEFAULT_NORETURN.
4405 2014-02-19 Tom Tromey <tromey@redhat.com>
4407 * target-delegates.c: Rebuild.
4408 * target.c (update_current_target): Don't inherit or default
4410 * target.h (struct target_ops) <to_stop>: Use
4411 TARGET_DEFAULT_IGNORE.
4413 2014-02-19 Tom Tromey <tromey@redhat.com>
4415 * target-delegates.c: Rebuild.
4416 * target.c (update_current_target): Don't inherit or default
4417 to_can_run_breakpoint_commands.
4418 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4419 Use TARGET_DEFAULT_RETURN.
4421 2014-02-19 Tom Tromey <tromey@redhat.com>
4423 * target-delegates.c: Rebuild.
4424 * target.c (update_current_target): Don't inherit or default
4425 to_supports_evaluation_of_breakpoint_conditions.
4426 * target.h (struct target_ops)
4427 <to_supports_evaluation_of_breakpoint_conditions>: Use
4428 TARGET_DEFAULT_RETURN.
4430 2014-02-19 Tom Tromey <tromey@redhat.com>
4432 * target-delegates.c: Rebuild.
4433 * target.c (update_current_target): Don't inherit or default
4434 to_augmented_libraries_svr4_read.
4435 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4436 Use TARGET_DEFAULT_RETURN.
4438 2014-02-19 Tom Tromey <tromey@redhat.com>
4440 * target-delegates.c: Rebuild.
4441 * target.c (update_current_target): Don't inherit or default
4443 * target.h (struct target_ops) <to_can_use_agent>: Use
4444 TARGET_DEFAULT_RETURN.
4446 2014-02-19 Tom Tromey <tromey@redhat.com>
4448 * target-delegates.c: Rebuild.
4449 * target.c (update_current_target): Don't inherit or default
4451 * target.h (struct target_ops) <to_use_agent>: Use
4452 TARGET_DEFAULT_NORETURN.
4454 2014-02-19 Tom Tromey <tromey@redhat.com>
4456 * target-delegates.c: Rebuild.
4457 * target.c (update_current_target): Don't inherit or default
4459 (return_null): Remove.
4460 * target.h (struct target_ops) <to_traceframe_info>: Use
4461 TARGET_DEFAULT_RETURN.
4463 2014-02-19 Tom Tromey <tromey@redhat.com>
4465 * target-delegates.c: Rebuild.
4466 * target.c (update_current_target): Don't inherit or default
4467 to_static_tracepoint_markers_by_strid.
4468 * target.h (struct target_ops)
4469 <to_static_tracepoint_markers_by_strid>: Use
4470 TARGET_DEFAULT_NORETURN.
4472 2014-02-19 Tom Tromey <tromey@redhat.com>
4474 * target-delegates.c: Rebuild.
4475 * target.c (update_current_target): Don't inherit or default
4476 to_static_tracepoint_marker_at.
4477 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4478 Use TARGET_DEFAULT_RETURN.
4480 2014-02-19 Tom Tromey <tromey@redhat.com>
4482 * target-delegates.c: Rebuild.
4483 * target.c (update_current_target): Don't inherit or default
4485 * target.h (struct target_ops) <to_set_permissions>: Use
4486 TARGET_DEFAULT_IGNORE.
4488 2014-02-19 Tom Tromey <tromey@redhat.com>
4490 * target-delegates.c: Rebuild.
4491 * target.c (update_current_target): Don't inherit or default
4493 * target.h (struct target_ops) <to_get_tib_address>: Use
4494 TARGET_DEFAULT_NORETURN.
4496 2014-02-19 Tom Tromey <tromey@redhat.com>
4498 * target-delegates.c: Rebuild.
4499 * target.c (update_current_target): Don't inherit or default
4501 * target.h (struct target_ops) <to_set_trace_notes>: Use
4502 TARGET_DEFAULT_RETURN.
4504 2014-02-19 Tom Tromey <tromey@redhat.com>
4506 * target-delegates.c: Rebuild.
4507 * target.c (update_current_target): Don't initialize
4508 to_set_trace_buffer_size.
4509 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4510 TARGET_DEFAULT_IGNORE.
4512 2014-02-19 Tom Tromey <tromey@redhat.com>
4514 * target-delegates.c: Rebuild.
4515 * target.c (update_current_target): Don't inherit or default
4516 to_set_circular_trace_buffer.
4517 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4518 TARGET_DEFAULT_IGNORE.
4520 2014-02-19 Tom Tromey <tromey@redhat.com>
4522 * target-delegates.c: Rebuild.
4523 * target.c (update_current_target): Don't inherit or default
4524 to_set_disconnected_tracing.
4525 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4526 TARGET_DEFAULT_IGNORE.
4528 2014-02-19 Tom Tromey <tromey@redhat.com>
4530 * target-delegates.c: Rebuild.
4531 * target.c (update_current_target): Don't inherit or default
4532 to_get_min_fast_tracepoint_insn_len.
4533 (return_minus_one): Remove.
4534 * target.h (struct target_ops)
4535 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4537 2014-02-19 Tom Tromey <tromey@redhat.com>
4539 * target-delegates.c: Rebuild.
4540 * target.c (update_current_target): Don't inherit or default
4541 to_get_raw_trace_data.
4542 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4543 TARGET_DEFAULT_NORETURN.
4545 2014-02-19 Tom Tromey <tromey@redhat.com>
4547 * target-delegates.c: Rebuild.
4548 * target.c (update_current_target): Don't inherit or default
4549 to_upload_trace_state_variables.
4550 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4551 Use TARGET_DEFAULT_RETURN.
4553 2014-02-19 Tom Tromey <tromey@redhat.com>
4555 * target-delegates.c: Rebuild.
4556 * target.c (update_current_target): Don't inherit or default
4557 to_upload_tracepoints.
4558 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4559 TARGET_DEFAULT_RETURN.
4561 2014-02-19 Tom Tromey <tromey@redhat.com>
4563 * target-delegates.c: Rebuild.
4564 * target.c (update_current_target): Don't inherit or default
4566 * target.h (struct target_ops) <to_save_trace_data>: Use
4567 TARGET_DEFAULT_NORETURN.
4569 2014-02-19 Tom Tromey <tromey@redhat.com>
4571 * target-delegates.c: Rebuild.
4572 * target.c (update_current_target): Don't inherit or default
4573 to_get_trace_state_variable_value.
4574 * target.h (struct target_ops)
4575 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4577 2014-02-19 Tom Tromey <tromey@redhat.com>
4579 * target-delegates.c: Rebuild.
4580 * target.c (update_current_target): Don't inherit or default
4582 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4584 2014-02-19 Tom Tromey <tromey@redhat.com>
4586 * target-delegates.c: Rebuild.
4587 * target.c (update_current_target): Don't inherit or default
4589 * target.h (struct target_ops) <to_trace_stop>: Use
4590 TARGET_DEFAULT_NORETURN.
4592 2014-02-19 Tom Tromey <tromey@redhat.com>
4594 * target-delegates.c: Rebuild.
4595 * target.c (update_current_target): Don't inherit or default
4596 to_get_tracepoint_status.
4597 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4598 TARGET_DEFAULT_NORETURN.
4600 2014-02-19 Tom Tromey <tromey@redhat.com>
4602 * target-delegates.c: Rebuild.
4603 * target.c (update_current_target): Don't inherit or default
4604 to_get_trace_status.
4605 * target.h (struct target_ops) <to_get_trace_status>: Use
4606 TARGET_DEFAULT_RETURN.
4608 2014-02-19 Tom Tromey <tromey@redhat.com>
4610 * target-delegates.c: Rebuild.
4611 * target.c (update_current_target): Don't inherit or default
4613 * target.h (struct target_ops) <to_trace_start>: Use
4614 TARGET_DEFAULT_NORETURN.
4616 2014-02-19 Tom Tromey <tromey@redhat.com>
4618 * target-delegates.c: Rebuild.
4619 * target.c (update_current_target): Don't inherit or default
4620 to_trace_set_readonly_regions.
4621 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4622 Use TARGET_DEFAULT_NORETURN.
4624 2014-02-19 Tom Tromey <tromey@redhat.com>
4626 * target-delegates.c: Rebuild.
4627 * target.c (update_current_target): Don't inherit or default
4628 to_disable_tracepoint.
4629 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4630 TARGET_DEFAULT_NORETURN.
4632 2014-02-19 Tom Tromey <tromey@redhat.com>
4634 * target-delegates.c: Rebuild.
4635 * target.c (update_current_target): Don't inherit or default
4636 to_enable_tracepoint.
4637 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4638 TARGET_DEFAULT_NORETURN.
4640 2014-02-19 Tom Tromey <tromey@redhat.com>
4642 * target-delegates.c: Rebuild.
4643 * target.c (update_current_target): Don't inherit or default
4644 to_download_trace_state_variable.
4645 * target.h (struct target_ops) <to_download_trace_state_variable>:
4646 Use TARGET_DEFAULT_NORETURN.
4648 2014-02-19 Tom Tromey <tromey@redhat.com>
4650 * target-delegates.c: Rebuild.
4651 * target.c (update_current_target): Don't inherit or default
4652 to_can_download_tracepoint.
4653 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4654 TARGET_DEFAULT_RETURN.
4656 2014-02-19 Tom Tromey <tromey@redhat.com>
4658 * target-delegates.c: Rebuild.
4659 * target.c (update_current_target): Don't inherit or default
4660 to_download_tracepoint.
4661 * target.h (struct target_ops) <to_download_tracepoint>: Use
4662 TARGET_DEFAULT_NORETURN.
4664 2014-02-19 Tom Tromey <tromey@redhat.com>
4666 * target-delegates.c: Rebuild.
4667 * target.c (update_current_target): Don't inherit or default
4669 * target.h (struct target_ops) <to_trace_init>: Use
4670 TARGET_DEFAULT_RETURN.
4672 2014-02-19 Tom Tromey <tromey@redhat.com>
4674 * target-delegates.c: Rebuild.
4675 * target.c (update_current_target): Don't inherit or default
4676 to_supports_string_tracing.
4677 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4678 TARGET_DEFAULT_RETURN.
4680 2014-02-19 Tom Tromey <tromey@redhat.com>
4682 * target-delegates.c: Rebuild.
4683 * target.c (update_current_target): Don't inherit or default
4684 to_supports_enable_disable_tracepoint.
4685 * target.h (struct target_ops)
4686 <to_supports_enable_disable_tracepoint>: Use
4687 TARGET_DEFAULT_RETURN.
4689 2014-02-19 Tom Tromey <tromey@redhat.com>
4691 * target-delegates.c: Rebuild.
4692 * target.c (update_current_target): Don't inherit or default
4693 to_supports_multi_process.
4694 * target.h (struct target_ops) <to_supports_multi_process>: Use
4695 TARGET_DEFAULT_RETURN.
4697 2014-02-19 Tom Tromey <tromey@redhat.com>
4699 * target-delegates.c: Rebuild.
4700 * target.c (update_current_target): Don't inherit or default
4701 to_get_ada_task_ptid.
4702 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4703 TARGET_DEFAULT_FUNC.
4705 2014-02-19 Tom Tromey <tromey@redhat.com>
4707 * target-delegates.c: Rebuild.
4708 * target.c (update_current_target): Don't inherit or default
4709 to_thread_architecture.
4710 * target.h (struct target_ops) <to_thread_architecture>: Use
4711 TARGET_DEFAULT_FUNC.
4713 2014-02-19 Tom Tromey <tromey@redhat.com>
4715 * target-delegates.c: Rebuild.
4716 * target.c (update_current_target): Don't inherit or default
4717 to_execution_direction.
4718 * target.h (struct target_ops) <to_execution_direction>: Use
4719 TARGET_DEFAULT_FUNC.
4721 2014-02-19 Tom Tromey <tromey@redhat.com>
4723 * target-delegates.c: Rebuild.
4724 * target.c (update_current_target): Don't inherit or default
4725 to_can_execute_reverse.
4726 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4727 TARGET_DEFAULT_RETURN.
4728 (target_can_execute_reverse): Unconditionally delegate.
4730 2014-02-19 Tom Tromey <tromey@redhat.com>
4732 * target-delegates.c: Rebuild.
4733 * target.c (update_current_target): Don't inherit or default
4735 (dummy_goto_bookmark): Remove.
4736 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4737 * target.h (struct target_ops) <to_goto_bookmark>: Use
4738 TARGET_DEFAULT_NORETURN.
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
4745 (dummy_get_bookmark): Remove.
4746 (init_dummy_target): Don't inherit or default to_get_bookmark.
4747 * target.h (struct target_ops) <to_get_bookmark>: Use
4748 TARGET_DEFAULT_NORETURN
4750 2014-02-19 Tom Tromey <tromey@redhat.com>
4752 * target-delegates.c: Rebuild.
4753 * target.c (update_current_target): Don't inherit or default
4754 to_make_corefile_notes.
4755 (init_dummy_target): Don't initialize to_make_corefile_notes.
4756 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4757 TARGET_DEFAULT_FUNC.
4759 2014-02-19 Tom Tromey <tromey@redhat.com>
4761 * target-delegates.c: Rebuild.
4762 * target.c (update_current_target): Don't inherit or default
4763 to_find_memory_regions.
4764 (init_dummy_target): Don't initialize to_find_memory_regions.
4765 * target.h (struct target_ops) <to_find_memory_regions>: Use
4766 TARGET_DEFAULT_FUNC.
4768 2014-02-19 Tom Tromey <tromey@redhat.com>
4770 * target-delegates.c: Rebuild.
4771 * target.c (update_current_target): Don't inherit or default
4773 * target.h (struct target_ops) <to_log_command>: Use
4774 TARGET_DEFAULT_IGNORE.
4775 (target_log_command): Unconditionally delegate.
4777 2014-02-19 Tom Tromey <tromey@redhat.com>
4779 * target-delegates.c: Rebuild.
4780 * target.c (update_current_target): Don't inherit or default
4781 to_pid_to_exec_file.
4782 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4783 TARGET_DEFAULT_RETURN.
4785 2014-02-19 Tom Tromey <tromey@redhat.com>
4787 * target-delegates.c: Rebuild.
4788 * target.c (update_current_target): Don't inherit or default
4790 (target_thread_name): Unconditionally delegate.
4791 * target.h (struct target_ops) <to_thread_name>: Use
4792 TARGET_DEFAULT_RETURN.
4794 2014-02-19 Tom Tromey <tromey@redhat.com>
4796 * target-delegates.c: Rebuild.
4797 * target.c (update_current_target): Don't inherit or default
4798 to_extra_thread_info.
4799 * target.h (struct target_ops) <to_extra_thread_info>: Use
4800 TARGET_DEFAULT_RETURN.
4802 2014-02-19 Tom Tromey <tromey@redhat.com>
4804 * target-delegates.c: Rebuild.
4805 * target.c (update_current_target): Don't inherit or default
4807 * target.h (struct target_ops) <to_has_exited>: Use
4808 TARGET_DEFAULT_RETURN..
4810 2014-02-19 Tom Tromey <tromey@redhat.com>
4812 * target-delegates.c: Rebuild.
4813 * target.c (update_current_target): Don't inherit or default
4814 to_set_syscall_catchpoint.
4815 (return_one): Remove.
4816 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4817 TARGET_DEFAULT_RETURN.
4819 2014-02-19 Tom Tromey <tromey@redhat.com>
4821 * target-delegates.c: Rebuild.
4822 * target.c (update_current_target): Don't inherit or default
4823 to_insert_exec_catchpoint.
4824 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4825 TARGET_DEFAULT_RETURN.
4827 2014-01-08 Tom Tromey <tromey@redhat.com>
4829 * target-delegates.c: Rebuild.
4830 * target.c (update_current_target): Don't inherit or default
4831 to_insert_exec_catchpoint.
4832 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4833 TARGET_DEFAULT_RETURN.
4835 2014-02-19 Tom Tromey <tromey@redhat.com>
4837 * target-delegates.c: Rebuild.
4838 * target.c (update_current_target): Don't inherit or default
4839 to_remove_vfork_catchpoint.
4840 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4841 TARGET_DEFAULT_RETURN.
4843 2014-02-19 Tom Tromey <tromey@redhat.com>
4845 * target-delegates.c: Rebuild.
4846 * target.c (update_current_target): Don't inherit or default
4847 to_insert_vfork_catchpoint.
4848 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4849 TARGET_DEFAULT_RETURN.
4851 2014-02-19 Tom Tromey <tromey@redhat.com>
4853 * target-delegates.c: Rebuild.
4854 * target.c (update_current_target): Don't inherit or default
4855 to_remove_fork_catchpoint.
4856 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4857 TARGET_DEFAULT_RETURN.
4859 2014-02-19 Tom Tromey <tromey@redhat.com>
4861 * target-delegates.c: Rebuild.
4862 * target.c (update_current_target): Don't inherit or default
4863 to_insert_fork_catchpoint.
4864 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4865 TARGET_DEFAULT_RETURN.
4867 2014-02-19 Tom Tromey <tromey@redhat.com>
4869 * target-delegates.c: Rebuild.
4870 * target.c (update_current_target): Don't inherit or default
4871 to_post_startup_inferior.
4872 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4873 TARGET_DEFAULT_IGNORE.
4875 2014-02-19 Tom Tromey <tromey@redhat.com>
4877 * target-delegates.c: Rebuild.
4878 * target.c (update_current_target): Don't inherit or default
4880 * target.h (struct target_ops) <to_load>: Use
4881 TARGET_DEFAULT_NORETURN.
4883 2014-02-19 Tom Tromey <tromey@redhat.com>
4885 * target-delegates.c: Rebuild.
4886 * target.c (update_current_target): Don't inherit or default
4888 * target.h (struct target_ops) <to_terminal_info>: Use
4889 TARGET_DEFAULT_FUNC.
4891 2014-02-19 Tom Tromey <tromey@redhat.com>
4893 * target-delegates.c: Rebuild.
4894 * target.c (update_current_target): Don't inherit or default
4895 to_terminal_save_ours.
4896 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4897 TARGET_DEFAULT_IGNORE.
4899 2014-02-19 Tom Tromey <tromey@redhat.com>
4901 * target-delegates.c: Rebuild.
4902 * target.c (update_current_target): Don't inherit or default
4904 * target.h (struct target_ops) <to_terminal_ours>: Use
4905 TARGET_DEFAULT_IGNORE.
4907 2014-02-19 Tom Tromey <tromey@redhat.com>
4909 * target-delegates.c: Rebuild.
4910 * target.c (update_current_target): Don't inherit or default
4911 to_terminal_ours_for_output.
4912 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4913 TARGET_DEFAULT_IGNORE.
4915 2014-02-19 Tom Tromey <tromey@redhat.com>
4917 * target-delegates.c: Rebuild.
4918 * target.c (update_current_target): Don't inherit or default
4919 to_terminal_inferior.
4920 * target.h (struct target_ops) <to_terminal_inferior>: Use
4921 TARGET_DEFAULT_IGNORE.
4923 2014-02-19 Tom Tromey <tromey@redhat.com>
4925 * target-delegates.c: Rebuild.
4926 * target.c (update_current_target): Don't inherit or default
4928 * target.h (struct target_ops) <to_terminal_init>: Use
4929 TARGET_DEFAULT_IGNORE.
4931 2014-02-19 Tom Tromey <tromey@redhat.com>
4933 * target-delegates.c: Rebuild.
4934 * target.c (update_current_target): Don't inherit or default
4935 to_can_accel_watchpoint_condition.
4936 * target.h (struct target_ops)
4937 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4939 2014-02-19 Tom Tromey <tromey@redhat.com>
4941 * target-delegates.c: Rebuild.
4942 * target.c (update_current_target): Don't inherit or default
4943 to_region_ok_for_hw_watchpoint.
4944 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4945 Use TARGET_DEFAULT_FUNC.
4947 2014-02-19 Tom Tromey <tromey@redhat.com>
4949 * target-delegates.c: Rebuild.
4950 * target.c (update_current_target): Don't inherit or default
4951 to_watchpoint_addr_within_range.
4952 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4953 Use TARGET_DEFAULT_FUNC.
4955 2014-02-19 Tom Tromey <tromey@redhat.com>
4957 * target-delegates.c: Rebuild.
4958 * target.c (update_current_target): Don't inherit or default
4959 to_remove_watchpoint.
4960 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4961 TARGET_DEFAULT_NORETURN.
4963 2014-02-19 Tom Tromey <tromey@redhat.com>
4965 * target-delegates.c: Rebuild.
4966 * target.c (update_current_target): Don't inherit or default
4967 to_insert_watchpoint.
4968 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4969 TARGET_DEFAULT_RETURN.
4971 2014-02-19 Tom Tromey <tromey@redhat.com>
4973 * target-delegates.c: Rebuild.
4974 * target.c (update_current_target): Don't inherit or default
4975 to_remove_hw_breakpoint.
4976 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
4977 TARGET_DEFAULT_RETURN.
4979 2014-02-19 Tom Tromey <tromey@redhat.com>
4981 * target-delegates.c: Rebuild.
4982 * target.c (update_current_target): Don't inherit or default
4983 to_insert_hw_breakpoint.
4984 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
4985 TARGET_DEFAULT_RETURN.
4987 2014-02-19 Tom Tromey <tromey@redhat.com>
4989 * target-delegates.c: Rebuild.
4990 * target.c (update_current_target): Don't inherit or default
4991 to_can_use_hw_breakpoint.
4992 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
4993 TARGET_DEFAULT_RETURN.
4995 2014-02-19 Tom Tromey <tromey@redhat.com>
4997 * target-delegates.c: Rebuild.
4998 * target.c (update_current_target): Don't inherit or default
5000 * target.h (struct target_ops) <to_files_info>: Use
5001 TARGET_DEFAULT_IGNORE.
5003 2014-02-19 Tom Tromey <tromey@redhat.com>
5005 * target-delegates.c: Rebuild.
5006 * target.c (update_current_target): Don't inherit or default
5008 * target.h (struct target_ops) <to_store>: Use
5009 TARGET_DEFAULT_NORETURN.
5011 2014-02-19 Tom Tromey <tromey@redhat.com>
5013 * target-delegates.c: Rebuild.
5014 * target.c (update_current_target): Don't inherit or default
5016 * target.h (struct target_ops) <to_post_attach>: Use
5017 TARGET_DEFAULT_IGNORE.
5019 2014-02-19 Tom Tromey <tromey@redhat.com>
5021 * target-delegates.c: Rebuild.
5022 * target.c (update_current_target): Don't inherit or default
5024 (default_rcmd): New function.
5025 (do_monitor_command): Unconditionally delegate.
5026 * target.h (struct target_ops) <to_rmcd>: Use
5027 TARGET_DEFAULT_FUNC.
5029 2014-02-19 Tom Tromey <tromey@redhat.com>
5031 * target-delegates.c: Rebuild.
5032 * target.c (init_dummy_target): Don't initialize to_attach.
5033 (target_attach): Unconditionally delegate.
5034 * target.h (struct target_ops) <to_attach>: Use
5035 TARGET_DEFAULT_FUNC.
5037 2014-02-19 Tom Tromey <tromey@redhat.com>
5039 * target-delegates.c: Rebuild.
5040 * target.c (target_detach): Unconditionally delegate.
5041 (init_dummy_target): Don't initialize to_detach.
5042 * target.h (struct target_ops) <to_detach>: Use
5043 TARGET_DEFAULT_IGNORE.
5045 2014-02-19 Tom Tromey <tromey@redhat.com>
5047 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5049 (target_augmented_libraries_svr4_read): Add argument.
5050 * target.c (update_current_target): Update.
5051 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5054 2014-02-19 Tom Tromey <tromey@redhat.com>
5056 * target.h (struct target_ops) <to_call_history_range>: Add
5058 * target.c (target_call_history_range): Add argument.
5059 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5061 (record_btrace_call_history_from): Update.
5063 2014-02-19 Tom Tromey <tromey@redhat.com>
5065 * target.h (struct target_ops) <to_call_history_from>: Add
5067 * target.c (target_call_history_from): Add argument.
5068 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5071 2014-02-19 Tom Tromey <tromey@redhat.com>
5073 * target.h (struct target_ops) <to_call_history>: Add argument.
5074 * target.c (target_call_history): Add argument.
5075 * record-btrace.c (record_btrace_call_history): Add 'self'
5078 2014-02-19 Tom Tromey <tromey@redhat.com>
5080 * target.h (struct target_ops) <to_insn_history_range>: Add
5082 * target.c (target_insn_history_range): Add argument.
5083 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5085 (record_btrace_insn_history_from): Update.
5087 2014-02-19 Tom Tromey <tromey@redhat.com>
5089 * target.h (struct target_ops) <to_insn_history_from>: Add
5091 * target.c (target_insn_history_from): Add argument.
5092 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5095 2014-02-19 Tom Tromey <tromey@redhat.com>
5097 * target.h (struct target_ops) <to_insn_history>: Add argument.
5098 * target.c (target_insn_history): Add argument.
5099 * record-btrace.c (record_btrace_insn_history): Add 'self'
5102 2014-02-19 Tom Tromey <tromey@redhat.com>
5104 * target.h (struct target_ops) <to_goto_record>: Add argument.
5105 * target.c (target_goto_record): Add argument.
5106 * record-full.c (record_full_goto): Add 'self' argument.
5107 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5109 2014-02-19 Tom Tromey <tromey@redhat.com>
5111 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5112 * target.c (target_goto_record_end): Add argument.
5113 * record-full.c (record_full_goto_end): Add 'self' argument.
5114 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5116 2014-02-19 Tom Tromey <tromey@redhat.com>
5118 * target.h (struct target_ops) <to_goto_record_begin>: Add
5120 * target.c (target_goto_record_begin): Add argument.
5121 * record-full.c (record_full_goto_begin): Add 'self' argument.
5122 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5125 2014-02-19 Tom Tromey <tromey@redhat.com>
5127 * target.h (struct target_ops) <to_record_is_replaying>: Add
5129 * target.c (target_record_is_replaying): Add argument.
5130 * record-full.c (record_full_is_replaying): Add 'self' argument.
5131 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5133 (record_btrace_xfer_partial, record_btrace_store_registers)
5134 (record_btrace_prepare_to_store, record_btrace_resume)
5135 (record_btrace_wait, record_btrace_decr_pc_after_break)
5136 (record_btrace_find_new_threads, record_btrace_thread_alive):
5139 2014-02-19 Tom Tromey <tromey@redhat.com>
5141 * target.h (struct target_ops) <to_delete_record>: Add argument.
5142 * target.c (target_delete_record): Add argument.
5143 * record-full.c (record_full_delete): Add 'self' argument.
5145 2014-02-19 Tom Tromey <tromey@redhat.com>
5147 * target.h (struct target_ops) <to_save_record>: Add argument.
5148 * target.c (target_save_record): Add argument.
5149 * record-full.c (record_full_save): Add 'self' argument.
5150 (record_full_save): Add 'self' argument.
5152 2014-02-19 Tom Tromey <tromey@redhat.com>
5154 * target.h (struct target_ops) <to_info_record>: Add argument.
5155 * target.c (target_info_record): Add argument.
5156 * record.c (info_record_command): Add argument.
5157 * record-full.c (record_full_info): Add 'self' argument.
5158 * record-btrace.c (record_btrace_info): Add 'self' argument.
5160 2014-02-19 Tom Tromey <tromey@redhat.com>
5162 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5163 * target.c (target_stop_recording): Add argument.
5164 * record.c (record_stop): Add argument.
5165 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5168 2014-02-19 Tom Tromey <tromey@redhat.com>
5170 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5171 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5172 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5174 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5175 (_initialize_amd64_linux_nat): Use it.
5176 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5177 (_initialize_i386_linux_nat): Use it.
5179 2014-02-19 Tom Tromey <tromey@redhat.com>
5181 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5182 * target.c (target_teardown_btrace): Add argument.
5183 * remote.c (remote_teardown_btrace): Add 'self' argument.
5184 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5186 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5189 2014-02-19 Tom Tromey <tromey@redhat.com>
5191 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5192 * target.c (target_disable_btrace): Add argument.
5193 * remote.c (remote_disable_btrace): Add 'self' argument.
5194 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5196 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5199 2014-02-19 Tom Tromey <tromey@redhat.com>
5201 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5202 * target.c (target_enable_btrace): Add argument.
5203 * remote.c (remote_enable_btrace): Add 'self' argument.
5204 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5206 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5209 2014-02-19 Tom Tromey <tromey@redhat.com>
5211 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5212 (target_can_use_agent): Add argument.
5213 * target.c (update_current_target): Update.
5214 * remote.c (remote_can_use_agent): Add 'self' argument.
5215 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5217 2014-02-19 Tom Tromey <tromey@redhat.com>
5219 * target.h (struct target_ops) <to_use_agent>: Add argument.
5220 (target_use_agent): Add argument.
5221 * target.c (update_current_target): Update.
5222 * remote.c (remote_use_agent): Add 'self' argument.
5223 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5225 2014-02-19 Tom Tromey <tromey@redhat.com>
5227 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5228 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5229 (target_traceframe_info): Add argument.
5230 * target.c (update_current_target): Update.
5231 * remote.c (remote_traceframe_info): Add 'self' argument.
5232 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5234 2014-02-19 Tom Tromey <tromey@redhat.com>
5236 * target.h (target_static_tracepoint_markers_by_strid): Add
5238 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5240 * target.c (update_current_target): Update.
5241 * remote.c (struct target_ops)
5242 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5243 * linux-nat.c (struct target_ops)
5244 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5246 2014-02-19 Tom Tromey <tromey@redhat.com>
5248 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5250 (target_static_tracepoint_marker_at): Add argument.
5251 * target.c (update_current_target): Update.
5252 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5255 2014-02-19 Tom Tromey <tromey@redhat.com>
5257 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5258 (target_set_permissions): Add argument.
5259 * target.c (update_current_target): Update.
5260 * remote.c (remote_set_permissions): Add 'self' argument.
5261 (remote_start_remote): Update.
5263 2014-02-19 Tom Tromey <tromey@redhat.com>
5265 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5266 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5267 (target_get_tib_address): Add argument.
5268 * target.c (update_current_target): Update.
5269 * remote.c (remote_get_tib_address): Add 'self' argument.
5271 2014-02-19 Tom Tromey <tromey@redhat.com>
5273 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5274 (target_set_trace_notes): Add argument.
5275 * target.c (update_current_target): Update.
5276 * remote.c (remote_set_trace_notes): Add 'self' argument.
5278 2014-02-19 Tom Tromey <tromey@redhat.com>
5280 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5282 (target_set_trace_buffer_size): Add argument.
5283 * target.c (update_current_target): Update.
5284 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5286 2014-02-19 Tom Tromey <tromey@redhat.com>
5288 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5290 (target_set_circular_trace_buffer): Add argument.
5291 * target.c (update_current_target): Update.
5292 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5295 2014-02-19 Tom Tromey <tromey@redhat.com>
5297 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5299 (target_set_disconnected_tracing): Add argument.
5300 * target.c (update_current_target): Update.
5301 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5303 2014-02-19 Tom Tromey <tromey@redhat.com>
5305 * target.h (struct target_ops)
5306 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5307 (target_get_min_fast_tracepoint_insn_len): Add argument.
5308 * target.c (update_current_target): Update.
5309 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5312 2014-02-19 Tom Tromey <tromey@redhat.com>
5314 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5316 (target_get_raw_trace_data): Add argument.
5317 * target.c (update_current_target): Update.
5318 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5320 2014-02-19 Tom Tromey <tromey@redhat.com>
5322 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5324 (target_upload_trace_state_variables): Add argument.
5325 * target.c (update_current_target): Update.
5326 * remote.c (remote_upload_trace_state_variables): Add 'self'
5328 (remote_start_remote): Update.
5330 2014-02-19 Tom Tromey <tromey@redhat.com>
5332 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5334 (target_upload_tracepoints): Add argument.
5335 * target.c (update_current_target): Update.
5336 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5337 (remote_start_remote): Update.
5339 2014-02-19 Tom Tromey <tromey@redhat.com>
5341 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5342 (target_save_trace_data): Add argument.
5343 * target.c (update_current_target): Update.
5344 * remote.c (remote_save_trace_data): Add 'self' argument.
5346 2014-02-19 Tom Tromey <tromey@redhat.com>
5348 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5350 * target.h (struct target_ops)
5351 <to_get_trace_state_variable_value>: Add argument.
5352 (target_get_trace_state_variable_value): Add argument.
5353 * target.c (update_current_target): Update.
5354 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5356 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5358 2014-02-19 Tom Tromey <tromey@redhat.com>
5360 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5361 * target.h (struct target_ops) <to_trace_find>: Add argument.
5362 (target_trace_find): Add argument.
5363 * target.c (update_current_target): Update.
5364 * remote.c (remote_trace_find): Add 'self' argument.
5365 * ctf.c (ctf_trace_find): Add 'self' argument.
5367 2014-02-19 Tom Tromey <tromey@redhat.com>
5369 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5370 (target_trace_stop): Add argument.
5371 * target.c (update_current_target): Update.
5372 * remote.c (remote_trace_stop): Add 'self' argument.
5374 2014-02-19 Tom Tromey <tromey@redhat.com>
5376 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5377 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5379 (target_get_tracepoint_status): Add argument.
5380 * target.c (update_current_target): Update.
5381 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5383 2014-02-19 Tom Tromey <tromey@redhat.com>
5385 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5386 * target.h (struct target_ops) <to_get_trace_status>: Add
5388 (target_get_trace_status): Add argument.
5389 * target.c (update_current_target): Update.
5390 * remote.c (remote_get_trace_status): Add 'self' argument.
5391 (remote_start_remote, remote_can_download_tracepoint): Update.
5392 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5394 2014-02-19 Tom Tromey <tromey@redhat.com>
5396 * target.h (struct target_ops) <to_trace_start>: Add argument.
5397 (target_trace_start): Add argument.
5398 * target.c (update_current_target): Update.
5399 * remote.c (remote_trace_start): Add 'self' argument.
5401 2014-02-19 Tom Tromey <tromey@redhat.com>
5403 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5405 (target_trace_set_readonly_regions): Add argument.
5406 * target.c (update_current_target): Update.
5407 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5410 2014-02-19 Tom Tromey <tromey@redhat.com>
5412 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5414 (target_disable_tracepoint): Add argument.
5415 * target.c (update_current_target): Update.
5416 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5418 2014-02-19 Tom Tromey <tromey@redhat.com>
5420 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5422 (target_enable_tracepoint): Add argument.
5423 * target.c (update_current_target): Update.
5424 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5426 2014-02-19 Tom Tromey <tromey@redhat.com>
5428 * target.h (struct target_ops) <to_download_trace_state_variable>:
5430 (target_download_trace_state_variable): Add argument.
5431 * target.c (update_current_target): Update.
5432 * remote.c (remote_download_trace_state_variable): Add 'self'
5435 2014-02-19 Tom Tromey <tromey@redhat.com>
5437 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5439 (target_can_download_tracepoint): Add argument.
5440 * target.c (update_current_target): Update.
5441 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5443 2014-02-19 Tom Tromey <tromey@redhat.com>
5445 * target.h (struct target_ops) <to_download_tracepoint>: Add
5447 (target_download_tracepoint): Add argument.
5448 * target.c (update_current_target): Update.
5449 * remote.c (remote_download_tracepoint): Add 'self' argument.
5451 2014-02-19 Tom Tromey <tromey@redhat.com>
5453 * target.h (struct target_ops) <to_trace_init>: Add argument.
5454 (target_trace_init): Add argument.
5455 * target.c (update_current_target): Update.
5456 * remote.c (remote_trace_init): Add 'self' argument.
5458 2014-02-19 Tom Tromey <tromey@redhat.com>
5460 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5461 * target.c (target_fileio_readlink): Add argument.
5462 * remote.c (remote_hostio_readlink): Add 'self' argument.
5463 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5465 2014-02-19 Tom Tromey <tromey@redhat.com>
5467 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5468 * target.c (target_fileio_unlink): Add argument.
5469 * remote.c (remote_hostio_unlink): Add 'self' argument.
5470 (remote_file_delete): Update.
5471 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5473 2014-02-19 Tom Tromey <tromey@redhat.com>
5475 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5476 * target.c (target_fileio_close): Add argument.
5477 * remote.c (remote_hostio_close): Add 'self' argument.
5478 (remote_hostio_close_cleanup): Update.
5479 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5481 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5483 2014-02-19 Tom Tromey <tromey@redhat.com>
5485 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5486 * target.c (target_fileio_pread): Add argument.
5487 * remote.c (remote_hostio_pread): Add 'self' argument.
5488 (remote_bfd_iovec_pread, remote_file_get): Update.
5489 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5491 2014-02-19 Tom Tromey <tromey@redhat.com>
5493 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5494 * target.c (target_fileio_pwrite): Add argument.
5495 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5496 (remote_file_put): Update.
5497 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5499 2014-02-19 Tom Tromey <tromey@redhat.com>
5501 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5502 * target.c (target_fileio_open): Add argument.
5503 * remote.c (remote_hostio_open): Add 'self' argument.
5504 (remote_bfd_iovec_open): Add 'self' argument.
5505 (remote_file_put): Add 'self' argument.
5506 (remote_file_get): Add 'self' argument.
5507 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5509 2014-02-19 Tom Tromey <tromey@redhat.com>
5511 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5513 (target_can_run_breakpoint_commands): Add argument.
5514 * target.c (update_current_target): Update.
5515 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5517 (remote_insert_breakpoint): Add 'self' argument.
5518 (remote_insert_hw_breakpoint): Add 'self' argument.
5519 (remote_can_run_breakpoint_commands): Add 'self' argument.
5521 2014-02-19 Tom Tromey <tromey@redhat.com>
5523 * target.h (struct target_ops)
5524 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5525 (target_supports_evaluation_of_breakpoint_conditions): Add
5527 * target.c (update_current_target): Update.
5528 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5530 (remote_insert_breakpoint): Add 'self' argument.
5531 (remote_insert_hw_breakpoint): Add 'self' argument.
5532 (remote_supports_cond_breakpoints): Add 'self' argument.
5534 2014-02-19 Tom Tromey <tromey@redhat.com>
5536 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5538 (target_supports_string_tracing): Add argument.
5539 * target.c (update_current_target): Update.
5540 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5542 2014-02-19 Tom Tromey <tromey@redhat.com>
5544 * target.h (struct target_ops)
5545 <to_supports_disable_randomization>: Add argument.
5546 * target.c (find_default_supports_disable_randomization): Add
5548 (target_supports_disable_randomization): Add argument.
5549 (find_default_supports_disable_randomization): Add 'self'
5551 * remote.c (extended_remote_supports_disable_randomization): Add
5553 (remote_supports_disable_randomization): Add 'self' argument.
5554 (extended_remote_create_inferior): Update.
5555 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5558 2014-02-19 Tom Tromey <tromey@redhat.com>
5560 * target.h (struct target_ops)
5561 <to_supports_enable_disable_tracepoint>: Add argument.
5562 (target_supports_enable_disable_tracepoint): Add argument.
5563 * target.c (update_current_target): Update.
5564 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5567 2014-02-19 Tom Tromey <tromey@redhat.com>
5569 * target.h (struct target_ops) <to_supports_multi_process>: Add
5571 (target_supports_multi_process): Add argument.
5572 * target.c (update_current_target): Update.
5573 * remote.c (remote_supports_multi_process): Add 'self' argument.
5574 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5576 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5579 2014-02-19 Tom Tromey <tromey@redhat.com>
5581 * target.h (struct target_ops) <to_execution_direction>: Add
5583 (target_execution_direction): Add argument.
5584 * target.c (default_execution_direction): Add 'self' argument.
5585 * record-full.c (record_full_execution_direction): Add 'self'
5588 2014-02-19 Tom Tromey <tromey@redhat.com>
5590 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5592 (target_can_execute_reverse): Add argument.
5593 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5594 * record-full.c (record_full_can_execute_reverse): Add 'self'
5596 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5599 2014-02-19 Tom Tromey <tromey@redhat.com>
5601 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5602 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5604 (target_get_ada_task_ptid): Add argument.
5605 * target.c (update_current_target): Update.
5606 (default_get_ada_task_ptid): Add 'self' argument.
5607 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5608 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5609 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5611 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5613 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5615 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5617 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5618 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5621 2014-02-19 Tom Tromey <tromey@redhat.com>
5623 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5624 (target_goto_bookmark): Add argument.
5625 * target.c (dummy_goto_bookmark): Add 'self' argument.
5626 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5628 2014-02-19 Tom Tromey <tromey@redhat.com>
5630 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5631 (target_get_bookmark): Add argument.
5632 * target.c (dummy_get_bookmark): Add 'self' argument.
5633 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5635 2014-02-19 Tom Tromey <tromey@redhat.com>
5637 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5639 (target_make_corefile_notes): Add argument.
5640 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5641 * procfs.c (procfs_make_note_section): Add 'self' argument.
5642 (procfs_make_note_section): Add 'self' argument.
5643 (procfs_make_note_section): Add 'self' argument.
5644 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5646 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5647 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5648 * exec.c (exec_make_note_section): Add 'self' argument.
5649 (exec_make_note_section): Add 'self' argument.
5651 2014-02-19 Tom Tromey <tromey@redhat.com>
5653 * target.h (struct target_ops) <to_find_memory_regions>: Add
5655 (target_find_memory_regions): Add argument.
5656 * target.c (dummy_find_memory_regions): Add 'self' argument.
5657 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5658 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5659 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5660 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5661 * exec. (exec_do_find_memory_regions): New global.
5662 (exec_set_find_memory_regions): Rewrite.
5663 (exec_find_memory_regions): New function.
5664 (init_exec_ops): Use exec_find_memory_regions.
5666 2014-02-19 Tom Tromey <tromey@redhat.com>
5668 * target.h (struct target_ops) <to_supports_non_stop>: Add
5670 * target.c (find_default_supports_non_stop): Add argument.
5671 (target_supports_non_stop): Add argument.
5672 (find_default_supports_non_stop): Add 'self' argument.
5673 * remote.c (remote_supports_non_stop): Add 'self' argument.
5674 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5676 2014-02-19 Tom Tromey <tromey@redhat.com>
5678 * target.h (struct target_ops) <to_log_command>: Add argument.
5679 (target_log_command): Add argument.
5680 * serial.h (serial_log_command): Add 'self' argument.
5681 * serial.c (serial_log_command): Add 'self' argument.
5683 2014-02-19 Tom Tromey <tromey@redhat.com>
5685 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5686 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5688 (target_pid_to_exec_file): Add argument.
5689 * target.c (debug_to_pid_to_exec_file): Add argument.
5690 (update_current_target): Update.
5691 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5692 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5693 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5694 (linux_handle_extended_wait): Update.
5695 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5696 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5697 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5698 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5700 2014-02-19 Tom Tromey <tromey@redhat.com>
5702 * target.h (struct target_ops) <to_rcmd>: Add argument.
5703 (target_rcmd): Add argument.
5704 * target.c (debug_to_rcmd): Add argument.
5705 (update_current_target, do_monitor_command): Update.
5706 * remote.c (remote_rcmd): Add 'self' argument.
5707 * monitor.c (monitor_rcmd): Add 'self' argument.
5709 2014-02-19 Tom Tromey <tromey@redhat.com>
5711 * windows-nat.c (windows_stop): Add 'self' argument.
5712 * target.h (struct target_ops) <to_stop>: Add argument.
5713 * target.c (target_stop): Add argument.
5714 (debug_to_stop): Add argument.
5715 (update_current_target): Update.
5716 * remote.c (remote_stop): Add 'self' argument.
5717 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5718 (gdbsim_cntrl_c): Update.
5719 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5720 * procfs.c (procfs_stop): Add 'self' argument.
5721 * nto-procfs.c (procfs_stop): Add 'self' argument.
5722 * monitor.c (monitor_stop): Add 'self' argument.
5723 (monitor_open): Update.
5724 * linux-nat.c (linux_nat_stop): Add argument.
5725 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5726 * gnu-nat.c (gnu_stop): Add 'self' argument.
5727 * darwin-nat.c (darwin_stop): Add 'self' argument.
5729 2014-02-19 Tom Tromey <tromey@redhat.com>
5731 * target.h (struct target_ops) <to_thread_name>: Add argument.
5732 * target.c (target_thread_name): Add argument.
5733 (update_current_target): Update.
5734 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5736 2014-02-19 Tom Tromey <tromey@redhat.com>
5738 * target.h (struct target_ops) <to_extra_thread_info>: Add
5740 (target_extra_thread_info): Add argument.
5741 * target.c (update_current_target): Update.
5742 * remote.c (remote_threads_extra_info): Add 'self' argument.
5743 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5745 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5746 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5747 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5749 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5751 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5753 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5756 2014-02-19 Tom Tromey <tromey@redhat.com>
5758 * target.h (struct target_ops) <to_program_signals>: Add argument.
5759 * target.c (target_program_signals): Add argument.
5760 * remote.c (remote_program_signals): Add 'self' argument.
5762 2014-02-19 Tom Tromey <tromey@redhat.com>
5764 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5765 * target.c (target_pass_signals): Add argument.
5766 * remote.c (remote_pass_signals): Add 'self' argument.
5767 (remote_start_remote): Update.
5768 * procfs.c (procfs_pass_signals): Add 'self' argument.
5769 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5770 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5771 (linux_nat_create_inferior, linux_nat_attach): Update.
5773 2014-02-19 Tom Tromey <tromey@redhat.com>
5775 * windows-nat.c (windows_can_run): Add 'self' argument.
5776 * target.h (struct target_ops) <to_can_run>: Add argument.
5777 (target_can_run): Add argument.
5778 * target.c (debug_to_can_run): Add argument.
5779 (update_current_target): Update.
5780 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5781 * inf-child.c (inf_child_can_run): Add 'self' argument.
5782 * go32-nat.c (go32_can_run): Add 'self' argument.
5784 2014-02-19 Tom Tromey <tromey@redhat.com>
5786 * target.h (struct target_ops) <to_has_exited>: Add argument.
5787 (target_has_exited): Add argument.
5788 * target.c (debug_to_has_exited): Add argument.
5789 (update_current_target): Update.
5791 2014-02-19 Tom Tromey <tromey@redhat.com>
5793 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5795 (target_set_syscall_catchpoint): Add argument.
5796 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5798 * target.c (update_current_target): Update.
5800 2014-02-19 Tom Tromey <tromey@redhat.com>
5802 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5804 (target_remove_exec_catchpoint): Add argument.
5805 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5806 (update_current_target): Update.
5807 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5810 2014-02-19 Tom Tromey <tromey@redhat.com>
5812 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5814 (target_insert_exec_catchpoint): Add argument.
5815 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5816 (update_current_target): Update.
5817 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5820 2014-02-19 Tom Tromey <tromey@redhat.com>
5822 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5824 (target_remove_vfork_catchpoint): Add argument.
5825 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5826 (update_current_target): Update.
5827 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5830 2014-02-19 Tom Tromey <tromey@redhat.com>
5832 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5834 (target_insert_vfork_catchpoint): Add argument.
5835 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5836 (update_current_target): Update.
5837 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5840 2014-02-19 Tom Tromey <tromey@redhat.com>
5842 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5844 (target_remove_fork_catchpoint): Add argument.
5845 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5846 (update_current_target): Update.
5847 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5850 2014-02-19 Tom Tromey <tromey@redhat.com>
5852 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5854 (target_insert_fork_catchpoint): Add argument.
5855 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5856 (update_current_target): Update.
5857 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5860 2014-02-19 Tom Tromey <tromey@redhat.com>
5862 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5864 (target_post_startup_inferior): Add argument.
5865 * target.c (debug_to_post_startup_inferior): Add argument.
5866 (update_current_target): Update.
5867 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5869 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5871 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5873 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5875 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5877 (super_post_startup_inferior): Likewise.
5878 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5880 (super_post_startup_inferior): Likewise.
5881 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5882 Add 'self' argument.
5883 (super_post_startup_inferior): Likewise.
5885 2014-02-19 Tom Tromey <tromey@redhat.com>
5887 * target.h (struct target_ops) <to_load>: Add argument.
5888 * target.c (target_load): Add argument.
5889 (debug_to_load): Add argument.
5890 (update_current_target): Update.
5891 * remote.c (remote_load): Add 'self' argument.
5892 * remote-sim.c (gdbsim_load): Add 'self' argument.
5893 * remote-mips.c (mips_load): Add 'self' argument.
5894 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5895 * monitor.c (monitor_load): Add 'self' argument.
5896 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5898 2014-02-19 Tom Tromey <tromey@redhat.com>
5900 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5901 (target_terminal_info): Add argument.
5902 * target.c (debug_to_terminal_info): Add argument.
5903 (default_terminal_info): Likewise.
5904 * inflow.c (child_terminal_info): Add 'self' argument.
5905 * inferior.h (child_terminal_info): Add 'self' argument.
5906 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5908 2014-02-19 Tom Tromey <tromey@redhat.com>
5910 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5912 (target_terminal_save_ours): Add argument.
5913 * target.c (debug_to_terminal_save_ours): Add argument.
5914 (update_current_target): Update.
5915 * inflow.c (terminal_save_ours): Add 'self' argument.
5916 * inferior.h (terminal_save_ours): Add 'self' argument.
5918 2014-02-19 Tom Tromey <tromey@redhat.com>
5920 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5921 (target_terminal_ours): Add argument.
5922 * target.c (debug_to_terminal_ours): Add argument.
5923 (update_current_target): Update.
5924 * remote.c (remote_terminal_ours): Add 'self' argument.
5925 (remote_close): Update.
5926 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5927 * inflow.c (terminal_ours): Add 'self' argument.
5928 * inferior.h (terminal_ours): Add 'self' argument.
5929 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5931 2014-02-19 Pedro Alves <palves@redhat.com>
5932 Tom Tromey <tromey@redhat.com>
5934 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5936 (target_terminal_ours_for_output): Add argument.
5937 * target.c (debug_to_terminal_ours_for_output): Add argument.
5938 (update_current_target): Update.
5939 * inflow.c (terminal_ours_for_output): Add 'self' argument.
5940 * inferior.h (terminal_ours_for_output): Add 'self' argument.
5941 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5943 2014-02-19 Tom Tromey <tromey@redhat.com>
5945 * target.h (struct target_ops) <to_terminal_inferior>: Add
5947 * target.c (target_terminal_inferior): Add argument.
5948 (update_current_target): Update.
5949 * remote.c (remote_terminal_inferior): Add 'self' argument.
5950 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5951 * inflow.c (terminal_inferior): Add 'self' argument.
5952 * inferior.h (terminal_inferior): Add 'self' argument.
5953 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5954 (go32_terminal_inferior): Add 'self' argument.
5956 2014-02-19 Tom Tromey <tromey@redhat.com>
5958 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5959 (target_terminal_init): Add argument.
5960 * target.c (debug_to_terminal_init): Add argument.
5961 (update_current_target): Update.
5962 * inflow.c (terminal_init_inferior): Add 'self' argument.
5963 * inferior.h (terminal_init_inferior): Add 'self' argument.
5964 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5965 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5967 2014-02-19 Tom Tromey <tromey@redhat.com>
5969 * target.h (struct target_ops)
5970 <to_can_accel_watchpoint_condition>: Add argument.
5971 (target_can_accel_watchpoint_condition): Add argument.
5972 * target.c (debug_to_can_accel_watchpoint_condition): Add
5974 (update_current_target): Update.
5975 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
5978 2014-02-19 Tom Tromey <tromey@redhat.com>
5980 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5982 (target_region_ok_for_hw_watchpoint): Add argument.
5983 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
5984 (default_region_ok_for_hw_watchpoint): Add argument.
5985 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
5986 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
5988 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
5990 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
5992 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
5994 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
5996 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
5998 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
5999 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6001 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6002 Add 'self' argument.
6004 2014-02-19 Tom Tromey <tromey@redhat.com>
6006 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6008 (target_insert_watchpoint): Add argument.
6009 * target.c (debug_to_insert_watchpoint): Add argument.
6010 (update_current_target): Update.
6011 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6012 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6013 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6014 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6015 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6016 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6018 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6019 (procfs_insert_hw_watchpoint): Add 'self' argument.
6020 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6022 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6024 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6026 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6027 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6029 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6032 2014-02-19 Tom Tromey <tromey@redhat.com>
6034 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6036 (target_remove_watchpoint): Add argument.
6037 * target.c (debug_to_remove_watchpoint): Add argument.
6038 (update_current_target): Update.
6039 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6040 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6041 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6042 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6043 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6044 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6046 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6047 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6049 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6051 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6053 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6054 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6056 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6059 2014-02-19 Tom Tromey <tromey@redhat.com>
6061 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6063 (target_remove_hw_breakpoint): Add argument.
6064 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6065 (update_current_target): Update.
6066 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6067 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6069 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6070 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6072 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6075 2014-02-19 Tom Tromey <tromey@redhat.com>
6077 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6079 (target_insert_hw_breakpoint): Add argument.
6080 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6081 (update_current_target): Update.
6082 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6083 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6085 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6086 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6087 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6089 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6092 2014-02-19 Tom Tromey <tromey@redhat.com>
6094 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6096 (target_can_use_hardware_watchpoint): Add argument.
6097 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6098 (update_current_target): Update.
6099 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6101 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6103 * remote.c (remote_check_watch_resources): Add 'self' argument.
6104 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6105 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6107 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6108 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6110 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6112 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6114 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6116 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6118 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6120 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6121 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6123 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6126 2014-02-19 Tom Tromey <tromey@redhat.com>
6128 * target.h (struct target_ops) <to_post_attach>: Add argument.
6129 (target_post_attach): Add argument.
6130 * target.c (debug_to_post_attach): Add argument.
6131 (update_current_target): Update.
6132 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6133 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6134 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6135 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6136 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6138 2014-02-19 Tom Tromey <tromey@redhat.com>
6140 * windows-nat.c (windows_close): Add 'self' argument.
6141 * tracepoint.c (tfile_close): Add 'self' argument.
6142 * target.h (struct target_ops) <to_close>: Add argument.
6143 * target.c (target_close): Add argument.
6144 (update_current_target): Update.
6145 * remote.c (remote_close): Add 'self' argument.
6146 * remote-sim.c (gdbsim_close): Add 'self' argument.
6147 * remote-mips.c (mips_close): Add 'self' argument.
6148 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6149 * record-full.c (record_full_close): Add 'self' argument.
6150 * record-btrace.c (record_btrace_close): Add 'self' argument.
6151 * monitor.h (monitor_close): Add 'self' argument.
6152 * monitor.c (monitor_close): Add 'self' argument.
6153 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6154 * linux-nat.c (linux_nat_close): Add argument.
6155 * go32-nat.c (go32_close): Add 'self' argument.
6156 * exec.c (exec_close_1): Add 'self' argument.
6157 * ctf.c (ctf_close): Add 'self' argument.
6158 * corelow.c (core_close): Add 'self' argument.
6159 (core_close_cleanup): Update.
6160 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6161 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6163 2014-02-19 Tom Tromey <tromey@redhat.com>
6165 * remote.c (remote_load): New function.
6166 (init_remote_ops): Use it.
6168 2014-02-19 Tom Tromey <tromey@redhat.com>
6170 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6172 * common/linux-btrace.h (linux_supports_btrace): Update.
6173 * remote.c (remote_supports_btrace): Add "self" argument.
6174 * target-delegates.c: Rebuild.
6175 * target.c (target_supports_btrace): Remove.
6176 * target.h (struct target_ops) <to_supports_btrace>: Add
6177 target_ops argument.
6178 (target_supports_btrace): New define.
6180 2014-02-19 Tom Tromey <tromey@redhat.com>
6182 * record-full.c (record_full_beneath_to_resume_ops)
6183 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6184 (record_full_beneath_to_wait)
6185 (record_full_beneath_to_store_registers_ops)
6186 (record_full_beneath_to_store_registers)
6187 (record_full_beneath_to_xfer_partial_ops)
6188 (record_full_beneath_to_xfer_partial)
6189 (record_full_beneath_to_insert_breakpoint_ops)
6190 (record_full_beneath_to_insert_breakpoint)
6191 (record_full_beneath_to_remove_breakpoint_ops)
6192 (record_full_beneath_to_remove_breakpoint)
6193 (record_full_beneath_to_stopped_by_watchpoint)
6194 (record_full_beneath_to_stopped_data_address)
6195 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6196 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6197 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6198 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6199 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6200 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6201 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6202 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6203 (record_full_resume, record_full_wait_1)
6204 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6205 (record_full_store_registers, record_full_xfer_partial)
6206 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6207 (record_full_async, record_full_core_xfer_partial): Use target
6209 * target-delegates.c: Rebuild.
6210 * target.c (current_xfer_partial): Remove.
6211 (update_current_target): Do not INHERIT or de_fault
6212 to_insert_breakpoint, to_remove_breakpoint,
6213 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6214 to_is_async_p, to_async. Do not set to_xfer_partial field.
6215 (default_xfer_partial): Simplify.
6216 (current_xfer_partial): Remove.
6217 (target_wait, target_resume): Simplify.
6218 (find_default_can_async_p, find_default_is_async_p): Update.
6219 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6220 to_xfer_partial, to_stopped_by_watchpoint,
6221 to_stopped_data_address.
6222 (target_store_registers): Simplify.
6223 (forward_target_remove_breakpoint)
6224 (forward_target_insert_breakpoint): Remove.
6225 (target_remove_breakpoint, target_insert_breakpoint)
6226 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6227 * target.h (struct target_ops) <to_resume, to_wait,
6228 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6229 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6230 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6232 (forward_target_remove_breakpoint)
6233 (forward_target_insert_breakpoint): Remove.
6234 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6236 (record_btrace_insert_breakpoint): Delegate directly.
6238 2014-02-19 Tom Tromey <tromey@redhat.com>
6241 * target-delegates.c: New file.
6242 * target.c: Include target-delegates.c.
6243 (init_dummy_target): Call install_dummy_methods.
6244 (complete_target_initialization): Call install_delegators.
6245 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6246 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6247 * make-target-delegates: New file.
6249 2014-02-19 Tom Tromey <tromey@redhat.com>
6251 * record.c (find_record_target): Use find_target_at.
6252 * target.c (find_target_at): New function.
6253 * target.h (find_target_at): Declare.
6255 2014-02-19 Tom Tromey <tromey@redhat.com>
6257 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6259 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6261 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6262 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6264 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6266 * linux-nat.c (save_sigtrap): Update.
6267 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6268 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6269 (linux_nat_close): Update.
6270 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6272 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6274 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6275 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6276 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6277 (tmp_to_async): Add 'ops' argument.
6278 (record_full_stopped_by_watchpoint, record_full_async)
6279 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6281 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6282 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6283 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6284 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6285 (remote_is_async_p, remote_async): Add 'ops' argument.
6286 (remote_stopped_data_address): Update.
6287 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6288 * target.c (update_current_target)
6289 (find_default_can_async_p, find_default_is_async_p): Update.
6290 (init_dummy_target): Update.
6291 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6292 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6293 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6294 (target_can_async_p, target_is_async_p, target_async)
6295 (target_stopped_by_watchpoint): Update.
6297 2014-02-19 Yao Qi <yao@codesourcery.com>
6300 * gdbarch.sh: Remove startup_gdbarch.
6301 * gdbarch.c: Regenerated.
6302 * gdbarch.h: Likewise.
6304 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6306 * rl78-tdep.c (rl78_g10_register_name): New function.
6307 (rl78_return_value): Add g10 support.
6308 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6311 2014-02-17 Doug Evans <xdje42@gmail.com>
6313 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6314 (SUBDIR_GUILE_SRCS): Ditto.
6315 (scm-gsmob.o): Ditto.
6317 2014-02-17 Yao Qi <yao@codesourcery.com>
6319 * gnu-nat.c (ILL_RPC): Declare defined function.
6321 2014-02-17 Yao Qi <yao@codesourcery.com>
6323 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6324 mach_msg_type_number_t.
6325 (gnu_write_inferior): Likewise.
6327 2014-02-17 Yao Qi <yao@codesourcery.com>
6329 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6331 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6332 (inf_validate_procs, inf_signal): Likewise.
6333 (S_exception_raise_request): Likewise.
6334 (do_mach_notify_dead_name): Likewise.
6335 (steal_exc_port): Likewise.
6336 (gnu_read_inferior): Change 'copy_count''s type to
6337 mach_msg_type_number_t.
6338 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6341 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6343 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6344 flag. Adjust all users; in particular...
6345 (gnu_wait): ..., don't decrement its value in here...
6346 (gnu_create_inferior): ..., and instead set the flag in here,
6347 around the startup_inferior call, and call that one with
6348 START_INFERIOR_TRAPS_EXPECTED.
6350 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6351 (ILL_RPC): ... new macro.
6352 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6353 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6354 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6355 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6356 functions with ILL_RPC macro.
6357 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6358 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6359 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6360 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6361 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6362 (S_proc_getlogin_reply, S_proc_getsid_reply)
6363 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6364 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6365 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6366 (S_proc_getnports_reply, S_proc_is_important_reply)
6367 (S_proc_get_code_reply): New stub functions, generated with
6370 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6371 collected the type check structures.
6373 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6375 2014-02-14 Doug Evans <dje@google.com>
6377 * target.c (target_write_partial): Fix result type.
6379 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6381 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6382 the proper offsets to access fpregset_t.
6384 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6386 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6387 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6388 * h8300-tdep.c (setmachinelist): Remove global.
6389 * hppa-tdep.c (hppa_sigtramp): Remove global.
6390 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6391 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6392 * ravenscar-thread.c (update_target_observer): Remove global.
6393 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6395 2014-02-12 Tom Tromey <tromey@redhat.com>
6397 * common/rsp-low.c: Update comments.
6398 * common/rsp-low.h: Update comments.
6400 2014-02-12 Tom Tromey <tromey@redhat.com>
6402 * common/rsp-low.c (convert_ascii_to_int): Remove.
6403 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6405 2014-02-12 Tom Tromey <tromey@redhat.com>
6407 * common/rsp-low.h (unhexify): Don't declare.
6408 * common/rsp-low.c (unhexify): Remove.
6410 2014-02-12 Tom Tromey <tromey@redhat.com>
6412 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6413 * common/rsp-low.c (convert_int_to_ascii): Remove.
6415 2014-02-12 Tom Tromey <tromey@redhat.com>
6417 * common/rsp-low.h (hexify): Don't declare.
6418 * common/rsp-low.c (hexify): Remove.
6420 2014-02-12 Tom Tromey <tromey@redhat.com>
6422 * common/rsp-low.c (hexify): Never take strlen of argument.
6424 2014-02-12 Tom Tromey <tromey@redhat.com>
6426 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6427 * remote.c (extended_remote_run, remote_rcmd)
6428 (remote_download_trace_state_variable, remote_save_trace_data)
6429 (remote_set_trace_notes): Update.
6430 * tracepoint.c (encode_source_string, tfile_write_status)
6431 (tfile_write_uploaded_tsv): Update.
6433 2014-02-12 Tom Tromey <tromey@redhat.com>
6435 * tracepoint.c: Include rsp-low.h.
6436 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6437 * remote.c: Include rsp-low.h.
6438 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6439 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6440 (remote_unescape_input): Move to common/rsp-low.c.
6441 * common/rsp-low.h: New file.
6442 * common/rsp-low.c: New file.
6443 * Makefile.in (SFILES): Add common/rsp-low.c.
6444 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6445 (COMMON_OBS): Add rsp-low.o.
6446 (rsp-low.o): New target.
6448 2014-02-12 Tom Tromey <tromey@redhat.com>
6450 * utils.h: Include print-utils.h.
6451 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6452 (int_string, core_addr_to_string, core_addr_to_string_nz)
6453 (hex_string, hex_string_custom): Don't declare.
6454 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6455 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6456 (hex_string_custom, int_string, core_addr_to_string)
6457 (core_addr_to_string_nz, host_address_to_string): Move to
6458 common/print-utils.c.
6459 * common/print-utils.h: New file.
6460 * common/print-utils.c: New file
6461 * Makefile.in (SFILES): Add common/print-utils.c.
6462 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6463 (COMMON_OBS): Add print-utils.o.
6464 (print-utils.o): New target.
6466 2014-02-12 Tom Tromey <tromey@redhat.com>
6468 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6470 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6472 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6474 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6476 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6477 if a PT_IO ptrace request returns sucessfully but indicates that 0
6478 bytes were transferred.
6480 2014-02-12 Pedro Alves <palves@redhat.com>
6481 Kevin Buettner <kevinb@redhat.com>
6483 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6484 TYPE_INSTANCE_FLAG_CODE_SPACE.
6486 2014-02-12 Pedro Alves <palves@redhat.com>
6488 * h8300-tdep.c (pseudo_from_raw_register)
6489 (raw_from_pseudo_register): New functions.
6490 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6493 2014-02-12 Pedro Alves <palves@redhat.com>
6495 * h8300-tdep.c (h8300_register_sim_regno): New function.
6496 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6497 gdbarch_register_sim_regno hook.
6499 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6501 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6503 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6505 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6507 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6509 * obsd-tdep.h (obsd_init_abi): New prototype.
6510 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6511 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6512 (obsd_init_abi): New functions.
6513 * i386obsd-tdep.c: Include "obsd-tdep.h".
6514 (i386obsd_init_abi): Call obsd_init_abi.
6515 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6516 (amd64obsd_init_abi): Call obsd_init_abi.
6517 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6518 obsd-tdep.c to gdb_target_obs.
6520 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6522 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6523 double float arguments to 16-byte in the argument slots.
6525 2014-02-11 Doug Evans <xdje42@gmail.com>
6527 * configure.ac: Don't crash if pkg-config is not found and guile
6528 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6530 * configure: Regenerate.
6532 2014-02-11 Yao Qi <yao@codesourcery.com>
6534 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6535 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6536 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6537 * gnu-nat.c (gnu_xfer_memory): Likewise.
6538 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6539 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6540 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6541 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6543 2014-02-11 Yao Qi <yao@codesourcery.com>
6545 * target.h (enum target_xfer_error): Rename to ...
6546 (enum target_xfer_status): ... it. New. All users updated.
6547 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6549 (TARGET_XFER_STATUS_ERROR_P): New macro.
6550 (target_xfer_error_to_string): Remove declaration.
6551 (target_xfer_status_to_string): Declare.
6552 (target_xfer_partial_ftype): Adjust it.
6553 (struct target_ops) <to_xfer_partial>: Return
6554 target_xfer_status. Add argument xfered_len. Update
6556 * target.c (target_xfer_error_to_string): Rename to ...
6557 (target_xfer_status_to_string): ... it. New. All callers
6559 (target_read_live_memory): Likewise. Call target_xfer_partial
6560 instead of target_read.
6561 (memory_xfer_live_readonly_partial): Return
6562 target_xfer_status. Add argument xfered_len.
6563 (raw_memory_xfer_partial): Likewise.
6564 (memory_xfer_partial_1): Likewise.
6565 (memory_xfer_partial): Likewise.
6566 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6567 properly. Update debug message.
6568 (default_xfer_partial, current_xfer_partial): Likewise.
6569 (target_write_partial): Likewise.
6570 (target_read_partial): Likewise. All callers updated.
6571 (read_whatever_is_readable): Likewise.
6572 (target_write_with_progress): Likewise.
6573 (target_read_alloc_1): Likewise.
6575 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6576 * auxv.c (procfs_xfer_auxv): Likewise.
6577 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6578 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6579 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6580 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6581 * corefile.c (read_memory): Adjust.
6582 * corelow.c (core_xfer_partial): Likewise.
6583 * ctf.c (ctf_xfer_partial): Likewise.
6584 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6586 (darwin_xfer_partial): Likewise.
6587 * exec.c (section_table_xfer_memory_partial): Likewise. All
6589 (exec_xfer_partial): Likewise.
6590 * exec.h (section_table_xfer_memory_partial): Update
6592 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6594 (gnu_xfer_partial): Likewise.
6595 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6596 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6597 (ia64_hpux_xfer_solib_got): Likewise.
6598 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6599 type of 'partial_len' to ULONGEST.
6600 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6601 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6602 (linux_nat_xfer_partial): Likewise.
6603 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6604 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6605 * monitor.c (monitor_xfer_memory): Likewise.
6606 (monitor_xfer_partial): Likewise.
6607 * procfs.c (procfs_xfer_partial): Likewise.
6608 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6609 * record-full.c (record_full_xfer_partial): Likewise.
6610 (record_full_core_xfer_partial): Likewise.
6611 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6612 (gdbsim_xfer_partial): Likewise.
6613 * remote.c (remote_write_bytes_aux): Likewise. All callers
6615 (remote_write_bytes, remote_read_bytes): Likewise. All
6617 (remote_flash_erase): Likewise. All callers updated.
6618 (remote_write_qxfer): Likewise. All callers updated.
6619 (remote_read_qxfer): Likewise. All callers updated.
6620 (remote_xfer_partial): Likewise.
6621 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6622 (rs6000_xfer_shared_libraries): Likewise.
6623 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6624 (sol_thread_xfer_partial): Likewise.
6625 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6626 (sparc_xfer_partial): Likewise.
6627 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6629 (spu_xfer_partial): Likewise.
6630 * spu-multiarch.c (spu_xfer_partial): Likewise.
6631 * tracepoint.c (tfile_xfer_partial): Likewise.
6632 * windows-nat.c (windows_xfer_memory): Likewise.
6633 (windows_xfer_shared_libraries): Likewise.
6634 (windows_xfer_partial): Likewise.
6635 * valprint.c: Replace 'target_xfer_error' with
6636 'target_xfer_status' in comments.
6638 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6640 Checked in by Joel Brobecker <brobecker@adacore.com>.
6641 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6643 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6645 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6646 function parameters.
6648 2014-02-10 Will Newton <will.newton@linaro.org>
6650 * elfread.c (elf_rel_plt_read): Look for a .got section if
6651 looking up .got.plt fails.
6652 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6653 on address passed to elf_gnu_ifunc_record_cache.
6654 (elf_gnu_ifunc_resolve_addr): Likewise.
6655 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6657 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6659 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6660 (X_RETTURN): New macro.
6661 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6663 * sparc64-tdep.c (sparc64_init_abi): Hook
6664 sparc_in_function_epilogue_p.
6666 2014-02-10 Gary Benson <gbenson@redhat.com>
6668 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6669 Rename name_matcher to symbol_matcher.
6671 2014-02-10 Gary Benson <gbenson@redhat.com>
6673 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6674 Use expand_symtabs_file_matcher_ftype and
6675 expand_symtabs_symbol_matcher_ftype.
6677 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6679 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6680 (struct ada_symbol_cache): New.
6681 (ada_free_symbol_cache): Forward declare.
6682 (struct ada_pspace_data): New.
6683 (ada_pspace_data_handle): New static global.
6684 (get_ada_pspace_data, ada_pspace_data_cleanup)
6685 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6686 (cache_space, cache): Delete, now folded inside struct
6688 (ada_get_symbol_cache): New function.
6689 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6691 (_initialize_ada_language): Remove initialization of cache_space.
6692 Move call to observer_attach_inferior_exit up, grouping it
6693 with the other observer registrations inside this function.
6694 Rename command to be more general. Add call to
6695 register_program_space_data_with_cleanup.
6697 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6699 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6700 ada_new_objfile_observer.
6701 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6702 (_initialize_tasks): Update uses of ada_new_objfile_observer
6703 and ada_tasks_normal_stop_observer.
6705 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6707 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6708 returned by the 'Length attribute to integer.
6710 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6712 * ada-lang.c (_initialize_ada_language): Initialize
6713 cache_space obstack.
6715 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6717 * ada-lang.c (HASH_SIZE): New macro.
6718 (struct cache_entry): New type.
6719 (cache_space, cache): New static globals.
6720 (ada_clear_symbol_cache, find_entry): New functions.
6721 (lookup_cached_symbol, cache_symbol): Implement.
6722 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6723 (_initialize_ada_language): Attach ada_new_objfile_observer
6724 and ada_free_objfile_observer.
6726 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6728 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6729 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6730 struct block * parameter.
6731 (ada_lookup_symbol_list_worker): Constify local variable "block".
6732 Remove cast which is no longer necessary.
6734 2014-02-10 Doug Evans <xdje42@gmail.com>
6736 Add Guile as an extension language.
6737 * NEWS: Mention Guile scripting.
6738 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6739 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6740 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6741 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6742 (CLIBS): Add GUILE_LIBS.
6743 (install-guile): New rule.
6744 (guile.o): New rule.
6745 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6746 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6747 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6748 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6749 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6750 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6751 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6752 * configure.ac: New option --with-guile.
6753 * configure: Regenerate.
6754 * config.in: Regenerate.
6755 * auto-load.c: Remove #include "python/python.h". Add #include
6756 "gdb/section-scripts.h".
6757 (source_section_scripts): Handle Guile scripts.
6758 (_initialize_auto_load): Add name of Guile objfile script to
6759 scripts-directory help text.
6760 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6761 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6762 (struct breakpoint): New member scm_bp_object.
6763 * defs.h (enum command_control_type): New value guile_control.
6764 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6766 (show_user): Update comment.
6767 (_initialize_cli_cmds): Update help text for "show user". Update help
6768 text for max-user-call-depth.
6769 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6771 (multi_line_command_p): Add guile_control.
6772 (print_command_lines): Handle guile_control.
6773 (execute_control_command, recurse_read_control_structure): Ditto.
6774 (process_next_line): Recognize "guile" commands.
6775 * disasm.c (gdb_disassemble_info): Make non-static.
6776 * disasm.h: #include "dis-asm.h".
6777 (struct gdbarch): Add forward decl.
6778 (gdb_disassemble_info): Declare.
6779 * extension.c: #include "guile/guile.h".
6780 (extension_languages): Add guile.
6781 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6782 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6783 * gdbtypes.c (get_unsigned_type_max): New function.
6784 (get_signed_type_minmax): New function.
6785 * gdbtypes.h (get_unsigned_type_max): Declare.
6786 (get_signed_type_minmax): Declare.
6787 * guile/README: New file.
6788 * guile/guile-internal.h: New file.
6789 * guile/guile.c: New file.
6790 * guile/guile.h: New file.
6791 * guile/scm-arch.c: New file.
6792 * guile/scm-auto-load.c: New file.
6793 * guile/scm-block.c: New file.
6794 * guile/scm-breakpoint.c: New file.
6795 * guile/scm-disasm.c: New file.
6796 * guile/scm-exception.c: New file.
6797 * guile/scm-frame.c: New file.
6798 * guile/scm-gsmob.c: New file.
6799 * guile/scm-iterator.c: New file.
6800 * guile/scm-lazy-string.c: New file.
6801 * guile/scm-math.c: New file.
6802 * guile/scm-objfile.c: New file.
6803 * guile/scm-ports.c: New file.
6804 * guile/scm-pretty-print.c: New file.
6805 * guile/scm-safe-call.c: New file.
6806 * guile/scm-string.c: New file.
6807 * guile/scm-symbol.c: New file.
6808 * guile/scm-symtab.c: New file.
6809 * guile/scm-type.c: New file.
6810 * guile/scm-utils.c: New file.
6811 * guile/scm-value.c: New file.
6812 * guile/lib/gdb.scm: New file.
6813 * guile/lib/gdb/boot.scm: New file.
6814 * guile/lib/gdb/experimental.scm: New file.
6815 * guile/lib/gdb/init.scm: New file.
6816 * guile/lib/gdb/iterator.scm: New file.
6817 * guile/lib/gdb/printing.scm: New file.
6818 * guile/lib/gdb/types.scm: New file.
6819 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6820 (VPATH): Add $(GUILE_SRCDIR).
6821 (GUILE_DIR): New variable.
6822 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6823 (all): Add stamp-guile dependency.
6824 (stamp-guile): New rule.
6825 (clean-guile, install-guile, uninstall-guile): New rules.
6826 (install-only): Add install-guile dependency.
6827 (uninstall): Add uninstall-guile dependency.
6828 (clean): Add clean-guile dependency.
6830 2014-02-09 Doug Evans <xdje42@gmail.com>
6832 Revert this patch (which I approved, mea culpa).
6834 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6836 * Makefile.in (all-lib): Remove.
6837 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6839 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6841 Fix Python stack corruption.
6842 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6845 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6847 * Makefile.in (all-lib): Remove.
6848 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6850 2014-02-07 Doug Evans <dje@google.com>
6852 * extension-priv.h (extension_language_script_ops): Add comment.
6853 (extension_language_ops): Add comment.
6854 (active_ext_lang_state): Fix typo in comment.
6856 2014-02-07 Pedro Alves <palves@redhat.com>
6858 PR breakpoints/16292
6859 * infrun.c (handle_signal_stop) <signal arrives while stepping
6860 over a breakpoint>: Switch back to the stepping thread.
6862 2014-02-07 Yao Qi <yao@codesourcery.com>
6864 * target.c (target_xfer_partial): Return zero if LEN is zero.
6866 2014-02-07 Yao Qi <yao@codesourcery.com>
6868 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6869 (ld_so_xfer_auxv): Likewise.
6870 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6871 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6872 * corelow.c (core_xfer_partial): Likewise.
6873 * ctf.c (ctf_xfer_partial): Likewise.
6874 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6875 (darwin_xfer_partial): Likewise.
6876 * exec.c (exec_xfer_partial): Likewise.
6877 * gnu-nat.c (gnu_xfer_partial): Likewise.
6878 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6879 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6880 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6881 * linux-nat.c (linux_xfer_siginfo): Likewise.
6882 (linux_proc_xfer_spu): Likewise.
6883 * procfs.c (procfs_xfer_partial): Likewise.
6884 * record-full.c (record_full_xfer_partial): Likewise.
6885 (record_full_core_xfer_partial): Likewise.
6886 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6887 * remote.c (remote_write_qxfer): Likewise.
6888 (remote_write_qxfer, remote_read_qxfer): Likewise.
6889 (remote_xfer_partial): Likewise.
6890 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6891 (rs6000_xfer_shared_libraries): Likewise.
6892 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6893 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6894 (spu_xfer_partial): Likewise.
6895 * target.c (memory_xfer_partial_1): Likewise.
6896 * tracepoint.c (tfile_xfer_partial): Likewise.
6897 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6898 (windows_xfer_partial): Likewise.
6900 2014-02-07 Yao Qi <yao@codesourcery.com>
6902 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6904 (core_xfer_shared_libraries_aix): Likewise.
6905 * gdbarch.c, gdbarch.h: Regenerated.
6906 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6907 ULONGEST. Change 'len_avail' type to ULONGEST.
6908 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6909 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6911 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6913 2014-02-07 Yao Qi <yao@codesourcery.com>
6915 * corefile.c (memory_error): Get 'exception' from ERR and pass
6916 'exception' to throw_error.
6918 2014-02-06 Doug Evans <xdje42@gmail.com>
6920 * configure.ac (libpython checking): Remove all but python.o from
6921 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6922 * configure: Regenerate.
6924 * Makefile.in (SFILES): Add extension.c.
6925 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6926 (COMMON_OBS): Add extension.o.
6927 * extension.h: New file.
6928 * extension-priv.h: New file.
6929 * extension.c: New file.
6931 * python/python-internal.h: #include "extension.h".
6932 (gdbpy_auto_load_enabled): Declare.
6933 (gdbpy_apply_val_pretty_printer): Declare.
6934 (gdbpy_apply_frame_filter): Declare.
6935 (gdbpy_preserve_values): Declare.
6936 (gdbpy_breakpoint_cond_says_stop): Declare.
6937 (gdbpy_breakpoint_has_cond): Declare.
6938 (void source_python_script_for_objfile): Delete.
6939 * python/python.c: #include "extension-priv.h".
6940 Delete inclusion of "observer.h".
6941 (extension_language_python): Moved here and renamed from
6942 script_language_python in py-auto-load.c.
6943 Redefined to be of type extension_language_defn.
6944 (python_extension_script_ops): New global.
6945 (python_extension_ops): New global.
6946 (struct python_env): New member previous_active.
6947 (restore_python_env): Call restore_active_ext_lang.
6948 (ensure_python_env): Call set_active_ext_lang.
6949 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6951 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6953 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6955 (gdbpy_eval_from_control_command): Renamed from
6956 eval_python_from_control_command, made static. New arg extlang.
6957 (gdbpy_source_script) Renamed from source_python_script, made static.
6959 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6960 result to int. New arg extlang.
6961 (gdbpy_source_objfile_script): Renamed from
6962 source_python_script_for_objfile, made static. New arg extlang.
6963 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6964 static. New args extlang, extlang_printers. Change result type to
6966 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6967 static. New arg extlang. Rename arg printers to extlang_printers
6968 and change type to ext_lang_type_printers *.
6969 (gdbpy_free_type_printers): Renamed from free_type_printers, made
6970 static. Replace argument arg with extlang, extlang_printers.
6971 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
6972 (!HAVE_PYTHON, source_python_script): Delete.
6973 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
6974 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
6975 (!HAVE_PYTHON, start_type_printers): Delete.
6976 (!HAVE_PYTHON, apply_type_printers): Delete.
6977 (!HAVE_PYTHON, free_type_printers): Delete.
6978 (_initialize_python): Delete call to observer_attach_before_prompt.
6979 (finalize_python): Set/restore active extension language.
6980 (gdbpy_finish_initialization) Renamed from
6981 finish_python_initialization, made static. New arg extlang.
6982 (gdbpy_initialized): New function.
6983 * python/python.h: #include "extension.h". Delete #include
6984 "value.h", "mi/mi-cmds.h".
6985 (extension_language_python): Declare.
6986 (GDBPY_AUTO_FILE_NAME): Delete.
6987 (enum py_bt_status): Moved to extension.h and renamed to
6989 (enum frame_filter_flags): Moved to extension.h.
6990 (enum py_frame_args): Moved to extension.h and renamed to
6991 ext_lang_frame_args.
6992 (finish_python_initialization): Delete.
6993 (eval_python_from_control_command): Delete.
6994 (source_python_script): Delete.
6995 (apply_val_pretty_printer): Delete.
6996 (apply_frame_filter): Delete.
6997 (preserve_python_values): Delete.
6998 (gdbpy_script_language_defn): Delete.
6999 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7000 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7002 * auto-load.c: #include "extension.h".
7003 (GDB_AUTO_FILE_NAME): Delete.
7004 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7005 (script_language_gdb): Delete, moved to extension.c and renamed to
7006 extension_language_gdb.
7007 (source_gdb_script_for_objfile): Delete.
7008 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7009 (loaded_script): Change type of language member to
7010 struct extension_language_defn *.
7011 (init_loaded_scripts_info): Initialize
7012 unsupported_script_warning_printed.
7013 (maybe_add_script): Make static. Change type of language arg to
7014 struct extension_language_defn *.
7015 (clear_section_scripts): Reset unsupported_script_warning_printed.
7016 (auto_load_objfile_script_1): Rewrite to use extension language API.
7017 (auto_load_objfile_script): Make public. Remove support-compiled-in
7018 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7019 (source_section_scripts): Rewrite to use extension language API.
7020 (load_auto_scripts_for_objfile): Rewrite to use
7021 auto_load_scripts_for_objfile.
7022 (collect_matching_scripts_data): Change type of language member to
7023 struct extension_language_defn *.
7024 (auto_load_info_scripts): Change type of language arg to
7025 struct extension_language_defn *.
7026 (unsupported_script_warning_print): New function.
7027 (script_not_found_warning_print): Make static.
7028 (_initialize_auto_load): Rewrite construction of scripts-directory
7030 * auto-load.h (struct objfile): Add forward decl.
7031 (struct script_language): Delete.
7032 (struct auto_load_pspace_info): Add forward decl.
7033 (struct extension_language_defn): Add forward decl.
7034 (maybe_add_script): Delete.
7035 (auto_load_objfile_script): Declare.
7036 (script_not_found_warning_print): Delete.
7037 (auto_load_info_scripts): Update prototype.
7038 (auto_load_gdb_scripts_enabled): Declare.
7039 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7040 auto_load_python_scripts_enabled and made public.
7041 (script_language_python): Delete, moved to python.c.
7042 (gdbpy_script_language_defn): Delete.
7043 (info_auto_load_python_scripts): Update to use
7044 extension_language_python.
7046 * breakpoint.c (condition_command): Replace call to
7047 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7048 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7049 with call to breakpoint_ext_lang_cond_says_stop.
7050 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7051 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7052 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7053 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7055 (local_setattro): Print name of extension language with existing
7058 * valprint.c (val_print, value_print): Update to call
7059 apply_ext_lang_val_pretty_printer.
7060 * cp-valprint.c (cp_print_value): Update call to
7061 apply_ext_lang_val_pretty_printer.
7062 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7063 (gdbpy_apply_val_pretty_printer): Renamed from
7064 apply_val_pretty_printer. New arg extlang.
7065 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7067 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7068 extension language API.
7069 * cli/cli-script.c (execute_control_command): Update to call
7070 eval_ext_lang_from_control_command.
7072 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7073 enum ext_lang_bt_status values. Update call to
7074 apply_ext_lang_frame_filter.
7075 (mi_cmd_stack_list_locals): Ditto.
7076 (mi_cmd_stack_list_args): Ditto.
7077 (mi_cmd_stack_list_variables): Ditto.
7078 * mi/mi-main.c: Delete #include "python/python-internal.h".
7079 Add #include "extension.h".
7080 (mi_cmd_list_features): Replace reference to python internal variable
7081 gdb_python_initialized with call to ext_lang_initialized_p.
7083 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7084 Update to use enum ext_lang_frame_args. Update to call
7085 apply_ext_lang_frame_filter.
7086 * python/py-framefilter.c (extract_sym): Update to use enum
7088 (extract_value, py_print_type, py_print_value): Ditto.
7089 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7090 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7091 (py_print_frame): Ditto.
7092 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7093 New arg extlang. Update to use enum ext_lang_bt_status.
7095 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7096 finish_python_initialization. Replace with call to
7097 finish_ext_lang_initialization.
7099 * typeprint.c (do_free_global_table): Update to call
7100 free_ext_lang_type_printers.
7101 (create_global_typedef_table): Update to call
7102 start_ext_lang_type_printers.
7103 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7104 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7105 (type_print_options): Change type of global_printers from "void *"
7106 to "struct ext_lang_type_printers *".
7108 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7109 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7110 (gdbpy_preserve_values): Renamed from preserve_python_values.
7112 (!HAVE_PYTHON, preserve_python_values): Delete.
7114 * utils.c (quit_flag): Delete, moved to extension.c.
7115 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7118 * eval.c: Delete #include "python/python.h".
7119 * main.c: Delete #include "python/python.h".
7121 * defs.h: Update comment.
7123 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7127 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7129 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7132 2014-02-05 Yao Qi <yao@codesourcery.com>
7134 * remote.c (remote_pass_signals): Remove local 'buf' and use
7136 (remote_program_signals): Likewise.
7138 2014-02-05 Yao Qi <yao@codesourcery.com>
7140 * ctf.c: Include "inferior.h" and "gdbthread.h".
7141 (CTF_PID): A new macro.
7142 (ctf_open): Call inferior_appeared and add_thread_silent.
7143 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7144 (ctf_thread_alive): New function.
7145 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7147 2014-02-05 Yao Qi <yao@codesourcery.com>
7151 2013-05-24 Yao Qi <yao@codesourcery.com>
7153 * tracepoint.c (TFILE_PID): Remove.
7154 (tfile_open): Don't add thread and inferior.
7155 (tfile_close): Don't set 'inferior_ptid'. Don't call
7156 exit_inferior_silent.
7157 (tfile_thread_alive): Remove.
7158 (init_tfile_ops): Don't set field 'to_thread_alive' of
7161 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7163 * remote.c (remote_start_remote): Call remote_check_symbols even
7164 if only symbol-file (not file) has been given.
7166 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7168 * gdbarch.sh (skip_entrypoint): New callback.
7169 * gdbarch.c, gdbarch.h: Regenerate.
7170 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7171 * infrun.c (fill_in_stop_func): Likewise.
7172 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7173 (ppc_elfv2_elf_make_msymbol_special): New function.
7174 (ppc_elfv2_skip_entrypoint): Likewise.
7175 (ppc_linux_init_abi): Install them for ELFv2.
7177 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7179 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7180 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7181 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7182 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7183 structures returned in GPRs.
7185 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7187 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7188 offset to the stack parameter list for the ELFv2 ABI.
7190 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7192 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7193 set_gdbarch_convert_from_func_ptr_addr and
7194 set_gdbarch_elf_make_msymbol_special for ELFv1.
7195 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7196 function descriptors on ELFv1.
7197 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7198 set up r12 at function entry.
7200 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7202 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7203 (struct gdbarch_tdep): New member elf_abi.
7205 * rs6000-tdep.c: Include "elf/ppc64.h".
7206 (rs6000_gdbarch_init): Detect ELF ABI version.
7208 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7210 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7211 within a register pair holding a DFP 128-bit value on little-endian.
7212 (ppc64_sysv_abi_return_value_base): Likewise.
7213 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7214 (dfp_pseudo_register_write): Likewise.
7216 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7218 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7219 offset on little-endian when passing _Decimal32.
7220 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7222 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7224 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7225 of the overlapped FP register within the VSX register on little-
7227 (efpr_pseudo_register_write): Likewise.
7229 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7231 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7232 offset on little-endian when passing small structures.
7234 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7236 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7237 (struct ppc64_sysv_argpos): New data structure.
7238 (ppc64_sysv_abi_push_float): Remove.
7239 (ppc64_sysv_abi_push_val): New function.
7240 (ppc64_sysv_abi_push_integer): Likewise.
7241 (ppc64_sysv_abi_push_freg): Likewise.
7242 (ppc64_sysv_abi_push_vreg): Likewise.
7243 (ppc64_sysv_abi_push_param): Likewise.
7244 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7245 (ppc64_sysv_abi_return_value_base): New function.
7246 (ppc64_sysv_abi_return_value): Refactor to use it.
7248 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7250 * NEWS: Document new target powerpc64le-*-linux*.
7252 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7254 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7255 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7257 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7258 register set used in ELF core dumps. Add floating-point register set.
7260 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7262 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7263 dwarf2_to_gdb[] table using symbolic constants. Adjust
7264 penultimate entry from number representing the PC register
7265 to symbolic constant representing the MDR register. Add
7266 constant for the PC register to the end of the table.
7268 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7270 * bsd-kvm.c: Include <sys/param.h>
7272 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7274 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7276 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7278 * ada-lang.h (clear_ada_sym_cache): Delete.
7280 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7282 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7284 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7286 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7287 the sigreturn register save area only if the syscall is
7290 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7292 * valops.c (value_slice): Minor reformatting.
7294 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7296 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7298 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7300 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7302 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7303 (ada_ignore_descriptive_types_p): New static global.
7304 (find_parallel_type_by_descriptive_type): Return immediately
7305 if ada_ignore_descriptive_types_p is set.
7306 (_initialize_ada_language): Register new commands "maintenance
7307 set ada", "maintenance show ada", "maintenance set ada
7308 ignore-descriptive-types" and "maintenance show ada
7309 ignore-descriptive-types".
7310 * NEWS: Add entry for new "maint ada set/show
7311 ignore-descriptive-types" commands.
7313 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7315 * record-btrace.c (record_btrace_close): Call btrace_teardown
7318 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7320 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7323 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7325 * ada-typeprint (type_is_full_subrange_of_target_type):
7327 (print_range): Add parameter bounds_prefered_p. If not set,
7328 try printing range types using the name of their base type.
7329 (print_range_type): Add parameter bounds_prefered_p.
7330 Use it in call to print_range.
7331 (print_array_type, ada_print_type): Update calls to print_range
7332 and print_range_type.
7334 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7336 * ada-typeprint.c (print_array_type, print_choices, print_range)
7337 (print_range_bound, print_dynamic_range_bound, print_range_type):
7340 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7342 * ada-typeprint.c (print_range): Add missing empty line
7343 after local declaration.
7345 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7347 * ada-valprint.c (print_optional_low_bound): Get index_type's
7348 target type for as long as it is a TYPE_CODE_RANGE.
7350 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7352 * procfs.c (procfs_make_note_section): Remove assertion and
7355 2014-01-24 Yao Qi <yao@codesourcery.com>
7357 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7358 * corelow.c (get_core_siginfo): Likewise.
7360 2014-01-24 Yao Qi <yao@codesourcery.com>
7362 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7363 ULONGEST. Don't check 'len' is negative.
7364 (remote_write_bytes): Change type of 'len' to ULONGEST.
7366 2014-01-23 Tom Tromey <tromey@redhat.com>
7369 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7370 Handle exception from frame.block.
7371 (FrameVars.fetch_frame_locals): Likewise.
7373 2014-01-23 Tom Tromey <tromey@redhat.com>
7376 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7377 on a NULL pointer. Move "goto error" to correct place.
7379 2014-01-23 Tom Tromey <tromey@redhat.com>
7382 * python/py-framefilter.c (apply_frame_filter): Call
7383 ensure_python_env after computing gdbarch.
7385 2014-01-23 Yao Qi <yao@codesourcery.com>
7387 * target.c (raw_memory_xfer_partial): Change argument type
7388 from void * to gdb_byte *.
7389 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7391 2014-01-22 Doug Evans <dje@google.com>
7393 New gdbserver option --debug-format=timestamp.
7396 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7398 * syscalls/s390x-linux.xml: New file.
7399 * syscalls/s390-linux.xml: New file.
7400 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7401 (XML_SYSCALL_FILENAME_S390X): Likewise.
7402 (op_svc): New enum value for SVC opcode.
7403 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7404 (s390_linux_get_syscall_number): New function.
7405 (s390_gdbarch_init): Register '*get_syscall_number' and the
7406 syscall xml file name.
7407 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7408 "s390-linux.xml" and "s390x-linux.xml".
7409 * NEWS: Announce new feature.
7411 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7413 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7415 2014-01-22 Pedro Alves <palves@redhat.com>
7417 * xtensa-config.c: Include defs.h.
7419 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7421 * common/common-utils.h: Add "ARI:" comment beside __func__
7424 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7426 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7427 documentation a bit.
7429 2014-01-21 Roland McGrath <mcgrathr@google.com>
7431 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7432 * configure: Regenerate.
7433 * aclocal.m4: Regenerate.
7434 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7435 New substituted variables.
7436 (install-strip): New target.
7437 (INSTALL_SCRIPT): New substituted variable.
7438 (FLAGS_TO_PASS): Add it.
7439 (install-only): Use $(INSTALL_SCRIPT) rather than
7440 $(INSTALL_PROGRAM) for gcore.
7442 2014-01-20 Tom Tromey <tromey@redhat.com>
7444 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7447 2014-01-20 Tom Tromey <tromey@redhat.com>
7449 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7450 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7451 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7452 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7453 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7454 (struct cmd_list_element) <flags>: Remove.
7455 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7456 doc_allocated>: New fields.
7457 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7459 * maint.c (maintenance_do_deprecate): Update.
7460 * top.c (execute_command): Update.
7462 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7464 * xtensa-linux-nat.c: Include asm/ptrace.h.
7466 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7468 * Makefile.in (SFILES): Add d-support.c.
7469 (COMMON_OBS): Add d-support.o.
7470 * d-lang.h (d_parse_symbol): Add comment, now defined in
7472 * d-lang.c (parse_call_convention)
7473 (parse_attributes, parse_function_types)
7474 (parse_function_args, parse_type, parse_identifier)
7475 (call_convention_p, d_parse_symbol): Move functions to ...
7476 * d-support.c: ... New file.
7478 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7480 * d-lang.h (d_parse_symbol): Add declaration.
7481 * d-lang.c (extract_identifiers)
7482 (extract_type_info): Remove functions.
7483 (parse_call_convention, parse_attributes)
7484 (parse_function_types, parse_function_args)
7485 (parse_type, parse_identifier, call_convention_p)
7486 (d_parse_symbol): New functions.
7487 (d_demangle): Use d_parse_symbol to demangle D symbols.
7489 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7491 * d-lang.h (struct builtin_d_type): New data type.
7492 (builtin_d_type): Add declaration.
7493 * d-lang.c (d_language_arch_info, build_d_types)
7494 (builtin_d_type): New functions.
7495 (enum d_primitive_types): New data type.
7496 (d_language_defn): Change c_language_arch_info to
7497 d_language_arch_info.
7498 (d_type_data): New static variable.
7499 (_initialize_d_language): Initialize d_type_data.
7501 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7503 * d-lang.h (d_main_name): Add declaration.
7504 * d-lang.c (d_main_name): New function.
7505 * symtab.c (find_main_name): Add call to d_main_name.
7507 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7509 * d-lang.c (d_language_defn): Change macro_expansion_c to
7512 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7514 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7516 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7518 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7519 gdb_exception" declaration.
7520 * remote.c (getpkt_or_notif_sane): Likewise.
7522 2014-01-17 Doug Evans <dje@google.com>
7524 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7525 function, contents of dirnames_to_char_ptr_vec_append moved here.
7526 (delim_string_to_char_ptr_vec): New function.
7527 (dirnames_to_char_ptr_vec_append): Rewrite.
7528 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7530 2014-01-17 Doug Evans <dje@google.com>
7532 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7534 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7535 #include "common-utils.h".
7536 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7537 * common/vec.h (VEC_ASSERT_PASS): Update.
7538 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7539 (MACH_CHECK_ERROR): Update.
7541 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7543 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7545 * gdbarch.h: Regenerate.
7547 2014-01-16 Tom Tromey <tromey@redhat.com>
7549 * value.c (struct value) <regnum>: Move earlier.
7551 2014-01-16 Tom Tromey <tromey@redhat.com>
7553 * remote.c (extended_remote_create_inferior): Rename from
7554 extended_remote_create_inferior_1. Add "ops" argument. Remove
7557 2014-01-16 Pedro Alves <palves@redhat.com>
7559 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7560 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7563 2014-01-16 Doug Evans <dje@google.com>
7565 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7567 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7569 * btrace.h (btrace_thread_flag): New.
7570 (struct btrace_thread_info) <flags>: New.
7571 * record-btrace.c (record_btrace_resume_thread)
7572 (record_btrace_find_thread_to_move, btrace_step_no_history)
7573 (btrace_step_stopped, record_btrace_start_replaying)
7574 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7575 (record_btrace_find_resume_thread): New.
7576 (record_btrace_resume, record_btrace_wait): Extend.
7577 (record_btrace_can_execute_reverse): New.
7578 (record_btrace_open): Fail in non-stop mode.
7579 (record_btrace_set_replay): Split into this, ...
7580 (record_btrace_stop_replaying): ... this, ...
7581 (record_btrace_clear_histories): ... and this.
7582 (init_record_btrace_ops): Init to_can_execute_reverse.
7583 * NEWS: Announce it.
7585 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7587 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7588 (forward_target_decr_pc_after_break)
7589 (target_decr_pc_after_break): New.
7590 * target.c (forward_target_decr_pc_after_break)
7591 (target_decr_pc_after_break): New.
7592 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7593 instead of gdbarch_decr_pc_after_break.
7594 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7595 instead of gdbarch_decr_pc_after_break.
7596 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7597 instead of gdbarch_decr_pc_after_break.
7598 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7599 instead of gdbarch_decr_pc_after_break.
7600 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7601 instead of gdbarch_decr_pc_after_break.
7602 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7603 instead of gdbarch_decr_pc_after_break.
7605 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7607 * btrace.c: Include regcache.h.
7608 (btrace_add_pc): New.
7609 (btrace_enable): Call btrace_add_pc.
7610 (btrace_is_empty): New.
7611 * btrace.h (btrace_is_empty): New.
7612 * record-btrace.c (require_btrace, record_btrace_info): Call
7615 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7617 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7618 Support delta reads.
7619 (linux_disable_btrace): Change return type.
7620 * common/linux-btrace.h (linux_read_btrace): Change parameters
7621 and return type to allow error reporting. Update users.
7622 (linux_disable_btrace): Change return type. Update users.
7623 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7625 (btrace_error): New.
7626 (btrace_block) <begin>: Comment on BEGIN == 0.
7627 * btrace.c (btrace_compute_ftrace): Start from the end of
7629 (btrace_stitch_trace, btrace_clear_history): New.
7630 (btrace_fetch): Read delta trace, return if replaying.
7631 (btrace_clear): Move clear history code to btrace_clear_history.
7632 (parse_xml_btrace): Throw an error if parsing failed.
7633 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7634 and return type to allow error reporting.
7635 (target_read_btrace): Change parameters and return type to allow
7637 * target.c (target_read_btrace): Update.
7638 * remote.c (remote_read_btrace): Support delta reads. Pass
7640 * NEWS: Announce it.
7642 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7644 * record.h (record_btrace_frame_unwind)
7645 (record_btrace_tailcall_frame_unwind): New declarations.
7646 * dwarf2-frame: Include record.h
7647 (dwarf2_frame_cfa): Throw an error for btrace frames.
7648 * record-btrace.c: Include hashtab.h.
7649 (btrace_get_bfun_name): New.
7650 (btrace_call_history): Call btrace_get_bfun_name.
7651 (struct btrace_frame_cache): New.
7653 (bfcache_hash, bfcache_eq, bfcache_new): New.
7654 (btrace_get_frame_function): New.
7655 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7656 (record_btrace_frame_this_id): Compute own id.
7657 (record_btrace_frame_prev_register): Provide PC, throw_error
7658 for all other registers.
7659 (record_btrace_frame_sniffer): Detect btrace frames.
7660 (record_btrace_tailcall_frame_sniffer): New.
7661 (record_btrace_frame_dealloc_cache): New.
7662 (record_btrace_frame_unwind): Add new functions.
7663 (record_btrace_tailcall_frame_unwind): New.
7664 (_initialize_record_btrace): Allocate cache.
7665 * btrace.c (btrace_clear): Call reinit_frame_cache.
7666 * NEWS: Announce it.
7668 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7670 * record-btrace.c (record_btrace_set_replay)
7671 (record_btrace_goto_begin, record_btrace_goto_end)
7672 (record_btrace_goto): New.
7673 (init_record_btrace_ops): Initialize them.
7674 * NEWS: Announce it.
7676 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7678 * record-btrace.c (record_btrace_find_new_threads)
7679 (record_btrace_thread_alive): New.
7680 (init_record_btrace_ops): Initialize to_find_new_threads and
7683 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7685 * record-btrace.c (record_btrace_resume): New.
7686 (record_btrace_wait): New.
7687 (init_record_btrace_ops): Initialize to_wait and to_resume.
7689 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7691 * record-btrace.c (record_btrace_xfer_partial)
7692 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7693 (record_btrace_allow_memory_access): New.
7694 (init_record_btrace_ops): Initialize new methods.
7695 * target.c (raw_memory_xfer_partial): Bail out if target reports
7696 that this memory is not available.
7698 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7700 * target.h (target_ops) <to_insert_breakpoint>
7701 <to_remove_breakpoint>: Add target_ops parameter.
7702 (forward_target_insert_breakpoint): New.
7703 (forward_target_remove_breakpoint): New.
7704 (memory_remove_breakpoint, memory_insert_breakpoint):
7705 Add target_ops parameter.
7706 * target.c (target_insert_breakpoint): Split into this and ...
7707 (forward_target_insert_breakpoint): ... this.
7708 (target_remove_breakpoint): Split into this and ...
7709 (forward_target_remove_breakpoint): ... this.
7710 (debug_to_insert_breakpoint): Add target_ops parameter.
7711 Call forward_target_insert_breakpoint.
7712 (debug_to_remove_breakpoint): Add target_ops parameter.
7713 Call forward_target_remove_breakpoint.
7714 (update_current_target): Do not inherit or default to_insert_breakpoint
7715 and to_remove_breakpoint.
7716 * corelow.c (ignore): Add target_ops parameter.
7717 * exec.c (ignore): Add target_ops parameter.
7718 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7719 Add target_ops parameter.
7720 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7721 Add target_ops parameter.
7722 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7723 Add target_ops parameter.
7724 * record-full.c (record_full_beneath_to_insert_breakpoint)
7725 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7726 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7727 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7728 (record_full_core_remove_breakpoint): Add target_ops parameter.
7730 (record_full_beneath_to_insert_breakpoint_ops)
7731 (record_full_beneath_to_remove_breakpoint_ops)
7732 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7733 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7734 tmp_to_remove_breakpoint_ops,
7735 record_full_beneath_to_insert_breakpoint_ops, and
7736 record_full_beneath_to_remove_breakpoint_ops.
7737 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7738 (m32r_remove_breakpoint): Add target_ops parameter.
7739 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7740 Add target_ops parameter.
7741 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7742 Add target_ops parameter.
7744 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7745 Markus Metzger <markus.t.metzger@intel.com>
7747 * record-btrace.c: Include frame-unwind.h.
7748 (record_btrace_frame_unwind_stop_reason)
7749 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7750 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7752 (init_record_btrace_ops): Install it.
7754 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7756 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7759 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7761 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7764 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7766 * frame-unwind.c: Include target.h.
7767 (frame_unwind_try_unwinder): New function with code from ...
7768 (frame_unwind_find_by_frame): ... here. New variable
7769 unwinder_from_target, call also target_get_unwinder)
7770 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7771 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7772 * target.h (struct target_ops): New fields to_get_unwinder and
7773 to_get_tailcall_unwinder.
7774 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7776 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7778 * record-btrace.c (record_btrace_fetch_registers)
7779 (record_btrace_store_registers)
7780 (record_btrace_to_prepare_to_store): New.
7781 (init_record_btrace_ops): Add the above.
7783 2014-01-16 Tom Tromey <tromey@redhat.com>
7785 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7786 * target.h (struct target_ops) <to_prepare_to_store>: Add
7788 (target_prepare_to_store): Add argument.
7789 * target.c (debug_to_prepare_to_store): Add argument.
7790 (update_current_target): Update.
7791 * remote.c (remote_prepare_to_store): Add 'self' argument.
7792 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7793 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7794 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7795 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7797 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7798 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7799 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7800 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7801 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7803 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7805 * btrace.h (replay) <replay>: New.
7806 (btrace_is_replaying): New.
7807 * btrace.c (btrace_clear): Free replay iterator.
7808 (btrace_is_replaying): New.
7809 * record-btrace.c (record_btrace_is_replaying): New.
7810 (record_btrace_info): Print insn number if replaying.
7811 (record_btrace_insn_history): Start at replay position.
7812 (record_btrace_call_history): Start at replay position.
7813 (init_record_btrace_ops): Init to_record_is_replaying.
7815 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7817 * record-btrace.c (record_btrace_insn_history_range): Include
7819 (record_btrace_insn_history_from): Adjust range.
7820 (record_btrace_call_history_range): Include
7822 (record_btrace_call_history_from): Adjust range.
7823 * NEWS: Announce changes.
7825 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7827 * record.h (enum record_print_flag)
7828 <record_print_indent_calls>: New.
7829 * record.c (get_call_history_modifiers): Recognize /c modifier.
7830 (_initialize_record): Document /c modifier.
7831 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7832 Reorder fields. Optionally indent the function name. Update
7834 * NEWS: Announce changes.
7836 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7838 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7840 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7842 * btrace.c (ftrace_new_function): Start counting at one.
7843 * record-btrace.c (record_btrace_info): Adjust number of calls
7845 * NEWS: Announce it.
7847 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7849 * record-btrace.c (btrace_call_history_insn_range): Print
7850 insn range as [begin, end].
7852 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7854 * btrace.h (struct btrace_func_link): New.
7855 (enum btrace_function_flag): New.
7856 (struct btrace_inst): Rename to ...
7857 (struct btrace_insn): ...this. Update all users.
7858 (struct btrace_func) <ibegin, iend>: Remove.
7859 (struct btrace_func_link): New.
7860 (struct btrace_func): Rename to ...
7861 (struct btrace_function): ...this. Update all users.
7862 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7863 (number, level, flags>: New.
7864 (struct btrace_insn_iterator): Rename to ...
7865 (struct btrace_insn_history): ...this.
7867 (struct btrace_insn_iterator, btrace_call_iterator): New.
7868 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7869 (struct btrace_target_info) <begin, end, level>
7870 <insn_history, call_history>: New.
7871 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7872 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7873 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7874 (btrace_call_number, btrace_call_begin, btrace_call_end)
7875 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7876 (btrace_find_function_by_number, btrace_set_insn_history)
7877 (btrace_set_call_history): New.
7878 * btrace.c (btrace_init_insn_iterator)
7879 (btrace_init_func_iterator, compute_itrace): Remove.
7880 (ftrace_print_function_name, ftrace_print_filename)
7881 (ftrace_skip_file): Change
7883 (ftrace_init_func): Remove.
7884 (ftrace_debug): Use new btrace_function fields.
7885 (ftrace_function_switched): Also consider gaining and
7886 losing symbol information).
7887 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7888 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7889 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7891 (ftrace_new_function): Move. Remove debug print.
7892 (ftrace_update_lines, ftrace_update_insns): New.
7893 (ftrace_update_function): Check for call, ret, and jump.
7894 (compute_ftrace): Renamed to ...
7895 (btrace_compute_ftrace): ...this. Rewritten to compute call
7897 (btrace_fetch, btrace_clear): Updated.
7898 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7899 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7900 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7901 (btrace_call_number, btrace_call_begin, btrace_call_end)
7902 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7903 (btrace_find_function_by_number, btrace_set_insn_history)
7904 (btrace_set_call_history): New.
7905 * record-btrace.c (require_btrace): Use new btrace thread
7907 (record_btrace_info, btrace_insn_history)
7908 (record_btrace_insn_history, record_btrace_insn_history_range):
7909 Use new btrace thread info fields and new iterator.
7910 (btrace_func_history_src_line): Rename to ...
7911 (btrace_call_history_src_line): ...this. Use new btrace
7913 (btrace_func_history): Rename to ...
7914 (btrace_call_history): ...this. Use new btrace thread info
7915 fields and new iterator.
7916 (record_btrace_call_history, record_btrace_call_history_range):
7917 Use new btrace thread info fields and new iterator.
7919 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7921 * frame.h (frame_id_build_unavailable_stack_special): New.
7922 * frame.c (frame_id_build_unavailable_stack_special): New.
7924 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7926 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7927 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7928 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7930 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7931 (i386_insn_is_jump, i386_jmp_p): New.
7932 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7933 insn_is_jump to gdbarch.
7934 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7935 * gdbarch.h: Regenerated.
7936 * gdbarch.c: Regenerated.
7937 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7938 (default_insn_is_jump): New.
7939 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7940 (default_insn_is_jump): New.
7942 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7944 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7946 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7947 (btrace_read_type) <btrace_read_new>: Change to ...
7948 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7950 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7952 * common/linux-btrace.c (linux_read_btrace): Free trace from
7955 2014-01-15 Doug Evans <dje@google.com>
7957 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7960 2014-01-15 Tom Tromey <tromey@redhat.com>
7962 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7963 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7964 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7965 (set_objfile_main_name): New function.
7966 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7967 language_of_main>: New fields.
7968 (set_objfile_main_name): Declare.
7969 * symtab.c (find_main_name): Loop over objfiles to find the main
7971 (set_main_name): Now static.
7972 (get_main_info): Add comment.
7973 * symtab.h (set_main_name): Don't declare.
7975 2014-01-15 Tom Tromey <tromey@redhat.com>
7977 * symtab.c (main_progspace_key): New global.
7978 (struct main_info): New.
7979 (name_of_main, language_of_main): Remove.
7980 (get_main_info, main_info_cleanup): New function.
7981 (set_main_name, main_name, main_language): Use get_main_info.
7982 (_initialize_symtab): Initialize main_progspace_key.
7984 2014-01-15 Tom Tromey <tromey@redhat.com>
7986 * dbxread.c (process_one_symbol): Update.
7987 * dwarf2read.c (read_partial_die): Update.
7988 * symfile.c (set_initial_language): Call main_language.
7989 * symtab.c (language_of_main): Now static.
7990 (set_main_name): Add 'lang' parameter.
7991 (find_main_name): Update.
7992 (main_language): New function.
7993 (symtab_observer_executable_changed): Update.
7994 * symtab.h (set_main_name): Update.
7995 (language_of_main): Remove.
7996 (main_language): Declare.
7998 2014-01-15 Tom Tromey <tromey@redhat.com>
8000 * symfile.c (init_entry_point_info): Use new "initialized" field.
8002 * objfiles.h (struct entry_point) <initialized>: New field.
8003 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8004 (struct objfile) <ei>: ...here. Remove.
8005 * objfiles.c (entry_point_address_query): Update.
8007 2014-01-15 Tom Tromey <tromey@redhat.com>
8009 * objfiles.c (entry_point_address_query): Relocate entry point
8011 (objfile_relocate1): Do not relocate entry point address.
8012 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8013 <the_bfd_section_index>: New field.
8014 * symfile.c (init_entry_point_info): Find the entry point's
8017 2014-01-15 Tom Tromey <tromey@redhat.com>
8019 * solib-frv.c (enable_break): Use entry_point_address_query.
8021 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8023 * NEWS: Add note on improved process record-replay on
8024 arm*-linux* targets.
8026 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8028 * arm-tdep.c (enum arm_record_result): New enum.
8029 (arm_record_unsupported_insn): New function.
8030 (arm_record_coproc_data_proc): Removed.
8031 (thumb2_record_ld_st_multiple): New function.
8032 (thumb2_record_ld_st_dual_ex_tbb): New function.
8033 (thumb2_record_data_proc_sreg_mimm): New function.
8034 (thumb2_record_ps_dest_generic): New function.
8035 (thumb2_record_branch_misc_cntrl): New function.
8036 (thumb2_record_str_single_data): New function.
8037 (thumb2_record_ld_mem_hints): New function.
8038 (thumb2_record_ld_word): New function.
8039 (thumb2_record_lmul_lmla_div): New function.
8040 (thumb2_record_decode_insn_handler): New function.
8041 (decode_insn): Add thumb32 instruction handlers.
8043 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8045 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8046 (struct arm_linux_record_tdep): Declare.
8047 (arm_canonicalize_syscall): New function.
8048 (arm_all_but_pc_registers_record): New function.
8049 (arm_linux_syscall_record): New function.
8050 (arm_linux_init_abi): Add syscall recording constructs.
8051 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8052 decoding. (arm_record_coproc_data_proc): Update arm syscall
8054 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8055 <arm_syscall_record>: New field.
8056 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8059 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8061 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8062 register for push instruction recording.
8064 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8066 * arm-tdep.c (thumb_record_misc): Update to correct logical
8067 error while recording ldm, ldmia and pop instructions.
8069 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8071 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8073 2014-01-15 Pedro Alves <palves@redhat.com>
8075 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8076 (go32_resume, go32_fetch_registers, store_register)
8077 (go32_store_registers, go32_prepare_to_store)
8078 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8079 (go32_create_inferior, go32_can_run, go32_terminal_init)
8080 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8083 2014-01-15 Tom Tromey <tromey@redhat.com>
8085 * target.h (async_callback_ftype): New typedef.
8086 (struct target_ops) <to_async>: Use it.
8088 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8090 * python/py-value.c (get_field_type): Remove unnecessary curly
8091 braces for single-statement if block.
8093 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8095 * python/py-type.c (convert_field): Add missing empty line
8098 2014-01-14 Doug Evans <dje@google.com>
8100 * symfile.h (expand_symtabs_matching): Renamed from
8101 expand_partial_symbol_names. Update prototype.
8102 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8103 * symfile.c (expand_symtabs_matching): Renamed from
8104 expand_partial_symbol_names. New args file_matcher, kind.
8105 Rename arg fun to symbol_matcher.
8106 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8107 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8108 ada_expand_partial_symbol_name.
8109 (ada_make_symbol_completion_list): Update to call
8110 expand_symtabs_matching.
8111 (ada_add_global_exceptions): Call expand_symtabs_matching.
8112 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8113 call map_symbol_filenames.
8114 * symtab.c (sources_info): Update to call map_symbol_filenames.
8115 (search_symbols): Call expand_symtabs_matching.
8116 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8117 (default_make_symbol_completion_list_break_on): Update to call
8118 expand_symtabs_matching.
8119 (make_source_files_completion_list): Update to call
8120 map_symbol_filenames.
8122 2014-01-14 Doug Evans <dje@google.com>
8124 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8125 (expand_symtabs_symbol_matcher_ftype): New typedef.
8126 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8127 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8128 * symfile.c (expand_partial_symbol_names): Update to use
8129 expand_symtabs_symbol_matcher_ftype.
8130 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8131 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8132 Arg name_matcher renamed to symbol_matcher.
8133 * psymtab.c (recursively_search_psymtabs): Update to use
8134 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8136 (expand_symtabs_matching_via_partial): Update to use
8137 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8138 Arg name_matcher renamed to symbol_matcher.
8140 2014-01-14 Doug Evans <dje@google.com>
8142 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8143 (map_partial_symbol_filenames): Ditto.
8144 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8145 (map_partial_symbol_filenames): Ditto.
8146 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8147 (map_partial_symbol_filenames): Ditto.
8148 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8149 (map_partial_symbol_filenames): Ditto.
8150 * symtab.c: Delete #include "psymtab.h".
8152 2014-01-14 Pedro Alves <palves@redhat.com>
8153 Tom Tromey <tromey@redhat.com>
8155 * infrun.c (use_displaced_stepping): Use find_record_target
8156 instead of RECORD_IS_USED.
8157 (adjust_pc_after_break): Use record_full_is_used instead of
8159 * record-btrace.c (record_btrace_open): Call record_preopen
8160 instead of checking RECORD_IS_USED.
8161 * record-full.c (record_full_shortname)
8162 (record_full_core_shortname): New globals.
8163 (record_full_is_used): New function.
8164 (find_full_open): Call record_preopen instead of checking
8166 (init_record_full_ops): Set the target's shortname to
8167 record_full_shortname.
8168 (init_record_full_core_ops): Set the target's shortname to
8169 record_full_core_shortname.
8170 * record-full.h (record_full_is_used): Declare.
8171 * record.c (find_record_target): Make extern.
8172 (record_preopen): New function.
8173 * record.h (RECORD_IS_USED): Delete macro.
8174 (find_record_target, record_preopen): Declare functions.
8176 2014-01-14 Yao Qi <yao@codesourcery.com>
8178 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8179 'len''s type to ULONGEST.
8180 (core_xfer_shared_libraries_aix): Likewise.
8181 * gdbarch.c, gdbarch.h: Regenerated.
8182 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8183 Change type of 'len' to ULONGEST.
8184 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8185 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8187 2014-01-14 Yao Qi <yao@codesourcery.com>
8189 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8190 type of 'len' to ULONGEST.
8191 (linux_xfer_osdata_processgroups): Likewise.
8192 (linux_xfer_osdata_threads): Likewise.
8193 (linux_xfer_osdata_fds): Likewise.
8194 (linux_xfer_osdata_isockets): Likewise.
8195 (linux_xfer_osdata_shm): Likewise.
8196 (linux_xfer_osdata_sem): Likewise.
8197 (linux_xfer_osdata_msg): Likewise.
8198 (linux_common_xfer_osdata): Likewise.
8199 (struct osdata_type) <getter>: Likewise.
8200 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8203 2014-01-14 Yao Qi <yao@codesourcery.com>
8205 * target.h (target_xfer_partial_ftype): Update.
8206 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8208 * aix-thread.c (aix_thread_xfer_partial): Change type of
8209 argument 'len' to ULONGEST.
8210 * auxv.c (procfs_xfer_auxv): Likewise.
8211 (ld_so_xfer_auxv): Likewise.
8212 (memory_xfer_auxv): Likewise.
8213 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8214 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8215 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8216 * corelow.c (core_xfer_partial): Likewise.
8217 * ctf.c (ctf_xfer_partial): Likewise.
8218 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8220 (darwin_read_dyld_info): Likewise.
8221 (darwin_xfer_partial): Likewise.
8222 * exec.c (section_table_xfer_memory_partial): Likewise.
8223 (exec_xfer_partial): Likewise.
8224 * exec.h (section_table_xfer_memory_partial): Update
8226 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8227 instead of plongest.
8228 (gnu_xfer_partial): Likewise.
8229 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8230 (ia64_hpux_xfer_solib_got): Likewise.
8231 (ia64_hpux_xfer_partial): Likewise.
8232 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8233 * inf-ptrace.c (inf_ptrace_xfer_partial):
8234 * inf-ttrace.c (inf_ttrace_xfer_partial):
8235 * linux-nat.c (linux_xfer_siginfo): Likewise.
8236 (linux_nat_xfer_partial): Likewise.
8237 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8238 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8239 * monitor.c (monitor_xfer_memory): Likewise.
8240 (monitor_xfer_partial): Likewise.
8241 * procfs.c (procfs_xfer_partial): Likewise.
8242 * record-full.c (record_full_xfer_partial): Likewise.
8243 (record_full_core_xfer_partial): Likewise.
8244 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8245 instead of plongest.
8246 (gdbsim_xfer_partial): Likewise.
8247 * remote.c (remote_xfer_partial): Likewise.
8248 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8249 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8251 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8252 (rs6000_xfer_shared_libraries): Likewise.
8253 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8254 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8255 (sparc_xfer_partial): Likewise.
8256 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8257 (spu_xfer_partial): Likewise.
8258 * spu-multiarch.c (spu_xfer_partial): Likewise.
8259 * target.c (target_read_live_memory): Likewise.
8260 (memory_xfer_live_readonly_partial): Likewise.
8261 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8262 (target_xfer_partial, default_xfer_partial): Likewise.
8263 (current_xfer_partial): Likewise.
8264 * tracepoint.c (tfile_xfer_partial): Likewise.
8265 * windows-nat.c (windows_xfer_memory): Likewise. Call
8266 pulongest instead of plongest.
8267 (windows_xfer_partial): Likewise.
8268 (windows_xfer_shared_libraries): Likewise.
8270 2014-01-14 Yao Qi <yao@codesourcery.com>
8272 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8273 target_xfer_partial_ftype.
8275 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8279 * valops.c (value_struct_elt_bitpos): New function
8280 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8281 object to 'None' if the field name is an empty string ("").
8282 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8283 attribute to look for a field when 'name' is 'None'.
8284 (get_field_type): New function
8286 2014-01-13 Doug Evans <dje@google.com>
8289 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8290 (try_open_dwop_file): Ditto.
8291 * gdb_bfd.c: #include "vec.h".
8292 (bfdp): New typedef.
8293 (struct gdb_bfd_data): New member included_bfds.
8294 (gdb_bfd_unref): Unref all included bfds.
8295 (gdb_bfd_record_inclusion): New function.
8296 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8298 2014-01-13 Tom Tromey <tromey@redhat.com>
8300 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8302 2014-01-13 Tom Tromey <tromey@redhat.com>
8304 * defs.h (use_windows): Remove.
8305 * gdb.c (main): Update.
8306 * main.c (captured_main, gdb_main): Update.
8307 * main.h (struct captured_main_args) <use_windows>: Remove.
8308 * top.c (use_windows): Remove.
8310 2014-01-13 Tom Tromey <tromey@redhat.com>
8312 * defs.h (deprecated_flush_hook): Remove.
8314 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8317 * linux-thread-db.c (try_thread_db_load): Add parameter
8318 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8319 (try_thread_db_load_from_pdir_1): Move it there from here.
8320 (try_thread_db_load_from_sdir): Update caller.
8321 (try_thread_db_load_from_dir): Move it there from here.
8323 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8325 * regformats/regdat.sh: Always rewrite the register file.
8327 2014-01-13 Pedro Alves <palves@redhat.com>
8329 * Makefile.in (CHECK_HEADERS): New variable.
8330 (check-headers:): New rule.
8332 2014-01-13 Tom Tromey <tromey@redhat.com>
8334 * cli/cli-setshow.c (do_set_command): Update.
8335 * defs.h (deprecated_set_hook): Remove.
8336 * top.c (deprecated_set_hook): Remove.
8338 2014-01-13 Pedro Alves <palves@redhat.com>
8340 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8341 the tracepoint if the PC is a pseudo-register.
8343 2014-01-13 Tom Tromey <tromey@redhat.com>
8345 * defs.h (XCALLOC): Remove.
8346 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8347 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8348 * dwarf2loc.c (allocate_piece_closure): Likewise.
8349 * elfread.c (elf_symfile_segments): Likewise.
8350 (elf_symfile_segments): Likewise.
8351 * gdbtypes.c (copy_type_recursive): Likewise.
8352 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8353 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8354 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8356 * mt-tdep.c (mt_gdbarch_init): Likewise.
8357 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8359 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8360 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8361 * registry.c (registry_alloc_data): Likewise.
8362 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8363 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8364 * serial.c (serial_fdopen_ops): Likewise.
8365 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8367 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8368 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8371 2014-01-13 Tom Tromey <tromey@redhat.com>
8373 * defs.h (XMALLOC): Remove.
8374 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8375 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8376 * cli-out.c (struct ui_out *): Likewise.
8377 * cli/cli-dump.c (add_dump_command): Likewise.
8378 (add_dump_command): Likewise.
8379 * complaints.c (get_complaints): Likewise.
8380 (find_complaint): Likewise.
8381 * dwarf2-frame.c (execute_cfa_program): Likewise.
8382 * dwarf2read.c (abbrev_table_read_table): Likewise.
8383 * gdbarch.sh: Likewise.
8384 * gdbarch.c: Rebuild.
8385 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8386 * interps.c (interp_new): Likewise.
8387 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8388 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8389 * mi/mi-console.c (mi_console_file_new): Likewise.
8390 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8391 * mi/mi-out.c (mi_out_new): Likewise.
8392 * mi/mi-parse.c (mi_parse): Likewise.
8393 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8394 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8395 * observer.c (xalloc_observer_list_node): Likewise.
8396 * regcache.c (regcache_xmalloc_1): Likewise.
8397 * reggroups.c (reggroup_new): Likewise.
8398 (_initialize_reggroup): Likewise.
8399 * registry.c (register_data_with_cleanup): Likewise.
8400 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8401 * ser-base.c (serial_ttystate): Likewise.
8402 * ser-mingw.c (make_pipe_state): Likewise.
8403 * ser-pipe.c (pipe_open): Likewise.
8404 * serial.c (serial_open): Likewise.
8405 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8406 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8407 (tui_alloc_win_info): Likewise.
8408 (tui_add_content_elements): Likewise.
8409 * tui/tui-file.c (tui_file_new): Likewise.
8410 * tui/tui-out.c (tui_out_new): Likewise.
8411 * ui-file.c (mem_file_new): Likewise.
8412 * ui-out.c (push_level): Likewise.
8413 (make_cleanup_ui_out_end): Likewise.
8414 (append_header_to_list): Likewise.
8415 (ui_out_new): Likewise.
8416 * user-regs.c (user_reg_add_builtin): Likewise.
8418 2014-01-13 Tom Tromey <tromey@redhat.com>
8420 * defs.h (XZALLOC): Remove.
8421 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8422 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8423 (get_ada_tasks_inferior_data): Likewise.
8424 * auto-load.c (get_auto_load_pspace_data): Likewise.
8425 * auxv.c (get_auxv_inferior_data): Likewise.
8426 * bfd-target.c (target_bfd_reopen): Likewise.
8427 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8428 (deprecated_insert_raw_breakpoint): Likewise.
8429 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8430 * corelow.c (core_open): Likewise.
8431 * darwin-nat.c (darwin_check_new_threads): Likewise.
8432 (darwin_attach_pid): Likewise.
8433 * dummy-frame.c (dummy_frame_push): Likewise.
8434 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8435 * dwarf2loc.c (allocate_piece_closure): Likewise.
8436 * elfread.c (elf_symfile_segments): Likewise.
8437 * eval.c (ptrmath_type_p): Likewise.
8438 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8439 * gdbtypes.c (alloc_type_arch): Likewise.
8440 (alloc_type_instance): Likewise.
8441 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8442 * inf-child.c (inf_child_can_use_agent): Likewise.
8443 * inflow.c (get_inflow_inferior_data): Likewise.
8444 * infrun.c (save_infcall_suspend_state): Likewise.
8445 * jit.c (jit_reader_load): Likewise.
8446 (get_jit_objfile_data): Likewise.
8447 (get_jit_program_space_data): Likewise.
8448 (jit_object_open_impl): Likewise.
8449 (jit_symtab_open_impl): Likewise.
8450 (jit_block_open_impl): Likewise.
8451 (jit_frame_sniffer): Likewise.
8452 * linux-fork.c (add_fork): Likewise.
8453 * maint.c (make_command_stats_cleanup): Likewise.
8454 * objfiles.c (get_objfile_pspace_data): Likewise.
8455 * opencl-lang.c (struct lval_closure): Likewise.
8456 * osdata.c (osdata_start_osdata): Likewise.
8457 * progspace.c (new_address_space): Likewise.
8458 (add_program_space): Likewise.
8459 * remote-sim.c (get_sim_inferior_data): Likewise.
8460 * sh-tdep.c (sh_gdbarch_init): Likewise.
8461 * skip.c (Ignore): Likewise.
8462 (skip_delete_command): Likewise.
8463 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8464 (library_list_start_library): Likewise.
8465 (solib_aix_current_sos): Likewise.
8466 * solib-darwin.c (get_darwin_info): Likewise.
8467 (darwin_current_sos): Likewise.
8468 * solib-dsbt.c (get_dsbt_info): Likewise.
8469 * solib-ia64-hpux.c (new_so_list): Likewise.
8470 (ia64_hpux_get_solib_linkage_addr): Likewise.
8471 * solib-spu.c (append_ocl_sos): Likewise.
8472 (spu_current_sos): Likewise.
8473 * solib-svr4.c (get_svr4_info): Likewise.
8474 (svr4_keep_data_in_core): Likewise.
8475 (library_list_start_library): Likewise.
8476 (svr4_default_sos): Likewise.
8477 (svr4_read_so_list): Likewise.
8478 * solib-target.c (library_list_start_library): Likewise.
8479 (solib_target_current_sos): Likewise.
8480 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8481 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8482 * symfile.c (default_symfile_segments): Likewise.
8483 * target-descriptions.c (tdesc_data_init): Likewise.
8484 (tdesc_create_reg): Likewise.
8485 (struct tdesc_type *): Likewise.
8486 (tdesc_create_vector): Likewise.
8487 (tdesc_set_struct_size): Likewise.
8488 (struct tdesc_type *): Likewise.
8489 (tdesc_free_feature): Likewise.
8490 (tdesc_create_feature): Likewise.
8491 * windows-nat.c (windows_add_thread): Likewise.
8492 (windows_make_so): Likewise.
8493 * xml-support.c (gdb_xml_body_text): Likewise.
8494 (gdb_xml_create_parser_and_cleanup): Likewise.
8495 (xml_process_xincludes): Likewise.
8496 * xml-syscall.c (allocate_syscalls_info): Likewise.
8497 (syscall_create_syscall_desc): Likewise.
8499 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8501 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8502 function, with code from i386_stap_parse_special_token.
8503 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8504 (i386_stap_parse_special_token): Move code to the two functions
8507 2014-01-09 Pedro Alves <palves@redhat.com>
8508 Hui Zhu <hui@codesourcery.com>
8511 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8512 bp_err_string. Don't mark the location shlib_disabled if the
8513 error thrown wasn't a generic or memory error. Catch errors
8514 thrown while inserting breakpoints in overlayed code. Output
8515 error message of software breakpoints.
8516 * remote.c (remote_insert_breakpoint): If this breakpoint has
8517 target-side commands but this stub doesn't support Z0 packets,
8518 throw NOT_SUPPORTED_ERROR error.
8519 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8520 * target.h (target_insert_breakpoint): Extend comment.
8521 (target_insert_hw_breakpoint): Add comment.
8523 2014-01-08 Pedro Alves <palves@redhat.com>
8525 * remote.c (remote_add_thread): Add threads silently if starting
8527 (remote_notice_new_inferior): If in all-stop, and starting up,
8528 don't call notice_new_inferior.
8529 (get_current_thread): New function, factored out from ...
8530 (add_current_inferior_and_thread): ... this. Adjust.
8531 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8532 found any thread, then select the remote's current thread as GDB's
8535 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8537 * NEWS: Create a new section for the next release branch.
8538 Rename the section of the current branch, now that it has
8541 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8543 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8544 * version.in: Bump version to 7.7.50.DATE-cvs.
8546 2014-01-08 Yao Qi <yao@codesourcery.com>
8548 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8549 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8550 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8552 2014-01-08 Yao Qi <yao@codesourcery.com>
8554 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8555 return value of bfd_get_filename to symbol_file_add_from_bfd.
8557 2014-01-08 Pierre Muller <muller@sourceware.org>
8560 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8561 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8562 to prim_record_mininal_symbol_and_info.
8563 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8564 in call to prim_record_minimal_symbol_and_info.
8565 (read_pe_exported_syms): Set index field of section_data.
8567 2014-01-07 Andrew Pinski <apinski@cavium.com>
8569 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8570 * features/aarch64.c: Regenerate.
8572 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8574 * target.c (return_null): Define.
8575 (update_current_target): Use it instead of return_zero for
8576 functions that return a pointer.
8578 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8580 * source.c (add_path): Fix check for duplicated paths in the previously
8583 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8585 * ada-lang.c: Remove duplicated include statements.
8586 * alphabsd-nat.c: Ditto.
8587 * amd64-darwin-tdep.c: Ditto.
8588 * amd64fbsd-nat.c: Ditto.
8589 * auto-load.c: Ditto.
8591 * breakpoint.c: Ditto.
8593 * fork-child.c: Ditto.
8594 * gdb_usleep.c: Ditto.
8595 * i386-darwin-tdep.c: Ditto.
8596 * i386fbsd-nat.c: Ditto.
8598 * inferior.c: Ditto.
8600 * linux-nat.c: Ditto.
8601 * linux-tdep.c: Ditto.
8602 * m68kbsd-nat.c: Ditto.
8603 * m68klinux-nat.c: Ditto.
8604 * microblaze-tdep.c: Ditto.
8605 * mips-linux-tdep.c: Ditto.
8606 * mn10300-tdep.c: Ditto.
8607 * nto-tdep.c: Ditto.
8608 * opencl-lang.c: Ditto.
8610 * printcmd.c: Ditto.
8611 * regcache.c: Ditto.
8612 * remote-m32r-sdi.c: Ditto.
8616 * tilegx-linux-nat.c: Ditto.
8617 * tilegx-tdep.c: Ditto.
8618 * tracepoint.c: Ditto.
8620 * vaxbsd-nat.c: Ditto.
8621 * windows-nat.c: Ditto.
8622 * xtensa-tdep.c: Ditto.
8624 2014-01-07 Yao Qi <yao@codesourcery.com>
8626 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8628 2014-01-07 Yao Qi <yao@codesourcery.com>
8629 Joel Brobecker <brobecker@adacore.com>
8631 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8632 (pdc_write_regs): Likewise.
8633 (fetch_regs_kernel_thread): Likewise.
8634 (store_regs_kernel_thread): Likewise.
8636 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8638 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8639 tagged type objects to their actual type.
8641 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8643 * ada-valprint.c (print_field_values): Add "language" parameter.
8644 Update calls to print_field_values and print_variant_part.
8645 Pass new parameter "language" in call to val_print instead
8646 of "current_language". Replace call to ada_val_print by call
8648 (print_variant_part): Add "language" parameter.
8649 (ada_val_print_struct_union): Update call to print_field_values.
8651 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8653 * ada-valprint.c (ui_memcpy): Delete.
8654 (ada_print_floating): Update documentation. Add empty line
8655 between between function documentation and implementation.
8656 Delete variable "buffer". Use ui_file_xstrdup in place of
8657 ui_file_put. Minor adjustments following this change.
8659 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8661 * ada-valprint.c (ada_val_print_string): New function,
8662 extracted from ada_val_print_array.
8663 (ada_val_print_array): Replace extracted code by call
8664 to ada_val_print_string followed by a return. Move
8665 "else" branch to the function's top block.
8667 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8669 * ada-valprint.c (ada_val_print_array): Move implementation
8670 down. Rename parameter "offset" and "val" into "offset_aligned"
8671 and "original_value" respectively. Add parameter "offset".
8673 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8675 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8676 re-organizing the code. Change the "???" message printed
8677 when target type is a TYPE_CODE_UNDEF into
8678 "<ref to undefined type>".
8680 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8682 * ada-valprint.c (print_record): Delete, implementation inlined...
8683 (ada_val_print_struct_union): ... here. Remove call to
8684 ada_check_typedef in inlined implementation.
8686 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8688 * ada-valprint.c (ada_val_print_gnat_array): New function,
8689 extracted from ada_val_print_1;
8690 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8691 (ada_val_print_flt, ada_val_print_struct_union)
8692 (ada_val_print_ref): Likewise.
8693 (ada_val_print_1): Delete variables i and elttype.
8694 Replace extracted-out code by call to corresponding
8697 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8699 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8701 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8703 * ada-valprint.c (ada_val_print_1): Replace calls to
8704 ada_val_print_1 by calls to val_print.
8706 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8708 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8709 Update calls to self accordingly. Replace calls to c_val_print
8710 by calls to val_print.
8712 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8714 * ada-valprint.c (print_record): Delete declaration.
8715 (adjust_type_signedness, ada_val_print_1): Likewise.
8716 (ada_val_print): Move function implementation down.
8717 (print_variant_part, print_field_values, print_record):
8718 Move function implementation up.
8720 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8722 * python/py-type.c (typy_get_name): New function.
8723 (type_object_getset): Add entry for attribute "name".
8724 * NEWS: Add entry mentioning this new attribute.
8726 2014-01-07 Yao Qi <yao@codesourcery.com>
8728 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8731 2014-01-07 Yao Qi <yao@codesourcery.com>
8733 * gnu-nat.c (info_port_rights): Add qualifier const to
8736 2014-01-07 Yao Qi <yao@codesourcery.com>
8738 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8740 2014-01-07 Yao Qi <yao@codesourcery.com>
8742 * gnu-nat.c (make_inf) Update declaration.
8743 (make_inf): Make it static.
8744 (inf_set_traced): Likewise.
8745 (inf_port_to_thread, inf_task_died_status): Likewise.
8747 2014-01-07 Yao Qi <yao@codesourcery.com>
8749 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8751 2014-01-07 Yao Qi <yao@codesourcery.com>
8753 * gnu-nat.c (_initialize_gnu_nat): Declare.
8755 2014-01-07 Yao Qi <yao@codesourcery.com>
8757 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8759 (struct gdbarch_info) <byte_order>: Change type to
8761 <byte_order_for_code>: Likewise.
8762 * gdbarch.c, gdbarch.h: Regenerated.
8764 2014-01-06 Sasha Smundak <asmundak@google.com>
8766 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8768 2014-01-06 Tom Tromey <tromey@redhat.com>
8770 * doublest.c (convert_doublest_to_floatformat): Use const, not
8772 * somread.c (som_symtab_read): Likewise.
8774 2014-01-07 Hui Zhu <hui@codesourcery.com>
8776 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8777 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8778 (gdb_bfd_fopen): Ditto.
8779 (gdb_bfd_openr): Ditto.
8780 (gdb_bfd_openw): Ditto.
8781 (gdb_bfd_openr_iovec): Ditto.
8782 (gdb_bfd_fdopenr): Ditto.
8783 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8784 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8786 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8788 * symfile-mem.c (symbol_file_add_from_memory): Removed
8789 gdb_bfd_stash_filename.
8791 2014-01-03 Doug Evans <dje@google.com>
8793 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8796 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8798 Update year range in copyright notice of all files.
8800 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8802 * top.c (print_gdb_version): Set copyright year to 2014.
8804 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8806 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8808 For older changes see ChangeLog-2013.
8814 version-control: never