1 2014-07-26 Doug Evans <xdje42@gmail.com>
4 * configure.ac: Add check for header gc/gc.h.
5 Add check for function setenv.
6 * configure: Regenerate.
7 * config.in: Regenerate.
8 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
10 2014-07-24 Pedro Alves <palves@redhat.com>
12 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
14 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
16 * stack.c (read_frame_arg): Verify value_optimized_out before calling
17 value_available_contents_eq.
19 2014-07-22 Pedro Alves <palves@redhat.com>
21 * value.c (allocate_optimized_out_value): Don't mark value as
24 2014-07-20 Doug Evans <dje@google.com>
27 * remote.c (putpkt_binary): Add text to error message.
29 2014-07-18 Joel Brobecker <brobecker@adacore.com>
31 * version.in: Set GDB version number to 7.7.91.DATE-cvs.
33 2014-07-18 Joel Brobecker <brobecker@adacore.com>
37 2014-07-18 Joel Brobecker <brobecker@adacore.com>
39 * version.in: Set GDB version number to 7.7.91.
41 2014-07-17 Doug Evans <dje@google.com>
44 * maint.c (count_symtabs_and_blocks): Handle NULL
45 current_program_space.
46 (report_command_stats): Check global enabled flag in addition to
47 recorded enabled flag.
48 (make_command_stats_cleanup): Handle msg_type == 0, startup.
50 2014-07-14 Pedro Alves <palves@redhat.com>
52 * utils.c (prompt_for_continue): Call target_terminal_ours.
54 2014-07-14 Pedro Alves <palves@redhat.com>
56 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
57 catch_errors. Don't re-enable stdin or notify observers where,
59 (fetch_inferior_event_wrapper): Delete.
61 2014-07-14 Pedro Alves <palves@redhat.com>
64 * top.c: Include "inf-loop.h".
65 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
67 (gdb_readline_wrapper_cleanup): Make the target async again, if it
69 (gdb_readline_wrapper): Store whether the target is async, and
72 2014-07-14 Pedro Alves <palves@redhat.com>
75 * top.c (gdb_readline_wrapper_line): Tweak comment.
76 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
77 the input handler callback.
79 2014-07-14 Pedro Alves <palves@redhat.com>
82 * main.c: Include event-top.h.
83 (handle_command_errors): New function.
84 (catch_command_errors, catch_command_errors_const): Use it.
86 2014-07-14 Pedro Alves <palves@redhat.com>
88 * exceptions.c (catch_command_errors, catch_command_errors_const):
90 * exceptions.h (catch_command_errors_ftype)
91 (catch_command_errors_const_ftype): Moved to main.c.
92 (catch_command_errors, catch_command_errors_const): Delete
94 * main.c (catch_command_errors_ftype)
95 (catch_command_errors_const_ftype): Moved here from exceptions.h.
96 (catch_command_errors, catch_command_errors_const)): Moved here
97 from exceptions.c and make static.
99 2014-07-14 Pedro Alves <palves@redhat.com>
101 * exceptions.c (print_any_exception): Delete.
102 (catch_exceptions_with_msg): Use exception_print instead of
104 (catch_errors): Use exception_fprintf instead of
106 (catch_command_errors, catch_command_errors_const): Use
107 exception_print instead of print_any_exception.
109 2014-07-14 Pedro Alves <palves@redhat.com>
111 * infcall.c (run_inferior_call): Set 'sync_execution' while
112 running the inferior call.
114 2014-07-14 Tom Tromey <tromey@redhat.com>
117 * gdbtypes.c (is_dynamic_type_internal): New function, from
119 (is_dynamic_type): Rewrite.
120 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
121 (resolve_dynamic_struct): Likewise.
122 (resolve_dynamic_type_internal): New function, from
123 resolve_dynamic_type.
124 (resolve_dynamic_type): Rewrite.
126 2014-07-14 Tom Tromey <tromey@redhat.com>
128 * target.c (target_require_runnable): Also check record_stratum.
131 2014-07-09 Pedro Alves <palves@redhat.com>
133 * infcmd.c (attach_command_post_wait): Don't call
134 target_terminal_inferior here.
135 (attach_command): Call it here instead.
137 2014-07-07 Pedro Alves <palves@redhat.com>
140 * remote.c (async_handle_remote_sigint)
141 (async_handle_remote_sigint_twice): Call
142 gdb_call_async_signal_handler instead of
143 mark_async_signal_handler.
145 2014-06-26 Tom Tromey <tromey@redhat.com>
148 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
149 (dwarf2_physname, read_partial_die)
150 (guess_partial_die_structure_name, fixup_partial_die)
151 (guess_full_die_structure_name, anonymous_struct_prefix)
152 (dwarf2_name): Use per-BFD obstack.
154 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
156 * python/lib/gdb/command/xmethods.py
157 (get_method_matchers_in_loci): Lookup xmethod matchers in the
158 current progspace only if the string "progspace" matches LOCUS_RE.
160 2014-06-23 Pedro Alves <palves@redhat.com>
162 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
163 DR_CONTROL before setting DR0..DR3.
164 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
165 * i386-nat.c (i386_remove_aligned_watchpoint): Clear all bits of
166 DR_CONTROL related to the debug register slot being disabled. If
167 all slots are vacant, clear local slowdown as well, and assert
170 2014-06-19 Pedro Alves <palves@redhat.com>
172 * gdbthread.h (ALL_THREADS): Delete.
173 (ALL_NON_EXITED_THREADS): New macro.
174 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
175 instead of ALL_THREADS.
176 * infrun.c (find_thread_needs_step_over)
177 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
178 instead of ALL_THREADS.
179 * record-btrace.c (record_btrace_open)
180 (record_btrace_stop_recording, record_btrace_close)
181 (record_btrace_is_replaying, record_btrace_resume)
182 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
183 * remote.c (append_pending_thread_resumptions): Likewise.
184 * thread.c (thread_apply_all_command): Likewise.
186 2014-06-16 Pedro Alves <palves@redhat.com>
188 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
189 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
190 have OBJF_SHARED set.
191 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
192 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
193 instead of OBJF_USERLOADED.
194 * objfiles.h (OBJF_SHARED): Update comment.
195 (userloaded_objfile_contains_address_p): Rename to ...
196 (shared_objfile_contains_address_p): ... this, and update
198 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
200 (remove_symbol_file_command): Skip objfiles that don't have
203 2014-06-14 Eli Zaretskii <eliz@gnu.org>
205 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
206 or --without-guile, according to how GDB was built.
208 2014-06-11 Joel Brobecker <brobecker@adacore.com>
210 * version.in: Set GDB version number to 7.7.90.DATE-cvs.
212 2014-06-11 Joel Brobecker <brobecker@adacore.com>
216 2014-06-11 Joel Brobecker <brobecker@adacore.com>
218 * version.in: Set GDB version number to 7.7.90.
220 2014-06-11 Joel Brobecker <brobecker@adacore.com>
222 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
223 * version.in: Bump version to 7.7.90.DATE-cvs.
225 2014-06-11 Pedro Alves <palves@redhat.com>
228 * ser-mingw.c (net_windows_socket_check_pending): New function.
229 (net_windows_select_thread): Ignore spurious wakeups. Use
230 net_windows_socket_check_pending.
231 (net_windows_wait_handle): Check for pending events with
232 ioctlsocket, through net_windows_socket_check_pending, instead of
233 checking the socket's event.
235 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
237 * python/python-internal.h (gdb_PyObject_GetAttrString)
238 (gdb_PyObject_HasAttrString): New inline function definitions.
239 * py-value.c (get_field_flag): Remove the now unnecessary cast to
240 char * of the second argument to PyObject_GetAttrString.
242 2014-06-10 Joel Brobecker <brobecker@adacore.com>
244 * serial.c (serial_write): Fix index of character to be printed
245 in call to serial_logchar when serial debug traces are enabled.
247 2014-06-10 Joel Brobecker <brobecker@adacore.com>
249 * gdbtypes (resolve_dynamic_range): Add function description.
251 2014-06-09 Pedro Alves <palves@redhat.com>
253 * linux-nat.c (linux_child_follow_fork): Initialize status with
254 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
255 inner block. Only pass the signal to PTRACE_DETACH if in pass
258 2014-06-09 Gary Benson <gbenson@redhat.com>
260 * common/signals.c (gdb_signal_from_host): Reorder to separate
261 the always-available ANSI-standard signals from the signals that
263 (do_gdb_signal_to_host): Likewise.
264 * proc-events.c (signal_table): Likewise.
266 2014-06-08 Hui Zhu <hui@codesourcery.com>
268 * common/linux-ptrace.c (linux_disable_event_reporting): New
270 * common/linux-ptrace.h (linux_disable_event_reporting): New
272 * linux-nat.c (linux_child_follow_fork): Do a single step before
275 2014-06-07 Keith Seitz <keiths@redhat.com>
279 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
280 from symbol_matches_domain in symtab.c. All local callers
281 of symbol_matches_domain updated.
282 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
283 search STRUCT_DOMAIN.
284 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
285 independently. standard_lookup will do that automatically.
286 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
287 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
288 (cp_lookup_symbol_in_namespace): Likewise.
289 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
290 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
291 may return a STRUCT_DOMAIN match.
292 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
293 * cp-support.c: Include language.h.
294 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
296 * psymtab.c (match_partial_symbol): Compare the requested
297 domain with the symbol's domain directly.
298 (lookup_partial_symbol): Likewise.
299 * symtab.c (lookup_symbol_in_language): Explain when/why
300 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
301 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
302 appropriate languages.
303 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
304 and moved to ada-lang.c
305 (lookup_block_symbol): Explain that this function only returns
306 symbol matching the requested DOMAIN.
307 Compare the requested domain with the symbol's domain directly.
308 (iterate_over_symbols): Compare the requested domain with the
309 symbol's domain directly.
310 * symtab.h (symbol_matches_domain): Remove.
312 2014-06-06 Doug Evans <xdje42@gmail.com>
314 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
315 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
316 (gdbscm_guile_version_is_at_least): Declare.
317 (gdbscm_scm_string_to_int): Declare.
318 * guile/guile.c (gdbscm_guile_major_version): New global.
319 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
320 (guile_datadir): New static global.
321 (gdbscm_guile_data_directory): New function.
322 (initialize_scheme_side): Update.
323 (misc_guile_functions): Add guile-data-directory.
324 (initialize_gdb_module): Fetch guile version number.
325 * guile/lib/gdb.scm: Remove call to add-to-load-path.
326 * guile/lib/gdb/init.scm (%initialize!): Ditto.
327 * guile/lib/gdb/boot.scm: Use guile-data-directory.
328 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
330 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
331 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
332 * guile/scm-value.c (gdbscm_value_to_string): Only call
333 scm_port_conversion_strategy if Guile version >= 2.0.6.
335 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
337 * main.c (print_gdb_help): Add -q and --silent.
339 2014-06-06 Gary Benson <gbenson@redhat.com>
341 * common/signals.c: Remove preprocessor conditionals for
342 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
344 * proc-events.c: Likewise.
346 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
348 * symfile.c (symfile_free_objfile): Remove restriction to
350 * symfile-mem.c (symbol_file_add_from_memory): Call
351 add_target_sections_of_objfile.
353 2014-06-05 Ludovic Courtès <ludo@gnu.org>
355 * guile/scm-value.c (gdbscm_history_append_x): Use
356 'vlscm_get_value_smob_arg_unsafe' instead of
357 'vlscm_scm_to_value'.
359 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
362 * utils.c (printchar): Don't escape at all if quoter is NUL.
363 Update function documentation to clarify effect of parameter
365 * remote.c (escape_buffer): Pass '\\' as the quoter to
367 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
369 (mi_solib_unloaded): Same.
371 2014-06-05 Joel Brobecker <brobecker@adacore.com>
373 * development.sh: Delete.
374 * Makefile.in (config.status): Adjust dependency on development.sh.
375 * configure.ac: Adjust development.sh source call.
376 * configure: Regenerate.
378 2014-06-04 Doug Evans <xdje42@gmail.com>
380 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
381 is_scheme_bkpt, spec.
382 (bpscm_make_breakpoint_smob): Initialize new members.
383 (gdbscm_create_breakpoint_x): Split into two ...
384 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
385 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
386 (scheme_function breakpoint_functions): Update.
387 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
388 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
389 register-breakpoint!.
391 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
394 * mem-break.c (z_type_supported): Return zero if
395 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
397 2014-06-04 Tom Tromey <tromey@redhat.com>
399 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
400 value_from_contents_and_address_unresolved.
401 (ada_template_to_fixed_record_type_1): Likewise.
402 (ada_which_variant_applies): Likewise.
403 * value.h (value_from_contents_and_address_unresolved): Declare.
404 * value.c (value_from_contents_and_address_unresolved): New
406 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
407 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
408 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
410 2014-06-04 Tom Tromey <tromey@redhat.com>
412 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
414 2014-06-04 Tom Tromey <tromey@redhat.com>
416 * procfs.c (procfs_attach): Make "args" const.
417 * windows-nat.c (windows_attach): Make "args" const.
418 * nto-procfs.c (procfs_attach): Make "args" const.
419 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
420 * go32-nat.c (go32_attach): Make "args" const.
421 * gnu-nat.c (gnu_attach): Make "args" const.
422 * darwin-nat.c (darwin_attach): Make "args" const.
423 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
424 * linux-nat.c (linux_nat_attach): Make "args" const.
425 * remote.c (extended_remote_attach_1, extended_remote_attach):
427 * target.h (struct target_ops) <to_attach>: Make "args" const.
428 (find_default_attach): Likewise.
429 * utils.c (parse_pid_to_attach): Make "args" const.
430 * utils.h (parse_pid_to_attach): Update.
432 2014-06-04 Tom Tromey <tromey@redhat.com>
434 * target-delegates.c: Rebuild.
435 * target.c (default_thread_address_space): New function.
436 (target_thread_address_space): Simplify.
437 * target.h (struct target_ops) <to_thread_address_space>: Add
440 2014-06-04 Doug Evans <xdje42@gmail.com>
442 * guile/scm-type.c (type_smob): Remove duplicate typedef.
444 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
446 * record-btrace.c: Include event-loop.h and inf-loop.h.
447 (record_btrace_resume_exec_dir)
448 (record_btrace_async_inferior_event_handler)
449 (record_btrace_handle_async_inferior_event): New.
450 (record_btrace_open): Create async event handler.
451 (record_btrace_close): Delete async event handler.
452 (record_btrace_resume): Set record_btrace_resume_exec_dir,
453 Mark async event handler.
454 (record_btrace_execution_direction): New.
455 (init_record_btrace_ops): Initialize to_execution_direction.
457 2014-06-03 Doug Evans <xdje42@gmail.com>
459 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
460 (gdbscm_make_parameter): Ditto.
462 2014-06-03 Doug Evans <dje@google.com>
464 * exec.c (exec_close_1): Call clear_section_table instead of
465 resize_section_table.
466 (clear_section_table): New function.
467 (resize_section_table): Make static. Rename arg num_added to
469 * exec.h (clear_section_table): Declare.
470 (resize_section_table): Delete.
471 * progspace.c (release_program_space): Call clear_section_table
472 instead of resize_section_table.
474 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
476 * NEWS (Python Scripting): Add entry about the new xmethods
479 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
481 * python/py-xmethods.c: New file.
482 * python/py-objfile.c (objfile_object): New field 'xmethods'.
483 (objfpy_dealloc): XDECREF on the new xmethods field.
484 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
486 (objfpy_get_xmethods): New function.
487 (objfile_getset): New entry 'xmethods'.
488 * python/py-progspace.c (pspace_object): New field 'xmethods'.
489 (pspy_dealloc): XDECREF on the new xmethods field.
490 (pspy_new, pspace_to_pspace_object): Initialize xmethods
492 (pspy_get_xmethods): New function.
493 (pspace_getset): New entry 'xmethods'.
494 * python/python-internal.h: Add declarations for new functions.
495 * python/python.c (_initialize_python): Invoke
496 gdbpy_initialize_xmethods.
497 * python/lib/gdb/__init__.py (xmethods): New
499 * python/lib/gdb/xmethod.py: New file.
500 * python/lib/gdb/command/xmethods.py: New file.
502 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
504 * eval.c (evaluate_subexp_standard): Call the xmethod if the
505 best match method returned by find_overload_match is an xmethod.
506 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
507 the best matching operator returned by find_overload_match is an
509 * valops.c: #include "extension.h".
510 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
511 Return void. The list of matching source methods is returned in
512 "fn_list" and a vector of matching debug method workers is
513 returned in "xm_worker_vec". Update all callers.
514 (value_find_oload_method_list): Likewise.
515 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
516 non-NULL, then the index of the best matching method in this
517 vector is returned. Update all callers.
518 (find_overload_match): Include xmethods while performing overload
521 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
523 * defs.h (enum lval_type): New enumerator "lval_xcallable".
524 * extension-priv.h (struct extension_language_ops): Add the
526 * extension.c (new_xmethod_worker, clone_xmethod_worker,
527 get_matching_xmethod_workers, get_xmethod_argtypes,
528 invoke_xmethod, free_xmethod_worker,
529 free_xmethod_worker_vec): New functions.
530 * extension.h: #include "common/vec.h".
531 New function declarations.
532 (struct xmethod_worker): New struct.
533 (VEC (xmethod_worker_ptr)): New vector type.
534 (xmethod_worker_ptr): New typedef.
535 (xmethod_worker_vec): Likewise.
536 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
538 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
539 (struct builtin_type): New field "xmethod".
540 * valarith.c (value_ptradd): Assert that the value argument is not
542 * valops.c (value_must_coerce_to_target): Return 0 for
543 lval_xcallable values.
544 * value.c (struct value): New field XM_WORKER in the field
546 (value_address, value_raw_address): Return 0 for lval_xcallable
548 (set_value_address): Assert that the value is not an
550 (value_free): Free the associated xmethod worker when freeing
551 lval_xcallable values.
552 (set_value_component_location): Assert that the WHOLE value is not
554 (value_of_xmethod, call_xmethod): New functions.
555 * value.h: Declare "struct xmethod_worker".
556 Declare new functions value_of_xmethod, call_xmethod.
558 2014-06-03 Joel Brobecker <brobecker@adacore.com>
559 Pedro Alves <palves@redhat.com>
562 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
563 New function, extracted from software_breakpoint_inserted_here_p.
564 (software_breakpoint_inserted_here_p): Replace factored out code
565 by call to find_non_raw_software_breakpoint_inserted_here.
566 (bp_target_info_copy_insertion_state): New function.
567 (bkpt_insert_location): Handle the case of a single-step
568 breakpoint already inserted at the same address.
569 (bkpt_remove_location): Handle the case of a single-step
570 breakpoint still inserted at the same address.
571 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
572 breakpoint already inserted at the same address.
573 (deprecated_remove_raw_breakpoint): Handle the case of a
574 non-raw breakpoint still inserted at the same address.
575 (find_single_step_breakpoint): New function, extracted from
576 single_step_breakpoint_inserted_here_p.
577 (find_single_step_breakpoint): New function,
578 factored out from single_step_breakpoint_inserted_here_p.
579 (single_step_breakpoint_inserted_here_p): Reimplement.
581 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
583 Pushed by Joel Brobecker <brobecker@adacore.com>
584 * source.c (show_substitute_path_command): Fix display of matching
587 2014-06-03 Gary Benson <gbenson@redhat.com>
589 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
591 2014-06-02 Doug Evans <xdje42@gmail.com>
593 Add parameter support for Guile.
594 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
595 (SUBDIR_GUILE_SRCS): Add scm-param.c.
596 (scm-param.o): New rule.
597 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
598 (gdbscm_misc_error): Declare.
599 (gdbscm_canonicalize_command_name): Declare.
600 (gdbscm_scm_to_host_string): Declare.
601 (gdbscm_scm_from_host_string): Declare.
602 (gdbscm_initialize_parameters): Declare.
603 * guile/guile.c (initialize_gdb_module): Call
604 gdbscm_initialize_parameters.
605 * guile/lib/gdb.scm: Export parameter symbols.
606 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
607 cmdscm_canonicalize_name and made public. All callers updated.
608 * guile/scm-exception.c (gdbscm_misc_error): New function.
609 * guile/scm-param.c: New file.
610 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
611 (gdbscm_scm_to_host_string): New function.
612 (gdbscm_scm_from_host_string): New function.
613 * scm-utils.c (gdbscm_gc_dup_argv): New function.
615 2014-06-02 Doug Evans <xdje42@gmail.com>
617 Add command support for Guile.
618 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
619 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
620 (scm-cmd.o): New rule.
621 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
622 (gdbscm_user_error_p): Declare.
623 (gdbscm_parse_command_name): Declare.
624 (gdbscm_valid_command_class_p): Declare.
625 (gdbscm_initialize_commands): Declare.
626 * guile/guile.c (initialize_gdb_module): Call
627 gdbscm_initialize_commands.
628 * guile/lib/gdb.scm: Export command symbols.
629 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
630 (throw-user-error): New function.
631 * guile/scm-cmd.c: New file.
632 * guile/scm-exception.c (user_error_symbol): New static global.
633 (gdbscm_user_error_p): New function.
634 (gdbscm_initialize_exceptions): Set user_error_symbol.
635 * scm-utils.c (gdbscm_gc_xstrdup): New function.
637 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
639 * top.c (command_loop): Handle comments here...
640 (command_line_input): ... not here.
642 2014-06-02 Doug Evans <xdje42@gmail.com>
644 Add progspace support for Guile.
645 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
646 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
647 (scm-progspace.o): New rule.
648 * guile/guile-internal.h (pspace_smob): New typedef.
649 (psscm_pspace_smob_pretty_printers): Declare.
650 (psscm_pspace_smob_from_pspace): Declare.
651 (psscm_scm_from_pspace): Declare.
652 * guile/guile.c (initialize_gdb_module): Call
653 gdbscm_initialize_pspaces.
654 * guile/lib/gdb.scm: Export progspace symbols.
655 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
657 (append-pretty-printer!): Ditto.
658 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
660 * guile/scm-progspace.c: New file.
662 2014-06-03 Alan Modra <amodra@gmail.com>
664 * ppc64-tdep.c (ppc64_standard_linkage8): New.
665 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
667 2014-06-02 Doug Evans <dje@google.com>
669 Add support for skeletonless type units.
670 * dwarf2read.c (struct dwarf2_per_objfile): New member
671 n_allocated_type_units.
672 (struct dwarf2_per_objfile) <tu_stats>: New member
673 nr_all_type_units_reallocs.
674 (create_signatured_type_table_from_index): Initialize
675 n_allocated_type_units
676 (create_all_type_units): Ditto.
677 (add_type_unit): Move up in file. New arg slot.
678 All callers updated. Increase space for all_type_units more
680 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
681 (lookup_dwo_signatured_type): Handle skeletonless TUs.
682 (lookup_dwp_signatured_type): Ditto.
683 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
685 (build_type_psymtabs_1): Leave type_unit_groups as
686 NULL if no TUs present.
687 (print_tu_stats): New function.
688 (process_skeletonless_type_unit): New function.
689 (process_dwo_file_for_skeletonless_type_units): New
691 (process_skeletonless_type_units): New function.
692 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
693 Call print tu_stats if debugging enabled.
695 2014-06-02 Pedro Alves <palves@redhat.com>
697 * breakpoint.c (build_target_command_list): Don't build a command
698 list if we have any duplicate location that isn't a dprintf.
700 2014-06-02 Pedro Alves <palves@redhat.com>
702 * breakpoint.c (dprintf_breakpoint_hit): New function.
703 (initialize_breakpoint_ops): Install it as dprintf's
704 breakpoint_hit method.
706 2014-06-02 Joel Brobecker <brobecker@adacore.com>
708 * source.c (substitute_path_rule_matches): Simplify using
709 filename_ncmp instead of FILENAME_CMP.
711 2014-06-02 Joel Brobecker <brobecker@adacore.com>
713 * source.c (substitute_path_rule_matches): Remove trailing spaces.
715 2014-06-01 Ludovic Courtès <ludo@gnu.org>
717 * configure.ac: When Guile is available, check for the
718 availability of 'scm_new_smob'.
719 * configure, config.h.in: Regenerate.
720 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
723 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
725 * frame.c (struct frame_info): Add stop_string field.
726 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
727 (get_prev_frame_always): Old content moved into
728 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
729 TRY_CATCH, handle MEMORY_ERROR exceptions.
730 (frame_stop_reason_string): New function definition.
731 * frame.h (unwind_stop_reason_to_string): Extend comment to
732 mention frame_stop_reason_string.
733 (frame_stop_reason_string): New function declaration.
734 * stack.c (frame_info): Switch to frame_stop_reason_string.
735 (backtrace_command_1): Switch to frame_stop_reason_string.
736 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
737 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
738 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
740 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
742 * frame.c (frame_stop_reason_string): Rename to ...
743 (unwind_stop_reason_to_string): this.
744 * frame.h (frame_stop_reason_string): Rename to ...
745 (unwind_stop_reason_to_string): this.
746 * stack.c (frame_info): Update call to frame_stop_reason_string.
747 (backtrace_command_1): Likewise.
748 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
749 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
751 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
753 * frame.c (remove_prev_frame): New function.
754 (get_prev_frame_if_no_cycle): Create / discard cleanup using
757 2014-05-29 Pedro Alves <palves@redhat.com>
759 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
760 and make it const. When a single-step decays to a continue,
761 clear 'step', not 'hw_step'. Pass whether the caller wanted
762 to step to user_visible_resume_ptid, not what we ask the
765 2014-05-29 Pedro Alves <palves@redhat.com>
767 * infrun.c (process_event_stop_test, handle_step_into_function)
768 (handle_step_into_function_backward): Adjust.
769 Don't set the even thread's stop_step and call stop_waiting before
770 calling end_stepping_range. Instead do that ...
771 (end_stepping_range): ... here. Take an ecs pointer parameter.
773 2014-05-29 Pedro Alves <palves@redhat.com>
775 * infrun.c (stop_stepping): Rename to ...
776 (stop_waiting): ... this.
777 (proceed): Update comment.
778 (process_event_stop_test, handle_inferior_event)
779 (handle_signal_stop, handle_step_into_function)
780 (handle_step_into_function_backward): Update.
782 2014-05-29 Pedro Alves <palves@redhat.com>
784 * infcall.c (run_inferior_call): Don't check whether the current
785 thread is running after the proceed call.
787 2014-05-29 Pedro Alves <palves@redhat.com>
788 Tom Tromey <tromey@redhat.com>
790 * NEWS: Mention "maint set target-async", "set mi-async", and that
791 background execution commands are now always available.
792 * target.h (target_async_permitted): Update comment.
793 * target.c (target_async_permitted, target_async_permitted_1):
795 (set_target_async_command): Rename to ...
796 (maint_set_target_async_command): ... this.
797 (show_target_async_command): Rename to ...
798 (maint_show_target_async_command): ... this.
799 (_initialize_target): Adjust.
800 * infcmd.c (prepare_execution_command): Make extern.
801 * inferior.h (prepare_execution_command): Declare.
802 * infrun.c (set_observer_mode): Leave target async alone.
803 * mi/mi-interp.c (mi_interpreter_init): Install
804 mi_on_sync_execution_done as sync_execution_done observer.
805 (mi_on_sync_execution_done): New function.
806 (mi_execute_command_input_handler): Don't print the prompt if we
807 just started a synchronous command with an async target.
808 (mi_on_resume): Check sync_execution before printing prompt.
809 * mi/mi-main.h (mi_async_p): Declare.
810 * mi/mi-main.c: Include gdbcmd.h.
811 (mi_async_p): New function.
812 (mi_async, mi_async_1): New globals.
813 (set_mi_async_command, show_mi_async_command, mi_async): New
815 (exec_continue): Call prepare_execution_command.
816 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
817 (mi_execute_async_cli_command): Use mi_async_p.
818 (_initialize_mi_main): Install "set mi-async". Make
819 "target-async" a deprecated alias.
821 2014-05-29 Pedro Alves <palves@redhat.com>
823 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
824 (_initialize_cli_interp): Adjust.
825 * event-loop.c: Include "observer.h".
826 (start_event_loop): Notify 'command_error' observers instead of
827 calling display_gdb_prompt. Remove FIXME comment.
828 * event-top.c (display_gdb_prompt): Remove call into the
830 * inf-loop.c: Include "observer.h".
831 (inferior_event_handler): Notify 'command_error' observers instead
832 of calling display_gdb_prompt.
833 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
834 observers instead of calling display_gdb_prompt.
835 * interps.c (interp_set): Don't call display_gdb_prompt.
836 (current_interp_display_prompt_p): Delete.
837 * interps.h (interp_prompt_p): Delete declaration.
838 (interp_prompt_p_ftype): Delete.
839 (struct interp_procs) <prompt_proc_p>: Delete field.
840 (current_interp_display_prompt_p): Delete declaration.
841 * mi-interp.c (mi_interpreter_prompt_p): Delete.
842 (_initialize_mi_interp): Adjust.
843 * tui-interp.c (tui_init): Install 'sync_execution_done' and
844 'command_error' observers.
845 (tui_on_sync_execution_done, tui_on_command_error): New
847 (tui_display_prompt_p): Delete.
848 (_initialize_tui_interp): Adjust.
850 2014-05-29 Pedro Alves <palves@redhat.com>
853 * cli/cli-interp.c: Include infrun.h and observer.h.
854 (cli_uiout, cli_interp): New globals.
855 (cli_on_signal_received, cli_on_end_stepping_range)
856 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
858 (cli_interpreter_init): Install them as 'end_stepping_range',
859 'signal_received' 'signal_exited', 'exited' and 'no_history'
861 (_initialize_cli_interp): Remove cli_interp local.
862 * infrun.c (handle_inferior_event): Call the several stop reason
863 observers instead of printing the stop reason directly.
864 (end_stepping_range): New function.
865 (print_end_stepping_range_reason, print_signal_exited_reason)
866 (print_exited_reason, print_signal_received_reason)
867 (print_no_history_reason): Make static, and add an uiout
868 parameter. Print to that instead of to CURRENT_UIOUT.
869 * infrun.h (print_end_stepping_range_reason)
870 (print_signal_exited_reason, print_exited_reason)
871 (print_signal_received_reason print_no_history_reason): New
873 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
875 <cli_uiout>: New field.
876 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
877 uiout for CLI output. Install 'signal_received',
878 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
880 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
881 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
882 (mi_on_no_history): New functions.
883 (ui_out_free_cleanup): Delete function.
884 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
885 instead use the one already stored in the MI interpreter data.
887 * tui/tui-interp.c: Include infrun.h and observer.h.
888 (tui_interp): New global.
889 (tui_on_signal_received, tui_on_end_stepping_range)
890 (tui_on_signal_exited, tui_on_exited)
891 (tui_on_no_history): New functions.
892 (tui_init): Install them as 'end_stepping_range',
893 'signal_received' 'signal_exited', 'exited' and 'no_history'
895 (_initialize_tui_interp): Delete tui_interp local.
897 2014-05-29 Pedro Alves <palves@redhat.com>
900 * linux-nat.c (linux_nat_resume_callback): Rename the second
901 parameter to 'except'. Skip LP if it points to EXCEPT.
902 (linux_nat_resume): Don't mark the event lwp as not stopped
903 before resuming sibling lwps. Instead ask
904 linux_nat_resume_callback to skip the event lwp. Mark it as not
905 stopped after actually resuming it.
906 (linux_handle_syscall_trap): Mark the lwp as not stopped after
908 (wait_lwp): Mark the lwp as stopped here.
909 (stop_wait_callback): Mark the lwp as not stopped right after
910 resuming it. Don't mark lwps as stopped here.
911 (linux_nat_filter_event): Mark the lwp as stopped earlier.
912 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
914 2014-05-29 Pedro Alves <palves@redhat.com>
917 * infrun.c (resume): Determine how much to resume depending on
918 whether the caller wanted a step, not whether we can hardware step
919 the target. Mark all threads that we intend to run as running,
920 unless we're calling an inferior function.
921 (normal_stop): If the thread is running an infcall, don't finish
923 * target.c (target_resume): Don't mark threads as running here.
925 2014-05-28 Joel Brobecker <brobecker@adacore.com>
927 * serial.c (_initialize_serial): Remove support for
928 the "set remotebaud" and "show remotebaud" commands.
929 * NEWS: Add entry documenting the removal of that command.
931 2014-05-28 Yao Qi <yao@codesourcery.com>
933 * charset.c: Fix typo in comments.
935 2014-05-27 Gary Benson <gbenson@redhat.com>
937 * utils.c (internal_vproblem): Prompt for a bug report.
939 2014-05-26 Andy Wingo <wingo@igalia.com>
941 * guile/scm-arch.c (arscm_mark_arch_smob):
942 * guile/scm-block.c (bkscm_mark_block_smob)
943 (bkscm_mark_block_syms_progress_smob):
944 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
945 * guile/scm-exception.c (exscm_mark_exception_smob):
946 * guile/scm-frame.c (frscm_mark_frame_smob):
947 * guile/scm-iterator.c (itscm_mark_iterator_smob):
948 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
949 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
950 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
951 (ppscm_mark_pretty_printer_worker_smob):
952 * guile/scm-symbol.c (syscm_mark_symbol_smob):
953 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
954 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
955 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
957 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
960 2014-05-26 Andy Wingo <wingo@igalia.com>
961 Doug Evans <xdje42@gmail.com>
963 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
964 empty_base_class. All uses updated.
965 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
966 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
968 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
969 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
970 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
971 (gdbscm_gsmob_has_property_p, add_property_name)
972 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
973 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
974 (gdb-object-has-property?, gdb-object-properties): Remove.
975 (gdb-object-kind): Renamed from gsmob-kind.
977 2014-05-26 Andy Wingo <wingo@igalia.com>
979 * configure.ac (try_guile_versions): Allow building with guile 2.2.
980 * configure: Regenerate.
982 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
984 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
986 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
988 * record-btrace.c (record_btrace_allow_memory_access): Remove.
989 (replay_memory_access_read_only, replay_memory_access_read_write)
990 (replay_memory_access_types, replay_memory_access)
991 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
992 (cmd_set_record_btrace, cmd_show_record_btrace)
993 (cmd_show_replay_memory_access): New.
994 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
995 (record_btrace_remove_breakpoint): Replace
996 record_btrace_allow_memory_access with replay_memory_access.
997 (_initialize_record_btrace): Add commands.
1000 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1002 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1004 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1006 * MAINTAINERS (Write After Approval): Move self back from
1009 2014-05-22 Pedro Alves <palves@redhat.com>
1011 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1012 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1013 (disable_randomization, enum exec_direction_kind)
1014 (execution_direction, stop_registers, start_remote)
1015 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1016 (wait_for_inferior, normal_stop, get_last_target_status)
1017 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1018 (insert_step_resume_breakpoint_at_sal)
1019 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1020 (set_step_info, print_stop_event, signal_stop_state)
1021 (signal_print_state, signal_pass_state, signal_stop_update)
1022 (signal_print_update, signal_pass_update)
1023 (update_signals_program_target, clear_exit_convenience_vars)
1024 (displaced_step_dump_bytes, update_observer_mode)
1025 (signal_catch_update, gdb_signal_from_command): Move
1027 * infrun.h: ... to this new file.
1028 * amd64-tdep.c: Include infrun.h.
1029 * annotate.c: Include infrun.h.
1030 * arch-utils.c: Include infrun.h.
1031 * arm-linux-tdep.c: Include infrun.h.
1032 * arm-tdep.c: Include infrun.h.
1033 * break-catch-sig.c: Include infrun.h.
1034 * breakpoint.c: Include infrun.h.
1035 * common/agent.c: Include infrun.h instead of inferior.h.
1036 * corelow.c: Include infrun.h.
1037 * event-top.c: Include infrun.h.
1038 * go32-nat.c: Include infrun.h.
1039 * i386-tdep.c: Include infrun.h.
1040 * inf-loop.c: Include infrun.h.
1041 * infcall.c: Include infrun.h.
1042 * infcmd.c: Include infrun.h.
1043 * infrun.c: Include infrun.h.
1044 * linux-fork.c: Include infrun.h.
1045 * linux-nat.c: Include infrun.h.
1046 * linux-thread-db.c: Include infrun.h.
1047 * monitor.c: Include infrun.h.
1048 * nto-tdep.c: Include infrun.h.
1049 * procfs.c: Include infrun.h.
1050 * record-btrace.c: Include infrun.h.
1051 * record-full.c: Include infrun.h.
1052 * remote-m32r-sdi.c: Include infrun.h.
1053 * remote-mips.c: Include infrun.h.
1054 * remote-notif.c: Include infrun.h.
1055 * remote-sim.c: Include infrun.h.
1056 * remote.c: Include infrun.h.
1057 * reverse.c: Include infrun.h.
1058 * rs6000-tdep.c: Include infrun.h.
1059 * s390-linux-tdep.c: Include infrun.h.
1060 * solib-irix.c: Include infrun.h.
1061 * solib-osf.c: Include infrun.h.
1062 * solib-svr4.c: Include infrun.h.
1063 * target.c: Include infrun.h.
1064 * top.c: Include infrun.h.
1065 * windows-nat.c: Include infrun.h.
1066 * mi/mi-interp.c: Include infrun.h.
1067 * mi/mi-main.c: Include infrun.h.
1068 * python/py-threadevent.c: Include infrun.h.
1070 2014-05-22 Pedro Alves <palves@redhat.com>
1072 * infrun.c (handle_inferior_event): Store the exit code for
1073 --return-child-result here, instead of ...
1074 (print_exited_reason): ... here.
1076 2014-05-21 Pedro Alves <palves@redhat.com>
1079 * gdbthread.h (struct thread_control_state): New field
1081 * infrun.c (follow_fork): Copy the new thread control field to the
1083 (clear_proceed_status_thread): Clear the new thread control field.
1084 (proceed): Set the new thread control field.
1085 * interps.h (command_interp): Declare.
1086 * interps.c (command_interpreter): New global.
1087 (command_interp): New function.
1088 (interp_exec): Set `command_interpreter' while here.
1089 * cli-out.c (cli_uiout_dtor): New function.
1090 (cli_ui_out_impl): Install it.
1091 * mi/mi-interp.c: Include cli-out.h.
1092 (mi_cmd_interpreter_exec): Add comment.
1093 (restore_current_uiout_cleanup): New function.
1094 (ui_out_free_cleanup): New function.
1095 (mi_on_normal_stop): If finishing an execution command started by
1096 a CLI command, or any kind of breakpoint-like event triggered,
1097 print the stop event to the output (CLI) stream.
1098 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1100 2014-05-21 Pedro Alves <palves@redhat.com>
1102 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1103 current source line having changed.
1104 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1105 * infrun.c (normal_stop): Adjust call to
1106 set_current_sal_from_frame.
1107 * source.c (clear_lines_listed_range): New function.
1108 (set_current_source_symtab_and_line, identify_source_line): Clear
1109 the lines listed range.
1110 (line_info): Handle the first "info line" after the current source
1111 line having changed.
1112 * stack.c (print_stack_frame): Remove center handling.
1113 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1116 2014-05-21 Pedro Alves <palves@redhat.com>
1118 * inf-child.c (inf_child_mourn_inferior): New function.
1119 * inf-child.h (inf_child_mourn_inferior): New declaration.
1120 * darwin-nat.c (darwin_mourn_inferior): Use
1121 inf_child_mourn_inferior.
1122 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1123 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1124 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1125 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1126 * windows-nat.c (windows_mourn_inferior): Likewise.
1128 2014-05-21 Doug Evans <xdje42@gmail.com>
1130 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1132 2014-05-21 Doug Evans <xdje42@gmail.com>
1134 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1135 (gdbscm_out_of_range_error): Ditto.
1136 (gdbscm_memory_error): Ditto.
1137 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1138 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1139 (gdbscm_out_of_range_error): Update.
1140 (gdbscm_memory_error): Update.
1141 (gdbscm_scm_to_target_string_unsafe): Delete.
1143 2014-05-21 Pedro Alves <palves@redhat.com>
1145 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1147 (inf_child_open_target): New function.
1148 (inf_child_open): Use inf_child_open_target to push the target
1149 instead of erroring out.
1150 (inf_child_disconnect, inf_child_close)
1151 (inf_child_maybe_unpush_target): New functions.
1152 (inf_child_target): Install inf_child_disconnect and
1153 inf_child_close. Store a pointer to the returned object.
1154 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1156 * target.c (auto_connect_native_target): New global.
1157 (show_default_run_target): New function.
1158 (find_default_run_target): Return NULL if automatically connecting
1159 to the native target is disabled.
1160 (_initialize_target): Install set/show auto-connect-native-target.
1161 * NEWS: Mention "set auto-connect-native-target", and "target
1163 * linux-nat.c (super_close): New global.
1164 (linux_nat_close): Call super_close.
1165 (linux_nat_add_target): Store a pointer to the base class's
1167 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1168 inf_child_maybe_unpush.
1169 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1171 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1172 the inferior. Use inf_child_maybe_unpush_target.
1173 (inf_ttrace_attach): Don't push the target if it is already
1175 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1176 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1177 after mourning the inferior. Use inf_child_maybe_unpush_target.
1178 (darwin_attach_pid): Don't push the target if it is already
1180 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1181 mourning the inferior. Use inf_child_maybe_unpush_target.
1182 (gnu_detach): Use inf_child_maybe_unpush_target.
1183 * go32-nat.c (go32_create_inferior): Don't push the target if it
1185 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1186 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1187 (procfs_open): Rename to ...
1188 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1189 comments. Can target_preopen before changing node. Call
1190 inf_child_open_target to push the target explicitly.
1191 (procfs_attach): Don't push the target if it is already pushed.
1192 (procfs_detach): Use inf_child_maybe_unpush_target.
1193 (procfs_create_inferior): Don't push the target if it is already
1195 (nto_native_ops): New global.
1196 (procfs_open): Reimplement.
1197 (procfs_native_open): New function.
1198 (init_procfs_targets): Install procfs_native_open as to_open of
1199 "target native". Store a pointer to the "native" target in
1201 * procfs.c (procfs_attach): Don't push the target if it is already
1203 (procfs_detach): Use inf_child_maybe_unpush_target.
1204 (procfs_mourn_inferior): Only unpush the target after mourning the
1205 inferior. Use inf_child_maybe_unpush_target.
1206 (procfs_init_inferior): Don't push the target if it is already
1208 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1209 if it is already pushed.
1211 2014-05-21 Pedro Alves <palves@redhat.com>
1213 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1214 and "procfs" targets are now called "native" instead.
1216 2014-05-21 Pedro Alves <palves@redhat.com>
1218 * go32-nat.c (go32_open): Delete.
1219 (go32_target): Don't override the to_open method.
1221 2014-05-21 Pedro Alves <palves@redhat.com>
1223 * nto-procfs.c (procfs_can_run): New function.
1224 (nto_procfs_ops): New global.
1225 (init_procfs_targets): New, based on procfs_target. Install
1226 "target native" in addition to "target procfs".
1227 (_initialize_procfs): Call init_procfs_targets instead of adding
1230 2014-05-21 Pedro Alves <palves@redhat.com>
1232 * windows-nat.c (windows_target): Don't override to_shortname,
1233 to_longname or to_doc.
1235 2014-05-21 Pedro Alves <palves@redhat.com>
1237 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1240 2014-05-21 Pedro Alves <palves@redhat.com>
1242 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1243 to_shortname, to_longname or to_doc.
1245 2014-05-21 Pedro Alves <palves@redhat.com>
1247 * go32-nat.c (go32_target): Don't override to_shortname,
1248 to_longname or to_doc.
1250 2014-05-21 Pedro Alves <palves@redhat.com>
1252 * inf-child.c (inf_child_open): Remove mention of "child".
1253 (inf_child_target): Rename target to "native" instead of "child".
1255 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1257 * Makefile.in (SFILES): Delete "regset.c".
1258 (COMMON_OBS): Delete "regset.o".
1260 * regset.h (regset_alloc): Delete prototype.
1262 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1264 * sparc-linux-tdep.c (sparc32_linux_gregset)
1265 (sparc32_linux_fpregset): New static regset structures.
1266 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1267 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1269 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1270 (sparc64_linux_fpregset): New static regset structures.
1271 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1272 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1273 New static regset structures.
1274 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1275 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1276 New static regset structures.
1277 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1278 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1279 New static regset structures.
1280 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1281 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1282 New static regset structures.
1283 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1285 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1287 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1288 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1289 register maps ("regmaps") from "*regset" to "*regmap". Do this
1290 for all regmap types and variables.
1291 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1292 (sparc32_linux_supply_core_gregset)
1293 (sparc32_linux_collect_core_gregset)
1294 (sparc32_linux_supply_core_fpregset)
1295 (sparc32_linux_collect_core_fpregset): Likewise.
1296 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1297 (sparc_gregmap, sparc_fpregmap): ... these.
1298 (sparc_supply_gregset, sparc_collect_gregset)
1299 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1300 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1301 (_initialize_sparc_nat): Rename regmaps.
1302 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1303 (sparc_gregmap, sparc_fpregmap): ... these.
1304 (sparc_supply_gregset, sparc_collect_gregset)
1305 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1306 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1308 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1309 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1311 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1313 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1314 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1315 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1317 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1318 (sparc32_bsd_fpregset): Rename to...
1319 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1320 (sparc32_bsd_fpregmap): ... these.
1321 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1322 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1323 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1324 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1325 (struct sparc_gregmap, struct sparc_fpregmap)
1326 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1327 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1328 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1329 (sparc32_supply_regset, sparc32_collect_gregset)
1330 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1332 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1333 (sparc64_linux_ptrace_gregmap): ... this.
1334 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1335 (_initialize_sparc64_linux_nat): Rename regmaps.
1336 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1337 (sparc64_linux_core_gregmap): ... this.
1338 (sparc64_linux_supply_core_gregset)
1339 (sparc64_linux_collect_core_gregset)
1340 (sparc64_linux_supply_core_fpregset)
1341 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1342 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1343 (sparc64_sol2_fpregset): Rename to...
1344 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1345 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1346 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1348 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1349 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1350 (sparc64_bsd_fpregset): Rename to...
1351 (struct sparc_gregmap, sparc64_sol2_gregmap)
1352 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1353 (sparc64_bsd_fpregmap): ... these.
1354 (sparc64_supply_gregset, sparc64_collect_gregset)
1355 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1357 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1358 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1359 (sparc64fbsd_gregmap): ... this.
1360 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1361 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1363 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1364 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1365 (sparc64nbsd_collect_fpregset): Likewise.
1366 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1367 (sparc64nbsd_gregmap): ... this.
1368 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1370 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1371 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1372 (sparc64obsd_gregmap): ... this.
1373 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1375 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1376 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1377 (sparc32nbsd_gregmap): ... this.
1378 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1381 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1383 * score-tdep.c (score7_linux_gregset): New static regset
1385 (score7_linux_regset_from_core_section): Remove dynamic regset
1387 (score_gdbarch_init): Drop allocation of tdep structure.
1388 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1390 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1392 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1394 (am33_regset_from_core_section): Remove dynamic regset
1397 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1399 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1400 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1402 (mips_linux_regset_from_core_section): Remove dynamic regset
1404 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1405 'gregset64', 'fpregset', and 'fpregset64'.
1406 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1407 deleted tdep fields.
1409 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1411 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1413 (amd64_regset_from_core_section): Remove dynamic regset
1415 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1417 (amd64obsd_regset_from_core_section): Remove dynamic regset
1419 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1421 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1422 x86-common regset supply function.
1423 * i386-tdep.c (i386_collect_gregset): Make static.
1424 (i386_gregset): New global regset structure.
1425 (i386_fpregset, i386_xstateregset): New static regset structures.
1426 (i386_regset_from_core_section): Remove dynamic regset
1428 (i386_gdbarch_init): Remove initialization of tdep fields
1429 'gregset', 'fpregset', and 'xstateregset'.
1430 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1431 'fpregset', and 'xstateregset'.
1432 (i386_collect_gregset): Remove prototype.
1433 (i386_gregset): New declaration.
1434 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1436 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1439 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1441 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1442 (arm_linux_vfpregset): New static regset structures.
1443 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1445 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1446 and 'vfpregset' fields.
1448 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1450 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1451 (aarch64_linux_fpregset): New static regset structures.
1452 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1453 of regset structures.
1454 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1457 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1459 * regset.h (struct regset): Remove gdbarch field.
1460 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1461 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1462 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1464 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1465 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1466 (ppc32_linux_vsxregset): Likewise.
1467 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1468 via the regcache instead of the regset.
1469 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1470 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1471 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1472 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1475 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1477 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1478 Constify structures.
1479 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1480 (alphanbsd_aout_gregset): Likewise.
1481 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1482 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1484 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1485 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1487 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1488 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1489 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1490 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1491 * m88k-tdep.c (m88k_gregset): Likewise.
1492 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1493 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1494 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1495 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1496 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1497 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1498 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1499 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1500 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1502 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1503 * sh-tdep.h (sh_corefile_gregset): Likewise.
1504 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1505 * vax-tdep.c (vax_gregset): Likewise.
1507 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1509 Fix TLS access for -static -pthread.
1510 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1511 (try_thread_db_load_1): Initialize it.
1512 (thread_db_get_thread_local_address): Call it if LM is zero.
1513 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1514 * target.h (struct target_ops) (to_get_thread_local_address): Add
1515 load_module_addr comment.
1517 2014-05-21 Pedro Alves <palves@redhat.com>
1519 * dcache.c (dcache_read_memory_partial): If reading the cache line
1520 fails, fallback to reading just the memory the caller wanted.
1522 2014-05-20 Doug Evans <dje@google.com>
1524 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1525 instead of get_current_arch.
1527 2014-05-20 Pedro Alves <palves@redhat.com>
1529 * NEWS: Mention that compare-sections now works with all targets.
1531 * remote.c (PACKET_qCRC): New enum value.
1532 (remote_verify_memory): Don't send qCRC if the target has no
1533 execution. Use packet_support/packet_ok. If the target doesn't
1534 support the qCRC packet, fallback to a deep memory copy.
1535 (compare_sections_command): Say "target image" instead of "remote
1537 (_initialize_remote): Add PACKET_qCRC to the list of config
1538 packets that have no associated command. Extend comment.
1539 * target.c (simple_verify_memory, default_verify_memory): New
1541 * target.h (struct target_ops) <to_verify_memory>: Default to
1542 default_verify_memory.
1543 (simple_verify_memory): New declaration.
1544 * target-delegates.c: Regenerate.
1546 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1548 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1550 2014-05-20 Hui Zhu <hui@codesourcery.com>
1551 Yao Qi <yao@codesourcery.com>
1554 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1555 and change address of sp and pc.
1557 2014-05-19 Tom Tromey <tromey@redhat.com>
1559 * gdbtypes.c (rank_function): Use XNEWVEC.
1560 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1562 2014-05-19 Doug Evans <dje@google.com>
1564 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1565 build_type_unit_groups and moved closer to only caller. Remove
1566 arguments. All references updated. Remove outdated .gdb_index
1568 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1569 build_type_psymtabs_1.
1571 2014-05-19 Doug Evans <dje@google.com>
1573 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1574 n_type_unit_groups, all_type_unit_groups. All uses removed.
1575 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1576 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1577 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1578 (add_type_unit_group_to_table): Delete.
1580 2014-05-19 Doug Evans <dje@google.com>
1582 * eval.c (evaluate_subexp_standard): Add some comments.
1584 2014-05-17 Doug Evans <xdje42@gmail.com>
1586 * progspace.c (remove_program_space): Delete, unused.
1587 * progspace.h (remove_program_space): Ditto.
1589 2014-05-17 Doug Evans <xdje42@gmail.com>
1591 * inferior.c (prune_inferiors): Fix comment.
1592 (remove_inferior_command): Call prune_program_spaces.
1594 2014-05-16 Doug Evans <dje@google.com>
1596 New command line option -D.
1598 * main.c (set_gdb_data_directory): New function.
1599 (captured_main): Recognize -D. Flag error for --data-directory "".
1600 Call set_gdb_data_directory.
1601 (print_gdb_help): Print --data-directory, -D.
1602 * main.h (set_gdb_data_directory): Declare.
1603 * top.c (staged_gdb_datadir): New static global.
1604 (set_gdb_datadir): Call set_gdb_data_directory
1605 (show_gdb_datadir): New function.
1606 (init_main): Update init of data-directory parameter.
1608 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1610 Import the "dirfd" gnulib module.
1611 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1612 * gnulib/aclocal.m4: Update.
1613 * gnulib/config.in: Update.
1614 * gnulib/configure: Update.
1615 * gnulib/import/Makefile.am: Update.
1616 * gnulib/import/Makefile.in: Update.
1617 * gnulib/import/dirfd.c: New.
1618 * gnulib/import/m4/dirfd.m4: New.
1619 * gnulib/import/m4/gnulib-cache.m4: Update.
1620 * gnulib/import/m4/gnulib-comp.m4: Update.
1622 2014-05-16 Pierre Muller <muller@sourceware.org>
1623 Yao Qi <yao@codesourcery.com>
1625 * valprint.c (print_wchar): Move the code on checking whether
1626 W is a printable wide char to the default branch of switch
1627 statement below. Call wchar_printable instead of gdb_iswprint.
1629 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1631 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1632 ldr.w and ldrd instructions.
1634 2014-05-15 Doug Evans <dje@google.com>
1636 * dwarf2read.c (read_structure_type): Delete outdated comments.
1638 2014-05-14 Tom Tromey <tromey@redhat.com>
1640 * macrocmd.c (print_macro_definition): Reindent.
1642 2014-05-13 Doug Evans <xdje42@gmail.com>
1644 * python/py-cmd.c (cmdpy_completer): Add comment.
1645 (completers): Make const.
1647 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1649 * infrun.c (resume): Remove should_resume (unused). Move up
1650 declaration of resume_ptid.
1652 2014-05-13 Tom Tromey <tromey@redhat.com>
1654 * language.h (unop_type_check): Remove.
1655 (binop_type_check): Don't declare.
1657 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1659 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1660 call to regcache_raw_collect.
1662 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1664 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1665 mi_console->quote as the quoting character.
1667 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1669 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1671 2014-04-29 Tom Tromey <tromey@redhat.com>
1673 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1674 "show debug varobj".
1676 2014-05-07 Kyle McMartin <kyle@redhat.com>
1678 Pushed by Joel Brobecker <brobecker@adacore.com>.
1679 * aarch64-tdep.c (aarch64_software_single_step): New function.
1680 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1681 with aarch64_software_single_step.
1683 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1687 2014-05-05 Keith Seitz <keiths@redhat.com>
1689 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1690 variable or history value is successfully parsed.
1692 2014-05-05 Yao Qi <yao@codesourcery.com>
1693 Pedro Alves <palves@redhat.com>
1695 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1696 address of blocks that intersects the requested range. Trim
1697 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1699 * ctf.c (ctf_xfer_partial): Likewise.
1701 2014-05-05 Yao Qi <yao@codesourcery.com>
1703 * printcmd.c (display_command): Remove the check to
1704 target_has_execution.
1706 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1708 * ppcobsd-nat.c: Include "obsd-nat.h".
1709 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1711 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1713 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1715 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1716 and 16-bit signed and unsigned arguments. Update comment.
1717 (stap_parse_probe_arguments): Extend code to handle such
1718 arguments. Use warning instead of complaint to notify about
1719 unrecognized bitness.
1721 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1723 PR breakpoints/16889
1724 * stap-probe.c (stap_parse_probe_arguments): Simplify
1725 check for non-prefixed probes (i.e., probes whose
1726 arguments do not start with "N@"). Always set the
1727 argument type to a sane value.
1729 2014-05-01 David Taylor <dtaylor@emc.com>
1731 * remote.c (compare_sections_command): Add -r option to compare
1732 all loadable read-only sections.
1734 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
1736 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
1737 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
1739 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
1740 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
1741 Remove unused CORE_ADDR argument. Update all callers.
1743 2014-04-29 Pedro Alves <palves@redhat.com>
1745 * remote.c (struct packet_config) <detect>: Extend comment.
1746 (add_packet_config_cmd): Don't set the config's detect or support
1748 (init_all_packet_configs): Also initialize the config's 'detect'
1750 (reset_all_packet_configs_support): New function.
1751 (remote_open_1): Call reset_all_packet_configs_support instead of
1752 init_all_packet_configs.
1753 (_initialize_remote): Initialize all packet configs. Assert that
1754 all packets have an associated command, except a few known
1757 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1759 * dwarf2read.c (read_subrange_type): Handle dynamic
1760 DW_AT_lower_bound attributes.
1762 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1764 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
1765 dynamic bounds before computing its upper bound.
1766 (ada_discrete_type_low_bound): Same as above with the lower bound.
1768 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1770 * dwarf2read.c (is_dynamic_type): Return true for dynamic
1771 range types. Adjust the array handling implementation to
1772 take advantage of this change.
1773 (resolve_dynamic_range): New function, mostly extracted from
1774 resolve_dynamic_bounds.
1775 (resolve_dynamic_array): New function, mostly extracted from
1776 resolve_dynamic_bounds.
1777 (resolve_dynamic_bounds): Delete.
1778 (resolve_dynamic_type): Reimplement. Add handling of
1779 TYPE_CODE_RANGE types.
1781 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1783 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
1784 handling of parallel ___XA types.
1786 2014-04-28 Joel Brobecker <brobecker@adacore.com>
1788 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
1789 unnecessary second call to static_unwrap_type.
1791 2014-04-27 Hui Zhu <hui@codesourcery.com>
1793 * stack.c (print_frame_info): Call do_gdb_disassembly with
1794 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
1796 2014-04-26 Doug Evans <xdje42@gmail.com>
1798 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
1800 2014-04-25 Pedro Alves <palves@redhat.com>
1803 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
1804 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
1805 and newline from built string.
1806 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
1807 (linux_ptrace_attach_fail_reason): ... this.
1808 * linux-nat.c (linux_nat_attach): Adjust to use
1809 linux_ptrace_attach_fail_reason.
1811 2014-04-25 Pedro Alves <palves@redhat.com>
1813 * remote.c (struct remote_state): Remove multi_process_aware,
1814 non_stop_aware, cond_tracepoints, cond_breakpoints,
1815 breakpoint_commands, fast_tracepoints, static_tracepoints,
1816 install_in_trace, disconnected_tracing,
1817 enable_disable_tracepoints, string_tracing, and
1818 augmented_libraries_svr4_read fields.
1819 (remote_multi_process_p): Move further below in the file.
1820 (struct packet_config): Add comments.
1821 (update_packet_config): Delete function.
1822 (show_packet_config_cmd): Use packet_config_support.
1823 (add_packet_config_cmd): Use NULL as set callback.
1824 (packet_ok): "set remote foo-packet"-style commands no longer
1825 change config->supported -- adjust.
1826 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
1827 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
1828 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
1829 (PACKET_QNonStop, PACKET_multiprocess_feature)
1830 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
1831 (PACKET_DisconnectedTracing_feature)
1832 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
1833 (set_remote_protocol_packet_cmd): Delete function.
1834 (packet_config_support, packet_support): New functions.
1835 (set_remote_protocol_Z_packet_cmd): Don't call
1836 update_packet_config.
1837 (remote_query_attached, remote_pass_signals)
1838 (remote_program_signals, remote_threads_info)
1839 (remote_threads_extra_info, remote_start_remote): Use
1841 (remote_start_remote): Use packet_config_support and
1843 (init_all_packet_configs): Set all packets to unknown support,
1844 instead of calling update_packet_config.
1845 (remote_check_symbols): Use packet_support.
1846 (remote_supported_packet): Unconditionally set the packet config's
1848 (remote_multi_process_feature, remote_non_stop_feature)
1849 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
1850 (remote_breakpoint_commands_feature)
1851 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
1852 (remote_install_in_trace_feature)
1853 (remote_disconnected_tracing_feature)
1854 (remote_enable_disable_tracepoint_feature)
1855 (remote_string_tracing_feature)
1856 (remote_augmented_libraries_svr4_read_feature): Delete functions.
1857 (remote_protocol_features): Adjust to use remote_supported_packet
1858 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
1859 "ConditionalTracepoints", "ConditionalBreakpoints",
1860 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
1861 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
1862 "EnableDisableTracepoints", and "tracenz".
1863 (remote_query_supported): Use packet_support.
1864 (remote_open_1): Adjust.
1865 (extended_remote_attach_1): Use packet_support. Switch on the
1866 result of packet_ok instead of checking whether the packet ended
1868 (remote_vcont_resume): Use packet_support.
1869 (remote_resume, remote_stop_ns, fetch_register_using_p)
1870 (remote_prepare_to_store, store_register_using_P)
1871 (check_binary_download, remote_write_bytes): Use packet_support.
1872 (remote_vkill): Use packet_support. Switch on the result of
1873 packet_ok instead of checking whether the packet ended up
1875 (extended_remote_supports_disable_randomization): Use
1877 (extended_remote_run): Switch on the result of packet_ok instead
1878 of checking whether the packet ended up disabled.
1879 (remote_insert_breakpoint, remote_remove_breakpoint)
1880 (remote_insert_watchpoint, remote_remove_watchpoint)
1881 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
1883 (remote_search_memory): Use packet_config_support.
1884 (remote_get_thread_local_address, remote_get_tib_address)
1885 (remote_hostio_send_command, remote_can_execute_reverse): Use
1887 (remote_supports_cond_tracepoints)
1888 (remote_supports_cond_breakpoints)
1889 (remote_supports_fast_tracepoints)
1890 (remote_supports_static_tracepoints)
1891 (remote_supports_install_in_trace)
1892 (remote_supports_enable_disable_tracepoint)
1893 (remote_supports_string_tracing)
1894 (remote_can_run_breakpoint_commands): Rewrite, checking whether
1895 the packet config says the feature is enabled or disabled.
1896 (remote_download_tracepoint, remote_trace_set_readonly_regions)
1897 (remote_get_trace_status): Use packet_support.
1898 (remote_set_disconnected_tracing): Adjust to check whether the
1899 feature is enabled with packet_support.
1900 (remote_set_trace_buffer_size, remote_use_agent)
1901 (remote_can_use_agent, remote_supports_btrace): Use
1903 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
1904 Use packet_config_support.
1905 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
1906 the packet config says the feature is enabled or disabled.
1907 (set_range_stepping): Use packet_support.
1909 2014-04-25 Tom Tromey <tromey@redhat.com>
1911 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
1914 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
1916 * NEWS: Mention support for C99 variable length arrays.
1918 2014-04-24 Joel Brobecker <brobecker@adacore.com>
1920 * ada-lang.c (standard_exc): Expand introductory comment.
1922 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
1923 Walfred Tedeschi <walfred.tedeschi@intel.com>
1925 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
1927 (amd64_linux_read_description): Add code to handle AVX512 xstate
1928 mask and return respective tdesc.
1929 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
1930 and features/i386/x32-avx512-linux.c.
1931 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
1932 (amd64_linux_core_read_description): Add code to handle AVX512
1933 xstate mask and return respective tdesc.
1934 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
1935 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
1937 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
1938 (tdesc_amd64_avx512_linux): New prototype.
1939 (tdesc_x32_avx512_linux): Likewise.
1940 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
1941 features/i386/x32-avx512.c.
1942 (amd64_ymm_avx512_names): New register names for pseudo
1944 (amd64_ymmh_avx512_names): New register names for raw registers
1946 (amd64_k_names): New register names for K registers.
1947 (amd64_zmmh_names): New register names for ZMM raw registers.
1948 (amd64_zmm_names): New registers names for ZMM pseudo registers.
1949 (amd64_xmm_avx512_names): New register names for XMM16-31
1951 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
1953 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
1954 if feature is present.
1955 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
1956 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
1957 (AMD64_NUM_REGS): Adjust to new number of registers.
1958 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
1959 registers supplied via XSTATE by AVX512 registers.
1960 (i386_linux_read_description): Add case for AVX512.
1961 * i386-linux-tdep.c: Include i386-avx512-linux.c.
1962 (i386_linux_gregset_reg_offset): Add AVX512 registers.
1963 (i386_linux_core_read_description): Add case for AVX512.
1964 (i386_linux_init_abi): Install supported register note section
1966 (_initialize_i386_linux_tdep): Add call to tdesc init function for
1968 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
1969 registers to be number of zmm7h + 1.
1970 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
1971 * i386-tdep.c: Include features/i386/i386-avx512.c.
1972 (i386_zmm_names): Add ZMM pseudo register names array.
1973 (i386_zmmh_names): Add ZMM raw register names array.
1974 (i386_k_names): Add K raw register names array.
1975 (num_lower_zmm_regs): Add constant for the number of lower ZMM
1976 registers. AVX512 has 16 more ZMM registers than there are YMM
1978 (i386_zmmh_regnum_p): Add function to look up register number of
1980 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
1981 (i386_k_regnum_p): Likewise for K raw registers.
1982 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
1983 registers added by AVX512.
1984 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
1985 registers added by AVX512.
1986 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
1988 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
1989 (i386_pseudo_register_name): Add ZMM pseudo registers.
1990 (i386_zmm_type): Construct and return vector registers type for ZMM
1992 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
1993 ZMM0-31 pseudo registers and K registers.
1994 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
1995 and YMM16-31 registers from register cache.
1996 (i386_pseudo_register_write): Add code to write K, ZMM and
1998 (i386_register_reggroup_p): Add code to include/exclude AVX512
1999 registers in/from respective register groups.
2000 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2001 registers if feature is present in xcr0.
2002 (i386_gdbarch_init): Add code to initialize AVX512 feature
2003 variables in tdep structure, wire in pseudo registers and call
2004 initialize_tdesc_i386_avx512.
2005 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2007 (i386_regnum): Add AVX512 registers.
2008 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2009 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2010 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2011 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2013 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2014 (i386_ymm_avx512_regnum_p): Likewise.
2015 (i386_k_regnum_p): Likewise.
2016 (i386_zmm_regnum_p): Likewise.
2017 (i386_zmmh_regnum_p): Likewise.
2018 * i387-tdep.c : Update year in copyright notice.
2019 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2021 (XSAVE_YMM_AVX512_ADDR): New macro.
2022 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2024 (XSAVE_XMM_AVX512_ADDR): New macro.
2025 (xsave_avx512_k_offset): New table for K register offsets in
2027 (XSAVE_AVX512_K_ADDR): New macro.
2028 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2030 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2031 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2033 (i387_collect_xsave): Add code to collect AVX512 registers from
2035 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2036 of XMM16-31 registers.
2037 (I387_NUM_K_REGS): New define for number of K registers.
2038 (I387_K0_REGNUM): New define for K0 register number.
2039 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2040 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2041 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2043 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2044 (I387_XMM16_REGNUM): New define for XMM16 register number.
2045 (I387_YMM0_REGNUM): New define for YMM0 register number.
2046 (I387_KEND_REGNUM): New define for last K register number.
2047 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2048 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2050 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2052 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2054 * features/Makefile: Add AVX512 related files.
2055 * features/i386/32bit-avx512.xml: New file.
2056 * features/i386/64bit-avx512.xml: Likewise.
2057 * features/i386/amd64-avx512-linux.c: Likewise.
2058 * features/i386/amd64-avx512-linux.xml: Likewise.
2059 * features/i386/amd64-avx512.c: Likewise.
2060 * features/i386/amd64-avx512.xml: Likewise.
2061 * features/i386/i386-avx512-linux.c: Likewise.
2062 * features/i386/i386-avx512-linux.xml: Likewise.
2063 * features/i386/i386-avx512.c: Likewise.
2064 * features/i386/i386-avx512.xml: Likewise.
2065 * features/i386/x32-avx512-linux.c: Likewise.
2066 * features/i386/x32-avx512-linux.xml: Likewise.
2067 * features/i386/x32-avx512.c: Likewise.
2068 * features/i386/x32-avx512.xml: Likewise.
2069 * regformats/i386/amd64-avx512-linux.dat: New file.
2070 * regformats/i386/amd64-avx512.dat: Likewise.
2071 * regformats/i386/i386-avx512-linux.dat: Likewise.
2072 * regformats/i386/i386-avx512.dat: Likewise.
2073 * regformats/i386/x32-avx512-linux.dat: Likewise.
2074 * regformats/i386/x32-avx512.dat: Likewise.
2075 * NEWS: Add note about new support for AVX512.
2078 2014-04-23 Pedro Alves <palves@redhat.com>
2080 * breakpoint.c (insert_bp_location): Tolerate errors if the
2081 breakpoint is set in a user-loaded objfile.
2082 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2083 location is marked shlib_disabled. If the breakpoint is set in a
2084 user-loaded objfile is a GDB-side memory breakpoint, validate it
2085 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2086 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2088 * mem-break.c (memory_validate_breakpoint): New function.
2089 * objfiles.c (userloaded_objfile_contains_address_p): New
2091 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2092 * target.h (memory_validate_breakpoint): New declaration.
2094 2014-04-23 Pedro Alves <palves@redhat.com>
2096 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2097 the breakpoint is set in a shared library, only suppress
2098 errors for software breakpoints, not hardware breakpoints.
2100 2014-04-22 Pedro Alves <palves@redhat.com>
2102 * infrun.c (schedlock_applies): New function, factored out from
2103 find_thread_needs_step_over.
2104 (find_thread_needs_step_over): Use it.
2105 (switch_back_to_stepped_thread): Always clear trap_expected if the
2106 step over is finished. Return early if scheduler locking applies.
2107 Look for the stepping thread and a potential step-over thread with
2109 (currently_stepping_or_nexting_callback): Delete.
2111 2014-04-22 Nick Clifton <nickc@redhat.com>
2113 * NEWS: Mention that ARM sim now supports tracing.
2115 2014-04-22 Yao Qi <yao@codesourcery.com>
2117 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2119 * tracefile.c (tracefile_fetch_registers): ... it. New
2121 * tracefile.h (tracefile_fetch_registers): Declare.
2122 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2123 tracefile_fetch_registers.
2125 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2128 * windows-nat.c (thread_rec): Don't display a warning when
2129 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2130 fails for any reason, set th->suspended to -1, so that we don't
2131 try to resume such a thread. Also, don't return NULL in these
2132 cases, to avoid completely ruin the session due to "PC register is
2133 not available" error.
2134 (do_windows_fetch_inferior_registers): Check errors in
2135 GetThreadContext call.
2136 (windows_continue): Accept an additional argument KILLED; if not
2137 zero, ignore errors in the SetThreadContext call, since the
2138 inferior was killed and is shutting down.
2139 (windows_resume, get_windows_debug_event)
2140 (windows_create_inferior, windows_mourn_inferior)
2141 (windows_kill_inferior): All callers of windows_continue changed
2142 to adjust to its new calling sequence.
2144 2014-04-19 Yao Qi <yao@codesourcery.com>
2146 * ctf.c (ctf_open): Call post_create_inferior.
2148 2014-04-19 Yao Qi <yao@codesourcery.com>
2150 * ctf.c (handle_id): New static variable.
2151 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2152 value. Get the declaration of event "register" and get length
2153 of field "contents".
2155 2014-04-19 Yao Qi <yao@codesourcery.com>
2157 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2159 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2161 * valops.c (oload_method_static): Remove unnecessary argument
2162 METHOD. Update all callers.
2164 2014-04-18 Pedro alves <palves@redhat.com>
2165 Tom Tromey <tromey@redhat.com>
2168 * frame.c (get_prev_frame_1): Rename to ...
2169 (get_prev_frame_always): ... this, and make extern. Adjust.
2170 (skip_artificial_frames): Use get_prev_frame_always.
2171 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2172 (get_frame_unwind_stop_reason): Adjust to rename.
2173 * frame.h (get_prev_frame_always): Declare.
2174 * inline-frame.c: Include frame.h.
2175 (inline_frame_this_id): Use get_prev_frame_always.
2177 2014-04-18 Tristan Gingold <gingold@adacore.com>
2179 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2180 code by using bfd_mach_o_get_base_address.
2182 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2184 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2185 (spu_ax_pseudo_register_collect): New function.
2186 (spu_ax_pseudo_register_push_stack): Likewise.
2187 (spu_dwarf_reg_to_regnum): Likewise.
2188 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2190 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2192 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2193 Replace FRAME argument with FRAME_ID.
2194 * gdbarch.c, gdbarch.h: Regenerate.
2195 * findvar.c (default_value_from_register): Add GDBARCH argument;
2196 replace FRAME by FRAME_ID. No longer call get_frame_id.
2197 (value_from_register): Update call to gdbarch_value_from_register.
2198 * value.h (default_value_from_register): Update prototype.
2199 * s390-linux-tdep.c (s390_value_from_register): Update interface
2200 and call to default_value_from_register.
2201 * spu-tdep.c (spu_value_from_register): Likewise.
2203 * findvar.c (address_from_register): Remove TYPE argument.
2204 Do not call value_from_register; use gdbarch_value_from_register
2205 with null_frame_id instead.
2206 * value.h (address_from_register): Update prototype.
2207 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2208 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2209 address_from_register interface change.
2211 2014-04-17 Yao Qi <yao@codesourcery.com>
2213 * gdbtypes.h: Update comments to link to types and macros'
2216 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2218 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2220 2014-04-16 Keith Seitz <keiths@redhat.com>
2223 * dwarf2read.c (skip_one_die): Check that all relative-offset
2224 sibling DIEs fall within range of the current reader's buffer.
2225 (read_partial_die): Likewise.
2227 2014-04-16 Keith Seitz <keiths@redhat.com>
2230 * cp-namespace.c (lookup_symbol_file): If the type name of
2231 `this' is NULL, return immediately.
2233 2014-04-14 Keith Seitz <keiths@redhat.com>
2236 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2237 from symbol_matches_domain in symtab.c. All local callers
2238 of symbol_matches_domain updated.
2239 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2240 search STRUCT_DOMAIN.
2241 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2242 independently. standard_lookup will do that automatically.
2243 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2244 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2245 (cp_lookup_symbol_in_namespace): Likewise.
2246 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2247 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2248 may return a STRUCT_DOMAIN match.
2249 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2250 * cp-support.c: Include language.h.
2251 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2253 * psymtab.c (match_partial_symbol): Compare the requested
2254 domain with the symbol's domain directly.
2255 (lookup_partial_symbol): Likewise.
2256 * symtab.c (lookup_symbol_in_language): Explain when/why
2257 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2258 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2259 appropriate languages.
2260 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2261 and moved to ada-lang.c
2262 (lookup_block_symbol): Explain that this function only returns
2263 symbol matching the requested DOMAIN.
2264 Compare the requested domain with the symbol's domain directly.
2265 (iterate_over_symbols): Compare the requested domain with the
2266 symbol's domain directly.
2267 * symtab.h (symbol_matches_domain): Remove.
2269 2014-04-14 Tom Tromey <tromey@redhat.com>
2272 * c-exp.y (type_aggregate_p): New function.
2273 (qualified_name, classify_inner_name): Use it.
2274 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2275 and TYPE_TARGET_TYPE of an enum type.
2276 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2278 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2279 handle TYPE_DECLARED_CLASS.
2280 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2282 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2283 * valops.c (enum_constant_from_type): New function.
2284 (value_aggregate_elt): Use it.
2285 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2288 2014-04-14 Tom Tromey <tromey@redhat.com>
2290 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2291 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2293 * value.h (value_aggregate_elt): Update.
2295 2014-04-14 Tom Tromey <tromey@redhat.com>
2297 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2299 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2301 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2302 (evaluate_subexp_standard): Pass noside argument.
2303 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2304 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2305 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2306 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2307 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2309 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2311 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2312 points to a constant blob.
2314 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2316 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2317 property and store it as the high bound and flag the range accordingly.
2318 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2319 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2320 * gdbtypes.h (enum range_flags): New enum.
2321 (struct range_bounds): Add flags member.
2323 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2325 * c-typeprint.c (c_type_print_varspec_suffix): Added
2326 check for not yet resolved high bound. If unresolved, print
2327 "variable length" string to the console instead of random
2330 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2332 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2334 (ada_template_to_fixed_record_type_1): Likewise.
2335 (ada_to_fixed_type_1): Likewise.
2336 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2337 (cp_print_value): Likewise.
2338 * d-valprint.c (dynamic_array_type): Likewise.
2339 * findvar.c (address_of_variable): Likewise.
2340 * jv-valprint.c (java_value_print): Likewise.
2341 * valops.c (value_ind): Likewise.
2342 * value.c (coerce_ref): Likewise.
2344 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2346 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2347 value and retrieve the dynamic type size.
2349 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2351 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2352 passed to sizeof is dynamic evaluate the argument to compute the length.
2354 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2355 Joel Brobecker <brobecker@adacore.com>
2357 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2358 (dwarf2_evaluate_property): New function.
2359 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2360 * dwarf2read.c (attr_to_dynamic_prop): New function.
2361 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2363 * gdbtypes.c: Include dwarf2loc.h.
2364 (is_dynamic_type): New function.
2365 (resolve_dynamic_type): New function.
2366 (resolve_dynamic_bounds): New function.
2367 (get_type_length): New function.
2368 (check_typedef): Use get_type_length to compute type length.
2369 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2370 (TYPE_LOW_BOUND_KIND): New macro.
2371 (is_dynamic_type): New function prototype.
2372 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2373 to resolve dynamic properties of the type. Update comment.
2374 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2376 2014-04-14 Richard Henderson <rth@redhat.com>
2378 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2380 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2381 Doug Evans <xdje42@gmail.com>
2383 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2384 dereference TYPE_CODE_REF values.
2386 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2388 Revert the following changes due to regressions:
2390 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2391 (dwarf2_evaluate_property): New function.
2392 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2393 * dwarf2read.c (attr_to_dynamic_prop): New function.
2394 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2396 * gdbtypes.c: Include dwarf2loc.h.
2397 (is_dynamic_type): New function.
2398 (resolve_dynamic_type): New function.
2399 (resolve_dynamic_bounds): New function.
2400 (get_type_length): New function.
2401 (check_typedef): Use get_type_length to compute type length.
2402 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2403 (TYPE_LOW_BOUND_KIND): New macro.
2404 (is_dynamic_type): New function prototype.
2405 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2406 to resolve dynamic properties of the type. Update comment.
2407 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2409 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2410 passed to sizeof is dynamic evaluate the argument to compute the length.
2412 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2413 value and retrieve the dynamic type size.
2415 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2416 (ada_template_to_fixed_record_type_1): Likewise.
2417 (ada_to_fixed_type_1): Likewise.
2418 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2419 (cp_print_value): Likewise.
2420 * d-valprint.c (dynamic_array_type): Likewise.
2421 * eval.c (evaluate_subexp_with_coercion): Likewise.
2422 * findvar.c (address_of_variable): Likewise.
2423 * jv-valprint.c (java_value_print): Likewise.
2424 * valops.c (value_ind): Likewise.
2425 * value.c (coerce_ref): Likewise.
2427 * c-typeprint.c (c_type_print_varspec_suffix): Added
2428 check for not yet resolved high bound. If unresolved, print
2429 "variable length" string to the console instead of random
2432 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2433 property and store it as the high bound and flag the range accordingly.
2434 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2435 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2436 * gdbtypes.h (enum range_flags): New enum.
2437 (struct range_bounds): Add flags member.
2439 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2440 points to a constant blob.
2442 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2443 (evaluate_subexp_standard): Pass noside argument.
2444 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2445 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2446 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2447 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2448 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2450 2014-04-11 Keith Seitz <keiths@redhat.com>
2453 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2454 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2457 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2459 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2460 (evaluate_subexp_standard): Pass noside argument.
2461 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2462 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2463 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2464 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2465 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2467 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2469 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2470 points to a constant blob.
2472 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2474 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2475 property and store it as the high bound and flag the range accordingly.
2476 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2477 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2478 * gdbtypes.h (enum range_flags): New enum.
2479 (struct range_bounds): Add flags member.
2481 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2483 * c-typeprint.c (c_type_print_varspec_suffix): Added
2484 check for not yet resolved high bound. If unresolved, print
2485 "variable length" string to the console instead of random
2488 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2490 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2491 (ada_template_to_fixed_record_type_1): Likewise.
2492 (ada_to_fixed_type_1): Likewise.
2493 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2494 (cp_print_value): Likewise.
2495 * d-valprint.c (dynamic_array_type): Likewise.
2496 * eval.c (evaluate_subexp_with_coercion): Likewise.
2497 * findvar.c (address_of_variable): Likewise.
2498 * jv-valprint.c (java_value_print): Likewise.
2499 * valops.c (value_ind): Likewise.
2500 * value.c (coerce_ref): Likewise.
2502 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2504 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2505 value and retrieve the dynamic type size.
2507 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2509 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2510 passed to sizeof is dynamic evaluate the argument to compute the length.
2512 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2514 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2515 (dwarf2_evaluate_property): New function.
2516 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2517 * dwarf2read.c (attr_to_dynamic_prop): New function.
2518 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2520 * gdbtypes.c: Include dwarf2loc.h.
2521 (is_dynamic_type): New function.
2522 (resolve_dynamic_type): New function.
2523 (resolve_dynamic_bounds): New function.
2524 (get_type_length): New function.
2525 (check_typedef): Use get_type_length to compute type length.
2526 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2527 (TYPE_LOW_BOUND_KIND): New macro.
2528 (is_dynamic_type): New function prototype.
2529 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2530 to resolve dynamic properties of the type. Update comment.
2531 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2533 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2535 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2536 declaring high/low bounds and change uses accordingly. Call
2537 create_range_type instead of create_static_range_type.
2538 * gdbtypes.c (create_range_type): New function.
2539 (create_range_type): Convert bounds into struct bound_prop and pass
2540 them to create_range_type.
2541 * gdbtypes.h (struct bound_prop): New struct.
2542 (create_range_type): New function prototype.
2543 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2544 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2545 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2547 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2549 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2551 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2552 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2553 * ada-lang.c: All uses of create_range_type updated.
2554 * coffread.c: All uses of create_range_type updated.
2555 * dwarf2read.c: All uses of create_range_type updated.
2556 * f-exp.y: All uses of create_range_type updated.
2557 * m2-valprint.c: All uses of create_range_type updated.
2558 * mdebugread.c: All uses of create_range_type updated.
2559 * stabsread.c: All uses of create_range_type updated.
2560 * valops.c: All uses of create_range_type updated.
2561 * valprint.c: All uses of create_range_type updated.
2563 2014-04-10 Pedro Alves <palves@redhat.com>
2565 * breakpoint.c (single_step_breakpoints)
2566 (single_step_gdbarch): Move up in the file.
2567 (one_breakpoint_xfer_memory): New function, factored out from ...
2568 (breakpoint_xfer_memory): ... here. Also process single-step
2571 2014-04-09 Tristan Gingold <gingold@adacore.com>
2573 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2575 (darwin_decode_exception_message): Free port only after use.
2577 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2579 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2580 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2581 when setting the size of call_length.
2583 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2585 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2586 dereference TYPE_CODE_REF values.
2588 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2590 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2591 end of warning message.
2593 2014-04-03 Doug Evans <dje@google.com>
2595 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2596 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2598 2014-04-02 Alan Modra <amodra@gmail.com>
2600 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2601 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2602 (struct symbol_file_add_from_memory_args): Add size field.
2603 (find_vdso_size): New function.
2604 (add_vsyscall_page): Attempt to find vdso size.
2606 2014-04-01 Doug Evans <dje@google.com>
2608 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2610 2014-04-01 Tristan Gingold <gingold@adacore.com>
2612 * darwin-nat.c (darwin_encode_reply): Add prototype.
2613 (darwin_decode_exception_message): Reply to unknown inferiors.
2614 (darwin_decode_message): Handle message by id. Ignore message
2615 to unknown inferior.
2616 (darwin_wait): Discard unknown messages, add debug trace.
2618 2014-03-31 Doug Evans <dje@google.com>
2620 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2623 2014-03-31 Doug Evans <dje@google.com>
2625 New option "set print symbol-loading".
2627 * solib.c (solib_read_symbols): Only print symbol loading messages
2629 (solib_add): If symbol loading is in "brief" mode, notify user
2630 symbols are being loaded.
2631 (reload_shared_libraries_1): Ditto.
2632 * symfile.c (print_symbol_loading_off): New static global.
2633 (print_symbol_loading_brief): New static global.
2634 (print_symbol_loading_full): New static global.
2635 (print_symbol_loading_enums): New static global.
2636 (print_symbol_loading): New static global.
2637 (print_symbol_loading_p): New function.
2638 (symbol_file_add_with_addrs): Only print symbol loading messages
2640 (_initialize_symfile): Register "print symbol-loading" set/show
2642 * symfile.h (print_symbol_loading_p): Declare.
2644 2014-03-30 Doug Evans <xdje42@gmail.com>
2646 * infrun.c (set_last_target_status): New function.
2647 (handle_inferior_event): Call it.
2649 2014-03-30 Doug Evans <xdje42@gmail.com>
2651 * inferior.h (enum stop_kind): Improve comment.
2653 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2655 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2656 a reference, strip the reference layer before calling
2657 the lang_ops value_has_mutated callback.
2659 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2661 Remove some globals from our parser.
2662 * language.c (unk_lang_parser): Add "struct parser_state"
2664 * language.h (struct language_defn) <la_parser>: Likewise.
2665 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2666 (initialize_expout): Add "struct parser_state" argument.
2667 Rewrite function to use the parser state.
2668 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2669 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2670 write_exp_elt_longcst, write_exp_elt_dblcst,
2671 write_exp_elt_decfloatcst, write_exp_elt_type,
2672 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2673 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2674 write_dollar_variable): Likewise.
2675 (parse_exp_in_context_1): Use parser state.
2676 (insert_type_address_space): Add "struct parser_state" argument.
2678 (increase_expout_size): New function.
2679 * parser-defs.h: Forward declare "struct language_defn" and
2680 "struct parser_state".
2681 (expout, expout_size, expout_ptr): Remove extern declarations.
2682 (parse_gdbarch, parse_language): Rewrite macro declarations to
2683 accept the parser state.
2684 (struct parser_state): New struct.
2685 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2686 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2687 write_exp_elt_decfloatcst, write_exp_elt_type,
2688 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2689 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2690 write_exp_msymbol, write_dollar_variable,
2691 mark_struct_expression, insert_type_address_space): Add "struct
2692 parser_state" argument.
2693 (increase_expout_size): New function.
2694 * utils.c (do_clear_parser_state): New function.
2695 (make_cleanup_clear_parser_state): Likewise.
2696 * utils.h (make_cleanup_clear_parser_state): New function
2698 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2699 Update calls to write_exp* in order to pass the parser state.
2700 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2701 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2702 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2703 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2704 * stap-probe.c (stap_parse_register_operand): Likewise.
2705 (stap_parse_single_operand): Likewise.
2706 (stap_parse_argument_1): Likewise.
2707 (stap_parse_argument): Use parser state.
2708 * stap-probe.h: Include "parser-defs.h".
2709 (struct stap_parse_info) <pstate>: New field.
2710 * c-exp.y (parse_type): Rewrite to use parser state.
2711 (yyparse): Redefine to c_parse_internal.
2712 (pstate): New global variable.
2713 (parse_number): Add "struct parser_state" argument.
2714 (write_destructor_name): Likewise.
2715 (type_exp): Update calls to write_exp* and similars in order to
2717 (exp1, exp, variable, qualified_name, space_identifier,
2718 typename, typebase): Likewise.
2719 (write_destructor_name, parse_number, lex_one_token,
2720 classify_name, classify_inner_name, c_parse): Add "struct
2721 parser_state" argument. Update function to use parser state.
2722 * c-lang.h: Forward declare "struct parser_state".
2723 (c_parse): Add "struct parser_state" argument.
2724 * ada-exp.y (parse_type): Rewrite macro to use parser state.
2725 (yyparse): Redefine macro to ada_parse_internal.
2726 (pstate): New variable.
2727 (write_int, write_object_renaming, write_var_or_type,
2728 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
2729 type_int, type_long, type_long_long, type_float, type_double,
2730 type_long_double, type_char, type_boolean, type_system_address):
2731 Add "struct parser_state" argument.
2732 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
2733 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
2734 var_or_type, aggregate, aggregate_component_list,
2735 positional_list, others, component_group,
2736 component_associations): Update calls to write_exp* and similar
2737 functions in order to use parser state.
2738 (ada_parse, write_var_from_sym, write_int,
2739 write_exp_op_with_string, write_object_renaming,
2740 find_primitive_type, write_selectors, write_ambiguous_var,
2741 write_var_or_type, write_name_assoc, type_int, type_long,
2742 type_long_long, type_float, type_double, type_long_double,
2743 type_char, type_boolean, type_system_address): Add "struct
2744 parser_state" argument. Adjust function to use parser state.
2745 * ada-lang.c (parse): Likewise.
2746 * ada-lang.h: Forward declare "struct parser_state".
2747 (ada_parse): Add "struct parser_state" argument.
2748 * ada-lex.l (processInt, processReal): Likewise. Adjust all
2749 calls to both functions.
2750 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
2752 (yyparse): Redefine macro to f_parse_internal.
2753 (pstate): New variable.
2754 (parse_number): Add "struct parser_state" argument.
2755 (type_exp, exp, subrange, typebase): Update calls to write_exp*
2756 and similars in order to use parser state.
2757 (parse_number): Adjust code to use parser state.
2759 (f_parse): New function.
2760 * f-lang.h: Forward declare "struct parser_state".
2761 (f_parse): Add "struct parser_state" argument.
2762 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
2764 (yyparse): Redefine macro for java_parse_internal.
2765 (pstate): New variable.
2766 (push_expression_name, push_expression_name, insert_exp): Add
2767 "struct parser_state" argument.
2768 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
2769 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
2770 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
2771 PostIncrementExpression, PostDecrementExpression,
2772 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
2773 UnaryExpressionNotPlusMinus, CastExpression,
2774 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
2775 RelationalExpression, EqualityExpression, AndExpression,
2776 ExclusiveOrExpression, InclusiveOrExpression,
2777 ConditionalAndExpression, ConditionalOrExpression,
2778 ConditionalExpression, Assignment, LeftHandSide): Update
2779 calls to write_exp* and similars in order to use parser state.
2780 (parse_number): Ajust code to use parser state.
2782 (java_parse): New function.
2783 (push_variable): Add "struct parser_state" argument. Adjust
2784 code to user parser state.
2785 (push_fieldnames, push_qualified_expression_name,
2786 push_expression_name, insert_exp): Likewise.
2787 * jv-lang.h: Forward declare "struct parser_state".
2788 (java_parse): Add "struct parser_state" argument.
2789 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
2791 (yyparse): Redefine macro to m2_parse_internal.
2792 (pstate): New variable.
2793 (type_exp, exp, fblock, variable, type): Update calls to
2794 write_exp* and similars to use parser state.
2796 (m2_parse): New function.
2797 * m2-lang.h: Forward declare "struct parser_state".
2798 (m2_parse): Add "struct parser_state" argument.
2799 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
2800 * objc-lang.h: Forward declare "struct parser_state".
2801 (end_msglist): Add "struct parser_state" argument.
2802 * p-exp.y (parse_type): Rewrite macro to use parser state.
2803 (yyparse): Redefine macro to pascal_parse_internal.
2804 (pstate): New variable.
2805 (parse_number): Add "struct parser_state" argument.
2806 (type_exp, exp1, exp, qualified_name, variable): Update calls to
2807 write_exp* and similars in order to use parser state.
2808 (parse_number, yylex): Adjust code to use parser state.
2809 (pascal_parse): New function.
2810 * p-lang.h: Forward declare "struct parser_state".
2811 (pascal_parse): Add "struct parser_state" argument.
2812 * go-exp.y (parse_type): Rewrite macro to use parser state.
2813 (yyparse): Redefine macro to go_parse_internal.
2814 (pstate): New variable.
2815 (parse_number): Add "struct parser_state" argument.
2816 (type_exp, exp1, exp, variable, type): Update calls to
2817 write_exp* and similars in order to use parser state.
2818 (parse_number, lex_one_token, classify_name, yylex): Adjust code
2819 to use parser state.
2820 (go_parse): Likewise.
2821 * go-lang.h: Forward declare "struct parser_state".
2822 (go_parse): Add "struct parser_state" argument.
2824 2014-03-27 Doug Evans <dje@google.com>
2826 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
2828 2014-03-27 Doug Evans <dje@google.com>
2830 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
2831 Remove argument abbrev_section. All callers updated.
2833 2014-03-27 Doug Evans <dje@google.com>
2835 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
2836 addr_base, ranges_base.
2838 2014-03-26 Keith Seitz <keiths@redhat.com>
2840 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
2841 types, not VAR_DOMAIN.
2843 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
2845 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
2847 * features/nios2-linux.c: Regenerated.
2848 * features/nios2.c: Regenerated.
2850 2014-03-25 Pedro Alves <palves@redhat.com>
2852 * cli/cli-script.c (script_from_file): Force the interpreter to
2855 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2857 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
2858 small stack allocation.
2860 2014-03-24 Tristan Gingold <gingold@adacore.com>
2862 * darwin-nat.c (exc_server): Remove unused prototype.
2863 (darwin_dump_message): Correctly display data on x86_64.
2864 (darwin_encode_reply): Fix style.
2865 Add comments and fix indentation.
2867 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
2869 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
2871 2014-03-22 Doug Evans <xdje42@gmail.com>
2873 * infcmd.c: Whitespace fixes.
2874 (interrupt_command): Merge two function comments into one.
2876 2014-03-22 Doug Evans <xdje42@gmail.com>
2878 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
2881 2014-03-22 Yao Qi <yao@codesourcery.com>
2883 * remote.c (target_read_live_memory): Remove.
2884 (memory_xfer_live_readonly_partial): Rename it to
2885 remote_xfer_live_readonly_partial. Remove argument 'object'.
2886 All callers updated. Call remote_read_bytes_1
2887 instead of target_read_live_memory.
2888 * tracepoint.c (set_traceframe_number): Remove.
2889 (make_cleanup_restore_traceframe_number): Likewise .
2890 * tracepoint.h (set_traceframe_number): Remove declaration.
2891 (make_cleanup_restore_traceframe_number): Likewise.
2893 2014-03-22 Yao Qi <yao@codesourcery.com>
2895 * remote.c (remote_read_bytes): Move code on reading from the
2897 (remote_read_bytes_1): ... here. New function.
2899 2014-03-22 Yao Qi <yao@codesourcery.com>
2901 * ctf.c (ctf_xfer_partial): Check the return value of
2902 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
2903 return TARGET_XFER_UNAVAILABLE.
2904 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
2905 * target.c (target_read_live_memory): Move it to remote.c.
2906 (memory_xfer_live_readonly_partial): Likewise.
2907 (memory_xfer_partial_1): Move some code to remote_read_bytes.
2908 * remote.c (target_read_live_memory): Moved from target.c.
2909 (memory_xfer_live_readonly_partial): Likewise.
2910 (remote_read_bytes): Factored out from
2911 memory_xfer_partial_1.
2913 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
2915 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
2918 2014-03-21 Pedro Alves <palves@redhat.com>
2920 * infrun.c (normal_stop): Extend comment.
2922 2014-03-21 Hui Zhu <hui@codesourcery.com>
2923 Pedro Alves <palves@redhat.com>
2925 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
2927 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
2928 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
2929 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
2931 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
2933 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
2934 `z' formatted output modifier.
2936 2014-03-20 Tom Tromey <tromey@redhat.com>
2937 Sergio Durigan Junior <sergiodj@redhat.com>
2939 * probe.c (parse_probes): Turn assert into an ordinary error.
2940 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
2941 exceptions when parsing probes. Rearrange the code for clarity.
2943 2014-03-20 Tom Tromey <tromey@redhat.com>
2946 * top.c (execute_command): Only dispatch events if the command
2949 2014-03-20 Tom Tromey <tromey@redhat.com>
2952 * infcall.c: Include event-top.h.
2953 (run_inferior_call): Call async_disable_stdin if needed.
2955 2014-03-20 Pedro Alves <palves@redhat.com>
2957 * infrun.c (prepare_to_proceed): Delete.
2958 (thread_still_needs_step_over): New function.
2959 (find_thread_needs_step_over): New function.
2960 (proceed): If the current thread needs a step-over, set its
2961 steping_over_breakpoint flag. Adjust to use
2962 find_thread_needs_step_over instead of prepare_to_proceed.
2963 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
2964 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
2966 (switch_back_to_stepped_thread): Step over breakpoints of all
2967 threads not the stepping thread, before switching back to the
2970 2014-03-20 Pedro Alves <palves@redhat.com>
2972 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
2974 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
2975 * infrun.c (saved_singlestep_ptid)
2976 (stepping_past_singlestep_breakpoint): Delete.
2977 (resume): Remove stepping_past_singlestep_breakpoint handling.
2978 (proceed): Store the prev_pc of the stepping thread too.
2979 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
2981 (enum infwait_states): Delete infwait_thread_hop_state.
2982 (struct execution_control_state) <hit_singlestep_breakpoint>: New
2984 (handle_inferior_event): Adjust.
2985 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
2986 handling and the thread-hop code. Before removing single-step
2987 breakpoints, check whether the thread hit a single-step breakpoint
2988 of another thread. If it did, the trap is not a random signal.
2989 (switch_back_to_stepped_thread): If the event thread hit a
2990 single-step breakpoint, unblock it before switching to the
2991 stepping thread. Handle the case of the stepped thread having
2993 (keep_going): Handle the case of the current thread moving past a
2994 single-step breakpoint.
2996 2014-03-20 Pedro Alves <palves@redhat.com>
2999 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3000 are being stepped over.
3001 (breakpoint_address_match): Make extern.
3002 * breakpoint.h (breakpoint_address_match): New declaration.
3003 * inferior.h (stepping_past_instruction_at): New declaration.
3004 * infrun.c (struct step_over_info): New type.
3005 (step_over_info): New global.
3006 (set_step_over_info, clear_step_over_info)
3007 (stepping_past_instruction_at): New functions.
3008 (handle_inferior_event): Clear the step-over info when
3009 trap_expected is cleared.
3010 (resume): Remove now stale comment.
3011 (clear_proceed_status): Clear step-over info.
3012 (proceed): Adjust step-over handling to set or clear the step-over
3013 info instead of removing all breakpoints.
3014 (handle_signal_stop): When setting up a thread-hop, don't remove
3016 (stop_stepping): Clear step-over info.
3017 (keep_going): Adjust step-over handling to set or clear step-over
3018 info and then always inserting breakpoints, instead of removing
3019 all breakpoints when stepping over one.
3021 2014-03-20 Pedro Alves <palves@redhat.com>
3023 * infrun.c (previous_inferior_ptid): Adjust comment.
3024 (deferred_step_ptid): Delete.
3025 (infrun_thread_ptid_changed, prepare_to_proceed)
3026 (init_wait_for_inferior): Adjust.
3027 (handle_signal_stop): Delete deferred_step_ptid handling.
3029 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3032 * defs.h (sync_quit_force_run): New declaration.
3033 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3034 * event-top.c (async_sigterm_handler): New declaration.
3035 (async_sigterm_token): New variable.
3036 (async_init_signals): Create also async_sigterm_token.
3037 (async_sigterm_handler): New function.
3038 (sync_quit_force_run): New variable.
3039 (handle_sigterm): Replace quit_force call by other calls.
3040 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3042 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3044 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3045 offset into SPE pseudo registers.
3047 2014-03-18 Pedro Alves <palves@redhat.com>
3050 * inferior.h (print_stop_event): Declare.
3051 * infrun.c (print_stop_event): New, factored out from ...
3052 (normal_stop): ... this.
3053 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3054 of bpstat_print/print_stack_frame.
3056 2014-03-17 Tom Tromey <tromey@redhat.com>
3058 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3060 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3062 * ada-lang.c (decode_constrained_packed_array): Perform a
3063 minimal coercion for reference with coerce_ref instead of
3066 2014-03-17 Tristan Gingold <gingold@adacore.com>
3068 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3069 (darwin_solib_create_inferior_hook): Emit a warning if version
3072 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3074 * python/py-value.c (get_field_flag): Cast flag_name argument to
3075 PyObject_GetAttrString to support Python 2.4.
3077 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3079 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3080 (Global Maintainers): Remove Jan Kratochvil.
3082 2014-03-14 Pedro Alves <palves@redhat.com>
3084 * inferior.h (terminal_ours_for_output): Rename to ...
3085 (child_terminal_ours_for_output): ... this.
3086 (terminal_save_ours): Rename to ...
3087 (child_terminal_save_ours): ... this.
3088 (terminal_ours): Rename to ...
3089 (child_terminal_ours): ... this.
3090 (terminal_inferior): Rename to ...
3091 (child_terminal_inferior): ... this.
3092 (terminal_init_inferior): Rename to ...
3093 (child_terminal_init_inferior): ... this.
3094 (terminal_init_inferior_with_pgrp): Rename to ...
3095 (child_terminal_init_inferior_with_pgrp): ... this.
3096 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3097 (child_terminal_init_with_pgrp): ... this.
3098 (terminal_save_ours): Rename to ...
3099 (child_terminal_save_ours): ... this.
3100 (terminal_init_inferior): Rename to ...
3101 (child_terminal_init): ... this. Adjust.
3102 (terminal_inferior): Rename to ...
3103 (child_terminal_inferior): ... this.
3104 (terminal_ours_for_output): Rename to ...
3105 (child_terminal_ours_for_output): ... this. Adjust.
3106 (terminal_ours): Rename to ...
3107 (child_terminal_ours): ... this.
3108 (terminal_ours_1): Rename to ...
3109 (child_terminal_ours_1): ... this. Adjust.
3110 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3111 * windows-nat.c (do_initial_windows_stuff): Adjust.
3112 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3113 (gnu_terminal_init): ... this. Adjust.
3114 (gnu_target): Adjust.
3115 * inf-child.c (inf_child_target): Adjust.
3117 2014-03-13 Doug Evans <xdje42@gmail.com>
3120 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3123 2014-03-13 Doug Evans <xdje42@gmail.com>
3125 * value.c (record_latest_value): Call release_value_or_incref
3126 instead of release_value.
3128 2014-03-13 Pedro Alves <palves@redhat.com>
3130 * procfs.c (procfs_target): Don't override to_shortname,
3131 to_longname or to_doc.
3133 2014-03-13 Pedro Alves <palves@redhat.com>
3135 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3136 Unix in user visible strings.
3138 2014-03-12 Stan Shebs <stan@codesourcery.com>
3140 * gdbtypes.h: Annotate comments for Doxygen, add a page
3141 block comment with some general info.
3143 2014-03-12 Pedro Alves <palves@redhat.com>
3145 * infcmd.c (prepare_execution_command): New function, factored out
3146 from several execution commands.
3147 (run_command_1, continue_command, step_1, jump_command)
3148 (signal_command, until_command, advance_command, finish_command)
3149 (attach_command): Use prepare_execution_command.
3151 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3153 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3156 (struct arm_linux_thread_points): Removed.
3157 (struct arm_linux_process_info): New.
3158 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3159 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3160 (arm_linux_find_breakpoints_by_tid): Removed.
3161 (struct arch_lwp_info): New.
3162 (arm_linux_find_process_pid): New functions.
3163 (arm_linux_add_process): New functions.
3164 (arm_linux_process_info_get): New functions.
3165 (arm_linux_forget_process): New function.
3166 (arm_linux_get_debug_reg_state): New function.
3167 (struct update_registers_data): New.
3168 (update_registers_callback): New function.
3169 (arm_linux_insert_hw_breakpoint1): Updated.
3170 (arm_linux_remove_hw_breakpoint1): Updated.
3171 (arm_linux_insert_hw_breakpoint): Updated.
3172 (arm_linux_remove_hw_breakpoint): Updated.
3173 (arm_linux_insert_watchpoint): Updated.
3174 (arm_linux_remove_watchpoint): Updated.
3175 (arm_linux_new_thread): Updated.
3176 (arm_linux_prepare_to_resume): New function.
3177 (arm_linux_new_fork): New function.
3178 (_initialize_arm_linux_nat): Updated.
3180 2014-03-12 Pedro Alves <palves@redhat.com>
3182 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3184 2014-03-12 Tom Tromey <tromey@redhat.com>
3186 * inf-child.c (return_zero): New function.
3187 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3188 * aix-thread.c (aix_thread_inferior_created): New function.
3189 (aix_thread_attach): Remove.
3190 (init_aix_thread_ops): Don't set to_attach.
3191 (_initialize_aix_thread): Register inferior_created observer.
3192 * corelow.c (init_core_ops): Don't set to_attach or
3194 * exec.c (init_exec_ops): Don't set to_attach or
3196 * infcmd.c (run_command_1): Use find_run_target. Make direct
3198 (attach_command): Use find_attach_target. Make direct target
3200 * record-btrace.c (init_record_btrace_ops): Don't set
3202 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3204 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3205 set to_create_inferior.
3206 * target.c (complete_target_initialization): Add assertion.
3207 (target_create_inferior): Remove.
3208 (find_default_attach, find_default_create_inferior): Remove.
3209 (find_attach_target, find_run_target): New functions.
3210 (find_default_is_async_p, find_default_can_async_p)
3211 (target_supports_non_stop, target_attach): Remove.
3212 (init_dummy_target): Don't set to_create_inferior or
3213 to_supports_non_stop.
3214 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3215 TARGET_DEFAULT_FUNC.
3216 <to_create_inferior>: Add comment.
3217 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3218 TARGET_DEFAULT_RETURN.
3219 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3220 (find_attach_target, find_run_target): Declare.
3221 (target_create_inferior): Remove.
3222 (target_has_execution_1): Update comment.
3223 (target_supports_non_stop): Remove.
3224 * target-delegates.c: Rebuild.
3226 2014-03-12 Pedro Alves <palves@redhat.com>
3228 * inf-child.h: Update comment to not mention Unix.
3230 2014-03-12 Pedro Alves <palves@redhat.com>
3232 * inf-child.c: Update top comment to not mention Unix. Add
3233 generic comment describing how this target is meant to be used.
3234 (inf_child_post_attach, inf_child_post_startup_inferior)
3235 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3238 2014-03-12 Pedro Alves <palves@redhat.com>
3240 * nto-procfs.c: Include inf-child.h.
3241 (procfs_ops): Delete global.
3242 (procfs_can_run): Delete method.
3243 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3244 target pointer instead of referencing procfs_ops.
3245 (procfs_prepare_to_store): Delete.
3246 (init_procfs_ops): Delete function.
3247 (procfs_target): New function, based on init_procfs_ops, but
3248 inherit inf_child_target.
3249 (_initialize_procfs): Use procfs_target.
3251 2014-03-12 Pedro Alves <palves@redhat.com>
3253 * windows-nat.c: Include inf-child.h.
3254 (windows_ops): Delete global.
3255 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3257 (init_windows_ops): Delete function.
3258 (windows_target): New function, based on init_windows_ops, but
3259 inherit inf_child_target.
3260 (_initialize_windows_nat): Use windows_target. Install x86
3261 specific target methods here.
3263 2014-03-10 Doug Evans <xdje42@gmail.com>
3265 * guile/guile.c (call_initialize_gdb_module): New function.
3266 (initialize_guile): Replace call to scm_init_guile with call to
3269 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3271 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3272 in call to TYPE_CODE macro.
3274 2014-03-10 Jerome Guitton <guitton@adacore.com>
3276 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3277 Resolve tagged types to full view.
3279 2014-03-10 Hui Zhu <hui@codesourcery.com>
3281 * target.h (target_insert_breakpoint): Remove "hardware" from its
3284 2014-03-07 Doug Evans <dje@google.com>
3286 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3288 2014-03-07 Doug Evans <dje@google.com>
3290 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3291 Remove unused local comp_dir_attr. Assert exactly one of
3292 stub_comp_unit_die, stub_comp_dir is non-NULL.
3294 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3296 * target.h (complete_target_initialization, add_target):
3299 2014-03-07 Pedro Alves <palves@redhat.com>
3301 * go32-nat.c: Include inf-child.h.
3302 (go32_ops): Delete global.
3303 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3305 (go32_create_inferior): Push the passed in target pointer instead
3306 of referencing go32_ops.
3307 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3308 (go32_target): New function, based on init_go32_ops, but inherit
3310 (_initialize_go32_nat): Use go32_target. Move parts of
3313 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3315 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3316 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3317 SYMBOL_VALUE_ADDRESS.
3318 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3320 2014-03-06 Yao Qi <yao@codesourcery.com>
3322 * breakpoint.c (get_tracepoint_by_number): Remove argument
3323 optional_p. All callers updated. Adjust comments. Update
3325 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3327 2014-03-06 Yao Qi <yao@codesourcery.com>
3329 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3330 early if get_number returns zero. Use 'p' instead of 'args'.
3332 2014-03-06 Yao Qi <yao@codesourcery.com>
3334 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3337 2014-03-06 Yao Qi <yao@codesourcery.com>
3339 PR breakpoints/16508
3340 * tracepoint.c (check_trace_running): New function.
3341 (trace_find_command): Move code to check_trace_running and
3342 call check_trace_running.
3343 (trace_find_pc_command): Likewise.
3344 (trace_find_tracepoint_command): Likewise.
3345 (trace_find_line_command): Likewise.
3346 (trace_find_range_command): Likewise.
3347 * tracepoint.h (check_trace_running): Likewise.
3348 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3350 2014-03-06 Yao Qi <yao@codesourcery.com>
3352 * target.h (struct target_ops) <to_traceframe_info>: Use
3353 TARGET_DEFAULT_NORETURN (tcomplain ()).
3354 * target-delegates.c: Regenerated.
3356 2014-03-05 Pedro Alves <palves@redhat.com>
3359 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3360 void. Update comment.
3361 (dcache_xfer_memory): Delete.
3362 (dcache_read_memory_partial): New, based on the read bits of
3364 (dcache_update): Add status parameter. Use ULONGEST for len, and
3365 adjust. Discard cache lines if the reason for the update was
3367 * dcache.h (dcache_xfer_memory): Delete declaration.
3368 (dcache_read_memory_partial): New declaration.
3369 (dcache_update): Update prototype.
3370 * target.c (raw_memory_xfer_partial): Update the dcache here.
3371 (memory_xfer_partial_1): Don't handle dcache writes here.
3373 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3375 * remote-sim.c (gdbsim_load): Add const to prog.
3377 2014-03-03 Tom Tromey <tromey@redhat.com>
3379 * elfread.c (probe_key): Change to bfd_data.
3380 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3381 now per-BFD, not per-objfile.
3382 * stap-probe.c (stap_probe_destroy): Update comment.
3383 (handle_stap_probe): Allocate on the per-BFD obstack.
3385 2014-03-03 Tom Tromey <tromey@redhat.com>
3387 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3388 * breakpoint.c (create_longjmp_master_breakpoint): Use
3390 (add_location_to_breakpoint, bkpt_probe_insert_location)
3391 (bkpt_probe_remove_location): Update.
3392 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3393 * elfread.c (elf_symfile_relocate_probe): Remove.
3394 (elf_probe_fns): Update.
3395 (insert_exception_resume_breakpoint): Change type of "probe"
3396 parameter to bound_probe.
3397 (check_exception_resume): Update.
3398 * objfiles.c (objfile_relocate1): Don't relocate probes.
3399 * probe.c (bound_probe_s): New typedef.
3400 (parse_probes): Use get_probe_address. Set sal's objfile.
3401 (find_probe_by_pc): Return a bound_probe.
3402 (collect_probes): Return a VEC(bound_probe_s).
3403 (compare_probes): Update.
3404 (gen_ui_out_table_header_info): Change type of "probes"
3406 (info_probes_for_ops): Update.
3407 (get_probe_address): New function.
3408 (probe_safe_evaluate_at_pc): Update.
3409 * probe.h (struct probe_ops) <get_probe_address>: New field.
3410 <set_semaphore, clear_semaphore>: Add objfile parameter.
3411 (struct probe) <objfile>: Remove field.
3413 <address>: Update comment.
3414 (struct bound_probe): New.
3415 (find_probe_by_pc): Return a bound_probe.
3416 (get_probe_address): Declare.
3417 * solib-svr4.c (struct probe_and_action) <address>: New field.
3418 (hash_probe_and_action, equal_probe_and_action): Update.
3419 (register_solib_event_probe): Add address parameter.
3420 (solib_event_probe_at): Update.
3421 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3423 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3424 (stap_get_probe_address): New function.
3425 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3426 (compile_probe_arg): Update.
3427 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3429 (handle_stap_probe): Don't relocate the probe.
3430 (stap_relocate): Remove.
3431 (stap_gen_info_probes_table_values): Update.
3432 (stap_probe_ops): Remove stap_relocate.
3433 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3434 (debug_sym_probe_fns): Update.
3435 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3436 * symtab.c (init_sal): Use memset.
3437 * symtab.h (struct symtab_and_line) <objfile>: New field.
3438 * tracepoint.c (start_tracing, stop_tracing): Update.
3440 2014-03-03 Tom Tromey <tromey@redhat.com>
3442 * probe.h (parse_probes, find_probe_by_pc)
3443 (find_probes_in_objfile): Fix comments.
3445 2014-03-02 Doug Evans <xdje42@gmail.com>
3447 * infrun.c (handle_signal_stop): Replace test for
3448 TARGET_WAITKIND_STOPPED with an assert.
3450 2014-03-02 Doug Evans <xdje42@gmail.com>
3452 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3454 2014-03-02 Doug Evans <xdje42@gmail.com>
3456 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3458 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3460 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3462 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3464 * i386obsd-nat.c: Include "obsd-nat.h".
3465 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3467 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3469 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3471 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3473 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3475 * mips64obsd-nat.c: Include "obsd-nath".
3476 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3478 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3480 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3482 * amd64obsd-nat.c: Include "obsd-nat,h.
3483 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3485 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3487 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3489 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3490 (find_overload_match): Update call to find_oload_champ.
3491 (find_oload_champ_namespace_loop): Likewise
3493 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3495 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3497 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3498 * config/sparc/obsd64.mh: New file.
3499 * sparc64obsd-nat.c: New file.
3501 * obsd-nat.h: New file.
3502 * obsd-nat.c: New file.
3503 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3504 (ALLDEPFILES): Add obsd-nat.c.
3506 2014-02-28 Tom Tromey <tromey@redhat.com>
3508 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3509 * cli-out.h (cli_ui_out_impl): Now const.
3510 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3511 * ui-out.c (struct ui_out) <impl>: Now const.
3512 (default_ui_out_impl): Now const.
3513 (ui_out_new): Make 'impl' parameter const.
3514 * ui-out.h (ui_out_new): Update.
3516 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3518 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3520 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3522 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3524 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3526 Additional PR 8882 fix.
3527 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3529 2014-02-27 Pedro Alves <palves@redhat.com>
3531 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3534 2014-02-27 Pedro Alves <palves@redhat.com>
3537 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3538 * nat/linux-waitpid.c: Include string.h.
3539 (status_to_str): Moved here and made extern.
3540 * nat/linux-waitpid.h (status_to_str): New declaration.
3542 2014-02-27 Hui Zhu <hui@codesourcery.com>
3545 * infrun.c (ptid_match): Move ...
3546 * common/ptid.c (ptid_match): ... here.
3547 * inferior.h (ptid_match): Move ...
3548 * common/ptid.h (ptid_match): ... here.
3550 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3552 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3553 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3556 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3558 * obsd-tdep.c (obsd_auxv_parse): New function.
3559 (obsd_init_abi): Set auxv_parse.
3561 * gdbarch.sh (auxv_parse): New.
3562 * gdbarch.h: Regenerated.
3563 * gdbarch.c: Regenerated.
3564 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3566 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3568 * guile/scm-value.c (gdbscm_history_append_x): New function.
3569 (value_functions): Add it.
3571 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3573 * dwarf2read.c (attr_value_as_address): New function.
3574 (dwarf2_find_base_address, read_call_site_scope): Use
3575 attr_value_as_address in place of DW_ADDR.
3576 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3577 the low and high addresses. Slight rework of the handling
3578 of the high pc being a constant form, and limit it to
3579 DWARF verson 4 or higher.
3580 (dwarf2_record_block_ranges): Likewise.
3581 (read_partial_die): Likewise.
3582 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3584 2014-02-26 Tom Tromey <tromey@redhat.com>
3586 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3588 2014-02-26 Tom Tromey <tromey@redhat.com>
3590 * elfread.c (elf_read_minimal_symbols): Return early if
3591 minimal symbols have already been read. Add "ei" parameter.
3592 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3593 * minsyms.c (prim_record_minimal_symbol_full): Update.
3594 * objfiles.h (struct objstats) <n_minsyms>: Move...
3595 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3596 * symmisc.c (print_objfile_statistics): Update.
3598 2014-02-26 Tom Tromey <tromey@redhat.com>
3600 * elfread.c (elf_read_minimal_symbols): New function, from
3602 (elf_symfile_read): Call it.
3604 2014-02-26 Tom Tromey <tromey@redhat.com>
3606 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3607 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3608 (lookup_minimal_symbol_solib_trampoline)
3609 (lookup_minimal_symbol_by_pc_section_1)
3610 (lookup_minimal_symbol_and_objfile): Update.
3611 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3612 Don't allocate a minimal symbol if minsyms have already been read.
3613 (build_minimal_symbol_hash_tables): Update.
3614 (install_minimal_symbols): Do nothing if minsyms already read.
3615 Use the per-BFD obstack.
3616 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3617 * objfiles.c (allocate_objfile): Call
3618 terminate_minimal_symbol_table later.
3619 (have_minimal_symbols): Update.
3620 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3621 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3622 Move from struct objfile.
3623 <minsyms_read>: New field.
3624 (struct objfile) <msymbols, minimal_symbol_count,
3625 msymbol_hash, msymbol_demangled_hash>: Move.
3626 (ALL_OBJFILE_MSYMBOLS): Update.
3627 * symfile.c (read_symbols): Set minsyms_read.
3628 (reread_symbols): Update.
3629 * symmisc.c (dump_objfile, dump_msymbols): Update.
3631 2014-02-26 Tom Tromey <tromey@redhat.com>
3633 * minsyms.c (msymbols_sort): Remove.
3634 * minsyms.h (msymbols_sort): Remove.
3635 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3636 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3637 * elfread.c (elf_symtab_read): Don't add section offsets.
3638 * xcoffread.c (record_minimal_symbol): Don't add section offset
3639 to minimal symbol address.
3640 * somread.c (text_offset, data_offset): Remove.
3641 (som_symtab_read): Don't add section offsets to minimal symbol
3643 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3644 Don't add section offsets to minimal symbols.
3645 * coffread.c (coff_symtab_read): Don't add section offsets
3646 to minimal symbol addresses.
3647 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3648 to minimal symbol addresses.
3649 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3650 section offset to minimal symbol addresses.
3651 * mdebugread.c (parse_partial_symbols): Don't add section
3652 offset to minimal symbol addresses.
3653 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3654 offset to minimal symbol addresses.
3656 2014-02-26 Tom Tromey <tromey@redhat.com>
3658 * ada-lang.c (ada_main_name): Update.
3659 (ada_add_standard_exceptions): Update.
3660 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3661 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3662 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3663 * auxv.c (ld_so_xfer_auxv): Update.
3664 * avr-tdep.c (avr_scan_prologue): Update.
3665 * ax-gdb.c (gen_var_ref): Update.
3666 * blockframe.c (get_pc_function_start)
3667 (find_pc_partial_function_gnu_ifunc): Update.
3668 * breakpoint.c (create_overlay_event_breakpoint)
3669 (create_longjmp_master_breakpoint)
3670 (create_std_terminate_master_breakpoint)
3671 (create_exception_master_breakpoint): Update.
3672 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3673 * c-valprint.c (c_val_print): Update.
3674 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3675 * common/agent.c (agent_look_up_symbols): Update.
3676 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3677 * dwarf2loc.c (call_site_to_target_addr): Update.
3678 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3679 * elfread.c (elf_gnu_ifunc_record_cache)
3680 (elf_gnu_ifunc_resolve_by_got): Update.
3681 * findvar.c (default_read_var_value): Update.
3682 * frame.c (inside_main_func): Update.
3683 * frv-tdep.c (frv_frame_this_id): Update.
3684 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3685 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3687 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3688 (hppa_hpux_find_dummy_bpaddr): Update.
3689 * hppa-tdep.c (hppa_symbol_address): Update.
3690 * infcmd.c (until_next_command): Update.
3691 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3693 * linespec.c (minsym_found, add_minsym): Update.
3694 * linux-nat.c (get_signo): Update.
3695 * linux-thread-db.c (inferior_has_bug): Update.
3696 * m32c-tdep.c (m32c_return_value)
3697 (m32c_m16c_address_to_pointer): Update.
3698 * m32r-tdep.c (m32r_frame_this_id): Update.
3699 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3700 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3701 * maint.c (maintenance_translate_address): Update.
3702 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3703 (frob_address): New function.
3704 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3705 frob_address. Rename parameter to "pc_in".
3706 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3708 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3710 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3711 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3712 * objc-lang.c (find_objc_msgsend): Update.
3713 * objfiles.c (objfile_relocate1): Update.
3714 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3715 * p-valprint.c (pascal_val_print): Update.
3716 * parse.c (write_exp_msymbol): Update.
3717 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3718 (ppc_elfv2_skip_entrypoint): Update.
3719 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3720 * printcmd.c (build_address_symbolic, msym_info)
3721 (address_info): Update.
3722 * proc-service.c (ps_pglobal_lookup): Update.
3723 * psymtab.c (find_pc_sect_psymtab_closer)
3724 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
3725 Change msymbol parameter to bound_minimal_symbol.
3726 * ravenscar-thread.c (get_running_thread_id): Update.
3727 * remote.c (remote_check_symbols): Update.
3728 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
3730 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3731 * solib-dsbt.c (lm_base): Update.
3732 * solib-frv.c (lm_base, main_got): Update.
3733 * solib-irix.c (locate_base): Update.
3734 * solib-som.c (som_solib_create_inferior_hook)
3735 (link_map_start): Update.
3736 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
3737 * solib-svr4.c (elf_locate_base, enable_break): Update.
3738 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3739 (flush_ea_cache): Update.
3740 * stabsread.c (define_symbol, scan_file_globals): Update.
3741 * stack.c (find_frame_funname): Update.
3742 * symfile-debug.c (debug_qf_expand_symtabs_matching)
3743 (debug_qf_find_pc_sect_symtab): Update.
3744 * symfile.c (simple_read_overlay_table)
3745 (simple_overlay_update): Update.
3746 * symfile.h (struct quick_symbol_functions)
3747 <find_pc_sect_symtab>: Change type of msymbol to
3748 bound_minimal_symbol.
3749 * symmisc.c (dump_msymbols): Update.
3750 * symtab.c (find_pc_sect_symtab_via_partial)
3751 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
3752 (search_symbols, print_msymbol_info): Update.
3753 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
3754 (MSYMBOL_VALUE_ADDRESS): Redefine.
3755 (BMSYMBOL_VALUE_ADDRESS): New macro.
3756 * tracepoint.c (scope_info): Update.
3757 * tui/tui-disasm.c (tui_find_disassembly_address)
3758 (tui_get_begin_asm_address): Update.
3759 * valops.c (find_function_in_inferior): Update.
3760 * value.c (value_static_field, value_fn_field): Update.
3762 2014-02-26 Tom Tromey <tromey@redhat.com>
3764 * ada-lang.c (ada_update_initial_language): Update.
3765 (ada_main_name, ada_has_this_exception_support): Update.
3766 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3767 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3768 * arm-tdep.c (arm_skip_stub): Update.
3769 * auxv.c (ld_so_xfer_auxv): Update.
3770 * avr-tdep.c (avr_scan_prologue): Update.
3771 * ax-gdb.c (gen_var_ref): Update.
3772 * breakpoint.c (struct breakpoint_objfile_data)
3773 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
3774 type to bound_minimal_symbol.
3775 (create_overlay_event_breakpoint)
3776 (create_longjmp_master_breakpoint)
3777 (create_std_terminate_master_breakpoint)
3778 (create_exception_master_breakpoint): Update.
3779 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3780 * c-exp.y (classify_name): Update.
3781 * coffread.c (coff_symfile_read): Update.
3782 * common/agent.c (agent_look_up_symbols): Update.
3783 * d-lang.c (d_main_name): Update.
3784 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3785 * dec-thread.c (enable_dec_thread): Update.
3786 * dwarf2loc.c (call_site_to_target_addr): Update.
3787 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
3788 * eval.c (evaluate_subexp_standard): Update.
3789 * findvar.c (struct minsym_lookup_data) <result>: Change type
3790 to bound_minimal_symbol.
3792 (minsym_lookup_iterator_cb, default_read_var_value): Update.
3793 * frame.c (inside_main_func): Update.
3794 * frv-tdep.c (frv_frame_this_id): Update.
3795 * gcore.c (call_target_sbrk): Update.
3796 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3797 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3799 * go-lang.c (go_main_name): Update.
3800 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3801 (hppa_hpux_find_import_stub_for_addr): Update.
3802 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
3803 Update. Change return type.
3804 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
3806 * jit.c (jit_breakpoint_re_set_internal): Update.
3807 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
3809 * linux-nat.c (get_signo): Update.
3810 * linux-thread-db.c (inferior_has_bug): Update
3811 * m32c-tdep.c (m32c_return_value)
3812 (m32c_m16c_address_to_pointer): Update.
3813 * m32r-tdep.c (m32r_frame_this_id): Update.
3814 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3815 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3816 * minsyms.c (lookup_minimal_symbol_internal): Rename to
3817 lookup_minimal_symbol. Change return type.
3818 (lookup_minimal_symbol): Remove.
3819 (lookup_bound_minimal_symbol): Update.
3820 (lookup_minimal_symbol_text): Change return type.
3821 (lookup_minimal_symbol_solib_trampoline): Change return type.
3822 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
3823 (lookup_minimal_symbol_solib_trampoline): Change return type.
3824 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3825 * objc-lang.c (lookup_objc_class, lookup_child_selector)
3826 (value_nsstring, find_imps): Update.
3827 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3828 * p-lang.c (pascal_main_name): Update.
3829 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
3830 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3831 * proc-service.c (ps_pglobal_lookup): Update.
3832 * ravenscar-thread.c (get_running_thread_msymbol): Change
3834 (has_ravenscar_runtime, get_running_thread_id): Update.
3835 * remote.c (remote_check_symbols): Update.
3836 * sol-thread.c (ps_pglobal_lookup): Update.
3837 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
3838 * solib-dsbt.c (lm_base): Update.
3839 * solib-frv.c (lm_base, frv_relocate_section_addresses):
3841 * solib-irix.c (locate_base): Update.
3842 * solib-som.c (som_solib_create_inferior_hook)
3843 (som_solib_desire_dynamic_linker_symbols, link_map_start):
3845 * solib-spu.c (spu_enable_break): Update.
3846 * solib-svr4.c (elf_locate_base, enable_break): Update.
3847 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
3848 (flush_ea_cache): Update.
3849 * stabsread.c (define_symbol): Update.
3850 * symfile.c (simple_read_overlay_table): Update.
3851 * symtab.c (find_pc_sect_line): Update.
3852 * tracepoint.c (scope_info): Update.
3853 * tui-disasm.c (tui_get_begin_asm_address): Update.
3854 * value.c (value_static_field): Update.
3856 2014-02-26 Tom Tromey <tromey@redhat.com>
3858 * minsyms.c (prim_record_minimal_symbol_full): Use
3859 SET_MSYMBOL_VALUE_ADDRESS.
3860 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
3861 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
3862 SET_MSYMBOL_VALUE_ADDRESS.
3863 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
3864 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
3866 2014-02-26 Tom Tromey <tromey@redhat.com>
3868 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
3869 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
3870 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
3871 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
3872 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
3873 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
3874 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
3875 * ada-lang.c (ada_main_name): Update.
3876 (ada_lookup_simple_minsym): Update.
3877 (ada_make_symbol_completion_list): Update.
3878 (ada_add_standard_exceptions): Update.
3879 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
3880 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3881 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
3882 * arm-tdep.c (skip_prologue_function): Update.
3883 (arm_skip_stack_protector, arm_skip_stub): Update.
3884 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
3885 (arm_wince_skip_main_prologue): Update.
3886 * auxv.c (ld_so_xfer_auxv): Update.
3887 * avr-tdep.c (avr_scan_prologue): Update.
3888 * ax-gdb.c (gen_var_ref): Update.
3889 * block.c (call_site_for_pc): Update.
3890 * blockframe.c (get_pc_function_start): Update.
3891 (find_pc_partial_function_gnu_ifunc): Update.
3892 * breakpoint.c (create_overlay_event_breakpoint): Update.
3893 (create_longjmp_master_breakpoint): Update.
3894 (create_std_terminate_master_breakpoint): Update.
3895 (create_exception_master_breakpoint): Update.
3896 (resolve_sal_pc): Update.
3897 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3898 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
3900 * c-valprint.c (c_val_print): Update.
3901 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3902 * coffread.c (coff_symfile_read): Update.
3903 * common/agent.c (agent_look_up_symbols): Update.
3904 * dbxread.c (find_stab_function_addr): Update.
3905 (end_psymtab): Update.
3906 * dwarf2loc.c (call_site_to_target_addr): Update.
3907 (func_verify_no_selftailcall): Update.
3908 (tailcall_dump): Update.
3909 (call_site_find_chain_1): Update.
3910 (dwarf_expr_reg_to_entry_parameter): Update.
3911 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3912 (elf_gnu_ifunc_resolve_by_got): Update.
3913 * f-valprint.c (info_common_command): Update.
3914 * findvar.c (read_var_value): Update.
3915 * frame.c (get_prev_frame_1): Update.
3916 (inside_main_func): Update.
3917 * frv-tdep.c (frv_skip_main_prologue): Update.
3918 (frv_frame_this_id): Update.
3919 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3920 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
3921 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
3922 (gnuv3_skip_trampoline): Update.
3923 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
3924 (hppa64_hpux_in_solib_call_trampoline): Update.
3925 (hppa_hpux_skip_trampoline_code): Update.
3926 (hppa64_hpux_search_dummy_call_sequence): Update.
3927 (hppa_hpux_find_import_stub_for_addr): Update.
3928 (hppa_hpux_find_dummy_bpaddr): Update.
3929 * hppa-tdep.c (hppa_symbol_address)
3930 (hppa_lookup_stub_minimal_symbol): Update.
3931 * i386-tdep.c (i386_skip_main_prologue): Update.
3932 (i386_pe_skip_trampoline_code): Update.
3933 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
3934 * infcall.c (get_function_name): Update.
3935 * infcmd.c (until_next_command): Update.
3936 * jit.c (jit_breakpoint_re_set_internal): Update.
3937 (jit_inferior_init): Update.
3938 * linespec.c (minsym_found): Update.
3939 (add_minsym): Update.
3940 * linux-fork.c (info_checkpoints_command): Update.
3941 * linux-nat.c (get_signo): Update.
3942 * linux-thread-db.c (inferior_has_bug): Update.
3943 * m32c-tdep.c (m32c_return_value): Update.
3944 (m32c_m16c_address_to_pointer): Update.
3945 (m32c_m16c_pointer_to_address): Update.
3946 * m32r-tdep.c (m32r_frame_this_id): Update.
3947 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3948 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3949 * maint.c (maintenance_translate_address): Update.
3950 * minsyms.c (add_minsym_to_hash_table): Update.
3951 (add_minsym_to_demangled_hash_table): Update.
3952 (msymbol_objfile): Update.
3953 (lookup_minimal_symbol): Update.
3954 (iterate_over_minimal_symbols): Update.
3955 (lookup_minimal_symbol_text): Update.
3956 (lookup_minimal_symbol_by_pc_name): Update.
3957 (lookup_minimal_symbol_solib_trampoline): Update.
3958 (lookup_minimal_symbol_by_pc_section_1): Update.
3959 (lookup_minimal_symbol_and_objfile): Update.
3960 (prim_record_minimal_symbol_full): Update.
3961 (compare_minimal_symbols): Update.
3962 (compact_minimal_symbols): Update.
3963 (build_minimal_symbol_hash_tables): Update.
3964 (install_minimal_symbols): Update.
3965 (terminate_minimal_symbol_table): Update.
3966 (find_solib_trampoline_target): Update.
3967 (minimal_symbol_upper_bound): Update.
3968 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3969 * mips-tdep.c (mips_stub_frame_sniffer): Update.
3970 (mips_skip_pic_trampoline_code): Update.
3971 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
3972 * objc-lang.c (selectors_info): Update.
3973 (classes_info): Update.
3974 (find_methods): Update.
3975 (find_imps): Update.
3976 (find_objc_msgsend): Update.
3977 * objfiles.c (objfile_relocate1): Update.
3978 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
3979 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3980 * p-valprint.c (pascal_val_print): Update.
3981 * parse.c (write_exp_msymbol): Update.
3982 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
3983 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
3984 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3985 * printcmd.c (build_address_symbolic): Update.
3987 (address_info): Update.
3988 * proc-service.c (ps_pglobal_lookup): Update.
3989 * psymtab.c (find_pc_sect_psymtab_closer): Update.
3990 (find_pc_sect_psymtab): Update.
3991 * python/py-framefilter.c (py_print_frame): Update.
3992 * ravenscar-thread.c (get_running_thread_id): Update.
3993 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
3995 * remote.c (remote_check_symbols): Update.
3996 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
3997 (rs6000_skip_trampoline_code): Update.
3998 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
3999 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4000 * solib-dsbt.c (lm_base): Update.
4001 * solib-frv.c (lm_base): Update.
4003 * solib-irix.c (locate_base): Update.
4004 * solib-som.c (som_solib_create_inferior_hook): Update.
4005 (som_solib_desire_dynamic_linker_symbols): Update.
4006 (link_map_start): Update.
4007 * solib-spu.c (spu_enable_break): Update.
4008 (ocl_enable_break): Update.
4009 * solib-svr4.c (elf_locate_base): Update.
4010 (enable_break): Update.
4011 * spu-tdep.c (spu_get_overlay_table): Update.
4012 (spu_catch_start): Update.
4013 (flush_ea_cache): Update.
4014 * stabsread.c (define_symbol): Update.
4015 (scan_file_globals): Update.
4016 * stack.c (find_frame_funname): Update.
4017 (frame_info): Update.
4018 * symfile.c (simple_read_overlay_table): Update.
4019 (simple_overlay_update): Update.
4020 * symmisc.c (dump_msymbols): Update.
4021 * symtab.c (fixup_section): Update.
4022 (find_pc_sect_line): Update.
4023 (skip_prologue_sal): Update.
4024 (search_symbols): Update.
4025 (print_msymbol_info): Update.
4026 (rbreak_command): Update.
4027 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4028 (completion_list_objc_symbol): Update.
4029 (default_make_symbol_completion_list_break_on): Update.
4030 * tracepoint.c (scope_info): Update.
4031 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4032 (tui_get_begin_asm_address): Update.
4033 * valops.c (find_function_in_inferior): Update.
4034 * value.c (value_static_field): Update.
4035 (value_fn_field): Update.
4037 2014-02-26 Tom Tromey <tromey@redhat.com>
4039 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4040 bound minimal symbols. Move code that knows about minsym
4042 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4044 * minsyms.h (minimal_symbol_upper_bound): Declare.
4045 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4046 minimal_symbol_upper_bound.
4048 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4050 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4051 Use the type's name if its basic type does not have a tag.
4053 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4055 * dwarf2read.c (read_subrange_type): Add comment.
4057 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4059 * dwarf2read.c (update_enumeration_type_from_children): New
4060 function, mostly extracted from process_structure_scope.
4061 (read_enumeration_type): Call update_enumeration_type_from_children.
4062 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4063 and flag_flag_enum fields.
4065 2014-02-26 Pedro Alves <palves@redhat.com>
4067 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4068 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4069 to_xfer_partial method.
4071 2014-02-26 Pedro Alves <palves@redhat.com>
4073 * target.c (complete_target_initialization): Don't install
4074 default_xfer_partial as to_xfer_partial hook.
4076 (update_current_target): Don't INHERIT nor de_fault
4077 deprecated_xfer_memory. Delete de_fault macro.
4078 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4079 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4080 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4083 2014-02-26 Pedro Alves <palves@redhat.com>
4085 * go32-nat.c (my_write_child): New function.
4086 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4087 (go32_xfer_partial): New function.
4088 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4089 Instead install a to_xfer_partial hook.
4091 2014-02-26 Pedro Alves <palves@redhat.com>
4093 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4094 to_xfer_partial helper. Rewrite.
4095 (procfs_xfer_partial): New function.
4096 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4097 Install a to_xfer_partial hook.
4099 2014-02-26 Pedro Alves <palves@redhat.com>
4101 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4102 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4103 (m32r_xfer_partial): New function.
4104 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4105 Install a to_xfer_partial hook.
4107 2014-02-26 Pedro Alves <palves@redhat.com>
4109 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4111 (mips_xfer_partial): New function.
4112 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4113 hook. Install a to_xfer_partial hook.
4115 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4117 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4118 * gdbtypes.c (create_array_type_with_stride): New function,
4119 renaming create_array_type, but with an added parameter
4120 called "bit_stride".
4121 (create_array_type): Re-implement using
4122 create_array_type_with_stride.
4123 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4124 and DW_AT_bit_stride attributes.
4126 2014-02-26 Pedro Alves <palves@redhat.com>
4128 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4129 task-specific breakpoints.
4131 2014-02-25 Pedro Alves <palves@redhat.com>
4133 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4134 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4136 2014-02-25 Stan Shebs <stan@codesourcery.com>
4138 * defs.h: Annotate comments for Doxygen.
4140 2014-02-25 Tom Tromey <tromey@redhat.com>
4142 * target.h (target_ignore): Don't declare.
4143 * target.c (target_ignore): Remove.
4145 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4148 * auto-load.c (auto_load_objfile_script_1): Change filename to
4151 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4153 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4154 documentation. Adjust prototype to match the target_ops
4155 to_xfer_partial method. Adjust implementation accordingly.
4157 2014-02-25 Hui Zhu <hui@codesourcery.com>
4159 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4162 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4164 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4165 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4166 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4167 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4168 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4169 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4170 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4171 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4173 (rl78_register_type): Use a data pointer type for SP and
4174 new pseudo registers mentioned above. Use a 16 bit integer
4175 type for all other register pairs.
4176 (rl78_register_name, rl78_g10_register_name): Update for
4177 new pseudo registers.
4178 (rl78_pseudo_register_read): Likewise.
4179 (rl78_pseudo_register_write): Likewise.
4180 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4181 to the newly added pseudo registers.
4183 2014-02-24 Doug Evans <dje@google.com>
4185 * value.c (record_latest_value): Fix comment.
4186 * printcmd.c (print_command_1): Remove code to handle -1 return from
4187 record_latest_value.
4189 2014-02-24 Pedro Alves <palves@redhat.com>
4191 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4192 deprecated_xfer_memory hook.
4193 (procfs_xfer_partial): Call procfs_xfer_memory instead
4194 of the deprecated_xfer_memory target hook.
4195 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4198 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4200 * windows-nat.c (windows_xfer_shared_libraries): Return
4201 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4202 requested object is TARGET_OBJECT_LIBRARIES.
4204 2014-02-24 Yao Qi <yao@codesourcery.com>
4206 * target.h (enum target_xfer_status)
4207 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4208 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4210 * corefile.c (memory_error_message): User updated.
4211 * exec.c (section_table_read_available_memory): Likewise.
4212 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4213 * target.c (target_xfer_status_to_string): Likewise.
4214 (raw_memory_xfer_partial): Likewise.
4215 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4216 * valops.c (read_value_memory): Likewise.
4217 * exec.h: Update comments.
4219 2014-02-24 Yao Qi <yao@codesourcery.com>
4221 * target.c (target_xfer_status_to_string): Rename argument err
4223 * target.h (target_xfer_status_to_string): Update declaration.
4224 Replace target_xfer_error_to_string with
4225 target_xfer_status_to_string in comment.
4227 2014-02-24 Yao Qi <yao@codesourcery.com>
4229 * mips-linux-nat.c (super_close): Update its type.
4230 (mips_linux_close): Pass 'self' to super_close.
4232 2014-02-24 Yao Qi <yao@codesourcery.com>
4234 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4235 * corefile.c (read_memory): Adjusted.
4236 * target.c (target_write_with_progress): Adjusted.
4238 2014-02-23 Yao Qi <yao@codesourcery.com>
4242 2013-10-25 Yao Qi <yao@codesourcery.com>
4244 * remote.c (remote_traceframe_info): Return early if
4245 traceframe is not selected.
4247 2013-07-19 Yao Qi <yao@codesourcery.com>
4249 * target.c (update_current_target): Change the default action
4250 of 'to_traceframe_info' from tcomplain to return_zero.
4251 * target.h (struct target_ops) <to_traceframe_info>: Add more
4254 2014-02-23 Yao Qi <yao@codesourcery.com>
4256 * valops.c (read_value_memory): Rewrite it. Call
4257 target_xfer_partial in a loop.
4258 * exec.h (section_table_available_memory): Remove declaration.
4259 Move comments to ...
4260 * exec.c (section_table_available_memory): ... here. Make it
4263 2014-02-23 Yao Qi <yao@codesourcery.com>
4265 * exec.c (section_table_read_available_memory): New function.
4266 * exec.h (section_table_read_available_memory): Declare.
4267 * ctf.c (ctf_xfer_partial): Call
4268 section_table_read_available_memory.
4269 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4271 2014-02-23 Yao Qi <yao@codesourcery.com>
4273 * ctf.c (ctf_xfer_partial): Move code to ...
4274 * exec.c (exec_read_partial_read_only): ... it. New function.
4275 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4276 * tracefile.c: Include "exec.h".
4277 * exec.h (exec_read_partial_read_only): Declare.
4279 2014-02-23 Yao Qi <yao@codesourcery.com>
4281 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4282 (tfile_has_memory): Remove.
4283 (init_tfile_ops): Don't set fields to_has_all_memory and
4284 to_has_memory of tfile_ops.
4285 * tracefile.c (tracefile_has_all_memory): New function.
4286 (tracefile_has_memory): New function.
4287 (init_tracefile_ops): Initialize fields to_has_all_memory and
4288 to_has_memory of 'ops'.
4290 2014-02-23 Yao Qi <yao@codesourcery.com>
4292 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4293 (ctf_thread_alive, ctf_get_trace_status): Remove.
4294 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4296 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4297 (tfile_has_stack, tfile_has_registers): Remove.
4298 (tfile_thread_alive): Remove.
4299 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4301 * tracefile.c (tracefile_has_stack): New function.
4302 (tracefile_has_registers): New function.
4303 (tracefile_thread_alive): New function.
4304 (tracefile_get_trace_status): New function.
4305 (init_tracefile_ops): New function.
4306 * tracefile.h (init_tracefile_ops): Declare.
4308 2014-02-23 Yao Qi <yao@codesourcery.com>
4310 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4311 (O_LARGEFILE): Likewise.
4312 (tfile_ops): Likewise.
4313 (TRACE_HEADER_SIZE): Likewise.
4314 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4315 (cur_data_size): Likewise.
4316 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4317 (tfile_close, tfile_files_info): Likewise.
4318 (tfile_get_trace_status): Likewise.
4319 (tfile_get_tracepoint_status): Likewise.
4320 (tfile_get_traceframe_address): Likewise.
4321 (tfile_trace_find, match_blocktype): Likewise.
4322 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4323 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4324 (tfile_get_trace_state_variable_value): Likewise.
4325 (tfile_has_all_memory, tfile_has_memory): Likewise.
4326 (tfile_has_stack, tfile_has_registers): Likewise.
4327 (tfile_thread_alive, build_traceframe_info): Likewise.
4328 (tfile_traceframe_info, init_tfile_ops): Likewise.
4329 (_initialize_tracepoint): Don't call init_tfile_ops
4330 and add_target_with_completer.
4331 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4332 exec.h, completer.h and filenames.h.
4333 (_initialize_tracefile_tfile): New function.
4335 2014-02-23 Yao Qi <yao@codesourcery.com>
4337 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4339 (HFILES_NO_SRCDIR): Add tracefile.h.
4340 * ctf.c: Include "tracefile.h".
4341 * tracefile.h: New file.
4342 * tracefile.c: New file
4343 * tracefile-tfile.c: New file.
4344 * tracepoint.c: Include "tracefile.h".
4345 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4346 (stop_reason_names): Add const.
4347 (trace_file_writer_xfree): Move it to tracefile.c.
4348 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4349 (trace_save_ctf): Likewise.
4350 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4351 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4352 (tfile_write_header, tfile_write_regblock_type): Likewise.
4353 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4354 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4355 (tfile_write_raw_data, tfile_end): Likewise.
4356 (tfile_trace_file_writer_new): Likewise.
4357 (free_uploaded_tp): Make it extern.
4358 (free_uploaded_tsv): Make it extern.
4359 (_initialize_tracepoint): Move code to register command 'tsave'
4361 * tracepoint.h (stop_reason_names): Declare.
4362 (struct trace_frame_write_ops): Move it to tracefile.h.
4363 (struct trace_file_write_ops): Likewise.
4364 (struct trace_file_writer): Likewise.
4365 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4367 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4370 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4372 (get_cores_used_by_process): New parameter num_cores, use it.
4373 (linux_xfer_osdata_processes): Pass num_cores to it.
4374 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4377 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4379 * target.c (memory_xfer_partial): Fix length arg in call to
4380 breakpoint_xfer_memory.
4382 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4385 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4386 number comes after the + or - signs. Adjust length of register
4387 name to be extracted.
4389 2014-02-20 Tom Tromey <tromey@redhat.com>
4391 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4392 (ada_varobj_ops): Mark "extern".
4394 2014-02-20 Tom Tromey <tromey@redhat.com>
4396 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4398 2014-02-20 Doug Evans <xdje42@gmail.com>
4400 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4401 All callers updated.
4402 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4403 All callers updated.
4404 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4405 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4407 2014-02-20 lin zuojian <manjian2006@gmail.com>
4408 Joel Brobecker <brobecker@adacore.com>
4409 Doug Evans <xdje42@gmail.com>
4412 * dwarf2read.c (struct die_info): New member in_process.
4413 (reset_die_in_process): New function.
4414 (process_die): Set it at the start, reset when returning.
4415 (inherit_abstract_dies): Only call process_die if origin_child_die
4416 not already being processed.
4418 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4420 * windows-nat.c (handle_unload_dll): Add function documentation.
4421 (do_initial_windows_stuff): Add comment explaining why we wait
4422 until after inferior initialization has finished before
4423 processing all DLLs.
4425 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4427 * windows-nat.c (get_module_name): Delete.
4428 (windows_get_exec_module_filename): New function, mostly
4429 inspired from get_module_name.
4430 (windows_pid_to_exec_file): Replace call to get_module_name
4431 by call to windows_get_exec_module_filename.
4433 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4435 * windows-nat.c (handle_load_dll): Rewrite this function's
4436 introductory comment. Remove code using get_module_name
4437 to get the DLL's name.
4439 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4441 * windows-nat.c (get_windows_debug_event): Ignore
4442 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4443 if windows_initialization_done == 0.
4444 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4445 Adjust implementation to always load all DLLs.
4446 (do_initial_windows_stuff): Replace call to
4447 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4449 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4451 * windows-nat.c (_initialize_windows_nat): Deprecate the
4452 "dll-symbols" command. Turn the "add-shared-symbol-files"
4453 and "assf" aliases into commands, and deprecate them as well.
4454 * NEWS: Add entry explaining that "dll-symbols" and its two
4455 aliases are now deprecated.
4457 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4459 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4460 new-line in debug string. Remove trailing spaces.
4462 2014-02-19 Stan Shebs <stan@codesourcery.com>
4464 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4466 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4468 * NEWS: Add entry for the new feature
4469 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4472 2014-02-19 Stan Shebs <stan@codesourcery.com>
4474 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4476 2014-02-19 Pedro Alves <palves@redhat.com>
4478 * common/ptid.h (struct ptid): Mention that process_stratum
4479 targets should prefer ptid.lwp.
4481 2014-02-19 Pedro Alves <palves@redhat.com>
4483 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4484 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4485 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4486 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4487 store remote thread ids rather than ptid.tid.
4488 (_initialize_remote): Adjust.
4490 2014-02-19 Tom Tromey <tromey@redhat.com>
4492 * target.c (target_get_unwinder): Rewrite.
4493 (target_get_tailcall_unwinder): Rewrite.
4494 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4495 (record_btrace_to_get_tailcall_unwinder): New function.
4496 (init_record_btrace_ops): Update.
4497 * target.h (struct target_ops) <to_get_unwinder,
4498 to_get_tailcall_unwinder>: Now function pointers. Use
4499 TARGET_DEFAULT_RETURN.
4501 2014-02-19 Tom Tromey <tromey@redhat.com>
4503 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4505 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4507 2014-02-19 Tom Tromey <tromey@redhat.com>
4509 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4511 * target-delegates.c: Rebuild.
4512 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4513 TARGET_DEFAULT_FUNC.
4514 * target.c (default_target_decr_pc_after_break): Rename from
4515 forward_target_decr_pc_after_break. Simplify.
4516 (target_decr_pc_after_break): Rely on delegation.
4518 2014-02-19 Tom Tromey <tromey@redhat.com>
4520 * target.c (update_current_target): Do not INHERIT to_doc or
4521 to_magic. Do not de_fault to_open or to_close.
4523 2014-02-19 Tom Tromey <tromey@redhat.com>
4525 * gcore.h (objfile_find_memory_regions): Declare.
4526 * gcore.c (objfile_find_memory_regions): No longer static. Add
4528 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4529 * exec.c: Include gcore.h.
4530 (exec_set_find_memory_regions): Remove.
4531 (exec_find_memory_regions): Remove.
4532 (exec_do_find_memory_regions): Remove.
4533 (init_exec_ops): Update.
4534 * defs.h (exec_set_find_memory_regions): Remove.
4536 2014-02-19 Tom Tromey <tromey@redhat.com>
4538 * target-delegates.c: Rebuild.
4539 * target.h (struct target_ops) <to_extra_thread_info,
4540 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4541 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4542 not 0, in TARGET_DEFAULT_RETURN.
4544 2014-02-19 Tom Tromey <tromey@redhat.com>
4546 * target.c (complete_target_initialization): Remove casts. Use
4547 return_zero_has_execution.
4548 (return_zero): Add "ignore" argument.
4549 (return_zero_has_execution): New function.
4550 (init_dummy_target): Remove casts. Use
4551 return_zero_has_execution.
4553 2014-02-19 Tom Tromey <tromey@redhat.com>
4555 * target.c (update_current_target): Update comments. Do not
4558 2014-02-19 Tom Tromey <tromey@redhat.com>
4560 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4562 * corelow.c (core_read_description): Delegate when needed.
4563 * remote.c (remote_read_description): Delegate when needed.
4564 * target-delegates.c: Rebuild.
4565 * target.c (target_read_description): Rewrite.
4566 * target.h (struct target_ops) <to_read_description>: Update
4567 comment. Use TARGET_DEFAULT_RETURN.
4569 2014-02-19 Tom Tromey <tromey@redhat.com>
4571 * target-delegates.c: Rebuild.
4572 * target.c (update_current_target): Don't inherit or default
4574 (find_default_run_target): Check against delegate_can_run.
4575 * target.h (struct target_ops) <to_can_run>: Use
4576 TARGET_DEFAULT_RETURN.
4578 2014-02-19 Tom Tromey <tromey@redhat.com>
4580 * target-delegates.c: Rebuild.
4581 * target.c (target_disconnect): Unconditionally delegate.
4582 * target.h (struct target_ops) <to_disconnect>: Use
4583 TARGET_DEFAULT_NORETURN.
4585 2014-02-19 Tom Tromey <tromey@redhat.com>
4587 * record.c (record_stop): Unconditionally delegate.
4588 * target-delegates.c: Rebuild.
4589 * target.c (target_stop_recording): Unconditionally delegate.
4590 * target.h (struct target_ops) <to_stop_recording>: Use
4591 TARGET_DEFAULT_IGNORE.
4593 2014-02-19 Tom Tromey <tromey@redhat.com>
4595 * target-delegates.c: Rebuild.
4596 * target.c (target_enable_btrace): Unconditionally delegate.
4597 * target.h (struct target_ops) <to_enable_btrace>: Use
4598 TARGET_DEFAULT_NORETURN.
4600 2014-02-19 Tom Tromey <tromey@redhat.com>
4602 * target-delegates.c: Rebuild.
4603 * target.c (target_read_btrace): Unconditionally delegate.
4604 * target.h (struct target_ops) <to_read_btrace>: Use
4605 TARGET_DEFAULT_NORETURN.
4607 2014-02-19 Tom Tromey <tromey@redhat.com>
4609 * target-delegates.c: Rebuild.
4610 * target.c (target_teardown_btrace): Unconditionally delegate.
4611 * target.h (struct target_ops) <to_teardown_btrace>: Use
4612 TARGET_DEFAULT_NORETURN.
4614 2014-02-19 Tom Tromey <tromey@redhat.com>
4616 * target-delegates.c: Rebuild.
4617 * target.c (target_disable_btrace): Unconditionally delegate.
4618 * target.h (struct target_ops) <to_disable_btrace>: Use
4619 TARGET_DEFAULT_NORETURN.
4621 2014-02-19 Tom Tromey <tromey@redhat.com>
4623 * target-delegates.c: Rebuild.
4624 * target.c (default_search_memory): New function.
4625 (simple_search_memory): Update comment.
4626 (target_search_memory): Unconditionally delegate.
4627 * target.h (struct target_ops) <to_search_memory>: Use
4628 TARGET_DEFAULT_FUNC.
4630 2014-02-19 Tom Tromey <tromey@redhat.com>
4632 * auxv.c (default_auxv_parse): No longer static.
4633 (target_auxv_parse): Unconditionally delegate.
4634 * auxv.h (default_auxv_parse): Declare.
4635 * target-delegates.c: Rebuild.
4636 * target.c: Include auxv.h.
4637 * target.h (struct target_ops) <to_auxv_parse>: Use
4638 TARGET_DEFAULT_FUNC.
4640 2014-02-19 Tom Tromey <tromey@redhat.com>
4642 * target-delegates.c: Rebuild.
4643 * target.c (target_memory_map): Unconditionally delegate.
4644 * target.h (struct target_ops) <to_memory_map>: Use
4645 TARGET_DEFAULT_RETURN.
4647 2014-02-19 Tom Tromey <tromey@redhat.com>
4649 * target-delegates.c: Rebuild.
4650 * target.c (target_thread_alive): Unconditionally delegate.
4651 * target.h (struct target_ops) <to_thread_alive>: Use
4652 TARGET_DEFAULT_RETURN.
4654 2014-02-19 Tom Tromey <tromey@redhat.com>
4656 * target-delegates.c: Rebuild.
4657 * target.c (target_save_record): Unconditionally delegate.
4658 * target.h (struct target_ops) <to_save_record>: Use
4659 TARGET_DEFAULT_NORETURN.
4661 2014-02-19 Tom Tromey <tromey@redhat.com>
4663 * target-delegates.c: Rebuild.
4664 * target.c (target_delete_record): Unconditionally delegate.
4665 * target.h (struct target_ops) <to_delete_record>: Use
4666 TARGET_DEFAULT_NORETURN.
4668 2014-02-19 Tom Tromey <tromey@redhat.com>
4670 * target-delegates.c: Rebuild.
4671 * target.c (target_record_is_replaying): Unconditionally
4673 * target.h (struct target_ops) <to_record_is_replaying>: Use
4674 TARGET_DEFAULT_RETURN.
4676 2014-02-19 Tom Tromey <tromey@redhat.com>
4678 * target-delegates.c: Rebuild.
4679 * target.c (target_goto_record_begin): Unconditionally delegate.
4680 * target.h (struct target_ops) <to_goto_record_begin>: Use
4681 TARGET_DEFAULT_NORETURN.
4683 2014-02-19 Tom Tromey <tromey@redhat.com>
4685 * target-delegates.c: Rebuild.
4686 * target.c (target_goto_record_end): Unconditionally delegate.
4687 * target.h (struct target_ops) <to_goto_record_end>: Use
4688 TARGET_DEFAULT_NORETURN.
4690 2014-02-19 Tom Tromey <tromey@redhat.com>
4692 * target-delegates.c: Rebuild.
4693 * target.c (target_goto_record): Unconditionally delegate.
4694 * target.h (struct target_ops) <to_goto_record>: Use
4695 TARGET_DEFAULT_NORETURN.
4697 2014-02-19 Tom Tromey <tromey@redhat.com>
4699 * target-delegates.c: Rebuild.
4700 * target.c (target_insn_history): Unconditionally delegate.
4701 * target.h (struct target_ops) <to_insn_history>: Use
4702 TARGET_DEFAULT_NORETURN.
4704 2014-02-19 Tom Tromey <tromey@redhat.com>
4706 * target-delegates.c: Rebuild.
4707 * target.c (target_insn_history_from): Unconditionally delegate.
4708 * target.h (struct target_ops) <to_insn_history_from>: Use
4709 TARGET_DEFAULT_NORETURN.
4711 2014-02-19 Tom Tromey <tromey@redhat.com>
4713 * target-delegates.c: Rebuild.
4714 * target.c (target_insn_history_range): Unconditionally delegate.
4715 * target.h (struct target_ops) <to_insn_history_range>: Use
4716 TARGET_DEFAULT_NORETURN.
4718 2014-02-19 Tom Tromey <tromey@redhat.com>
4720 * target-delegates.c: Rebuild.
4721 * target.c (target_call_history): Unconditionally delegate.
4722 * target.h (struct target_ops) <to_call_history>: Use
4723 TARGET_DEFAULT_NORETURN.
4725 2014-02-19 Tom Tromey <tromey@redhat.com>
4727 * target-delegates.c: Rebuild.
4728 * target.c (target_call_history_from): Unconditionally delegate.
4729 * target.h (struct target_ops) <to_call_history_from>: Use
4730 TARGET_DEFAULT_NORETURN.
4732 2014-02-19 Tom Tromey <tromey@redhat.com>
4734 * target-delegates.c: Rebuild.
4735 * target.c (target_call_history_range): Unconditionally delegate.
4736 * target.h (struct target_ops) <to_call_history_range>: Use
4737 TARGET_DEFAULT_NORETURN.
4739 2014-02-19 Tom Tromey <tromey@redhat.com>
4741 * target-delegates.c: Rebuild.
4742 * target.c (target_verify_memory): Unconditionally delegate.
4743 * target.h (struct target_ops) <to_verify_memory>: Use
4744 TARGET_DEFAULT_NORETURN.
4746 2014-02-19 Tom Tromey <tromey@redhat.com>
4748 * target-delegates.c: Rebuild.
4749 * target.c (target_core_of_thread): Unconditionally delegate.
4750 * target.h (struct target_ops) <to_core_of_thread>: Use
4751 TARGET_DEFAULT_RETURN.
4753 2014-02-19 Tom Tromey <tromey@redhat.com>
4755 * target-delegates.c: Rebuild.
4756 * target.c (target_flash_done): Unconditionally delegate.
4757 * target.h (struct target_ops) <to_flash_done>: Use
4758 TARGET_DEFAULT_NORETURN.
4760 2014-02-19 Tom Tromey <tromey@redhat.com>
4762 * target-delegates.c: Rebuild.
4763 * target.c (target_flash_erase): Unconditionally delegate.
4764 * target.h (struct target_ops) <to_flash_erase>: Use
4765 TARGET_DEFAULT_NORETURN.
4767 2014-02-19 Tom Tromey <tromey@redhat.com>
4769 * target-delegates.c: Rebuild.
4770 * target.c (target_get_section_table): Unconditionally delegate.
4771 * target.h (struct target_ops) <to_get_section_table>: Use
4772 TARGET_DEFAULT_RETURN.
4774 2014-02-19 Tom Tromey <tromey@redhat.com>
4776 * target-delegates.c: Rebuild.
4777 * target.c (target_pid_to_str): Unconditionally delegate.
4778 (init_dummy_target): Don't initialize to_pid_to_str.
4779 (default_pid_to_str): Rename from dummy_pid_to_str.
4780 * target.h (struct target_ops) <to_pid_to_str>: Use
4781 TARGET_DEFAULT_FUNC.
4783 2014-02-19 Tom Tromey <tromey@redhat.com>
4785 * target-delegates.c: Rebuild.
4786 * target.c (target_find_new_threads): Unconditionally delegate.
4787 * target.h (struct target_ops) <to_find_new_threads>: Use
4788 TARGET_DEFAULT_RETURN.
4790 2014-02-19 Tom Tromey <tromey@redhat.com>
4792 * target-delegates.c: Rebuild.
4793 * target.c (target_program_signals): Unconditionally delegate.
4794 * target.h (struct target_ops) <to_program_signals>: Use
4795 TARGET_DEFAULT_IGNORE.
4797 2014-02-19 Tom Tromey <tromey@redhat.com>
4799 * target-delegates.c: Rebuild.
4800 * target.c (target_pass_signals): Unconditionally delegate.
4801 * target.h (struct target_ops) <to_pass_signals>: Use
4802 TARGET_DEFAULT_IGNORE.
4804 2014-02-19 Tom Tromey <tromey@redhat.com>
4806 * target-delegates.c: Rebuild.
4807 * target.c (default_mourn_inferior): New function.
4808 (target_mourn_inferior): Unconditionally delegate.
4809 * target.h (struct target_ops) <to_mourn_inferior>: Use
4810 TARGET_DEFAULT_FUNC.
4812 2014-02-19 Tom Tromey <tromey@redhat.com>
4814 * target-delegates.c: Rebuild.
4815 * target.c (default_follow_fork): New function.
4816 (target_follow_fork): Unconditionally delegate.
4817 * target.h (struct target_ops) <to_follow_fork>: Use
4818 TARGET_DEFAULT_FUNC.
4820 2014-02-19 Tom Tromey <tromey@redhat.com>
4822 * target-delegates.c: Rebuild.
4823 * target.c (target_kill): Unconditionally delegate.
4824 * target.h (struct target_ops) <to_kill>: Use
4825 TARGET_DEFAULT_NORETURN.
4827 2014-02-19 Tom Tromey <tromey@redhat.com>
4829 * target-delegates.c: Rebuild.
4830 * target.c (target_masked_watch_num_registers): Unconditionally
4832 * target.h (struct target_ops) <to_masked_watch_num_registers>:
4833 Use TARGET_DEFAULT_RETURN.
4835 2014-02-19 Tom Tromey <tromey@redhat.com>
4837 * target-delegates.c: Rebuild.
4838 * target.c (target_remove_mask_watchpoint): Unconditionally
4840 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
4841 TARGET_DEFAULT_RETURN.
4843 2014-02-19 Tom Tromey <tromey@redhat.com>
4845 * target-delegates.c: Rebuild.
4846 * target.c (target_insert_mask_watchpoint): Unconditionally
4848 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
4849 TARGET_DEFAULT_RETURN.
4851 2014-02-19 Tom Tromey <tromey@redhat.com>
4853 * target-delegates.c: Rebuild.
4854 * target.c (target_ranged_break_num_registers): Unconditionally
4856 * target.h (struct target_ops) <to_ranged_break_num_registers>:
4857 Use TARGET_DEFAULT_RETURN.
4859 2014-02-19 Tom Tromey <tromey@redhat.com>
4861 * target-delegates.c: Rebuild.
4862 * target.c (target_fetch_registers): Unconditionally delegate.
4863 * target.h (struct target_ops) <to_fetch_registers>: Use
4864 TARGET_DEFAULT_NORETURN.
4866 2014-02-19 Tom Tromey <tromey@redhat.com>
4868 * target-delegates.c: Rebuild.
4869 * target.c (update_current_target): Don't inherit or default
4871 * target.h (struct target_ops) <to_stop>: Use
4872 TARGET_DEFAULT_IGNORE.
4874 2014-02-19 Tom Tromey <tromey@redhat.com>
4876 * target-delegates.c: Rebuild.
4877 * target.c (update_current_target): Don't inherit or default
4878 to_can_run_breakpoint_commands.
4879 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
4880 Use TARGET_DEFAULT_RETURN.
4882 2014-02-19 Tom Tromey <tromey@redhat.com>
4884 * target-delegates.c: Rebuild.
4885 * target.c (update_current_target): Don't inherit or default
4886 to_supports_evaluation_of_breakpoint_conditions.
4887 * target.h (struct target_ops)
4888 <to_supports_evaluation_of_breakpoint_conditions>: Use
4889 TARGET_DEFAULT_RETURN.
4891 2014-02-19 Tom Tromey <tromey@redhat.com>
4893 * target-delegates.c: Rebuild.
4894 * target.c (update_current_target): Don't inherit or default
4895 to_augmented_libraries_svr4_read.
4896 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
4897 Use TARGET_DEFAULT_RETURN.
4899 2014-02-19 Tom Tromey <tromey@redhat.com>
4901 * target-delegates.c: Rebuild.
4902 * target.c (update_current_target): Don't inherit or default
4904 * target.h (struct target_ops) <to_can_use_agent>: Use
4905 TARGET_DEFAULT_RETURN.
4907 2014-02-19 Tom Tromey <tromey@redhat.com>
4909 * target-delegates.c: Rebuild.
4910 * target.c (update_current_target): Don't inherit or default
4912 * target.h (struct target_ops) <to_use_agent>: Use
4913 TARGET_DEFAULT_NORETURN.
4915 2014-02-19 Tom Tromey <tromey@redhat.com>
4917 * target-delegates.c: Rebuild.
4918 * target.c (update_current_target): Don't inherit or default
4920 (return_null): Remove.
4921 * target.h (struct target_ops) <to_traceframe_info>: Use
4922 TARGET_DEFAULT_RETURN.
4924 2014-02-19 Tom Tromey <tromey@redhat.com>
4926 * target-delegates.c: Rebuild.
4927 * target.c (update_current_target): Don't inherit or default
4928 to_static_tracepoint_markers_by_strid.
4929 * target.h (struct target_ops)
4930 <to_static_tracepoint_markers_by_strid>: Use
4931 TARGET_DEFAULT_NORETURN.
4933 2014-02-19 Tom Tromey <tromey@redhat.com>
4935 * target-delegates.c: Rebuild.
4936 * target.c (update_current_target): Don't inherit or default
4937 to_static_tracepoint_marker_at.
4938 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
4939 Use TARGET_DEFAULT_RETURN.
4941 2014-02-19 Tom Tromey <tromey@redhat.com>
4943 * target-delegates.c: Rebuild.
4944 * target.c (update_current_target): Don't inherit or default
4946 * target.h (struct target_ops) <to_set_permissions>: Use
4947 TARGET_DEFAULT_IGNORE.
4949 2014-02-19 Tom Tromey <tromey@redhat.com>
4951 * target-delegates.c: Rebuild.
4952 * target.c (update_current_target): Don't inherit or default
4954 * target.h (struct target_ops) <to_get_tib_address>: Use
4955 TARGET_DEFAULT_NORETURN.
4957 2014-02-19 Tom Tromey <tromey@redhat.com>
4959 * target-delegates.c: Rebuild.
4960 * target.c (update_current_target): Don't inherit or default
4962 * target.h (struct target_ops) <to_set_trace_notes>: Use
4963 TARGET_DEFAULT_RETURN.
4965 2014-02-19 Tom Tromey <tromey@redhat.com>
4967 * target-delegates.c: Rebuild.
4968 * target.c (update_current_target): Don't initialize
4969 to_set_trace_buffer_size.
4970 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
4971 TARGET_DEFAULT_IGNORE.
4973 2014-02-19 Tom Tromey <tromey@redhat.com>
4975 * target-delegates.c: Rebuild.
4976 * target.c (update_current_target): Don't inherit or default
4977 to_set_circular_trace_buffer.
4978 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
4979 TARGET_DEFAULT_IGNORE.
4981 2014-02-19 Tom Tromey <tromey@redhat.com>
4983 * target-delegates.c: Rebuild.
4984 * target.c (update_current_target): Don't inherit or default
4985 to_set_disconnected_tracing.
4986 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
4987 TARGET_DEFAULT_IGNORE.
4989 2014-02-19 Tom Tromey <tromey@redhat.com>
4991 * target-delegates.c: Rebuild.
4992 * target.c (update_current_target): Don't inherit or default
4993 to_get_min_fast_tracepoint_insn_len.
4994 (return_minus_one): Remove.
4995 * target.h (struct target_ops)
4996 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
4998 2014-02-19 Tom Tromey <tromey@redhat.com>
5000 * target-delegates.c: Rebuild.
5001 * target.c (update_current_target): Don't inherit or default
5002 to_get_raw_trace_data.
5003 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5004 TARGET_DEFAULT_NORETURN.
5006 2014-02-19 Tom Tromey <tromey@redhat.com>
5008 * target-delegates.c: Rebuild.
5009 * target.c (update_current_target): Don't inherit or default
5010 to_upload_trace_state_variables.
5011 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5012 Use TARGET_DEFAULT_RETURN.
5014 2014-02-19 Tom Tromey <tromey@redhat.com>
5016 * target-delegates.c: Rebuild.
5017 * target.c (update_current_target): Don't inherit or default
5018 to_upload_tracepoints.
5019 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5020 TARGET_DEFAULT_RETURN.
5022 2014-02-19 Tom Tromey <tromey@redhat.com>
5024 * target-delegates.c: Rebuild.
5025 * target.c (update_current_target): Don't inherit or default
5027 * target.h (struct target_ops) <to_save_trace_data>: Use
5028 TARGET_DEFAULT_NORETURN.
5030 2014-02-19 Tom Tromey <tromey@redhat.com>
5032 * target-delegates.c: Rebuild.
5033 * target.c (update_current_target): Don't inherit or default
5034 to_get_trace_state_variable_value.
5035 * target.h (struct target_ops)
5036 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5038 2014-02-19 Tom Tromey <tromey@redhat.com>
5040 * target-delegates.c: Rebuild.
5041 * target.c (update_current_target): Don't inherit or default
5043 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
5045 2014-02-19 Tom Tromey <tromey@redhat.com>
5047 * target-delegates.c: Rebuild.
5048 * target.c (update_current_target): Don't inherit or default
5050 * target.h (struct target_ops) <to_trace_stop>: Use
5051 TARGET_DEFAULT_NORETURN.
5053 2014-02-19 Tom Tromey <tromey@redhat.com>
5055 * target-delegates.c: Rebuild.
5056 * target.c (update_current_target): Don't inherit or default
5057 to_get_tracepoint_status.
5058 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5059 TARGET_DEFAULT_NORETURN.
5061 2014-02-19 Tom Tromey <tromey@redhat.com>
5063 * target-delegates.c: Rebuild.
5064 * target.c (update_current_target): Don't inherit or default
5065 to_get_trace_status.
5066 * target.h (struct target_ops) <to_get_trace_status>: Use
5067 TARGET_DEFAULT_RETURN.
5069 2014-02-19 Tom Tromey <tromey@redhat.com>
5071 * target-delegates.c: Rebuild.
5072 * target.c (update_current_target): Don't inherit or default
5074 * target.h (struct target_ops) <to_trace_start>: Use
5075 TARGET_DEFAULT_NORETURN.
5077 2014-02-19 Tom Tromey <tromey@redhat.com>
5079 * target-delegates.c: Rebuild.
5080 * target.c (update_current_target): Don't inherit or default
5081 to_trace_set_readonly_regions.
5082 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5083 Use TARGET_DEFAULT_NORETURN.
5085 2014-02-19 Tom Tromey <tromey@redhat.com>
5087 * target-delegates.c: Rebuild.
5088 * target.c (update_current_target): Don't inherit or default
5089 to_disable_tracepoint.
5090 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5091 TARGET_DEFAULT_NORETURN.
5093 2014-02-19 Tom Tromey <tromey@redhat.com>
5095 * target-delegates.c: Rebuild.
5096 * target.c (update_current_target): Don't inherit or default
5097 to_enable_tracepoint.
5098 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5099 TARGET_DEFAULT_NORETURN.
5101 2014-02-19 Tom Tromey <tromey@redhat.com>
5103 * target-delegates.c: Rebuild.
5104 * target.c (update_current_target): Don't inherit or default
5105 to_download_trace_state_variable.
5106 * target.h (struct target_ops) <to_download_trace_state_variable>:
5107 Use TARGET_DEFAULT_NORETURN.
5109 2014-02-19 Tom Tromey <tromey@redhat.com>
5111 * target-delegates.c: Rebuild.
5112 * target.c (update_current_target): Don't inherit or default
5113 to_can_download_tracepoint.
5114 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5115 TARGET_DEFAULT_RETURN.
5117 2014-02-19 Tom Tromey <tromey@redhat.com>
5119 * target-delegates.c: Rebuild.
5120 * target.c (update_current_target): Don't inherit or default
5121 to_download_tracepoint.
5122 * target.h (struct target_ops) <to_download_tracepoint>: Use
5123 TARGET_DEFAULT_NORETURN.
5125 2014-02-19 Tom Tromey <tromey@redhat.com>
5127 * target-delegates.c: Rebuild.
5128 * target.c (update_current_target): Don't inherit or default
5130 * target.h (struct target_ops) <to_trace_init>: Use
5131 TARGET_DEFAULT_RETURN.
5133 2014-02-19 Tom Tromey <tromey@redhat.com>
5135 * target-delegates.c: Rebuild.
5136 * target.c (update_current_target): Don't inherit or default
5137 to_supports_string_tracing.
5138 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5139 TARGET_DEFAULT_RETURN.
5141 2014-02-19 Tom Tromey <tromey@redhat.com>
5143 * target-delegates.c: Rebuild.
5144 * target.c (update_current_target): Don't inherit or default
5145 to_supports_enable_disable_tracepoint.
5146 * target.h (struct target_ops)
5147 <to_supports_enable_disable_tracepoint>: Use
5148 TARGET_DEFAULT_RETURN.
5150 2014-02-19 Tom Tromey <tromey@redhat.com>
5152 * target-delegates.c: Rebuild.
5153 * target.c (update_current_target): Don't inherit or default
5154 to_supports_multi_process.
5155 * target.h (struct target_ops) <to_supports_multi_process>: Use
5156 TARGET_DEFAULT_RETURN.
5158 2014-02-19 Tom Tromey <tromey@redhat.com>
5160 * target-delegates.c: Rebuild.
5161 * target.c (update_current_target): Don't inherit or default
5162 to_get_ada_task_ptid.
5163 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5164 TARGET_DEFAULT_FUNC.
5166 2014-02-19 Tom Tromey <tromey@redhat.com>
5168 * target-delegates.c: Rebuild.
5169 * target.c (update_current_target): Don't inherit or default
5170 to_thread_architecture.
5171 * target.h (struct target_ops) <to_thread_architecture>: Use
5172 TARGET_DEFAULT_FUNC.
5174 2014-02-19 Tom Tromey <tromey@redhat.com>
5176 * target-delegates.c: Rebuild.
5177 * target.c (update_current_target): Don't inherit or default
5178 to_execution_direction.
5179 * target.h (struct target_ops) <to_execution_direction>: Use
5180 TARGET_DEFAULT_FUNC.
5182 2014-02-19 Tom Tromey <tromey@redhat.com>
5184 * target-delegates.c: Rebuild.
5185 * target.c (update_current_target): Don't inherit or default
5186 to_can_execute_reverse.
5187 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5188 TARGET_DEFAULT_RETURN.
5189 (target_can_execute_reverse): Unconditionally delegate.
5191 2014-02-19 Tom Tromey <tromey@redhat.com>
5193 * target-delegates.c: Rebuild.
5194 * target.c (update_current_target): Don't inherit or default
5196 (dummy_goto_bookmark): Remove.
5197 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5198 * target.h (struct target_ops) <to_goto_bookmark>: Use
5199 TARGET_DEFAULT_NORETURN.
5201 2014-02-19 Tom Tromey <tromey@redhat.com>
5203 * target-delegates.c: Rebuild.
5204 * target.c (update_current_target): Don't inherit or default
5206 (dummy_get_bookmark): Remove.
5207 (init_dummy_target): Don't inherit or default to_get_bookmark.
5208 * target.h (struct target_ops) <to_get_bookmark>: Use
5209 TARGET_DEFAULT_NORETURN
5211 2014-02-19 Tom Tromey <tromey@redhat.com>
5213 * target-delegates.c: Rebuild.
5214 * target.c (update_current_target): Don't inherit or default
5215 to_make_corefile_notes.
5216 (init_dummy_target): Don't initialize to_make_corefile_notes.
5217 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5218 TARGET_DEFAULT_FUNC.
5220 2014-02-19 Tom Tromey <tromey@redhat.com>
5222 * target-delegates.c: Rebuild.
5223 * target.c (update_current_target): Don't inherit or default
5224 to_find_memory_regions.
5225 (init_dummy_target): Don't initialize to_find_memory_regions.
5226 * target.h (struct target_ops) <to_find_memory_regions>: Use
5227 TARGET_DEFAULT_FUNC.
5229 2014-02-19 Tom Tromey <tromey@redhat.com>
5231 * target-delegates.c: Rebuild.
5232 * target.c (update_current_target): Don't inherit or default
5234 * target.h (struct target_ops) <to_log_command>: Use
5235 TARGET_DEFAULT_IGNORE.
5236 (target_log_command): Unconditionally delegate.
5238 2014-02-19 Tom Tromey <tromey@redhat.com>
5240 * target-delegates.c: Rebuild.
5241 * target.c (update_current_target): Don't inherit or default
5242 to_pid_to_exec_file.
5243 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5244 TARGET_DEFAULT_RETURN.
5246 2014-02-19 Tom Tromey <tromey@redhat.com>
5248 * target-delegates.c: Rebuild.
5249 * target.c (update_current_target): Don't inherit or default
5251 (target_thread_name): Unconditionally delegate.
5252 * target.h (struct target_ops) <to_thread_name>: Use
5253 TARGET_DEFAULT_RETURN.
5255 2014-02-19 Tom Tromey <tromey@redhat.com>
5257 * target-delegates.c: Rebuild.
5258 * target.c (update_current_target): Don't inherit or default
5259 to_extra_thread_info.
5260 * target.h (struct target_ops) <to_extra_thread_info>: Use
5261 TARGET_DEFAULT_RETURN.
5263 2014-02-19 Tom Tromey <tromey@redhat.com>
5265 * target-delegates.c: Rebuild.
5266 * target.c (update_current_target): Don't inherit or default
5268 * target.h (struct target_ops) <to_has_exited>: Use
5269 TARGET_DEFAULT_RETURN..
5271 2014-02-19 Tom Tromey <tromey@redhat.com>
5273 * target-delegates.c: Rebuild.
5274 * target.c (update_current_target): Don't inherit or default
5275 to_set_syscall_catchpoint.
5276 (return_one): Remove.
5277 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5278 TARGET_DEFAULT_RETURN.
5280 2014-02-19 Tom Tromey <tromey@redhat.com>
5282 * target-delegates.c: Rebuild.
5283 * target.c (update_current_target): Don't inherit or default
5284 to_insert_exec_catchpoint.
5285 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5286 TARGET_DEFAULT_RETURN.
5288 2014-01-08 Tom Tromey <tromey@redhat.com>
5290 * target-delegates.c: Rebuild.
5291 * target.c (update_current_target): Don't inherit or default
5292 to_insert_exec_catchpoint.
5293 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5294 TARGET_DEFAULT_RETURN.
5296 2014-02-19 Tom Tromey <tromey@redhat.com>
5298 * target-delegates.c: Rebuild.
5299 * target.c (update_current_target): Don't inherit or default
5300 to_remove_vfork_catchpoint.
5301 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5302 TARGET_DEFAULT_RETURN.
5304 2014-02-19 Tom Tromey <tromey@redhat.com>
5306 * target-delegates.c: Rebuild.
5307 * target.c (update_current_target): Don't inherit or default
5308 to_insert_vfork_catchpoint.
5309 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5310 TARGET_DEFAULT_RETURN.
5312 2014-02-19 Tom Tromey <tromey@redhat.com>
5314 * target-delegates.c: Rebuild.
5315 * target.c (update_current_target): Don't inherit or default
5316 to_remove_fork_catchpoint.
5317 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5318 TARGET_DEFAULT_RETURN.
5320 2014-02-19 Tom Tromey <tromey@redhat.com>
5322 * target-delegates.c: Rebuild.
5323 * target.c (update_current_target): Don't inherit or default
5324 to_insert_fork_catchpoint.
5325 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5326 TARGET_DEFAULT_RETURN.
5328 2014-02-19 Tom Tromey <tromey@redhat.com>
5330 * target-delegates.c: Rebuild.
5331 * target.c (update_current_target): Don't inherit or default
5332 to_post_startup_inferior.
5333 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5334 TARGET_DEFAULT_IGNORE.
5336 2014-02-19 Tom Tromey <tromey@redhat.com>
5338 * target-delegates.c: Rebuild.
5339 * target.c (update_current_target): Don't inherit or default
5341 * target.h (struct target_ops) <to_load>: Use
5342 TARGET_DEFAULT_NORETURN.
5344 2014-02-19 Tom Tromey <tromey@redhat.com>
5346 * target-delegates.c: Rebuild.
5347 * target.c (update_current_target): Don't inherit or default
5349 * target.h (struct target_ops) <to_terminal_info>: Use
5350 TARGET_DEFAULT_FUNC.
5352 2014-02-19 Tom Tromey <tromey@redhat.com>
5354 * target-delegates.c: Rebuild.
5355 * target.c (update_current_target): Don't inherit or default
5356 to_terminal_save_ours.
5357 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5358 TARGET_DEFAULT_IGNORE.
5360 2014-02-19 Tom Tromey <tromey@redhat.com>
5362 * target-delegates.c: Rebuild.
5363 * target.c (update_current_target): Don't inherit or default
5365 * target.h (struct target_ops) <to_terminal_ours>: Use
5366 TARGET_DEFAULT_IGNORE.
5368 2014-02-19 Tom Tromey <tromey@redhat.com>
5370 * target-delegates.c: Rebuild.
5371 * target.c (update_current_target): Don't inherit or default
5372 to_terminal_ours_for_output.
5373 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5374 TARGET_DEFAULT_IGNORE.
5376 2014-02-19 Tom Tromey <tromey@redhat.com>
5378 * target-delegates.c: Rebuild.
5379 * target.c (update_current_target): Don't inherit or default
5380 to_terminal_inferior.
5381 * target.h (struct target_ops) <to_terminal_inferior>: Use
5382 TARGET_DEFAULT_IGNORE.
5384 2014-02-19 Tom Tromey <tromey@redhat.com>
5386 * target-delegates.c: Rebuild.
5387 * target.c (update_current_target): Don't inherit or default
5389 * target.h (struct target_ops) <to_terminal_init>: Use
5390 TARGET_DEFAULT_IGNORE.
5392 2014-02-19 Tom Tromey <tromey@redhat.com>
5394 * target-delegates.c: Rebuild.
5395 * target.c (update_current_target): Don't inherit or default
5396 to_can_accel_watchpoint_condition.
5397 * target.h (struct target_ops)
5398 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5400 2014-02-19 Tom Tromey <tromey@redhat.com>
5402 * target-delegates.c: Rebuild.
5403 * target.c (update_current_target): Don't inherit or default
5404 to_region_ok_for_hw_watchpoint.
5405 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5406 Use TARGET_DEFAULT_FUNC.
5408 2014-02-19 Tom Tromey <tromey@redhat.com>
5410 * target-delegates.c: Rebuild.
5411 * target.c (update_current_target): Don't inherit or default
5412 to_watchpoint_addr_within_range.
5413 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5414 Use TARGET_DEFAULT_FUNC.
5416 2014-02-19 Tom Tromey <tromey@redhat.com>
5418 * target-delegates.c: Rebuild.
5419 * target.c (update_current_target): Don't inherit or default
5420 to_remove_watchpoint.
5421 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5422 TARGET_DEFAULT_NORETURN.
5424 2014-02-19 Tom Tromey <tromey@redhat.com>
5426 * target-delegates.c: Rebuild.
5427 * target.c (update_current_target): Don't inherit or default
5428 to_insert_watchpoint.
5429 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5430 TARGET_DEFAULT_RETURN.
5432 2014-02-19 Tom Tromey <tromey@redhat.com>
5434 * target-delegates.c: Rebuild.
5435 * target.c (update_current_target): Don't inherit or default
5436 to_remove_hw_breakpoint.
5437 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5438 TARGET_DEFAULT_RETURN.
5440 2014-02-19 Tom Tromey <tromey@redhat.com>
5442 * target-delegates.c: Rebuild.
5443 * target.c (update_current_target): Don't inherit or default
5444 to_insert_hw_breakpoint.
5445 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5446 TARGET_DEFAULT_RETURN.
5448 2014-02-19 Tom Tromey <tromey@redhat.com>
5450 * target-delegates.c: Rebuild.
5451 * target.c (update_current_target): Don't inherit or default
5452 to_can_use_hw_breakpoint.
5453 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5454 TARGET_DEFAULT_RETURN.
5456 2014-02-19 Tom Tromey <tromey@redhat.com>
5458 * target-delegates.c: Rebuild.
5459 * target.c (update_current_target): Don't inherit or default
5461 * target.h (struct target_ops) <to_files_info>: Use
5462 TARGET_DEFAULT_IGNORE.
5464 2014-02-19 Tom Tromey <tromey@redhat.com>
5466 * target-delegates.c: Rebuild.
5467 * target.c (update_current_target): Don't inherit or default
5469 * target.h (struct target_ops) <to_store>: Use
5470 TARGET_DEFAULT_NORETURN.
5472 2014-02-19 Tom Tromey <tromey@redhat.com>
5474 * target-delegates.c: Rebuild.
5475 * target.c (update_current_target): Don't inherit or default
5477 * target.h (struct target_ops) <to_post_attach>: Use
5478 TARGET_DEFAULT_IGNORE.
5480 2014-02-19 Tom Tromey <tromey@redhat.com>
5482 * target-delegates.c: Rebuild.
5483 * target.c (update_current_target): Don't inherit or default
5485 (default_rcmd): New function.
5486 (do_monitor_command): Unconditionally delegate.
5487 * target.h (struct target_ops) <to_rmcd>: Use
5488 TARGET_DEFAULT_FUNC.
5490 2014-02-19 Tom Tromey <tromey@redhat.com>
5492 * target-delegates.c: Rebuild.
5493 * target.c (init_dummy_target): Don't initialize to_attach.
5494 (target_attach): Unconditionally delegate.
5495 * target.h (struct target_ops) <to_attach>: Use
5496 TARGET_DEFAULT_FUNC.
5498 2014-02-19 Tom Tromey <tromey@redhat.com>
5500 * target-delegates.c: Rebuild.
5501 * target.c (target_detach): Unconditionally delegate.
5502 (init_dummy_target): Don't initialize to_detach.
5503 * target.h (struct target_ops) <to_detach>: Use
5504 TARGET_DEFAULT_IGNORE.
5506 2014-02-19 Tom Tromey <tromey@redhat.com>
5508 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5510 (target_augmented_libraries_svr4_read): Add argument.
5511 * target.c (update_current_target): Update.
5512 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5515 2014-02-19 Tom Tromey <tromey@redhat.com>
5517 * target.h (struct target_ops) <to_call_history_range>: Add
5519 * target.c (target_call_history_range): Add argument.
5520 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5522 (record_btrace_call_history_from): Update.
5524 2014-02-19 Tom Tromey <tromey@redhat.com>
5526 * target.h (struct target_ops) <to_call_history_from>: Add
5528 * target.c (target_call_history_from): Add argument.
5529 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5532 2014-02-19 Tom Tromey <tromey@redhat.com>
5534 * target.h (struct target_ops) <to_call_history>: Add argument.
5535 * target.c (target_call_history): Add argument.
5536 * record-btrace.c (record_btrace_call_history): Add 'self'
5539 2014-02-19 Tom Tromey <tromey@redhat.com>
5541 * target.h (struct target_ops) <to_insn_history_range>: Add
5543 * target.c (target_insn_history_range): Add argument.
5544 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5546 (record_btrace_insn_history_from): Update.
5548 2014-02-19 Tom Tromey <tromey@redhat.com>
5550 * target.h (struct target_ops) <to_insn_history_from>: Add
5552 * target.c (target_insn_history_from): Add argument.
5553 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5556 2014-02-19 Tom Tromey <tromey@redhat.com>
5558 * target.h (struct target_ops) <to_insn_history>: Add argument.
5559 * target.c (target_insn_history): Add argument.
5560 * record-btrace.c (record_btrace_insn_history): Add 'self'
5563 2014-02-19 Tom Tromey <tromey@redhat.com>
5565 * target.h (struct target_ops) <to_goto_record>: Add argument.
5566 * target.c (target_goto_record): Add argument.
5567 * record-full.c (record_full_goto): Add 'self' argument.
5568 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5570 2014-02-19 Tom Tromey <tromey@redhat.com>
5572 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5573 * target.c (target_goto_record_end): Add argument.
5574 * record-full.c (record_full_goto_end): Add 'self' argument.
5575 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5577 2014-02-19 Tom Tromey <tromey@redhat.com>
5579 * target.h (struct target_ops) <to_goto_record_begin>: Add
5581 * target.c (target_goto_record_begin): Add argument.
5582 * record-full.c (record_full_goto_begin): Add 'self' argument.
5583 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5586 2014-02-19 Tom Tromey <tromey@redhat.com>
5588 * target.h (struct target_ops) <to_record_is_replaying>: Add
5590 * target.c (target_record_is_replaying): Add argument.
5591 * record-full.c (record_full_is_replaying): Add 'self' argument.
5592 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5594 (record_btrace_xfer_partial, record_btrace_store_registers)
5595 (record_btrace_prepare_to_store, record_btrace_resume)
5596 (record_btrace_wait, record_btrace_decr_pc_after_break)
5597 (record_btrace_find_new_threads, record_btrace_thread_alive):
5600 2014-02-19 Tom Tromey <tromey@redhat.com>
5602 * target.h (struct target_ops) <to_delete_record>: Add argument.
5603 * target.c (target_delete_record): Add argument.
5604 * record-full.c (record_full_delete): Add 'self' argument.
5606 2014-02-19 Tom Tromey <tromey@redhat.com>
5608 * target.h (struct target_ops) <to_save_record>: Add argument.
5609 * target.c (target_save_record): Add argument.
5610 * record-full.c (record_full_save): Add 'self' argument.
5611 (record_full_save): Add 'self' argument.
5613 2014-02-19 Tom Tromey <tromey@redhat.com>
5615 * target.h (struct target_ops) <to_info_record>: Add argument.
5616 * target.c (target_info_record): Add argument.
5617 * record.c (info_record_command): Add argument.
5618 * record-full.c (record_full_info): Add 'self' argument.
5619 * record-btrace.c (record_btrace_info): Add 'self' argument.
5621 2014-02-19 Tom Tromey <tromey@redhat.com>
5623 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5624 * target.c (target_stop_recording): Add argument.
5625 * record.c (record_stop): Add argument.
5626 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5629 2014-02-19 Tom Tromey <tromey@redhat.com>
5631 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5632 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5633 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5635 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5636 (_initialize_amd64_linux_nat): Use it.
5637 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5638 (_initialize_i386_linux_nat): Use it.
5640 2014-02-19 Tom Tromey <tromey@redhat.com>
5642 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5643 * target.c (target_teardown_btrace): Add argument.
5644 * remote.c (remote_teardown_btrace): Add 'self' argument.
5645 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5647 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5650 2014-02-19 Tom Tromey <tromey@redhat.com>
5652 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5653 * target.c (target_disable_btrace): Add argument.
5654 * remote.c (remote_disable_btrace): Add 'self' argument.
5655 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5657 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5660 2014-02-19 Tom Tromey <tromey@redhat.com>
5662 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5663 * target.c (target_enable_btrace): Add argument.
5664 * remote.c (remote_enable_btrace): Add 'self' argument.
5665 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5667 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5670 2014-02-19 Tom Tromey <tromey@redhat.com>
5672 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5673 (target_can_use_agent): Add argument.
5674 * target.c (update_current_target): Update.
5675 * remote.c (remote_can_use_agent): Add 'self' argument.
5676 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5678 2014-02-19 Tom Tromey <tromey@redhat.com>
5680 * target.h (struct target_ops) <to_use_agent>: Add argument.
5681 (target_use_agent): Add argument.
5682 * target.c (update_current_target): Update.
5683 * remote.c (remote_use_agent): Add 'self' argument.
5684 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5686 2014-02-19 Tom Tromey <tromey@redhat.com>
5688 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5689 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5690 (target_traceframe_info): Add argument.
5691 * target.c (update_current_target): Update.
5692 * remote.c (remote_traceframe_info): Add 'self' argument.
5693 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5695 2014-02-19 Tom Tromey <tromey@redhat.com>
5697 * target.h (target_static_tracepoint_markers_by_strid): Add
5699 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5701 * target.c (update_current_target): Update.
5702 * remote.c (struct target_ops)
5703 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5704 * linux-nat.c (struct target_ops)
5705 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5707 2014-02-19 Tom Tromey <tromey@redhat.com>
5709 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5711 (target_static_tracepoint_marker_at): Add argument.
5712 * target.c (update_current_target): Update.
5713 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5716 2014-02-19 Tom Tromey <tromey@redhat.com>
5718 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5719 (target_set_permissions): Add argument.
5720 * target.c (update_current_target): Update.
5721 * remote.c (remote_set_permissions): Add 'self' argument.
5722 (remote_start_remote): Update.
5724 2014-02-19 Tom Tromey <tromey@redhat.com>
5726 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
5727 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
5728 (target_get_tib_address): Add argument.
5729 * target.c (update_current_target): Update.
5730 * remote.c (remote_get_tib_address): Add 'self' argument.
5732 2014-02-19 Tom Tromey <tromey@redhat.com>
5734 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
5735 (target_set_trace_notes): Add argument.
5736 * target.c (update_current_target): Update.
5737 * remote.c (remote_set_trace_notes): Add 'self' argument.
5739 2014-02-19 Tom Tromey <tromey@redhat.com>
5741 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
5743 (target_set_trace_buffer_size): Add argument.
5744 * target.c (update_current_target): Update.
5745 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
5747 2014-02-19 Tom Tromey <tromey@redhat.com>
5749 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
5751 (target_set_circular_trace_buffer): Add argument.
5752 * target.c (update_current_target): Update.
5753 * remote.c (remote_set_circular_trace_buffer): Add 'self'
5756 2014-02-19 Tom Tromey <tromey@redhat.com>
5758 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
5760 (target_set_disconnected_tracing): Add argument.
5761 * target.c (update_current_target): Update.
5762 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
5764 2014-02-19 Tom Tromey <tromey@redhat.com>
5766 * target.h (struct target_ops)
5767 <to_get_min_fast_tracepoint_insn_len>: Add argument.
5768 (target_get_min_fast_tracepoint_insn_len): Add argument.
5769 * target.c (update_current_target): Update.
5770 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
5773 2014-02-19 Tom Tromey <tromey@redhat.com>
5775 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
5777 (target_get_raw_trace_data): Add argument.
5778 * target.c (update_current_target): Update.
5779 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
5781 2014-02-19 Tom Tromey <tromey@redhat.com>
5783 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5785 (target_upload_trace_state_variables): Add argument.
5786 * target.c (update_current_target): Update.
5787 * remote.c (remote_upload_trace_state_variables): Add 'self'
5789 (remote_start_remote): Update.
5791 2014-02-19 Tom Tromey <tromey@redhat.com>
5793 * target.h (struct target_ops) <to_upload_tracepoints>: Add
5795 (target_upload_tracepoints): Add argument.
5796 * target.c (update_current_target): Update.
5797 * remote.c (remote_upload_tracepoints): Add 'self' argument.
5798 (remote_start_remote): Update.
5800 2014-02-19 Tom Tromey <tromey@redhat.com>
5802 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
5803 (target_save_trace_data): Add argument.
5804 * target.c (update_current_target): Update.
5805 * remote.c (remote_save_trace_data): Add 'self' argument.
5807 2014-02-19 Tom Tromey <tromey@redhat.com>
5809 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
5811 * target.h (struct target_ops)
5812 <to_get_trace_state_variable_value>: Add argument.
5813 (target_get_trace_state_variable_value): Add argument.
5814 * target.c (update_current_target): Update.
5815 * remote.c (remote_get_trace_state_variable_value): Add 'self'
5817 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
5819 2014-02-19 Tom Tromey <tromey@redhat.com>
5821 * tracepoint.c (tfile_trace_find): Add 'self' argument.
5822 * target.h (struct target_ops) <to_trace_find>: Add argument.
5823 (target_trace_find): Add argument.
5824 * target.c (update_current_target): Update.
5825 * remote.c (remote_trace_find): Add 'self' argument.
5826 * ctf.c (ctf_trace_find): Add 'self' argument.
5828 2014-02-19 Tom Tromey <tromey@redhat.com>
5830 * target.h (struct target_ops) <to_trace_stop>: Add argument.
5831 (target_trace_stop): Add argument.
5832 * target.c (update_current_target): Update.
5833 * remote.c (remote_trace_stop): Add 'self' argument.
5835 2014-02-19 Tom Tromey <tromey@redhat.com>
5837 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
5838 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
5840 (target_get_tracepoint_status): Add argument.
5841 * target.c (update_current_target): Update.
5842 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
5844 2014-02-19 Tom Tromey <tromey@redhat.com>
5846 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
5847 * target.h (struct target_ops) <to_get_trace_status>: Add
5849 (target_get_trace_status): Add argument.
5850 * target.c (update_current_target): Update.
5851 * remote.c (remote_get_trace_status): Add 'self' argument.
5852 (remote_start_remote, remote_can_download_tracepoint): Update.
5853 * ctf.c (ctf_get_trace_status): Add 'self' argument.
5855 2014-02-19 Tom Tromey <tromey@redhat.com>
5857 * target.h (struct target_ops) <to_trace_start>: Add argument.
5858 (target_trace_start): Add argument.
5859 * target.c (update_current_target): Update.
5860 * remote.c (remote_trace_start): Add 'self' argument.
5862 2014-02-19 Tom Tromey <tromey@redhat.com>
5864 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5866 (target_trace_set_readonly_regions): Add argument.
5867 * target.c (update_current_target): Update.
5868 * remote.c (remote_trace_set_readonly_regions): Add 'self'
5871 2014-02-19 Tom Tromey <tromey@redhat.com>
5873 * target.h (struct target_ops) <to_disable_tracepoint>: Add
5875 (target_disable_tracepoint): Add argument.
5876 * target.c (update_current_target): Update.
5877 * remote.c (remote_disable_tracepoint): Add 'self' argument.
5879 2014-02-19 Tom Tromey <tromey@redhat.com>
5881 * target.h (struct target_ops) <to_enable_tracepoint>: Add
5883 (target_enable_tracepoint): Add argument.
5884 * target.c (update_current_target): Update.
5885 * remote.c (remote_enable_tracepoint): Add 'self' argument.
5887 2014-02-19 Tom Tromey <tromey@redhat.com>
5889 * target.h (struct target_ops) <to_download_trace_state_variable>:
5891 (target_download_trace_state_variable): Add argument.
5892 * target.c (update_current_target): Update.
5893 * remote.c (remote_download_trace_state_variable): Add 'self'
5896 2014-02-19 Tom Tromey <tromey@redhat.com>
5898 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
5900 (target_can_download_tracepoint): Add argument.
5901 * target.c (update_current_target): Update.
5902 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
5904 2014-02-19 Tom Tromey <tromey@redhat.com>
5906 * target.h (struct target_ops) <to_download_tracepoint>: Add
5908 (target_download_tracepoint): Add argument.
5909 * target.c (update_current_target): Update.
5910 * remote.c (remote_download_tracepoint): Add 'self' argument.
5912 2014-02-19 Tom Tromey <tromey@redhat.com>
5914 * target.h (struct target_ops) <to_trace_init>: Add argument.
5915 (target_trace_init): Add argument.
5916 * target.c (update_current_target): Update.
5917 * remote.c (remote_trace_init): Add 'self' argument.
5919 2014-02-19 Tom Tromey <tromey@redhat.com>
5921 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
5922 * target.c (target_fileio_readlink): Add argument.
5923 * remote.c (remote_hostio_readlink): Add 'self' argument.
5924 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
5926 2014-02-19 Tom Tromey <tromey@redhat.com>
5928 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
5929 * target.c (target_fileio_unlink): Add argument.
5930 * remote.c (remote_hostio_unlink): Add 'self' argument.
5931 (remote_file_delete): Update.
5932 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
5934 2014-02-19 Tom Tromey <tromey@redhat.com>
5936 * target.h (struct target_ops) <to_fileio_close>: Add argument.
5937 * target.c (target_fileio_close): Add argument.
5938 * remote.c (remote_hostio_close): Add 'self' argument.
5939 (remote_hostio_close_cleanup): Update.
5940 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
5942 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
5944 2014-02-19 Tom Tromey <tromey@redhat.com>
5946 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
5947 * target.c (target_fileio_pread): Add argument.
5948 * remote.c (remote_hostio_pread): Add 'self' argument.
5949 (remote_bfd_iovec_pread, remote_file_get): Update.
5950 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
5952 2014-02-19 Tom Tromey <tromey@redhat.com>
5954 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
5955 * target.c (target_fileio_pwrite): Add argument.
5956 * remote.c (remote_hostio_pwrite): Add 'self' argument.
5957 (remote_file_put): Update.
5958 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
5960 2014-02-19 Tom Tromey <tromey@redhat.com>
5962 * target.h (struct target_ops) <to_fileio_open>: Add argument.
5963 * target.c (target_fileio_open): Add argument.
5964 * remote.c (remote_hostio_open): Add 'self' argument.
5965 (remote_bfd_iovec_open): Add 'self' argument.
5966 (remote_file_put): Add 'self' argument.
5967 (remote_file_get): Add 'self' argument.
5968 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
5970 2014-02-19 Tom Tromey <tromey@redhat.com>
5972 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5974 (target_can_run_breakpoint_commands): Add argument.
5975 * target.c (update_current_target): Update.
5976 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
5978 (remote_insert_breakpoint): Add 'self' argument.
5979 (remote_insert_hw_breakpoint): Add 'self' argument.
5980 (remote_can_run_breakpoint_commands): Add 'self' argument.
5982 2014-02-19 Tom Tromey <tromey@redhat.com>
5984 * target.h (struct target_ops)
5985 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
5986 (target_supports_evaluation_of_breakpoint_conditions): Add
5988 * target.c (update_current_target): Update.
5989 * remote.c (remote_supports_cond_breakpoints): Add 'self'
5991 (remote_insert_breakpoint): Add 'self' argument.
5992 (remote_insert_hw_breakpoint): Add 'self' argument.
5993 (remote_supports_cond_breakpoints): Add 'self' argument.
5995 2014-02-19 Tom Tromey <tromey@redhat.com>
5997 * target.h (struct target_ops) <to_supports_string_tracing>: Add
5999 (target_supports_string_tracing): Add argument.
6000 * target.c (update_current_target): Update.
6001 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6003 2014-02-19 Tom Tromey <tromey@redhat.com>
6005 * target.h (struct target_ops)
6006 <to_supports_disable_randomization>: Add argument.
6007 * target.c (find_default_supports_disable_randomization): Add
6009 (target_supports_disable_randomization): Add argument.
6010 (find_default_supports_disable_randomization): Add 'self'
6012 * remote.c (extended_remote_supports_disable_randomization): Add
6014 (remote_supports_disable_randomization): Add 'self' argument.
6015 (extended_remote_create_inferior): Update.
6016 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6019 2014-02-19 Tom Tromey <tromey@redhat.com>
6021 * target.h (struct target_ops)
6022 <to_supports_enable_disable_tracepoint>: Add argument.
6023 (target_supports_enable_disable_tracepoint): Add argument.
6024 * target.c (update_current_target): Update.
6025 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6028 2014-02-19 Tom Tromey <tromey@redhat.com>
6030 * target.h (struct target_ops) <to_supports_multi_process>: Add
6032 (target_supports_multi_process): Add argument.
6033 * target.c (update_current_target): Update.
6034 * remote.c (remote_supports_multi_process): Add 'self' argument.
6035 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6037 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6040 2014-02-19 Tom Tromey <tromey@redhat.com>
6042 * target.h (struct target_ops) <to_execution_direction>: Add
6044 (target_execution_direction): Add argument.
6045 * target.c (default_execution_direction): Add 'self' argument.
6046 * record-full.c (record_full_execution_direction): Add 'self'
6049 2014-02-19 Tom Tromey <tromey@redhat.com>
6051 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6053 (target_can_execute_reverse): Add argument.
6054 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6055 * record-full.c (record_full_can_execute_reverse): Add 'self'
6057 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6060 2014-02-19 Tom Tromey <tromey@redhat.com>
6062 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6063 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6065 (target_get_ada_task_ptid): Add argument.
6066 * target.c (update_current_target): Update.
6067 (default_get_ada_task_ptid): Add 'self' argument.
6068 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6069 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6070 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6072 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6074 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6076 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6078 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6079 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6082 2014-02-19 Tom Tromey <tromey@redhat.com>
6084 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6085 (target_goto_bookmark): Add argument.
6086 * target.c (dummy_goto_bookmark): Add 'self' argument.
6087 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6089 2014-02-19 Tom Tromey <tromey@redhat.com>
6091 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6092 (target_get_bookmark): Add argument.
6093 * target.c (dummy_get_bookmark): Add 'self' argument.
6094 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6096 2014-02-19 Tom Tromey <tromey@redhat.com>
6098 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6100 (target_make_corefile_notes): Add argument.
6101 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6102 * procfs.c (procfs_make_note_section): Add 'self' argument.
6103 (procfs_make_note_section): Add 'self' argument.
6104 (procfs_make_note_section): Add 'self' argument.
6105 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6107 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6108 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6109 * exec.c (exec_make_note_section): Add 'self' argument.
6110 (exec_make_note_section): Add 'self' argument.
6112 2014-02-19 Tom Tromey <tromey@redhat.com>
6114 * target.h (struct target_ops) <to_find_memory_regions>: Add
6116 (target_find_memory_regions): Add argument.
6117 * target.c (dummy_find_memory_regions): Add 'self' argument.
6118 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6119 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6120 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6121 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6122 * exec. (exec_do_find_memory_regions): New global.
6123 (exec_set_find_memory_regions): Rewrite.
6124 (exec_find_memory_regions): New function.
6125 (init_exec_ops): Use exec_find_memory_regions.
6127 2014-02-19 Tom Tromey <tromey@redhat.com>
6129 * target.h (struct target_ops) <to_supports_non_stop>: Add
6131 * target.c (find_default_supports_non_stop): Add argument.
6132 (target_supports_non_stop): Add argument.
6133 (find_default_supports_non_stop): Add 'self' argument.
6134 * remote.c (remote_supports_non_stop): Add 'self' argument.
6135 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6137 2014-02-19 Tom Tromey <tromey@redhat.com>
6139 * target.h (struct target_ops) <to_log_command>: Add argument.
6140 (target_log_command): Add argument.
6141 * serial.h (serial_log_command): Add 'self' argument.
6142 * serial.c (serial_log_command): Add 'self' argument.
6144 2014-02-19 Tom Tromey <tromey@redhat.com>
6146 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6147 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6149 (target_pid_to_exec_file): Add argument.
6150 * target.c (debug_to_pid_to_exec_file): Add argument.
6151 (update_current_target): Update.
6152 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6153 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6154 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6155 (linux_handle_extended_wait): Update.
6156 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6157 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6158 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6159 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6161 2014-02-19 Tom Tromey <tromey@redhat.com>
6163 * target.h (struct target_ops) <to_rcmd>: Add argument.
6164 (target_rcmd): Add argument.
6165 * target.c (debug_to_rcmd): Add argument.
6166 (update_current_target, do_monitor_command): Update.
6167 * remote.c (remote_rcmd): Add 'self' argument.
6168 * monitor.c (monitor_rcmd): Add 'self' argument.
6170 2014-02-19 Tom Tromey <tromey@redhat.com>
6172 * windows-nat.c (windows_stop): Add 'self' argument.
6173 * target.h (struct target_ops) <to_stop>: Add argument.
6174 * target.c (target_stop): Add argument.
6175 (debug_to_stop): Add argument.
6176 (update_current_target): Update.
6177 * remote.c (remote_stop): Add 'self' argument.
6178 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6179 (gdbsim_cntrl_c): Update.
6180 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6181 * procfs.c (procfs_stop): Add 'self' argument.
6182 * nto-procfs.c (procfs_stop): Add 'self' argument.
6183 * monitor.c (monitor_stop): Add 'self' argument.
6184 (monitor_open): Update.
6185 * linux-nat.c (linux_nat_stop): Add argument.
6186 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6187 * gnu-nat.c (gnu_stop): Add 'self' argument.
6188 * darwin-nat.c (darwin_stop): Add 'self' argument.
6190 2014-02-19 Tom Tromey <tromey@redhat.com>
6192 * target.h (struct target_ops) <to_thread_name>: Add argument.
6193 * target.c (target_thread_name): Add argument.
6194 (update_current_target): Update.
6195 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6197 2014-02-19 Tom Tromey <tromey@redhat.com>
6199 * target.h (struct target_ops) <to_extra_thread_info>: Add
6201 (target_extra_thread_info): Add argument.
6202 * target.c (update_current_target): Update.
6203 * remote.c (remote_threads_extra_info): Add 'self' argument.
6204 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6206 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6207 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6208 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6210 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6212 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6214 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6217 2014-02-19 Tom Tromey <tromey@redhat.com>
6219 * target.h (struct target_ops) <to_program_signals>: Add argument.
6220 * target.c (target_program_signals): Add argument.
6221 * remote.c (remote_program_signals): Add 'self' argument.
6223 2014-02-19 Tom Tromey <tromey@redhat.com>
6225 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6226 * target.c (target_pass_signals): Add argument.
6227 * remote.c (remote_pass_signals): Add 'self' argument.
6228 (remote_start_remote): Update.
6229 * procfs.c (procfs_pass_signals): Add 'self' argument.
6230 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6231 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6232 (linux_nat_create_inferior, linux_nat_attach): Update.
6234 2014-02-19 Tom Tromey <tromey@redhat.com>
6236 * windows-nat.c (windows_can_run): Add 'self' argument.
6237 * target.h (struct target_ops) <to_can_run>: Add argument.
6238 (target_can_run): Add argument.
6239 * target.c (debug_to_can_run): Add argument.
6240 (update_current_target): Update.
6241 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6242 * inf-child.c (inf_child_can_run): Add 'self' argument.
6243 * go32-nat.c (go32_can_run): Add 'self' argument.
6245 2014-02-19 Tom Tromey <tromey@redhat.com>
6247 * target.h (struct target_ops) <to_has_exited>: Add argument.
6248 (target_has_exited): Add argument.
6249 * target.c (debug_to_has_exited): Add argument.
6250 (update_current_target): Update.
6252 2014-02-19 Tom Tromey <tromey@redhat.com>
6254 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6256 (target_set_syscall_catchpoint): Add argument.
6257 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6259 * target.c (update_current_target): Update.
6261 2014-02-19 Tom Tromey <tromey@redhat.com>
6263 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6265 (target_remove_exec_catchpoint): Add argument.
6266 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6267 (update_current_target): Update.
6268 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6271 2014-02-19 Tom Tromey <tromey@redhat.com>
6273 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6275 (target_insert_exec_catchpoint): Add argument.
6276 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6277 (update_current_target): Update.
6278 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6281 2014-02-19 Tom Tromey <tromey@redhat.com>
6283 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6285 (target_remove_vfork_catchpoint): Add argument.
6286 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6287 (update_current_target): Update.
6288 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6291 2014-02-19 Tom Tromey <tromey@redhat.com>
6293 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6295 (target_insert_vfork_catchpoint): Add argument.
6296 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6297 (update_current_target): Update.
6298 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6301 2014-02-19 Tom Tromey <tromey@redhat.com>
6303 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6305 (target_remove_fork_catchpoint): Add argument.
6306 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6307 (update_current_target): Update.
6308 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6311 2014-02-19 Tom Tromey <tromey@redhat.com>
6313 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6315 (target_insert_fork_catchpoint): Add argument.
6316 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6317 (update_current_target): Update.
6318 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6321 2014-02-19 Tom Tromey <tromey@redhat.com>
6323 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6325 (target_post_startup_inferior): Add argument.
6326 * target.c (debug_to_post_startup_inferior): Add argument.
6327 (update_current_target): Update.
6328 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6330 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6332 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6334 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6336 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6338 (super_post_startup_inferior): Likewise.
6339 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6341 (super_post_startup_inferior): Likewise.
6342 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6343 Add 'self' argument.
6344 (super_post_startup_inferior): Likewise.
6346 2014-02-19 Tom Tromey <tromey@redhat.com>
6348 * target.h (struct target_ops) <to_load>: Add argument.
6349 * target.c (target_load): Add argument.
6350 (debug_to_load): Add argument.
6351 (update_current_target): Update.
6352 * remote.c (remote_load): Add 'self' argument.
6353 * remote-sim.c (gdbsim_load): Add 'self' argument.
6354 * remote-mips.c (mips_load): Add 'self' argument.
6355 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6356 * monitor.c (monitor_load): Add 'self' argument.
6357 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6359 2014-02-19 Tom Tromey <tromey@redhat.com>
6361 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6362 (target_terminal_info): Add argument.
6363 * target.c (debug_to_terminal_info): Add argument.
6364 (default_terminal_info): Likewise.
6365 * inflow.c (child_terminal_info): Add 'self' argument.
6366 * inferior.h (child_terminal_info): Add 'self' argument.
6367 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6369 2014-02-19 Tom Tromey <tromey@redhat.com>
6371 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6373 (target_terminal_save_ours): Add argument.
6374 * target.c (debug_to_terminal_save_ours): Add argument.
6375 (update_current_target): Update.
6376 * inflow.c (terminal_save_ours): Add 'self' argument.
6377 * inferior.h (terminal_save_ours): Add 'self' argument.
6379 2014-02-19 Tom Tromey <tromey@redhat.com>
6381 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6382 (target_terminal_ours): Add argument.
6383 * target.c (debug_to_terminal_ours): Add argument.
6384 (update_current_target): Update.
6385 * remote.c (remote_terminal_ours): Add 'self' argument.
6386 (remote_close): Update.
6387 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6388 * inflow.c (terminal_ours): Add 'self' argument.
6389 * inferior.h (terminal_ours): Add 'self' argument.
6390 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6392 2014-02-19 Pedro Alves <palves@redhat.com>
6393 Tom Tromey <tromey@redhat.com>
6395 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6397 (target_terminal_ours_for_output): Add argument.
6398 * target.c (debug_to_terminal_ours_for_output): Add argument.
6399 (update_current_target): Update.
6400 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6401 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6402 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6404 2014-02-19 Tom Tromey <tromey@redhat.com>
6406 * target.h (struct target_ops) <to_terminal_inferior>: Add
6408 * target.c (target_terminal_inferior): Add argument.
6409 (update_current_target): Update.
6410 * remote.c (remote_terminal_inferior): Add 'self' argument.
6411 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6412 * inflow.c (terminal_inferior): Add 'self' argument.
6413 * inferior.h (terminal_inferior): Add 'self' argument.
6414 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6415 (go32_terminal_inferior): Add 'self' argument.
6417 2014-02-19 Tom Tromey <tromey@redhat.com>
6419 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6420 (target_terminal_init): Add argument.
6421 * target.c (debug_to_terminal_init): Add argument.
6422 (update_current_target): Update.
6423 * inflow.c (terminal_init_inferior): Add 'self' argument.
6424 * inferior.h (terminal_init_inferior): Add 'self' argument.
6425 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6426 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6428 2014-02-19 Tom Tromey <tromey@redhat.com>
6430 * target.h (struct target_ops)
6431 <to_can_accel_watchpoint_condition>: Add argument.
6432 (target_can_accel_watchpoint_condition): Add argument.
6433 * target.c (debug_to_can_accel_watchpoint_condition): Add
6435 (update_current_target): Update.
6436 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6439 2014-02-19 Tom Tromey <tromey@redhat.com>
6441 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6443 (target_region_ok_for_hw_watchpoint): Add argument.
6444 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6445 (default_region_ok_for_hw_watchpoint): Add argument.
6446 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6447 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6449 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6451 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6453 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6455 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6457 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6459 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6460 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6462 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6463 Add 'self' argument.
6465 2014-02-19 Tom Tromey <tromey@redhat.com>
6467 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6469 (target_insert_watchpoint): Add argument.
6470 * target.c (debug_to_insert_watchpoint): Add argument.
6471 (update_current_target): Update.
6472 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6473 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6474 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6475 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6476 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6477 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6479 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6480 (procfs_insert_hw_watchpoint): Add 'self' argument.
6481 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6483 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6485 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6487 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6488 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6490 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6493 2014-02-19 Tom Tromey <tromey@redhat.com>
6495 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6497 (target_remove_watchpoint): Add argument.
6498 * target.c (debug_to_remove_watchpoint): Add argument.
6499 (update_current_target): Update.
6500 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6501 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6502 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6503 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6504 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6505 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6507 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6508 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6510 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6512 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6514 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6515 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6517 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6520 2014-02-19 Tom Tromey <tromey@redhat.com>
6522 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6524 (target_remove_hw_breakpoint): Add argument.
6525 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6526 (update_current_target): Update.
6527 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6528 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6530 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6531 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6533 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6536 2014-02-19 Tom Tromey <tromey@redhat.com>
6538 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6540 (target_insert_hw_breakpoint): Add argument.
6541 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6542 (update_current_target): Update.
6543 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6544 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6546 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6547 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6548 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6550 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6553 2014-02-19 Tom Tromey <tromey@redhat.com>
6555 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6557 (target_can_use_hardware_watchpoint): Add argument.
6558 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6559 (update_current_target): Update.
6560 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6562 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6564 * remote.c (remote_check_watch_resources): Add 'self' argument.
6565 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6566 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6568 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6569 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6571 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6573 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6575 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6577 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6579 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6581 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6582 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6584 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6587 2014-02-19 Tom Tromey <tromey@redhat.com>
6589 * target.h (struct target_ops) <to_post_attach>: Add argument.
6590 (target_post_attach): Add argument.
6591 * target.c (debug_to_post_attach): Add argument.
6592 (update_current_target): Update.
6593 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6594 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6595 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6596 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6597 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6599 2014-02-19 Tom Tromey <tromey@redhat.com>
6601 * windows-nat.c (windows_close): Add 'self' argument.
6602 * tracepoint.c (tfile_close): Add 'self' argument.
6603 * target.h (struct target_ops) <to_close>: Add argument.
6604 * target.c (target_close): Add argument.
6605 (update_current_target): Update.
6606 * remote.c (remote_close): Add 'self' argument.
6607 * remote-sim.c (gdbsim_close): Add 'self' argument.
6608 * remote-mips.c (mips_close): Add 'self' argument.
6609 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6610 * record-full.c (record_full_close): Add 'self' argument.
6611 * record-btrace.c (record_btrace_close): Add 'self' argument.
6612 * monitor.h (monitor_close): Add 'self' argument.
6613 * monitor.c (monitor_close): Add 'self' argument.
6614 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6615 * linux-nat.c (linux_nat_close): Add argument.
6616 * go32-nat.c (go32_close): Add 'self' argument.
6617 * exec.c (exec_close_1): Add 'self' argument.
6618 * ctf.c (ctf_close): Add 'self' argument.
6619 * corelow.c (core_close): Add 'self' argument.
6620 (core_close_cleanup): Update.
6621 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6622 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6624 2014-02-19 Tom Tromey <tromey@redhat.com>
6626 * remote.c (remote_load): New function.
6627 (init_remote_ops): Use it.
6629 2014-02-19 Tom Tromey <tromey@redhat.com>
6631 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6633 * common/linux-btrace.h (linux_supports_btrace): Update.
6634 * remote.c (remote_supports_btrace): Add "self" argument.
6635 * target-delegates.c: Rebuild.
6636 * target.c (target_supports_btrace): Remove.
6637 * target.h (struct target_ops) <to_supports_btrace>: Add
6638 target_ops argument.
6639 (target_supports_btrace): New define.
6641 2014-02-19 Tom Tromey <tromey@redhat.com>
6643 * record-full.c (record_full_beneath_to_resume_ops)
6644 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6645 (record_full_beneath_to_wait)
6646 (record_full_beneath_to_store_registers_ops)
6647 (record_full_beneath_to_store_registers)
6648 (record_full_beneath_to_xfer_partial_ops)
6649 (record_full_beneath_to_xfer_partial)
6650 (record_full_beneath_to_insert_breakpoint_ops)
6651 (record_full_beneath_to_insert_breakpoint)
6652 (record_full_beneath_to_remove_breakpoint_ops)
6653 (record_full_beneath_to_remove_breakpoint)
6654 (record_full_beneath_to_stopped_by_watchpoint)
6655 (record_full_beneath_to_stopped_data_address)
6656 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6657 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6658 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6659 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6660 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6661 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6662 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6663 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6664 (record_full_resume, record_full_wait_1)
6665 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6666 (record_full_store_registers, record_full_xfer_partial)
6667 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6668 (record_full_async, record_full_core_xfer_partial): Use target
6670 * target-delegates.c: Rebuild.
6671 * target.c (current_xfer_partial): Remove.
6672 (update_current_target): Do not INHERIT or de_fault
6673 to_insert_breakpoint, to_remove_breakpoint,
6674 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6675 to_is_async_p, to_async. Do not set to_xfer_partial field.
6676 (default_xfer_partial): Simplify.
6677 (current_xfer_partial): Remove.
6678 (target_wait, target_resume): Simplify.
6679 (find_default_can_async_p, find_default_is_async_p): Update.
6680 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6681 to_xfer_partial, to_stopped_by_watchpoint,
6682 to_stopped_data_address.
6683 (target_store_registers): Simplify.
6684 (forward_target_remove_breakpoint)
6685 (forward_target_insert_breakpoint): Remove.
6686 (target_remove_breakpoint, target_insert_breakpoint)
6687 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6688 * target.h (struct target_ops) <to_resume, to_wait,
6689 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6690 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6691 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6693 (forward_target_remove_breakpoint)
6694 (forward_target_insert_breakpoint): Remove.
6695 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6697 (record_btrace_insert_breakpoint): Delegate directly.
6699 2014-02-19 Tom Tromey <tromey@redhat.com>
6702 * target-delegates.c: New file.
6703 * target.c: Include target-delegates.c.
6704 (init_dummy_target): Call install_dummy_methods.
6705 (complete_target_initialization): Call install_delegators.
6706 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6707 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6708 * make-target-delegates: New file.
6710 2014-02-19 Tom Tromey <tromey@redhat.com>
6712 * record.c (find_record_target): Use find_target_at.
6713 * target.c (find_target_at): New function.
6714 * target.h (find_target_at): Declare.
6716 2014-02-19 Tom Tromey <tromey@redhat.com>
6718 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6720 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6722 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6723 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
6725 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
6727 * linux-nat.c (save_sigtrap): Update.
6728 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
6729 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
6730 (linux_nat_close): Update.
6731 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
6733 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
6735 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
6736 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
6737 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
6738 (tmp_to_async): Add 'ops' argument.
6739 (record_full_stopped_by_watchpoint, record_full_async)
6740 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
6742 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
6743 (m32r_stopped_by_watchpoint): Add 'ops' argument.
6744 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
6745 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
6746 (remote_is_async_p, remote_async): Add 'ops' argument.
6747 (remote_stopped_data_address): Update.
6748 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
6749 * target.c (update_current_target)
6750 (find_default_can_async_p, find_default_is_async_p): Update.
6751 (init_dummy_target): Update.
6752 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
6753 * target.h (struct target_ops) <to_stopped_by_watchpoint,
6754 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
6755 (target_can_async_p, target_is_async_p, target_async)
6756 (target_stopped_by_watchpoint): Update.
6758 2014-02-19 Yao Qi <yao@codesourcery.com>
6761 * gdbarch.sh: Remove startup_gdbarch.
6762 * gdbarch.c: Regenerated.
6763 * gdbarch.h: Likewise.
6765 2014-02-17 Kevin Buettner <kevinb@redhat.com>
6767 * rl78-tdep.c (rl78_g10_register_name): New function.
6768 (rl78_return_value): Add g10 support.
6769 (rl78_gdbarch_init): Register rl78_g10_register_name for the
6772 2014-02-17 Doug Evans <xdje42@gmail.com>
6774 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
6775 (SUBDIR_GUILE_SRCS): Ditto.
6776 (scm-gsmob.o): Ditto.
6778 2014-02-17 Yao Qi <yao@codesourcery.com>
6780 * gnu-nat.c (ILL_RPC): Declare defined function.
6782 2014-02-17 Yao Qi <yao@codesourcery.com>
6784 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
6785 mach_msg_type_number_t.
6786 (gnu_write_inferior): Likewise.
6788 2014-02-17 Yao Qi <yao@codesourcery.com>
6790 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
6792 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
6793 (inf_validate_procs, inf_signal): Likewise.
6794 (S_exception_raise_request): Likewise.
6795 (do_mach_notify_dead_name): Likewise.
6796 (steal_exc_port): Likewise.
6797 (gnu_read_inferior): Change 'copy_count''s type to
6798 mach_msg_type_number_t.
6799 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
6802 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
6804 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
6805 flag. Adjust all users; in particular...
6806 (gnu_wait): ..., don't decrement its value in here...
6807 (gnu_create_inferior): ..., and instead set the flag in here,
6808 around the startup_inferior call, and call that one with
6809 START_INFERIOR_TRAPS_EXPECTED.
6811 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
6812 (ILL_RPC): ... new macro.
6813 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
6814 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
6815 (do_mach_notify_send_once, S_proc_setmsgport_reply)
6816 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
6817 functions with ILL_RPC macro.
6818 (S_proc_pid2task_reply, S_proc_task2pid_reply)
6819 (S_proc_task2proc_reply, S_proc_proc2task_reply)
6820 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
6821 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
6822 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
6823 (S_proc_getlogin_reply, S_proc_getsid_reply)
6824 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
6825 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
6826 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
6827 (S_proc_getnports_reply, S_proc_is_important_reply)
6828 (S_proc_get_code_reply): New stub functions, generated with
6831 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
6832 collected the type check structures.
6834 * reply_mig_hack.awk: Don't expect to see the auto keyword.
6836 2014-02-14 Doug Evans <dje@google.com>
6838 * target.c (target_write_partial): Fix result type.
6840 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
6842 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
6843 the proper offsets to access fpregset_t.
6845 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
6847 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
6848 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
6849 * h8300-tdep.c (setmachinelist): Remove global.
6850 * hppa-tdep.c (hppa_sigtramp): Remove global.
6851 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
6852 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
6853 * ravenscar-thread.c (update_target_observer): Remove global.
6854 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
6856 2014-02-12 Tom Tromey <tromey@redhat.com>
6858 * common/rsp-low.c: Update comments.
6859 * common/rsp-low.h: Update comments.
6861 2014-02-12 Tom Tromey <tromey@redhat.com>
6863 * common/rsp-low.c (convert_ascii_to_int): Remove.
6864 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
6866 2014-02-12 Tom Tromey <tromey@redhat.com>
6868 * common/rsp-low.h (unhexify): Don't declare.
6869 * common/rsp-low.c (unhexify): Remove.
6871 2014-02-12 Tom Tromey <tromey@redhat.com>
6873 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
6874 * common/rsp-low.c (convert_int_to_ascii): Remove.
6876 2014-02-12 Tom Tromey <tromey@redhat.com>
6878 * common/rsp-low.h (hexify): Don't declare.
6879 * common/rsp-low.c (hexify): Remove.
6881 2014-02-12 Tom Tromey <tromey@redhat.com>
6883 * common/rsp-low.c (hexify): Never take strlen of argument.
6885 2014-02-12 Tom Tromey <tromey@redhat.com>
6887 * common/rsp-low.c (bin2hex): Never take strlen of argument.
6888 * remote.c (extended_remote_run, remote_rcmd)
6889 (remote_download_trace_state_variable, remote_save_trace_data)
6890 (remote_set_trace_notes): Update.
6891 * tracepoint.c (encode_source_string, tfile_write_status)
6892 (tfile_write_uploaded_tsv): Update.
6894 2014-02-12 Tom Tromey <tromey@redhat.com>
6896 * tracepoint.c: Include rsp-low.h.
6897 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
6898 * remote.c: Include rsp-low.h.
6899 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
6900 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
6901 (remote_unescape_input): Move to common/rsp-low.c.
6902 * common/rsp-low.h: New file.
6903 * common/rsp-low.c: New file.
6904 * Makefile.in (SFILES): Add common/rsp-low.c.
6905 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
6906 (COMMON_OBS): Add rsp-low.o.
6907 (rsp-low.o): New target.
6909 2014-02-12 Tom Tromey <tromey@redhat.com>
6911 * utils.h: Include print-utils.h.
6912 (host_address_to_string, plongest, pulongest, phex, phex_nz)
6913 (int_string, core_addr_to_string, core_addr_to_string_nz)
6914 (hex_string, hex_string_custom): Don't declare.
6915 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
6916 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
6917 (hex_string_custom, int_string, core_addr_to_string)
6918 (core_addr_to_string_nz, host_address_to_string): Move to
6919 common/print-utils.c.
6920 * common/print-utils.h: New file.
6921 * common/print-utils.c: New file
6922 * Makefile.in (SFILES): Add common/print-utils.c.
6923 (HFILES_NO_SRCDIR): Add common/print-utils.h.
6924 (COMMON_OBS): Add print-utils.o.
6925 (print-utils.o): New target.
6927 2014-02-12 Tom Tromey <tromey@redhat.com>
6929 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
6931 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6933 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
6935 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6937 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
6938 if a PT_IO ptrace request returns sucessfully but indicates that 0
6939 bytes were transferred.
6941 2014-02-12 Pedro Alves <palves@redhat.com>
6942 Kevin Buettner <kevinb@redhat.com>
6944 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
6945 TYPE_INSTANCE_FLAG_CODE_SPACE.
6947 2014-02-12 Pedro Alves <palves@redhat.com>
6949 * h8300-tdep.c (pseudo_from_raw_register)
6950 (raw_from_pseudo_register): New functions.
6951 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
6954 2014-02-12 Pedro Alves <palves@redhat.com>
6956 * h8300-tdep.c (h8300_register_sim_regno): New function.
6957 (h8300_gdbarch_init): Install h8300_register_sim_regno as
6958 gdbarch_register_sim_regno hook.
6960 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6962 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
6964 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
6966 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
6968 2014-02-12 Mark Kettenis <kettenis@gnu.org>
6970 * obsd-tdep.h (obsd_init_abi): New prototype.
6971 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
6972 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
6973 (obsd_init_abi): New functions.
6974 * i386obsd-tdep.c: Include "obsd-tdep.h".
6975 (i386obsd_init_abi): Call obsd_init_abi.
6976 * amd64obsd-tdep.c: Include "obsd-tdep.h".
6977 (amd64obsd_init_abi): Call obsd_init_abi.
6978 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
6979 obsd-tdep.c to gdb_target_obs.
6981 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
6983 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
6984 double float arguments to 16-byte in the argument slots.
6986 2014-02-11 Doug Evans <xdje42@gmail.com>
6988 * configure.ac: Don't crash if pkg-config is not found and guile
6989 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
6991 * configure: Regenerate.
6993 2014-02-11 Yao Qi <yao@codesourcery.com>
6995 * aix-thread.c (aix_thread_xfer_partial): Update comments.
6996 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
6997 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
6998 * gnu-nat.c (gnu_xfer_memory): Likewise.
6999 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7000 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7001 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7002 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7004 2014-02-11 Yao Qi <yao@codesourcery.com>
7006 * target.h (enum target_xfer_error): Rename to ...
7007 (enum target_xfer_status): ... it. New. All users updated.
7008 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7010 (TARGET_XFER_STATUS_ERROR_P): New macro.
7011 (target_xfer_error_to_string): Remove declaration.
7012 (target_xfer_status_to_string): Declare.
7013 (target_xfer_partial_ftype): Adjust it.
7014 (struct target_ops) <to_xfer_partial>: Return
7015 target_xfer_status. Add argument xfered_len. Update
7017 * target.c (target_xfer_error_to_string): Rename to ...
7018 (target_xfer_status_to_string): ... it. New. All callers
7020 (target_read_live_memory): Likewise. Call target_xfer_partial
7021 instead of target_read.
7022 (memory_xfer_live_readonly_partial): Return
7023 target_xfer_status. Add argument xfered_len.
7024 (raw_memory_xfer_partial): Likewise.
7025 (memory_xfer_partial_1): Likewise.
7026 (memory_xfer_partial): Likewise.
7027 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7028 properly. Update debug message.
7029 (default_xfer_partial, current_xfer_partial): Likewise.
7030 (target_write_partial): Likewise.
7031 (target_read_partial): Likewise. All callers updated.
7032 (read_whatever_is_readable): Likewise.
7033 (target_write_with_progress): Likewise.
7034 (target_read_alloc_1): Likewise.
7036 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7037 * auxv.c (procfs_xfer_auxv): Likewise.
7038 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7039 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7040 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7041 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7042 * corefile.c (read_memory): Adjust.
7043 * corelow.c (core_xfer_partial): Likewise.
7044 * ctf.c (ctf_xfer_partial): Likewise.
7045 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7047 (darwin_xfer_partial): Likewise.
7048 * exec.c (section_table_xfer_memory_partial): Likewise. All
7050 (exec_xfer_partial): Likewise.
7051 * exec.h (section_table_xfer_memory_partial): Update
7053 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7055 (gnu_xfer_partial): Likewise.
7056 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7057 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7058 (ia64_hpux_xfer_solib_got): Likewise.
7059 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7060 type of 'partial_len' to ULONGEST.
7061 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7062 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7063 (linux_nat_xfer_partial): Likewise.
7064 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7065 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7066 * monitor.c (monitor_xfer_memory): Likewise.
7067 (monitor_xfer_partial): Likewise.
7068 * procfs.c (procfs_xfer_partial): Likewise.
7069 * record-btrace.c (record_btrace_xfer_partial): Likewise.
7070 * record-full.c (record_full_xfer_partial): Likewise.
7071 (record_full_core_xfer_partial): Likewise.
7072 * remote-sim.c (gdbsim_xfer_memory): Likewise.
7073 (gdbsim_xfer_partial): Likewise.
7074 * remote.c (remote_write_bytes_aux): Likewise. All callers
7076 (remote_write_bytes, remote_read_bytes): Likewise. All
7078 (remote_flash_erase): Likewise. All callers updated.
7079 (remote_write_qxfer): Likewise. All callers updated.
7080 (remote_read_qxfer): Likewise. All callers updated.
7081 (remote_xfer_partial): Likewise.
7082 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7083 (rs6000_xfer_shared_libraries): Likewise.
7084 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7085 (sol_thread_xfer_partial): Likewise.
7086 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7087 (sparc_xfer_partial): Likewise.
7088 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7090 (spu_xfer_partial): Likewise.
7091 * spu-multiarch.c (spu_xfer_partial): Likewise.
7092 * tracepoint.c (tfile_xfer_partial): Likewise.
7093 * windows-nat.c (windows_xfer_memory): Likewise.
7094 (windows_xfer_shared_libraries): Likewise.
7095 (windows_xfer_partial): Likewise.
7096 * valprint.c: Replace 'target_xfer_error' with
7097 'target_xfer_status' in comments.
7099 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7101 Checked in by Joel Brobecker <brobecker@adacore.com>.
7102 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7104 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7106 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7107 function parameters.
7109 2014-02-10 Will Newton <will.newton@linaro.org>
7111 * elfread.c (elf_rel_plt_read): Look for a .got section if
7112 looking up .got.plt fails.
7113 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7114 on address passed to elf_gnu_ifunc_record_cache.
7115 (elf_gnu_ifunc_resolve_addr): Likewise.
7116 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7118 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7120 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7121 (X_RETTURN): New macro.
7122 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7124 * sparc64-tdep.c (sparc64_init_abi): Hook
7125 sparc_in_function_epilogue_p.
7127 2014-02-10 Gary Benson <gbenson@redhat.com>
7129 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7130 Rename name_matcher to symbol_matcher.
7132 2014-02-10 Gary Benson <gbenson@redhat.com>
7134 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7135 Use expand_symtabs_file_matcher_ftype and
7136 expand_symtabs_symbol_matcher_ftype.
7138 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7140 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7141 (struct ada_symbol_cache): New.
7142 (ada_free_symbol_cache): Forward declare.
7143 (struct ada_pspace_data): New.
7144 (ada_pspace_data_handle): New static global.
7145 (get_ada_pspace_data, ada_pspace_data_cleanup)
7146 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7147 (cache_space, cache): Delete, now folded inside struct
7149 (ada_get_symbol_cache): New function.
7150 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7152 (_initialize_ada_language): Remove initialization of cache_space.
7153 Move call to observer_attach_inferior_exit up, grouping it
7154 with the other observer registrations inside this function.
7155 Rename command to be more general. Add call to
7156 register_program_space_data_with_cleanup.
7158 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7160 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7161 ada_new_objfile_observer.
7162 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7163 (_initialize_tasks): Update uses of ada_new_objfile_observer
7164 and ada_tasks_normal_stop_observer.
7166 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7168 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7169 returned by the 'Length attribute to integer.
7171 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7173 * ada-lang.c (_initialize_ada_language): Initialize
7174 cache_space obstack.
7176 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7178 * ada-lang.c (HASH_SIZE): New macro.
7179 (struct cache_entry): New type.
7180 (cache_space, cache): New static globals.
7181 (ada_clear_symbol_cache, find_entry): New functions.
7182 (lookup_cached_symbol, cache_symbol): Implement.
7183 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7184 (_initialize_ada_language): Attach ada_new_objfile_observer
7185 and ada_free_objfile_observer.
7187 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7189 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7190 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7191 struct block * parameter.
7192 (ada_lookup_symbol_list_worker): Constify local variable "block".
7193 Remove cast which is no longer necessary.
7195 2014-02-10 Doug Evans <xdje42@gmail.com>
7197 Add Guile as an extension language.
7198 * NEWS: Mention Guile scripting.
7199 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7200 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7201 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7202 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7203 (CLIBS): Add GUILE_LIBS.
7204 (install-guile): New rule.
7205 (guile.o): New rule.
7206 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7207 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7208 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7209 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7210 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7211 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7212 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7213 * configure.ac: New option --with-guile.
7214 * configure: Regenerate.
7215 * config.in: Regenerate.
7216 * auto-load.c: Remove #include "python/python.h". Add #include
7217 "gdb/section-scripts.h".
7218 (source_section_scripts): Handle Guile scripts.
7219 (_initialize_auto_load): Add name of Guile objfile script to
7220 scripts-directory help text.
7221 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7222 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7223 (struct breakpoint): New member scm_bp_object.
7224 * defs.h (enum command_control_type): New value guile_control.
7225 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7227 (show_user): Update comment.
7228 (_initialize_cli_cmds): Update help text for "show user". Update help
7229 text for max-user-call-depth.
7230 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7232 (multi_line_command_p): Add guile_control.
7233 (print_command_lines): Handle guile_control.
7234 (execute_control_command, recurse_read_control_structure): Ditto.
7235 (process_next_line): Recognize "guile" commands.
7236 * disasm.c (gdb_disassemble_info): Make non-static.
7237 * disasm.h: #include "dis-asm.h".
7238 (struct gdbarch): Add forward decl.
7239 (gdb_disassemble_info): Declare.
7240 * extension.c: #include "guile/guile.h".
7241 (extension_languages): Add guile.
7242 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7243 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7244 * gdbtypes.c (get_unsigned_type_max): New function.
7245 (get_signed_type_minmax): New function.
7246 * gdbtypes.h (get_unsigned_type_max): Declare.
7247 (get_signed_type_minmax): Declare.
7248 * guile/README: New file.
7249 * guile/guile-internal.h: New file.
7250 * guile/guile.c: New file.
7251 * guile/guile.h: New file.
7252 * guile/scm-arch.c: New file.
7253 * guile/scm-auto-load.c: New file.
7254 * guile/scm-block.c: New file.
7255 * guile/scm-breakpoint.c: New file.
7256 * guile/scm-disasm.c: New file.
7257 * guile/scm-exception.c: New file.
7258 * guile/scm-frame.c: New file.
7259 * guile/scm-gsmob.c: New file.
7260 * guile/scm-iterator.c: New file.
7261 * guile/scm-lazy-string.c: New file.
7262 * guile/scm-math.c: New file.
7263 * guile/scm-objfile.c: New file.
7264 * guile/scm-ports.c: New file.
7265 * guile/scm-pretty-print.c: New file.
7266 * guile/scm-safe-call.c: New file.
7267 * guile/scm-string.c: New file.
7268 * guile/scm-symbol.c: New file.
7269 * guile/scm-symtab.c: New file.
7270 * guile/scm-type.c: New file.
7271 * guile/scm-utils.c: New file.
7272 * guile/scm-value.c: New file.
7273 * guile/lib/gdb.scm: New file.
7274 * guile/lib/gdb/boot.scm: New file.
7275 * guile/lib/gdb/experimental.scm: New file.
7276 * guile/lib/gdb/init.scm: New file.
7277 * guile/lib/gdb/iterator.scm: New file.
7278 * guile/lib/gdb/printing.scm: New file.
7279 * guile/lib/gdb/types.scm: New file.
7280 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7281 (VPATH): Add $(GUILE_SRCDIR).
7282 (GUILE_DIR): New variable.
7283 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7284 (all): Add stamp-guile dependency.
7285 (stamp-guile): New rule.
7286 (clean-guile, install-guile, uninstall-guile): New rules.
7287 (install-only): Add install-guile dependency.
7288 (uninstall): Add uninstall-guile dependency.
7289 (clean): Add clean-guile dependency.
7291 2014-02-09 Doug Evans <xdje42@gmail.com>
7293 Revert this patch (which I approved, mea culpa).
7295 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7297 * Makefile.in (all-lib): Remove.
7298 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7300 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7302 Fix Python stack corruption.
7303 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7306 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7308 * Makefile.in (all-lib): Remove.
7309 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7311 2014-02-07 Doug Evans <dje@google.com>
7313 * extension-priv.h (extension_language_script_ops): Add comment.
7314 (extension_language_ops): Add comment.
7315 (active_ext_lang_state): Fix typo in comment.
7317 2014-02-07 Pedro Alves <palves@redhat.com>
7319 PR breakpoints/16292
7320 * infrun.c (handle_signal_stop) <signal arrives while stepping
7321 over a breakpoint>: Switch back to the stepping thread.
7323 2014-02-07 Yao Qi <yao@codesourcery.com>
7325 * target.c (target_xfer_partial): Return zero if LEN is zero.
7327 2014-02-07 Yao Qi <yao@codesourcery.com>
7329 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7330 (ld_so_xfer_auxv): Likewise.
7331 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7332 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7333 * corelow.c (core_xfer_partial): Likewise.
7334 * ctf.c (ctf_xfer_partial): Likewise.
7335 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7336 (darwin_xfer_partial): Likewise.
7337 * exec.c (exec_xfer_partial): Likewise.
7338 * gnu-nat.c (gnu_xfer_partial): Likewise.
7339 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7340 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7341 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7342 * linux-nat.c (linux_xfer_siginfo): Likewise.
7343 (linux_proc_xfer_spu): Likewise.
7344 * procfs.c (procfs_xfer_partial): Likewise.
7345 * record-full.c (record_full_xfer_partial): Likewise.
7346 (record_full_core_xfer_partial): Likewise.
7347 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7348 * remote.c (remote_write_qxfer): Likewise.
7349 (remote_write_qxfer, remote_read_qxfer): Likewise.
7350 (remote_xfer_partial): Likewise.
7351 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7352 (rs6000_xfer_shared_libraries): Likewise.
7353 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7354 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7355 (spu_xfer_partial): Likewise.
7356 * target.c (memory_xfer_partial_1): Likewise.
7357 * tracepoint.c (tfile_xfer_partial): Likewise.
7358 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7359 (windows_xfer_partial): Likewise.
7361 2014-02-07 Yao Qi <yao@codesourcery.com>
7363 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7365 (core_xfer_shared_libraries_aix): Likewise.
7366 * gdbarch.c, gdbarch.h: Regenerated.
7367 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7368 ULONGEST. Change 'len_avail' type to ULONGEST.
7369 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7370 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7372 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7374 2014-02-07 Yao Qi <yao@codesourcery.com>
7376 * corefile.c (memory_error): Get 'exception' from ERR and pass
7377 'exception' to throw_error.
7379 2014-02-06 Doug Evans <xdje42@gmail.com>
7381 * configure.ac (libpython checking): Remove all but python.o from
7382 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7383 * configure: Regenerate.
7385 * Makefile.in (SFILES): Add extension.c.
7386 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7387 (COMMON_OBS): Add extension.o.
7388 * extension.h: New file.
7389 * extension-priv.h: New file.
7390 * extension.c: New file.
7392 * python/python-internal.h: #include "extension.h".
7393 (gdbpy_auto_load_enabled): Declare.
7394 (gdbpy_apply_val_pretty_printer): Declare.
7395 (gdbpy_apply_frame_filter): Declare.
7396 (gdbpy_preserve_values): Declare.
7397 (gdbpy_breakpoint_cond_says_stop): Declare.
7398 (gdbpy_breakpoint_has_cond): Declare.
7399 (void source_python_script_for_objfile): Delete.
7400 * python/python.c: #include "extension-priv.h".
7401 Delete inclusion of "observer.h".
7402 (extension_language_python): Moved here and renamed from
7403 script_language_python in py-auto-load.c.
7404 Redefined to be of type extension_language_defn.
7405 (python_extension_script_ops): New global.
7406 (python_extension_ops): New global.
7407 (struct python_env): New member previous_active.
7408 (restore_python_env): Call restore_active_ext_lang.
7409 (ensure_python_env): Call set_active_ext_lang.
7410 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7412 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7414 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7416 (gdbpy_eval_from_control_command): Renamed from
7417 eval_python_from_control_command, made static. New arg extlang.
7418 (gdbpy_source_script) Renamed from source_python_script, made static.
7420 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7421 result to int. New arg extlang.
7422 (gdbpy_source_objfile_script): Renamed from
7423 source_python_script_for_objfile, made static. New arg extlang.
7424 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7425 static. New args extlang, extlang_printers. Change result type to
7427 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7428 static. New arg extlang. Rename arg printers to extlang_printers
7429 and change type to ext_lang_type_printers *.
7430 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7431 static. Replace argument arg with extlang, extlang_printers.
7432 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7433 (!HAVE_PYTHON, source_python_script): Delete.
7434 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7435 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7436 (!HAVE_PYTHON, start_type_printers): Delete.
7437 (!HAVE_PYTHON, apply_type_printers): Delete.
7438 (!HAVE_PYTHON, free_type_printers): Delete.
7439 (_initialize_python): Delete call to observer_attach_before_prompt.
7440 (finalize_python): Set/restore active extension language.
7441 (gdbpy_finish_initialization) Renamed from
7442 finish_python_initialization, made static. New arg extlang.
7443 (gdbpy_initialized): New function.
7444 * python/python.h: #include "extension.h". Delete #include
7445 "value.h", "mi/mi-cmds.h".
7446 (extension_language_python): Declare.
7447 (GDBPY_AUTO_FILE_NAME): Delete.
7448 (enum py_bt_status): Moved to extension.h and renamed to
7450 (enum frame_filter_flags): Moved to extension.h.
7451 (enum py_frame_args): Moved to extension.h and renamed to
7452 ext_lang_frame_args.
7453 (finish_python_initialization): Delete.
7454 (eval_python_from_control_command): Delete.
7455 (source_python_script): Delete.
7456 (apply_val_pretty_printer): Delete.
7457 (apply_frame_filter): Delete.
7458 (preserve_python_values): Delete.
7459 (gdbpy_script_language_defn): Delete.
7460 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7461 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7463 * auto-load.c: #include "extension.h".
7464 (GDB_AUTO_FILE_NAME): Delete.
7465 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7466 (script_language_gdb): Delete, moved to extension.c and renamed to
7467 extension_language_gdb.
7468 (source_gdb_script_for_objfile): Delete.
7469 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7470 (loaded_script): Change type of language member to
7471 struct extension_language_defn *.
7472 (init_loaded_scripts_info): Initialize
7473 unsupported_script_warning_printed.
7474 (maybe_add_script): Make static. Change type of language arg to
7475 struct extension_language_defn *.
7476 (clear_section_scripts): Reset unsupported_script_warning_printed.
7477 (auto_load_objfile_script_1): Rewrite to use extension language API.
7478 (auto_load_objfile_script): Make public. Remove support-compiled-in
7479 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7480 (source_section_scripts): Rewrite to use extension language API.
7481 (load_auto_scripts_for_objfile): Rewrite to use
7482 auto_load_scripts_for_objfile.
7483 (collect_matching_scripts_data): Change type of language member to
7484 struct extension_language_defn *.
7485 (auto_load_info_scripts): Change type of language arg to
7486 struct extension_language_defn *.
7487 (unsupported_script_warning_print): New function.
7488 (script_not_found_warning_print): Make static.
7489 (_initialize_auto_load): Rewrite construction of scripts-directory
7491 * auto-load.h (struct objfile): Add forward decl.
7492 (struct script_language): Delete.
7493 (struct auto_load_pspace_info): Add forward decl.
7494 (struct extension_language_defn): Add forward decl.
7495 (maybe_add_script): Delete.
7496 (auto_load_objfile_script): Declare.
7497 (script_not_found_warning_print): Delete.
7498 (auto_load_info_scripts): Update prototype.
7499 (auto_load_gdb_scripts_enabled): Declare.
7500 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7501 auto_load_python_scripts_enabled and made public.
7502 (script_language_python): Delete, moved to python.c.
7503 (gdbpy_script_language_defn): Delete.
7504 (info_auto_load_python_scripts): Update to use
7505 extension_language_python.
7507 * breakpoint.c (condition_command): Replace call to
7508 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7509 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7510 with call to breakpoint_ext_lang_cond_says_stop.
7511 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7512 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7513 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7514 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7516 (local_setattro): Print name of extension language with existing
7519 * valprint.c (val_print, value_print): Update to call
7520 apply_ext_lang_val_pretty_printer.
7521 * cp-valprint.c (cp_print_value): Update call to
7522 apply_ext_lang_val_pretty_printer.
7523 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7524 (gdbpy_apply_val_pretty_printer): Renamed from
7525 apply_val_pretty_printer. New arg extlang.
7526 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7528 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7529 extension language API.
7530 * cli/cli-script.c (execute_control_command): Update to call
7531 eval_ext_lang_from_control_command.
7533 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7534 enum ext_lang_bt_status values. Update call to
7535 apply_ext_lang_frame_filter.
7536 (mi_cmd_stack_list_locals): Ditto.
7537 (mi_cmd_stack_list_args): Ditto.
7538 (mi_cmd_stack_list_variables): Ditto.
7539 * mi/mi-main.c: Delete #include "python/python-internal.h".
7540 Add #include "extension.h".
7541 (mi_cmd_list_features): Replace reference to python internal variable
7542 gdb_python_initialized with call to ext_lang_initialized_p.
7544 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7545 Update to use enum ext_lang_frame_args. Update to call
7546 apply_ext_lang_frame_filter.
7547 * python/py-framefilter.c (extract_sym): Update to use enum
7549 (extract_value, py_print_type, py_print_value): Ditto.
7550 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7551 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7552 (py_print_frame): Ditto.
7553 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7554 New arg extlang. Update to use enum ext_lang_bt_status.
7556 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7557 finish_python_initialization. Replace with call to
7558 finish_ext_lang_initialization.
7560 * typeprint.c (do_free_global_table): Update to call
7561 free_ext_lang_type_printers.
7562 (create_global_typedef_table): Update to call
7563 start_ext_lang_type_printers.
7564 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7565 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7566 (type_print_options): Change type of global_printers from "void *"
7567 to "struct ext_lang_type_printers *".
7569 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7570 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7571 (gdbpy_preserve_values): Renamed from preserve_python_values.
7573 (!HAVE_PYTHON, preserve_python_values): Delete.
7575 * utils.c (quit_flag): Delete, moved to extension.c.
7576 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7579 * eval.c: Delete #include "python/python.h".
7580 * main.c: Delete #include "python/python.h".
7582 * defs.h: Update comment.
7584 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7588 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7590 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7593 2014-02-05 Yao Qi <yao@codesourcery.com>
7595 * remote.c (remote_pass_signals): Remove local 'buf' and use
7597 (remote_program_signals): Likewise.
7599 2014-02-05 Yao Qi <yao@codesourcery.com>
7601 * ctf.c: Include "inferior.h" and "gdbthread.h".
7602 (CTF_PID): A new macro.
7603 (ctf_open): Call inferior_appeared and add_thread_silent.
7604 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7605 (ctf_thread_alive): New function.
7606 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7608 2014-02-05 Yao Qi <yao@codesourcery.com>
7612 2013-05-24 Yao Qi <yao@codesourcery.com>
7614 * tracepoint.c (TFILE_PID): Remove.
7615 (tfile_open): Don't add thread and inferior.
7616 (tfile_close): Don't set 'inferior_ptid'. Don't call
7617 exit_inferior_silent.
7618 (tfile_thread_alive): Remove.
7619 (init_tfile_ops): Don't set field 'to_thread_alive' of
7622 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7624 * remote.c (remote_start_remote): Call remote_check_symbols even
7625 if only symbol-file (not file) has been given.
7627 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7629 * gdbarch.sh (skip_entrypoint): New callback.
7630 * gdbarch.c, gdbarch.h: Regenerate.
7631 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7632 * infrun.c (fill_in_stop_func): Likewise.
7633 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7634 (ppc_elfv2_elf_make_msymbol_special): New function.
7635 (ppc_elfv2_skip_entrypoint): Likewise.
7636 (ppc_linux_init_abi): Install them for ELFv2.
7638 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7640 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7641 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7642 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7643 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7644 structures returned in GPRs.
7646 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7648 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7649 offset to the stack parameter list for the ELFv2 ABI.
7651 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7653 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7654 set_gdbarch_convert_from_func_ptr_addr and
7655 set_gdbarch_elf_make_msymbol_special for ELFv1.
7656 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7657 function descriptors on ELFv1.
7658 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7659 set up r12 at function entry.
7661 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7663 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7664 (struct gdbarch_tdep): New member elf_abi.
7666 * rs6000-tdep.c: Include "elf/ppc64.h".
7667 (rs6000_gdbarch_init): Detect ELF ABI version.
7669 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7671 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7672 within a register pair holding a DFP 128-bit value on little-endian.
7673 (ppc64_sysv_abi_return_value_base): Likewise.
7674 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7675 (dfp_pseudo_register_write): Likewise.
7677 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7679 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7680 offset on little-endian when passing _Decimal32.
7681 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7683 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7685 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7686 of the overlapped FP register within the VSX register on little-
7688 (efpr_pseudo_register_write): Likewise.
7690 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7692 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7693 offset on little-endian when passing small structures.
7695 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7697 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7698 (struct ppc64_sysv_argpos): New data structure.
7699 (ppc64_sysv_abi_push_float): Remove.
7700 (ppc64_sysv_abi_push_val): New function.
7701 (ppc64_sysv_abi_push_integer): Likewise.
7702 (ppc64_sysv_abi_push_freg): Likewise.
7703 (ppc64_sysv_abi_push_vreg): Likewise.
7704 (ppc64_sysv_abi_push_param): Likewise.
7705 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7706 (ppc64_sysv_abi_return_value_base): New function.
7707 (ppc64_sysv_abi_return_value): Refactor to use it.
7709 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7711 * NEWS: Document new target powerpc64le-*-linux*.
7713 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7715 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7716 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7718 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7719 register set used in ELF core dumps. Add floating-point register set.
7721 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7723 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7724 dwarf2_to_gdb[] table using symbolic constants. Adjust
7725 penultimate entry from number representing the PC register
7726 to symbolic constant representing the MDR register. Add
7727 constant for the PC register to the end of the table.
7729 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7731 * bsd-kvm.c: Include <sys/param.h>
7733 2014-02-03 Mark Kettenis <kettenis@gnu.org>
7735 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
7737 2014-01-31 Joel Brobecker <brobecker@adacore.com>
7739 * ada-lang.h (clear_ada_sym_cache): Delete.
7741 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7743 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
7745 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
7747 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
7748 the sigreturn register save area only if the syscall is
7751 2014-01-29 Joel Brobecker <brobecker@adacore.com>
7753 * valops.c (value_slice): Minor reformatting.
7755 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
7757 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
7759 2014-01-28 Joel Brobecker <brobecker@adacore.com>
7761 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
7763 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
7764 (ada_ignore_descriptive_types_p): New static global.
7765 (find_parallel_type_by_descriptive_type): Return immediately
7766 if ada_ignore_descriptive_types_p is set.
7767 (_initialize_ada_language): Register new commands "maintenance
7768 set ada", "maintenance show ada", "maintenance set ada
7769 ignore-descriptive-types" and "maintenance show ada
7770 ignore-descriptive-types".
7771 * NEWS: Add entry for new "maint ada set/show
7772 ignore-descriptive-types" commands.
7774 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
7776 * record-btrace.c (record_btrace_close): Call btrace_teardown
7779 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7781 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
7784 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7786 * ada-typeprint (type_is_full_subrange_of_target_type):
7788 (print_range): Add parameter bounds_prefered_p. If not set,
7789 try printing range types using the name of their base type.
7790 (print_range_type): Add parameter bounds_prefered_p.
7791 Use it in call to print_range.
7792 (print_array_type, ada_print_type): Update calls to print_range
7793 and print_range_type.
7795 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7797 * ada-typeprint.c (print_array_type, print_choices, print_range)
7798 (print_range_bound, print_dynamic_range_bound, print_range_type):
7801 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7803 * ada-typeprint.c (print_range): Add missing empty line
7804 after local declaration.
7806 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7808 * ada-valprint.c (print_optional_low_bound): Get index_type's
7809 target type for as long as it is a TYPE_CODE_RANGE.
7811 2014-01-27 Joel Brobecker <brobecker@adacore.com>
7813 * procfs.c (procfs_make_note_section): Remove assertion and
7816 2014-01-24 Yao Qi <yao@codesourcery.com>
7818 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
7819 * corelow.c (get_core_siginfo): Likewise.
7821 2014-01-24 Yao Qi <yao@codesourcery.com>
7823 * remote.c (remote_write_bytes_aux): Change type of 'len' to
7824 ULONGEST. Don't check 'len' is negative.
7825 (remote_write_bytes): Change type of 'len' to ULONGEST.
7827 2014-01-23 Tom Tromey <tromey@redhat.com>
7830 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
7831 Handle exception from frame.block.
7832 (FrameVars.fetch_frame_locals): Likewise.
7834 2014-01-23 Tom Tromey <tromey@redhat.com>
7837 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
7838 on a NULL pointer. Move "goto error" to correct place.
7840 2014-01-23 Tom Tromey <tromey@redhat.com>
7843 * python/py-framefilter.c (apply_frame_filter): Call
7844 ensure_python_env after computing gdbarch.
7846 2014-01-23 Yao Qi <yao@codesourcery.com>
7848 * target.c (raw_memory_xfer_partial): Change argument type
7849 from void * to gdb_byte *.
7850 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
7852 2014-01-22 Doug Evans <dje@google.com>
7854 New gdbserver option --debug-format=timestamp.
7857 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
7859 * syscalls/s390x-linux.xml: New file.
7860 * syscalls/s390-linux.xml: New file.
7861 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
7862 (XML_SYSCALL_FILENAME_S390X): Likewise.
7863 (op_svc): New enum value for SVC opcode.
7864 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
7865 (s390_linux_get_syscall_number): New function.
7866 (s390_gdbarch_init): Register '*get_syscall_number' and the
7867 syscall xml file name.
7868 * data-directory/Makefile.in (SYSCALLS_FILES): Add
7869 "s390-linux.xml" and "s390x-linux.xml".
7870 * NEWS: Announce new feature.
7872 2014-01-22 Baruch Siach <baruch@tkos.co.il>
7874 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
7876 2014-01-22 Pedro Alves <palves@redhat.com>
7878 * xtensa-config.c: Include defs.h.
7880 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7882 * common/common-utils.h: Add "ARI:" comment beside __func__
7885 2014-01-22 Joel Brobecker <brobecker@adacore.com>
7887 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
7888 documentation a bit.
7890 2014-01-21 Roland McGrath <mcgrathr@google.com>
7892 * configure.ac: Call AM_PROG_INSTALL_STRIP.
7893 * configure: Regenerate.
7894 * aclocal.m4: Regenerate.
7895 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
7896 New substituted variables.
7897 (install-strip): New target.
7898 (INSTALL_SCRIPT): New substituted variable.
7899 (FLAGS_TO_PASS): Add it.
7900 (install-only): Use $(INSTALL_SCRIPT) rather than
7901 $(INSTALL_PROGRAM) for gcore.
7903 2014-01-20 Tom Tromey <tromey@redhat.com>
7905 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
7908 2014-01-20 Tom Tromey <tromey@redhat.com>
7910 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
7911 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
7912 (deprecated_cmd_warning, complete_on_cmdlist): Update.
7913 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
7914 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
7915 (struct cmd_list_element) <flags>: Remove.
7916 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
7917 doc_allocated>: New fields.
7918 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
7920 * maint.c (maintenance_do_deprecate): Update.
7921 * top.c (execute_command): Update.
7923 2014-01-20 Baruch Siach <baruch@tkos.co.il>
7925 * xtensa-linux-nat.c: Include asm/ptrace.h.
7927 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7929 * Makefile.in (SFILES): Add d-support.c.
7930 (COMMON_OBS): Add d-support.o.
7931 * d-lang.h (d_parse_symbol): Add comment, now defined in
7933 * d-lang.c (parse_call_convention)
7934 (parse_attributes, parse_function_types)
7935 (parse_function_args, parse_type, parse_identifier)
7936 (call_convention_p, d_parse_symbol): Move functions to ...
7937 * d-support.c: ... New file.
7939 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7941 * d-lang.h (d_parse_symbol): Add declaration.
7942 * d-lang.c (extract_identifiers)
7943 (extract_type_info): Remove functions.
7944 (parse_call_convention, parse_attributes)
7945 (parse_function_types, parse_function_args)
7946 (parse_type, parse_identifier, call_convention_p)
7947 (d_parse_symbol): New functions.
7948 (d_demangle): Use d_parse_symbol to demangle D symbols.
7950 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7952 * d-lang.h (struct builtin_d_type): New data type.
7953 (builtin_d_type): Add declaration.
7954 * d-lang.c (d_language_arch_info, build_d_types)
7955 (builtin_d_type): New functions.
7956 (enum d_primitive_types): New data type.
7957 (d_language_defn): Change c_language_arch_info to
7958 d_language_arch_info.
7959 (d_type_data): New static variable.
7960 (_initialize_d_language): Initialize d_type_data.
7962 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7964 * d-lang.h (d_main_name): Add declaration.
7965 * d-lang.c (d_main_name): New function.
7966 * symtab.c (find_main_name): Add call to d_main_name.
7968 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7970 * d-lang.c (d_language_defn): Change macro_expansion_c to
7973 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
7975 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7977 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
7979 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
7980 gdb_exception" declaration.
7981 * remote.c (getpkt_or_notif_sane): Likewise.
7983 2014-01-17 Doug Evans <dje@google.com>
7985 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
7986 function, contents of dirnames_to_char_ptr_vec_append moved here.
7987 (delim_string_to_char_ptr_vec): New function.
7988 (dirnames_to_char_ptr_vec_append): Rewrite.
7989 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
7991 2014-01-17 Doug Evans <dje@google.com>
7993 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
7995 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
7996 #include "common-utils.h".
7997 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
7998 * common/vec.h (VEC_ASSERT_PASS): Update.
7999 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8000 (MACH_CHECK_ERROR): Update.
8002 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8004 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8006 * gdbarch.h: Regenerate.
8008 2014-01-16 Tom Tromey <tromey@redhat.com>
8010 * value.c (struct value) <regnum>: Move earlier.
8012 2014-01-16 Tom Tromey <tromey@redhat.com>
8014 * remote.c (extended_remote_create_inferior): Rename from
8015 extended_remote_create_inferior_1. Add "ops" argument. Remove
8018 2014-01-16 Pedro Alves <palves@redhat.com>
8020 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8021 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8024 2014-01-16 Doug Evans <dje@google.com>
8026 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8028 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8030 * btrace.h (btrace_thread_flag): New.
8031 (struct btrace_thread_info) <flags>: New.
8032 * record-btrace.c (record_btrace_resume_thread)
8033 (record_btrace_find_thread_to_move, btrace_step_no_history)
8034 (btrace_step_stopped, record_btrace_start_replaying)
8035 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8036 (record_btrace_find_resume_thread): New.
8037 (record_btrace_resume, record_btrace_wait): Extend.
8038 (record_btrace_can_execute_reverse): New.
8039 (record_btrace_open): Fail in non-stop mode.
8040 (record_btrace_set_replay): Split into this, ...
8041 (record_btrace_stop_replaying): ... this, ...
8042 (record_btrace_clear_histories): ... and this.
8043 (init_record_btrace_ops): Init to_can_execute_reverse.
8044 * NEWS: Announce it.
8046 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8048 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8049 (forward_target_decr_pc_after_break)
8050 (target_decr_pc_after_break): New.
8051 * target.c (forward_target_decr_pc_after_break)
8052 (target_decr_pc_after_break): New.
8053 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8054 instead of gdbarch_decr_pc_after_break.
8055 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8056 instead of gdbarch_decr_pc_after_break.
8057 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8058 instead of gdbarch_decr_pc_after_break.
8059 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8060 instead of gdbarch_decr_pc_after_break.
8061 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8062 instead of gdbarch_decr_pc_after_break.
8063 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8064 instead of gdbarch_decr_pc_after_break.
8066 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8068 * btrace.c: Include regcache.h.
8069 (btrace_add_pc): New.
8070 (btrace_enable): Call btrace_add_pc.
8071 (btrace_is_empty): New.
8072 * btrace.h (btrace_is_empty): New.
8073 * record-btrace.c (require_btrace, record_btrace_info): Call
8076 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8078 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8079 Support delta reads.
8080 (linux_disable_btrace): Change return type.
8081 * common/linux-btrace.h (linux_read_btrace): Change parameters
8082 and return type to allow error reporting. Update users.
8083 (linux_disable_btrace): Change return type. Update users.
8084 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8086 (btrace_error): New.
8087 (btrace_block) <begin>: Comment on BEGIN == 0.
8088 * btrace.c (btrace_compute_ftrace): Start from the end of
8090 (btrace_stitch_trace, btrace_clear_history): New.
8091 (btrace_fetch): Read delta trace, return if replaying.
8092 (btrace_clear): Move clear history code to btrace_clear_history.
8093 (parse_xml_btrace): Throw an error if parsing failed.
8094 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8095 and return type to allow error reporting.
8096 (target_read_btrace): Change parameters and return type to allow
8098 * target.c (target_read_btrace): Update.
8099 * remote.c (remote_read_btrace): Support delta reads. Pass
8101 * NEWS: Announce it.
8103 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8105 * record.h (record_btrace_frame_unwind)
8106 (record_btrace_tailcall_frame_unwind): New declarations.
8107 * dwarf2-frame: Include record.h
8108 (dwarf2_frame_cfa): Throw an error for btrace frames.
8109 * record-btrace.c: Include hashtab.h.
8110 (btrace_get_bfun_name): New.
8111 (btrace_call_history): Call btrace_get_bfun_name.
8112 (struct btrace_frame_cache): New.
8114 (bfcache_hash, bfcache_eq, bfcache_new): New.
8115 (btrace_get_frame_function): New.
8116 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8117 (record_btrace_frame_this_id): Compute own id.
8118 (record_btrace_frame_prev_register): Provide PC, throw_error
8119 for all other registers.
8120 (record_btrace_frame_sniffer): Detect btrace frames.
8121 (record_btrace_tailcall_frame_sniffer): New.
8122 (record_btrace_frame_dealloc_cache): New.
8123 (record_btrace_frame_unwind): Add new functions.
8124 (record_btrace_tailcall_frame_unwind): New.
8125 (_initialize_record_btrace): Allocate cache.
8126 * btrace.c (btrace_clear): Call reinit_frame_cache.
8127 * NEWS: Announce it.
8129 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8131 * record-btrace.c (record_btrace_set_replay)
8132 (record_btrace_goto_begin, record_btrace_goto_end)
8133 (record_btrace_goto): New.
8134 (init_record_btrace_ops): Initialize them.
8135 * NEWS: Announce it.
8137 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8139 * record-btrace.c (record_btrace_find_new_threads)
8140 (record_btrace_thread_alive): New.
8141 (init_record_btrace_ops): Initialize to_find_new_threads and
8144 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8146 * record-btrace.c (record_btrace_resume): New.
8147 (record_btrace_wait): New.
8148 (init_record_btrace_ops): Initialize to_wait and to_resume.
8150 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8152 * record-btrace.c (record_btrace_xfer_partial)
8153 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8154 (record_btrace_allow_memory_access): New.
8155 (init_record_btrace_ops): Initialize new methods.
8156 * target.c (raw_memory_xfer_partial): Bail out if target reports
8157 that this memory is not available.
8159 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8161 * target.h (target_ops) <to_insert_breakpoint>
8162 <to_remove_breakpoint>: Add target_ops parameter.
8163 (forward_target_insert_breakpoint): New.
8164 (forward_target_remove_breakpoint): New.
8165 (memory_remove_breakpoint, memory_insert_breakpoint):
8166 Add target_ops parameter.
8167 * target.c (target_insert_breakpoint): Split into this and ...
8168 (forward_target_insert_breakpoint): ... this.
8169 (target_remove_breakpoint): Split into this and ...
8170 (forward_target_remove_breakpoint): ... this.
8171 (debug_to_insert_breakpoint): Add target_ops parameter.
8172 Call forward_target_insert_breakpoint.
8173 (debug_to_remove_breakpoint): Add target_ops parameter.
8174 Call forward_target_remove_breakpoint.
8175 (update_current_target): Do not inherit or default to_insert_breakpoint
8176 and to_remove_breakpoint.
8177 * corelow.c (ignore): Add target_ops parameter.
8178 * exec.c (ignore): Add target_ops parameter.
8179 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8180 Add target_ops parameter.
8181 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8182 Add target_ops parameter.
8183 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8184 Add target_ops parameter.
8185 * record-full.c (record_full_beneath_to_insert_breakpoint)
8186 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8187 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8188 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8189 (record_full_core_remove_breakpoint): Add target_ops parameter.
8191 (record_full_beneath_to_insert_breakpoint_ops)
8192 (record_full_beneath_to_remove_breakpoint_ops)
8193 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8194 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8195 tmp_to_remove_breakpoint_ops,
8196 record_full_beneath_to_insert_breakpoint_ops, and
8197 record_full_beneath_to_remove_breakpoint_ops.
8198 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8199 (m32r_remove_breakpoint): Add target_ops parameter.
8200 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8201 Add target_ops parameter.
8202 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8203 Add target_ops parameter.
8205 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8206 Markus Metzger <markus.t.metzger@intel.com>
8208 * record-btrace.c: Include frame-unwind.h.
8209 (record_btrace_frame_unwind_stop_reason)
8210 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8211 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8213 (init_record_btrace_ops): Install it.
8215 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8217 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8220 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8222 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8225 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8227 * frame-unwind.c: Include target.h.
8228 (frame_unwind_try_unwinder): New function with code from ...
8229 (frame_unwind_find_by_frame): ... here. New variable
8230 unwinder_from_target, call also target_get_unwinder)
8231 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8232 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8233 * target.h (struct target_ops): New fields to_get_unwinder and
8234 to_get_tailcall_unwinder.
8235 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8237 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8239 * record-btrace.c (record_btrace_fetch_registers)
8240 (record_btrace_store_registers)
8241 (record_btrace_to_prepare_to_store): New.
8242 (init_record_btrace_ops): Add the above.
8244 2014-01-16 Tom Tromey <tromey@redhat.com>
8246 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8247 * target.h (struct target_ops) <to_prepare_to_store>: Add
8249 (target_prepare_to_store): Add argument.
8250 * target.c (debug_to_prepare_to_store): Add argument.
8251 (update_current_target): Update.
8252 * remote.c (remote_prepare_to_store): Add 'self' argument.
8253 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8254 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8255 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8256 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8258 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8259 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8260 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8261 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8262 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8264 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8266 * btrace.h (replay) <replay>: New.
8267 (btrace_is_replaying): New.
8268 * btrace.c (btrace_clear): Free replay iterator.
8269 (btrace_is_replaying): New.
8270 * record-btrace.c (record_btrace_is_replaying): New.
8271 (record_btrace_info): Print insn number if replaying.
8272 (record_btrace_insn_history): Start at replay position.
8273 (record_btrace_call_history): Start at replay position.
8274 (init_record_btrace_ops): Init to_record_is_replaying.
8276 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8278 * record-btrace.c (record_btrace_insn_history_range): Include
8280 (record_btrace_insn_history_from): Adjust range.
8281 (record_btrace_call_history_range): Include
8283 (record_btrace_call_history_from): Adjust range.
8284 * NEWS: Announce changes.
8286 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8288 * record.h (enum record_print_flag)
8289 <record_print_indent_calls>: New.
8290 * record.c (get_call_history_modifiers): Recognize /c modifier.
8291 (_initialize_record): Document /c modifier.
8292 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8293 Reorder fields. Optionally indent the function name. Update
8295 * NEWS: Announce changes.
8297 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8299 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8301 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8303 * btrace.c (ftrace_new_function): Start counting at one.
8304 * record-btrace.c (record_btrace_info): Adjust number of calls
8306 * NEWS: Announce it.
8308 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8310 * record-btrace.c (btrace_call_history_insn_range): Print
8311 insn range as [begin, end].
8313 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8315 * btrace.h (struct btrace_func_link): New.
8316 (enum btrace_function_flag): New.
8317 (struct btrace_inst): Rename to ...
8318 (struct btrace_insn): ...this. Update all users.
8319 (struct btrace_func) <ibegin, iend>: Remove.
8320 (struct btrace_func_link): New.
8321 (struct btrace_func): Rename to ...
8322 (struct btrace_function): ...this. Update all users.
8323 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8324 (number, level, flags>: New.
8325 (struct btrace_insn_iterator): Rename to ...
8326 (struct btrace_insn_history): ...this.
8328 (struct btrace_insn_iterator, btrace_call_iterator): New.
8329 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8330 (struct btrace_target_info) <begin, end, level>
8331 <insn_history, call_history>: New.
8332 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8333 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8334 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8335 (btrace_call_number, btrace_call_begin, btrace_call_end)
8336 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8337 (btrace_find_function_by_number, btrace_set_insn_history)
8338 (btrace_set_call_history): New.
8339 * btrace.c (btrace_init_insn_iterator)
8340 (btrace_init_func_iterator, compute_itrace): Remove.
8341 (ftrace_print_function_name, ftrace_print_filename)
8342 (ftrace_skip_file): Change
8344 (ftrace_init_func): Remove.
8345 (ftrace_debug): Use new btrace_function fields.
8346 (ftrace_function_switched): Also consider gaining and
8347 losing symbol information).
8348 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8349 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8350 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8352 (ftrace_new_function): Move. Remove debug print.
8353 (ftrace_update_lines, ftrace_update_insns): New.
8354 (ftrace_update_function): Check for call, ret, and jump.
8355 (compute_ftrace): Renamed to ...
8356 (btrace_compute_ftrace): ...this. Rewritten to compute call
8358 (btrace_fetch, btrace_clear): Updated.
8359 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8360 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8361 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8362 (btrace_call_number, btrace_call_begin, btrace_call_end)
8363 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8364 (btrace_find_function_by_number, btrace_set_insn_history)
8365 (btrace_set_call_history): New.
8366 * record-btrace.c (require_btrace): Use new btrace thread
8368 (record_btrace_info, btrace_insn_history)
8369 (record_btrace_insn_history, record_btrace_insn_history_range):
8370 Use new btrace thread info fields and new iterator.
8371 (btrace_func_history_src_line): Rename to ...
8372 (btrace_call_history_src_line): ...this. Use new btrace
8374 (btrace_func_history): Rename to ...
8375 (btrace_call_history): ...this. Use new btrace thread info
8376 fields and new iterator.
8377 (record_btrace_call_history, record_btrace_call_history_range):
8378 Use new btrace thread info fields and new iterator.
8380 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8382 * frame.h (frame_id_build_unavailable_stack_special): New.
8383 * frame.c (frame_id_build_unavailable_stack_special): New.
8385 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8387 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8388 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8389 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8391 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8392 (i386_insn_is_jump, i386_jmp_p): New.
8393 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8394 insn_is_jump to gdbarch.
8395 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8396 * gdbarch.h: Regenerated.
8397 * gdbarch.c: Regenerated.
8398 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8399 (default_insn_is_jump): New.
8400 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8401 (default_insn_is_jump): New.
8403 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8405 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8407 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8408 (btrace_read_type) <btrace_read_new>: Change to ...
8409 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8411 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8413 * common/linux-btrace.c (linux_read_btrace): Free trace from
8416 2014-01-15 Doug Evans <dje@google.com>
8418 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8421 2014-01-15 Tom Tromey <tromey@redhat.com>
8423 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8424 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8425 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8426 (set_objfile_main_name): New function.
8427 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8428 language_of_main>: New fields.
8429 (set_objfile_main_name): Declare.
8430 * symtab.c (find_main_name): Loop over objfiles to find the main
8432 (set_main_name): Now static.
8433 (get_main_info): Add comment.
8434 * symtab.h (set_main_name): Don't declare.
8436 2014-01-15 Tom Tromey <tromey@redhat.com>
8438 * symtab.c (main_progspace_key): New global.
8439 (struct main_info): New.
8440 (name_of_main, language_of_main): Remove.
8441 (get_main_info, main_info_cleanup): New function.
8442 (set_main_name, main_name, main_language): Use get_main_info.
8443 (_initialize_symtab): Initialize main_progspace_key.
8445 2014-01-15 Tom Tromey <tromey@redhat.com>
8447 * dbxread.c (process_one_symbol): Update.
8448 * dwarf2read.c (read_partial_die): Update.
8449 * symfile.c (set_initial_language): Call main_language.
8450 * symtab.c (language_of_main): Now static.
8451 (set_main_name): Add 'lang' parameter.
8452 (find_main_name): Update.
8453 (main_language): New function.
8454 (symtab_observer_executable_changed): Update.
8455 * symtab.h (set_main_name): Update.
8456 (language_of_main): Remove.
8457 (main_language): Declare.
8459 2014-01-15 Tom Tromey <tromey@redhat.com>
8461 * symfile.c (init_entry_point_info): Use new "initialized" field.
8463 * objfiles.h (struct entry_point) <initialized>: New field.
8464 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8465 (struct objfile) <ei>: ...here. Remove.
8466 * objfiles.c (entry_point_address_query): Update.
8468 2014-01-15 Tom Tromey <tromey@redhat.com>
8470 * objfiles.c (entry_point_address_query): Relocate entry point
8472 (objfile_relocate1): Do not relocate entry point address.
8473 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8474 <the_bfd_section_index>: New field.
8475 * symfile.c (init_entry_point_info): Find the entry point's
8478 2014-01-15 Tom Tromey <tromey@redhat.com>
8480 * solib-frv.c (enable_break): Use entry_point_address_query.
8482 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8484 * NEWS: Add note on improved process record-replay on
8485 arm*-linux* targets.
8487 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8489 * arm-tdep.c (enum arm_record_result): New enum.
8490 (arm_record_unsupported_insn): New function.
8491 (arm_record_coproc_data_proc): Removed.
8492 (thumb2_record_ld_st_multiple): New function.
8493 (thumb2_record_ld_st_dual_ex_tbb): New function.
8494 (thumb2_record_data_proc_sreg_mimm): New function.
8495 (thumb2_record_ps_dest_generic): New function.
8496 (thumb2_record_branch_misc_cntrl): New function.
8497 (thumb2_record_str_single_data): New function.
8498 (thumb2_record_ld_mem_hints): New function.
8499 (thumb2_record_ld_word): New function.
8500 (thumb2_record_lmul_lmla_div): New function.
8501 (thumb2_record_decode_insn_handler): New function.
8502 (decode_insn): Add thumb32 instruction handlers.
8504 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8506 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8507 (struct arm_linux_record_tdep): Declare.
8508 (arm_canonicalize_syscall): New function.
8509 (arm_all_but_pc_registers_record): New function.
8510 (arm_linux_syscall_record): New function.
8511 (arm_linux_init_abi): Add syscall recording constructs.
8512 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8513 decoding. (arm_record_coproc_data_proc): Update arm syscall
8515 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8516 <arm_syscall_record>: New field.
8517 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8520 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8522 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8523 register for push instruction recording.
8525 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8527 * arm-tdep.c (thumb_record_misc): Update to correct logical
8528 error while recording ldm, ldmia and pop instructions.
8530 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8532 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8534 2014-01-15 Pedro Alves <palves@redhat.com>
8536 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8537 (go32_resume, go32_fetch_registers, store_register)
8538 (go32_store_registers, go32_prepare_to_store)
8539 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8540 (go32_create_inferior, go32_can_run, go32_terminal_init)
8541 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8544 2014-01-15 Tom Tromey <tromey@redhat.com>
8546 * target.h (async_callback_ftype): New typedef.
8547 (struct target_ops) <to_async>: Use it.
8549 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8551 * python/py-value.c (get_field_type): Remove unnecessary curly
8552 braces for single-statement if block.
8554 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8556 * python/py-type.c (convert_field): Add missing empty line
8559 2014-01-14 Doug Evans <dje@google.com>
8561 * symfile.h (expand_symtabs_matching): Renamed from
8562 expand_partial_symbol_names. Update prototype.
8563 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8564 * symfile.c (expand_symtabs_matching): Renamed from
8565 expand_partial_symbol_names. New args file_matcher, kind.
8566 Rename arg fun to symbol_matcher.
8567 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8568 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8569 ada_expand_partial_symbol_name.
8570 (ada_make_symbol_completion_list): Update to call
8571 expand_symtabs_matching.
8572 (ada_add_global_exceptions): Call expand_symtabs_matching.
8573 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8574 call map_symbol_filenames.
8575 * symtab.c (sources_info): Update to call map_symbol_filenames.
8576 (search_symbols): Call expand_symtabs_matching.
8577 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8578 (default_make_symbol_completion_list_break_on): Update to call
8579 expand_symtabs_matching.
8580 (make_source_files_completion_list): Update to call
8581 map_symbol_filenames.
8583 2014-01-14 Doug Evans <dje@google.com>
8585 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8586 (expand_symtabs_symbol_matcher_ftype): New typedef.
8587 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8588 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8589 * symfile.c (expand_partial_symbol_names): Update to use
8590 expand_symtabs_symbol_matcher_ftype.
8591 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8592 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8593 Arg name_matcher renamed to symbol_matcher.
8594 * psymtab.c (recursively_search_psymtabs): Update to use
8595 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8597 (expand_symtabs_matching_via_partial): Update to use
8598 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8599 Arg name_matcher renamed to symbol_matcher.
8601 2014-01-14 Doug Evans <dje@google.com>
8603 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8604 (map_partial_symbol_filenames): Ditto.
8605 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8606 (map_partial_symbol_filenames): Ditto.
8607 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8608 (map_partial_symbol_filenames): Ditto.
8609 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8610 (map_partial_symbol_filenames): Ditto.
8611 * symtab.c: Delete #include "psymtab.h".
8613 2014-01-14 Pedro Alves <palves@redhat.com>
8614 Tom Tromey <tromey@redhat.com>
8616 * infrun.c (use_displaced_stepping): Use find_record_target
8617 instead of RECORD_IS_USED.
8618 (adjust_pc_after_break): Use record_full_is_used instead of
8620 * record-btrace.c (record_btrace_open): Call record_preopen
8621 instead of checking RECORD_IS_USED.
8622 * record-full.c (record_full_shortname)
8623 (record_full_core_shortname): New globals.
8624 (record_full_is_used): New function.
8625 (find_full_open): Call record_preopen instead of checking
8627 (init_record_full_ops): Set the target's shortname to
8628 record_full_shortname.
8629 (init_record_full_core_ops): Set the target's shortname to
8630 record_full_core_shortname.
8631 * record-full.h (record_full_is_used): Declare.
8632 * record.c (find_record_target): Make extern.
8633 (record_preopen): New function.
8634 * record.h (RECORD_IS_USED): Delete macro.
8635 (find_record_target, record_preopen): Declare functions.
8637 2014-01-14 Yao Qi <yao@codesourcery.com>
8639 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8640 'len''s type to ULONGEST.
8641 (core_xfer_shared_libraries_aix): Likewise.
8642 * gdbarch.c, gdbarch.h: Regenerated.
8643 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8644 Change type of 'len' to ULONGEST.
8645 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8646 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8648 2014-01-14 Yao Qi <yao@codesourcery.com>
8650 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8651 type of 'len' to ULONGEST.
8652 (linux_xfer_osdata_processgroups): Likewise.
8653 (linux_xfer_osdata_threads): Likewise.
8654 (linux_xfer_osdata_fds): Likewise.
8655 (linux_xfer_osdata_isockets): Likewise.
8656 (linux_xfer_osdata_shm): Likewise.
8657 (linux_xfer_osdata_sem): Likewise.
8658 (linux_xfer_osdata_msg): Likewise.
8659 (linux_common_xfer_osdata): Likewise.
8660 (struct osdata_type) <getter>: Likewise.
8661 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8664 2014-01-14 Yao Qi <yao@codesourcery.com>
8666 * target.h (target_xfer_partial_ftype): Update.
8667 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8669 * aix-thread.c (aix_thread_xfer_partial): Change type of
8670 argument 'len' to ULONGEST.
8671 * auxv.c (procfs_xfer_auxv): Likewise.
8672 (ld_so_xfer_auxv): Likewise.
8673 (memory_xfer_auxv): Likewise.
8674 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8675 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8676 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8677 * corelow.c (core_xfer_partial): Likewise.
8678 * ctf.c (ctf_xfer_partial): Likewise.
8679 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8681 (darwin_read_dyld_info): Likewise.
8682 (darwin_xfer_partial): Likewise.
8683 * exec.c (section_table_xfer_memory_partial): Likewise.
8684 (exec_xfer_partial): Likewise.
8685 * exec.h (section_table_xfer_memory_partial): Update
8687 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8688 instead of plongest.
8689 (gnu_xfer_partial): Likewise.
8690 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8691 (ia64_hpux_xfer_solib_got): Likewise.
8692 (ia64_hpux_xfer_partial): Likewise.
8693 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8694 * inf-ptrace.c (inf_ptrace_xfer_partial):
8695 * inf-ttrace.c (inf_ttrace_xfer_partial):
8696 * linux-nat.c (linux_xfer_siginfo): Likewise.
8697 (linux_nat_xfer_partial): Likewise.
8698 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8699 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8700 * monitor.c (monitor_xfer_memory): Likewise.
8701 (monitor_xfer_partial): Likewise.
8702 * procfs.c (procfs_xfer_partial): Likewise.
8703 * record-full.c (record_full_xfer_partial): Likewise.
8704 (record_full_core_xfer_partial): Likewise.
8705 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8706 instead of plongest.
8707 (gdbsim_xfer_partial): Likewise.
8708 * remote.c (remote_xfer_partial): Likewise.
8709 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8710 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8712 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8713 (rs6000_xfer_shared_libraries): Likewise.
8714 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8715 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8716 (sparc_xfer_partial): Likewise.
8717 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8718 (spu_xfer_partial): Likewise.
8719 * spu-multiarch.c (spu_xfer_partial): Likewise.
8720 * target.c (target_read_live_memory): Likewise.
8721 (memory_xfer_live_readonly_partial): Likewise.
8722 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8723 (target_xfer_partial, default_xfer_partial): Likewise.
8724 (current_xfer_partial): Likewise.
8725 * tracepoint.c (tfile_xfer_partial): Likewise.
8726 * windows-nat.c (windows_xfer_memory): Likewise. Call
8727 pulongest instead of plongest.
8728 (windows_xfer_partial): Likewise.
8729 (windows_xfer_shared_libraries): Likewise.
8731 2014-01-14 Yao Qi <yao@codesourcery.com>
8733 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
8734 target_xfer_partial_ftype.
8736 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
8740 * valops.c (value_struct_elt_bitpos): New function
8741 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
8742 object to 'None' if the field name is an empty string ("").
8743 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
8744 attribute to look for a field when 'name' is 'None'.
8745 (get_field_type): New function
8747 2014-01-13 Doug Evans <dje@google.com>
8750 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
8751 (try_open_dwop_file): Ditto.
8752 * gdb_bfd.c: #include "vec.h".
8753 (bfdp): New typedef.
8754 (struct gdb_bfd_data): New member included_bfds.
8755 (gdb_bfd_unref): Unref all included bfds.
8756 (gdb_bfd_record_inclusion): New function.
8757 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
8759 2014-01-13 Tom Tromey <tromey@redhat.com>
8761 * gdbcore.h (deprecated_core_resize_section_table): Remove.
8763 2014-01-13 Tom Tromey <tromey@redhat.com>
8765 * defs.h (use_windows): Remove.
8766 * gdb.c (main): Update.
8767 * main.c (captured_main, gdb_main): Update.
8768 * main.h (struct captured_main_args) <use_windows>: Remove.
8769 * top.c (use_windows): Remove.
8771 2014-01-13 Tom Tromey <tromey@redhat.com>
8773 * defs.h (deprecated_flush_hook): Remove.
8775 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8778 * linux-thread-db.c (try_thread_db_load): Add parameter
8779 check_auto_load_safe. Move here the file_is_auto_load_safe call.
8780 (try_thread_db_load_from_pdir_1): Move it there from here.
8781 (try_thread_db_load_from_sdir): Update caller.
8782 (try_thread_db_load_from_dir): Move it there from here.
8784 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
8786 * regformats/regdat.sh: Always rewrite the register file.
8788 2014-01-13 Pedro Alves <palves@redhat.com>
8790 * Makefile.in (CHECK_HEADERS): New variable.
8791 (check-headers:): New rule.
8793 2014-01-13 Tom Tromey <tromey@redhat.com>
8795 * cli/cli-setshow.c (do_set_command): Update.
8796 * defs.h (deprecated_set_hook): Remove.
8797 * top.c (deprecated_set_hook): Remove.
8799 2014-01-13 Pedro Alves <palves@redhat.com>
8801 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
8802 the tracepoint if the PC is a pseudo-register.
8804 2014-01-13 Tom Tromey <tromey@redhat.com>
8806 * defs.h (XCALLOC): Remove.
8807 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
8808 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
8809 * dwarf2loc.c (allocate_piece_closure): Likewise.
8810 * elfread.c (elf_symfile_segments): Likewise.
8811 (elf_symfile_segments): Likewise.
8812 * gdbtypes.c (copy_type_recursive): Likewise.
8813 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
8814 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
8815 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
8817 * mt-tdep.c (mt_gdbarch_init): Likewise.
8818 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
8820 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
8821 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
8822 * registry.c (registry_alloc_data): Likewise.
8823 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
8824 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
8825 * serial.c (serial_fdopen_ops): Likewise.
8826 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
8828 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
8829 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
8832 2014-01-13 Tom Tromey <tromey@redhat.com>
8834 * defs.h (XMALLOC): Remove.
8835 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
8836 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
8837 * cli-out.c (struct ui_out *): Likewise.
8838 * cli/cli-dump.c (add_dump_command): Likewise.
8839 (add_dump_command): Likewise.
8840 * complaints.c (get_complaints): Likewise.
8841 (find_complaint): Likewise.
8842 * dwarf2-frame.c (execute_cfa_program): Likewise.
8843 * dwarf2read.c (abbrev_table_read_table): Likewise.
8844 * gdbarch.sh: Likewise.
8845 * gdbarch.c: Rebuild.
8846 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
8847 * interps.c (interp_new): Likewise.
8848 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
8849 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
8850 * mi/mi-console.c (mi_console_file_new): Likewise.
8851 * mi/mi-interp.c (mi_interpreter_init): Likewise.
8852 * mi/mi-out.c (mi_out_new): Likewise.
8853 * mi/mi-parse.c (mi_parse): Likewise.
8854 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
8855 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
8856 * observer.c (xalloc_observer_list_node): Likewise.
8857 * regcache.c (regcache_xmalloc_1): Likewise.
8858 * reggroups.c (reggroup_new): Likewise.
8859 (_initialize_reggroup): Likewise.
8860 * registry.c (register_data_with_cleanup): Likewise.
8861 * remote.c (remote_notif_stop_alloc_reply): Likewise.
8862 * ser-base.c (serial_ttystate): Likewise.
8863 * ser-mingw.c (make_pipe_state): Likewise.
8864 * ser-pipe.c (pipe_open): Likewise.
8865 * serial.c (serial_open): Likewise.
8866 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
8867 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
8868 (tui_alloc_win_info): Likewise.
8869 (tui_add_content_elements): Likewise.
8870 * tui/tui-file.c (tui_file_new): Likewise.
8871 * tui/tui-out.c (tui_out_new): Likewise.
8872 * ui-file.c (mem_file_new): Likewise.
8873 * ui-out.c (push_level): Likewise.
8874 (make_cleanup_ui_out_end): Likewise.
8875 (append_header_to_list): Likewise.
8876 (ui_out_new): Likewise.
8877 * user-regs.c (user_reg_add_builtin): Likewise.
8879 2014-01-13 Tom Tromey <tromey@redhat.com>
8881 * defs.h (XZALLOC): Remove.
8882 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
8883 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
8884 (get_ada_tasks_inferior_data): Likewise.
8885 * auto-load.c (get_auto_load_pspace_data): Likewise.
8886 * auxv.c (get_auxv_inferior_data): Likewise.
8887 * bfd-target.c (target_bfd_reopen): Likewise.
8888 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
8889 (deprecated_insert_raw_breakpoint): Likewise.
8890 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
8891 * corelow.c (core_open): Likewise.
8892 * darwin-nat.c (darwin_check_new_threads): Likewise.
8893 (darwin_attach_pid): Likewise.
8894 * dummy-frame.c (dummy_frame_push): Likewise.
8895 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
8896 * dwarf2loc.c (allocate_piece_closure): Likewise.
8897 * elfread.c (elf_symfile_segments): Likewise.
8898 * eval.c (ptrmath_type_p): Likewise.
8899 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
8900 * gdbtypes.c (alloc_type_arch): Likewise.
8901 (alloc_type_instance): Likewise.
8902 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
8903 * inf-child.c (inf_child_can_use_agent): Likewise.
8904 * inflow.c (get_inflow_inferior_data): Likewise.
8905 * infrun.c (save_infcall_suspend_state): Likewise.
8906 * jit.c (jit_reader_load): Likewise.
8907 (get_jit_objfile_data): Likewise.
8908 (get_jit_program_space_data): Likewise.
8909 (jit_object_open_impl): Likewise.
8910 (jit_symtab_open_impl): Likewise.
8911 (jit_block_open_impl): Likewise.
8912 (jit_frame_sniffer): Likewise.
8913 * linux-fork.c (add_fork): Likewise.
8914 * maint.c (make_command_stats_cleanup): Likewise.
8915 * objfiles.c (get_objfile_pspace_data): Likewise.
8916 * opencl-lang.c (struct lval_closure): Likewise.
8917 * osdata.c (osdata_start_osdata): Likewise.
8918 * progspace.c (new_address_space): Likewise.
8919 (add_program_space): Likewise.
8920 * remote-sim.c (get_sim_inferior_data): Likewise.
8921 * sh-tdep.c (sh_gdbarch_init): Likewise.
8922 * skip.c (Ignore): Likewise.
8923 (skip_delete_command): Likewise.
8924 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
8925 (library_list_start_library): Likewise.
8926 (solib_aix_current_sos): Likewise.
8927 * solib-darwin.c (get_darwin_info): Likewise.
8928 (darwin_current_sos): Likewise.
8929 * solib-dsbt.c (get_dsbt_info): Likewise.
8930 * solib-ia64-hpux.c (new_so_list): Likewise.
8931 (ia64_hpux_get_solib_linkage_addr): Likewise.
8932 * solib-spu.c (append_ocl_sos): Likewise.
8933 (spu_current_sos): Likewise.
8934 * solib-svr4.c (get_svr4_info): Likewise.
8935 (svr4_keep_data_in_core): Likewise.
8936 (library_list_start_library): Likewise.
8937 (svr4_default_sos): Likewise.
8938 (svr4_read_so_list): Likewise.
8939 * solib-target.c (library_list_start_library): Likewise.
8940 (solib_target_current_sos): Likewise.
8941 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
8942 * symfile-debug.c (install_symfile_debug_logging): Likewise.
8943 * symfile.c (default_symfile_segments): Likewise.
8944 * target-descriptions.c (tdesc_data_init): Likewise.
8945 (tdesc_create_reg): Likewise.
8946 (struct tdesc_type *): Likewise.
8947 (tdesc_create_vector): Likewise.
8948 (tdesc_set_struct_size): Likewise.
8949 (struct tdesc_type *): Likewise.
8950 (tdesc_free_feature): Likewise.
8951 (tdesc_create_feature): Likewise.
8952 * windows-nat.c (windows_add_thread): Likewise.
8953 (windows_make_so): Likewise.
8954 * xml-support.c (gdb_xml_body_text): Likewise.
8955 (gdb_xml_create_parser_and_cleanup): Likewise.
8956 (xml_process_xincludes): Likewise.
8957 * xml-syscall.c (allocate_syscalls_info): Likewise.
8958 (syscall_create_syscall_desc): Likewise.
8960 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
8962 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
8963 function, with code from i386_stap_parse_special_token.
8964 (i386_stap_parse_special_token_three_arg_disp): Likewise.
8965 (i386_stap_parse_special_token): Move code to the two functions
8968 2014-01-09 Pedro Alves <palves@redhat.com>
8969 Hui Zhu <hui@codesourcery.com>
8972 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
8973 bp_err_string. Don't mark the location shlib_disabled if the
8974 error thrown wasn't a generic or memory error. Catch errors
8975 thrown while inserting breakpoints in overlayed code. Output
8976 error message of software breakpoints.
8977 * remote.c (remote_insert_breakpoint): If this breakpoint has
8978 target-side commands but this stub doesn't support Z0 packets,
8979 throw NOT_SUPPORTED_ERROR error.
8980 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
8981 * target.h (target_insert_breakpoint): Extend comment.
8982 (target_insert_hw_breakpoint): Add comment.
8984 2014-01-08 Pedro Alves <palves@redhat.com>
8986 * remote.c (remote_add_thread): Add threads silently if starting
8988 (remote_notice_new_inferior): If in all-stop, and starting up,
8989 don't call notice_new_inferior.
8990 (get_current_thread): New function, factored out from ...
8991 (add_current_inferior_and_thread): ... this. Adjust.
8992 (remote_start_remote) <all-stop>: Fetch the thread list. If we
8993 found any thread, then select the remote's current thread as GDB's
8996 2014-01-08 Joel Brobecker <brobecker@adacore.com>
8998 * NEWS: Create a new section for the next release branch.
8999 Rename the section of the current branch, now that it has
9002 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9004 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9005 * version.in: Bump version to 7.7.50.DATE-cvs.
9007 2014-01-08 Yao Qi <yao@codesourcery.com>
9009 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9010 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9011 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9013 2014-01-08 Yao Qi <yao@codesourcery.com>
9015 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9016 return value of bfd_get_filename to symbol_file_add_from_bfd.
9018 2014-01-08 Pierre Muller <muller@sourceware.org>
9021 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9022 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9023 to prim_record_mininal_symbol_and_info.
9024 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9025 in call to prim_record_minimal_symbol_and_info.
9026 (read_pe_exported_syms): Set index field of section_data.
9028 2014-01-07 Andrew Pinski <apinski@cavium.com>
9030 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9031 * features/aarch64.c: Regenerate.
9033 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9035 * target.c (return_null): Define.
9036 (update_current_target): Use it instead of return_zero for
9037 functions that return a pointer.
9039 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9041 * source.c (add_path): Fix check for duplicated paths in the previously
9044 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9046 * ada-lang.c: Remove duplicated include statements.
9047 * alphabsd-nat.c: Ditto.
9048 * amd64-darwin-tdep.c: Ditto.
9049 * amd64fbsd-nat.c: Ditto.
9050 * auto-load.c: Ditto.
9052 * breakpoint.c: Ditto.
9054 * fork-child.c: Ditto.
9055 * gdb_usleep.c: Ditto.
9056 * i386-darwin-tdep.c: Ditto.
9057 * i386fbsd-nat.c: Ditto.
9059 * inferior.c: Ditto.
9061 * linux-nat.c: Ditto.
9062 * linux-tdep.c: Ditto.
9063 * m68kbsd-nat.c: Ditto.
9064 * m68klinux-nat.c: Ditto.
9065 * microblaze-tdep.c: Ditto.
9066 * mips-linux-tdep.c: Ditto.
9067 * mn10300-tdep.c: Ditto.
9068 * nto-tdep.c: Ditto.
9069 * opencl-lang.c: Ditto.
9071 * printcmd.c: Ditto.
9072 * regcache.c: Ditto.
9073 * remote-m32r-sdi.c: Ditto.
9077 * tilegx-linux-nat.c: Ditto.
9078 * tilegx-tdep.c: Ditto.
9079 * tracepoint.c: Ditto.
9081 * vaxbsd-nat.c: Ditto.
9082 * windows-nat.c: Ditto.
9083 * xtensa-tdep.c: Ditto.
9085 2014-01-07 Yao Qi <yao@codesourcery.com>
9087 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9089 2014-01-07 Yao Qi <yao@codesourcery.com>
9090 Joel Brobecker <brobecker@adacore.com>
9092 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9093 (pdc_write_regs): Likewise.
9094 (fetch_regs_kernel_thread): Likewise.
9095 (store_regs_kernel_thread): Likewise.
9097 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9099 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9100 tagged type objects to their actual type.
9102 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9104 * ada-valprint.c (print_field_values): Add "language" parameter.
9105 Update calls to print_field_values and print_variant_part.
9106 Pass new parameter "language" in call to val_print instead
9107 of "current_language". Replace call to ada_val_print by call
9109 (print_variant_part): Add "language" parameter.
9110 (ada_val_print_struct_union): Update call to print_field_values.
9112 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9114 * ada-valprint.c (ui_memcpy): Delete.
9115 (ada_print_floating): Update documentation. Add empty line
9116 between between function documentation and implementation.
9117 Delete variable "buffer". Use ui_file_xstrdup in place of
9118 ui_file_put. Minor adjustments following this change.
9120 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9122 * ada-valprint.c (ada_val_print_string): New function,
9123 extracted from ada_val_print_array.
9124 (ada_val_print_array): Replace extracted code by call
9125 to ada_val_print_string followed by a return. Move
9126 "else" branch to the function's top block.
9128 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9130 * ada-valprint.c (ada_val_print_array): Move implementation
9131 down. Rename parameter "offset" and "val" into "offset_aligned"
9132 and "original_value" respectively. Add parameter "offset".
9134 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9136 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9137 re-organizing the code. Change the "???" message printed
9138 when target type is a TYPE_CODE_UNDEF into
9139 "<ref to undefined type>".
9141 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9143 * ada-valprint.c (print_record): Delete, implementation inlined...
9144 (ada_val_print_struct_union): ... here. Remove call to
9145 ada_check_typedef in inlined implementation.
9147 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9149 * ada-valprint.c (ada_val_print_gnat_array): New function,
9150 extracted from ada_val_print_1;
9151 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9152 (ada_val_print_flt, ada_val_print_struct_union)
9153 (ada_val_print_ref): Likewise.
9154 (ada_val_print_1): Delete variables i and elttype.
9155 Replace extracted-out code by call to corresponding
9158 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9160 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9162 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9164 * ada-valprint.c (ada_val_print_1): Replace calls to
9165 ada_val_print_1 by calls to val_print.
9167 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9169 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9170 Update calls to self accordingly. Replace calls to c_val_print
9171 by calls to val_print.
9173 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9175 * ada-valprint.c (print_record): Delete declaration.
9176 (adjust_type_signedness, ada_val_print_1): Likewise.
9177 (ada_val_print): Move function implementation down.
9178 (print_variant_part, print_field_values, print_record):
9179 Move function implementation up.
9181 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9183 * python/py-type.c (typy_get_name): New function.
9184 (type_object_getset): Add entry for attribute "name".
9185 * NEWS: Add entry mentioning this new attribute.
9187 2014-01-07 Yao Qi <yao@codesourcery.com>
9189 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9192 2014-01-07 Yao Qi <yao@codesourcery.com>
9194 * gnu-nat.c (info_port_rights): Add qualifier const to
9197 2014-01-07 Yao Qi <yao@codesourcery.com>
9199 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9201 2014-01-07 Yao Qi <yao@codesourcery.com>
9203 * gnu-nat.c (make_inf) Update declaration.
9204 (make_inf): Make it static.
9205 (inf_set_traced): Likewise.
9206 (inf_port_to_thread, inf_task_died_status): Likewise.
9208 2014-01-07 Yao Qi <yao@codesourcery.com>
9210 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9212 2014-01-07 Yao Qi <yao@codesourcery.com>
9214 * gnu-nat.c (_initialize_gnu_nat): Declare.
9216 2014-01-07 Yao Qi <yao@codesourcery.com>
9218 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9220 (struct gdbarch_info) <byte_order>: Change type to
9222 <byte_order_for_code>: Likewise.
9223 * gdbarch.c, gdbarch.h: Regenerated.
9225 2014-01-06 Sasha Smundak <asmundak@google.com>
9227 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9229 2014-01-06 Tom Tromey <tromey@redhat.com>
9231 * doublest.c (convert_doublest_to_floatformat): Use const, not
9233 * somread.c (som_symtab_read): Likewise.
9235 2014-01-07 Hui Zhu <hui@codesourcery.com>
9237 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9238 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9239 (gdb_bfd_fopen): Ditto.
9240 (gdb_bfd_openr): Ditto.
9241 (gdb_bfd_openw): Ditto.
9242 (gdb_bfd_openr_iovec): Ditto.
9243 (gdb_bfd_fdopenr): Ditto.
9244 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9245 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9247 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9249 * symfile-mem.c (symbol_file_add_from_memory): Removed
9250 gdb_bfd_stash_filename.
9252 2014-01-03 Doug Evans <dje@google.com>
9254 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9257 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9259 Update year range in copyright notice of all files.
9261 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9263 * top.c (print_gdb_version): Set copyright year to 2014.
9265 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9267 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9269 For older changes see ChangeLog-2013.
9275 version-control: never