1 2014-06-04 Tom Tromey <tromey@redhat.com>
3 * target-delegates.c: Rebuild.
4 * target.c (default_thread_address_space): New function.
5 (target_thread_address_space): Simplify.
6 * target.h (struct target_ops) <to_thread_address_space>: Add
9 2014-06-04 Doug Evans <xdje42@gmail.com>
11 * guile/scm-type.c (type_smob): Remove duplicate typedef.
13 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
15 * record-btrace.c: Include event-loop.h and inf-loop.h.
16 (record_btrace_resume_exec_dir)
17 (record_btrace_async_inferior_event_handler)
18 (record_btrace_handle_async_inferior_event): New.
19 (record_btrace_open): Create async event handler.
20 (record_btrace_close): Delete async event handler.
21 (record_btrace_resume): Set record_btrace_resume_exec_dir,
22 Mark async event handler.
23 (record_btrace_execution_direction): New.
24 (init_record_btrace_ops): Initialize to_execution_direction.
26 2014-06-03 Doug Evans <xdje42@gmail.com>
28 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
29 (gdbscm_make_parameter): Ditto.
31 2014-06-03 Doug Evans <dje@google.com>
33 * exec.c (exec_close_1): Call clear_section_table instead of
35 (clear_section_table): New function.
36 (resize_section_table): Make static. Rename arg num_added to
38 * exec.h (clear_section_table): Declare.
39 (resize_section_table): Delete.
40 * progspace.c (release_program_space): Call clear_section_table
41 instead of resize_section_table.
43 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
45 * NEWS (Python Scripting): Add entry about the new xmethods
48 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
50 * python/py-xmethods.c: New file.
51 * python/py-objfile.c (objfile_object): New field 'xmethods'.
52 (objfpy_dealloc): XDECREF on the new xmethods field.
53 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
55 (objfpy_get_xmethods): New function.
56 (objfile_getset): New entry 'xmethods'.
57 * python/py-progspace.c (pspace_object): New field 'xmethods'.
58 (pspy_dealloc): XDECREF on the new xmethods field.
59 (pspy_new, pspace_to_pspace_object): Initialize xmethods
61 (pspy_get_xmethods): New function.
62 (pspace_getset): New entry 'xmethods'.
63 * python/python-internal.h: Add declarations for new functions.
64 * python/python.c (_initialize_python): Invoke
65 gdbpy_initialize_xmethods.
66 * python/lib/gdb/__init__.py (xmethods): New
68 * python/lib/gdb/xmethod.py: New file.
69 * python/lib/gdb/command/xmethods.py: New file.
71 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
73 * eval.c (evaluate_subexp_standard): Call the xmethod if the
74 best match method returned by find_overload_match is an xmethod.
75 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
76 the best matching operator returned by find_overload_match is an
78 * valops.c: #include "extension.h".
79 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
80 Return void. The list of matching source methods is returned in
81 "fn_list" and a vector of matching debug method workers is
82 returned in "xm_worker_vec". Update all callers.
83 (value_find_oload_method_list): Likewise.
84 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
85 non-NULL, then the index of the best matching method in this
86 vector is returned. Update all callers.
87 (find_overload_match): Include xmethods while performing overload
90 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
92 * defs.h (enum lval_type): New enumerator "lval_xcallable".
93 * extension-priv.h (struct extension_language_ops): Add the
95 * extension.c (new_xmethod_worker, clone_xmethod_worker,
96 get_matching_xmethod_workers, get_xmethod_argtypes,
97 invoke_xmethod, free_xmethod_worker,
98 free_xmethod_worker_vec): New functions.
99 * extension.h: #include "common/vec.h".
100 New function declarations.
101 (struct xmethod_worker): New struct.
102 (VEC (xmethod_worker_ptr)): New vector type.
103 (xmethod_worker_ptr): New typedef.
104 (xmethod_worker_vec): Likewise.
105 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
107 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
108 (struct builtin_type): New field "xmethod".
109 * valarith.c (value_ptradd): Assert that the value argument is not
111 * valops.c (value_must_coerce_to_target): Return 0 for
112 lval_xcallable values.
113 * value.c (struct value): New field XM_WORKER in the field
115 (value_address, value_raw_address): Return 0 for lval_xcallable
117 (set_value_address): Assert that the value is not an
119 (value_free): Free the associated xmethod worker when freeing
120 lval_xcallable values.
121 (set_value_component_location): Assert that the WHOLE value is not
123 (value_of_xmethod, call_xmethod): New functions.
124 * value.h: Declare "struct xmethod_worker".
125 Declare new functions value_of_xmethod, call_xmethod.
127 2014-06-03 Joel Brobecker <brobecker@adacore.com>
128 Pedro Alves <palves@redhat.com>
131 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
132 New function, extracted from software_breakpoint_inserted_here_p.
133 (software_breakpoint_inserted_here_p): Replace factored out code
134 by call to find_non_raw_software_breakpoint_inserted_here.
135 (bp_target_info_copy_insertion_state): New function.
136 (bkpt_insert_location): Handle the case of a single-step
137 breakpoint already inserted at the same address.
138 (bkpt_remove_location): Handle the case of a single-step
139 breakpoint still inserted at the same address.
140 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
141 breakpoint already inserted at the same address.
142 (deprecated_remove_raw_breakpoint): Handle the case of a
143 non-raw breakpoint still inserted at the same address.
144 (find_single_step_breakpoint): New function, extracted from
145 single_step_breakpoint_inserted_here_p.
146 (find_single_step_breakpoint): New function,
147 factored out from single_step_breakpoint_inserted_here_p.
148 (single_step_breakpoint_inserted_here_p): Reimplement.
150 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
152 Pushed by Joel Brobecker <brobecker@adacore.com>
153 * source.c (show_substitute_path_command): Fix display of matching
156 2014-06-03 Gary Benson <gbenson@redhat.com>
158 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
160 2014-06-02 Doug Evans <xdje42@gmail.com>
162 Add parameter support for Guile.
163 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
164 (SUBDIR_GUILE_SRCS): Add scm-param.c.
165 (scm-param.o): New rule.
166 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
167 (gdbscm_misc_error): Declare.
168 (gdbscm_canonicalize_command_name): Declare.
169 (gdbscm_scm_to_host_string): Declare.
170 (gdbscm_scm_from_host_string): Declare.
171 (gdbscm_initialize_parameters): Declare.
172 * guile/guile.c (initialize_gdb_module): Call
173 gdbscm_initialize_parameters.
174 * guile/lib/gdb.scm: Export parameter symbols.
175 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
176 cmdscm_canonicalize_name and made public. All callers updated.
177 * guile/scm-exception.c (gdbscm_misc_error): New function.
178 * guile/scm-param.c: New file.
179 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
180 (gdbscm_scm_to_host_string): New function.
181 (gdbscm_scm_from_host_string): New function.
182 * scm-utils.c (gdbscm_gc_dup_argv): New function.
184 2014-06-02 Doug Evans <xdje42@gmail.com>
186 Add command support for Guile.
187 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
188 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
189 (scm-cmd.o): New rule.
190 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
191 (gdbscm_user_error_p): Declare.
192 (gdbscm_parse_command_name): Declare.
193 (gdbscm_valid_command_class_p): Declare.
194 (gdbscm_initialize_commands): Declare.
195 * guile/guile.c (initialize_gdb_module): Call
196 gdbscm_initialize_commands.
197 * guile/lib/gdb.scm: Export command symbols.
198 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
199 (throw-user-error): New function.
200 * guile/scm-cmd.c: New file.
201 * guile/scm-exception.c (user_error_symbol): New static global.
202 (gdbscm_user_error_p): New function.
203 (gdbscm_initialize_exceptions): Set user_error_symbol.
204 * scm-utils.c (gdbscm_gc_xstrdup): New function.
206 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
208 * top.c (command_loop): Handle comments here...
209 (command_line_input): ... not here.
211 2014-06-02 Doug Evans <xdje42@gmail.com>
213 Add progspace support for Guile.
214 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
215 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
216 (scm-progspace.o): New rule.
217 * guile/guile-internal.h (pspace_smob): New typedef.
218 (psscm_pspace_smob_pretty_printers): Declare.
219 (psscm_pspace_smob_from_pspace): Declare.
220 (psscm_scm_from_pspace): Declare.
221 * guile/guile.c (initialize_gdb_module): Call
222 gdbscm_initialize_pspaces.
223 * guile/lib/gdb.scm: Export progspace symbols.
224 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
226 (append-pretty-printer!): Ditto.
227 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
229 * guile/scm-progspace.c: New file.
231 2014-06-03 Alan Modra <amodra@gmail.com>
233 * ppc64-tdep.c (ppc64_standard_linkage8): New.
234 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
236 2014-06-02 Doug Evans <dje@google.com>
238 Add support for skeletonless type units.
239 * dwarf2read.c (struct dwarf2_per_objfile): New member
240 n_allocated_type_units.
241 (struct dwarf2_per_objfile) <tu_stats>: New member
242 nr_all_type_units_reallocs.
243 (create_signatured_type_table_from_index): Initialize
244 n_allocated_type_units
245 (create_all_type_units): Ditto.
246 (add_type_unit): Move up in file. New arg slot.
247 All callers updated. Increase space for all_type_units more
249 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
250 (lookup_dwo_signatured_type): Handle skeletonless TUs.
251 (lookup_dwp_signatured_type): Ditto.
252 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
254 (build_type_psymtabs_1): Leave type_unit_groups as
255 NULL if no TUs present.
256 (print_tu_stats): New function.
257 (process_skeletonless_type_unit): New function.
258 (process_dwo_file_for_skeletonless_type_units): New
260 (process_skeletonless_type_units): New function.
261 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
262 Call print tu_stats if debugging enabled.
264 2014-06-02 Pedro Alves <palves@redhat.com>
266 * breakpoint.c (build_target_command_list): Don't build a command
267 list if we have any duplicate location that isn't a dprintf.
269 2014-06-02 Pedro Alves <palves@redhat.com>
271 * breakpoint.c (dprintf_breakpoint_hit): New function.
272 (initialize_breakpoint_ops): Install it as dprintf's
273 breakpoint_hit method.
275 2014-06-02 Joel Brobecker <brobecker@adacore.com>
277 * source.c (substitute_path_rule_matches): Simplify using
278 filename_ncmp instead of FILENAME_CMP.
280 2014-06-02 Joel Brobecker <brobecker@adacore.com>
282 * source.c (substitute_path_rule_matches): Remove trailing spaces.
284 2014-06-01 Ludovic Courtès <ludo@gnu.org>
286 * configure.ac: When Guile is available, check for the
287 availability of 'scm_new_smob'.
288 * configure, config.h.in: Regenerate.
289 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
292 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
294 * frame.c (struct frame_info): Add stop_string field.
295 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
296 (get_prev_frame_always): Old content moved into
297 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
298 TRY_CATCH, handle MEMORY_ERROR exceptions.
299 (frame_stop_reason_string): New function definition.
300 * frame.h (unwind_stop_reason_to_string): Extend comment to
301 mention frame_stop_reason_string.
302 (frame_stop_reason_string): New function declaration.
303 * stack.c (frame_info): Switch to frame_stop_reason_string.
304 (backtrace_command_1): Switch to frame_stop_reason_string.
305 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
306 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
307 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
309 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
311 * frame.c (frame_stop_reason_string): Rename to ...
312 (unwind_stop_reason_to_string): this.
313 * frame.h (frame_stop_reason_string): Rename to ...
314 (unwind_stop_reason_to_string): this.
315 * stack.c (frame_info): Update call to frame_stop_reason_string.
316 (backtrace_command_1): Likewise.
317 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
318 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
320 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
322 * frame.c (remove_prev_frame): New function.
323 (get_prev_frame_if_no_cycle): Create / discard cleanup using
326 2014-05-29 Pedro Alves <palves@redhat.com>
328 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
329 and make it const. When a single-step decays to a continue,
330 clear 'step', not 'hw_step'. Pass whether the caller wanted
331 to step to user_visible_resume_ptid, not what we ask the
334 2014-05-29 Pedro Alves <palves@redhat.com>
336 * infrun.c (process_event_stop_test, handle_step_into_function)
337 (handle_step_into_function_backward): Adjust.
338 Don't set the even thread's stop_step and call stop_waiting before
339 calling end_stepping_range. Instead do that ...
340 (end_stepping_range): ... here. Take an ecs pointer parameter.
342 2014-05-29 Pedro Alves <palves@redhat.com>
344 * infrun.c (stop_stepping): Rename to ...
345 (stop_waiting): ... this.
346 (proceed): Update comment.
347 (process_event_stop_test, handle_inferior_event)
348 (handle_signal_stop, handle_step_into_function)
349 (handle_step_into_function_backward): Update.
351 2014-05-29 Pedro Alves <palves@redhat.com>
353 * infcall.c (run_inferior_call): Don't check whether the current
354 thread is running after the proceed call.
356 2014-05-29 Pedro Alves <palves@redhat.com>
357 Tom Tromey <tromey@redhat.com>
359 * NEWS: Mention "maint set target-async", "set mi-async", and that
360 background execution commands are now always available.
361 * target.h (target_async_permitted): Update comment.
362 * target.c (target_async_permitted, target_async_permitted_1):
364 (set_target_async_command): Rename to ...
365 (maint_set_target_async_command): ... this.
366 (show_target_async_command): Rename to ...
367 (maint_show_target_async_command): ... this.
368 (_initialize_target): Adjust.
369 * infcmd.c (prepare_execution_command): Make extern.
370 * inferior.h (prepare_execution_command): Declare.
371 * infrun.c (set_observer_mode): Leave target async alone.
372 * mi/mi-interp.c (mi_interpreter_init): Install
373 mi_on_sync_execution_done as sync_execution_done observer.
374 (mi_on_sync_execution_done): New function.
375 (mi_execute_command_input_handler): Don't print the prompt if we
376 just started a synchronous command with an async target.
377 (mi_on_resume): Check sync_execution before printing prompt.
378 * mi/mi-main.h (mi_async_p): Declare.
379 * mi/mi-main.c: Include gdbcmd.h.
380 (mi_async_p): New function.
381 (mi_async, mi_async_1): New globals.
382 (set_mi_async_command, show_mi_async_command, mi_async): New
384 (exec_continue): Call prepare_execution_command.
385 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
386 (mi_execute_async_cli_command): Use mi_async_p.
387 (_initialize_mi_main): Install "set mi-async". Make
388 "target-async" a deprecated alias.
390 2014-05-29 Pedro Alves <palves@redhat.com>
392 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
393 (_initialize_cli_interp): Adjust.
394 * event-loop.c: Include "observer.h".
395 (start_event_loop): Notify 'command_error' observers instead of
396 calling display_gdb_prompt. Remove FIXME comment.
397 * event-top.c (display_gdb_prompt): Remove call into the
399 * inf-loop.c: Include "observer.h".
400 (inferior_event_handler): Notify 'command_error' observers instead
401 of calling display_gdb_prompt.
402 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
403 observers instead of calling display_gdb_prompt.
404 * interps.c (interp_set): Don't call display_gdb_prompt.
405 (current_interp_display_prompt_p): Delete.
406 * interps.h (interp_prompt_p): Delete declaration.
407 (interp_prompt_p_ftype): Delete.
408 (struct interp_procs) <prompt_proc_p>: Delete field.
409 (current_interp_display_prompt_p): Delete declaration.
410 * mi-interp.c (mi_interpreter_prompt_p): Delete.
411 (_initialize_mi_interp): Adjust.
412 * tui-interp.c (tui_init): Install 'sync_execution_done' and
413 'command_error' observers.
414 (tui_on_sync_execution_done, tui_on_command_error): New
416 (tui_display_prompt_p): Delete.
417 (_initialize_tui_interp): Adjust.
419 2014-05-29 Pedro Alves <palves@redhat.com>
422 * cli/cli-interp.c: Include infrun.h and observer.h.
423 (cli_uiout, cli_interp): New globals.
424 (cli_on_signal_received, cli_on_end_stepping_range)
425 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
427 (cli_interpreter_init): Install them as 'end_stepping_range',
428 'signal_received' 'signal_exited', 'exited' and 'no_history'
430 (_initialize_cli_interp): Remove cli_interp local.
431 * infrun.c (handle_inferior_event): Call the several stop reason
432 observers instead of printing the stop reason directly.
433 (end_stepping_range): New function.
434 (print_end_stepping_range_reason, print_signal_exited_reason)
435 (print_exited_reason, print_signal_received_reason)
436 (print_no_history_reason): Make static, and add an uiout
437 parameter. Print to that instead of to CURRENT_UIOUT.
438 * infrun.h (print_end_stepping_range_reason)
439 (print_signal_exited_reason, print_exited_reason)
440 (print_signal_received_reason print_no_history_reason): New
442 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
444 <cli_uiout>: New field.
445 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
446 uiout for CLI output. Install 'signal_received',
447 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
449 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
450 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
451 (mi_on_no_history): New functions.
452 (ui_out_free_cleanup): Delete function.
453 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
454 instead use the one already stored in the MI interpreter data.
456 * tui/tui-interp.c: Include infrun.h and observer.h.
457 (tui_interp): New global.
458 (tui_on_signal_received, tui_on_end_stepping_range)
459 (tui_on_signal_exited, tui_on_exited)
460 (tui_on_no_history): New functions.
461 (tui_init): Install them as 'end_stepping_range',
462 'signal_received' 'signal_exited', 'exited' and 'no_history'
464 (_initialize_tui_interp): Delete tui_interp local.
466 2014-05-29 Pedro Alves <palves@redhat.com>
469 * linux-nat.c (linux_nat_resume_callback): Rename the second
470 parameter to 'except'. Skip LP if it points to EXCEPT.
471 (linux_nat_resume): Don't mark the event lwp as not stopped
472 before resuming sibling lwps. Instead ask
473 linux_nat_resume_callback to skip the event lwp. Mark it as not
474 stopped after actually resuming it.
475 (linux_handle_syscall_trap): Mark the lwp as not stopped after
477 (wait_lwp): Mark the lwp as stopped here.
478 (stop_wait_callback): Mark the lwp as not stopped right after
479 resuming it. Don't mark lwps as stopped here.
480 (linux_nat_filter_event): Mark the lwp as stopped earlier.
481 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
483 2014-05-29 Pedro Alves <palves@redhat.com>
486 * infrun.c (resume): Determine how much to resume depending on
487 whether the caller wanted a step, not whether we can hardware step
488 the target. Mark all threads that we intend to run as running,
489 unless we're calling an inferior function.
490 (normal_stop): If the thread is running an infcall, don't finish
492 * target.c (target_resume): Don't mark threads as running here.
494 2014-05-28 Joel Brobecker <brobecker@adacore.com>
496 * serial.c (_initialize_serial): Remove support for
497 the "set remotebaud" and "show remotebaud" commands.
498 * NEWS: Add entry documenting the removal of that command.
500 2014-05-28 Yao Qi <yao@codesourcery.com>
502 * charset.c: Fix typo in comments.
504 2014-05-27 Gary Benson <gbenson@redhat.com>
506 * utils.c (internal_vproblem): Prompt for a bug report.
508 2014-05-26 Andy Wingo <wingo@igalia.com>
510 * guile/scm-arch.c (arscm_mark_arch_smob):
511 * guile/scm-block.c (bkscm_mark_block_smob)
512 (bkscm_mark_block_syms_progress_smob):
513 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
514 * guile/scm-exception.c (exscm_mark_exception_smob):
515 * guile/scm-frame.c (frscm_mark_frame_smob):
516 * guile/scm-iterator.c (itscm_mark_iterator_smob):
517 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
518 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
519 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
520 (ppscm_mark_pretty_printer_worker_smob):
521 * guile/scm-symbol.c (syscm_mark_symbol_smob):
522 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
523 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
524 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
526 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
529 2014-05-26 Andy Wingo <wingo@igalia.com>
530 Doug Evans <xdje42@gmail.com>
532 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
533 empty_base_class. All uses updated.
534 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
535 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
537 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
538 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
539 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
540 (gdbscm_gsmob_has_property_p, add_property_name)
541 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
542 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
543 (gdb-object-has-property?, gdb-object-properties): Remove.
544 (gdb-object-kind): Renamed from gsmob-kind.
546 2014-05-26 Andy Wingo <wingo@igalia.com>
548 * configure.ac (try_guile_versions): Allow building with guile 2.2.
549 * configure: Regenerate.
551 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
553 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
555 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
557 * record-btrace.c (record_btrace_allow_memory_access): Remove.
558 (replay_memory_access_read_only, replay_memory_access_read_write)
559 (replay_memory_access_types, replay_memory_access)
560 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
561 (cmd_set_record_btrace, cmd_show_record_btrace)
562 (cmd_show_replay_memory_access): New.
563 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
564 (record_btrace_remove_breakpoint): Replace
565 record_btrace_allow_memory_access with replay_memory_access.
566 (_initialize_record_btrace): Add commands.
569 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
571 * aarch64-linux-nat.c (asm/ptrace.h): Include.
573 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
575 * MAINTAINERS (Write After Approval): Move self back from
578 2014-05-22 Pedro Alves <palves@redhat.com>
580 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
581 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
582 (disable_randomization, enum exec_direction_kind)
583 (execution_direction, stop_registers, start_remote)
584 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
585 (wait_for_inferior, normal_stop, get_last_target_status)
586 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
587 (insert_step_resume_breakpoint_at_sal)
588 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
589 (set_step_info, print_stop_event, signal_stop_state)
590 (signal_print_state, signal_pass_state, signal_stop_update)
591 (signal_print_update, signal_pass_update)
592 (update_signals_program_target, clear_exit_convenience_vars)
593 (displaced_step_dump_bytes, update_observer_mode)
594 (signal_catch_update, gdb_signal_from_command): Move
596 * infrun.h: ... to this new file.
597 * amd64-tdep.c: Include infrun.h.
598 * annotate.c: Include infrun.h.
599 * arch-utils.c: Include infrun.h.
600 * arm-linux-tdep.c: Include infrun.h.
601 * arm-tdep.c: Include infrun.h.
602 * break-catch-sig.c: Include infrun.h.
603 * breakpoint.c: Include infrun.h.
604 * common/agent.c: Include infrun.h instead of inferior.h.
605 * corelow.c: Include infrun.h.
606 * event-top.c: Include infrun.h.
607 * go32-nat.c: Include infrun.h.
608 * i386-tdep.c: Include infrun.h.
609 * inf-loop.c: Include infrun.h.
610 * infcall.c: Include infrun.h.
611 * infcmd.c: Include infrun.h.
612 * infrun.c: Include infrun.h.
613 * linux-fork.c: Include infrun.h.
614 * linux-nat.c: Include infrun.h.
615 * linux-thread-db.c: Include infrun.h.
616 * monitor.c: Include infrun.h.
617 * nto-tdep.c: Include infrun.h.
618 * procfs.c: Include infrun.h.
619 * record-btrace.c: Include infrun.h.
620 * record-full.c: Include infrun.h.
621 * remote-m32r-sdi.c: Include infrun.h.
622 * remote-mips.c: Include infrun.h.
623 * remote-notif.c: Include infrun.h.
624 * remote-sim.c: Include infrun.h.
625 * remote.c: Include infrun.h.
626 * reverse.c: Include infrun.h.
627 * rs6000-tdep.c: Include infrun.h.
628 * s390-linux-tdep.c: Include infrun.h.
629 * solib-irix.c: Include infrun.h.
630 * solib-osf.c: Include infrun.h.
631 * solib-svr4.c: Include infrun.h.
632 * target.c: Include infrun.h.
633 * top.c: Include infrun.h.
634 * windows-nat.c: Include infrun.h.
635 * mi/mi-interp.c: Include infrun.h.
636 * mi/mi-main.c: Include infrun.h.
637 * python/py-threadevent.c: Include infrun.h.
639 2014-05-22 Pedro Alves <palves@redhat.com>
641 * infrun.c (handle_inferior_event): Store the exit code for
642 --return-child-result here, instead of ...
643 (print_exited_reason): ... here.
645 2014-05-21 Pedro Alves <palves@redhat.com>
648 * gdbthread.h (struct thread_control_state): New field
650 * infrun.c (follow_fork): Copy the new thread control field to the
652 (clear_proceed_status_thread): Clear the new thread control field.
653 (proceed): Set the new thread control field.
654 * interps.h (command_interp): Declare.
655 * interps.c (command_interpreter): New global.
656 (command_interp): New function.
657 (interp_exec): Set `command_interpreter' while here.
658 * cli-out.c (cli_uiout_dtor): New function.
659 (cli_ui_out_impl): Install it.
660 * mi/mi-interp.c: Include cli-out.h.
661 (mi_cmd_interpreter_exec): Add comment.
662 (restore_current_uiout_cleanup): New function.
663 (ui_out_free_cleanup): New function.
664 (mi_on_normal_stop): If finishing an execution command started by
665 a CLI command, or any kind of breakpoint-like event triggered,
666 print the stop event to the output (CLI) stream.
667 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
669 2014-05-21 Pedro Alves <palves@redhat.com>
671 * cli/cli-cmds.c (list_command): Handle the first "list" after the
672 current source line having changed.
673 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
674 * infrun.c (normal_stop): Adjust call to
675 set_current_sal_from_frame.
676 * source.c (clear_lines_listed_range): New function.
677 (set_current_source_symtab_and_line, identify_source_line): Clear
678 the lines listed range.
679 (line_info): Handle the first "info line" after the current source
681 * stack.c (print_stack_frame): Remove center handling.
682 (set_current_sal_from_frame): Remove 'center' parameter. Don't
685 2014-05-21 Pedro Alves <palves@redhat.com>
687 * inf-child.c (inf_child_mourn_inferior): New function.
688 * inf-child.h (inf_child_mourn_inferior): New declaration.
689 * darwin-nat.c (darwin_mourn_inferior): Use
690 inf_child_mourn_inferior.
691 * gnu-nat.c (gnu_mourn_inferior): Likewise.
692 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
693 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
694 * nto-procfs.c (procfs_mourn_inferior): Likewise.
695 * windows-nat.c (windows_mourn_inferior): Likewise.
697 2014-05-21 Doug Evans <xdje42@gmail.com>
699 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
701 2014-05-21 Doug Evans <xdje42@gmail.com>
703 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
704 (gdbscm_out_of_range_error): Ditto.
705 (gdbscm_memory_error): Ditto.
706 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
707 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
708 (gdbscm_out_of_range_error): Update.
709 (gdbscm_memory_error): Update.
710 (gdbscm_scm_to_target_string_unsafe): Delete.
712 2014-05-21 Pedro Alves <palves@redhat.com>
714 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
716 (inf_child_open_target): New function.
717 (inf_child_open): Use inf_child_open_target to push the target
718 instead of erroring out.
719 (inf_child_disconnect, inf_child_close)
720 (inf_child_maybe_unpush_target): New functions.
721 (inf_child_target): Install inf_child_disconnect and
722 inf_child_close. Store a pointer to the returned object.
723 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
725 * target.c (auto_connect_native_target): New global.
726 (show_default_run_target): New function.
727 (find_default_run_target): Return NULL if automatically connecting
728 to the native target is disabled.
729 (_initialize_target): Install set/show auto-connect-native-target.
730 * NEWS: Mention "set auto-connect-native-target", and "target
732 * linux-nat.c (super_close): New global.
733 (linux_nat_close): Call super_close.
734 (linux_nat_add_target): Store a pointer to the base class's
736 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
737 inf_child_maybe_unpush.
738 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
740 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
741 the inferior. Use inf_child_maybe_unpush_target.
742 (inf_ttrace_attach): Don't push the target if it is already
744 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
745 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
746 after mourning the inferior. Use inf_child_maybe_unpush_target.
747 (darwin_attach_pid): Don't push the target if it is already
749 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
750 mourning the inferior. Use inf_child_maybe_unpush_target.
751 (gnu_detach): Use inf_child_maybe_unpush_target.
752 * go32-nat.c (go32_create_inferior): Don't push the target if it
754 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
755 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
756 (procfs_open): Rename to ...
757 (procfs_open_1): ... this. Add target_ops parameter. Adjust
758 comments. Can target_preopen before changing node. Call
759 inf_child_open_target to push the target explicitly.
760 (procfs_attach): Don't push the target if it is already pushed.
761 (procfs_detach): Use inf_child_maybe_unpush_target.
762 (procfs_create_inferior): Don't push the target if it is already
764 (nto_native_ops): New global.
765 (procfs_open): Reimplement.
766 (procfs_native_open): New function.
767 (init_procfs_targets): Install procfs_native_open as to_open of
768 "target native". Store a pointer to the "native" target in
770 * procfs.c (procfs_attach): Don't push the target if it is already
772 (procfs_detach): Use inf_child_maybe_unpush_target.
773 (procfs_mourn_inferior): Only unpush the target after mourning the
774 inferior. Use inf_child_maybe_unpush_target.
775 (procfs_init_inferior): Don't push the target if it is already
777 * windows-nat.c (do_initial_windows_stuff): Don't push the target
778 if it is already pushed.
780 2014-05-21 Pedro Alves <palves@redhat.com>
782 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
783 and "procfs" targets are now called "native" instead.
785 2014-05-21 Pedro Alves <palves@redhat.com>
787 * go32-nat.c (go32_open): Delete.
788 (go32_target): Don't override the to_open method.
790 2014-05-21 Pedro Alves <palves@redhat.com>
792 * nto-procfs.c (procfs_can_run): New function.
793 (nto_procfs_ops): New global.
794 (init_procfs_targets): New, based on procfs_target. Install
795 "target native" in addition to "target procfs".
796 (_initialize_procfs): Call init_procfs_targets instead of adding
799 2014-05-21 Pedro Alves <palves@redhat.com>
801 * windows-nat.c (windows_target): Don't override to_shortname,
802 to_longname or to_doc.
804 2014-05-21 Pedro Alves <palves@redhat.com>
806 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
809 2014-05-21 Pedro Alves <palves@redhat.com>
811 * darwin-nat.c (_initialize_darwin_inferior): Don't override
812 to_shortname, to_longname or to_doc.
814 2014-05-21 Pedro Alves <palves@redhat.com>
816 * go32-nat.c (go32_target): Don't override to_shortname,
817 to_longname or to_doc.
819 2014-05-21 Pedro Alves <palves@redhat.com>
821 * inf-child.c (inf_child_open): Remove mention of "child".
822 (inf_child_target): Rename target to "native" instead of "child".
824 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
826 * Makefile.in (SFILES): Delete "regset.c".
827 (COMMON_OBS): Delete "regset.o".
829 * regset.h (regset_alloc): Delete prototype.
831 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
833 * sparc-linux-tdep.c (sparc32_linux_gregset)
834 (sparc32_linux_fpregset): New static regset structures.
835 (sparc32_linux_init_abi): Drop dynamic regset allocations.
836 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
838 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
839 (sparc64_linux_fpregset): New static regset structures.
840 (sparc64_linux_init_abi): Drop dynamic regset allocations.
841 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
842 New static regset structures.
843 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
844 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
845 New static regset structures.
846 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
847 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
848 New static regset structures.
849 (sparc64obsd_init_abi): Drop dynamic regset allocations.
850 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
851 New static regset structures.
852 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
854 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
856 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
857 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
858 register maps ("regmaps") from "*regset" to "*regmap". Do this
859 for all regmap types and variables.
860 * sparc-linux-tdep.c (sparc32_linux_step_trap)
861 (sparc32_linux_supply_core_gregset)
862 (sparc32_linux_collect_core_gregset)
863 (sparc32_linux_supply_core_fpregset)
864 (sparc32_linux_collect_core_fpregset): Likewise.
865 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
866 (sparc_gregmap, sparc_fpregmap): ... these.
867 (sparc_supply_gregset, sparc_collect_gregset)
868 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
869 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
870 (_initialize_sparc_nat): Rename regmaps.
871 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
872 (sparc_gregmap, sparc_fpregmap): ... these.
873 (sparc_supply_gregset, sparc_collect_gregset)
874 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
875 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
877 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
878 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
880 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
882 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
883 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
884 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
886 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
887 (sparc32_bsd_fpregset): Rename to...
888 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
889 (sparc32_bsd_fpregmap): ... these.
890 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
891 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
892 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
893 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
894 (struct sparc_gregmap, struct sparc_fpregmap)
895 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
896 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
897 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
898 (sparc32_supply_regset, sparc32_collect_gregset)
899 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
901 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
902 (sparc64_linux_ptrace_gregmap): ... this.
903 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
904 (_initialize_sparc64_linux_nat): Rename regmaps.
905 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
906 (sparc64_linux_core_gregmap): ... this.
907 (sparc64_linux_supply_core_gregset)
908 (sparc64_linux_collect_core_gregset)
909 (sparc64_linux_supply_core_fpregset)
910 (sparc64_linux_collect_core_fpregset): Rename regmaps.
911 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
912 (sparc64_sol2_fpregset): Rename to...
913 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
914 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
915 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
917 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
918 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
919 (sparc64_bsd_fpregset): Rename to...
920 (struct sparc_gregmap, sparc64_sol2_gregmap)
921 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
922 (sparc64_bsd_fpregmap): ... these.
923 (sparc64_supply_gregset, sparc64_collect_gregset)
924 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
926 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
927 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
928 (sparc64fbsd_gregmap): ... this.
929 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
930 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
932 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
933 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
934 (sparc64nbsd_collect_fpregset): Likewise.
935 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
936 (sparc64nbsd_gregmap): ... this.
937 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
939 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
940 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
941 (sparc64obsd_gregmap): ... this.
942 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
944 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
945 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
946 (sparc32nbsd_gregmap): ... this.
947 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
950 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
952 * score-tdep.c (score7_linux_gregset): New static regset
954 (score7_linux_regset_from_core_section): Remove dynamic regset
956 (score_gdbarch_init): Drop allocation of tdep structure.
957 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
959 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
961 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
963 (am33_regset_from_core_section): Remove dynamic regset
966 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
968 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
969 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
971 (mips_linux_regset_from_core_section): Remove dynamic regset
973 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
974 'gregset64', 'fpregset', and 'fpregset64'.
975 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
978 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
980 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
982 (amd64_regset_from_core_section): Remove dynamic regset
984 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
986 (amd64obsd_regset_from_core_section): Remove dynamic regset
988 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
990 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
991 x86-common regset supply function.
992 * i386-tdep.c (i386_collect_gregset): Make static.
993 (i386_gregset): New global regset structure.
994 (i386_fpregset, i386_xstateregset): New static regset structures.
995 (i386_regset_from_core_section): Remove dynamic regset
997 (i386_gdbarch_init): Remove initialization of tdep fields
998 'gregset', 'fpregset', and 'xstateregset'.
999 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1000 'fpregset', and 'xstateregset'.
1001 (i386_collect_gregset): Remove prototype.
1002 (i386_gregset): New declaration.
1003 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1005 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1008 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1010 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1011 (arm_linux_vfpregset): New static regset structures.
1012 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1014 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1015 and 'vfpregset' fields.
1017 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1019 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1020 (aarch64_linux_fpregset): New static regset structures.
1021 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1022 of regset structures.
1023 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1026 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1028 * regset.h (struct regset): Remove gdbarch field.
1029 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1030 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1031 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1033 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1034 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1035 (ppc32_linux_vsxregset): Likewise.
1036 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1037 via the regcache instead of the regset.
1038 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1039 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1040 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1041 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1044 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1046 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1047 Constify structures.
1048 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1049 (alphanbsd_aout_gregset): Likewise.
1050 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1051 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1053 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1054 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1056 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1057 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1058 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1059 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1060 * m88k-tdep.c (m88k_gregset): Likewise.
1061 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1062 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1063 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1064 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1065 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1066 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1067 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1068 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1069 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1071 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1072 * sh-tdep.h (sh_corefile_gregset): Likewise.
1073 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1074 * vax-tdep.c (vax_gregset): Likewise.
1076 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1078 Fix TLS access for -static -pthread.
1079 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1080 (try_thread_db_load_1): Initialize it.
1081 (thread_db_get_thread_local_address): Call it if LM is zero.
1082 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1083 * target.h (struct target_ops) (to_get_thread_local_address): Add
1084 load_module_addr comment.
1086 2014-05-21 Pedro Alves <palves@redhat.com>
1088 * dcache.c (dcache_read_memory_partial): If reading the cache line
1089 fails, fallback to reading just the memory the caller wanted.
1091 2014-05-20 Doug Evans <dje@google.com>
1093 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1094 instead of get_current_arch.
1096 2014-05-20 Pedro Alves <palves@redhat.com>
1098 * NEWS: Mention that compare-sections now works with all targets.
1100 * remote.c (PACKET_qCRC): New enum value.
1101 (remote_verify_memory): Don't send qCRC if the target has no
1102 execution. Use packet_support/packet_ok. If the target doesn't
1103 support the qCRC packet, fallback to a deep memory copy.
1104 (compare_sections_command): Say "target image" instead of "remote
1106 (_initialize_remote): Add PACKET_qCRC to the list of config
1107 packets that have no associated command. Extend comment.
1108 * target.c (simple_verify_memory, default_verify_memory): New
1110 * target.h (struct target_ops) <to_verify_memory>: Default to
1111 default_verify_memory.
1112 (simple_verify_memory): New declaration.
1113 * target-delegates.c: Regenerate.
1115 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1117 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1119 2014-05-20 Hui Zhu <hui@codesourcery.com>
1120 Yao Qi <yao@codesourcery.com>
1123 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1124 and change address of sp and pc.
1126 2014-05-19 Tom Tromey <tromey@redhat.com>
1128 * gdbtypes.c (rank_function): Use XNEWVEC.
1129 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1131 2014-05-19 Doug Evans <dje@google.com>
1133 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1134 build_type_unit_groups and moved closer to only caller. Remove
1135 arguments. All references updated. Remove outdated .gdb_index
1137 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1138 build_type_psymtabs_1.
1140 2014-05-19 Doug Evans <dje@google.com>
1142 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1143 n_type_unit_groups, all_type_unit_groups. All uses removed.
1144 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1145 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1146 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1147 (add_type_unit_group_to_table): Delete.
1149 2014-05-19 Doug Evans <dje@google.com>
1151 * eval.c (evaluate_subexp_standard): Add some comments.
1153 2014-05-17 Doug Evans <xdje42@gmail.com>
1155 * progspace.c (remove_program_space): Delete, unused.
1156 * progspace.h (remove_program_space): Ditto.
1158 2014-05-17 Doug Evans <xdje42@gmail.com>
1160 * inferior.c (prune_inferiors): Fix comment.
1161 (remove_inferior_command): Call prune_program_spaces.
1163 2014-05-16 Doug Evans <dje@google.com>
1165 New command line option -D.
1167 * main.c (set_gdb_data_directory): New function.
1168 (captured_main): Recognize -D. Flag error for --data-directory "".
1169 Call set_gdb_data_directory.
1170 (print_gdb_help): Print --data-directory, -D.
1171 * main.h (set_gdb_data_directory): Declare.
1172 * top.c (staged_gdb_datadir): New static global.
1173 (set_gdb_datadir): Call set_gdb_data_directory
1174 (show_gdb_datadir): New function.
1175 (init_main): Update init of data-directory parameter.
1177 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1179 Import the "dirfd" gnulib module.
1180 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1181 * gnulib/aclocal.m4: Update.
1182 * gnulib/config.in: Update.
1183 * gnulib/configure: Update.
1184 * gnulib/import/Makefile.am: Update.
1185 * gnulib/import/Makefile.in: Update.
1186 * gnulib/import/dirfd.c: New.
1187 * gnulib/import/m4/dirfd.m4: New.
1188 * gnulib/import/m4/gnulib-cache.m4: Update.
1189 * gnulib/import/m4/gnulib-comp.m4: Update.
1191 2014-05-16 Pierre Muller <muller@sourceware.org>
1192 Yao Qi <yao@codesourcery.com>
1194 * valprint.c (print_wchar): Move the code on checking whether
1195 W is a printable wide char to the default branch of switch
1196 statement below. Call wchar_printable instead of gdb_iswprint.
1198 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1200 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1201 ldr.w and ldrd instructions.
1203 2014-05-15 Doug Evans <dje@google.com>
1205 * dwarf2read.c (read_structure_type): Delete outdated comments.
1207 2014-05-14 Tom Tromey <tromey@redhat.com>
1209 * macrocmd.c (print_macro_definition): Reindent.
1211 2014-05-13 Doug Evans <xdje42@gmail.com>
1213 * python/py-cmd.c (cmdpy_completer): Add comment.
1214 (completers): Make const.
1216 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1218 * infrun.c (resume): Remove should_resume (unused). Move up
1219 declaration of resume_ptid.
1221 2014-05-13 Tom Tromey <tromey@redhat.com>
1223 * language.h (unop_type_check): Remove.
1224 (binop_type_check): Don't declare.
1226 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1228 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1229 call to regcache_raw_collect.
1231 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1233 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1234 mi_console->quote as the quoting character.
1236 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1238 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1240 2014-04-29 Tom Tromey <tromey@redhat.com>
1242 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1243 "show debug varobj".
1245 2014-05-07 Kyle McMartin <kyle@redhat.com>
1247 Pushed by Joel Brobecker <brobecker@adacore.com>.
1248 * aarch64-tdep.c (aarch64_software_single_step): New function.
1249 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1250 with aarch64_software_single_step.
1252 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1256 2014-05-05 Keith Seitz <keiths@redhat.com>
1258 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1259 variable or history value is successfully parsed.
1261 2014-05-05 Yao Qi <yao@codesourcery.com>
1262 Pedro Alves <palves@redhat.com>
1264 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1265 address of blocks that intersects the requested range. Trim
1266 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1268 * ctf.c (ctf_xfer_partial): Likewise.
1270 2014-05-05 Yao Qi <yao@codesourcery.com>
1272 * printcmd.c (display_command): Remove the check to
1273 target_has_execution.
1275 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1277 * ppcobsd-nat.c: Include "obsd-nat.h".
1278 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1280 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1282 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1284 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1285 and 16-bit signed and unsigned arguments. Update comment.
1286 (stap_parse_probe_arguments): Extend code to handle such
1287 arguments. Use warning instead of complaint to notify about
1288 unrecognized bitness.
1290 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1292 PR breakpoints/16889
1293 * stap-probe.c (stap_parse_probe_arguments): Simplify
1294 check for non-prefixed probes (i.e., probes whose
1295 arguments do not start with "N@"). Always set the
1296 argument type to a sane value.
1298 2014-05-01 David Taylor <dtaylor@emc.com>
1300 * remote.c (compare_sections_command): Add -r option to compare
1301 all loadable read-only sections.
1303 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1305 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1306 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1308 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1309 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1310 Remove unused CORE_ADDR argument. Update all callers.
1312 2014-04-29 Pedro Alves <palves@redhat.com>
1314 * remote.c (struct packet_config) <detect>: Extend comment.
1315 (add_packet_config_cmd): Don't set the config's detect or support
1317 (init_all_packet_configs): Also initialize the config's 'detect'
1319 (reset_all_packet_configs_support): New function.
1320 (remote_open_1): Call reset_all_packet_configs_support instead of
1321 init_all_packet_configs.
1322 (_initialize_remote): Initialize all packet configs. Assert that
1323 all packets have an associated command, except a few known
1326 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1328 * dwarf2read.c (read_subrange_type): Handle dynamic
1329 DW_AT_lower_bound attributes.
1331 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1333 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1334 dynamic bounds before computing its upper bound.
1335 (ada_discrete_type_low_bound): Same as above with the lower bound.
1337 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1339 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1340 range types. Adjust the array handling implementation to
1341 take advantage of this change.
1342 (resolve_dynamic_range): New function, mostly extracted from
1343 resolve_dynamic_bounds.
1344 (resolve_dynamic_array): New function, mostly extracted from
1345 resolve_dynamic_bounds.
1346 (resolve_dynamic_bounds): Delete.
1347 (resolve_dynamic_type): Reimplement. Add handling of
1348 TYPE_CODE_RANGE types.
1350 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1352 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1353 handling of parallel ___XA types.
1355 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1357 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1358 unnecessary second call to static_unwrap_type.
1360 2014-04-27 Hui Zhu <hui@codesourcery.com>
1362 * stack.c (print_frame_info): Call do_gdb_disassembly with
1363 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1365 2014-04-26 Doug Evans <xdje42@gmail.com>
1367 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1369 2014-04-25 Pedro Alves <palves@redhat.com>
1372 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1373 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1374 and newline from built string.
1375 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1376 (linux_ptrace_attach_fail_reason): ... this.
1377 * linux-nat.c (linux_nat_attach): Adjust to use
1378 linux_ptrace_attach_fail_reason.
1380 2014-04-25 Pedro Alves <palves@redhat.com>
1382 * remote.c (struct remote_state): Remove multi_process_aware,
1383 non_stop_aware, cond_tracepoints, cond_breakpoints,
1384 breakpoint_commands, fast_tracepoints, static_tracepoints,
1385 install_in_trace, disconnected_tracing,
1386 enable_disable_tracepoints, string_tracing, and
1387 augmented_libraries_svr4_read fields.
1388 (remote_multi_process_p): Move further below in the file.
1389 (struct packet_config): Add comments.
1390 (update_packet_config): Delete function.
1391 (show_packet_config_cmd): Use packet_config_support.
1392 (add_packet_config_cmd): Use NULL as set callback.
1393 (packet_ok): "set remote foo-packet"-style commands no longer
1394 change config->supported -- adjust.
1395 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1396 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1397 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1398 (PACKET_QNonStop, PACKET_multiprocess_feature)
1399 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1400 (PACKET_DisconnectedTracing_feature)
1401 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1402 (set_remote_protocol_packet_cmd): Delete function.
1403 (packet_config_support, packet_support): New functions.
1404 (set_remote_protocol_Z_packet_cmd): Don't call
1405 update_packet_config.
1406 (remote_query_attached, remote_pass_signals)
1407 (remote_program_signals, remote_threads_info)
1408 (remote_threads_extra_info, remote_start_remote): Use
1410 (remote_start_remote): Use packet_config_support and
1412 (init_all_packet_configs): Set all packets to unknown support,
1413 instead of calling update_packet_config.
1414 (remote_check_symbols): Use packet_support.
1415 (remote_supported_packet): Unconditionally set the packet config's
1417 (remote_multi_process_feature, remote_non_stop_feature)
1418 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1419 (remote_breakpoint_commands_feature)
1420 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1421 (remote_install_in_trace_feature)
1422 (remote_disconnected_tracing_feature)
1423 (remote_enable_disable_tracepoint_feature)
1424 (remote_string_tracing_feature)
1425 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1426 (remote_protocol_features): Adjust to use remote_supported_packet
1427 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1428 "ConditionalTracepoints", "ConditionalBreakpoints",
1429 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1430 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1431 "EnableDisableTracepoints", and "tracenz".
1432 (remote_query_supported): Use packet_support.
1433 (remote_open_1): Adjust.
1434 (extended_remote_attach_1): Use packet_support. Switch on the
1435 result of packet_ok instead of checking whether the packet ended
1437 (remote_vcont_resume): Use packet_support.
1438 (remote_resume, remote_stop_ns, fetch_register_using_p)
1439 (remote_prepare_to_store, store_register_using_P)
1440 (check_binary_download, remote_write_bytes): Use packet_support.
1441 (remote_vkill): Use packet_support. Switch on the result of
1442 packet_ok instead of checking whether the packet ended up
1444 (extended_remote_supports_disable_randomization): Use
1446 (extended_remote_run): Switch on the result of packet_ok instead
1447 of checking whether the packet ended up disabled.
1448 (remote_insert_breakpoint, remote_remove_breakpoint)
1449 (remote_insert_watchpoint, remote_remove_watchpoint)
1450 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1452 (remote_search_memory): Use packet_config_support.
1453 (remote_get_thread_local_address, remote_get_tib_address)
1454 (remote_hostio_send_command, remote_can_execute_reverse): Use
1456 (remote_supports_cond_tracepoints)
1457 (remote_supports_cond_breakpoints)
1458 (remote_supports_fast_tracepoints)
1459 (remote_supports_static_tracepoints)
1460 (remote_supports_install_in_trace)
1461 (remote_supports_enable_disable_tracepoint)
1462 (remote_supports_string_tracing)
1463 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1464 the packet config says the feature is enabled or disabled.
1465 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1466 (remote_get_trace_status): Use packet_support.
1467 (remote_set_disconnected_tracing): Adjust to check whether the
1468 feature is enabled with packet_support.
1469 (remote_set_trace_buffer_size, remote_use_agent)
1470 (remote_can_use_agent, remote_supports_btrace): Use
1472 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1473 Use packet_config_support.
1474 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1475 the packet config says the feature is enabled or disabled.
1476 (set_range_stepping): Use packet_support.
1478 2014-04-25 Tom Tromey <tromey@redhat.com>
1480 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1483 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1485 * NEWS: Mention support for C99 variable length arrays.
1487 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1489 * ada-lang.c (standard_exc): Expand introductory comment.
1491 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1492 Walfred Tedeschi <walfred.tedeschi@intel.com>
1494 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1496 (amd64_linux_read_description): Add code to handle AVX512 xstate
1497 mask and return respective tdesc.
1498 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1499 and features/i386/x32-avx512-linux.c.
1500 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1501 (amd64_linux_core_read_description): Add code to handle AVX512
1502 xstate mask and return respective tdesc.
1503 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1504 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1506 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1507 (tdesc_amd64_avx512_linux): New prototype.
1508 (tdesc_x32_avx512_linux): Likewise.
1509 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1510 features/i386/x32-avx512.c.
1511 (amd64_ymm_avx512_names): New register names for pseudo
1513 (amd64_ymmh_avx512_names): New register names for raw registers
1515 (amd64_k_names): New register names for K registers.
1516 (amd64_zmmh_names): New register names for ZMM raw registers.
1517 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1518 (amd64_xmm_avx512_names): New register names for XMM16-31
1520 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1522 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1523 if feature is present.
1524 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1525 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1526 (AMD64_NUM_REGS): Adjust to new number of registers.
1527 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1528 registers supplied via XSTATE by AVX512 registers.
1529 (i386_linux_read_description): Add case for AVX512.
1530 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1531 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1532 (i386_linux_core_read_description): Add case for AVX512.
1533 (i386_linux_init_abi): Install supported register note section
1535 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1537 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1538 registers to be number of zmm7h + 1.
1539 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1540 * i386-tdep.c: Include features/i386/i386-avx512.c.
1541 (i386_zmm_names): Add ZMM pseudo register names array.
1542 (i386_zmmh_names): Add ZMM raw register names array.
1543 (i386_k_names): Add K raw register names array.
1544 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1545 registers. AVX512 has 16 more ZMM registers than there are YMM
1547 (i386_zmmh_regnum_p): Add function to look up register number of
1549 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1550 (i386_k_regnum_p): Likewise for K raw registers.
1551 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1552 registers added by AVX512.
1553 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1554 registers added by AVX512.
1555 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1557 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1558 (i386_pseudo_register_name): Add ZMM pseudo registers.
1559 (i386_zmm_type): Construct and return vector registers type for ZMM
1561 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1562 ZMM0-31 pseudo registers and K registers.
1563 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1564 and YMM16-31 registers from register cache.
1565 (i386_pseudo_register_write): Add code to write K, ZMM and
1567 (i386_register_reggroup_p): Add code to include/exclude AVX512
1568 registers in/from respective register groups.
1569 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
1570 registers if feature is present in xcr0.
1571 (i386_gdbarch_init): Add code to initialize AVX512 feature
1572 variables in tdep structure, wire in pseudo registers and call
1573 initialize_tdesc_i386_avx512.
1574 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
1576 (i386_regnum): Add AVX512 registers.
1577 (I386_SSE_NUM_REGS): New define for number of SSE registers.
1578 (I386_AVX_NUM_REGS): Likewise for AVX registers.
1579 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
1580 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
1582 (i386_xmm_avx512_regnum_p): New prototype for register look up.
1583 (i386_ymm_avx512_regnum_p): Likewise.
1584 (i386_k_regnum_p): Likewise.
1585 (i386_zmm_regnum_p): Likewise.
1586 (i386_zmmh_regnum_p): Likewise.
1587 * i387-tdep.c : Update year in copyright notice.
1588 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
1590 (XSAVE_YMM_AVX512_ADDR): New macro.
1591 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
1593 (XSAVE_XMM_AVX512_ADDR): New macro.
1594 (xsave_avx512_k_offset): New table for K register offsets in
1596 (XSAVE_AVX512_K_ADDR): New macro.
1597 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
1599 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
1600 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
1602 (i387_collect_xsave): Add code to collect AVX512 registers from
1604 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
1605 of XMM16-31 registers.
1606 (I387_NUM_K_REGS): New define for number of K registers.
1607 (I387_K0_REGNUM): New define for K0 register number.
1608 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
1609 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
1610 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
1612 (I387_YMM16H_REGNUM): New define for YMM16H register number.
1613 (I387_XMM16_REGNUM): New define for XMM16 register number.
1614 (I387_YMM0_REGNUM): New define for YMM0 register number.
1615 (I387_KEND_REGNUM): New define for last K register number.
1616 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
1617 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
1619 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
1621 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
1623 * features/Makefile: Add AVX512 related files.
1624 * features/i386/32bit-avx512.xml: New file.
1625 * features/i386/64bit-avx512.xml: Likewise.
1626 * features/i386/amd64-avx512-linux.c: Likewise.
1627 * features/i386/amd64-avx512-linux.xml: Likewise.
1628 * features/i386/amd64-avx512.c: Likewise.
1629 * features/i386/amd64-avx512.xml: Likewise.
1630 * features/i386/i386-avx512-linux.c: Likewise.
1631 * features/i386/i386-avx512-linux.xml: Likewise.
1632 * features/i386/i386-avx512.c: Likewise.
1633 * features/i386/i386-avx512.xml: Likewise.
1634 * features/i386/x32-avx512-linux.c: Likewise.
1635 * features/i386/x32-avx512-linux.xml: Likewise.
1636 * features/i386/x32-avx512.c: Likewise.
1637 * features/i386/x32-avx512.xml: Likewise.
1638 * regformats/i386/amd64-avx512-linux.dat: New file.
1639 * regformats/i386/amd64-avx512.dat: Likewise.
1640 * regformats/i386/i386-avx512-linux.dat: Likewise.
1641 * regformats/i386/i386-avx512.dat: Likewise.
1642 * regformats/i386/x32-avx512-linux.dat: Likewise.
1643 * regformats/i386/x32-avx512.dat: Likewise.
1644 * NEWS: Add note about new support for AVX512.
1647 2014-04-23 Pedro Alves <palves@redhat.com>
1649 * breakpoint.c (insert_bp_location): Tolerate errors if the
1650 breakpoint is set in a user-loaded objfile.
1651 (remove_breakpoint_1): Likewise. Also tolerate errors if the
1652 location is marked shlib_disabled. If the breakpoint is set in a
1653 user-loaded objfile is a GDB-side memory breakpoint, validate it
1654 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
1655 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
1657 * mem-break.c (memory_validate_breakpoint): New function.
1658 * objfiles.c (userloaded_objfile_contains_address_p): New
1660 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
1661 * target.h (memory_validate_breakpoint): New declaration.
1663 2014-04-23 Pedro Alves <palves@redhat.com>
1665 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
1666 the breakpoint is set in a shared library, only suppress
1667 errors for software breakpoints, not hardware breakpoints.
1669 2014-04-22 Pedro Alves <palves@redhat.com>
1671 * infrun.c (schedlock_applies): New function, factored out from
1672 find_thread_needs_step_over.
1673 (find_thread_needs_step_over): Use it.
1674 (switch_back_to_stepped_thread): Always clear trap_expected if the
1675 step over is finished. Return early if scheduler locking applies.
1676 Look for the stepping thread and a potential step-over thread with
1678 (currently_stepping_or_nexting_callback): Delete.
1680 2014-04-22 Nick Clifton <nickc@redhat.com>
1682 * NEWS: Mention that ARM sim now supports tracing.
1684 2014-04-22 Yao Qi <yao@codesourcery.com>
1686 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
1688 * tracefile.c (tracefile_fetch_registers): ... it. New
1690 * tracefile.h (tracefile_fetch_registers): Declare.
1691 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
1692 tracefile_fetch_registers.
1694 2014-04-19 Eli Zaretskii <eliz@gnu.org>
1697 * windows-nat.c (thread_rec): Don't display a warning when
1698 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
1699 fails for any reason, set th->suspended to -1, so that we don't
1700 try to resume such a thread. Also, don't return NULL in these
1701 cases, to avoid completely ruin the session due to "PC register is
1702 not available" error.
1703 (do_windows_fetch_inferior_registers): Check errors in
1704 GetThreadContext call.
1705 (windows_continue): Accept an additional argument KILLED; if not
1706 zero, ignore errors in the SetThreadContext call, since the
1707 inferior was killed and is shutting down.
1708 (windows_resume, get_windows_debug_event)
1709 (windows_create_inferior, windows_mourn_inferior)
1710 (windows_kill_inferior): All callers of windows_continue changed
1711 to adjust to its new calling sequence.
1713 2014-04-19 Yao Qi <yao@codesourcery.com>
1715 * ctf.c (ctf_open): Call post_create_inferior.
1717 2014-04-19 Yao Qi <yao@codesourcery.com>
1719 * ctf.c (handle_id): New static variable.
1720 (ctf_open_dir): Get handle_id from bt_context_add_trace return
1721 value. Get the declaration of event "register" and get length
1722 of field "contents".
1724 2014-04-19 Yao Qi <yao@codesourcery.com>
1726 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
1728 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
1730 * valops.c (oload_method_static): Remove unnecessary argument
1731 METHOD. Update all callers.
1733 2014-04-18 Pedro alves <palves@redhat.com>
1734 Tom Tromey <tromey@redhat.com>
1737 * frame.c (get_prev_frame_1): Rename to ...
1738 (get_prev_frame_always): ... this, and make extern. Adjust.
1739 (skip_artificial_frames): Use get_prev_frame_always.
1740 (frame_unwind_caller_id, frame_pop, get_prev_frame)
1741 (get_frame_unwind_stop_reason): Adjust to rename.
1742 * frame.h (get_prev_frame_always): Declare.
1743 * inline-frame.c: Include frame.h.
1744 (inline_frame_this_id): Use get_prev_frame_always.
1746 2014-04-18 Tristan Gingold <gingold@adacore.com>
1748 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
1749 code by using bfd_mach_o_get_base_address.
1751 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1753 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
1754 (spu_ax_pseudo_register_collect): New function.
1755 (spu_ax_pseudo_register_push_stack): Likewise.
1756 (spu_dwarf_reg_to_regnum): Likewise.
1757 (spu_gdbarch_init): Install them. Append DWARF unwinders.
1759 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
1761 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
1762 Replace FRAME argument with FRAME_ID.
1763 * gdbarch.c, gdbarch.h: Regenerate.
1764 * findvar.c (default_value_from_register): Add GDBARCH argument;
1765 replace FRAME by FRAME_ID. No longer call get_frame_id.
1766 (value_from_register): Update call to gdbarch_value_from_register.
1767 * value.h (default_value_from_register): Update prototype.
1768 * s390-linux-tdep.c (s390_value_from_register): Update interface
1769 and call to default_value_from_register.
1770 * spu-tdep.c (spu_value_from_register): Likewise.
1772 * findvar.c (address_from_register): Remove TYPE argument.
1773 Do not call value_from_register; use gdbarch_value_from_register
1774 with null_frame_id instead.
1775 * value.h (address_from_register): Update prototype.
1776 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
1777 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
1778 address_from_register interface change.
1780 2014-04-17 Yao Qi <yao@codesourcery.com>
1782 * gdbtypes.h: Update comments to link to types and macros'
1785 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
1787 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
1789 2014-04-16 Keith Seitz <keiths@redhat.com>
1792 * dwarf2read.c (skip_one_die): Check that all relative-offset
1793 sibling DIEs fall within range of the current reader's buffer.
1794 (read_partial_die): Likewise.
1796 2014-04-16 Keith Seitz <keiths@redhat.com>
1799 * cp-namespace.c (lookup_symbol_file): If the type name of
1800 `this' is NULL, return immediately.
1802 2014-04-14 Keith Seitz <keiths@redhat.com>
1805 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
1806 from symbol_matches_domain in symtab.c. All local callers
1807 of symbol_matches_domain updated.
1808 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
1809 search STRUCT_DOMAIN.
1810 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
1811 independently. standard_lookup will do that automatically.
1812 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
1813 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1814 (cp_lookup_symbol_in_namespace): Likewise.
1815 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
1816 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
1817 may return a STRUCT_DOMAIN match.
1818 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
1819 * cp-support.c: Include language.h.
1820 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
1822 * psymtab.c (match_partial_symbol): Compare the requested
1823 domain with the symbol's domain directly.
1824 (lookup_partial_symbol): Likewise.
1825 * symtab.c (lookup_symbol_in_language): Explain when/why
1826 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
1827 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
1828 appropriate languages.
1829 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
1830 and moved to ada-lang.c
1831 (lookup_block_symbol): Explain that this function only returns
1832 symbol matching the requested DOMAIN.
1833 Compare the requested domain with the symbol's domain directly.
1834 (iterate_over_symbols): Compare the requested domain with the
1835 symbol's domain directly.
1836 * symtab.h (symbol_matches_domain): Remove.
1838 2014-04-14 Tom Tromey <tromey@redhat.com>
1841 * c-exp.y (type_aggregate_p): New function.
1842 (qualified_name, classify_inner_name): Use it.
1843 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
1844 and TYPE_TARGET_TYPE of an enum type.
1845 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
1847 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
1848 handle TYPE_DECLARED_CLASS.
1849 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
1851 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
1852 * valops.c (enum_constant_from_type): New function.
1853 (value_aggregate_elt): Use it.
1854 * cp-namespace.c (cp_lookup_nested_symbol): Handle
1857 2014-04-14 Tom Tromey <tromey@redhat.com>
1859 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
1860 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
1862 * value.h (value_aggregate_elt): Update.
1864 2014-04-14 Tom Tromey <tromey@redhat.com>
1866 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
1868 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1870 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
1871 (evaluate_subexp_standard): Pass noside argument.
1872 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
1873 if noside equals EVAL_NORMAL. If the subscript yields a vla type
1874 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
1875 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
1876 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
1878 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1880 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
1881 points to a constant blob.
1883 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1885 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
1886 property and store it as the high bound and flag the range accordingly.
1887 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
1888 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
1889 * gdbtypes.h (enum range_flags): New enum.
1890 (struct range_bounds): Add flags member.
1892 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1894 * c-typeprint.c (c_type_print_varspec_suffix): Added
1895 check for not yet resolved high bound. If unresolved, print
1896 "variable length" string to the console instead of random
1899 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1901 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
1903 (ada_template_to_fixed_record_type_1): Likewise.
1904 (ada_to_fixed_type_1): Likewise.
1905 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1906 (cp_print_value): Likewise.
1907 * d-valprint.c (dynamic_array_type): Likewise.
1908 * findvar.c (address_of_variable): Likewise.
1909 * jv-valprint.c (java_value_print): Likewise.
1910 * valops.c (value_ind): Likewise.
1911 * value.c (coerce_ref): Likewise.
1913 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1915 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1916 value and retrieve the dynamic type size.
1918 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1920 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1921 passed to sizeof is dynamic evaluate the argument to compute the length.
1923 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
1924 Joel Brobecker <brobecker@adacore.com>
1926 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1927 (dwarf2_evaluate_property): New function.
1928 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1929 * dwarf2read.c (attr_to_dynamic_prop): New function.
1930 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1932 * gdbtypes.c: Include dwarf2loc.h.
1933 (is_dynamic_type): New function.
1934 (resolve_dynamic_type): New function.
1935 (resolve_dynamic_bounds): New function.
1936 (get_type_length): New function.
1937 (check_typedef): Use get_type_length to compute type length.
1938 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1939 (TYPE_LOW_BOUND_KIND): New macro.
1940 (is_dynamic_type): New function prototype.
1941 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1942 to resolve dynamic properties of the type. Update comment.
1943 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1945 2014-04-14 Richard Henderson <rth@redhat.com>
1947 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
1949 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
1950 Doug Evans <xdje42@gmail.com>
1952 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
1953 dereference TYPE_CODE_REF values.
1955 2014-04-11 Joel Brobecker <brobecker@adacore.com>
1957 Revert the following changes due to regressions:
1959 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
1960 (dwarf2_evaluate_property): New function.
1961 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
1962 * dwarf2read.c (attr_to_dynamic_prop): New function.
1963 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
1965 * gdbtypes.c: Include dwarf2loc.h.
1966 (is_dynamic_type): New function.
1967 (resolve_dynamic_type): New function.
1968 (resolve_dynamic_bounds): New function.
1969 (get_type_length): New function.
1970 (check_typedef): Use get_type_length to compute type length.
1971 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
1972 (TYPE_LOW_BOUND_KIND): New macro.
1973 (is_dynamic_type): New function prototype.
1974 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
1975 to resolve dynamic properties of the type. Update comment.
1976 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
1978 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
1979 passed to sizeof is dynamic evaluate the argument to compute the length.
1981 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
1982 value and retrieve the dynamic type size.
1984 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
1985 (ada_template_to_fixed_record_type_1): Likewise.
1986 (ada_to_fixed_type_1): Likewise.
1987 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
1988 (cp_print_value): Likewise.
1989 * d-valprint.c (dynamic_array_type): Likewise.
1990 * eval.c (evaluate_subexp_with_coercion): Likewise.
1991 * findvar.c (address_of_variable): Likewise.
1992 * jv-valprint.c (java_value_print): Likewise.
1993 * valops.c (value_ind): Likewise.
1994 * value.c (coerce_ref): Likewise.
1996 * c-typeprint.c (c_type_print_varspec_suffix): Added
1997 check for not yet resolved high bound. If unresolved, print
1998 "variable length" string to the console instead of random
2001 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2002 property and store it as the high bound and flag the range accordingly.
2003 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2004 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2005 * gdbtypes.h (enum range_flags): New enum.
2006 (struct range_bounds): Add flags member.
2008 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2009 points to a constant blob.
2011 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2012 (evaluate_subexp_standard): Pass noside argument.
2013 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2014 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2015 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2016 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2017 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2019 2014-04-11 Keith Seitz <keiths@redhat.com>
2022 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2023 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2026 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2028 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2029 (evaluate_subexp_standard): Pass noside argument.
2030 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2031 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2032 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2033 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2034 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2036 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2038 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2039 points to a constant blob.
2041 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2043 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2044 property and store it as the high bound and flag the range accordingly.
2045 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2046 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2047 * gdbtypes.h (enum range_flags): New enum.
2048 (struct range_bounds): Add flags member.
2050 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2052 * c-typeprint.c (c_type_print_varspec_suffix): Added
2053 check for not yet resolved high bound. If unresolved, print
2054 "variable length" string to the console instead of random
2057 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2059 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2060 (ada_template_to_fixed_record_type_1): Likewise.
2061 (ada_to_fixed_type_1): Likewise.
2062 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2063 (cp_print_value): Likewise.
2064 * d-valprint.c (dynamic_array_type): Likewise.
2065 * eval.c (evaluate_subexp_with_coercion): Likewise.
2066 * findvar.c (address_of_variable): Likewise.
2067 * jv-valprint.c (java_value_print): Likewise.
2068 * valops.c (value_ind): Likewise.
2069 * value.c (coerce_ref): Likewise.
2071 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2073 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2074 value and retrieve the dynamic type size.
2076 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2078 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2079 passed to sizeof is dynamic evaluate the argument to compute the length.
2081 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2083 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2084 (dwarf2_evaluate_property): New function.
2085 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2086 * dwarf2read.c (attr_to_dynamic_prop): New function.
2087 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2089 * gdbtypes.c: Include dwarf2loc.h.
2090 (is_dynamic_type): New function.
2091 (resolve_dynamic_type): New function.
2092 (resolve_dynamic_bounds): New function.
2093 (get_type_length): New function.
2094 (check_typedef): Use get_type_length to compute type length.
2095 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2096 (TYPE_LOW_BOUND_KIND): New macro.
2097 (is_dynamic_type): New function prototype.
2098 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2099 to resolve dynamic properties of the type. Update comment.
2100 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2102 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2104 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2105 declaring high/low bounds and change uses accordingly. Call
2106 create_range_type instead of create_static_range_type.
2107 * gdbtypes.c (create_range_type): New function.
2108 (create_range_type): Convert bounds into struct bound_prop and pass
2109 them to create_range_type.
2110 * gdbtypes.h (struct bound_prop): New struct.
2111 (create_range_type): New function prototype.
2112 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2113 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2114 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2116 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2118 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2120 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2121 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2122 * ada-lang.c: All uses of create_range_type updated.
2123 * coffread.c: All uses of create_range_type updated.
2124 * dwarf2read.c: All uses of create_range_type updated.
2125 * f-exp.y: All uses of create_range_type updated.
2126 * m2-valprint.c: All uses of create_range_type updated.
2127 * mdebugread.c: All uses of create_range_type updated.
2128 * stabsread.c: All uses of create_range_type updated.
2129 * valops.c: All uses of create_range_type updated.
2130 * valprint.c: All uses of create_range_type updated.
2132 2014-04-10 Pedro Alves <palves@redhat.com>
2134 * breakpoint.c (single_step_breakpoints)
2135 (single_step_gdbarch): Move up in the file.
2136 (one_breakpoint_xfer_memory): New function, factored out from ...
2137 (breakpoint_xfer_memory): ... here. Also process single-step
2140 2014-04-09 Tristan Gingold <gingold@adacore.com>
2142 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2144 (darwin_decode_exception_message): Free port only after use.
2146 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2148 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2149 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2150 when setting the size of call_length.
2152 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2154 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2155 dereference TYPE_CODE_REF values.
2157 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2159 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2160 end of warning message.
2162 2014-04-03 Doug Evans <dje@google.com>
2164 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2165 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2167 2014-04-02 Alan Modra <amodra@gmail.com>
2169 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2170 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2171 (struct symbol_file_add_from_memory_args): Add size field.
2172 (find_vdso_size): New function.
2173 (add_vsyscall_page): Attempt to find vdso size.
2175 2014-04-01 Doug Evans <dje@google.com>
2177 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2179 2014-04-01 Tristan Gingold <gingold@adacore.com>
2181 * darwin-nat.c (darwin_encode_reply): Add prototype.
2182 (darwin_decode_exception_message): Reply to unknown inferiors.
2183 (darwin_decode_message): Handle message by id. Ignore message
2184 to unknown inferior.
2185 (darwin_wait): Discard unknown messages, add debug trace.
2187 2014-03-31 Doug Evans <dje@google.com>
2189 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2192 2014-03-31 Doug Evans <dje@google.com>
2194 New option "set print symbol-loading".
2196 * solib.c (solib_read_symbols): Only print symbol loading messages
2198 (solib_add): If symbol loading is in "brief" mode, notify user
2199 symbols are being loaded.
2200 (reload_shared_libraries_1): Ditto.
2201 * symfile.c (print_symbol_loading_off): New static global.
2202 (print_symbol_loading_brief): New static global.
2203 (print_symbol_loading_full): New static global.
2204 (print_symbol_loading_enums): New static global.
2205 (print_symbol_loading): New static global.
2206 (print_symbol_loading_p): New function.
2207 (symbol_file_add_with_addrs): Only print symbol loading messages
2209 (_initialize_symfile): Register "print symbol-loading" set/show
2211 * symfile.h (print_symbol_loading_p): Declare.
2213 2014-03-30 Doug Evans <xdje42@gmail.com>
2215 * infrun.c (set_last_target_status): New function.
2216 (handle_inferior_event): Call it.
2218 2014-03-30 Doug Evans <xdje42@gmail.com>
2220 * inferior.h (enum stop_kind): Improve comment.
2222 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2224 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2225 a reference, strip the reference layer before calling
2226 the lang_ops value_has_mutated callback.
2228 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2230 Remove some globals from our parser.
2231 * language.c (unk_lang_parser): Add "struct parser_state"
2233 * language.h (struct language_defn) <la_parser>: Likewise.
2234 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2235 (initialize_expout): Add "struct parser_state" argument.
2236 Rewrite function to use the parser state.
2237 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2238 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2239 write_exp_elt_longcst, write_exp_elt_dblcst,
2240 write_exp_elt_decfloatcst, write_exp_elt_type,
2241 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2242 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2243 write_dollar_variable): Likewise.
2244 (parse_exp_in_context_1): Use parser state.
2245 (insert_type_address_space): Add "struct parser_state" argument.
2247 (increase_expout_size): New function.
2248 * parser-defs.h: Forward declare "struct language_defn" and
2249 "struct parser_state".
2250 (expout, expout_size, expout_ptr): Remove extern declarations.
2251 (parse_gdbarch, parse_language): Rewrite macro declarations to
2252 accept the parser state.
2253 (struct parser_state): New struct.
2254 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2255 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2256 write_exp_elt_decfloatcst, write_exp_elt_type,
2257 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2258 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2259 write_exp_msymbol, write_dollar_variable,
2260 mark_struct_expression, insert_type_address_space): Add "struct
2261 parser_state" argument.
2262 (increase_expout_size): New function.
2263 * utils.c (do_clear_parser_state): New function.
2264 (make_cleanup_clear_parser_state): Likewise.
2265 * utils.h (make_cleanup_clear_parser_state): New function
2267 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2268 Update calls to write_exp* in order to pass the parser state.
2269 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2270 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2271 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2272 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2273 * stap-probe.c (stap_parse_register_operand): Likewise.
2274 (stap_parse_single_operand): Likewise.
2275 (stap_parse_argument_1): Likewise.
2276 (stap_parse_argument): Use parser state.
2277 * stap-probe.h: Include "parser-defs.h".
2278 (struct stap_parse_info) <pstate>: New field.
2279 * c-exp.y (parse_type): Rewrite to use parser state.
2280 (yyparse): Redefine to c_parse_internal.
2281 (pstate): New global variable.
2282 (parse_number): Add "struct parser_state" argument.
2283 (write_destructor_name): Likewise.
2284 (type_exp): Update calls to write_exp* and similars in order to
2286 (exp1, exp, variable, qualified_name, space_identifier,
2287 typename, typebase): Likewise.
2288 (write_destructor_name, parse_number, lex_one_token,
2289 classify_name, classify_inner_name, c_parse): Add "struct
2290 parser_state" argument. Update function to use parser state.
2291 * c-lang.h: Forward declare "struct parser_state".
2292 (c_parse): Add "struct parser_state" argument.
2293 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2294 (yyparse): Redefine macro to ada_parse_internal.
2295 (pstate): New variable.
2296 (write_int, write_object_renaming, write_var_or_type,
2297 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2298 type_int, type_long, type_long_long, type_float, type_double,
2299 type_long_double, type_char, type_boolean, type_system_address):
2300 Add "struct parser_state" argument.
2301 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2302 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2303 var_or_type, aggregate, aggregate_component_list,
2304 positional_list, others, component_group,
2305 component_associations): Update calls to write_exp* and similar
2306 functions in order to use parser state.
2307 (ada_parse, write_var_from_sym, write_int,
2308 write_exp_op_with_string, write_object_renaming,
2309 find_primitive_type, write_selectors, write_ambiguous_var,
2310 write_var_or_type, write_name_assoc, type_int, type_long,
2311 type_long_long, type_float, type_double, type_long_double,
2312 type_char, type_boolean, type_system_address): Add "struct
2313 parser_state" argument. Adjust function to use parser state.
2314 * ada-lang.c (parse): Likewise.
2315 * ada-lang.h: Forward declare "struct parser_state".
2316 (ada_parse): Add "struct parser_state" argument.
2317 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2318 calls to both functions.
2319 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2321 (yyparse): Redefine macro to f_parse_internal.
2322 (pstate): New variable.
2323 (parse_number): Add "struct parser_state" argument.
2324 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2325 and similars in order to use parser state.
2326 (parse_number): Adjust code to use parser state.
2328 (f_parse): New function.
2329 * f-lang.h: Forward declare "struct parser_state".
2330 (f_parse): Add "struct parser_state" argument.
2331 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2333 (yyparse): Redefine macro for java_parse_internal.
2334 (pstate): New variable.
2335 (push_expression_name, push_expression_name, insert_exp): Add
2336 "struct parser_state" argument.
2337 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2338 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2339 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2340 PostIncrementExpression, PostDecrementExpression,
2341 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2342 UnaryExpressionNotPlusMinus, CastExpression,
2343 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2344 RelationalExpression, EqualityExpression, AndExpression,
2345 ExclusiveOrExpression, InclusiveOrExpression,
2346 ConditionalAndExpression, ConditionalOrExpression,
2347 ConditionalExpression, Assignment, LeftHandSide): Update
2348 calls to write_exp* and similars in order to use parser state.
2349 (parse_number): Ajust code to use parser state.
2351 (java_parse): New function.
2352 (push_variable): Add "struct parser_state" argument. Adjust
2353 code to user parser state.
2354 (push_fieldnames, push_qualified_expression_name,
2355 push_expression_name, insert_exp): Likewise.
2356 * jv-lang.h: Forward declare "struct parser_state".
2357 (java_parse): Add "struct parser_state" argument.
2358 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2360 (yyparse): Redefine macro to m2_parse_internal.
2361 (pstate): New variable.
2362 (type_exp, exp, fblock, variable, type): Update calls to
2363 write_exp* and similars to use parser state.
2365 (m2_parse): New function.
2366 * m2-lang.h: Forward declare "struct parser_state".
2367 (m2_parse): Add "struct parser_state" argument.
2368 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2369 * objc-lang.h: Forward declare "struct parser_state".
2370 (end_msglist): Add "struct parser_state" argument.
2371 * p-exp.y (parse_type): Rewrite macro to use parser state.
2372 (yyparse): Redefine macro to pascal_parse_internal.
2373 (pstate): New variable.
2374 (parse_number): Add "struct parser_state" argument.
2375 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2376 write_exp* and similars in order to use parser state.
2377 (parse_number, yylex): Adjust code to use parser state.
2378 (pascal_parse): New function.
2379 * p-lang.h: Forward declare "struct parser_state".
2380 (pascal_parse): Add "struct parser_state" argument.
2381 * go-exp.y (parse_type): Rewrite macro to use parser state.
2382 (yyparse): Redefine macro to go_parse_internal.
2383 (pstate): New variable.
2384 (parse_number): Add "struct parser_state" argument.
2385 (type_exp, exp1, exp, variable, type): Update calls to
2386 write_exp* and similars in order to use parser state.
2387 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2388 to use parser state.
2389 (go_parse): Likewise.
2390 * go-lang.h: Forward declare "struct parser_state".
2391 (go_parse): Add "struct parser_state" argument.
2393 2014-03-27 Doug Evans <dje@google.com>
2395 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2397 2014-03-27 Doug Evans <dje@google.com>
2399 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2400 Remove argument abbrev_section. All callers updated.
2402 2014-03-27 Doug Evans <dje@google.com>
2404 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2405 addr_base, ranges_base.
2407 2014-03-26 Keith Seitz <keiths@redhat.com>
2409 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2410 types, not VAR_DOMAIN.
2412 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2414 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2416 * features/nios2-linux.c: Regenerated.
2417 * features/nios2.c: Regenerated.
2419 2014-03-25 Pedro Alves <palves@redhat.com>
2421 * cli/cli-script.c (script_from_file): Force the interpreter to
2424 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2426 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2427 small stack allocation.
2429 2014-03-24 Tristan Gingold <gingold@adacore.com>
2431 * darwin-nat.c (exc_server): Remove unused prototype.
2432 (darwin_dump_message): Correctly display data on x86_64.
2433 (darwin_encode_reply): Fix style.
2434 Add comments and fix indentation.
2436 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2438 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2440 2014-03-22 Doug Evans <xdje42@gmail.com>
2442 * infcmd.c: Whitespace fixes.
2443 (interrupt_command): Merge two function comments into one.
2445 2014-03-22 Doug Evans <xdje42@gmail.com>
2447 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2450 2014-03-22 Yao Qi <yao@codesourcery.com>
2452 * remote.c (target_read_live_memory): Remove.
2453 (memory_xfer_live_readonly_partial): Rename it to
2454 remote_xfer_live_readonly_partial. Remove argument 'object'.
2455 All callers updated. Call remote_read_bytes_1
2456 instead of target_read_live_memory.
2457 * tracepoint.c (set_traceframe_number): Remove.
2458 (make_cleanup_restore_traceframe_number): Likewise .
2459 * tracepoint.h (set_traceframe_number): Remove declaration.
2460 (make_cleanup_restore_traceframe_number): Likewise.
2462 2014-03-22 Yao Qi <yao@codesourcery.com>
2464 * remote.c (remote_read_bytes): Move code on reading from the
2466 (remote_read_bytes_1): ... here. New function.
2468 2014-03-22 Yao Qi <yao@codesourcery.com>
2470 * ctf.c (ctf_xfer_partial): Check the return value of
2471 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2472 return TARGET_XFER_UNAVAILABLE.
2473 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2474 * target.c (target_read_live_memory): Move it to remote.c.
2475 (memory_xfer_live_readonly_partial): Likewise.
2476 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2477 * remote.c (target_read_live_memory): Moved from target.c.
2478 (memory_xfer_live_readonly_partial): Likewise.
2479 (remote_read_bytes): Factored out from
2480 memory_xfer_partial_1.
2482 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2484 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2487 2014-03-21 Pedro Alves <palves@redhat.com>
2489 * infrun.c (normal_stop): Extend comment.
2491 2014-03-21 Hui Zhu <hui@codesourcery.com>
2492 Pedro Alves <palves@redhat.com>
2494 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2496 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2497 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2498 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2500 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2502 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2503 `z' formatted output modifier.
2505 2014-03-20 Tom Tromey <tromey@redhat.com>
2506 Sergio Durigan Junior <sergiodj@redhat.com>
2508 * probe.c (parse_probes): Turn assert into an ordinary error.
2509 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2510 exceptions when parsing probes. Rearrange the code for clarity.
2512 2014-03-20 Tom Tromey <tromey@redhat.com>
2515 * top.c (execute_command): Only dispatch events if the command
2518 2014-03-20 Tom Tromey <tromey@redhat.com>
2521 * infcall.c: Include event-top.h.
2522 (run_inferior_call): Call async_disable_stdin if needed.
2524 2014-03-20 Pedro Alves <palves@redhat.com>
2526 * infrun.c (prepare_to_proceed): Delete.
2527 (thread_still_needs_step_over): New function.
2528 (find_thread_needs_step_over): New function.
2529 (proceed): If the current thread needs a step-over, set its
2530 steping_over_breakpoint flag. Adjust to use
2531 find_thread_needs_step_over instead of prepare_to_proceed.
2532 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2533 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2535 (switch_back_to_stepped_thread): Step over breakpoints of all
2536 threads not the stepping thread, before switching back to the
2539 2014-03-20 Pedro Alves <palves@redhat.com>
2541 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2543 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2544 * infrun.c (saved_singlestep_ptid)
2545 (stepping_past_singlestep_breakpoint): Delete.
2546 (resume): Remove stepping_past_singlestep_breakpoint handling.
2547 (proceed): Store the prev_pc of the stepping thread too.
2548 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2550 (enum infwait_states): Delete infwait_thread_hop_state.
2551 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2553 (handle_inferior_event): Adjust.
2554 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2555 handling and the thread-hop code. Before removing single-step
2556 breakpoints, check whether the thread hit a single-step breakpoint
2557 of another thread. If it did, the trap is not a random signal.
2558 (switch_back_to_stepped_thread): If the event thread hit a
2559 single-step breakpoint, unblock it before switching to the
2560 stepping thread. Handle the case of the stepped thread having
2562 (keep_going): Handle the case of the current thread moving past a
2563 single-step breakpoint.
2565 2014-03-20 Pedro Alves <palves@redhat.com>
2568 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
2569 are being stepped over.
2570 (breakpoint_address_match): Make extern.
2571 * breakpoint.h (breakpoint_address_match): New declaration.
2572 * inferior.h (stepping_past_instruction_at): New declaration.
2573 * infrun.c (struct step_over_info): New type.
2574 (step_over_info): New global.
2575 (set_step_over_info, clear_step_over_info)
2576 (stepping_past_instruction_at): New functions.
2577 (handle_inferior_event): Clear the step-over info when
2578 trap_expected is cleared.
2579 (resume): Remove now stale comment.
2580 (clear_proceed_status): Clear step-over info.
2581 (proceed): Adjust step-over handling to set or clear the step-over
2582 info instead of removing all breakpoints.
2583 (handle_signal_stop): When setting up a thread-hop, don't remove
2585 (stop_stepping): Clear step-over info.
2586 (keep_going): Adjust step-over handling to set or clear step-over
2587 info and then always inserting breakpoints, instead of removing
2588 all breakpoints when stepping over one.
2590 2014-03-20 Pedro Alves <palves@redhat.com>
2592 * infrun.c (previous_inferior_ptid): Adjust comment.
2593 (deferred_step_ptid): Delete.
2594 (infrun_thread_ptid_changed, prepare_to_proceed)
2595 (init_wait_for_inferior): Adjust.
2596 (handle_signal_stop): Delete deferred_step_ptid handling.
2598 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2601 * defs.h (sync_quit_force_run): New declaration.
2602 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
2603 * event-top.c (async_sigterm_handler): New declaration.
2604 (async_sigterm_token): New variable.
2605 (async_init_signals): Create also async_sigterm_token.
2606 (async_sigterm_handler): New function.
2607 (sync_quit_force_run): New variable.
2608 (handle_sigterm): Replace quit_force call by other calls.
2609 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
2611 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
2613 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
2614 offset into SPE pseudo registers.
2616 2014-03-18 Pedro Alves <palves@redhat.com>
2619 * inferior.h (print_stop_event): Declare.
2620 * infrun.c (print_stop_event): New, factored out from ...
2621 (normal_stop): ... this.
2622 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
2623 of bpstat_print/print_stack_frame.
2625 2014-03-17 Tom Tromey <tromey@redhat.com>
2627 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
2629 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
2631 * ada-lang.c (decode_constrained_packed_array): Perform a
2632 minimal coercion for reference with coerce_ref instead of
2635 2014-03-17 Tristan Gingold <gingold@adacore.com>
2637 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
2638 (darwin_solib_create_inferior_hook): Emit a warning if version
2641 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
2643 * python/py-value.c (get_field_flag): Cast flag_name argument to
2644 PyObject_GetAttrString to support Python 2.4.
2646 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2648 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
2649 (Global Maintainers): Remove Jan Kratochvil.
2651 2014-03-14 Pedro Alves <palves@redhat.com>
2653 * inferior.h (terminal_ours_for_output): Rename to ...
2654 (child_terminal_ours_for_output): ... this.
2655 (terminal_save_ours): Rename to ...
2656 (child_terminal_save_ours): ... this.
2657 (terminal_ours): Rename to ...
2658 (child_terminal_ours): ... this.
2659 (terminal_inferior): Rename to ...
2660 (child_terminal_inferior): ... this.
2661 (terminal_init_inferior): Rename to ...
2662 (child_terminal_init_inferior): ... this.
2663 (terminal_init_inferior_with_pgrp): Rename to ...
2664 (child_terminal_init_inferior_with_pgrp): ... this.
2665 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
2666 (child_terminal_init_with_pgrp): ... this.
2667 (terminal_save_ours): Rename to ...
2668 (child_terminal_save_ours): ... this.
2669 (terminal_init_inferior): Rename to ...
2670 (child_terminal_init): ... this. Adjust.
2671 (terminal_inferior): Rename to ...
2672 (child_terminal_inferior): ... this.
2673 (terminal_ours_for_output): Rename to ...
2674 (child_terminal_ours_for_output): ... this. Adjust.
2675 (terminal_ours): Rename to ...
2676 (child_terminal_ours): ... this.
2677 (terminal_ours_1): Rename to ...
2678 (child_terminal_ours_1): ... this. Adjust.
2679 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
2680 * windows-nat.c (do_initial_windows_stuff): Adjust.
2681 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
2682 (gnu_terminal_init): ... this. Adjust.
2683 (gnu_target): Adjust.
2684 * inf-child.c (inf_child_target): Adjust.
2686 2014-03-13 Doug Evans <xdje42@gmail.com>
2689 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
2692 2014-03-13 Doug Evans <xdje42@gmail.com>
2694 * value.c (record_latest_value): Call release_value_or_incref
2695 instead of release_value.
2697 2014-03-13 Pedro Alves <palves@redhat.com>
2699 * procfs.c (procfs_target): Don't override to_shortname,
2700 to_longname or to_doc.
2702 2014-03-13 Pedro Alves <palves@redhat.com>
2704 * inf-child.c (inf_child_open, inf_child_target): Don't mention
2705 Unix in user visible strings.
2707 2014-03-12 Stan Shebs <stan@codesourcery.com>
2709 * gdbtypes.h: Annotate comments for Doxygen, add a page
2710 block comment with some general info.
2712 2014-03-12 Pedro Alves <palves@redhat.com>
2714 * infcmd.c (prepare_execution_command): New function, factored out
2715 from several execution commands.
2716 (run_command_1, continue_command, step_1, jump_command)
2717 (signal_command, until_command, advance_command, finish_command)
2718 (attach_command): Use prepare_execution_command.
2720 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
2722 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
2725 (struct arm_linux_thread_points): Removed.
2726 (struct arm_linux_process_info): New.
2727 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
2728 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
2729 (arm_linux_find_breakpoints_by_tid): Removed.
2730 (struct arch_lwp_info): New.
2731 (arm_linux_find_process_pid): New functions.
2732 (arm_linux_add_process): New functions.
2733 (arm_linux_process_info_get): New functions.
2734 (arm_linux_forget_process): New function.
2735 (arm_linux_get_debug_reg_state): New function.
2736 (struct update_registers_data): New.
2737 (update_registers_callback): New function.
2738 (arm_linux_insert_hw_breakpoint1): Updated.
2739 (arm_linux_remove_hw_breakpoint1): Updated.
2740 (arm_linux_insert_hw_breakpoint): Updated.
2741 (arm_linux_remove_hw_breakpoint): Updated.
2742 (arm_linux_insert_watchpoint): Updated.
2743 (arm_linux_remove_watchpoint): Updated.
2744 (arm_linux_new_thread): Updated.
2745 (arm_linux_prepare_to_resume): New function.
2746 (arm_linux_new_fork): New function.
2747 (_initialize_arm_linux_nat): Updated.
2749 2014-03-12 Pedro Alves <palves@redhat.com>
2751 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
2753 2014-03-12 Tom Tromey <tromey@redhat.com>
2755 * inf-child.c (return_zero): New function.
2756 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
2757 * aix-thread.c (aix_thread_inferior_created): New function.
2758 (aix_thread_attach): Remove.
2759 (init_aix_thread_ops): Don't set to_attach.
2760 (_initialize_aix_thread): Register inferior_created observer.
2761 * corelow.c (init_core_ops): Don't set to_attach or
2763 * exec.c (init_exec_ops): Don't set to_attach or
2765 * infcmd.c (run_command_1): Use find_run_target. Make direct
2767 (attach_command): Use find_attach_target. Make direct target
2769 * record-btrace.c (init_record_btrace_ops): Don't set
2771 * record-full.c (record_full_can_async_p, record_full_is_async_p):
2773 (init_record_full_ops, init_record_full_core_ops): Update. Don't
2774 set to_create_inferior.
2775 * target.c (complete_target_initialization): Add assertion.
2776 (target_create_inferior): Remove.
2777 (find_default_attach, find_default_create_inferior): Remove.
2778 (find_attach_target, find_run_target): New functions.
2779 (find_default_is_async_p, find_default_can_async_p)
2780 (target_supports_non_stop, target_attach): Remove.
2781 (init_dummy_target): Don't set to_create_inferior or
2782 to_supports_non_stop.
2783 * target.h (struct target_ops) <to_attach>: Add comment. Remove
2784 TARGET_DEFAULT_FUNC.
2785 <to_create_inferior>: Add comment.
2786 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
2787 TARGET_DEFAULT_RETURN.
2788 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
2789 (find_attach_target, find_run_target): Declare.
2790 (target_create_inferior): Remove.
2791 (target_has_execution_1): Update comment.
2792 (target_supports_non_stop): Remove.
2793 * target-delegates.c: Rebuild.
2795 2014-03-12 Pedro Alves <palves@redhat.com>
2797 * inf-child.h: Update comment to not mention Unix.
2799 2014-03-12 Pedro Alves <palves@redhat.com>
2801 * inf-child.c: Update top comment to not mention Unix. Add
2802 generic comment describing how this target is meant to be used.
2803 (inf_child_post_attach, inf_child_post_startup_inferior)
2804 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
2807 2014-03-12 Pedro Alves <palves@redhat.com>
2809 * nto-procfs.c: Include inf-child.h.
2810 (procfs_ops): Delete global.
2811 (procfs_can_run): Delete method.
2812 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
2813 target pointer instead of referencing procfs_ops.
2814 (procfs_prepare_to_store): Delete.
2815 (init_procfs_ops): Delete function.
2816 (procfs_target): New function, based on init_procfs_ops, but
2817 inherit inf_child_target.
2818 (_initialize_procfs): Use procfs_target.
2820 2014-03-12 Pedro Alves <palves@redhat.com>
2822 * windows-nat.c: Include inf-child.h.
2823 (windows_ops): Delete global.
2824 (windows_open, windows_prepare_to_store, windows_can_run): Delete
2826 (init_windows_ops): Delete function.
2827 (windows_target): New function, based on init_windows_ops, but
2828 inherit inf_child_target.
2829 (_initialize_windows_nat): Use windows_target. Install x86
2830 specific target methods here.
2832 2014-03-10 Doug Evans <xdje42@gmail.com>
2834 * guile/guile.c (call_initialize_gdb_module): New function.
2835 (initialize_guile): Replace call to scm_init_guile with call to
2838 2014-03-10 Joel Brobecker <brobecker@adacore.com>
2840 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
2841 in call to TYPE_CODE macro.
2843 2014-03-10 Jerome Guitton <guitton@adacore.com>
2845 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
2846 Resolve tagged types to full view.
2848 2014-03-10 Hui Zhu <hui@codesourcery.com>
2850 * target.h (target_insert_breakpoint): Remove "hardware" from its
2853 2014-03-07 Doug Evans <dje@google.com>
2855 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
2857 2014-03-07 Doug Evans <dje@google.com>
2859 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
2860 Remove unused local comp_dir_attr. Assert exactly one of
2861 stub_comp_unit_die, stub_comp_dir is non-NULL.
2863 2014-03-07 Joel Brobecker <brobecker@adacore.com>
2865 * target.h (complete_target_initialization, add_target):
2868 2014-03-07 Pedro Alves <palves@redhat.com>
2870 * go32-nat.c: Include inf-child.h.
2871 (go32_ops): Delete global.
2872 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
2874 (go32_create_inferior): Push the passed in target pointer instead
2875 of referencing go32_ops.
2876 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
2877 (go32_target): New function, based on init_go32_ops, but inherit
2879 (_initialize_go32_nat): Use go32_target. Move parts of
2882 2014-03-06 Joel Brobecker <brobecker@adacore.com>
2884 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
2885 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
2886 SYMBOL_VALUE_ADDRESS.
2887 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
2889 2014-03-06 Yao Qi <yao@codesourcery.com>
2891 * breakpoint.c (get_tracepoint_by_number): Remove argument
2892 optional_p. All callers updated. Adjust comments. Update
2894 * breakpoint.h (get_tracepoint_by_number): Update declaration.
2896 2014-03-06 Yao Qi <yao@codesourcery.com>
2898 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
2899 early if get_number returns zero. Use 'p' instead of 'args'.
2901 2014-03-06 Yao Qi <yao@codesourcery.com>
2903 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
2906 2014-03-06 Yao Qi <yao@codesourcery.com>
2908 PR breakpoints/16508
2909 * tracepoint.c (check_trace_running): New function.
2910 (trace_find_command): Move code to check_trace_running and
2911 call check_trace_running.
2912 (trace_find_pc_command): Likewise.
2913 (trace_find_tracepoint_command): Likewise.
2914 (trace_find_line_command): Likewise.
2915 (trace_find_range_command): Likewise.
2916 * tracepoint.h (check_trace_running): Likewise.
2917 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
2919 2014-03-06 Yao Qi <yao@codesourcery.com>
2921 * target.h (struct target_ops) <to_traceframe_info>: Use
2922 TARGET_DEFAULT_NORETURN (tcomplain ()).
2923 * target-delegates.c: Regenerated.
2925 2014-03-05 Pedro Alves <palves@redhat.com>
2928 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
2929 void. Update comment.
2930 (dcache_xfer_memory): Delete.
2931 (dcache_read_memory_partial): New, based on the read bits of
2933 (dcache_update): Add status parameter. Use ULONGEST for len, and
2934 adjust. Discard cache lines if the reason for the update was
2936 * dcache.h (dcache_xfer_memory): Delete declaration.
2937 (dcache_read_memory_partial): New declaration.
2938 (dcache_update): Update prototype.
2939 * target.c (raw_memory_xfer_partial): Update the dcache here.
2940 (memory_xfer_partial_1): Don't handle dcache writes here.
2942 2014-03-05 Mike Frysinger <vapier@gentoo.org>
2944 * remote-sim.c (gdbsim_load): Add const to prog.
2946 2014-03-03 Tom Tromey <tromey@redhat.com>
2948 * elfread.c (probe_key): Change to bfd_data.
2949 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
2950 now per-BFD, not per-objfile.
2951 * stap-probe.c (stap_probe_destroy): Update comment.
2952 (handle_stap_probe): Allocate on the per-BFD obstack.
2954 2014-03-03 Tom Tromey <tromey@redhat.com>
2956 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
2957 * breakpoint.c (create_longjmp_master_breakpoint): Use
2959 (add_location_to_breakpoint, bkpt_probe_insert_location)
2960 (bkpt_probe_remove_location): Update.
2961 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
2962 * elfread.c (elf_symfile_relocate_probe): Remove.
2963 (elf_probe_fns): Update.
2964 (insert_exception_resume_breakpoint): Change type of "probe"
2965 parameter to bound_probe.
2966 (check_exception_resume): Update.
2967 * objfiles.c (objfile_relocate1): Don't relocate probes.
2968 * probe.c (bound_probe_s): New typedef.
2969 (parse_probes): Use get_probe_address. Set sal's objfile.
2970 (find_probe_by_pc): Return a bound_probe.
2971 (collect_probes): Return a VEC(bound_probe_s).
2972 (compare_probes): Update.
2973 (gen_ui_out_table_header_info): Change type of "probes"
2975 (info_probes_for_ops): Update.
2976 (get_probe_address): New function.
2977 (probe_safe_evaluate_at_pc): Update.
2978 * probe.h (struct probe_ops) <get_probe_address>: New field.
2979 <set_semaphore, clear_semaphore>: Add objfile parameter.
2980 (struct probe) <objfile>: Remove field.
2982 <address>: Update comment.
2983 (struct bound_probe): New.
2984 (find_probe_by_pc): Return a bound_probe.
2985 (get_probe_address): Declare.
2986 * solib-svr4.c (struct probe_and_action) <address>: New field.
2987 (hash_probe_and_action, equal_probe_and_action): Update.
2988 (register_solib_event_probe): Add address parameter.
2989 (solib_event_probe_at): Update.
2990 (svr4_create_probe_breakpoints): Add objfile parameter. Use
2992 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
2993 (stap_get_probe_address): New function.
2994 (stap_can_evaluate_probe_arguments, compute_probe_arg)
2995 (compile_probe_arg): Update.
2996 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
2998 (handle_stap_probe): Don't relocate the probe.
2999 (stap_relocate): Remove.
3000 (stap_gen_info_probes_table_values): Update.
3001 (stap_probe_ops): Remove stap_relocate.
3002 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3003 (debug_sym_probe_fns): Update.
3004 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3005 * symtab.c (init_sal): Use memset.
3006 * symtab.h (struct symtab_and_line) <objfile>: New field.
3007 * tracepoint.c (start_tracing, stop_tracing): Update.
3009 2014-03-03 Tom Tromey <tromey@redhat.com>
3011 * probe.h (parse_probes, find_probe_by_pc)
3012 (find_probes_in_objfile): Fix comments.
3014 2014-03-02 Doug Evans <xdje42@gmail.com>
3016 * infrun.c (handle_signal_stop): Replace test for
3017 TARGET_WAITKIND_STOPPED with an assert.
3019 2014-03-02 Doug Evans <xdje42@gmail.com>
3021 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3023 2014-03-02 Doug Evans <xdje42@gmail.com>
3025 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3027 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3029 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3031 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3033 * i386obsd-nat.c: Include "obsd-nat.h".
3034 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3036 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3038 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3040 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3042 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3044 * mips64obsd-nat.c: Include "obsd-nath".
3045 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3047 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3049 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3051 * amd64obsd-nat.c: Include "obsd-nat,h.
3052 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3054 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3056 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3058 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3059 (find_overload_match): Update call to find_oload_champ.
3060 (find_oload_champ_namespace_loop): Likewise
3062 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3064 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3066 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3067 * config/sparc/obsd64.mh: New file.
3068 * sparc64obsd-nat.c: New file.
3070 * obsd-nat.h: New file.
3071 * obsd-nat.c: New file.
3072 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3073 (ALLDEPFILES): Add obsd-nat.c.
3075 2014-02-28 Tom Tromey <tromey@redhat.com>
3077 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3078 * cli-out.h (cli_ui_out_impl): Now const.
3079 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3080 * ui-out.c (struct ui_out) <impl>: Now const.
3081 (default_ui_out_impl): Now const.
3082 (ui_out_new): Make 'impl' parameter const.
3083 * ui-out.h (ui_out_new): Update.
3085 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3087 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3089 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3091 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3093 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3095 Additional PR 8882 fix.
3096 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3098 2014-02-27 Pedro Alves <palves@redhat.com>
3100 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3103 2014-02-27 Pedro Alves <palves@redhat.com>
3106 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3107 * nat/linux-waitpid.c: Include string.h.
3108 (status_to_str): Moved here and made extern.
3109 * nat/linux-waitpid.h (status_to_str): New declaration.
3111 2014-02-27 Hui Zhu <hui@codesourcery.com>
3114 * infrun.c (ptid_match): Move ...
3115 * common/ptid.c (ptid_match): ... here.
3116 * inferior.h (ptid_match): Move ...
3117 * common/ptid.h (ptid_match): ... here.
3119 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3121 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3122 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3125 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3127 * obsd-tdep.c (obsd_auxv_parse): New function.
3128 (obsd_init_abi): Set auxv_parse.
3130 * gdbarch.sh (auxv_parse): New.
3131 * gdbarch.h: Regenerated.
3132 * gdbarch.c: Regenerated.
3133 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3135 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3137 * guile/scm-value.c (gdbscm_history_append_x): New function.
3138 (value_functions): Add it.
3140 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3142 * dwarf2read.c (attr_value_as_address): New function.
3143 (dwarf2_find_base_address, read_call_site_scope): Use
3144 attr_value_as_address in place of DW_ADDR.
3145 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3146 the low and high addresses. Slight rework of the handling
3147 of the high pc being a constant form, and limit it to
3148 DWARF verson 4 or higher.
3149 (dwarf2_record_block_ranges): Likewise.
3150 (read_partial_die): Likewise.
3151 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3153 2014-02-26 Tom Tromey <tromey@redhat.com>
3155 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3157 2014-02-26 Tom Tromey <tromey@redhat.com>
3159 * elfread.c (elf_read_minimal_symbols): Return early if
3160 minimal symbols have already been read. Add "ei" parameter.
3161 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3162 * minsyms.c (prim_record_minimal_symbol_full): Update.
3163 * objfiles.h (struct objstats) <n_minsyms>: Move...
3164 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3165 * symmisc.c (print_objfile_statistics): Update.
3167 2014-02-26 Tom Tromey <tromey@redhat.com>
3169 * elfread.c (elf_read_minimal_symbols): New function, from
3171 (elf_symfile_read): Call it.
3173 2014-02-26 Tom Tromey <tromey@redhat.com>
3175 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3176 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3177 (lookup_minimal_symbol_solib_trampoline)
3178 (lookup_minimal_symbol_by_pc_section_1)
3179 (lookup_minimal_symbol_and_objfile): Update.
3180 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3181 Don't allocate a minimal symbol if minsyms have already been read.
3182 (build_minimal_symbol_hash_tables): Update.
3183 (install_minimal_symbols): Do nothing if minsyms already read.
3184 Use the per-BFD obstack.
3185 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3186 * objfiles.c (allocate_objfile): Call
3187 terminate_minimal_symbol_table later.
3188 (have_minimal_symbols): Update.
3189 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3190 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3191 Move from struct objfile.
3192 <minsyms_read>: New field.
3193 (struct objfile) <msymbols, minimal_symbol_count,
3194 msymbol_hash, msymbol_demangled_hash>: Move.
3195 (ALL_OBJFILE_MSYMBOLS): Update.
3196 * symfile.c (read_symbols): Set minsyms_read.
3197 (reread_symbols): Update.
3198 * symmisc.c (dump_objfile, dump_msymbols): Update.
3200 2014-02-26 Tom Tromey <tromey@redhat.com>
3202 * minsyms.c (msymbols_sort): Remove.
3203 * minsyms.h (msymbols_sort): Remove.
3204 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3205 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3206 * elfread.c (elf_symtab_read): Don't add section offsets.
3207 * xcoffread.c (record_minimal_symbol): Don't add section offset
3208 to minimal symbol address.
3209 * somread.c (text_offset, data_offset): Remove.
3210 (som_symtab_read): Don't add section offsets to minimal symbol
3212 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3213 Don't add section offsets to minimal symbols.
3214 * coffread.c (coff_symtab_read): Don't add section offsets
3215 to minimal symbol addresses.
3216 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3217 to minimal symbol addresses.
3218 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3219 section offset to minimal symbol addresses.
3220 * mdebugread.c (parse_partial_symbols): Don't add section
3221 offset to minimal symbol addresses.
3222 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3223 offset to minimal symbol addresses.
3225 2014-02-26 Tom Tromey <tromey@redhat.com>
3227 * ada-lang.c (ada_main_name): Update.
3228 (ada_add_standard_exceptions): Update.
3229 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3230 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3231 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3232 * auxv.c (ld_so_xfer_auxv): Update.
3233 * avr-tdep.c (avr_scan_prologue): Update.
3234 * ax-gdb.c (gen_var_ref): Update.
3235 * blockframe.c (get_pc_function_start)
3236 (find_pc_partial_function_gnu_ifunc): Update.
3237 * breakpoint.c (create_overlay_event_breakpoint)
3238 (create_longjmp_master_breakpoint)
3239 (create_std_terminate_master_breakpoint)
3240 (create_exception_master_breakpoint): Update.
3241 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3242 * c-valprint.c (c_val_print): Update.
3243 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3244 * common/agent.c (agent_look_up_symbols): Update.
3245 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3246 * dwarf2loc.c (call_site_to_target_addr): Update.
3247 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3248 * elfread.c (elf_gnu_ifunc_record_cache)
3249 (elf_gnu_ifunc_resolve_by_got): Update.
3250 * findvar.c (default_read_var_value): Update.
3251 * frame.c (inside_main_func): Update.
3252 * frv-tdep.c (frv_frame_this_id): Update.
3253 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3254 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3256 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3257 (hppa_hpux_find_dummy_bpaddr): Update.
3258 * hppa-tdep.c (hppa_symbol_address): Update.
3259 * infcmd.c (until_next_command): Update.
3260 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3262 * linespec.c (minsym_found, add_minsym): Update.
3263 * linux-nat.c (get_signo): Update.
3264 * linux-thread-db.c (inferior_has_bug): Update.
3265 * m32c-tdep.c (m32c_return_value)
3266 (m32c_m16c_address_to_pointer): Update.
3267 * m32r-tdep.c (m32r_frame_this_id): Update.
3268 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3269 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3270 * maint.c (maintenance_translate_address): Update.
3271 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3272 (frob_address): New function.
3273 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3274 frob_address. Rename parameter to "pc_in".
3275 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3277 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3279 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3280 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3281 * objc-lang.c (find_objc_msgsend): Update.
3282 * objfiles.c (objfile_relocate1): Update.
3283 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3284 * p-valprint.c (pascal_val_print): Update.
3285 * parse.c (write_exp_msymbol): Update.
3286 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3287 (ppc_elfv2_skip_entrypoint): Update.
3288 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3289 * printcmd.c (build_address_symbolic, msym_info)
3290 (address_info): Update.
3291 * proc-service.c (ps_pglobal_lookup): Update.
3292 * psymtab.c (find_pc_sect_psymtab_closer)
3293 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3294 Change msymbol parameter to bound_minimal_symbol.
3295 * ravenscar-thread.c (get_running_thread_id): Update.
3296 * remote.c (remote_check_symbols): Update.
3297 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3299 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3300 * solib-dsbt.c (lm_base): Update.
3301 * solib-frv.c (lm_base, main_got): Update.
3302 * solib-irix.c (locate_base): Update.
3303 * solib-som.c (som_solib_create_inferior_hook)
3304 (link_map_start): Update.
3305 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3306 * solib-svr4.c (elf_locate_base, enable_break): Update.
3307 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3308 (flush_ea_cache): Update.
3309 * stabsread.c (define_symbol, scan_file_globals): Update.
3310 * stack.c (find_frame_funname): Update.
3311 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3312 (debug_qf_find_pc_sect_symtab): Update.
3313 * symfile.c (simple_read_overlay_table)
3314 (simple_overlay_update): Update.
3315 * symfile.h (struct quick_symbol_functions)
3316 <find_pc_sect_symtab>: Change type of msymbol to
3317 bound_minimal_symbol.
3318 * symmisc.c (dump_msymbols): Update.
3319 * symtab.c (find_pc_sect_symtab_via_partial)
3320 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3321 (search_symbols, print_msymbol_info): Update.
3322 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3323 (MSYMBOL_VALUE_ADDRESS): Redefine.
3324 (BMSYMBOL_VALUE_ADDRESS): New macro.
3325 * tracepoint.c (scope_info): Update.
3326 * tui/tui-disasm.c (tui_find_disassembly_address)
3327 (tui_get_begin_asm_address): Update.
3328 * valops.c (find_function_in_inferior): Update.
3329 * value.c (value_static_field, value_fn_field): Update.
3331 2014-02-26 Tom Tromey <tromey@redhat.com>
3333 * ada-lang.c (ada_update_initial_language): Update.
3334 (ada_main_name, ada_has_this_exception_support): Update.
3335 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3336 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3337 * arm-tdep.c (arm_skip_stub): Update.
3338 * auxv.c (ld_so_xfer_auxv): Update.
3339 * avr-tdep.c (avr_scan_prologue): Update.
3340 * ax-gdb.c (gen_var_ref): Update.
3341 * breakpoint.c (struct breakpoint_objfile_data)
3342 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3343 type to bound_minimal_symbol.
3344 (create_overlay_event_breakpoint)
3345 (create_longjmp_master_breakpoint)
3346 (create_std_terminate_master_breakpoint)
3347 (create_exception_master_breakpoint): Update.
3348 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3349 * c-exp.y (classify_name): Update.
3350 * coffread.c (coff_symfile_read): Update.
3351 * common/agent.c (agent_look_up_symbols): Update.
3352 * d-lang.c (d_main_name): Update.
3353 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3354 * dec-thread.c (enable_dec_thread): Update.
3355 * dwarf2loc.c (call_site_to_target_addr): Update.
3356 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3357 * eval.c (evaluate_subexp_standard): Update.
3358 * findvar.c (struct minsym_lookup_data) <result>: Change type
3359 to bound_minimal_symbol.
3361 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3362 * frame.c (inside_main_func): Update.
3363 * frv-tdep.c (frv_frame_this_id): Update.
3364 * gcore.c (call_target_sbrk): Update.
3365 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3366 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3368 * go-lang.c (go_main_name): Update.
3369 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3370 (hppa_hpux_find_import_stub_for_addr): Update.
3371 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3372 Update. Change return type.
3373 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3375 * jit.c (jit_breakpoint_re_set_internal): Update.
3376 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3378 * linux-nat.c (get_signo): Update.
3379 * linux-thread-db.c (inferior_has_bug): Update
3380 * m32c-tdep.c (m32c_return_value)
3381 (m32c_m16c_address_to_pointer): Update.
3382 * m32r-tdep.c (m32r_frame_this_id): Update.
3383 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3384 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3385 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3386 lookup_minimal_symbol. Change return type.
3387 (lookup_minimal_symbol): Remove.
3388 (lookup_bound_minimal_symbol): Update.
3389 (lookup_minimal_symbol_text): Change return type.
3390 (lookup_minimal_symbol_solib_trampoline): Change return type.
3391 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3392 (lookup_minimal_symbol_solib_trampoline): Change return type.
3393 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3394 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3395 (value_nsstring, find_imps): Update.
3396 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3397 * p-lang.c (pascal_main_name): Update.
3398 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3399 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3400 * proc-service.c (ps_pglobal_lookup): Update.
3401 * ravenscar-thread.c (get_running_thread_msymbol): Change
3403 (has_ravenscar_runtime, get_running_thread_id): Update.
3404 * remote.c (remote_check_symbols): Update.
3405 * sol-thread.c (ps_pglobal_lookup): Update.
3406 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3407 * solib-dsbt.c (lm_base): Update.
3408 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3410 * solib-irix.c (locate_base): Update.
3411 * solib-som.c (som_solib_create_inferior_hook)
3412 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3414 * solib-spu.c (spu_enable_break): Update.
3415 * solib-svr4.c (elf_locate_base, enable_break): Update.
3416 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3417 (flush_ea_cache): Update.
3418 * stabsread.c (define_symbol): Update.
3419 * symfile.c (simple_read_overlay_table): Update.
3420 * symtab.c (find_pc_sect_line): Update.
3421 * tracepoint.c (scope_info): Update.
3422 * tui-disasm.c (tui_get_begin_asm_address): Update.
3423 * value.c (value_static_field): Update.
3425 2014-02-26 Tom Tromey <tromey@redhat.com>
3427 * minsyms.c (prim_record_minimal_symbol_full): Use
3428 SET_MSYMBOL_VALUE_ADDRESS.
3429 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3430 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3431 SET_MSYMBOL_VALUE_ADDRESS.
3432 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3433 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3435 2014-02-26 Tom Tromey <tromey@redhat.com>
3437 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3438 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3439 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3440 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3441 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3442 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3443 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3444 * ada-lang.c (ada_main_name): Update.
3445 (ada_lookup_simple_minsym): Update.
3446 (ada_make_symbol_completion_list): Update.
3447 (ada_add_standard_exceptions): Update.
3448 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3449 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3450 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3451 * arm-tdep.c (skip_prologue_function): Update.
3452 (arm_skip_stack_protector, arm_skip_stub): Update.
3453 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3454 (arm_wince_skip_main_prologue): Update.
3455 * auxv.c (ld_so_xfer_auxv): Update.
3456 * avr-tdep.c (avr_scan_prologue): Update.
3457 * ax-gdb.c (gen_var_ref): Update.
3458 * block.c (call_site_for_pc): Update.
3459 * blockframe.c (get_pc_function_start): Update.
3460 (find_pc_partial_function_gnu_ifunc): Update.
3461 * breakpoint.c (create_overlay_event_breakpoint): Update.
3462 (create_longjmp_master_breakpoint): Update.
3463 (create_std_terminate_master_breakpoint): Update.
3464 (create_exception_master_breakpoint): Update.
3465 (resolve_sal_pc): Update.
3466 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3467 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3469 * c-valprint.c (c_val_print): Update.
3470 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3471 * coffread.c (coff_symfile_read): Update.
3472 * common/agent.c (agent_look_up_symbols): Update.
3473 * dbxread.c (find_stab_function_addr): Update.
3474 (end_psymtab): Update.
3475 * dwarf2loc.c (call_site_to_target_addr): Update.
3476 (func_verify_no_selftailcall): Update.
3477 (tailcall_dump): Update.
3478 (call_site_find_chain_1): Update.
3479 (dwarf_expr_reg_to_entry_parameter): Update.
3480 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3481 (elf_gnu_ifunc_resolve_by_got): Update.
3482 * f-valprint.c (info_common_command): Update.
3483 * findvar.c (read_var_value): Update.
3484 * frame.c (get_prev_frame_1): Update.
3485 (inside_main_func): Update.
3486 * frv-tdep.c (frv_skip_main_prologue): Update.
3487 (frv_frame_this_id): Update.
3488 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3489 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3490 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3491 (gnuv3_skip_trampoline): Update.
3492 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3493 (hppa64_hpux_in_solib_call_trampoline): Update.
3494 (hppa_hpux_skip_trampoline_code): Update.
3495 (hppa64_hpux_search_dummy_call_sequence): Update.
3496 (hppa_hpux_find_import_stub_for_addr): Update.
3497 (hppa_hpux_find_dummy_bpaddr): Update.
3498 * hppa-tdep.c (hppa_symbol_address)
3499 (hppa_lookup_stub_minimal_symbol): Update.
3500 * i386-tdep.c (i386_skip_main_prologue): Update.
3501 (i386_pe_skip_trampoline_code): Update.
3502 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3503 * infcall.c (get_function_name): Update.
3504 * infcmd.c (until_next_command): Update.
3505 * jit.c (jit_breakpoint_re_set_internal): Update.
3506 (jit_inferior_init): Update.
3507 * linespec.c (minsym_found): Update.
3508 (add_minsym): Update.
3509 * linux-fork.c (info_checkpoints_command): Update.
3510 * linux-nat.c (get_signo): Update.
3511 * linux-thread-db.c (inferior_has_bug): Update.
3512 * m32c-tdep.c (m32c_return_value): Update.
3513 (m32c_m16c_address_to_pointer): Update.
3514 (m32c_m16c_pointer_to_address): Update.
3515 * m32r-tdep.c (m32r_frame_this_id): Update.
3516 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3517 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3518 * maint.c (maintenance_translate_address): Update.
3519 * minsyms.c (add_minsym_to_hash_table): Update.
3520 (add_minsym_to_demangled_hash_table): Update.
3521 (msymbol_objfile): Update.
3522 (lookup_minimal_symbol): Update.
3523 (iterate_over_minimal_symbols): Update.
3524 (lookup_minimal_symbol_text): Update.
3525 (lookup_minimal_symbol_by_pc_name): Update.
3526 (lookup_minimal_symbol_solib_trampoline): Update.
3527 (lookup_minimal_symbol_by_pc_section_1): Update.
3528 (lookup_minimal_symbol_and_objfile): Update.
3529 (prim_record_minimal_symbol_full): Update.
3530 (compare_minimal_symbols): Update.
3531 (compact_minimal_symbols): Update.
3532 (build_minimal_symbol_hash_tables): Update.
3533 (install_minimal_symbols): Update.
3534 (terminate_minimal_symbol_table): Update.
3535 (find_solib_trampoline_target): Update.
3536 (minimal_symbol_upper_bound): Update.
3537 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3538 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3539 (mips_skip_pic_trampoline_code): Update.
3540 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3541 * objc-lang.c (selectors_info): Update.
3542 (classes_info): Update.
3543 (find_methods): Update.
3544 (find_imps): Update.
3545 (find_objc_msgsend): Update.
3546 * objfiles.c (objfile_relocate1): Update.
3547 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3548 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3549 * p-valprint.c (pascal_val_print): Update.
3550 * parse.c (write_exp_msymbol): Update.
3551 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3552 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3553 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3554 * printcmd.c (build_address_symbolic): Update.
3556 (address_info): Update.
3557 * proc-service.c (ps_pglobal_lookup): Update.
3558 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3559 (find_pc_sect_psymtab): Update.
3560 * python/py-framefilter.c (py_print_frame): Update.
3561 * ravenscar-thread.c (get_running_thread_id): Update.
3562 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3564 * remote.c (remote_check_symbols): Update.
3565 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3566 (rs6000_skip_trampoline_code): Update.
3567 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3568 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3569 * solib-dsbt.c (lm_base): Update.
3570 * solib-frv.c (lm_base): Update.
3572 * solib-irix.c (locate_base): Update.
3573 * solib-som.c (som_solib_create_inferior_hook): Update.
3574 (som_solib_desire_dynamic_linker_symbols): Update.
3575 (link_map_start): Update.
3576 * solib-spu.c (spu_enable_break): Update.
3577 (ocl_enable_break): Update.
3578 * solib-svr4.c (elf_locate_base): Update.
3579 (enable_break): Update.
3580 * spu-tdep.c (spu_get_overlay_table): Update.
3581 (spu_catch_start): Update.
3582 (flush_ea_cache): Update.
3583 * stabsread.c (define_symbol): Update.
3584 (scan_file_globals): Update.
3585 * stack.c (find_frame_funname): Update.
3586 (frame_info): Update.
3587 * symfile.c (simple_read_overlay_table): Update.
3588 (simple_overlay_update): Update.
3589 * symmisc.c (dump_msymbols): Update.
3590 * symtab.c (fixup_section): Update.
3591 (find_pc_sect_line): Update.
3592 (skip_prologue_sal): Update.
3593 (search_symbols): Update.
3594 (print_msymbol_info): Update.
3595 (rbreak_command): Update.
3596 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
3597 (completion_list_objc_symbol): Update.
3598 (default_make_symbol_completion_list_break_on): Update.
3599 * tracepoint.c (scope_info): Update.
3600 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
3601 (tui_get_begin_asm_address): Update.
3602 * valops.c (find_function_in_inferior): Update.
3603 * value.c (value_static_field): Update.
3604 (value_fn_field): Update.
3606 2014-02-26 Tom Tromey <tromey@redhat.com>
3608 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
3609 bound minimal symbols. Move code that knows about minsym
3611 * minsyms.c (minimal_symbol_upper_bound): ... here. New
3613 * minsyms.h (minimal_symbol_upper_bound): Declare.
3614 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
3615 minimal_symbol_upper_bound.
3617 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3619 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
3620 Use the type's name if its basic type does not have a tag.
3622 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3624 * dwarf2read.c (read_subrange_type): Add comment.
3626 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3628 * dwarf2read.c (update_enumeration_type_from_children): New
3629 function, mostly extracted from process_structure_scope.
3630 (read_enumeration_type): Call update_enumeration_type_from_children.
3631 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
3632 and flag_flag_enum fields.
3634 2014-02-26 Pedro Alves <palves@redhat.com>
3636 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
3637 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
3638 to_xfer_partial method.
3640 2014-02-26 Pedro Alves <palves@redhat.com>
3642 * target.c (complete_target_initialization): Don't install
3643 default_xfer_partial as to_xfer_partial hook.
3645 (update_current_target): Don't INHERIT nor de_fault
3646 deprecated_xfer_memory. Delete de_fault macro.
3647 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
3648 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
3649 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
3652 2014-02-26 Pedro Alves <palves@redhat.com>
3654 * go32-nat.c (my_write_child): New function.
3655 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
3656 (go32_xfer_partial): New function.
3657 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
3658 Instead install a to_xfer_partial hook.
3660 2014-02-26 Pedro Alves <palves@redhat.com>
3662 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
3663 to_xfer_partial helper. Rewrite.
3664 (procfs_xfer_partial): New function.
3665 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
3666 Install a to_xfer_partial hook.
3668 2014-02-26 Pedro Alves <palves@redhat.com>
3670 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
3671 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
3672 (m32r_xfer_partial): New function.
3673 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
3674 Install a to_xfer_partial hook.
3676 2014-02-26 Pedro Alves <palves@redhat.com>
3678 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
3680 (mips_xfer_partial): New function.
3681 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
3682 hook. Install a to_xfer_partial hook.
3684 2014-02-26 Joel Brobecker <brobecker@adacore.com>
3686 * gdbtypes.h (create_array_type_with_stride): Add declaration.
3687 * gdbtypes.c (create_array_type_with_stride): New function,
3688 renaming create_array_type, but with an added parameter
3689 called "bit_stride".
3690 (create_array_type): Re-implement using
3691 create_array_type_with_stride.
3692 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
3693 and DW_AT_bit_stride attributes.
3695 2014-02-26 Pedro Alves <palves@redhat.com>
3697 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
3698 task-specific breakpoints.
3700 2014-02-25 Pedro Alves <palves@redhat.com>
3702 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
3703 handling of object == TARGET_OBJECT_UNWIND_TABLE.
3705 2014-02-25 Stan Shebs <stan@codesourcery.com>
3707 * defs.h: Annotate comments for Doxygen.
3709 2014-02-25 Tom Tromey <tromey@redhat.com>
3711 * target.h (target_ignore): Don't declare.
3712 * target.c (target_ignore): Remove.
3714 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3717 * auto-load.c (auto_load_objfile_script_1): Change filename to
3720 2014-02-25 Joel Brobecker <brobecker@adacore.com>
3722 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
3723 documentation. Adjust prototype to match the target_ops
3724 to_xfer_partial method. Adjust implementation accordingly.
3726 2014-02-25 Hui Zhu <hui@codesourcery.com>
3728 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
3731 2014-02-25 Kevin Buettner <kevinb@redhat.com>
3733 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
3734 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
3735 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
3736 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
3737 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
3738 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
3739 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
3740 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
3742 (rl78_register_type): Use a data pointer type for SP and
3743 new pseudo registers mentioned above. Use a 16 bit integer
3744 type for all other register pairs.
3745 (rl78_register_name, rl78_g10_register_name): Update for
3746 new pseudo registers.
3747 (rl78_pseudo_register_read): Likewise.
3748 (rl78_pseudo_register_write): Likewise.
3749 (rl78_dwarf_reg_to_regnum): Return register numbers representing
3750 to the newly added pseudo registers.
3752 2014-02-24 Doug Evans <dje@google.com>
3754 * value.c (record_latest_value): Fix comment.
3755 * printcmd.c (print_command_1): Remove code to handle -1 return from
3756 record_latest_value.
3758 2014-02-24 Pedro Alves <palves@redhat.com>
3760 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
3761 deprecated_xfer_memory hook.
3762 (procfs_xfer_partial): Call procfs_xfer_memory instead
3763 of the deprecated_xfer_memory target hook.
3764 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
3767 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
3769 * windows-nat.c (windows_xfer_shared_libraries): Return
3770 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
3771 requested object is TARGET_OBJECT_LIBRARIES.
3773 2014-02-24 Yao Qi <yao@codesourcery.com>
3775 * target.h (enum target_xfer_status)
3776 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
3777 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
3779 * corefile.c (memory_error_message): User updated.
3780 * exec.c (section_table_read_available_memory): Likewise.
3781 * record-btrace.c (record_btrace_xfer_partial): Likewise.
3782 * target.c (target_xfer_status_to_string): Likewise.
3783 (raw_memory_xfer_partial): Likewise.
3784 (memory_xfer_partial_1, target_xfer_partial): Likewise.
3785 * valops.c (read_value_memory): Likewise.
3786 * exec.h: Update comments.
3788 2014-02-24 Yao Qi <yao@codesourcery.com>
3790 * target.c (target_xfer_status_to_string): Rename argument err
3792 * target.h (target_xfer_status_to_string): Update declaration.
3793 Replace target_xfer_error_to_string with
3794 target_xfer_status_to_string in comment.
3796 2014-02-24 Yao Qi <yao@codesourcery.com>
3798 * mips-linux-nat.c (super_close): Update its type.
3799 (mips_linux_close): Pass 'self' to super_close.
3801 2014-02-24 Yao Qi <yao@codesourcery.com>
3803 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
3804 * corefile.c (read_memory): Adjusted.
3805 * target.c (target_write_with_progress): Adjusted.
3807 2014-02-23 Yao Qi <yao@codesourcery.com>
3811 2013-10-25 Yao Qi <yao@codesourcery.com>
3813 * remote.c (remote_traceframe_info): Return early if
3814 traceframe is not selected.
3816 2013-07-19 Yao Qi <yao@codesourcery.com>
3818 * target.c (update_current_target): Change the default action
3819 of 'to_traceframe_info' from tcomplain to return_zero.
3820 * target.h (struct target_ops) <to_traceframe_info>: Add more
3823 2014-02-23 Yao Qi <yao@codesourcery.com>
3825 * valops.c (read_value_memory): Rewrite it. Call
3826 target_xfer_partial in a loop.
3827 * exec.h (section_table_available_memory): Remove declaration.
3828 Move comments to ...
3829 * exec.c (section_table_available_memory): ... here. Make it
3832 2014-02-23 Yao Qi <yao@codesourcery.com>
3834 * exec.c (section_table_read_available_memory): New function.
3835 * exec.h (section_table_read_available_memory): Declare.
3836 * ctf.c (ctf_xfer_partial): Call
3837 section_table_read_available_memory.
3838 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3840 2014-02-23 Yao Qi <yao@codesourcery.com>
3842 * ctf.c (ctf_xfer_partial): Move code to ...
3843 * exec.c (exec_read_partial_read_only): ... it. New function.
3844 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3845 * tracefile.c: Include "exec.h".
3846 * exec.h (exec_read_partial_read_only): Declare.
3848 2014-02-23 Yao Qi <yao@codesourcery.com>
3850 * tracefile-tfile.c (tfile_has_all_memory): Remove.
3851 (tfile_has_memory): Remove.
3852 (init_tfile_ops): Don't set fields to_has_all_memory and
3853 to_has_memory of tfile_ops.
3854 * tracefile.c (tracefile_has_all_memory): New function.
3855 (tracefile_has_memory): New function.
3856 (init_tracefile_ops): Initialize fields to_has_all_memory and
3857 to_has_memory of 'ops'.
3859 2014-02-23 Yao Qi <yao@codesourcery.com>
3861 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
3862 (ctf_thread_alive, ctf_get_trace_status): Remove.
3863 (init_ctf_ops): Don't set some fields of ctf_ops. Call
3865 * tracefile-tfile.c (tfile_get_trace_status): Remove.
3866 (tfile_has_stack, tfile_has_registers): Remove.
3867 (tfile_thread_alive): Remove.
3868 (init_tfile_ops): Don't set some fields of tfile_ops. Call
3870 * tracefile.c (tracefile_has_stack): New function.
3871 (tracefile_has_registers): New function.
3872 (tracefile_thread_alive): New function.
3873 (tracefile_get_trace_status): New function.
3874 (init_tracefile_ops): New function.
3875 * tracefile.h (init_tracefile_ops): Declare.
3877 2014-02-23 Yao Qi <yao@codesourcery.com>
3879 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
3880 (O_LARGEFILE): Likewise.
3881 (tfile_ops): Likewise.
3882 (TRACE_HEADER_SIZE): Likewise.
3883 (trace_fd, trace_frames_offset, cur_offset): Likewise.
3884 (cur_data_size): Likewise.
3885 (tfile_read, tfile_open, tfile_interp_line): Likewise.
3886 (tfile_close, tfile_files_info): Likewise.
3887 (tfile_get_trace_status): Likewise.
3888 (tfile_get_tracepoint_status): Likewise.
3889 (tfile_get_traceframe_address): Likewise.
3890 (tfile_trace_find, match_blocktype): Likewise.
3891 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
3892 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
3893 (tfile_get_trace_state_variable_value): Likewise.
3894 (tfile_has_all_memory, tfile_has_memory): Likewise.
3895 (tfile_has_stack, tfile_has_registers): Likewise.
3896 (tfile_thread_alive, build_traceframe_info): Likewise.
3897 (tfile_traceframe_info, init_tfile_ops): Likewise.
3898 (_initialize_tracepoint): Don't call init_tfile_ops
3899 and add_target_with_completer.
3900 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
3901 exec.h, completer.h and filenames.h.
3902 (_initialize_tracefile_tfile): New function.
3904 2014-02-23 Yao Qi <yao@codesourcery.com>
3906 * Makefile.in (REMOTE_OBS): Append tracefile.o and
3908 (HFILES_NO_SRCDIR): Add tracefile.h.
3909 * ctf.c: Include "tracefile.h".
3910 * tracefile.h: New file.
3911 * tracefile.c: New file
3912 * tracefile-tfile.c: New file.
3913 * tracepoint.c: Include "tracefile.h".
3914 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
3915 (stop_reason_names): Add const.
3916 (trace_file_writer_xfree): Move it to tracefile.c.
3917 (trace_save, trace_save_command, trace_save_tfile): Likewise.
3918 (trace_save_ctf): Likewise.
3919 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
3920 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
3921 (tfile_write_header, tfile_write_regblock_type): Likewise.
3922 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
3923 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
3924 (tfile_write_raw_data, tfile_end): Likewise.
3925 (tfile_trace_file_writer_new): Likewise.
3926 (free_uploaded_tp): Make it extern.
3927 (free_uploaded_tsv): Make it extern.
3928 (_initialize_tracepoint): Move code to register command 'tsave'
3930 * tracepoint.h (stop_reason_names): Declare.
3931 (struct trace_frame_write_ops): Move it to tracefile.h.
3932 (struct trace_file_write_ops): Likewise.
3933 (struct trace_file_writer): Likewise.
3934 (free_uploaded_tsvs, free_uploaded_tps): Declare.
3936 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3939 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
3941 (get_cores_used_by_process): New parameter num_cores, use it.
3942 (linux_xfer_osdata_processes): Pass num_cores to it.
3943 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
3946 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
3948 * target.c (memory_xfer_partial): Fix length arg in call to
3949 breakpoint_xfer_memory.
3951 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
3954 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
3955 number comes after the + or - signs. Adjust length of register
3956 name to be extracted.
3958 2014-02-20 Tom Tromey <tromey@redhat.com>
3960 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
3961 (ada_varobj_ops): Mark "extern".
3963 2014-02-20 Tom Tromey <tromey@redhat.com>
3965 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
3967 2014-02-20 Doug Evans <xdje42@gmail.com>
3969 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
3970 All callers updated.
3971 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
3972 All callers updated.
3973 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
3974 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
3976 2014-02-20 lin zuojian <manjian2006@gmail.com>
3977 Joel Brobecker <brobecker@adacore.com>
3978 Doug Evans <xdje42@gmail.com>
3981 * dwarf2read.c (struct die_info): New member in_process.
3982 (reset_die_in_process): New function.
3983 (process_die): Set it at the start, reset when returning.
3984 (inherit_abstract_dies): Only call process_die if origin_child_die
3985 not already being processed.
3987 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3989 * windows-nat.c (handle_unload_dll): Add function documentation.
3990 (do_initial_windows_stuff): Add comment explaining why we wait
3991 until after inferior initialization has finished before
3992 processing all DLLs.
3994 2014-02-20 Joel Brobecker <brobecker@adacore.com>
3996 * windows-nat.c (get_module_name): Delete.
3997 (windows_get_exec_module_filename): New function, mostly
3998 inspired from get_module_name.
3999 (windows_pid_to_exec_file): Replace call to get_module_name
4000 by call to windows_get_exec_module_filename.
4002 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4004 * windows-nat.c (handle_load_dll): Rewrite this function's
4005 introductory comment. Remove code using get_module_name
4006 to get the DLL's name.
4008 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4010 * windows-nat.c (get_windows_debug_event): Ignore
4011 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4012 if windows_initialization_done == 0.
4013 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4014 Adjust implementation to always load all DLLs.
4015 (do_initial_windows_stuff): Replace call to
4016 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4018 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4020 * windows-nat.c (_initialize_windows_nat): Deprecate the
4021 "dll-symbols" command. Turn the "add-shared-symbol-files"
4022 and "assf" aliases into commands, and deprecate them as well.
4023 * NEWS: Add entry explaining that "dll-symbols" and its two
4024 aliases are now deprecated.
4026 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4028 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4029 new-line in debug string. Remove trailing spaces.
4031 2014-02-19 Stan Shebs <stan@codesourcery.com>
4033 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4035 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4037 * NEWS: Add entry for the new feature
4038 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4041 2014-02-19 Stan Shebs <stan@codesourcery.com>
4043 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4045 2014-02-19 Pedro Alves <palves@redhat.com>
4047 * common/ptid.h (struct ptid): Mention that process_stratum
4048 targets should prefer ptid.lwp.
4050 2014-02-19 Pedro Alves <palves@redhat.com>
4052 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4053 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4054 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4055 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4056 store remote thread ids rather than ptid.tid.
4057 (_initialize_remote): Adjust.
4059 2014-02-19 Tom Tromey <tromey@redhat.com>
4061 * target.c (target_get_unwinder): Rewrite.
4062 (target_get_tailcall_unwinder): Rewrite.
4063 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4064 (record_btrace_to_get_tailcall_unwinder): New function.
4065 (init_record_btrace_ops): Update.
4066 * target.h (struct target_ops) <to_get_unwinder,
4067 to_get_tailcall_unwinder>: Now function pointers. Use
4068 TARGET_DEFAULT_RETURN.
4070 2014-02-19 Tom Tromey <tromey@redhat.com>
4072 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4074 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4076 2014-02-19 Tom Tromey <tromey@redhat.com>
4078 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4080 * target-delegates.c: Rebuild.
4081 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4082 TARGET_DEFAULT_FUNC.
4083 * target.c (default_target_decr_pc_after_break): Rename from
4084 forward_target_decr_pc_after_break. Simplify.
4085 (target_decr_pc_after_break): Rely on delegation.
4087 2014-02-19 Tom Tromey <tromey@redhat.com>
4089 * target.c (update_current_target): Do not INHERIT to_doc or
4090 to_magic. Do not de_fault to_open or to_close.
4092 2014-02-19 Tom Tromey <tromey@redhat.com>
4094 * gcore.h (objfile_find_memory_regions): Declare.
4095 * gcore.c (objfile_find_memory_regions): No longer static. Add
4097 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4098 * exec.c: Include gcore.h.
4099 (exec_set_find_memory_regions): Remove.
4100 (exec_find_memory_regions): Remove.
4101 (exec_do_find_memory_regions): Remove.
4102 (init_exec_ops): Update.
4103 * defs.h (exec_set_find_memory_regions): Remove.
4105 2014-02-19 Tom Tromey <tromey@redhat.com>
4107 * target-delegates.c: Rebuild.
4108 * target.h (struct target_ops) <to_extra_thread_info,
4109 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4110 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4111 not 0, in TARGET_DEFAULT_RETURN.
4113 2014-02-19 Tom Tromey <tromey@redhat.com>
4115 * target.c (complete_target_initialization): Remove casts. Use
4116 return_zero_has_execution.
4117 (return_zero): Add "ignore" argument.
4118 (return_zero_has_execution): New function.
4119 (init_dummy_target): Remove casts. Use
4120 return_zero_has_execution.
4122 2014-02-19 Tom Tromey <tromey@redhat.com>
4124 * target.c (update_current_target): Update comments. Do not
4127 2014-02-19 Tom Tromey <tromey@redhat.com>
4129 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4131 * corelow.c (core_read_description): Delegate when needed.
4132 * remote.c (remote_read_description): Delegate when needed.
4133 * target-delegates.c: Rebuild.
4134 * target.c (target_read_description): Rewrite.
4135 * target.h (struct target_ops) <to_read_description>: Update
4136 comment. Use TARGET_DEFAULT_RETURN.
4138 2014-02-19 Tom Tromey <tromey@redhat.com>
4140 * target-delegates.c: Rebuild.
4141 * target.c (update_current_target): Don't inherit or default
4143 (find_default_run_target): Check against delegate_can_run.
4144 * target.h (struct target_ops) <to_can_run>: Use
4145 TARGET_DEFAULT_RETURN.
4147 2014-02-19 Tom Tromey <tromey@redhat.com>
4149 * target-delegates.c: Rebuild.
4150 * target.c (target_disconnect): Unconditionally delegate.
4151 * target.h (struct target_ops) <to_disconnect>: Use
4152 TARGET_DEFAULT_NORETURN.
4154 2014-02-19 Tom Tromey <tromey@redhat.com>
4156 * record.c (record_stop): Unconditionally delegate.
4157 * target-delegates.c: Rebuild.
4158 * target.c (target_stop_recording): Unconditionally delegate.
4159 * target.h (struct target_ops) <to_stop_recording>: Use
4160 TARGET_DEFAULT_IGNORE.
4162 2014-02-19 Tom Tromey <tromey@redhat.com>
4164 * target-delegates.c: Rebuild.
4165 * target.c (target_enable_btrace): Unconditionally delegate.
4166 * target.h (struct target_ops) <to_enable_btrace>: Use
4167 TARGET_DEFAULT_NORETURN.
4169 2014-02-19 Tom Tromey <tromey@redhat.com>
4171 * target-delegates.c: Rebuild.
4172 * target.c (target_read_btrace): Unconditionally delegate.
4173 * target.h (struct target_ops) <to_read_btrace>: Use
4174 TARGET_DEFAULT_NORETURN.
4176 2014-02-19 Tom Tromey <tromey@redhat.com>
4178 * target-delegates.c: Rebuild.
4179 * target.c (target_teardown_btrace): Unconditionally delegate.
4180 * target.h (struct target_ops) <to_teardown_btrace>: Use
4181 TARGET_DEFAULT_NORETURN.
4183 2014-02-19 Tom Tromey <tromey@redhat.com>
4185 * target-delegates.c: Rebuild.
4186 * target.c (target_disable_btrace): Unconditionally delegate.
4187 * target.h (struct target_ops) <to_disable_btrace>: Use
4188 TARGET_DEFAULT_NORETURN.
4190 2014-02-19 Tom Tromey <tromey@redhat.com>
4192 * target-delegates.c: Rebuild.
4193 * target.c (default_search_memory): New function.
4194 (simple_search_memory): Update comment.
4195 (target_search_memory): Unconditionally delegate.
4196 * target.h (struct target_ops) <to_search_memory>: Use
4197 TARGET_DEFAULT_FUNC.
4199 2014-02-19 Tom Tromey <tromey@redhat.com>
4201 * auxv.c (default_auxv_parse): No longer static.
4202 (target_auxv_parse): Unconditionally delegate.
4203 * auxv.h (default_auxv_parse): Declare.
4204 * target-delegates.c: Rebuild.
4205 * target.c: Include auxv.h.
4206 * target.h (struct target_ops) <to_auxv_parse>: Use
4207 TARGET_DEFAULT_FUNC.
4209 2014-02-19 Tom Tromey <tromey@redhat.com>
4211 * target-delegates.c: Rebuild.
4212 * target.c (target_memory_map): Unconditionally delegate.
4213 * target.h (struct target_ops) <to_memory_map>: Use
4214 TARGET_DEFAULT_RETURN.
4216 2014-02-19 Tom Tromey <tromey@redhat.com>
4218 * target-delegates.c: Rebuild.
4219 * target.c (target_thread_alive): Unconditionally delegate.
4220 * target.h (struct target_ops) <to_thread_alive>: Use
4221 TARGET_DEFAULT_RETURN.
4223 2014-02-19 Tom Tromey <tromey@redhat.com>
4225 * target-delegates.c: Rebuild.
4226 * target.c (target_save_record): Unconditionally delegate.
4227 * target.h (struct target_ops) <to_save_record>: Use
4228 TARGET_DEFAULT_NORETURN.
4230 2014-02-19 Tom Tromey <tromey@redhat.com>
4232 * target-delegates.c: Rebuild.
4233 * target.c (target_delete_record): Unconditionally delegate.
4234 * target.h (struct target_ops) <to_delete_record>: Use
4235 TARGET_DEFAULT_NORETURN.
4237 2014-02-19 Tom Tromey <tromey@redhat.com>
4239 * target-delegates.c: Rebuild.
4240 * target.c (target_record_is_replaying): Unconditionally
4242 * target.h (struct target_ops) <to_record_is_replaying>: Use
4243 TARGET_DEFAULT_RETURN.
4245 2014-02-19 Tom Tromey <tromey@redhat.com>
4247 * target-delegates.c: Rebuild.
4248 * target.c (target_goto_record_begin): Unconditionally delegate.
4249 * target.h (struct target_ops) <to_goto_record_begin>: Use
4250 TARGET_DEFAULT_NORETURN.
4252 2014-02-19 Tom Tromey <tromey@redhat.com>
4254 * target-delegates.c: Rebuild.
4255 * target.c (target_goto_record_end): Unconditionally delegate.
4256 * target.h (struct target_ops) <to_goto_record_end>: Use
4257 TARGET_DEFAULT_NORETURN.
4259 2014-02-19 Tom Tromey <tromey@redhat.com>
4261 * target-delegates.c: Rebuild.
4262 * target.c (target_goto_record): Unconditionally delegate.
4263 * target.h (struct target_ops) <to_goto_record>: Use
4264 TARGET_DEFAULT_NORETURN.
4266 2014-02-19 Tom Tromey <tromey@redhat.com>
4268 * target-delegates.c: Rebuild.
4269 * target.c (target_insn_history): Unconditionally delegate.
4270 * target.h (struct target_ops) <to_insn_history>: Use
4271 TARGET_DEFAULT_NORETURN.
4273 2014-02-19 Tom Tromey <tromey@redhat.com>
4275 * target-delegates.c: Rebuild.
4276 * target.c (target_insn_history_from): Unconditionally delegate.
4277 * target.h (struct target_ops) <to_insn_history_from>: Use
4278 TARGET_DEFAULT_NORETURN.
4280 2014-02-19 Tom Tromey <tromey@redhat.com>
4282 * target-delegates.c: Rebuild.
4283 * target.c (target_insn_history_range): Unconditionally delegate.
4284 * target.h (struct target_ops) <to_insn_history_range>: Use
4285 TARGET_DEFAULT_NORETURN.
4287 2014-02-19 Tom Tromey <tromey@redhat.com>
4289 * target-delegates.c: Rebuild.
4290 * target.c (target_call_history): Unconditionally delegate.
4291 * target.h (struct target_ops) <to_call_history>: Use
4292 TARGET_DEFAULT_NORETURN.
4294 2014-02-19 Tom Tromey <tromey@redhat.com>
4296 * target-delegates.c: Rebuild.
4297 * target.c (target_call_history_from): Unconditionally delegate.
4298 * target.h (struct target_ops) <to_call_history_from>: Use
4299 TARGET_DEFAULT_NORETURN.
4301 2014-02-19 Tom Tromey <tromey@redhat.com>
4303 * target-delegates.c: Rebuild.
4304 * target.c (target_call_history_range): Unconditionally delegate.
4305 * target.h (struct target_ops) <to_call_history_range>: Use
4306 TARGET_DEFAULT_NORETURN.
4308 2014-02-19 Tom Tromey <tromey@redhat.com>
4310 * target-delegates.c: Rebuild.
4311 * target.c (target_verify_memory): Unconditionally delegate.
4312 * target.h (struct target_ops) <to_verify_memory>: Use
4313 TARGET_DEFAULT_NORETURN.
4315 2014-02-19 Tom Tromey <tromey@redhat.com>
4317 * target-delegates.c: Rebuild.
4318 * target.c (target_core_of_thread): Unconditionally delegate.
4319 * target.h (struct target_ops) <to_core_of_thread>: Use
4320 TARGET_DEFAULT_RETURN.
4322 2014-02-19 Tom Tromey <tromey@redhat.com>
4324 * target-delegates.c: Rebuild.
4325 * target.c (target_flash_done): Unconditionally delegate.
4326 * target.h (struct target_ops) <to_flash_done>: Use
4327 TARGET_DEFAULT_NORETURN.
4329 2014-02-19 Tom Tromey <tromey@redhat.com>
4331 * target-delegates.c: Rebuild.
4332 * target.c (target_flash_erase): Unconditionally delegate.
4333 * target.h (struct target_ops) <to_flash_erase>: Use
4334 TARGET_DEFAULT_NORETURN.
4336 2014-02-19 Tom Tromey <tromey@redhat.com>
4338 * target-delegates.c: Rebuild.
4339 * target.c (target_get_section_table): Unconditionally delegate.
4340 * target.h (struct target_ops) <to_get_section_table>: Use
4341 TARGET_DEFAULT_RETURN.
4343 2014-02-19 Tom Tromey <tromey@redhat.com>
4345 * target-delegates.c: Rebuild.
4346 * target.c (target_pid_to_str): Unconditionally delegate.
4347 (init_dummy_target): Don't initialize to_pid_to_str.
4348 (default_pid_to_str): Rename from dummy_pid_to_str.
4349 * target.h (struct target_ops) <to_pid_to_str>: Use
4350 TARGET_DEFAULT_FUNC.
4352 2014-02-19 Tom Tromey <tromey@redhat.com>
4354 * target-delegates.c: Rebuild.
4355 * target.c (target_find_new_threads): Unconditionally delegate.
4356 * target.h (struct target_ops) <to_find_new_threads>: Use
4357 TARGET_DEFAULT_RETURN.
4359 2014-02-19 Tom Tromey <tromey@redhat.com>
4361 * target-delegates.c: Rebuild.
4362 * target.c (target_program_signals): Unconditionally delegate.
4363 * target.h (struct target_ops) <to_program_signals>: Use
4364 TARGET_DEFAULT_IGNORE.
4366 2014-02-19 Tom Tromey <tromey@redhat.com>
4368 * target-delegates.c: Rebuild.
4369 * target.c (target_pass_signals): Unconditionally delegate.
4370 * target.h (struct target_ops) <to_pass_signals>: Use
4371 TARGET_DEFAULT_IGNORE.
4373 2014-02-19 Tom Tromey <tromey@redhat.com>
4375 * target-delegates.c: Rebuild.
4376 * target.c (default_mourn_inferior): New function.
4377 (target_mourn_inferior): Unconditionally delegate.
4378 * target.h (struct target_ops) <to_mourn_inferior>: Use
4379 TARGET_DEFAULT_FUNC.
4381 2014-02-19 Tom Tromey <tromey@redhat.com>
4383 * target-delegates.c: Rebuild.
4384 * target.c (default_follow_fork): New function.
4385 (target_follow_fork): Unconditionally delegate.
4386 * target.h (struct target_ops) <to_follow_fork>: Use
4387 TARGET_DEFAULT_FUNC.
4389 2014-02-19 Tom Tromey <tromey@redhat.com>
4391 * target-delegates.c: Rebuild.
4392 * target.c (target_kill): Unconditionally delegate.
4393 * target.h (struct target_ops) <to_kill>: Use
4394 TARGET_DEFAULT_NORETURN.
4396 2014-02-19 Tom Tromey <tromey@redhat.com>
4398 * target-delegates.c: Rebuild.
4399 * target.c (target_masked_watch_num_registers): Unconditionally
4401 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4402 Use TARGET_DEFAULT_RETURN.
4404 2014-02-19 Tom Tromey <tromey@redhat.com>
4406 * target-delegates.c: Rebuild.
4407 * target.c (target_remove_mask_watchpoint): Unconditionally
4409 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4410 TARGET_DEFAULT_RETURN.
4412 2014-02-19 Tom Tromey <tromey@redhat.com>
4414 * target-delegates.c: Rebuild.
4415 * target.c (target_insert_mask_watchpoint): Unconditionally
4417 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4418 TARGET_DEFAULT_RETURN.
4420 2014-02-19 Tom Tromey <tromey@redhat.com>
4422 * target-delegates.c: Rebuild.
4423 * target.c (target_ranged_break_num_registers): Unconditionally
4425 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4426 Use TARGET_DEFAULT_RETURN.
4428 2014-02-19 Tom Tromey <tromey@redhat.com>
4430 * target-delegates.c: Rebuild.
4431 * target.c (target_fetch_registers): Unconditionally delegate.
4432 * target.h (struct target_ops) <to_fetch_registers>: Use
4433 TARGET_DEFAULT_NORETURN.
4435 2014-02-19 Tom Tromey <tromey@redhat.com>
4437 * target-delegates.c: Rebuild.
4438 * target.c (update_current_target): Don't inherit or default
4440 * target.h (struct target_ops) <to_stop>: Use
4441 TARGET_DEFAULT_IGNORE.
4443 2014-02-19 Tom Tromey <tromey@redhat.com>
4445 * target-delegates.c: Rebuild.
4446 * target.c (update_current_target): Don't inherit or default
4447 to_can_run_breakpoint_commands.
4448 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4449 Use TARGET_DEFAULT_RETURN.
4451 2014-02-19 Tom Tromey <tromey@redhat.com>
4453 * target-delegates.c: Rebuild.
4454 * target.c (update_current_target): Don't inherit or default
4455 to_supports_evaluation_of_breakpoint_conditions.
4456 * target.h (struct target_ops)
4457 <to_supports_evaluation_of_breakpoint_conditions>: Use
4458 TARGET_DEFAULT_RETURN.
4460 2014-02-19 Tom Tromey <tromey@redhat.com>
4462 * target-delegates.c: Rebuild.
4463 * target.c (update_current_target): Don't inherit or default
4464 to_augmented_libraries_svr4_read.
4465 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4466 Use TARGET_DEFAULT_RETURN.
4468 2014-02-19 Tom Tromey <tromey@redhat.com>
4470 * target-delegates.c: Rebuild.
4471 * target.c (update_current_target): Don't inherit or default
4473 * target.h (struct target_ops) <to_can_use_agent>: Use
4474 TARGET_DEFAULT_RETURN.
4476 2014-02-19 Tom Tromey <tromey@redhat.com>
4478 * target-delegates.c: Rebuild.
4479 * target.c (update_current_target): Don't inherit or default
4481 * target.h (struct target_ops) <to_use_agent>: Use
4482 TARGET_DEFAULT_NORETURN.
4484 2014-02-19 Tom Tromey <tromey@redhat.com>
4486 * target-delegates.c: Rebuild.
4487 * target.c (update_current_target): Don't inherit or default
4489 (return_null): Remove.
4490 * target.h (struct target_ops) <to_traceframe_info>: Use
4491 TARGET_DEFAULT_RETURN.
4493 2014-02-19 Tom Tromey <tromey@redhat.com>
4495 * target-delegates.c: Rebuild.
4496 * target.c (update_current_target): Don't inherit or default
4497 to_static_tracepoint_markers_by_strid.
4498 * target.h (struct target_ops)
4499 <to_static_tracepoint_markers_by_strid>: Use
4500 TARGET_DEFAULT_NORETURN.
4502 2014-02-19 Tom Tromey <tromey@redhat.com>
4504 * target-delegates.c: Rebuild.
4505 * target.c (update_current_target): Don't inherit or default
4506 to_static_tracepoint_marker_at.
4507 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4508 Use TARGET_DEFAULT_RETURN.
4510 2014-02-19 Tom Tromey <tromey@redhat.com>
4512 * target-delegates.c: Rebuild.
4513 * target.c (update_current_target): Don't inherit or default
4515 * target.h (struct target_ops) <to_set_permissions>: Use
4516 TARGET_DEFAULT_IGNORE.
4518 2014-02-19 Tom Tromey <tromey@redhat.com>
4520 * target-delegates.c: Rebuild.
4521 * target.c (update_current_target): Don't inherit or default
4523 * target.h (struct target_ops) <to_get_tib_address>: Use
4524 TARGET_DEFAULT_NORETURN.
4526 2014-02-19 Tom Tromey <tromey@redhat.com>
4528 * target-delegates.c: Rebuild.
4529 * target.c (update_current_target): Don't inherit or default
4531 * target.h (struct target_ops) <to_set_trace_notes>: Use
4532 TARGET_DEFAULT_RETURN.
4534 2014-02-19 Tom Tromey <tromey@redhat.com>
4536 * target-delegates.c: Rebuild.
4537 * target.c (update_current_target): Don't initialize
4538 to_set_trace_buffer_size.
4539 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4540 TARGET_DEFAULT_IGNORE.
4542 2014-02-19 Tom Tromey <tromey@redhat.com>
4544 * target-delegates.c: Rebuild.
4545 * target.c (update_current_target): Don't inherit or default
4546 to_set_circular_trace_buffer.
4547 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4548 TARGET_DEFAULT_IGNORE.
4550 2014-02-19 Tom Tromey <tromey@redhat.com>
4552 * target-delegates.c: Rebuild.
4553 * target.c (update_current_target): Don't inherit or default
4554 to_set_disconnected_tracing.
4555 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4556 TARGET_DEFAULT_IGNORE.
4558 2014-02-19 Tom Tromey <tromey@redhat.com>
4560 * target-delegates.c: Rebuild.
4561 * target.c (update_current_target): Don't inherit or default
4562 to_get_min_fast_tracepoint_insn_len.
4563 (return_minus_one): Remove.
4564 * target.h (struct target_ops)
4565 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4567 2014-02-19 Tom Tromey <tromey@redhat.com>
4569 * target-delegates.c: Rebuild.
4570 * target.c (update_current_target): Don't inherit or default
4571 to_get_raw_trace_data.
4572 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
4573 TARGET_DEFAULT_NORETURN.
4575 2014-02-19 Tom Tromey <tromey@redhat.com>
4577 * target-delegates.c: Rebuild.
4578 * target.c (update_current_target): Don't inherit or default
4579 to_upload_trace_state_variables.
4580 * target.h (struct target_ops) <to_upload_trace_state_variables>:
4581 Use TARGET_DEFAULT_RETURN.
4583 2014-02-19 Tom Tromey <tromey@redhat.com>
4585 * target-delegates.c: Rebuild.
4586 * target.c (update_current_target): Don't inherit or default
4587 to_upload_tracepoints.
4588 * target.h (struct target_ops) <to_upload_tracepoints>: Use
4589 TARGET_DEFAULT_RETURN.
4591 2014-02-19 Tom Tromey <tromey@redhat.com>
4593 * target-delegates.c: Rebuild.
4594 * target.c (update_current_target): Don't inherit or default
4596 * target.h (struct target_ops) <to_save_trace_data>: Use
4597 TARGET_DEFAULT_NORETURN.
4599 2014-02-19 Tom Tromey <tromey@redhat.com>
4601 * target-delegates.c: Rebuild.
4602 * target.c (update_current_target): Don't inherit or default
4603 to_get_trace_state_variable_value.
4604 * target.h (struct target_ops)
4605 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
4607 2014-02-19 Tom Tromey <tromey@redhat.com>
4609 * target-delegates.c: Rebuild.
4610 * target.c (update_current_target): Don't inherit or default
4612 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
4614 2014-02-19 Tom Tromey <tromey@redhat.com>
4616 * target-delegates.c: Rebuild.
4617 * target.c (update_current_target): Don't inherit or default
4619 * target.h (struct target_ops) <to_trace_stop>: Use
4620 TARGET_DEFAULT_NORETURN.
4622 2014-02-19 Tom Tromey <tromey@redhat.com>
4624 * target-delegates.c: Rebuild.
4625 * target.c (update_current_target): Don't inherit or default
4626 to_get_tracepoint_status.
4627 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
4628 TARGET_DEFAULT_NORETURN.
4630 2014-02-19 Tom Tromey <tromey@redhat.com>
4632 * target-delegates.c: Rebuild.
4633 * target.c (update_current_target): Don't inherit or default
4634 to_get_trace_status.
4635 * target.h (struct target_ops) <to_get_trace_status>: Use
4636 TARGET_DEFAULT_RETURN.
4638 2014-02-19 Tom Tromey <tromey@redhat.com>
4640 * target-delegates.c: Rebuild.
4641 * target.c (update_current_target): Don't inherit or default
4643 * target.h (struct target_ops) <to_trace_start>: Use
4644 TARGET_DEFAULT_NORETURN.
4646 2014-02-19 Tom Tromey <tromey@redhat.com>
4648 * target-delegates.c: Rebuild.
4649 * target.c (update_current_target): Don't inherit or default
4650 to_trace_set_readonly_regions.
4651 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
4652 Use TARGET_DEFAULT_NORETURN.
4654 2014-02-19 Tom Tromey <tromey@redhat.com>
4656 * target-delegates.c: Rebuild.
4657 * target.c (update_current_target): Don't inherit or default
4658 to_disable_tracepoint.
4659 * target.h (struct target_ops) <to_disable_tracepoint>: Use
4660 TARGET_DEFAULT_NORETURN.
4662 2014-02-19 Tom Tromey <tromey@redhat.com>
4664 * target-delegates.c: Rebuild.
4665 * target.c (update_current_target): Don't inherit or default
4666 to_enable_tracepoint.
4667 * target.h (struct target_ops) <to_enable_tracepoint>: Use
4668 TARGET_DEFAULT_NORETURN.
4670 2014-02-19 Tom Tromey <tromey@redhat.com>
4672 * target-delegates.c: Rebuild.
4673 * target.c (update_current_target): Don't inherit or default
4674 to_download_trace_state_variable.
4675 * target.h (struct target_ops) <to_download_trace_state_variable>:
4676 Use TARGET_DEFAULT_NORETURN.
4678 2014-02-19 Tom Tromey <tromey@redhat.com>
4680 * target-delegates.c: Rebuild.
4681 * target.c (update_current_target): Don't inherit or default
4682 to_can_download_tracepoint.
4683 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
4684 TARGET_DEFAULT_RETURN.
4686 2014-02-19 Tom Tromey <tromey@redhat.com>
4688 * target-delegates.c: Rebuild.
4689 * target.c (update_current_target): Don't inherit or default
4690 to_download_tracepoint.
4691 * target.h (struct target_ops) <to_download_tracepoint>: Use
4692 TARGET_DEFAULT_NORETURN.
4694 2014-02-19 Tom Tromey <tromey@redhat.com>
4696 * target-delegates.c: Rebuild.
4697 * target.c (update_current_target): Don't inherit or default
4699 * target.h (struct target_ops) <to_trace_init>: Use
4700 TARGET_DEFAULT_RETURN.
4702 2014-02-19 Tom Tromey <tromey@redhat.com>
4704 * target-delegates.c: Rebuild.
4705 * target.c (update_current_target): Don't inherit or default
4706 to_supports_string_tracing.
4707 * target.h (struct target_ops) <to_supports_string_tracing>: Use
4708 TARGET_DEFAULT_RETURN.
4710 2014-02-19 Tom Tromey <tromey@redhat.com>
4712 * target-delegates.c: Rebuild.
4713 * target.c (update_current_target): Don't inherit or default
4714 to_supports_enable_disable_tracepoint.
4715 * target.h (struct target_ops)
4716 <to_supports_enable_disable_tracepoint>: Use
4717 TARGET_DEFAULT_RETURN.
4719 2014-02-19 Tom Tromey <tromey@redhat.com>
4721 * target-delegates.c: Rebuild.
4722 * target.c (update_current_target): Don't inherit or default
4723 to_supports_multi_process.
4724 * target.h (struct target_ops) <to_supports_multi_process>: Use
4725 TARGET_DEFAULT_RETURN.
4727 2014-02-19 Tom Tromey <tromey@redhat.com>
4729 * target-delegates.c: Rebuild.
4730 * target.c (update_current_target): Don't inherit or default
4731 to_get_ada_task_ptid.
4732 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
4733 TARGET_DEFAULT_FUNC.
4735 2014-02-19 Tom Tromey <tromey@redhat.com>
4737 * target-delegates.c: Rebuild.
4738 * target.c (update_current_target): Don't inherit or default
4739 to_thread_architecture.
4740 * target.h (struct target_ops) <to_thread_architecture>: Use
4741 TARGET_DEFAULT_FUNC.
4743 2014-02-19 Tom Tromey <tromey@redhat.com>
4745 * target-delegates.c: Rebuild.
4746 * target.c (update_current_target): Don't inherit or default
4747 to_execution_direction.
4748 * target.h (struct target_ops) <to_execution_direction>: Use
4749 TARGET_DEFAULT_FUNC.
4751 2014-02-19 Tom Tromey <tromey@redhat.com>
4753 * target-delegates.c: Rebuild.
4754 * target.c (update_current_target): Don't inherit or default
4755 to_can_execute_reverse.
4756 * target.h (struct target_ops) <to_can_execute_reverse>: Use
4757 TARGET_DEFAULT_RETURN.
4758 (target_can_execute_reverse): Unconditionally delegate.
4760 2014-02-19 Tom Tromey <tromey@redhat.com>
4762 * target-delegates.c: Rebuild.
4763 * target.c (update_current_target): Don't inherit or default
4765 (dummy_goto_bookmark): Remove.
4766 (init_dummy_target): Don't inherit or default to_goto_bookmark.
4767 * target.h (struct target_ops) <to_goto_bookmark>: Use
4768 TARGET_DEFAULT_NORETURN.
4770 2014-02-19 Tom Tromey <tromey@redhat.com>
4772 * target-delegates.c: Rebuild.
4773 * target.c (update_current_target): Don't inherit or default
4775 (dummy_get_bookmark): Remove.
4776 (init_dummy_target): Don't inherit or default to_get_bookmark.
4777 * target.h (struct target_ops) <to_get_bookmark>: Use
4778 TARGET_DEFAULT_NORETURN
4780 2014-02-19 Tom Tromey <tromey@redhat.com>
4782 * target-delegates.c: Rebuild.
4783 * target.c (update_current_target): Don't inherit or default
4784 to_make_corefile_notes.
4785 (init_dummy_target): Don't initialize to_make_corefile_notes.
4786 * target.h (struct target_ops) <to_make_corefile_notes>: Use
4787 TARGET_DEFAULT_FUNC.
4789 2014-02-19 Tom Tromey <tromey@redhat.com>
4791 * target-delegates.c: Rebuild.
4792 * target.c (update_current_target): Don't inherit or default
4793 to_find_memory_regions.
4794 (init_dummy_target): Don't initialize to_find_memory_regions.
4795 * target.h (struct target_ops) <to_find_memory_regions>: Use
4796 TARGET_DEFAULT_FUNC.
4798 2014-02-19 Tom Tromey <tromey@redhat.com>
4800 * target-delegates.c: Rebuild.
4801 * target.c (update_current_target): Don't inherit or default
4803 * target.h (struct target_ops) <to_log_command>: Use
4804 TARGET_DEFAULT_IGNORE.
4805 (target_log_command): Unconditionally delegate.
4807 2014-02-19 Tom Tromey <tromey@redhat.com>
4809 * target-delegates.c: Rebuild.
4810 * target.c (update_current_target): Don't inherit or default
4811 to_pid_to_exec_file.
4812 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
4813 TARGET_DEFAULT_RETURN.
4815 2014-02-19 Tom Tromey <tromey@redhat.com>
4817 * target-delegates.c: Rebuild.
4818 * target.c (update_current_target): Don't inherit or default
4820 (target_thread_name): Unconditionally delegate.
4821 * target.h (struct target_ops) <to_thread_name>: Use
4822 TARGET_DEFAULT_RETURN.
4824 2014-02-19 Tom Tromey <tromey@redhat.com>
4826 * target-delegates.c: Rebuild.
4827 * target.c (update_current_target): Don't inherit or default
4828 to_extra_thread_info.
4829 * target.h (struct target_ops) <to_extra_thread_info>: Use
4830 TARGET_DEFAULT_RETURN.
4832 2014-02-19 Tom Tromey <tromey@redhat.com>
4834 * target-delegates.c: Rebuild.
4835 * target.c (update_current_target): Don't inherit or default
4837 * target.h (struct target_ops) <to_has_exited>: Use
4838 TARGET_DEFAULT_RETURN..
4840 2014-02-19 Tom Tromey <tromey@redhat.com>
4842 * target-delegates.c: Rebuild.
4843 * target.c (update_current_target): Don't inherit or default
4844 to_set_syscall_catchpoint.
4845 (return_one): Remove.
4846 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
4847 TARGET_DEFAULT_RETURN.
4849 2014-02-19 Tom Tromey <tromey@redhat.com>
4851 * target-delegates.c: Rebuild.
4852 * target.c (update_current_target): Don't inherit or default
4853 to_insert_exec_catchpoint.
4854 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4855 TARGET_DEFAULT_RETURN.
4857 2014-01-08 Tom Tromey <tromey@redhat.com>
4859 * target-delegates.c: Rebuild.
4860 * target.c (update_current_target): Don't inherit or default
4861 to_insert_exec_catchpoint.
4862 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
4863 TARGET_DEFAULT_RETURN.
4865 2014-02-19 Tom Tromey <tromey@redhat.com>
4867 * target-delegates.c: Rebuild.
4868 * target.c (update_current_target): Don't inherit or default
4869 to_remove_vfork_catchpoint.
4870 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
4871 TARGET_DEFAULT_RETURN.
4873 2014-02-19 Tom Tromey <tromey@redhat.com>
4875 * target-delegates.c: Rebuild.
4876 * target.c (update_current_target): Don't inherit or default
4877 to_insert_vfork_catchpoint.
4878 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
4879 TARGET_DEFAULT_RETURN.
4881 2014-02-19 Tom Tromey <tromey@redhat.com>
4883 * target-delegates.c: Rebuild.
4884 * target.c (update_current_target): Don't inherit or default
4885 to_remove_fork_catchpoint.
4886 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
4887 TARGET_DEFAULT_RETURN.
4889 2014-02-19 Tom Tromey <tromey@redhat.com>
4891 * target-delegates.c: Rebuild.
4892 * target.c (update_current_target): Don't inherit or default
4893 to_insert_fork_catchpoint.
4894 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
4895 TARGET_DEFAULT_RETURN.
4897 2014-02-19 Tom Tromey <tromey@redhat.com>
4899 * target-delegates.c: Rebuild.
4900 * target.c (update_current_target): Don't inherit or default
4901 to_post_startup_inferior.
4902 * target.h (struct target_ops) <to_post_startup_inferior>: Use
4903 TARGET_DEFAULT_IGNORE.
4905 2014-02-19 Tom Tromey <tromey@redhat.com>
4907 * target-delegates.c: Rebuild.
4908 * target.c (update_current_target): Don't inherit or default
4910 * target.h (struct target_ops) <to_load>: Use
4911 TARGET_DEFAULT_NORETURN.
4913 2014-02-19 Tom Tromey <tromey@redhat.com>
4915 * target-delegates.c: Rebuild.
4916 * target.c (update_current_target): Don't inherit or default
4918 * target.h (struct target_ops) <to_terminal_info>: Use
4919 TARGET_DEFAULT_FUNC.
4921 2014-02-19 Tom Tromey <tromey@redhat.com>
4923 * target-delegates.c: Rebuild.
4924 * target.c (update_current_target): Don't inherit or default
4925 to_terminal_save_ours.
4926 * target.h (struct target_ops) <to_terminal_save_ours>: Use
4927 TARGET_DEFAULT_IGNORE.
4929 2014-02-19 Tom Tromey <tromey@redhat.com>
4931 * target-delegates.c: Rebuild.
4932 * target.c (update_current_target): Don't inherit or default
4934 * target.h (struct target_ops) <to_terminal_ours>: Use
4935 TARGET_DEFAULT_IGNORE.
4937 2014-02-19 Tom Tromey <tromey@redhat.com>
4939 * target-delegates.c: Rebuild.
4940 * target.c (update_current_target): Don't inherit or default
4941 to_terminal_ours_for_output.
4942 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
4943 TARGET_DEFAULT_IGNORE.
4945 2014-02-19 Tom Tromey <tromey@redhat.com>
4947 * target-delegates.c: Rebuild.
4948 * target.c (update_current_target): Don't inherit or default
4949 to_terminal_inferior.
4950 * target.h (struct target_ops) <to_terminal_inferior>: Use
4951 TARGET_DEFAULT_IGNORE.
4953 2014-02-19 Tom Tromey <tromey@redhat.com>
4955 * target-delegates.c: Rebuild.
4956 * target.c (update_current_target): Don't inherit or default
4958 * target.h (struct target_ops) <to_terminal_init>: Use
4959 TARGET_DEFAULT_IGNORE.
4961 2014-02-19 Tom Tromey <tromey@redhat.com>
4963 * target-delegates.c: Rebuild.
4964 * target.c (update_current_target): Don't inherit or default
4965 to_can_accel_watchpoint_condition.
4966 * target.h (struct target_ops)
4967 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
4969 2014-02-19 Tom Tromey <tromey@redhat.com>
4971 * target-delegates.c: Rebuild.
4972 * target.c (update_current_target): Don't inherit or default
4973 to_region_ok_for_hw_watchpoint.
4974 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4975 Use TARGET_DEFAULT_FUNC.
4977 2014-02-19 Tom Tromey <tromey@redhat.com>
4979 * target-delegates.c: Rebuild.
4980 * target.c (update_current_target): Don't inherit or default
4981 to_watchpoint_addr_within_range.
4982 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
4983 Use TARGET_DEFAULT_FUNC.
4985 2014-02-19 Tom Tromey <tromey@redhat.com>
4987 * target-delegates.c: Rebuild.
4988 * target.c (update_current_target): Don't inherit or default
4989 to_remove_watchpoint.
4990 * target.h (struct target_ops) <to_remove_watchpoint>: Use
4991 TARGET_DEFAULT_NORETURN.
4993 2014-02-19 Tom Tromey <tromey@redhat.com>
4995 * target-delegates.c: Rebuild.
4996 * target.c (update_current_target): Don't inherit or default
4997 to_insert_watchpoint.
4998 * target.h (struct target_ops) <to_insert_watchpoint>: Use
4999 TARGET_DEFAULT_RETURN.
5001 2014-02-19 Tom Tromey <tromey@redhat.com>
5003 * target-delegates.c: Rebuild.
5004 * target.c (update_current_target): Don't inherit or default
5005 to_remove_hw_breakpoint.
5006 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5007 TARGET_DEFAULT_RETURN.
5009 2014-02-19 Tom Tromey <tromey@redhat.com>
5011 * target-delegates.c: Rebuild.
5012 * target.c (update_current_target): Don't inherit or default
5013 to_insert_hw_breakpoint.
5014 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5015 TARGET_DEFAULT_RETURN.
5017 2014-02-19 Tom Tromey <tromey@redhat.com>
5019 * target-delegates.c: Rebuild.
5020 * target.c (update_current_target): Don't inherit or default
5021 to_can_use_hw_breakpoint.
5022 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5023 TARGET_DEFAULT_RETURN.
5025 2014-02-19 Tom Tromey <tromey@redhat.com>
5027 * target-delegates.c: Rebuild.
5028 * target.c (update_current_target): Don't inherit or default
5030 * target.h (struct target_ops) <to_files_info>: Use
5031 TARGET_DEFAULT_IGNORE.
5033 2014-02-19 Tom Tromey <tromey@redhat.com>
5035 * target-delegates.c: Rebuild.
5036 * target.c (update_current_target): Don't inherit or default
5038 * target.h (struct target_ops) <to_store>: Use
5039 TARGET_DEFAULT_NORETURN.
5041 2014-02-19 Tom Tromey <tromey@redhat.com>
5043 * target-delegates.c: Rebuild.
5044 * target.c (update_current_target): Don't inherit or default
5046 * target.h (struct target_ops) <to_post_attach>: Use
5047 TARGET_DEFAULT_IGNORE.
5049 2014-02-19 Tom Tromey <tromey@redhat.com>
5051 * target-delegates.c: Rebuild.
5052 * target.c (update_current_target): Don't inherit or default
5054 (default_rcmd): New function.
5055 (do_monitor_command): Unconditionally delegate.
5056 * target.h (struct target_ops) <to_rmcd>: Use
5057 TARGET_DEFAULT_FUNC.
5059 2014-02-19 Tom Tromey <tromey@redhat.com>
5061 * target-delegates.c: Rebuild.
5062 * target.c (init_dummy_target): Don't initialize to_attach.
5063 (target_attach): Unconditionally delegate.
5064 * target.h (struct target_ops) <to_attach>: Use
5065 TARGET_DEFAULT_FUNC.
5067 2014-02-19 Tom Tromey <tromey@redhat.com>
5069 * target-delegates.c: Rebuild.
5070 * target.c (target_detach): Unconditionally delegate.
5071 (init_dummy_target): Don't initialize to_detach.
5072 * target.h (struct target_ops) <to_detach>: Use
5073 TARGET_DEFAULT_IGNORE.
5075 2014-02-19 Tom Tromey <tromey@redhat.com>
5077 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5079 (target_augmented_libraries_svr4_read): Add argument.
5080 * target.c (update_current_target): Update.
5081 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5084 2014-02-19 Tom Tromey <tromey@redhat.com>
5086 * target.h (struct target_ops) <to_call_history_range>: Add
5088 * target.c (target_call_history_range): Add argument.
5089 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5091 (record_btrace_call_history_from): Update.
5093 2014-02-19 Tom Tromey <tromey@redhat.com>
5095 * target.h (struct target_ops) <to_call_history_from>: Add
5097 * target.c (target_call_history_from): Add argument.
5098 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5101 2014-02-19 Tom Tromey <tromey@redhat.com>
5103 * target.h (struct target_ops) <to_call_history>: Add argument.
5104 * target.c (target_call_history): Add argument.
5105 * record-btrace.c (record_btrace_call_history): Add 'self'
5108 2014-02-19 Tom Tromey <tromey@redhat.com>
5110 * target.h (struct target_ops) <to_insn_history_range>: Add
5112 * target.c (target_insn_history_range): Add argument.
5113 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5115 (record_btrace_insn_history_from): Update.
5117 2014-02-19 Tom Tromey <tromey@redhat.com>
5119 * target.h (struct target_ops) <to_insn_history_from>: Add
5121 * target.c (target_insn_history_from): Add argument.
5122 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5125 2014-02-19 Tom Tromey <tromey@redhat.com>
5127 * target.h (struct target_ops) <to_insn_history>: Add argument.
5128 * target.c (target_insn_history): Add argument.
5129 * record-btrace.c (record_btrace_insn_history): Add 'self'
5132 2014-02-19 Tom Tromey <tromey@redhat.com>
5134 * target.h (struct target_ops) <to_goto_record>: Add argument.
5135 * target.c (target_goto_record): Add argument.
5136 * record-full.c (record_full_goto): Add 'self' argument.
5137 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5139 2014-02-19 Tom Tromey <tromey@redhat.com>
5141 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5142 * target.c (target_goto_record_end): Add argument.
5143 * record-full.c (record_full_goto_end): Add 'self' argument.
5144 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5146 2014-02-19 Tom Tromey <tromey@redhat.com>
5148 * target.h (struct target_ops) <to_goto_record_begin>: Add
5150 * target.c (target_goto_record_begin): Add argument.
5151 * record-full.c (record_full_goto_begin): Add 'self' argument.
5152 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5155 2014-02-19 Tom Tromey <tromey@redhat.com>
5157 * target.h (struct target_ops) <to_record_is_replaying>: Add
5159 * target.c (target_record_is_replaying): Add argument.
5160 * record-full.c (record_full_is_replaying): Add 'self' argument.
5161 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5163 (record_btrace_xfer_partial, record_btrace_store_registers)
5164 (record_btrace_prepare_to_store, record_btrace_resume)
5165 (record_btrace_wait, record_btrace_decr_pc_after_break)
5166 (record_btrace_find_new_threads, record_btrace_thread_alive):
5169 2014-02-19 Tom Tromey <tromey@redhat.com>
5171 * target.h (struct target_ops) <to_delete_record>: Add argument.
5172 * target.c (target_delete_record): Add argument.
5173 * record-full.c (record_full_delete): Add 'self' argument.
5175 2014-02-19 Tom Tromey <tromey@redhat.com>
5177 * target.h (struct target_ops) <to_save_record>: Add argument.
5178 * target.c (target_save_record): Add argument.
5179 * record-full.c (record_full_save): Add 'self' argument.
5180 (record_full_save): Add 'self' argument.
5182 2014-02-19 Tom Tromey <tromey@redhat.com>
5184 * target.h (struct target_ops) <to_info_record>: Add argument.
5185 * target.c (target_info_record): Add argument.
5186 * record.c (info_record_command): Add argument.
5187 * record-full.c (record_full_info): Add 'self' argument.
5188 * record-btrace.c (record_btrace_info): Add 'self' argument.
5190 2014-02-19 Tom Tromey <tromey@redhat.com>
5192 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5193 * target.c (target_stop_recording): Add argument.
5194 * record.c (record_stop): Add argument.
5195 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5198 2014-02-19 Tom Tromey <tromey@redhat.com>
5200 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5201 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5202 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5204 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5205 (_initialize_amd64_linux_nat): Use it.
5206 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5207 (_initialize_i386_linux_nat): Use it.
5209 2014-02-19 Tom Tromey <tromey@redhat.com>
5211 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5212 * target.c (target_teardown_btrace): Add argument.
5213 * remote.c (remote_teardown_btrace): Add 'self' argument.
5214 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5216 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5219 2014-02-19 Tom Tromey <tromey@redhat.com>
5221 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5222 * target.c (target_disable_btrace): Add argument.
5223 * remote.c (remote_disable_btrace): Add 'self' argument.
5224 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5226 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5229 2014-02-19 Tom Tromey <tromey@redhat.com>
5231 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5232 * target.c (target_enable_btrace): Add argument.
5233 * remote.c (remote_enable_btrace): Add 'self' argument.
5234 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5236 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5239 2014-02-19 Tom Tromey <tromey@redhat.com>
5241 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5242 (target_can_use_agent): Add argument.
5243 * target.c (update_current_target): Update.
5244 * remote.c (remote_can_use_agent): Add 'self' argument.
5245 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5247 2014-02-19 Tom Tromey <tromey@redhat.com>
5249 * target.h (struct target_ops) <to_use_agent>: Add argument.
5250 (target_use_agent): Add argument.
5251 * target.c (update_current_target): Update.
5252 * remote.c (remote_use_agent): Add 'self' argument.
5253 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5255 2014-02-19 Tom Tromey <tromey@redhat.com>
5257 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5258 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5259 (target_traceframe_info): Add argument.
5260 * target.c (update_current_target): Update.
5261 * remote.c (remote_traceframe_info): Add 'self' argument.
5262 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5264 2014-02-19 Tom Tromey <tromey@redhat.com>
5266 * target.h (target_static_tracepoint_markers_by_strid): Add
5268 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5270 * target.c (update_current_target): Update.
5271 * remote.c (struct target_ops)
5272 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5273 * linux-nat.c (struct target_ops)
5274 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5276 2014-02-19 Tom Tromey <tromey@redhat.com>
5278 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5280 (target_static_tracepoint_marker_at): Add argument.
5281 * target.c (update_current_target): Update.
5282 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5285 2014-02-19 Tom Tromey <tromey@redhat.com>
5287 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5288 (target_set_permissions): Add argument.
5289 * target.c (update_current_target): Update.
5290 * remote.c (remote_set_permissions): Add 'self' argument.
5291 (remote_start_remote): Update.
5293 2014-02-19 Tom Tromey <tromey@redhat.com>
5295 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5296 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5297 (target_get_tib_address): Add argument.
5298 * target.c (update_current_target): Update.
5299 * remote.c (remote_get_tib_address): Add 'self' argument.
5301 2014-02-19 Tom Tromey <tromey@redhat.com>
5303 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5304 (target_set_trace_notes): Add argument.
5305 * target.c (update_current_target): Update.
5306 * remote.c (remote_set_trace_notes): Add 'self' argument.
5308 2014-02-19 Tom Tromey <tromey@redhat.com>
5310 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5312 (target_set_trace_buffer_size): Add argument.
5313 * target.c (update_current_target): Update.
5314 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5316 2014-02-19 Tom Tromey <tromey@redhat.com>
5318 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5320 (target_set_circular_trace_buffer): Add argument.
5321 * target.c (update_current_target): Update.
5322 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5325 2014-02-19 Tom Tromey <tromey@redhat.com>
5327 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5329 (target_set_disconnected_tracing): Add argument.
5330 * target.c (update_current_target): Update.
5331 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5333 2014-02-19 Tom Tromey <tromey@redhat.com>
5335 * target.h (struct target_ops)
5336 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5337 (target_get_min_fast_tracepoint_insn_len): Add argument.
5338 * target.c (update_current_target): Update.
5339 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5342 2014-02-19 Tom Tromey <tromey@redhat.com>
5344 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5346 (target_get_raw_trace_data): Add argument.
5347 * target.c (update_current_target): Update.
5348 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5350 2014-02-19 Tom Tromey <tromey@redhat.com>
5352 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5354 (target_upload_trace_state_variables): Add argument.
5355 * target.c (update_current_target): Update.
5356 * remote.c (remote_upload_trace_state_variables): Add 'self'
5358 (remote_start_remote): Update.
5360 2014-02-19 Tom Tromey <tromey@redhat.com>
5362 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5364 (target_upload_tracepoints): Add argument.
5365 * target.c (update_current_target): Update.
5366 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5367 (remote_start_remote): Update.
5369 2014-02-19 Tom Tromey <tromey@redhat.com>
5371 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5372 (target_save_trace_data): Add argument.
5373 * target.c (update_current_target): Update.
5374 * remote.c (remote_save_trace_data): Add 'self' argument.
5376 2014-02-19 Tom Tromey <tromey@redhat.com>
5378 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5380 * target.h (struct target_ops)
5381 <to_get_trace_state_variable_value>: Add argument.
5382 (target_get_trace_state_variable_value): Add argument.
5383 * target.c (update_current_target): Update.
5384 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5386 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5388 2014-02-19 Tom Tromey <tromey@redhat.com>
5390 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5391 * target.h (struct target_ops) <to_trace_find>: Add argument.
5392 (target_trace_find): Add argument.
5393 * target.c (update_current_target): Update.
5394 * remote.c (remote_trace_find): Add 'self' argument.
5395 * ctf.c (ctf_trace_find): Add 'self' argument.
5397 2014-02-19 Tom Tromey <tromey@redhat.com>
5399 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5400 (target_trace_stop): Add argument.
5401 * target.c (update_current_target): Update.
5402 * remote.c (remote_trace_stop): Add 'self' argument.
5404 2014-02-19 Tom Tromey <tromey@redhat.com>
5406 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5407 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5409 (target_get_tracepoint_status): Add argument.
5410 * target.c (update_current_target): Update.
5411 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5413 2014-02-19 Tom Tromey <tromey@redhat.com>
5415 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5416 * target.h (struct target_ops) <to_get_trace_status>: Add
5418 (target_get_trace_status): Add argument.
5419 * target.c (update_current_target): Update.
5420 * remote.c (remote_get_trace_status): Add 'self' argument.
5421 (remote_start_remote, remote_can_download_tracepoint): Update.
5422 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5424 2014-02-19 Tom Tromey <tromey@redhat.com>
5426 * target.h (struct target_ops) <to_trace_start>: Add argument.
5427 (target_trace_start): Add argument.
5428 * target.c (update_current_target): Update.
5429 * remote.c (remote_trace_start): Add 'self' argument.
5431 2014-02-19 Tom Tromey <tromey@redhat.com>
5433 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5435 (target_trace_set_readonly_regions): Add argument.
5436 * target.c (update_current_target): Update.
5437 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5440 2014-02-19 Tom Tromey <tromey@redhat.com>
5442 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5444 (target_disable_tracepoint): Add argument.
5445 * target.c (update_current_target): Update.
5446 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5448 2014-02-19 Tom Tromey <tromey@redhat.com>
5450 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5452 (target_enable_tracepoint): Add argument.
5453 * target.c (update_current_target): Update.
5454 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5456 2014-02-19 Tom Tromey <tromey@redhat.com>
5458 * target.h (struct target_ops) <to_download_trace_state_variable>:
5460 (target_download_trace_state_variable): Add argument.
5461 * target.c (update_current_target): Update.
5462 * remote.c (remote_download_trace_state_variable): Add 'self'
5465 2014-02-19 Tom Tromey <tromey@redhat.com>
5467 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5469 (target_can_download_tracepoint): Add argument.
5470 * target.c (update_current_target): Update.
5471 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5473 2014-02-19 Tom Tromey <tromey@redhat.com>
5475 * target.h (struct target_ops) <to_download_tracepoint>: Add
5477 (target_download_tracepoint): Add argument.
5478 * target.c (update_current_target): Update.
5479 * remote.c (remote_download_tracepoint): Add 'self' argument.
5481 2014-02-19 Tom Tromey <tromey@redhat.com>
5483 * target.h (struct target_ops) <to_trace_init>: Add argument.
5484 (target_trace_init): Add argument.
5485 * target.c (update_current_target): Update.
5486 * remote.c (remote_trace_init): Add 'self' argument.
5488 2014-02-19 Tom Tromey <tromey@redhat.com>
5490 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5491 * target.c (target_fileio_readlink): Add argument.
5492 * remote.c (remote_hostio_readlink): Add 'self' argument.
5493 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5495 2014-02-19 Tom Tromey <tromey@redhat.com>
5497 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5498 * target.c (target_fileio_unlink): Add argument.
5499 * remote.c (remote_hostio_unlink): Add 'self' argument.
5500 (remote_file_delete): Update.
5501 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5503 2014-02-19 Tom Tromey <tromey@redhat.com>
5505 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5506 * target.c (target_fileio_close): Add argument.
5507 * remote.c (remote_hostio_close): Add 'self' argument.
5508 (remote_hostio_close_cleanup): Update.
5509 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5511 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5513 2014-02-19 Tom Tromey <tromey@redhat.com>
5515 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5516 * target.c (target_fileio_pread): Add argument.
5517 * remote.c (remote_hostio_pread): Add 'self' argument.
5518 (remote_bfd_iovec_pread, remote_file_get): Update.
5519 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5521 2014-02-19 Tom Tromey <tromey@redhat.com>
5523 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5524 * target.c (target_fileio_pwrite): Add argument.
5525 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5526 (remote_file_put): Update.
5527 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5529 2014-02-19 Tom Tromey <tromey@redhat.com>
5531 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5532 * target.c (target_fileio_open): Add argument.
5533 * remote.c (remote_hostio_open): Add 'self' argument.
5534 (remote_bfd_iovec_open): Add 'self' argument.
5535 (remote_file_put): Add 'self' argument.
5536 (remote_file_get): Add 'self' argument.
5537 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5539 2014-02-19 Tom Tromey <tromey@redhat.com>
5541 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5543 (target_can_run_breakpoint_commands): Add argument.
5544 * target.c (update_current_target): Update.
5545 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5547 (remote_insert_breakpoint): Add 'self' argument.
5548 (remote_insert_hw_breakpoint): Add 'self' argument.
5549 (remote_can_run_breakpoint_commands): Add 'self' argument.
5551 2014-02-19 Tom Tromey <tromey@redhat.com>
5553 * target.h (struct target_ops)
5554 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5555 (target_supports_evaluation_of_breakpoint_conditions): Add
5557 * target.c (update_current_target): Update.
5558 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5560 (remote_insert_breakpoint): Add 'self' argument.
5561 (remote_insert_hw_breakpoint): Add 'self' argument.
5562 (remote_supports_cond_breakpoints): Add 'self' argument.
5564 2014-02-19 Tom Tromey <tromey@redhat.com>
5566 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5568 (target_supports_string_tracing): Add argument.
5569 * target.c (update_current_target): Update.
5570 * remote.c (remote_supports_string_tracing): Add 'self' argument.
5572 2014-02-19 Tom Tromey <tromey@redhat.com>
5574 * target.h (struct target_ops)
5575 <to_supports_disable_randomization>: Add argument.
5576 * target.c (find_default_supports_disable_randomization): Add
5578 (target_supports_disable_randomization): Add argument.
5579 (find_default_supports_disable_randomization): Add 'self'
5581 * remote.c (extended_remote_supports_disable_randomization): Add
5583 (remote_supports_disable_randomization): Add 'self' argument.
5584 (extended_remote_create_inferior): Update.
5585 * linux-nat.c (linux_nat_supports_disable_randomization): Add
5588 2014-02-19 Tom Tromey <tromey@redhat.com>
5590 * target.h (struct target_ops)
5591 <to_supports_enable_disable_tracepoint>: Add argument.
5592 (target_supports_enable_disable_tracepoint): Add argument.
5593 * target.c (update_current_target): Update.
5594 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
5597 2014-02-19 Tom Tromey <tromey@redhat.com>
5599 * target.h (struct target_ops) <to_supports_multi_process>: Add
5601 (target_supports_multi_process): Add argument.
5602 * target.c (update_current_target): Update.
5603 * remote.c (remote_supports_multi_process): Add 'self' argument.
5604 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
5606 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
5609 2014-02-19 Tom Tromey <tromey@redhat.com>
5611 * target.h (struct target_ops) <to_execution_direction>: Add
5613 (target_execution_direction): Add argument.
5614 * target.c (default_execution_direction): Add 'self' argument.
5615 * record-full.c (record_full_execution_direction): Add 'self'
5618 2014-02-19 Tom Tromey <tromey@redhat.com>
5620 * target.h (struct target_ops) <to_can_execute_reverse>: Add
5622 (target_can_execute_reverse): Add argument.
5623 * remote.c (remote_can_execute_reverse): Add 'self' argument.
5624 * record-full.c (record_full_can_execute_reverse): Add 'self'
5626 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
5629 2014-02-19 Tom Tromey <tromey@redhat.com>
5631 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
5632 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
5634 (target_get_ada_task_ptid): Add argument.
5635 * target.c (update_current_target): Update.
5636 (default_get_ada_task_ptid): Add 'self' argument.
5637 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
5638 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
5639 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
5641 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
5643 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
5645 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
5647 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
5648 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
5651 2014-02-19 Tom Tromey <tromey@redhat.com>
5653 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
5654 (target_goto_bookmark): Add argument.
5655 * target.c (dummy_goto_bookmark): Add 'self' argument.
5656 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
5658 2014-02-19 Tom Tromey <tromey@redhat.com>
5660 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
5661 (target_get_bookmark): Add argument.
5662 * target.c (dummy_get_bookmark): Add 'self' argument.
5663 * record-full.c (record_full_get_bookmark): Add 'self' argument.
5665 2014-02-19 Tom Tromey <tromey@redhat.com>
5667 * target.h (struct target_ops) <to_make_corefile_notes>: Add
5669 (target_make_corefile_notes): Add argument.
5670 * target.c (dummy_make_corefile_notes): Add 'self' argument.
5671 * procfs.c (procfs_make_note_section): Add 'self' argument.
5672 (procfs_make_note_section): Add 'self' argument.
5673 (procfs_make_note_section): Add 'self' argument.
5674 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
5676 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
5677 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
5678 * exec.c (exec_make_note_section): Add 'self' argument.
5679 (exec_make_note_section): Add 'self' argument.
5681 2014-02-19 Tom Tromey <tromey@redhat.com>
5683 * target.h (struct target_ops) <to_find_memory_regions>: Add
5685 (target_find_memory_regions): Add argument.
5686 * target.c (dummy_find_memory_regions): Add 'self' argument.
5687 * procfs.c (proc_find_memory_regions): Add 'self' argument.
5688 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
5689 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
5690 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
5691 * exec. (exec_do_find_memory_regions): New global.
5692 (exec_set_find_memory_regions): Rewrite.
5693 (exec_find_memory_regions): New function.
5694 (init_exec_ops): Use exec_find_memory_regions.
5696 2014-02-19 Tom Tromey <tromey@redhat.com>
5698 * target.h (struct target_ops) <to_supports_non_stop>: Add
5700 * target.c (find_default_supports_non_stop): Add argument.
5701 (target_supports_non_stop): Add argument.
5702 (find_default_supports_non_stop): Add 'self' argument.
5703 * remote.c (remote_supports_non_stop): Add 'self' argument.
5704 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
5706 2014-02-19 Tom Tromey <tromey@redhat.com>
5708 * target.h (struct target_ops) <to_log_command>: Add argument.
5709 (target_log_command): Add argument.
5710 * serial.h (serial_log_command): Add 'self' argument.
5711 * serial.c (serial_log_command): Add 'self' argument.
5713 2014-02-19 Tom Tromey <tromey@redhat.com>
5715 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
5716 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
5718 (target_pid_to_exec_file): Add argument.
5719 * target.c (debug_to_pid_to_exec_file): Add argument.
5720 (update_current_target): Update.
5721 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
5722 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
5723 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
5724 (linux_handle_extended_wait): Update.
5725 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
5726 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
5727 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
5728 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
5730 2014-02-19 Tom Tromey <tromey@redhat.com>
5732 * target.h (struct target_ops) <to_rcmd>: Add argument.
5733 (target_rcmd): Add argument.
5734 * target.c (debug_to_rcmd): Add argument.
5735 (update_current_target, do_monitor_command): Update.
5736 * remote.c (remote_rcmd): Add 'self' argument.
5737 * monitor.c (monitor_rcmd): Add 'self' argument.
5739 2014-02-19 Tom Tromey <tromey@redhat.com>
5741 * windows-nat.c (windows_stop): Add 'self' argument.
5742 * target.h (struct target_ops) <to_stop>: Add argument.
5743 * target.c (target_stop): Add argument.
5744 (debug_to_stop): Add argument.
5745 (update_current_target): Update.
5746 * remote.c (remote_stop): Add 'self' argument.
5747 * remote-sim.c (gdbsim_stop): Add 'self' argument.
5748 (gdbsim_cntrl_c): Update.
5749 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
5750 * procfs.c (procfs_stop): Add 'self' argument.
5751 * nto-procfs.c (procfs_stop): Add 'self' argument.
5752 * monitor.c (monitor_stop): Add 'self' argument.
5753 (monitor_open): Update.
5754 * linux-nat.c (linux_nat_stop): Add argument.
5755 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
5756 * gnu-nat.c (gnu_stop): Add 'self' argument.
5757 * darwin-nat.c (darwin_stop): Add 'self' argument.
5759 2014-02-19 Tom Tromey <tromey@redhat.com>
5761 * target.h (struct target_ops) <to_thread_name>: Add argument.
5762 * target.c (target_thread_name): Add argument.
5763 (update_current_target): Update.
5764 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
5766 2014-02-19 Tom Tromey <tromey@redhat.com>
5768 * target.h (struct target_ops) <to_extra_thread_info>: Add
5770 (target_extra_thread_info): Add argument.
5771 * target.c (update_current_target): Update.
5772 * remote.c (remote_threads_extra_info): Add 'self' argument.
5773 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
5775 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
5776 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
5777 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
5779 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
5781 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
5783 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
5786 2014-02-19 Tom Tromey <tromey@redhat.com>
5788 * target.h (struct target_ops) <to_program_signals>: Add argument.
5789 * target.c (target_program_signals): Add argument.
5790 * remote.c (remote_program_signals): Add 'self' argument.
5792 2014-02-19 Tom Tromey <tromey@redhat.com>
5794 * target.h (struct target_ops) <to_pass_signals>: Add argument.
5795 * target.c (target_pass_signals): Add argument.
5796 * remote.c (remote_pass_signals): Add 'self' argument.
5797 (remote_start_remote): Update.
5798 * procfs.c (procfs_pass_signals): Add 'self' argument.
5799 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
5800 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
5801 (linux_nat_create_inferior, linux_nat_attach): Update.
5803 2014-02-19 Tom Tromey <tromey@redhat.com>
5805 * windows-nat.c (windows_can_run): Add 'self' argument.
5806 * target.h (struct target_ops) <to_can_run>: Add argument.
5807 (target_can_run): Add argument.
5808 * target.c (debug_to_can_run): Add argument.
5809 (update_current_target): Update.
5810 * nto-procfs.c (procfs_can_run): Add 'self' argument.
5811 * inf-child.c (inf_child_can_run): Add 'self' argument.
5812 * go32-nat.c (go32_can_run): Add 'self' argument.
5814 2014-02-19 Tom Tromey <tromey@redhat.com>
5816 * target.h (struct target_ops) <to_has_exited>: Add argument.
5817 (target_has_exited): Add argument.
5818 * target.c (debug_to_has_exited): Add argument.
5819 (update_current_target): Update.
5821 2014-02-19 Tom Tromey <tromey@redhat.com>
5823 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
5825 (target_set_syscall_catchpoint): Add argument.
5826 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
5828 * target.c (update_current_target): Update.
5830 2014-02-19 Tom Tromey <tromey@redhat.com>
5832 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
5834 (target_remove_exec_catchpoint): Add argument.
5835 * target.c (debug_to_remove_exec_catchpoint): Add argument.
5836 (update_current_target): Update.
5837 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
5840 2014-02-19 Tom Tromey <tromey@redhat.com>
5842 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
5844 (target_insert_exec_catchpoint): Add argument.
5845 * target.c (debug_to_insert_exec_catchpoint): Add argument.
5846 (update_current_target): Update.
5847 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
5850 2014-02-19 Tom Tromey <tromey@redhat.com>
5852 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
5854 (target_remove_vfork_catchpoint): Add argument.
5855 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
5856 (update_current_target): Update.
5857 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
5860 2014-02-19 Tom Tromey <tromey@redhat.com>
5862 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
5864 (target_insert_vfork_catchpoint): Add argument.
5865 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
5866 (update_current_target): Update.
5867 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
5870 2014-02-19 Tom Tromey <tromey@redhat.com>
5872 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
5874 (target_remove_fork_catchpoint): Add argument.
5875 * target.c (debug_to_remove_fork_catchpoint): Add argument.
5876 (update_current_target): Update.
5877 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
5880 2014-02-19 Tom Tromey <tromey@redhat.com>
5882 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
5884 (target_insert_fork_catchpoint): Add argument.
5885 * target.c (debug_to_insert_fork_catchpoint): Add argument.
5886 (update_current_target): Update.
5887 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
5890 2014-02-19 Tom Tromey <tromey@redhat.com>
5892 * target.h (struct target_ops) <to_post_startup_inferior>: Add
5894 (target_post_startup_inferior): Add argument.
5895 * target.c (debug_to_post_startup_inferior): Add argument.
5896 (update_current_target): Update.
5897 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
5899 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
5901 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
5903 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
5905 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
5907 (super_post_startup_inferior): Likewise.
5908 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
5910 (super_post_startup_inferior): Likewise.
5911 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
5912 Add 'self' argument.
5913 (super_post_startup_inferior): Likewise.
5915 2014-02-19 Tom Tromey <tromey@redhat.com>
5917 * target.h (struct target_ops) <to_load>: Add argument.
5918 * target.c (target_load): Add argument.
5919 (debug_to_load): Add argument.
5920 (update_current_target): Update.
5921 * remote.c (remote_load): Add 'self' argument.
5922 * remote-sim.c (gdbsim_load): Add 'self' argument.
5923 * remote-mips.c (mips_load): Add 'self' argument.
5924 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
5925 * monitor.c (monitor_load): Add 'self' argument.
5926 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
5928 2014-02-19 Tom Tromey <tromey@redhat.com>
5930 * target.h (struct target_ops) <to_terminal_info>: Add argument.
5931 (target_terminal_info): Add argument.
5932 * target.c (debug_to_terminal_info): Add argument.
5933 (default_terminal_info): Likewise.
5934 * inflow.c (child_terminal_info): Add 'self' argument.
5935 * inferior.h (child_terminal_info): Add 'self' argument.
5936 * go32-nat.c (go32_terminal_info): Add 'self' argument.
5938 2014-02-19 Tom Tromey <tromey@redhat.com>
5940 * target.h (struct target_ops) <to_terminal_save_ours>: Add
5942 (target_terminal_save_ours): Add argument.
5943 * target.c (debug_to_terminal_save_ours): Add argument.
5944 (update_current_target): Update.
5945 * inflow.c (terminal_save_ours): Add 'self' argument.
5946 * inferior.h (terminal_save_ours): Add 'self' argument.
5948 2014-02-19 Tom Tromey <tromey@redhat.com>
5950 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
5951 (target_terminal_ours): Add argument.
5952 * target.c (debug_to_terminal_ours): Add argument.
5953 (update_current_target): Update.
5954 * remote.c (remote_terminal_ours): Add 'self' argument.
5955 (remote_close): Update.
5956 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
5957 * inflow.c (terminal_ours): Add 'self' argument.
5958 * inferior.h (terminal_ours): Add 'self' argument.
5959 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5961 2014-02-19 Pedro Alves <palves@redhat.com>
5962 Tom Tromey <tromey@redhat.com>
5964 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
5966 (target_terminal_ours_for_output): Add argument.
5967 * target.c (debug_to_terminal_ours_for_output): Add argument.
5968 (update_current_target): Update.
5969 * inflow.c (terminal_ours_for_output): Add 'self' argument.
5970 * inferior.h (terminal_ours_for_output): Add 'self' argument.
5971 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
5973 2014-02-19 Tom Tromey <tromey@redhat.com>
5975 * target.h (struct target_ops) <to_terminal_inferior>: Add
5977 * target.c (target_terminal_inferior): Add argument.
5978 (update_current_target): Update.
5979 * remote.c (remote_terminal_inferior): Add 'self' argument.
5980 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
5981 * inflow.c (terminal_inferior): Add 'self' argument.
5982 * inferior.h (terminal_inferior): Add 'self' argument.
5983 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
5984 (go32_terminal_inferior): Add 'self' argument.
5986 2014-02-19 Tom Tromey <tromey@redhat.com>
5988 * target.h (struct target_ops) <to_terminal_init>: Add argument.
5989 (target_terminal_init): Add argument.
5990 * target.c (debug_to_terminal_init): Add argument.
5991 (update_current_target): Update.
5992 * inflow.c (terminal_init_inferior): Add 'self' argument.
5993 * inferior.h (terminal_init_inferior): Add 'self' argument.
5994 * go32-nat.c (go32_terminal_init): Add 'self' argument.
5995 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
5997 2014-02-19 Tom Tromey <tromey@redhat.com>
5999 * target.h (struct target_ops)
6000 <to_can_accel_watchpoint_condition>: Add argument.
6001 (target_can_accel_watchpoint_condition): Add argument.
6002 * target.c (debug_to_can_accel_watchpoint_condition): Add
6004 (update_current_target): Update.
6005 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6008 2014-02-19 Tom Tromey <tromey@redhat.com>
6010 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6012 (target_region_ok_for_hw_watchpoint): Add argument.
6013 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6014 (default_region_ok_for_hw_watchpoint): Add argument.
6015 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6016 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6018 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6020 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6022 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6024 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6026 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6028 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6029 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6031 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6032 Add 'self' argument.
6034 2014-02-19 Tom Tromey <tromey@redhat.com>
6036 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6038 (target_insert_watchpoint): Add argument.
6039 * target.c (debug_to_insert_watchpoint): Add argument.
6040 (update_current_target): Update.
6041 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6042 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6043 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6044 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6045 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6046 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6048 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6049 (procfs_insert_hw_watchpoint): Add 'self' argument.
6050 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6052 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6054 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6056 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6057 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6059 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6062 2014-02-19 Tom Tromey <tromey@redhat.com>
6064 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6066 (target_remove_watchpoint): Add argument.
6067 * target.c (debug_to_remove_watchpoint): Add argument.
6068 (update_current_target): Update.
6069 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6070 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6071 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6072 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6073 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6074 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6076 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6077 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6079 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6081 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6083 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6084 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6086 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6089 2014-02-19 Tom Tromey <tromey@redhat.com>
6091 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6093 (target_remove_hw_breakpoint): Add argument.
6094 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6095 (update_current_target): Update.
6096 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6097 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6099 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6100 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6102 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6105 2014-02-19 Tom Tromey <tromey@redhat.com>
6107 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6109 (target_insert_hw_breakpoint): Add argument.
6110 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6111 (update_current_target): Update.
6112 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6113 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6115 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6116 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6117 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6119 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6122 2014-02-19 Tom Tromey <tromey@redhat.com>
6124 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6126 (target_can_use_hardware_watchpoint): Add argument.
6127 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6128 (update_current_target): Update.
6129 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6131 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6133 * remote.c (remote_check_watch_resources): Add 'self' argument.
6134 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6135 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6137 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6138 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6140 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6142 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6144 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6146 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6148 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6150 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6151 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6153 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6156 2014-02-19 Tom Tromey <tromey@redhat.com>
6158 * target.h (struct target_ops) <to_post_attach>: Add argument.
6159 (target_post_attach): Add argument.
6160 * target.c (debug_to_post_attach): Add argument.
6161 (update_current_target): Update.
6162 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6163 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6164 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6165 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6166 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6168 2014-02-19 Tom Tromey <tromey@redhat.com>
6170 * windows-nat.c (windows_close): Add 'self' argument.
6171 * tracepoint.c (tfile_close): Add 'self' argument.
6172 * target.h (struct target_ops) <to_close>: Add argument.
6173 * target.c (target_close): Add argument.
6174 (update_current_target): Update.
6175 * remote.c (remote_close): Add 'self' argument.
6176 * remote-sim.c (gdbsim_close): Add 'self' argument.
6177 * remote-mips.c (mips_close): Add 'self' argument.
6178 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6179 * record-full.c (record_full_close): Add 'self' argument.
6180 * record-btrace.c (record_btrace_close): Add 'self' argument.
6181 * monitor.h (monitor_close): Add 'self' argument.
6182 * monitor.c (monitor_close): Add 'self' argument.
6183 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6184 * linux-nat.c (linux_nat_close): Add argument.
6185 * go32-nat.c (go32_close): Add 'self' argument.
6186 * exec.c (exec_close_1): Add 'self' argument.
6187 * ctf.c (ctf_close): Add 'self' argument.
6188 * corelow.c (core_close): Add 'self' argument.
6189 (core_close_cleanup): Update.
6190 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6191 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6193 2014-02-19 Tom Tromey <tromey@redhat.com>
6195 * remote.c (remote_load): New function.
6196 (init_remote_ops): Use it.
6198 2014-02-19 Tom Tromey <tromey@redhat.com>
6200 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6202 * common/linux-btrace.h (linux_supports_btrace): Update.
6203 * remote.c (remote_supports_btrace): Add "self" argument.
6204 * target-delegates.c: Rebuild.
6205 * target.c (target_supports_btrace): Remove.
6206 * target.h (struct target_ops) <to_supports_btrace>: Add
6207 target_ops argument.
6208 (target_supports_btrace): New define.
6210 2014-02-19 Tom Tromey <tromey@redhat.com>
6212 * record-full.c (record_full_beneath_to_resume_ops)
6213 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6214 (record_full_beneath_to_wait)
6215 (record_full_beneath_to_store_registers_ops)
6216 (record_full_beneath_to_store_registers)
6217 (record_full_beneath_to_xfer_partial_ops)
6218 (record_full_beneath_to_xfer_partial)
6219 (record_full_beneath_to_insert_breakpoint_ops)
6220 (record_full_beneath_to_insert_breakpoint)
6221 (record_full_beneath_to_remove_breakpoint_ops)
6222 (record_full_beneath_to_remove_breakpoint)
6223 (record_full_beneath_to_stopped_by_watchpoint)
6224 (record_full_beneath_to_stopped_data_address)
6225 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6226 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6227 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6228 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6229 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6230 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6231 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6232 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6233 (record_full_resume, record_full_wait_1)
6234 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6235 (record_full_store_registers, record_full_xfer_partial)
6236 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6237 (record_full_async, record_full_core_xfer_partial): Use target
6239 * target-delegates.c: Rebuild.
6240 * target.c (current_xfer_partial): Remove.
6241 (update_current_target): Do not INHERIT or de_fault
6242 to_insert_breakpoint, to_remove_breakpoint,
6243 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6244 to_is_async_p, to_async. Do not set to_xfer_partial field.
6245 (default_xfer_partial): Simplify.
6246 (current_xfer_partial): Remove.
6247 (target_wait, target_resume): Simplify.
6248 (find_default_can_async_p, find_default_is_async_p): Update.
6249 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6250 to_xfer_partial, to_stopped_by_watchpoint,
6251 to_stopped_data_address.
6252 (target_store_registers): Simplify.
6253 (forward_target_remove_breakpoint)
6254 (forward_target_insert_breakpoint): Remove.
6255 (target_remove_breakpoint, target_insert_breakpoint)
6256 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6257 * target.h (struct target_ops) <to_resume, to_wait,
6258 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6259 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6260 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6262 (forward_target_remove_breakpoint)
6263 (forward_target_insert_breakpoint): Remove.
6264 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6266 (record_btrace_insert_breakpoint): Delegate directly.
6268 2014-02-19 Tom Tromey <tromey@redhat.com>
6271 * target-delegates.c: New file.
6272 * target.c: Include target-delegates.c.
6273 (init_dummy_target): Call install_dummy_methods.
6274 (complete_target_initialization): Call install_delegators.
6275 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6276 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6277 * make-target-delegates: New file.
6279 2014-02-19 Tom Tromey <tromey@redhat.com>
6281 * record.c (find_record_target): Use find_target_at.
6282 * target.c (find_target_at): New function.
6283 * target.h (find_target_at): Declare.
6285 2014-02-19 Tom Tromey <tromey@redhat.com>
6287 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6289 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6291 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6292 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6294 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6296 * linux-nat.c (save_sigtrap): Update.
6297 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6298 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6299 (linux_nat_close): Update.
6300 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6302 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6304 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6305 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6306 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6307 (tmp_to_async): Add 'ops' argument.
6308 (record_full_stopped_by_watchpoint, record_full_async)
6309 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6311 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6312 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6313 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6314 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6315 (remote_is_async_p, remote_async): Add 'ops' argument.
6316 (remote_stopped_data_address): Update.
6317 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6318 * target.c (update_current_target)
6319 (find_default_can_async_p, find_default_is_async_p): Update.
6320 (init_dummy_target): Update.
6321 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6322 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6323 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6324 (target_can_async_p, target_is_async_p, target_async)
6325 (target_stopped_by_watchpoint): Update.
6327 2014-02-19 Yao Qi <yao@codesourcery.com>
6330 * gdbarch.sh: Remove startup_gdbarch.
6331 * gdbarch.c: Regenerated.
6332 * gdbarch.h: Likewise.
6334 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6336 * rl78-tdep.c (rl78_g10_register_name): New function.
6337 (rl78_return_value): Add g10 support.
6338 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6341 2014-02-17 Doug Evans <xdje42@gmail.com>
6343 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6344 (SUBDIR_GUILE_SRCS): Ditto.
6345 (scm-gsmob.o): Ditto.
6347 2014-02-17 Yao Qi <yao@codesourcery.com>
6349 * gnu-nat.c (ILL_RPC): Declare defined function.
6351 2014-02-17 Yao Qi <yao@codesourcery.com>
6353 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6354 mach_msg_type_number_t.
6355 (gnu_write_inferior): Likewise.
6357 2014-02-17 Yao Qi <yao@codesourcery.com>
6359 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6361 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6362 (inf_validate_procs, inf_signal): Likewise.
6363 (S_exception_raise_request): Likewise.
6364 (do_mach_notify_dead_name): Likewise.
6365 (steal_exc_port): Likewise.
6366 (gnu_read_inferior): Change 'copy_count''s type to
6367 mach_msg_type_number_t.
6368 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6371 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6373 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6374 flag. Adjust all users; in particular...
6375 (gnu_wait): ..., don't decrement its value in here...
6376 (gnu_create_inferior): ..., and instead set the flag in here,
6377 around the startup_inferior call, and call that one with
6378 START_INFERIOR_TRAPS_EXPECTED.
6380 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6381 (ILL_RPC): ... new macro.
6382 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6383 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6384 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6385 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6386 functions with ILL_RPC macro.
6387 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6388 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6389 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6390 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6391 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6392 (S_proc_getlogin_reply, S_proc_getsid_reply)
6393 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6394 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6395 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6396 (S_proc_getnports_reply, S_proc_is_important_reply)
6397 (S_proc_get_code_reply): New stub functions, generated with
6400 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6401 collected the type check structures.
6403 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6405 2014-02-14 Doug Evans <dje@google.com>
6407 * target.c (target_write_partial): Fix result type.
6409 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6411 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6412 the proper offsets to access fpregset_t.
6414 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6416 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6417 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6418 * h8300-tdep.c (setmachinelist): Remove global.
6419 * hppa-tdep.c (hppa_sigtramp): Remove global.
6420 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6421 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6422 * ravenscar-thread.c (update_target_observer): Remove global.
6423 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6425 2014-02-12 Tom Tromey <tromey@redhat.com>
6427 * common/rsp-low.c: Update comments.
6428 * common/rsp-low.h: Update comments.
6430 2014-02-12 Tom Tromey <tromey@redhat.com>
6432 * common/rsp-low.c (convert_ascii_to_int): Remove.
6433 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6435 2014-02-12 Tom Tromey <tromey@redhat.com>
6437 * common/rsp-low.h (unhexify): Don't declare.
6438 * common/rsp-low.c (unhexify): Remove.
6440 2014-02-12 Tom Tromey <tromey@redhat.com>
6442 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6443 * common/rsp-low.c (convert_int_to_ascii): Remove.
6445 2014-02-12 Tom Tromey <tromey@redhat.com>
6447 * common/rsp-low.h (hexify): Don't declare.
6448 * common/rsp-low.c (hexify): Remove.
6450 2014-02-12 Tom Tromey <tromey@redhat.com>
6452 * common/rsp-low.c (hexify): Never take strlen of argument.
6454 2014-02-12 Tom Tromey <tromey@redhat.com>
6456 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6457 * remote.c (extended_remote_run, remote_rcmd)
6458 (remote_download_trace_state_variable, remote_save_trace_data)
6459 (remote_set_trace_notes): Update.
6460 * tracepoint.c (encode_source_string, tfile_write_status)
6461 (tfile_write_uploaded_tsv): Update.
6463 2014-02-12 Tom Tromey <tromey@redhat.com>
6465 * tracepoint.c: Include rsp-low.h.
6466 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6467 * remote.c: Include rsp-low.h.
6468 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6469 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6470 (remote_unescape_input): Move to common/rsp-low.c.
6471 * common/rsp-low.h: New file.
6472 * common/rsp-low.c: New file.
6473 * Makefile.in (SFILES): Add common/rsp-low.c.
6474 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6475 (COMMON_OBS): Add rsp-low.o.
6476 (rsp-low.o): New target.
6478 2014-02-12 Tom Tromey <tromey@redhat.com>
6480 * utils.h: Include print-utils.h.
6481 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6482 (int_string, core_addr_to_string, core_addr_to_string_nz)
6483 (hex_string, hex_string_custom): Don't declare.
6484 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6485 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6486 (hex_string_custom, int_string, core_addr_to_string)
6487 (core_addr_to_string_nz, host_address_to_string): Move to
6488 common/print-utils.c.
6489 * common/print-utils.h: New file.
6490 * common/print-utils.c: New file
6491 * Makefile.in (SFILES): Add common/print-utils.c.
6492 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6493 (COMMON_OBS): Add print-utils.o.
6494 (print-utils.o): New target.
6496 2014-02-12 Tom Tromey <tromey@redhat.com>
6498 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6500 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6502 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6504 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6506 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6507 if a PT_IO ptrace request returns sucessfully but indicates that 0
6508 bytes were transferred.
6510 2014-02-12 Pedro Alves <palves@redhat.com>
6511 Kevin Buettner <kevinb@redhat.com>
6513 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6514 TYPE_INSTANCE_FLAG_CODE_SPACE.
6516 2014-02-12 Pedro Alves <palves@redhat.com>
6518 * h8300-tdep.c (pseudo_from_raw_register)
6519 (raw_from_pseudo_register): New functions.
6520 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6523 2014-02-12 Pedro Alves <palves@redhat.com>
6525 * h8300-tdep.c (h8300_register_sim_regno): New function.
6526 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6527 gdbarch_register_sim_regno hook.
6529 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6531 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6533 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6535 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6537 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6539 * obsd-tdep.h (obsd_init_abi): New prototype.
6540 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6541 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6542 (obsd_init_abi): New functions.
6543 * i386obsd-tdep.c: Include "obsd-tdep.h".
6544 (i386obsd_init_abi): Call obsd_init_abi.
6545 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6546 (amd64obsd_init_abi): Call obsd_init_abi.
6547 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6548 obsd-tdep.c to gdb_target_obs.
6550 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6552 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6553 double float arguments to 16-byte in the argument slots.
6555 2014-02-11 Doug Evans <xdje42@gmail.com>
6557 * configure.ac: Don't crash if pkg-config is not found and guile
6558 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6560 * configure: Regenerate.
6562 2014-02-11 Yao Qi <yao@codesourcery.com>
6564 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6565 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6566 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6567 * gnu-nat.c (gnu_xfer_memory): Likewise.
6568 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6569 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6570 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6571 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6573 2014-02-11 Yao Qi <yao@codesourcery.com>
6575 * target.h (enum target_xfer_error): Rename to ...
6576 (enum target_xfer_status): ... it. New. All users updated.
6577 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
6579 (TARGET_XFER_STATUS_ERROR_P): New macro.
6580 (target_xfer_error_to_string): Remove declaration.
6581 (target_xfer_status_to_string): Declare.
6582 (target_xfer_partial_ftype): Adjust it.
6583 (struct target_ops) <to_xfer_partial>: Return
6584 target_xfer_status. Add argument xfered_len. Update
6586 * target.c (target_xfer_error_to_string): Rename to ...
6587 (target_xfer_status_to_string): ... it. New. All callers
6589 (target_read_live_memory): Likewise. Call target_xfer_partial
6590 instead of target_read.
6591 (memory_xfer_live_readonly_partial): Return
6592 target_xfer_status. Add argument xfered_len.
6593 (raw_memory_xfer_partial): Likewise.
6594 (memory_xfer_partial_1): Likewise.
6595 (memory_xfer_partial): Likewise.
6596 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
6597 properly. Update debug message.
6598 (default_xfer_partial, current_xfer_partial): Likewise.
6599 (target_write_partial): Likewise.
6600 (target_read_partial): Likewise. All callers updated.
6601 (read_whatever_is_readable): Likewise.
6602 (target_write_with_progress): Likewise.
6603 (target_read_alloc_1): Likewise.
6605 * aix-thread.c (aix_thread_xfer_partial): Likewise.
6606 * auxv.c (procfs_xfer_auxv): Likewise.
6607 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
6608 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6609 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6610 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
6611 * corefile.c (read_memory): Adjust.
6612 * corelow.c (core_xfer_partial): Likewise.
6613 * ctf.c (ctf_xfer_partial): Likewise.
6614 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
6616 (darwin_xfer_partial): Likewise.
6617 * exec.c (section_table_xfer_memory_partial): Likewise. All
6619 (exec_xfer_partial): Likewise.
6620 * exec.h (section_table_xfer_memory_partial): Update
6622 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
6624 (gnu_xfer_partial): Likewise.
6625 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
6626 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
6627 (ia64_hpux_xfer_solib_got): Likewise.
6628 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
6629 type of 'partial_len' to ULONGEST.
6630 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6631 * linux-nat.c (linux_xfer_siginfo ): Likewise.
6632 (linux_nat_xfer_partial): Likewise.
6633 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
6634 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
6635 * monitor.c (monitor_xfer_memory): Likewise.
6636 (monitor_xfer_partial): Likewise.
6637 * procfs.c (procfs_xfer_partial): Likewise.
6638 * record-btrace.c (record_btrace_xfer_partial): Likewise.
6639 * record-full.c (record_full_xfer_partial): Likewise.
6640 (record_full_core_xfer_partial): Likewise.
6641 * remote-sim.c (gdbsim_xfer_memory): Likewise.
6642 (gdbsim_xfer_partial): Likewise.
6643 * remote.c (remote_write_bytes_aux): Likewise. All callers
6645 (remote_write_bytes, remote_read_bytes): Likewise. All
6647 (remote_flash_erase): Likewise. All callers updated.
6648 (remote_write_qxfer): Likewise. All callers updated.
6649 (remote_read_qxfer): Likewise. All callers updated.
6650 (remote_xfer_partial): Likewise.
6651 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6652 (rs6000_xfer_shared_libraries): Likewise.
6653 * sol-thread.c (sol_thread_xfer_partial): Likewise.
6654 (sol_thread_xfer_partial): Likewise.
6655 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6656 (sparc_xfer_partial): Likewise.
6657 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
6659 (spu_xfer_partial): Likewise.
6660 * spu-multiarch.c (spu_xfer_partial): Likewise.
6661 * tracepoint.c (tfile_xfer_partial): Likewise.
6662 * windows-nat.c (windows_xfer_memory): Likewise.
6663 (windows_xfer_shared_libraries): Likewise.
6664 (windows_xfer_partial): Likewise.
6665 * valprint.c: Replace 'target_xfer_error' with
6666 'target_xfer_status' in comments.
6668 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
6670 Checked in by Joel Brobecker <brobecker@adacore.com>.
6671 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
6673 2014-02-11 Joel Brobecker <brobecker@adacore.com>
6675 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
6676 function parameters.
6678 2014-02-10 Will Newton <will.newton@linaro.org>
6680 * elfread.c (elf_rel_plt_read): Look for a .got section if
6681 looking up .got.plt fails.
6682 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
6683 on address passed to elf_gnu_ifunc_record_cache.
6684 (elf_gnu_ifunc_resolve_addr): Likewise.
6685 (elf_gnu_ifunc_resolver_return_stop): Likewise.
6687 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
6689 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
6690 (X_RETTURN): New macro.
6691 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
6693 * sparc64-tdep.c (sparc64_init_abi): Hook
6694 sparc_in_function_epilogue_p.
6696 2014-02-10 Gary Benson <gbenson@redhat.com>
6698 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6699 Rename name_matcher to symbol_matcher.
6701 2014-02-10 Gary Benson <gbenson@redhat.com>
6703 * symfile-debug.c (debug_qf_expand_symtabs_matching):
6704 Use expand_symtabs_file_matcher_ftype and
6705 expand_symtabs_symbol_matcher_ftype.
6707 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6709 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
6710 (struct ada_symbol_cache): New.
6711 (ada_free_symbol_cache): Forward declare.
6712 (struct ada_pspace_data): New.
6713 (ada_pspace_data_handle): New static global.
6714 (get_ada_pspace_data, ada_pspace_data_cleanup)
6715 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
6716 (cache_space, cache): Delete, now folded inside struct
6718 (ada_get_symbol_cache): New function.
6719 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
6721 (_initialize_ada_language): Remove initialization of cache_space.
6722 Move call to observer_attach_inferior_exit up, grouping it
6723 with the other observer registrations inside this function.
6724 Rename command to be more general. Add call to
6725 register_program_space_data_with_cleanup.
6727 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6729 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
6730 ada_new_objfile_observer.
6731 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
6732 (_initialize_tasks): Update uses of ada_new_objfile_observer
6733 and ada_tasks_normal_stop_observer.
6735 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6737 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
6738 returned by the 'Length attribute to integer.
6740 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6742 * ada-lang.c (_initialize_ada_language): Initialize
6743 cache_space obstack.
6745 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6747 * ada-lang.c (HASH_SIZE): New macro.
6748 (struct cache_entry): New type.
6749 (cache_space, cache): New static globals.
6750 (ada_clear_symbol_cache, find_entry): New functions.
6751 (lookup_cached_symbol, cache_symbol): Implement.
6752 (ada_new_objfile_observer, ada_free_objfile_observer): New.
6753 (_initialize_ada_language): Attach ada_new_objfile_observer
6754 and ada_free_objfile_observer.
6756 2014-02-10 Joel Brobecker <brobecker@adacore.com>
6758 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
6759 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
6760 struct block * parameter.
6761 (ada_lookup_symbol_list_worker): Constify local variable "block".
6762 Remove cast which is no longer necessary.
6764 2014-02-10 Doug Evans <xdje42@gmail.com>
6766 Add Guile as an extension language.
6767 * NEWS: Mention Guile scripting.
6768 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
6769 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
6770 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
6771 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
6772 (CLIBS): Add GUILE_LIBS.
6773 (install-guile): New rule.
6774 (guile.o): New rule.
6775 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
6776 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
6777 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
6778 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
6779 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
6780 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
6781 (scm-type.o, scm-utils.o, scm-value.o): New rules.
6782 * configure.ac: New option --with-guile.
6783 * configure: Regenerate.
6784 * config.in: Regenerate.
6785 * auto-load.c: Remove #include "python/python.h". Add #include
6786 "gdb/section-scripts.h".
6787 (source_section_scripts): Handle Guile scripts.
6788 (_initialize_auto_load): Add name of Guile objfile script to
6789 scripts-directory help text.
6790 * breakpoint.c (condition_command): Tweak comment to include Scheme.
6791 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
6792 (struct breakpoint): New member scm_bp_object.
6793 * defs.h (enum command_control_type): New value guile_control.
6794 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
6796 (show_user): Update comment.
6797 (_initialize_cli_cmds): Update help text for "show user". Update help
6798 text for max-user-call-depth.
6799 * cli/cli-script.c: Remove #include "python/python.h". Add #include
6801 (multi_line_command_p): Add guile_control.
6802 (print_command_lines): Handle guile_control.
6803 (execute_control_command, recurse_read_control_structure): Ditto.
6804 (process_next_line): Recognize "guile" commands.
6805 * disasm.c (gdb_disassemble_info): Make non-static.
6806 * disasm.h: #include "dis-asm.h".
6807 (struct gdbarch): Add forward decl.
6808 (gdb_disassemble_info): Declare.
6809 * extension.c: #include "guile/guile.h".
6810 (extension_languages): Add guile.
6811 (get_ext_lang_defn): Handle EXT_LANG_GDB.
6812 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
6813 * gdbtypes.c (get_unsigned_type_max): New function.
6814 (get_signed_type_minmax): New function.
6815 * gdbtypes.h (get_unsigned_type_max): Declare.
6816 (get_signed_type_minmax): Declare.
6817 * guile/README: New file.
6818 * guile/guile-internal.h: New file.
6819 * guile/guile.c: New file.
6820 * guile/guile.h: New file.
6821 * guile/scm-arch.c: New file.
6822 * guile/scm-auto-load.c: New file.
6823 * guile/scm-block.c: New file.
6824 * guile/scm-breakpoint.c: New file.
6825 * guile/scm-disasm.c: New file.
6826 * guile/scm-exception.c: New file.
6827 * guile/scm-frame.c: New file.
6828 * guile/scm-gsmob.c: New file.
6829 * guile/scm-iterator.c: New file.
6830 * guile/scm-lazy-string.c: New file.
6831 * guile/scm-math.c: New file.
6832 * guile/scm-objfile.c: New file.
6833 * guile/scm-ports.c: New file.
6834 * guile/scm-pretty-print.c: New file.
6835 * guile/scm-safe-call.c: New file.
6836 * guile/scm-string.c: New file.
6837 * guile/scm-symbol.c: New file.
6838 * guile/scm-symtab.c: New file.
6839 * guile/scm-type.c: New file.
6840 * guile/scm-utils.c: New file.
6841 * guile/scm-value.c: New file.
6842 * guile/lib/gdb.scm: New file.
6843 * guile/lib/gdb/boot.scm: New file.
6844 * guile/lib/gdb/experimental.scm: New file.
6845 * guile/lib/gdb/init.scm: New file.
6846 * guile/lib/gdb/iterator.scm: New file.
6847 * guile/lib/gdb/printing.scm: New file.
6848 * guile/lib/gdb/types.scm: New file.
6849 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
6850 (VPATH): Add $(GUILE_SRCDIR).
6851 (GUILE_DIR): New variable.
6852 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
6853 (all): Add stamp-guile dependency.
6854 (stamp-guile): New rule.
6855 (clean-guile, install-guile, uninstall-guile): New rules.
6856 (install-only): Add install-guile dependency.
6857 (uninstall): Add uninstall-guile dependency.
6858 (clean): Add clean-guile dependency.
6860 2014-02-09 Doug Evans <xdje42@gmail.com>
6862 Revert this patch (which I approved, mea culpa).
6864 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6866 * Makefile.in (all-lib): Remove.
6867 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6869 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6871 Fix Python stack corruption.
6872 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
6875 2014-02-08 Mark Kettenis <kettenis@gnu.org>
6877 * Makefile.in (all-lib): Remove.
6878 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
6880 2014-02-07 Doug Evans <dje@google.com>
6882 * extension-priv.h (extension_language_script_ops): Add comment.
6883 (extension_language_ops): Add comment.
6884 (active_ext_lang_state): Fix typo in comment.
6886 2014-02-07 Pedro Alves <palves@redhat.com>
6888 PR breakpoints/16292
6889 * infrun.c (handle_signal_stop) <signal arrives while stepping
6890 over a breakpoint>: Switch back to the stepping thread.
6892 2014-02-07 Yao Qi <yao@codesourcery.com>
6894 * target.c (target_xfer_partial): Return zero if LEN is zero.
6896 2014-02-07 Yao Qi <yao@codesourcery.com>
6898 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
6899 (ld_so_xfer_auxv): Likewise.
6900 * bfd-target.c (target_bfd_xfer_partial): Likewise.
6901 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
6902 * corelow.c (core_xfer_partial): Likewise.
6903 * ctf.c (ctf_xfer_partial): Likewise.
6904 * darwin-nat.c (darwin_read_dyld_info): Likewise.
6905 (darwin_xfer_partial): Likewise.
6906 * exec.c (exec_xfer_partial): Likewise.
6907 * gnu-nat.c (gnu_xfer_partial): Likewise.
6908 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
6909 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
6910 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
6911 * linux-nat.c (linux_xfer_siginfo): Likewise.
6912 (linux_proc_xfer_spu): Likewise.
6913 * procfs.c (procfs_xfer_partial): Likewise.
6914 * record-full.c (record_full_xfer_partial): Likewise.
6915 (record_full_core_xfer_partial): Likewise.
6916 * remote-sim.c (gdbsim_xfer_partial): Likewise.
6917 * remote.c (remote_write_qxfer): Likewise.
6918 (remote_write_qxfer, remote_read_qxfer): Likewise.
6919 (remote_xfer_partial): Likewise.
6920 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
6921 (rs6000_xfer_shared_libraries): Likewise.
6922 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
6923 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
6924 (spu_xfer_partial): Likewise.
6925 * target.c (memory_xfer_partial_1): Likewise.
6926 * tracepoint.c (tfile_xfer_partial): Likewise.
6927 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
6928 (windows_xfer_partial): Likewise.
6930 2014-02-07 Yao Qi <yao@codesourcery.com>
6932 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
6934 (core_xfer_shared_libraries_aix): Likewise.
6935 * gdbarch.c, gdbarch.h: Regenerated.
6936 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
6937 ULONGEST. Change 'len_avail' type to ULONGEST.
6938 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
6939 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
6941 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
6943 2014-02-07 Yao Qi <yao@codesourcery.com>
6945 * corefile.c (memory_error): Get 'exception' from ERR and pass
6946 'exception' to throw_error.
6948 2014-02-06 Doug Evans <xdje42@gmail.com>
6950 * configure.ac (libpython checking): Remove all but python.o from
6951 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
6952 * configure: Regenerate.
6954 * Makefile.in (SFILES): Add extension.c.
6955 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
6956 (COMMON_OBS): Add extension.o.
6957 * extension.h: New file.
6958 * extension-priv.h: New file.
6959 * extension.c: New file.
6961 * python/python-internal.h: #include "extension.h".
6962 (gdbpy_auto_load_enabled): Declare.
6963 (gdbpy_apply_val_pretty_printer): Declare.
6964 (gdbpy_apply_frame_filter): Declare.
6965 (gdbpy_preserve_values): Declare.
6966 (gdbpy_breakpoint_cond_says_stop): Declare.
6967 (gdbpy_breakpoint_has_cond): Declare.
6968 (void source_python_script_for_objfile): Delete.
6969 * python/python.c: #include "extension-priv.h".
6970 Delete inclusion of "observer.h".
6971 (extension_language_python): Moved here and renamed from
6972 script_language_python in py-auto-load.c.
6973 Redefined to be of type extension_language_defn.
6974 (python_extension_script_ops): New global.
6975 (python_extension_ops): New global.
6976 (struct python_env): New member previous_active.
6977 (restore_python_env): Call restore_active_ext_lang.
6978 (ensure_python_env): Call set_active_ext_lang.
6979 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
6981 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
6983 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
6985 (gdbpy_eval_from_control_command): Renamed from
6986 eval_python_from_control_command, made static. New arg extlang.
6987 (gdbpy_source_script) Renamed from source_python_script, made static.
6989 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
6990 result to int. New arg extlang.
6991 (gdbpy_source_objfile_script): Renamed from
6992 source_python_script_for_objfile, made static. New arg extlang.
6993 (gdbpy_start_type_printers): Renamed from start_type_printers, made
6994 static. New args extlang, extlang_printers. Change result type to
6996 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
6997 static. New arg extlang. Rename arg printers to extlang_printers
6998 and change type to ext_lang_type_printers *.
6999 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7000 static. Replace argument arg with extlang, extlang_printers.
7001 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7002 (!HAVE_PYTHON, source_python_script): Delete.
7003 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7004 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7005 (!HAVE_PYTHON, start_type_printers): Delete.
7006 (!HAVE_PYTHON, apply_type_printers): Delete.
7007 (!HAVE_PYTHON, free_type_printers): Delete.
7008 (_initialize_python): Delete call to observer_attach_before_prompt.
7009 (finalize_python): Set/restore active extension language.
7010 (gdbpy_finish_initialization) Renamed from
7011 finish_python_initialization, made static. New arg extlang.
7012 (gdbpy_initialized): New function.
7013 * python/python.h: #include "extension.h". Delete #include
7014 "value.h", "mi/mi-cmds.h".
7015 (extension_language_python): Declare.
7016 (GDBPY_AUTO_FILE_NAME): Delete.
7017 (enum py_bt_status): Moved to extension.h and renamed to
7019 (enum frame_filter_flags): Moved to extension.h.
7020 (enum py_frame_args): Moved to extension.h and renamed to
7021 ext_lang_frame_args.
7022 (finish_python_initialization): Delete.
7023 (eval_python_from_control_command): Delete.
7024 (source_python_script): Delete.
7025 (apply_val_pretty_printer): Delete.
7026 (apply_frame_filter): Delete.
7027 (preserve_python_values): Delete.
7028 (gdbpy_script_language_defn): Delete.
7029 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7030 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7032 * auto-load.c: #include "extension.h".
7033 (GDB_AUTO_FILE_NAME): Delete.
7034 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7035 (script_language_gdb): Delete, moved to extension.c and renamed to
7036 extension_language_gdb.
7037 (source_gdb_script_for_objfile): Delete.
7038 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7039 (loaded_script): Change type of language member to
7040 struct extension_language_defn *.
7041 (init_loaded_scripts_info): Initialize
7042 unsupported_script_warning_printed.
7043 (maybe_add_script): Make static. Change type of language arg to
7044 struct extension_language_defn *.
7045 (clear_section_scripts): Reset unsupported_script_warning_printed.
7046 (auto_load_objfile_script_1): Rewrite to use extension language API.
7047 (auto_load_objfile_script): Make public. Remove support-compiled-in
7048 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7049 (source_section_scripts): Rewrite to use extension language API.
7050 (load_auto_scripts_for_objfile): Rewrite to use
7051 auto_load_scripts_for_objfile.
7052 (collect_matching_scripts_data): Change type of language member to
7053 struct extension_language_defn *.
7054 (auto_load_info_scripts): Change type of language arg to
7055 struct extension_language_defn *.
7056 (unsupported_script_warning_print): New function.
7057 (script_not_found_warning_print): Make static.
7058 (_initialize_auto_load): Rewrite construction of scripts-directory
7060 * auto-load.h (struct objfile): Add forward decl.
7061 (struct script_language): Delete.
7062 (struct auto_load_pspace_info): Add forward decl.
7063 (struct extension_language_defn): Add forward decl.
7064 (maybe_add_script): Delete.
7065 (auto_load_objfile_script): Declare.
7066 (script_not_found_warning_print): Delete.
7067 (auto_load_info_scripts): Update prototype.
7068 (auto_load_gdb_scripts_enabled): Declare.
7069 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7070 auto_load_python_scripts_enabled and made public.
7071 (script_language_python): Delete, moved to python.c.
7072 (gdbpy_script_language_defn): Delete.
7073 (info_auto_load_python_scripts): Update to use
7074 extension_language_python.
7076 * breakpoint.c (condition_command): Replace call to
7077 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7078 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7079 with call to breakpoint_ext_lang_cond_says_stop.
7080 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7081 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7082 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7083 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7085 (local_setattro): Print name of extension language with existing
7088 * valprint.c (val_print, value_print): Update to call
7089 apply_ext_lang_val_pretty_printer.
7090 * cp-valprint.c (cp_print_value): Update call to
7091 apply_ext_lang_val_pretty_printer.
7092 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7093 (gdbpy_apply_val_pretty_printer): Renamed from
7094 apply_val_pretty_printer. New arg extlang.
7095 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7097 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7098 extension language API.
7099 * cli/cli-script.c (execute_control_command): Update to call
7100 eval_ext_lang_from_control_command.
7102 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7103 enum ext_lang_bt_status values. Update call to
7104 apply_ext_lang_frame_filter.
7105 (mi_cmd_stack_list_locals): Ditto.
7106 (mi_cmd_stack_list_args): Ditto.
7107 (mi_cmd_stack_list_variables): Ditto.
7108 * mi/mi-main.c: Delete #include "python/python-internal.h".
7109 Add #include "extension.h".
7110 (mi_cmd_list_features): Replace reference to python internal variable
7111 gdb_python_initialized with call to ext_lang_initialized_p.
7113 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7114 Update to use enum ext_lang_frame_args. Update to call
7115 apply_ext_lang_frame_filter.
7116 * python/py-framefilter.c (extract_sym): Update to use enum
7118 (extract_value, py_print_type, py_print_value): Ditto.
7119 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7120 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7121 (py_print_frame): Ditto.
7122 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7123 New arg extlang. Update to use enum ext_lang_bt_status.
7125 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7126 finish_python_initialization. Replace with call to
7127 finish_ext_lang_initialization.
7129 * typeprint.c (do_free_global_table): Update to call
7130 free_ext_lang_type_printers.
7131 (create_global_typedef_table): Update to call
7132 start_ext_lang_type_printers.
7133 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7134 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7135 (type_print_options): Change type of global_printers from "void *"
7136 to "struct ext_lang_type_printers *".
7138 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7139 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7140 (gdbpy_preserve_values): Renamed from preserve_python_values.
7142 (!HAVE_PYTHON, preserve_python_values): Delete.
7144 * utils.c (quit_flag): Delete, moved to extension.c.
7145 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7148 * eval.c: Delete #include "python/python.h".
7149 * main.c: Delete #include "python/python.h".
7151 * defs.h: Update comment.
7153 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7157 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7159 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7162 2014-02-05 Yao Qi <yao@codesourcery.com>
7164 * remote.c (remote_pass_signals): Remove local 'buf' and use
7166 (remote_program_signals): Likewise.
7168 2014-02-05 Yao Qi <yao@codesourcery.com>
7170 * ctf.c: Include "inferior.h" and "gdbthread.h".
7171 (CTF_PID): A new macro.
7172 (ctf_open): Call inferior_appeared and add_thread_silent.
7173 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7174 (ctf_thread_alive): New function.
7175 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7177 2014-02-05 Yao Qi <yao@codesourcery.com>
7181 2013-05-24 Yao Qi <yao@codesourcery.com>
7183 * tracepoint.c (TFILE_PID): Remove.
7184 (tfile_open): Don't add thread and inferior.
7185 (tfile_close): Don't set 'inferior_ptid'. Don't call
7186 exit_inferior_silent.
7187 (tfile_thread_alive): Remove.
7188 (init_tfile_ops): Don't set field 'to_thread_alive' of
7191 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7193 * remote.c (remote_start_remote): Call remote_check_symbols even
7194 if only symbol-file (not file) has been given.
7196 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7198 * gdbarch.sh (skip_entrypoint): New callback.
7199 * gdbarch.c, gdbarch.h: Regenerate.
7200 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7201 * infrun.c (fill_in_stop_func): Likewise.
7202 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7203 (ppc_elfv2_elf_make_msymbol_special): New function.
7204 (ppc_elfv2_skip_entrypoint): Likewise.
7205 (ppc_linux_init_abi): Install them for ELFv2.
7207 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7209 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7210 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7211 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7212 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7213 structures returned in GPRs.
7215 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7217 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7218 offset to the stack parameter list for the ELFv2 ABI.
7220 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7222 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7223 set_gdbarch_convert_from_func_ptr_addr and
7224 set_gdbarch_elf_make_msymbol_special for ELFv1.
7225 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7226 function descriptors on ELFv1.
7227 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7228 set up r12 at function entry.
7230 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7232 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7233 (struct gdbarch_tdep): New member elf_abi.
7235 * rs6000-tdep.c: Include "elf/ppc64.h".
7236 (rs6000_gdbarch_init): Detect ELF ABI version.
7238 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7240 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7241 within a register pair holding a DFP 128-bit value on little-endian.
7242 (ppc64_sysv_abi_return_value_base): Likewise.
7243 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7244 (dfp_pseudo_register_write): Likewise.
7246 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7248 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7249 offset on little-endian when passing _Decimal32.
7250 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7252 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7254 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7255 of the overlapped FP register within the VSX register on little-
7257 (efpr_pseudo_register_write): Likewise.
7259 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7261 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7262 offset on little-endian when passing small structures.
7264 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7266 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7267 (struct ppc64_sysv_argpos): New data structure.
7268 (ppc64_sysv_abi_push_float): Remove.
7269 (ppc64_sysv_abi_push_val): New function.
7270 (ppc64_sysv_abi_push_integer): Likewise.
7271 (ppc64_sysv_abi_push_freg): Likewise.
7272 (ppc64_sysv_abi_push_vreg): Likewise.
7273 (ppc64_sysv_abi_push_param): Likewise.
7274 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7275 (ppc64_sysv_abi_return_value_base): New function.
7276 (ppc64_sysv_abi_return_value): Refactor to use it.
7278 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7280 * NEWS: Document new target powerpc64le-*-linux*.
7282 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7284 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7285 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7287 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7288 register set used in ELF core dumps. Add floating-point register set.
7290 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7292 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7293 dwarf2_to_gdb[] table using symbolic constants. Adjust
7294 penultimate entry from number representing the PC register
7295 to symbolic constant representing the MDR register. Add
7296 constant for the PC register to the end of the table.
7298 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7300 * bsd-kvm.c: Include <sys/param.h>
7302 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7304 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7306 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7308 * ada-lang.h (clear_ada_sym_cache): Delete.
7310 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7312 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7314 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7316 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7317 the sigreturn register save area only if the syscall is
7320 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7322 * valops.c (value_slice): Minor reformatting.
7324 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7326 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7328 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7330 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7332 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7333 (ada_ignore_descriptive_types_p): New static global.
7334 (find_parallel_type_by_descriptive_type): Return immediately
7335 if ada_ignore_descriptive_types_p is set.
7336 (_initialize_ada_language): Register new commands "maintenance
7337 set ada", "maintenance show ada", "maintenance set ada
7338 ignore-descriptive-types" and "maintenance show ada
7339 ignore-descriptive-types".
7340 * NEWS: Add entry for new "maint ada set/show
7341 ignore-descriptive-types" commands.
7343 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7345 * record-btrace.c (record_btrace_close): Call btrace_teardown
7348 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7350 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7353 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7355 * ada-typeprint (type_is_full_subrange_of_target_type):
7357 (print_range): Add parameter bounds_prefered_p. If not set,
7358 try printing range types using the name of their base type.
7359 (print_range_type): Add parameter bounds_prefered_p.
7360 Use it in call to print_range.
7361 (print_array_type, ada_print_type): Update calls to print_range
7362 and print_range_type.
7364 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7366 * ada-typeprint.c (print_array_type, print_choices, print_range)
7367 (print_range_bound, print_dynamic_range_bound, print_range_type):
7370 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7372 * ada-typeprint.c (print_range): Add missing empty line
7373 after local declaration.
7375 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7377 * ada-valprint.c (print_optional_low_bound): Get index_type's
7378 target type for as long as it is a TYPE_CODE_RANGE.
7380 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7382 * procfs.c (procfs_make_note_section): Remove assertion and
7385 2014-01-24 Yao Qi <yao@codesourcery.com>
7387 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7388 * corelow.c (get_core_siginfo): Likewise.
7390 2014-01-24 Yao Qi <yao@codesourcery.com>
7392 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7393 ULONGEST. Don't check 'len' is negative.
7394 (remote_write_bytes): Change type of 'len' to ULONGEST.
7396 2014-01-23 Tom Tromey <tromey@redhat.com>
7399 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7400 Handle exception from frame.block.
7401 (FrameVars.fetch_frame_locals): Likewise.
7403 2014-01-23 Tom Tromey <tromey@redhat.com>
7406 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7407 on a NULL pointer. Move "goto error" to correct place.
7409 2014-01-23 Tom Tromey <tromey@redhat.com>
7412 * python/py-framefilter.c (apply_frame_filter): Call
7413 ensure_python_env after computing gdbarch.
7415 2014-01-23 Yao Qi <yao@codesourcery.com>
7417 * target.c (raw_memory_xfer_partial): Change argument type
7418 from void * to gdb_byte *.
7419 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7421 2014-01-22 Doug Evans <dje@google.com>
7423 New gdbserver option --debug-format=timestamp.
7426 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7428 * syscalls/s390x-linux.xml: New file.
7429 * syscalls/s390-linux.xml: New file.
7430 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7431 (XML_SYSCALL_FILENAME_S390X): Likewise.
7432 (op_svc): New enum value for SVC opcode.
7433 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7434 (s390_linux_get_syscall_number): New function.
7435 (s390_gdbarch_init): Register '*get_syscall_number' and the
7436 syscall xml file name.
7437 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7438 "s390-linux.xml" and "s390x-linux.xml".
7439 * NEWS: Announce new feature.
7441 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7443 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7445 2014-01-22 Pedro Alves <palves@redhat.com>
7447 * xtensa-config.c: Include defs.h.
7449 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7451 * common/common-utils.h: Add "ARI:" comment beside __func__
7454 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7456 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7457 documentation a bit.
7459 2014-01-21 Roland McGrath <mcgrathr@google.com>
7461 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7462 * configure: Regenerate.
7463 * aclocal.m4: Regenerate.
7464 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7465 New substituted variables.
7466 (install-strip): New target.
7467 (INSTALL_SCRIPT): New substituted variable.
7468 (FLAGS_TO_PASS): Add it.
7469 (install-only): Use $(INSTALL_SCRIPT) rather than
7470 $(INSTALL_PROGRAM) for gcore.
7472 2014-01-20 Tom Tromey <tromey@redhat.com>
7474 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7477 2014-01-20 Tom Tromey <tromey@redhat.com>
7479 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7480 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7481 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7482 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7483 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7484 (struct cmd_list_element) <flags>: Remove.
7485 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7486 doc_allocated>: New fields.
7487 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7489 * maint.c (maintenance_do_deprecate): Update.
7490 * top.c (execute_command): Update.
7492 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7494 * xtensa-linux-nat.c: Include asm/ptrace.h.
7496 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7498 * Makefile.in (SFILES): Add d-support.c.
7499 (COMMON_OBS): Add d-support.o.
7500 * d-lang.h (d_parse_symbol): Add comment, now defined in
7502 * d-lang.c (parse_call_convention)
7503 (parse_attributes, parse_function_types)
7504 (parse_function_args, parse_type, parse_identifier)
7505 (call_convention_p, d_parse_symbol): Move functions to ...
7506 * d-support.c: ... New file.
7508 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7510 * d-lang.h (d_parse_symbol): Add declaration.
7511 * d-lang.c (extract_identifiers)
7512 (extract_type_info): Remove functions.
7513 (parse_call_convention, parse_attributes)
7514 (parse_function_types, parse_function_args)
7515 (parse_type, parse_identifier, call_convention_p)
7516 (d_parse_symbol): New functions.
7517 (d_demangle): Use d_parse_symbol to demangle D symbols.
7519 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7521 * d-lang.h (struct builtin_d_type): New data type.
7522 (builtin_d_type): Add declaration.
7523 * d-lang.c (d_language_arch_info, build_d_types)
7524 (builtin_d_type): New functions.
7525 (enum d_primitive_types): New data type.
7526 (d_language_defn): Change c_language_arch_info to
7527 d_language_arch_info.
7528 (d_type_data): New static variable.
7529 (_initialize_d_language): Initialize d_type_data.
7531 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7533 * d-lang.h (d_main_name): Add declaration.
7534 * d-lang.c (d_main_name): New function.
7535 * symtab.c (find_main_name): Add call to d_main_name.
7537 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7539 * d-lang.c (d_language_defn): Change macro_expansion_c to
7542 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7544 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7546 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7548 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7549 gdb_exception" declaration.
7550 * remote.c (getpkt_or_notif_sane): Likewise.
7552 2014-01-17 Doug Evans <dje@google.com>
7554 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7555 function, contents of dirnames_to_char_ptr_vec_append moved here.
7556 (delim_string_to_char_ptr_vec): New function.
7557 (dirnames_to_char_ptr_vec_append): Rewrite.
7558 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7560 2014-01-17 Doug Evans <dje@google.com>
7562 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7564 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7565 #include "common-utils.h".
7566 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7567 * common/vec.h (VEC_ASSERT_PASS): Update.
7568 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
7569 (MACH_CHECK_ERROR): Update.
7571 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
7573 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
7575 * gdbarch.h: Regenerate.
7577 2014-01-16 Tom Tromey <tromey@redhat.com>
7579 * value.c (struct value) <regnum>: Move earlier.
7581 2014-01-16 Tom Tromey <tromey@redhat.com>
7583 * remote.c (extended_remote_create_inferior): Rename from
7584 extended_remote_create_inferior_1. Add "ops" argument. Remove
7587 2014-01-16 Pedro Alves <palves@redhat.com>
7589 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
7590 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
7593 2014-01-16 Doug Evans <dje@google.com>
7595 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
7597 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7599 * btrace.h (btrace_thread_flag): New.
7600 (struct btrace_thread_info) <flags>: New.
7601 * record-btrace.c (record_btrace_resume_thread)
7602 (record_btrace_find_thread_to_move, btrace_step_no_history)
7603 (btrace_step_stopped, record_btrace_start_replaying)
7604 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
7605 (record_btrace_find_resume_thread): New.
7606 (record_btrace_resume, record_btrace_wait): Extend.
7607 (record_btrace_can_execute_reverse): New.
7608 (record_btrace_open): Fail in non-stop mode.
7609 (record_btrace_set_replay): Split into this, ...
7610 (record_btrace_stop_replaying): ... this, ...
7611 (record_btrace_clear_histories): ... and this.
7612 (init_record_btrace_ops): Init to_can_execute_reverse.
7613 * NEWS: Announce it.
7615 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7617 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
7618 (forward_target_decr_pc_after_break)
7619 (target_decr_pc_after_break): New.
7620 * target.c (forward_target_decr_pc_after_break)
7621 (target_decr_pc_after_break): New.
7622 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
7623 instead of gdbarch_decr_pc_after_break.
7624 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7625 instead of gdbarch_decr_pc_after_break.
7626 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
7627 instead of gdbarch_decr_pc_after_break.
7628 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
7629 instead of gdbarch_decr_pc_after_break.
7630 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
7631 instead of gdbarch_decr_pc_after_break.
7632 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
7633 instead of gdbarch_decr_pc_after_break.
7635 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7637 * btrace.c: Include regcache.h.
7638 (btrace_add_pc): New.
7639 (btrace_enable): Call btrace_add_pc.
7640 (btrace_is_empty): New.
7641 * btrace.h (btrace_is_empty): New.
7642 * record-btrace.c (require_btrace, record_btrace_info): Call
7645 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7647 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
7648 Support delta reads.
7649 (linux_disable_btrace): Change return type.
7650 * common/linux-btrace.h (linux_read_btrace): Change parameters
7651 and return type to allow error reporting. Update users.
7652 (linux_disable_btrace): Change return type. Update users.
7653 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
7655 (btrace_error): New.
7656 (btrace_block) <begin>: Comment on BEGIN == 0.
7657 * btrace.c (btrace_compute_ftrace): Start from the end of
7659 (btrace_stitch_trace, btrace_clear_history): New.
7660 (btrace_fetch): Read delta trace, return if replaying.
7661 (btrace_clear): Move clear history code to btrace_clear_history.
7662 (parse_xml_btrace): Throw an error if parsing failed.
7663 * target.h (struct target_ops) <to_read_btrace>: Change parameters
7664 and return type to allow error reporting.
7665 (target_read_btrace): Change parameters and return type to allow
7667 * target.c (target_read_btrace): Update.
7668 * remote.c (remote_read_btrace): Support delta reads. Pass
7670 * NEWS: Announce it.
7672 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7674 * record.h (record_btrace_frame_unwind)
7675 (record_btrace_tailcall_frame_unwind): New declarations.
7676 * dwarf2-frame: Include record.h
7677 (dwarf2_frame_cfa): Throw an error for btrace frames.
7678 * record-btrace.c: Include hashtab.h.
7679 (btrace_get_bfun_name): New.
7680 (btrace_call_history): Call btrace_get_bfun_name.
7681 (struct btrace_frame_cache): New.
7683 (bfcache_hash, bfcache_eq, bfcache_new): New.
7684 (btrace_get_frame_function): New.
7685 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
7686 (record_btrace_frame_this_id): Compute own id.
7687 (record_btrace_frame_prev_register): Provide PC, throw_error
7688 for all other registers.
7689 (record_btrace_frame_sniffer): Detect btrace frames.
7690 (record_btrace_tailcall_frame_sniffer): New.
7691 (record_btrace_frame_dealloc_cache): New.
7692 (record_btrace_frame_unwind): Add new functions.
7693 (record_btrace_tailcall_frame_unwind): New.
7694 (_initialize_record_btrace): Allocate cache.
7695 * btrace.c (btrace_clear): Call reinit_frame_cache.
7696 * NEWS: Announce it.
7698 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7700 * record-btrace.c (record_btrace_set_replay)
7701 (record_btrace_goto_begin, record_btrace_goto_end)
7702 (record_btrace_goto): New.
7703 (init_record_btrace_ops): Initialize them.
7704 * NEWS: Announce it.
7706 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7708 * record-btrace.c (record_btrace_find_new_threads)
7709 (record_btrace_thread_alive): New.
7710 (init_record_btrace_ops): Initialize to_find_new_threads and
7713 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7715 * record-btrace.c (record_btrace_resume): New.
7716 (record_btrace_wait): New.
7717 (init_record_btrace_ops): Initialize to_wait and to_resume.
7719 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7721 * record-btrace.c (record_btrace_xfer_partial)
7722 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
7723 (record_btrace_allow_memory_access): New.
7724 (init_record_btrace_ops): Initialize new methods.
7725 * target.c (raw_memory_xfer_partial): Bail out if target reports
7726 that this memory is not available.
7728 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7730 * target.h (target_ops) <to_insert_breakpoint>
7731 <to_remove_breakpoint>: Add target_ops parameter.
7732 (forward_target_insert_breakpoint): New.
7733 (forward_target_remove_breakpoint): New.
7734 (memory_remove_breakpoint, memory_insert_breakpoint):
7735 Add target_ops parameter.
7736 * target.c (target_insert_breakpoint): Split into this and ...
7737 (forward_target_insert_breakpoint): ... this.
7738 (target_remove_breakpoint): Split into this and ...
7739 (forward_target_remove_breakpoint): ... this.
7740 (debug_to_insert_breakpoint): Add target_ops parameter.
7741 Call forward_target_insert_breakpoint.
7742 (debug_to_remove_breakpoint): Add target_ops parameter.
7743 Call forward_target_remove_breakpoint.
7744 (update_current_target): Do not inherit or default to_insert_breakpoint
7745 and to_remove_breakpoint.
7746 * corelow.c (ignore): Add target_ops parameter.
7747 * exec.c (ignore): Add target_ops parameter.
7748 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
7749 Add target_ops parameter.
7750 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
7751 Add target_ops parameter.
7752 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
7753 Add target_ops parameter.
7754 * record-full.c (record_full_beneath_to_insert_breakpoint)
7755 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
7756 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
7757 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
7758 (record_full_core_remove_breakpoint): Add target_ops parameter.
7760 (record_full_beneath_to_insert_breakpoint_ops)
7761 (record_full_beneath_to_remove_breakpoint_ops)
7762 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
7763 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
7764 tmp_to_remove_breakpoint_ops,
7765 record_full_beneath_to_insert_breakpoint_ops, and
7766 record_full_beneath_to_remove_breakpoint_ops.
7767 * remote-m32r-sdi.c (m32r_insert_breakpoint)
7768 (m32r_remove_breakpoint): Add target_ops parameter.
7769 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
7770 Add target_ops parameter.
7771 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
7772 Add target_ops parameter.
7774 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7775 Markus Metzger <markus.t.metzger@intel.com>
7777 * record-btrace.c: Include frame-unwind.h.
7778 (record_btrace_frame_unwind_stop_reason)
7779 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
7780 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
7782 (init_record_btrace_ops): Install it.
7784 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7786 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
7789 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7791 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
7794 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7796 * frame-unwind.c: Include target.h.
7797 (frame_unwind_try_unwinder): New function with code from ...
7798 (frame_unwind_find_by_frame): ... here. New variable
7799 unwinder_from_target, call also target_get_unwinder)
7800 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
7801 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
7802 * target.h (struct target_ops): New fields to_get_unwinder and
7803 to_get_tailcall_unwinder.
7804 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
7806 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7808 * record-btrace.c (record_btrace_fetch_registers)
7809 (record_btrace_store_registers)
7810 (record_btrace_to_prepare_to_store): New.
7811 (init_record_btrace_ops): Add the above.
7813 2014-01-16 Tom Tromey <tromey@redhat.com>
7815 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
7816 * target.h (struct target_ops) <to_prepare_to_store>: Add
7818 (target_prepare_to_store): Add argument.
7819 * target.c (debug_to_prepare_to_store): Add argument.
7820 (update_current_target): Update.
7821 * remote.c (remote_prepare_to_store): Add 'self' argument.
7822 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
7823 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
7824 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
7825 * record-full.c (record_full_core_prepare_to_store): Add 'self'
7827 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
7828 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
7829 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
7830 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
7831 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
7833 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7835 * btrace.h (replay) <replay>: New.
7836 (btrace_is_replaying): New.
7837 * btrace.c (btrace_clear): Free replay iterator.
7838 (btrace_is_replaying): New.
7839 * record-btrace.c (record_btrace_is_replaying): New.
7840 (record_btrace_info): Print insn number if replaying.
7841 (record_btrace_insn_history): Start at replay position.
7842 (record_btrace_call_history): Start at replay position.
7843 (init_record_btrace_ops): Init to_record_is_replaying.
7845 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7847 * record-btrace.c (record_btrace_insn_history_range): Include
7849 (record_btrace_insn_history_from): Adjust range.
7850 (record_btrace_call_history_range): Include
7852 (record_btrace_call_history_from): Adjust range.
7853 * NEWS: Announce changes.
7855 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7857 * record.h (enum record_print_flag)
7858 <record_print_indent_calls>: New.
7859 * record.c (get_call_history_modifiers): Recognize /c modifier.
7860 (_initialize_record): Document /c modifier.
7861 * record-btrace.c (btrace_call_history): Add btinfo parameter.
7862 Reorder fields. Optionally indent the function name. Update
7864 * NEWS: Announce changes.
7866 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7868 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
7870 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7872 * btrace.c (ftrace_new_function): Start counting at one.
7873 * record-btrace.c (record_btrace_info): Adjust number of calls
7875 * NEWS: Announce it.
7877 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7879 * record-btrace.c (btrace_call_history_insn_range): Print
7880 insn range as [begin, end].
7882 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7884 * btrace.h (struct btrace_func_link): New.
7885 (enum btrace_function_flag): New.
7886 (struct btrace_inst): Rename to ...
7887 (struct btrace_insn): ...this. Update all users.
7888 (struct btrace_func) <ibegin, iend>: Remove.
7889 (struct btrace_func_link): New.
7890 (struct btrace_func): Rename to ...
7891 (struct btrace_function): ...this. Update all users.
7892 (struct btrace_function) <segment, flow, up, insn, insn_offset)
7893 (number, level, flags>: New.
7894 (struct btrace_insn_iterator): Rename to ...
7895 (struct btrace_insn_history): ...this.
7897 (struct btrace_insn_iterator, btrace_call_iterator): New.
7898 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
7899 (struct btrace_target_info) <begin, end, level>
7900 <insn_history, call_history>: New.
7901 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7902 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7903 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7904 (btrace_call_number, btrace_call_begin, btrace_call_end)
7905 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7906 (btrace_find_function_by_number, btrace_set_insn_history)
7907 (btrace_set_call_history): New.
7908 * btrace.c (btrace_init_insn_iterator)
7909 (btrace_init_func_iterator, compute_itrace): Remove.
7910 (ftrace_print_function_name, ftrace_print_filename)
7911 (ftrace_skip_file): Change
7913 (ftrace_init_func): Remove.
7914 (ftrace_debug): Use new btrace_function fields.
7915 (ftrace_function_switched): Also consider gaining and
7916 losing symbol information).
7917 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
7918 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
7919 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
7921 (ftrace_new_function): Move. Remove debug print.
7922 (ftrace_update_lines, ftrace_update_insns): New.
7923 (ftrace_update_function): Check for call, ret, and jump.
7924 (compute_ftrace): Renamed to ...
7925 (btrace_compute_ftrace): ...this. Rewritten to compute call
7927 (btrace_fetch, btrace_clear): Updated.
7928 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
7929 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
7930 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
7931 (btrace_call_number, btrace_call_begin, btrace_call_end)
7932 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
7933 (btrace_find_function_by_number, btrace_set_insn_history)
7934 (btrace_set_call_history): New.
7935 * record-btrace.c (require_btrace): Use new btrace thread
7937 (record_btrace_info, btrace_insn_history)
7938 (record_btrace_insn_history, record_btrace_insn_history_range):
7939 Use new btrace thread info fields and new iterator.
7940 (btrace_func_history_src_line): Rename to ...
7941 (btrace_call_history_src_line): ...this. Use new btrace
7943 (btrace_func_history): Rename to ...
7944 (btrace_call_history): ...this. Use new btrace thread info
7945 fields and new iterator.
7946 (record_btrace_call_history, record_btrace_call_history_range):
7947 Use new btrace thread info fields and new iterator.
7949 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7951 * frame.h (frame_id_build_unavailable_stack_special): New.
7952 * frame.c (frame_id_build_unavailable_stack_special): New.
7954 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7956 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
7957 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
7958 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
7960 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
7961 (i386_insn_is_jump, i386_jmp_p): New.
7962 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
7963 insn_is_jump to gdbarch.
7964 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
7965 * gdbarch.h: Regenerated.
7966 * gdbarch.c: Regenerated.
7967 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
7968 (default_insn_is_jump): New.
7969 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
7970 (default_insn_is_jump): New.
7972 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7974 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
7976 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
7977 (btrace_read_type) <btrace_read_new>: Change to ...
7978 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
7980 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
7982 * common/linux-btrace.c (linux_read_btrace): Free trace from
7985 2014-01-15 Doug Evans <dje@google.com>
7987 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
7990 2014-01-15 Tom Tromey <tromey@redhat.com>
7992 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
7993 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
7994 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
7995 (set_objfile_main_name): New function.
7996 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
7997 language_of_main>: New fields.
7998 (set_objfile_main_name): Declare.
7999 * symtab.c (find_main_name): Loop over objfiles to find the main
8001 (set_main_name): Now static.
8002 (get_main_info): Add comment.
8003 * symtab.h (set_main_name): Don't declare.
8005 2014-01-15 Tom Tromey <tromey@redhat.com>
8007 * symtab.c (main_progspace_key): New global.
8008 (struct main_info): New.
8009 (name_of_main, language_of_main): Remove.
8010 (get_main_info, main_info_cleanup): New function.
8011 (set_main_name, main_name, main_language): Use get_main_info.
8012 (_initialize_symtab): Initialize main_progspace_key.
8014 2014-01-15 Tom Tromey <tromey@redhat.com>
8016 * dbxread.c (process_one_symbol): Update.
8017 * dwarf2read.c (read_partial_die): Update.
8018 * symfile.c (set_initial_language): Call main_language.
8019 * symtab.c (language_of_main): Now static.
8020 (set_main_name): Add 'lang' parameter.
8021 (find_main_name): Update.
8022 (main_language): New function.
8023 (symtab_observer_executable_changed): Update.
8024 * symtab.h (set_main_name): Update.
8025 (language_of_main): Remove.
8026 (main_language): Declare.
8028 2014-01-15 Tom Tromey <tromey@redhat.com>
8030 * symfile.c (init_entry_point_info): Use new "initialized" field.
8032 * objfiles.h (struct entry_point) <initialized>: New field.
8033 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8034 (struct objfile) <ei>: ...here. Remove.
8035 * objfiles.c (entry_point_address_query): Update.
8037 2014-01-15 Tom Tromey <tromey@redhat.com>
8039 * objfiles.c (entry_point_address_query): Relocate entry point
8041 (objfile_relocate1): Do not relocate entry point address.
8042 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8043 <the_bfd_section_index>: New field.
8044 * symfile.c (init_entry_point_info): Find the entry point's
8047 2014-01-15 Tom Tromey <tromey@redhat.com>
8049 * solib-frv.c (enable_break): Use entry_point_address_query.
8051 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8053 * NEWS: Add note on improved process record-replay on
8054 arm*-linux* targets.
8056 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8058 * arm-tdep.c (enum arm_record_result): New enum.
8059 (arm_record_unsupported_insn): New function.
8060 (arm_record_coproc_data_proc): Removed.
8061 (thumb2_record_ld_st_multiple): New function.
8062 (thumb2_record_ld_st_dual_ex_tbb): New function.
8063 (thumb2_record_data_proc_sreg_mimm): New function.
8064 (thumb2_record_ps_dest_generic): New function.
8065 (thumb2_record_branch_misc_cntrl): New function.
8066 (thumb2_record_str_single_data): New function.
8067 (thumb2_record_ld_mem_hints): New function.
8068 (thumb2_record_ld_word): New function.
8069 (thumb2_record_lmul_lmla_div): New function.
8070 (thumb2_record_decode_insn_handler): New function.
8071 (decode_insn): Add thumb32 instruction handlers.
8073 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8075 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8076 (struct arm_linux_record_tdep): Declare.
8077 (arm_canonicalize_syscall): New function.
8078 (arm_all_but_pc_registers_record): New function.
8079 (arm_linux_syscall_record): New function.
8080 (arm_linux_init_abi): Add syscall recording constructs.
8081 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8082 decoding. (arm_record_coproc_data_proc): Update arm syscall
8084 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8085 <arm_syscall_record>: New field.
8086 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8089 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8091 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8092 register for push instruction recording.
8094 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8096 * arm-tdep.c (thumb_record_misc): Update to correct logical
8097 error while recording ldm, ldmia and pop instructions.
8099 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8101 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8103 2014-01-15 Pedro Alves <palves@redhat.com>
8105 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8106 (go32_resume, go32_fetch_registers, store_register)
8107 (go32_store_registers, go32_prepare_to_store)
8108 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8109 (go32_create_inferior, go32_can_run, go32_terminal_init)
8110 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8113 2014-01-15 Tom Tromey <tromey@redhat.com>
8115 * target.h (async_callback_ftype): New typedef.
8116 (struct target_ops) <to_async>: Use it.
8118 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8120 * python/py-value.c (get_field_type): Remove unnecessary curly
8121 braces for single-statement if block.
8123 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8125 * python/py-type.c (convert_field): Add missing empty line
8128 2014-01-14 Doug Evans <dje@google.com>
8130 * symfile.h (expand_symtabs_matching): Renamed from
8131 expand_partial_symbol_names. Update prototype.
8132 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8133 * symfile.c (expand_symtabs_matching): Renamed from
8134 expand_partial_symbol_names. New args file_matcher, kind.
8135 Rename arg fun to symbol_matcher.
8136 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8137 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8138 ada_expand_partial_symbol_name.
8139 (ada_make_symbol_completion_list): Update to call
8140 expand_symtabs_matching.
8141 (ada_add_global_exceptions): Call expand_symtabs_matching.
8142 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8143 call map_symbol_filenames.
8144 * symtab.c (sources_info): Update to call map_symbol_filenames.
8145 (search_symbols): Call expand_symtabs_matching.
8146 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8147 (default_make_symbol_completion_list_break_on): Update to call
8148 expand_symtabs_matching.
8149 (make_source_files_completion_list): Update to call
8150 map_symbol_filenames.
8152 2014-01-14 Doug Evans <dje@google.com>
8154 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8155 (expand_symtabs_symbol_matcher_ftype): New typedef.
8156 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8157 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8158 * symfile.c (expand_partial_symbol_names): Update to use
8159 expand_symtabs_symbol_matcher_ftype.
8160 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8161 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8162 Arg name_matcher renamed to symbol_matcher.
8163 * psymtab.c (recursively_search_psymtabs): Update to use
8164 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8166 (expand_symtabs_matching_via_partial): Update to use
8167 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8168 Arg name_matcher renamed to symbol_matcher.
8170 2014-01-14 Doug Evans <dje@google.com>
8172 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8173 (map_partial_symbol_filenames): Ditto.
8174 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8175 (map_partial_symbol_filenames): Ditto.
8176 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8177 (map_partial_symbol_filenames): Ditto.
8178 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8179 (map_partial_symbol_filenames): Ditto.
8180 * symtab.c: Delete #include "psymtab.h".
8182 2014-01-14 Pedro Alves <palves@redhat.com>
8183 Tom Tromey <tromey@redhat.com>
8185 * infrun.c (use_displaced_stepping): Use find_record_target
8186 instead of RECORD_IS_USED.
8187 (adjust_pc_after_break): Use record_full_is_used instead of
8189 * record-btrace.c (record_btrace_open): Call record_preopen
8190 instead of checking RECORD_IS_USED.
8191 * record-full.c (record_full_shortname)
8192 (record_full_core_shortname): New globals.
8193 (record_full_is_used): New function.
8194 (find_full_open): Call record_preopen instead of checking
8196 (init_record_full_ops): Set the target's shortname to
8197 record_full_shortname.
8198 (init_record_full_core_ops): Set the target's shortname to
8199 record_full_core_shortname.
8200 * record-full.h (record_full_is_used): Declare.
8201 * record.c (find_record_target): Make extern.
8202 (record_preopen): New function.
8203 * record.h (RECORD_IS_USED): Delete macro.
8204 (find_record_target, record_preopen): Declare functions.
8206 2014-01-14 Yao Qi <yao@codesourcery.com>
8208 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8209 'len''s type to ULONGEST.
8210 (core_xfer_shared_libraries_aix): Likewise.
8211 * gdbarch.c, gdbarch.h: Regenerated.
8212 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8213 Change type of 'len' to ULONGEST.
8214 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8215 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8217 2014-01-14 Yao Qi <yao@codesourcery.com>
8219 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8220 type of 'len' to ULONGEST.
8221 (linux_xfer_osdata_processgroups): Likewise.
8222 (linux_xfer_osdata_threads): Likewise.
8223 (linux_xfer_osdata_fds): Likewise.
8224 (linux_xfer_osdata_isockets): Likewise.
8225 (linux_xfer_osdata_shm): Likewise.
8226 (linux_xfer_osdata_sem): Likewise.
8227 (linux_xfer_osdata_msg): Likewise.
8228 (linux_common_xfer_osdata): Likewise.
8229 (struct osdata_type) <getter>: Likewise.
8230 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8233 2014-01-14 Yao Qi <yao@codesourcery.com>
8235 * target.h (target_xfer_partial_ftype): Update.
8236 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8238 * aix-thread.c (aix_thread_xfer_partial): Change type of
8239 argument 'len' to ULONGEST.
8240 * auxv.c (procfs_xfer_auxv): Likewise.
8241 (ld_so_xfer_auxv): Likewise.
8242 (memory_xfer_auxv): Likewise.
8243 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8244 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8245 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8246 * corelow.c (core_xfer_partial): Likewise.
8247 * ctf.c (ctf_xfer_partial): Likewise.
8248 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8250 (darwin_read_dyld_info): Likewise.
8251 (darwin_xfer_partial): Likewise.
8252 * exec.c (section_table_xfer_memory_partial): Likewise.
8253 (exec_xfer_partial): Likewise.
8254 * exec.h (section_table_xfer_memory_partial): Update
8256 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8257 instead of plongest.
8258 (gnu_xfer_partial): Likewise.
8259 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8260 (ia64_hpux_xfer_solib_got): Likewise.
8261 (ia64_hpux_xfer_partial): Likewise.
8262 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8263 * inf-ptrace.c (inf_ptrace_xfer_partial):
8264 * inf-ttrace.c (inf_ttrace_xfer_partial):
8265 * linux-nat.c (linux_xfer_siginfo): Likewise.
8266 (linux_nat_xfer_partial): Likewise.
8267 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8268 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8269 * monitor.c (monitor_xfer_memory): Likewise.
8270 (monitor_xfer_partial): Likewise.
8271 * procfs.c (procfs_xfer_partial): Likewise.
8272 * record-full.c (record_full_xfer_partial): Likewise.
8273 (record_full_core_xfer_partial): Likewise.
8274 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8275 instead of plongest.
8276 (gdbsim_xfer_partial): Likewise.
8277 * remote.c (remote_xfer_partial): Likewise.
8278 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8279 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8281 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8282 (rs6000_xfer_shared_libraries): Likewise.
8283 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8284 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8285 (sparc_xfer_partial): Likewise.
8286 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8287 (spu_xfer_partial): Likewise.
8288 * spu-multiarch.c (spu_xfer_partial): Likewise.
8289 * target.c (target_read_live_memory): Likewise.
8290 (memory_xfer_live_readonly_partial): Likewise.
8291 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8292 (target_xfer_partial, default_xfer_partial): Likewise.
8293 (current_xfer_partial): Likewise.
8294 * tracepoint.c (tfile_xfer_partial): Likewise.
8295 * windows-nat.c (windows_xfer_memory): Likewise. Call
8296 pulongest instead of plongest.
8297 (windows_xfer_partial): Likewise.
8298 (windows_xfer_shared_libraries): Likewise.
8300 2014-01-14 Yao Qi <yao@codesourcery.com>
8302 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8303 target_xfer_partial_ftype.
8305 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8309 * valops.c (value_struct_elt_bitpos): New function
8310 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8311 object to 'None' if the field name is an empty string ("").
8312 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8313 attribute to look for a field when 'name' is 'None'.
8314 (get_field_type): New function
8316 2014-01-13 Doug Evans <dje@google.com>
8319 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8320 (try_open_dwop_file): Ditto.
8321 * gdb_bfd.c: #include "vec.h".
8322 (bfdp): New typedef.
8323 (struct gdb_bfd_data): New member included_bfds.
8324 (gdb_bfd_unref): Unref all included bfds.
8325 (gdb_bfd_record_inclusion): New function.
8326 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8328 2014-01-13 Tom Tromey <tromey@redhat.com>
8330 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8332 2014-01-13 Tom Tromey <tromey@redhat.com>
8334 * defs.h (use_windows): Remove.
8335 * gdb.c (main): Update.
8336 * main.c (captured_main, gdb_main): Update.
8337 * main.h (struct captured_main_args) <use_windows>: Remove.
8338 * top.c (use_windows): Remove.
8340 2014-01-13 Tom Tromey <tromey@redhat.com>
8342 * defs.h (deprecated_flush_hook): Remove.
8344 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8347 * linux-thread-db.c (try_thread_db_load): Add parameter
8348 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8349 (try_thread_db_load_from_pdir_1): Move it there from here.
8350 (try_thread_db_load_from_sdir): Update caller.
8351 (try_thread_db_load_from_dir): Move it there from here.
8353 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8355 * regformats/regdat.sh: Always rewrite the register file.
8357 2014-01-13 Pedro Alves <palves@redhat.com>
8359 * Makefile.in (CHECK_HEADERS): New variable.
8360 (check-headers:): New rule.
8362 2014-01-13 Tom Tromey <tromey@redhat.com>
8364 * cli/cli-setshow.c (do_set_command): Update.
8365 * defs.h (deprecated_set_hook): Remove.
8366 * top.c (deprecated_set_hook): Remove.
8368 2014-01-13 Pedro Alves <palves@redhat.com>
8370 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8371 the tracepoint if the PC is a pseudo-register.
8373 2014-01-13 Tom Tromey <tromey@redhat.com>
8375 * defs.h (XCALLOC): Remove.
8376 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8377 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8378 * dwarf2loc.c (allocate_piece_closure): Likewise.
8379 * elfread.c (elf_symfile_segments): Likewise.
8380 (elf_symfile_segments): Likewise.
8381 * gdbtypes.c (copy_type_recursive): Likewise.
8382 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8383 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8384 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8386 * mt-tdep.c (mt_gdbarch_init): Likewise.
8387 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8389 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8390 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8391 * registry.c (registry_alloc_data): Likewise.
8392 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8393 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8394 * serial.c (serial_fdopen_ops): Likewise.
8395 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8397 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8398 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8401 2014-01-13 Tom Tromey <tromey@redhat.com>
8403 * defs.h (XMALLOC): Remove.
8404 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8405 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8406 * cli-out.c (struct ui_out *): Likewise.
8407 * cli/cli-dump.c (add_dump_command): Likewise.
8408 (add_dump_command): Likewise.
8409 * complaints.c (get_complaints): Likewise.
8410 (find_complaint): Likewise.
8411 * dwarf2-frame.c (execute_cfa_program): Likewise.
8412 * dwarf2read.c (abbrev_table_read_table): Likewise.
8413 * gdbarch.sh: Likewise.
8414 * gdbarch.c: Rebuild.
8415 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8416 * interps.c (interp_new): Likewise.
8417 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8418 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8419 * mi/mi-console.c (mi_console_file_new): Likewise.
8420 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8421 * mi/mi-out.c (mi_out_new): Likewise.
8422 * mi/mi-parse.c (mi_parse): Likewise.
8423 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8424 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8425 * observer.c (xalloc_observer_list_node): Likewise.
8426 * regcache.c (regcache_xmalloc_1): Likewise.
8427 * reggroups.c (reggroup_new): Likewise.
8428 (_initialize_reggroup): Likewise.
8429 * registry.c (register_data_with_cleanup): Likewise.
8430 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8431 * ser-base.c (serial_ttystate): Likewise.
8432 * ser-mingw.c (make_pipe_state): Likewise.
8433 * ser-pipe.c (pipe_open): Likewise.
8434 * serial.c (serial_open): Likewise.
8435 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8436 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8437 (tui_alloc_win_info): Likewise.
8438 (tui_add_content_elements): Likewise.
8439 * tui/tui-file.c (tui_file_new): Likewise.
8440 * tui/tui-out.c (tui_out_new): Likewise.
8441 * ui-file.c (mem_file_new): Likewise.
8442 * ui-out.c (push_level): Likewise.
8443 (make_cleanup_ui_out_end): Likewise.
8444 (append_header_to_list): Likewise.
8445 (ui_out_new): Likewise.
8446 * user-regs.c (user_reg_add_builtin): Likewise.
8448 2014-01-13 Tom Tromey <tromey@redhat.com>
8450 * defs.h (XZALLOC): Remove.
8451 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8452 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8453 (get_ada_tasks_inferior_data): Likewise.
8454 * auto-load.c (get_auto_load_pspace_data): Likewise.
8455 * auxv.c (get_auxv_inferior_data): Likewise.
8456 * bfd-target.c (target_bfd_reopen): Likewise.
8457 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8458 (deprecated_insert_raw_breakpoint): Likewise.
8459 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8460 * corelow.c (core_open): Likewise.
8461 * darwin-nat.c (darwin_check_new_threads): Likewise.
8462 (darwin_attach_pid): Likewise.
8463 * dummy-frame.c (dummy_frame_push): Likewise.
8464 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8465 * dwarf2loc.c (allocate_piece_closure): Likewise.
8466 * elfread.c (elf_symfile_segments): Likewise.
8467 * eval.c (ptrmath_type_p): Likewise.
8468 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8469 * gdbtypes.c (alloc_type_arch): Likewise.
8470 (alloc_type_instance): Likewise.
8471 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8472 * inf-child.c (inf_child_can_use_agent): Likewise.
8473 * inflow.c (get_inflow_inferior_data): Likewise.
8474 * infrun.c (save_infcall_suspend_state): Likewise.
8475 * jit.c (jit_reader_load): Likewise.
8476 (get_jit_objfile_data): Likewise.
8477 (get_jit_program_space_data): Likewise.
8478 (jit_object_open_impl): Likewise.
8479 (jit_symtab_open_impl): Likewise.
8480 (jit_block_open_impl): Likewise.
8481 (jit_frame_sniffer): Likewise.
8482 * linux-fork.c (add_fork): Likewise.
8483 * maint.c (make_command_stats_cleanup): Likewise.
8484 * objfiles.c (get_objfile_pspace_data): Likewise.
8485 * opencl-lang.c (struct lval_closure): Likewise.
8486 * osdata.c (osdata_start_osdata): Likewise.
8487 * progspace.c (new_address_space): Likewise.
8488 (add_program_space): Likewise.
8489 * remote-sim.c (get_sim_inferior_data): Likewise.
8490 * sh-tdep.c (sh_gdbarch_init): Likewise.
8491 * skip.c (Ignore): Likewise.
8492 (skip_delete_command): Likewise.
8493 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8494 (library_list_start_library): Likewise.
8495 (solib_aix_current_sos): Likewise.
8496 * solib-darwin.c (get_darwin_info): Likewise.
8497 (darwin_current_sos): Likewise.
8498 * solib-dsbt.c (get_dsbt_info): Likewise.
8499 * solib-ia64-hpux.c (new_so_list): Likewise.
8500 (ia64_hpux_get_solib_linkage_addr): Likewise.
8501 * solib-spu.c (append_ocl_sos): Likewise.
8502 (spu_current_sos): Likewise.
8503 * solib-svr4.c (get_svr4_info): Likewise.
8504 (svr4_keep_data_in_core): Likewise.
8505 (library_list_start_library): Likewise.
8506 (svr4_default_sos): Likewise.
8507 (svr4_read_so_list): Likewise.
8508 * solib-target.c (library_list_start_library): Likewise.
8509 (solib_target_current_sos): Likewise.
8510 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8511 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8512 * symfile.c (default_symfile_segments): Likewise.
8513 * target-descriptions.c (tdesc_data_init): Likewise.
8514 (tdesc_create_reg): Likewise.
8515 (struct tdesc_type *): Likewise.
8516 (tdesc_create_vector): Likewise.
8517 (tdesc_set_struct_size): Likewise.
8518 (struct tdesc_type *): Likewise.
8519 (tdesc_free_feature): Likewise.
8520 (tdesc_create_feature): Likewise.
8521 * windows-nat.c (windows_add_thread): Likewise.
8522 (windows_make_so): Likewise.
8523 * xml-support.c (gdb_xml_body_text): Likewise.
8524 (gdb_xml_create_parser_and_cleanup): Likewise.
8525 (xml_process_xincludes): Likewise.
8526 * xml-syscall.c (allocate_syscalls_info): Likewise.
8527 (syscall_create_syscall_desc): Likewise.
8529 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8531 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8532 function, with code from i386_stap_parse_special_token.
8533 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8534 (i386_stap_parse_special_token): Move code to the two functions
8537 2014-01-09 Pedro Alves <palves@redhat.com>
8538 Hui Zhu <hui@codesourcery.com>
8541 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8542 bp_err_string. Don't mark the location shlib_disabled if the
8543 error thrown wasn't a generic or memory error. Catch errors
8544 thrown while inserting breakpoints in overlayed code. Output
8545 error message of software breakpoints.
8546 * remote.c (remote_insert_breakpoint): If this breakpoint has
8547 target-side commands but this stub doesn't support Z0 packets,
8548 throw NOT_SUPPORTED_ERROR error.
8549 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8550 * target.h (target_insert_breakpoint): Extend comment.
8551 (target_insert_hw_breakpoint): Add comment.
8553 2014-01-08 Pedro Alves <palves@redhat.com>
8555 * remote.c (remote_add_thread): Add threads silently if starting
8557 (remote_notice_new_inferior): If in all-stop, and starting up,
8558 don't call notice_new_inferior.
8559 (get_current_thread): New function, factored out from ...
8560 (add_current_inferior_and_thread): ... this. Adjust.
8561 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8562 found any thread, then select the remote's current thread as GDB's
8565 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8567 * NEWS: Create a new section for the next release branch.
8568 Rename the section of the current branch, now that it has
8571 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8573 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
8574 * version.in: Bump version to 7.7.50.DATE-cvs.
8576 2014-01-08 Yao Qi <yao@codesourcery.com>
8578 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
8579 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
8580 (spu_xfer_partial): Cast 'buf' to 'const char *'.
8582 2014-01-08 Yao Qi <yao@codesourcery.com>
8584 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
8585 return value of bfd_get_filename to symbol_file_add_from_bfd.
8587 2014-01-08 Pierre Muller <muller@sourceware.org>
8590 * coff-pe-read.c (struct read_pe_section_data): Add index field.
8591 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
8592 to prim_record_mininal_symbol_and_info.
8593 (add_pe_forwarded_sym): Use known section number of forwarded symbol
8594 in call to prim_record_minimal_symbol_and_info.
8595 (read_pe_exported_syms): Set index field of section_data.
8597 2014-01-07 Andrew Pinski <apinski@cavium.com>
8599 * features/aarch64-core.xml (cpsr): Change to be 64bit.
8600 * features/aarch64.c: Regenerate.
8602 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
8604 * target.c (return_null): Define.
8605 (update_current_target): Use it instead of return_zero for
8606 functions that return a pointer.
8608 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
8610 * source.c (add_path): Fix check for duplicated paths in the previously
8613 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
8615 * ada-lang.c: Remove duplicated include statements.
8616 * alphabsd-nat.c: Ditto.
8617 * amd64-darwin-tdep.c: Ditto.
8618 * amd64fbsd-nat.c: Ditto.
8619 * auto-load.c: Ditto.
8621 * breakpoint.c: Ditto.
8623 * fork-child.c: Ditto.
8624 * gdb_usleep.c: Ditto.
8625 * i386-darwin-tdep.c: Ditto.
8626 * i386fbsd-nat.c: Ditto.
8628 * inferior.c: Ditto.
8630 * linux-nat.c: Ditto.
8631 * linux-tdep.c: Ditto.
8632 * m68kbsd-nat.c: Ditto.
8633 * m68klinux-nat.c: Ditto.
8634 * microblaze-tdep.c: Ditto.
8635 * mips-linux-tdep.c: Ditto.
8636 * mn10300-tdep.c: Ditto.
8637 * nto-tdep.c: Ditto.
8638 * opencl-lang.c: Ditto.
8640 * printcmd.c: Ditto.
8641 * regcache.c: Ditto.
8642 * remote-m32r-sdi.c: Ditto.
8646 * tilegx-linux-nat.c: Ditto.
8647 * tilegx-tdep.c: Ditto.
8648 * tracepoint.c: Ditto.
8650 * vaxbsd-nat.c: Ditto.
8651 * windows-nat.c: Ditto.
8652 * xtensa-tdep.c: Ditto.
8654 2014-01-07 Yao Qi <yao@codesourcery.com>
8656 * spu-linux-nat.c (_initialize_spu_nat): Declare.
8658 2014-01-07 Yao Qi <yao@codesourcery.com>
8659 Joel Brobecker <brobecker@adacore.com>
8661 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
8662 (pdc_write_regs): Likewise.
8663 (fetch_regs_kernel_thread): Likewise.
8664 (store_regs_kernel_thread): Likewise.
8666 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8668 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
8669 tagged type objects to their actual type.
8671 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8673 * ada-valprint.c (print_field_values): Add "language" parameter.
8674 Update calls to print_field_values and print_variant_part.
8675 Pass new parameter "language" in call to val_print instead
8676 of "current_language". Replace call to ada_val_print by call
8678 (print_variant_part): Add "language" parameter.
8679 (ada_val_print_struct_union): Update call to print_field_values.
8681 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8683 * ada-valprint.c (ui_memcpy): Delete.
8684 (ada_print_floating): Update documentation. Add empty line
8685 between between function documentation and implementation.
8686 Delete variable "buffer". Use ui_file_xstrdup in place of
8687 ui_file_put. Minor adjustments following this change.
8689 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8691 * ada-valprint.c (ada_val_print_string): New function,
8692 extracted from ada_val_print_array.
8693 (ada_val_print_array): Replace extracted code by call
8694 to ada_val_print_string followed by a return. Move
8695 "else" branch to the function's top block.
8697 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8699 * ada-valprint.c (ada_val_print_array): Move implementation
8700 down. Rename parameter "offset" and "val" into "offset_aligned"
8701 and "original_value" respectively. Add parameter "offset".
8703 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8705 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
8706 re-organizing the code. Change the "???" message printed
8707 when target type is a TYPE_CODE_UNDEF into
8708 "<ref to undefined type>".
8710 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8712 * ada-valprint.c (print_record): Delete, implementation inlined...
8713 (ada_val_print_struct_union): ... here. Remove call to
8714 ada_check_typedef in inlined implementation.
8716 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8718 * ada-valprint.c (ada_val_print_gnat_array): New function,
8719 extracted from ada_val_print_1;
8720 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
8721 (ada_val_print_flt, ada_val_print_struct_union)
8722 (ada_val_print_ref): Likewise.
8723 (ada_val_print_1): Delete variables i and elttype.
8724 Replace extracted-out code by call to corresponding
8727 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8729 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
8731 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8733 * ada-valprint.c (ada_val_print_1): Replace calls to
8734 ada_val_print_1 by calls to val_print.
8736 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8738 * ada-valprint.c (ada_val_print_1): Add parameter "language".
8739 Update calls to self accordingly. Replace calls to c_val_print
8740 by calls to val_print.
8742 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8744 * ada-valprint.c (print_record): Delete declaration.
8745 (adjust_type_signedness, ada_val_print_1): Likewise.
8746 (ada_val_print): Move function implementation down.
8747 (print_variant_part, print_field_values, print_record):
8748 Move function implementation up.
8750 2014-01-07 Joel Brobecker <brobecker@adacore.com>
8752 * python/py-type.c (typy_get_name): New function.
8753 (type_object_getset): Add entry for attribute "name".
8754 * NEWS: Add entry mentioning this new attribute.
8756 2014-01-07 Yao Qi <yao@codesourcery.com>
8758 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
8761 2014-01-07 Yao Qi <yao@codesourcery.com>
8763 * gnu-nat.c (info_port_rights): Add qualifier const to
8766 2014-01-07 Yao Qi <yao@codesourcery.com>
8768 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
8770 2014-01-07 Yao Qi <yao@codesourcery.com>
8772 * gnu-nat.c (make_inf) Update declaration.
8773 (make_inf): Make it static.
8774 (inf_set_traced): Likewise.
8775 (inf_port_to_thread, inf_task_died_status): Likewise.
8777 2014-01-07 Yao Qi <yao@codesourcery.com>
8779 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
8781 2014-01-07 Yao Qi <yao@codesourcery.com>
8783 * gnu-nat.c (_initialize_gnu_nat): Declare.
8785 2014-01-07 Yao Qi <yao@codesourcery.com>
8787 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
8789 (struct gdbarch_info) <byte_order>: Change type to
8791 <byte_order_for_code>: Likewise.
8792 * gdbarch.c, gdbarch.h: Regenerated.
8794 2014-01-06 Sasha Smundak <asmundak@google.com>
8796 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
8798 2014-01-06 Tom Tromey <tromey@redhat.com>
8800 * doublest.c (convert_doublest_to_floatformat): Use const, not
8802 * somread.c (som_symtab_read): Likewise.
8804 2014-01-07 Hui Zhu <hui@codesourcery.com>
8806 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
8807 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
8808 (gdb_bfd_fopen): Ditto.
8809 (gdb_bfd_openr): Ditto.
8810 (gdb_bfd_openw): Ditto.
8811 (gdb_bfd_openr_iovec): Ditto.
8812 (gdb_bfd_fdopenr): Ditto.
8813 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
8814 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
8816 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
8818 * symfile-mem.c (symbol_file_add_from_memory): Removed
8819 gdb_bfd_stash_filename.
8821 2014-01-03 Doug Evans <dje@google.com>
8823 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
8826 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8828 Update year range in copyright notice of all files.
8830 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8832 * top.c (print_gdb_version): Set copyright year to 2014.
8834 2014-01-01 Joel Brobecker <brobecker@adacore.com>
8836 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
8838 For older changes see ChangeLog-2013.
8844 version-control: never