1 2014-10-29 Pedro Alves <palves@redhat.com>
4 * infrun.c (switch_back_to_stepped_thread): Use currently_stepping
5 instead of assuming a thread with a stepping range is always
8 2014-10-29 Pedro Alves <palves@redhat.com>
11 * event-top.c (change_line_handler): Call
12 gdb_rl_callback_handler_remove instead of
13 rl_callback_handler_remove.
14 (callback_handler_installed): New global.
15 (gdb_rl_callback_handler_remove, gdb_rl_callback_handler_install)
16 (gdb_rl_callback_handler_reinstall): New functions.
17 (display_gdb_prompt): Call gdb_rl_callback_handler_remove and
18 gdb_rl_callback_handler_install instead of
19 rl_callback_handler_remove and rl_callback_handler_install.
20 (gdb_disable_readline): Call gdb_rl_callback_handler_remove
21 instead of rl_callback_handler_remove.
22 * event-top.h (gdb_rl_callback_handler_remove)
23 (gdb_rl_callback_handler_install)
24 (gdb_rl_callback_handler_reinstall): New declarations.
25 * infrun.c (reinstall_readline_callback_handler_cleanup): New
27 (fetch_inferior_event): Install it.
28 * top.c (gdb_readline_wrapper_line) Call
29 gdb_rl_callback_handler_remove instead of
30 rl_callback_handler_remove.
31 (gdb_readline_wrapper_cleanup): Don't call
32 rl_callback_handler_install.
34 2014-10-17 Pedro Alves <palves@redhat.com>
37 * infcmd.c (strip_bg_char): Change prototype and rewrite. Now
38 returns a copy of the input.
39 (run_command_1, continue_command, step_1, jump_command)
40 (signal_command, until_command, advance_command, finish_command)
41 (attach_command): Adjust and install a cleanup to free the
44 2014-10-17 Pedro Alves <palves@redhat.com>
47 * infcmd.c (continue_1): If continuing all threads in the
48 foreground, make sure the inferior's terminal settings are put in
51 2014-10-17 Pedro Alves <palves@redhat.com>
54 * annotate.c (annotate_breakpoints_invalid): Use
55 target_terminal_our_for_output instead of target_terminal_ours.
56 Give back the terminal to the target.
57 (annotate_frames_invalid): Likewise.
59 2014-10-17 Pedro Alves <palves@redhat.com>
61 * target.c (enum terminal_state): New enum.
62 (terminal_state): New global.
63 (target_terminal_init): New function.
64 (target_terminal_inferior): Skip if inferior already owns the
66 (target_terminal_ours, target_terminal_ours_for_output): New
68 * target.h (target_terminal_init): Convert to function prototype.
69 (target_terminal_ours_for_output): Convert to function prototype
71 (target_terminal_ours): Convert to function prototype and tweak
73 * windows-nat.c (do_initial_windows_stuff): Call
74 target_terminal_init instead of child_terminal_init_with_pgrp.
76 2014-10-15 Doug Evans <dje@google.com>
77 Walfred Tedeschi <walfred.tedeschi@intel.com>
80 * python/lib/gdb/__init__.py (packages): Add "printer".
81 * python/lib/gdb/command/bound_registers.py: Moved to ...
82 * python/lib/gdb/printer/bound_registers.py: ... here.
83 Add printer to global set of builtin printers. Rename printer from
84 "bound" to "mpx_bound128".
85 * python/lib/gdb/printing.py (_builtin_pretty_printers): New global,
86 registered as global "builtin" printer.
87 (add_builtin_pretty_printer): New function.
88 * data-directory/Makefile.in (PYTHON_FILE_LIST): Update, and add
89 gdb/printer/__init__.py.
91 2014-10-01 Pedro Alves <palves@redhat.com>
93 * features/aarch64-core.xml (cpsr): Change back to 32-bit.
94 * features/aarch64.c: Regenerate.
96 2014-09-11 Pedro Alves <palves@redhat.com>
99 * main.c: Include "infrun.h".
100 (catch_command_errors, catch_command_errors_const): Wait for the
101 foreground command to complete.
102 * top.c (maybe_wait_sync_command_done): New function, factored out
104 (maybe_wait_sync_command_done): ... here.
105 * top.h (maybe_wait_sync_command_done): New declaration.
107 2014-09-09 Doug Evans <xdje42@gmail.com>
110 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): Pass guile version as
111 last parameter to pkg-config, not first.
112 * configure.ac: Pass --with-guile provided pkg-config path to
113 GDB_GUILE_PROGRAM_NAMES.
114 * configure: Regenerate.
116 2014-09-09 Doug Evans <xdje42@gmail.com>
119 * guile.c: #include <signal.h>.
120 (_initialize_guile): Block SIGCHLD while initializing Guile.
122 Replaces the following, which is reverted.
124 2014-07-26 Doug Evans <xdje42@gmail.com>
127 * configure.ac: Add check for header gc/gc.h.
128 Add check for function setenv.
129 * configure: Regenerate.
130 * config.in: Regenerate.
131 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
133 2014-09-07 Jan Kratochvil <jan.kratochvil@redhat.com>
136 * python/py-framefilter.c (py_print_single_arg): Handle NULL FA->VAL.
137 Fix goto out of TRY_CATCH.
139 2014-08-30 Siva Chandra Reddy <sivachandra@google.com>
141 * python/lib/gdb/command/xmethods.py (set_xm_status1): Use the
142 'items' methods instead of 'iteritems' method on dictionaries.
144 2014-08-27 Yao Qi <yao@codesourcery.com>
146 * ctf.c (CTF_FILE_MIN_SIZE): Remove.
147 (ctf_end): Remove code.
149 2014-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
151 * linux-tdep.c (linux_corefile_thread_callback): Ignore THREAD_EXITED.
152 (linux_make_corefile_notes): call update_thread_list, protected against
155 2014-08-15 Eli Zaretskii <eliz@gnu.org>
157 * dcache.h: Include target.h, to avoid compile time warnings.
159 2014-08-15 Joel Brobecker <brobecker@adacore.com>
161 * gdbarch.sh: #include "frame.h" in gdbarch.h. Delete "struct
162 frame_info" partial declaration.
163 * gdbarch.h: Regenerate.
165 2014-08-13 Yao Qi <yao@codesourcery.com>
168 * configure.ac: Use local variable 'pos'.
169 * configure: Regenerated.
171 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
173 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
174 (Changes in GDB 7.8): ... here.
176 2014-07-29 Joel Brobecker <brobecker@adacore.com>
178 * version.in: Set GDB version number to 7.8.0.DATE-cvs.
180 2014-07-29 Joel Brobecker <brobecker@adacore.com>
184 2014-07-29 Joel Brobecker <brobecker@adacore.com>
186 * version.in: Set GDB version number to 7.8.
188 2014-07-29 Joel Brobecker <brobecker@adacore.com>
190 * NEWS: Change "Changes since GDB 7.7" into "Changes in GDB 7.8".
192 2014-07-29 Yao Qi <yao@codesourcery.com>
195 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
197 2014-07-28 Doug Evans <xdje42@gmail.com>
200 * guile/scm-param.c (pascm_parameter_defined_p): New function.
201 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
204 2014-07-28 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
206 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
207 breakpoint support correctly.
209 2014-07-26 Ludovic Courtès <ludo@gnu.org>
210 Doug Evans <xdje42@gmail.com>
213 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
214 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
215 * configure.ac: Try to use guild to compile an scm file, if it fails
216 then disable guile support.
217 * configure: Regenerate.
218 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
220 (GUILE_COMPILED_FILES): New variable.
221 (GUILE_FILES) Update.
222 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
223 (stamp-guile): Compile scm files.
224 * guile/guile.c (boot_guile_support): New function.
225 (standard_throw_args_p): New function.
226 (print_standard_throw_error, print_throw_error): New functions.
227 (handle_boot_error): New function.
228 (initialize_scheme_side): Rewrite to call boot_guile_support.
229 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
230 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
232 2014-07-26 Ludovic Courtès <ludo@gnu.org>
233 Doug Evans <xdje42@gmail.com>
236 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
237 * guile/lib/gdb/support.scm: New file.
238 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
239 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
241 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
243 (%assert-type): Ditto, and renamed to assert-type.
244 (%exception-print-style): Delete.
246 2014-07-26 Doug Evans <xdje42@gmail.com>
249 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
250 * configure: Regenerate.
251 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
253 (PYTHON_FILES): New variable.
254 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
255 (GUILE_FILES): New variable.
256 (stamp-python, install-python, uninstall-python): Handle empty
258 (stamp-guile, install-guile, uninstall-guile): Ditto.
260 2014-07-26 Doug Evans <xdje42@gmail.com>
263 * guile/lib/gdb.scm (pretty-printers): Export.
264 (set-pretty-printers!): Export.
265 * guile/lib/gdb/printing.scm (gdb module): Update.
266 (prepend-pretty-printer!, append-pretty-printer!): Update.
267 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
268 (pretty_printer_list_var): Delete.
269 (pretty_printer_list): New static global.
270 (gdbscm_pretty_printers): New function.
271 (gdbscm_set_pretty_printers_x): New function.
272 (ppscm_find_pretty_printer_from_gdb): Update.
273 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
274 (gdbscm_initialize_pretty_printers): Update.
276 2014-07-26 Doug Evans <xdje42@gmail.com>
279 * configure.ac: Add check for header gc/gc.h.
280 Add check for function setenv.
281 * configure: Regenerate.
282 * config.in: Regenerate.
283 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
285 2014-07-24 Pedro Alves <palves@redhat.com>
287 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
289 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
291 * stack.c (read_frame_arg): Verify value_optimized_out before calling
292 value_available_contents_eq.
294 2014-07-22 Pedro Alves <palves@redhat.com>
296 * value.c (allocate_optimized_out_value): Don't mark value as
299 2014-07-20 Doug Evans <dje@google.com>
302 * remote.c (putpkt_binary): Add text to error message.
304 2014-07-18 Joel Brobecker <brobecker@adacore.com>
306 * version.in: Set GDB version number to 7.7.91.DATE-cvs.
308 2014-07-18 Joel Brobecker <brobecker@adacore.com>
312 2014-07-18 Joel Brobecker <brobecker@adacore.com>
314 * version.in: Set GDB version number to 7.7.91.
316 2014-07-17 Doug Evans <dje@google.com>
319 * maint.c (count_symtabs_and_blocks): Handle NULL
320 current_program_space.
321 (report_command_stats): Check global enabled flag in addition to
322 recorded enabled flag.
323 (make_command_stats_cleanup): Handle msg_type == 0, startup.
325 2014-07-14 Pedro Alves <palves@redhat.com>
327 * utils.c (prompt_for_continue): Call target_terminal_ours.
329 2014-07-14 Pedro Alves <palves@redhat.com>
331 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
332 catch_errors. Don't re-enable stdin or notify observers where,
334 (fetch_inferior_event_wrapper): Delete.
336 2014-07-14 Pedro Alves <palves@redhat.com>
339 * top.c: Include "inf-loop.h".
340 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
342 (gdb_readline_wrapper_cleanup): Make the target async again, if it
344 (gdb_readline_wrapper): Store whether the target is async, and
347 2014-07-14 Pedro Alves <palves@redhat.com>
350 * top.c (gdb_readline_wrapper_line): Tweak comment.
351 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
352 the input handler callback.
354 2014-07-14 Pedro Alves <palves@redhat.com>
357 * main.c: Include event-top.h.
358 (handle_command_errors): New function.
359 (catch_command_errors, catch_command_errors_const): Use it.
361 2014-07-14 Pedro Alves <palves@redhat.com>
363 * exceptions.c (catch_command_errors, catch_command_errors_const):
365 * exceptions.h (catch_command_errors_ftype)
366 (catch_command_errors_const_ftype): Moved to main.c.
367 (catch_command_errors, catch_command_errors_const): Delete
369 * main.c (catch_command_errors_ftype)
370 (catch_command_errors_const_ftype): Moved here from exceptions.h.
371 (catch_command_errors, catch_command_errors_const)): Moved here
372 from exceptions.c and make static.
374 2014-07-14 Pedro Alves <palves@redhat.com>
376 * exceptions.c (print_any_exception): Delete.
377 (catch_exceptions_with_msg): Use exception_print instead of
379 (catch_errors): Use exception_fprintf instead of
381 (catch_command_errors, catch_command_errors_const): Use
382 exception_print instead of print_any_exception.
384 2014-07-14 Pedro Alves <palves@redhat.com>
386 * infcall.c (run_inferior_call): Set 'sync_execution' while
387 running the inferior call.
389 2014-07-14 Tom Tromey <tromey@redhat.com>
392 * gdbtypes.c (is_dynamic_type_internal): New function, from
394 (is_dynamic_type): Rewrite.
395 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
396 (resolve_dynamic_struct): Likewise.
397 (resolve_dynamic_type_internal): New function, from
398 resolve_dynamic_type.
399 (resolve_dynamic_type): Rewrite.
401 2014-07-14 Tom Tromey <tromey@redhat.com>
403 * target.c (target_require_runnable): Also check record_stratum.
406 2014-07-09 Pedro Alves <palves@redhat.com>
408 * infcmd.c (attach_command_post_wait): Don't call
409 target_terminal_inferior here.
410 (attach_command): Call it here instead.
412 2014-07-07 Pedro Alves <palves@redhat.com>
415 * remote.c (async_handle_remote_sigint)
416 (async_handle_remote_sigint_twice): Call
417 gdb_call_async_signal_handler instead of
418 mark_async_signal_handler.
420 2014-06-26 Tom Tromey <tromey@redhat.com>
423 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
424 (dwarf2_physname, read_partial_die)
425 (guess_partial_die_structure_name, fixup_partial_die)
426 (guess_full_die_structure_name, anonymous_struct_prefix)
427 (dwarf2_name): Use per-BFD obstack.
429 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
431 * python/lib/gdb/command/xmethods.py
432 (get_method_matchers_in_loci): Lookup xmethod matchers in the
433 current progspace only if the string "progspace" matches LOCUS_RE.
435 2014-06-23 Pedro Alves <palves@redhat.com>
437 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
438 DR_CONTROL before setting DR0..DR3.
439 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
440 * i386-nat.c (i386_remove_aligned_watchpoint): Clear all bits of
441 DR_CONTROL related to the debug register slot being disabled. If
442 all slots are vacant, clear local slowdown as well, and assert
445 2014-06-19 Pedro Alves <palves@redhat.com>
447 * gdbthread.h (ALL_THREADS): Delete.
448 (ALL_NON_EXITED_THREADS): New macro.
449 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
450 instead of ALL_THREADS.
451 * infrun.c (find_thread_needs_step_over)
452 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
453 instead of ALL_THREADS.
454 * record-btrace.c (record_btrace_open)
455 (record_btrace_stop_recording, record_btrace_close)
456 (record_btrace_is_replaying, record_btrace_resume)
457 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
458 * remote.c (append_pending_thread_resumptions): Likewise.
459 * thread.c (thread_apply_all_command): Likewise.
461 2014-06-16 Pedro Alves <palves@redhat.com>
463 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
464 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
465 have OBJF_SHARED set.
466 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
467 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
468 instead of OBJF_USERLOADED.
469 * objfiles.h (OBJF_SHARED): Update comment.
470 (userloaded_objfile_contains_address_p): Rename to ...
471 (shared_objfile_contains_address_p): ... this, and update
473 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
475 (remove_symbol_file_command): Skip objfiles that don't have
478 2014-06-14 Eli Zaretskii <eliz@gnu.org>
480 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
481 or --without-guile, according to how GDB was built.
483 2014-06-11 Joel Brobecker <brobecker@adacore.com>
485 * version.in: Set GDB version number to 7.7.90.DATE-cvs.
487 2014-06-11 Joel Brobecker <brobecker@adacore.com>
491 2014-06-11 Joel Brobecker <brobecker@adacore.com>
493 * version.in: Set GDB version number to 7.7.90.
495 2014-06-11 Joel Brobecker <brobecker@adacore.com>
497 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
498 * version.in: Bump version to 7.7.90.DATE-cvs.
500 2014-06-11 Pedro Alves <palves@redhat.com>
503 * ser-mingw.c (net_windows_socket_check_pending): New function.
504 (net_windows_select_thread): Ignore spurious wakeups. Use
505 net_windows_socket_check_pending.
506 (net_windows_wait_handle): Check for pending events with
507 ioctlsocket, through net_windows_socket_check_pending, instead of
508 checking the socket's event.
510 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
512 * python/python-internal.h (gdb_PyObject_GetAttrString)
513 (gdb_PyObject_HasAttrString): New inline function definitions.
514 * py-value.c (get_field_flag): Remove the now unnecessary cast to
515 char * of the second argument to PyObject_GetAttrString.
517 2014-06-10 Joel Brobecker <brobecker@adacore.com>
519 * serial.c (serial_write): Fix index of character to be printed
520 in call to serial_logchar when serial debug traces are enabled.
522 2014-06-10 Joel Brobecker <brobecker@adacore.com>
524 * gdbtypes (resolve_dynamic_range): Add function description.
526 2014-06-09 Pedro Alves <palves@redhat.com>
528 * linux-nat.c (linux_child_follow_fork): Initialize status with
529 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
530 inner block. Only pass the signal to PTRACE_DETACH if in pass
533 2014-06-09 Gary Benson <gbenson@redhat.com>
535 * common/signals.c (gdb_signal_from_host): Reorder to separate
536 the always-available ANSI-standard signals from the signals that
538 (do_gdb_signal_to_host): Likewise.
539 * proc-events.c (signal_table): Likewise.
541 2014-06-08 Hui Zhu <hui@codesourcery.com>
543 * common/linux-ptrace.c (linux_disable_event_reporting): New
545 * common/linux-ptrace.h (linux_disable_event_reporting): New
547 * linux-nat.c (linux_child_follow_fork): Do a single step before
550 2014-06-07 Keith Seitz <keiths@redhat.com>
554 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
555 from symbol_matches_domain in symtab.c. All local callers
556 of symbol_matches_domain updated.
557 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
558 search STRUCT_DOMAIN.
559 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
560 independently. standard_lookup will do that automatically.
561 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
562 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
563 (cp_lookup_symbol_in_namespace): Likewise.
564 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
565 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
566 may return a STRUCT_DOMAIN match.
567 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
568 * cp-support.c: Include language.h.
569 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
571 * psymtab.c (match_partial_symbol): Compare the requested
572 domain with the symbol's domain directly.
573 (lookup_partial_symbol): Likewise.
574 * symtab.c (lookup_symbol_in_language): Explain when/why
575 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
576 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
577 appropriate languages.
578 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
579 and moved to ada-lang.c
580 (lookup_block_symbol): Explain that this function only returns
581 symbol matching the requested DOMAIN.
582 Compare the requested domain with the symbol's domain directly.
583 (iterate_over_symbols): Compare the requested domain with the
584 symbol's domain directly.
585 * symtab.h (symbol_matches_domain): Remove.
587 2014-06-06 Doug Evans <xdje42@gmail.com>
589 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
590 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
591 (gdbscm_guile_version_is_at_least): Declare.
592 (gdbscm_scm_string_to_int): Declare.
593 * guile/guile.c (gdbscm_guile_major_version): New global.
594 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
595 (guile_datadir): New static global.
596 (gdbscm_guile_data_directory): New function.
597 (initialize_scheme_side): Update.
598 (misc_guile_functions): Add guile-data-directory.
599 (initialize_gdb_module): Fetch guile version number.
600 * guile/lib/gdb.scm: Remove call to add-to-load-path.
601 * guile/lib/gdb/init.scm (%initialize!): Ditto.
602 * guile/lib/gdb/boot.scm: Use guile-data-directory.
603 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
605 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
606 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
607 * guile/scm-value.c (gdbscm_value_to_string): Only call
608 scm_port_conversion_strategy if Guile version >= 2.0.6.
610 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
612 * main.c (print_gdb_help): Add -q and --silent.
614 2014-06-06 Gary Benson <gbenson@redhat.com>
616 * common/signals.c: Remove preprocessor conditionals for
617 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
619 * proc-events.c: Likewise.
621 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
623 * symfile.c (symfile_free_objfile): Remove restriction to
625 * symfile-mem.c (symbol_file_add_from_memory): Call
626 add_target_sections_of_objfile.
628 2014-06-05 Ludovic Courtès <ludo@gnu.org>
630 * guile/scm-value.c (gdbscm_history_append_x): Use
631 'vlscm_get_value_smob_arg_unsafe' instead of
632 'vlscm_scm_to_value'.
634 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
637 * utils.c (printchar): Don't escape at all if quoter is NUL.
638 Update function documentation to clarify effect of parameter
640 * remote.c (escape_buffer): Pass '\\' as the quoter to
642 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
644 (mi_solib_unloaded): Same.
646 2014-06-05 Joel Brobecker <brobecker@adacore.com>
648 * development.sh: Delete.
649 * Makefile.in (config.status): Adjust dependency on development.sh.
650 * configure.ac: Adjust development.sh source call.
651 * configure: Regenerate.
653 2014-06-04 Doug Evans <xdje42@gmail.com>
655 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
656 is_scheme_bkpt, spec.
657 (bpscm_make_breakpoint_smob): Initialize new members.
658 (gdbscm_create_breakpoint_x): Split into two ...
659 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
660 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
661 (scheme_function breakpoint_functions): Update.
662 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
663 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
664 register-breakpoint!.
666 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
669 * mem-break.c (z_type_supported): Return zero if
670 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
672 2014-06-04 Tom Tromey <tromey@redhat.com>
674 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
675 value_from_contents_and_address_unresolved.
676 (ada_template_to_fixed_record_type_1): Likewise.
677 (ada_which_variant_applies): Likewise.
678 * value.h (value_from_contents_and_address_unresolved): Declare.
679 * value.c (value_from_contents_and_address_unresolved): New
681 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
682 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
683 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
685 2014-06-04 Tom Tromey <tromey@redhat.com>
687 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
689 2014-06-04 Tom Tromey <tromey@redhat.com>
691 * procfs.c (procfs_attach): Make "args" const.
692 * windows-nat.c (windows_attach): Make "args" const.
693 * nto-procfs.c (procfs_attach): Make "args" const.
694 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
695 * go32-nat.c (go32_attach): Make "args" const.
696 * gnu-nat.c (gnu_attach): Make "args" const.
697 * darwin-nat.c (darwin_attach): Make "args" const.
698 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
699 * linux-nat.c (linux_nat_attach): Make "args" const.
700 * remote.c (extended_remote_attach_1, extended_remote_attach):
702 * target.h (struct target_ops) <to_attach>: Make "args" const.
703 (find_default_attach): Likewise.
704 * utils.c (parse_pid_to_attach): Make "args" const.
705 * utils.h (parse_pid_to_attach): Update.
707 2014-06-04 Tom Tromey <tromey@redhat.com>
709 * target-delegates.c: Rebuild.
710 * target.c (default_thread_address_space): New function.
711 (target_thread_address_space): Simplify.
712 * target.h (struct target_ops) <to_thread_address_space>: Add
715 2014-06-04 Doug Evans <xdje42@gmail.com>
717 * guile/scm-type.c (type_smob): Remove duplicate typedef.
719 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
721 * record-btrace.c: Include event-loop.h and inf-loop.h.
722 (record_btrace_resume_exec_dir)
723 (record_btrace_async_inferior_event_handler)
724 (record_btrace_handle_async_inferior_event): New.
725 (record_btrace_open): Create async event handler.
726 (record_btrace_close): Delete async event handler.
727 (record_btrace_resume): Set record_btrace_resume_exec_dir,
728 Mark async event handler.
729 (record_btrace_execution_direction): New.
730 (init_record_btrace_ops): Initialize to_execution_direction.
732 2014-06-03 Doug Evans <xdje42@gmail.com>
734 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
735 (gdbscm_make_parameter): Ditto.
737 2014-06-03 Doug Evans <dje@google.com>
739 * exec.c (exec_close_1): Call clear_section_table instead of
740 resize_section_table.
741 (clear_section_table): New function.
742 (resize_section_table): Make static. Rename arg num_added to
744 * exec.h (clear_section_table): Declare.
745 (resize_section_table): Delete.
746 * progspace.c (release_program_space): Call clear_section_table
747 instead of resize_section_table.
749 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
751 * NEWS (Python Scripting): Add entry about the new xmethods
754 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
756 * python/py-xmethods.c: New file.
757 * python/py-objfile.c (objfile_object): New field 'xmethods'.
758 (objfpy_dealloc): XDECREF on the new xmethods field.
759 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
761 (objfpy_get_xmethods): New function.
762 (objfile_getset): New entry 'xmethods'.
763 * python/py-progspace.c (pspace_object): New field 'xmethods'.
764 (pspy_dealloc): XDECREF on the new xmethods field.
765 (pspy_new, pspace_to_pspace_object): Initialize xmethods
767 (pspy_get_xmethods): New function.
768 (pspace_getset): New entry 'xmethods'.
769 * python/python-internal.h: Add declarations for new functions.
770 * python/python.c (_initialize_python): Invoke
771 gdbpy_initialize_xmethods.
772 * python/lib/gdb/__init__.py (xmethods): New
774 * python/lib/gdb/xmethod.py: New file.
775 * python/lib/gdb/command/xmethods.py: New file.
777 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
779 * eval.c (evaluate_subexp_standard): Call the xmethod if the
780 best match method returned by find_overload_match is an xmethod.
781 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
782 the best matching operator returned by find_overload_match is an
784 * valops.c: #include "extension.h".
785 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
786 Return void. The list of matching source methods is returned in
787 "fn_list" and a vector of matching debug method workers is
788 returned in "xm_worker_vec". Update all callers.
789 (value_find_oload_method_list): Likewise.
790 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
791 non-NULL, then the index of the best matching method in this
792 vector is returned. Update all callers.
793 (find_overload_match): Include xmethods while performing overload
796 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
798 * defs.h (enum lval_type): New enumerator "lval_xcallable".
799 * extension-priv.h (struct extension_language_ops): Add the
801 * extension.c (new_xmethod_worker, clone_xmethod_worker,
802 get_matching_xmethod_workers, get_xmethod_argtypes,
803 invoke_xmethod, free_xmethod_worker,
804 free_xmethod_worker_vec): New functions.
805 * extension.h: #include "common/vec.h".
806 New function declarations.
807 (struct xmethod_worker): New struct.
808 (VEC (xmethod_worker_ptr)): New vector type.
809 (xmethod_worker_ptr): New typedef.
810 (xmethod_worker_vec): Likewise.
811 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
813 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
814 (struct builtin_type): New field "xmethod".
815 * valarith.c (value_ptradd): Assert that the value argument is not
817 * valops.c (value_must_coerce_to_target): Return 0 for
818 lval_xcallable values.
819 * value.c (struct value): New field XM_WORKER in the field
821 (value_address, value_raw_address): Return 0 for lval_xcallable
823 (set_value_address): Assert that the value is not an
825 (value_free): Free the associated xmethod worker when freeing
826 lval_xcallable values.
827 (set_value_component_location): Assert that the WHOLE value is not
829 (value_of_xmethod, call_xmethod): New functions.
830 * value.h: Declare "struct xmethod_worker".
831 Declare new functions value_of_xmethod, call_xmethod.
833 2014-06-03 Joel Brobecker <brobecker@adacore.com>
834 Pedro Alves <palves@redhat.com>
837 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
838 New function, extracted from software_breakpoint_inserted_here_p.
839 (software_breakpoint_inserted_here_p): Replace factored out code
840 by call to find_non_raw_software_breakpoint_inserted_here.
841 (bp_target_info_copy_insertion_state): New function.
842 (bkpt_insert_location): Handle the case of a single-step
843 breakpoint already inserted at the same address.
844 (bkpt_remove_location): Handle the case of a single-step
845 breakpoint still inserted at the same address.
846 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
847 breakpoint already inserted at the same address.
848 (deprecated_remove_raw_breakpoint): Handle the case of a
849 non-raw breakpoint still inserted at the same address.
850 (find_single_step_breakpoint): New function, extracted from
851 single_step_breakpoint_inserted_here_p.
852 (find_single_step_breakpoint): New function,
853 factored out from single_step_breakpoint_inserted_here_p.
854 (single_step_breakpoint_inserted_here_p): Reimplement.
856 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
858 Pushed by Joel Brobecker <brobecker@adacore.com>
859 * source.c (show_substitute_path_command): Fix display of matching
862 2014-06-03 Gary Benson <gbenson@redhat.com>
864 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
866 2014-06-02 Doug Evans <xdje42@gmail.com>
868 Add parameter support for Guile.
869 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
870 (SUBDIR_GUILE_SRCS): Add scm-param.c.
871 (scm-param.o): New rule.
872 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
873 (gdbscm_misc_error): Declare.
874 (gdbscm_canonicalize_command_name): Declare.
875 (gdbscm_scm_to_host_string): Declare.
876 (gdbscm_scm_from_host_string): Declare.
877 (gdbscm_initialize_parameters): Declare.
878 * guile/guile.c (initialize_gdb_module): Call
879 gdbscm_initialize_parameters.
880 * guile/lib/gdb.scm: Export parameter symbols.
881 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
882 cmdscm_canonicalize_name and made public. All callers updated.
883 * guile/scm-exception.c (gdbscm_misc_error): New function.
884 * guile/scm-param.c: New file.
885 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
886 (gdbscm_scm_to_host_string): New function.
887 (gdbscm_scm_from_host_string): New function.
888 * scm-utils.c (gdbscm_gc_dup_argv): New function.
890 2014-06-02 Doug Evans <xdje42@gmail.com>
892 Add command support for Guile.
893 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
894 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
895 (scm-cmd.o): New rule.
896 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
897 (gdbscm_user_error_p): Declare.
898 (gdbscm_parse_command_name): Declare.
899 (gdbscm_valid_command_class_p): Declare.
900 (gdbscm_initialize_commands): Declare.
901 * guile/guile.c (initialize_gdb_module): Call
902 gdbscm_initialize_commands.
903 * guile/lib/gdb.scm: Export command symbols.
904 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
905 (throw-user-error): New function.
906 * guile/scm-cmd.c: New file.
907 * guile/scm-exception.c (user_error_symbol): New static global.
908 (gdbscm_user_error_p): New function.
909 (gdbscm_initialize_exceptions): Set user_error_symbol.
910 * scm-utils.c (gdbscm_gc_xstrdup): New function.
912 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
914 * top.c (command_loop): Handle comments here...
915 (command_line_input): ... not here.
917 2014-06-02 Doug Evans <xdje42@gmail.com>
919 Add progspace support for Guile.
920 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
921 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
922 (scm-progspace.o): New rule.
923 * guile/guile-internal.h (pspace_smob): New typedef.
924 (psscm_pspace_smob_pretty_printers): Declare.
925 (psscm_pspace_smob_from_pspace): Declare.
926 (psscm_scm_from_pspace): Declare.
927 * guile/guile.c (initialize_gdb_module): Call
928 gdbscm_initialize_pspaces.
929 * guile/lib/gdb.scm: Export progspace symbols.
930 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
932 (append-pretty-printer!): Ditto.
933 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
935 * guile/scm-progspace.c: New file.
937 2014-06-03 Alan Modra <amodra@gmail.com>
939 * ppc64-tdep.c (ppc64_standard_linkage8): New.
940 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
942 2014-06-02 Doug Evans <dje@google.com>
944 Add support for skeletonless type units.
945 * dwarf2read.c (struct dwarf2_per_objfile): New member
946 n_allocated_type_units.
947 (struct dwarf2_per_objfile) <tu_stats>: New member
948 nr_all_type_units_reallocs.
949 (create_signatured_type_table_from_index): Initialize
950 n_allocated_type_units
951 (create_all_type_units): Ditto.
952 (add_type_unit): Move up in file. New arg slot.
953 All callers updated. Increase space for all_type_units more
955 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
956 (lookup_dwo_signatured_type): Handle skeletonless TUs.
957 (lookup_dwp_signatured_type): Ditto.
958 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
960 (build_type_psymtabs_1): Leave type_unit_groups as
961 NULL if no TUs present.
962 (print_tu_stats): New function.
963 (process_skeletonless_type_unit): New function.
964 (process_dwo_file_for_skeletonless_type_units): New
966 (process_skeletonless_type_units): New function.
967 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
968 Call print tu_stats if debugging enabled.
970 2014-06-02 Pedro Alves <palves@redhat.com>
972 * breakpoint.c (build_target_command_list): Don't build a command
973 list if we have any duplicate location that isn't a dprintf.
975 2014-06-02 Pedro Alves <palves@redhat.com>
977 * breakpoint.c (dprintf_breakpoint_hit): New function.
978 (initialize_breakpoint_ops): Install it as dprintf's
979 breakpoint_hit method.
981 2014-06-02 Joel Brobecker <brobecker@adacore.com>
983 * source.c (substitute_path_rule_matches): Simplify using
984 filename_ncmp instead of FILENAME_CMP.
986 2014-06-02 Joel Brobecker <brobecker@adacore.com>
988 * source.c (substitute_path_rule_matches): Remove trailing spaces.
990 2014-06-01 Ludovic Courtès <ludo@gnu.org>
992 * configure.ac: When Guile is available, check for the
993 availability of 'scm_new_smob'.
994 * configure, config.h.in: Regenerate.
995 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
998 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1000 * frame.c (struct frame_info): Add stop_string field.
1001 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
1002 (get_prev_frame_always): Old content moved into
1003 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
1004 TRY_CATCH, handle MEMORY_ERROR exceptions.
1005 (frame_stop_reason_string): New function definition.
1006 * frame.h (unwind_stop_reason_to_string): Extend comment to
1007 mention frame_stop_reason_string.
1008 (frame_stop_reason_string): New function declaration.
1009 * stack.c (frame_info): Switch to frame_stop_reason_string.
1010 (backtrace_command_1): Switch to frame_stop_reason_string.
1011 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
1012 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
1013 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
1015 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1017 * frame.c (frame_stop_reason_string): Rename to ...
1018 (unwind_stop_reason_to_string): this.
1019 * frame.h (frame_stop_reason_string): Rename to ...
1020 (unwind_stop_reason_to_string): this.
1021 * stack.c (frame_info): Update call to frame_stop_reason_string.
1022 (backtrace_command_1): Likewise.
1023 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
1024 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
1026 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
1028 * frame.c (remove_prev_frame): New function.
1029 (get_prev_frame_if_no_cycle): Create / discard cleanup using
1032 2014-05-29 Pedro Alves <palves@redhat.com>
1034 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
1035 and make it const. When a single-step decays to a continue,
1036 clear 'step', not 'hw_step'. Pass whether the caller wanted
1037 to step to user_visible_resume_ptid, not what we ask the
1040 2014-05-29 Pedro Alves <palves@redhat.com>
1042 * infrun.c (process_event_stop_test, handle_step_into_function)
1043 (handle_step_into_function_backward): Adjust.
1044 Don't set the even thread's stop_step and call stop_waiting before
1045 calling end_stepping_range. Instead do that ...
1046 (end_stepping_range): ... here. Take an ecs pointer parameter.
1048 2014-05-29 Pedro Alves <palves@redhat.com>
1050 * infrun.c (stop_stepping): Rename to ...
1051 (stop_waiting): ... this.
1052 (proceed): Update comment.
1053 (process_event_stop_test, handle_inferior_event)
1054 (handle_signal_stop, handle_step_into_function)
1055 (handle_step_into_function_backward): Update.
1057 2014-05-29 Pedro Alves <palves@redhat.com>
1059 * infcall.c (run_inferior_call): Don't check whether the current
1060 thread is running after the proceed call.
1062 2014-05-29 Pedro Alves <palves@redhat.com>
1063 Tom Tromey <tromey@redhat.com>
1065 * NEWS: Mention "maint set target-async", "set mi-async", and that
1066 background execution commands are now always available.
1067 * target.h (target_async_permitted): Update comment.
1068 * target.c (target_async_permitted, target_async_permitted_1):
1070 (set_target_async_command): Rename to ...
1071 (maint_set_target_async_command): ... this.
1072 (show_target_async_command): Rename to ...
1073 (maint_show_target_async_command): ... this.
1074 (_initialize_target): Adjust.
1075 * infcmd.c (prepare_execution_command): Make extern.
1076 * inferior.h (prepare_execution_command): Declare.
1077 * infrun.c (set_observer_mode): Leave target async alone.
1078 * mi/mi-interp.c (mi_interpreter_init): Install
1079 mi_on_sync_execution_done as sync_execution_done observer.
1080 (mi_on_sync_execution_done): New function.
1081 (mi_execute_command_input_handler): Don't print the prompt if we
1082 just started a synchronous command with an async target.
1083 (mi_on_resume): Check sync_execution before printing prompt.
1084 * mi/mi-main.h (mi_async_p): Declare.
1085 * mi/mi-main.c: Include gdbcmd.h.
1086 (mi_async_p): New function.
1087 (mi_async, mi_async_1): New globals.
1088 (set_mi_async_command, show_mi_async_command, mi_async): New
1090 (exec_continue): Call prepare_execution_command.
1091 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
1092 (mi_execute_async_cli_command): Use mi_async_p.
1093 (_initialize_mi_main): Install "set mi-async". Make
1094 "target-async" a deprecated alias.
1096 2014-05-29 Pedro Alves <palves@redhat.com>
1098 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
1099 (_initialize_cli_interp): Adjust.
1100 * event-loop.c: Include "observer.h".
1101 (start_event_loop): Notify 'command_error' observers instead of
1102 calling display_gdb_prompt. Remove FIXME comment.
1103 * event-top.c (display_gdb_prompt): Remove call into the
1105 * inf-loop.c: Include "observer.h".
1106 (inferior_event_handler): Notify 'command_error' observers instead
1107 of calling display_gdb_prompt.
1108 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
1109 observers instead of calling display_gdb_prompt.
1110 * interps.c (interp_set): Don't call display_gdb_prompt.
1111 (current_interp_display_prompt_p): Delete.
1112 * interps.h (interp_prompt_p): Delete declaration.
1113 (interp_prompt_p_ftype): Delete.
1114 (struct interp_procs) <prompt_proc_p>: Delete field.
1115 (current_interp_display_prompt_p): Delete declaration.
1116 * mi-interp.c (mi_interpreter_prompt_p): Delete.
1117 (_initialize_mi_interp): Adjust.
1118 * tui-interp.c (tui_init): Install 'sync_execution_done' and
1119 'command_error' observers.
1120 (tui_on_sync_execution_done, tui_on_command_error): New
1122 (tui_display_prompt_p): Delete.
1123 (_initialize_tui_interp): Adjust.
1125 2014-05-29 Pedro Alves <palves@redhat.com>
1128 * cli/cli-interp.c: Include infrun.h and observer.h.
1129 (cli_uiout, cli_interp): New globals.
1130 (cli_on_signal_received, cli_on_end_stepping_range)
1131 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
1133 (cli_interpreter_init): Install them as 'end_stepping_range',
1134 'signal_received' 'signal_exited', 'exited' and 'no_history'
1136 (_initialize_cli_interp): Remove cli_interp local.
1137 * infrun.c (handle_inferior_event): Call the several stop reason
1138 observers instead of printing the stop reason directly.
1139 (end_stepping_range): New function.
1140 (print_end_stepping_range_reason, print_signal_exited_reason)
1141 (print_exited_reason, print_signal_received_reason)
1142 (print_no_history_reason): Make static, and add an uiout
1143 parameter. Print to that instead of to CURRENT_UIOUT.
1144 * infrun.h (print_end_stepping_range_reason)
1145 (print_signal_exited_reason, print_exited_reason)
1146 (print_signal_received_reason print_no_history_reason): New
1148 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
1150 <cli_uiout>: New field.
1151 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
1152 uiout for CLI output. Install 'signal_received',
1153 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
1155 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
1156 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
1157 (mi_on_no_history): New functions.
1158 (ui_out_free_cleanup): Delete function.
1159 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
1160 instead use the one already stored in the MI interpreter data.
1161 (mi_ui_out): Adjust.
1162 * tui/tui-interp.c: Include infrun.h and observer.h.
1163 (tui_interp): New global.
1164 (tui_on_signal_received, tui_on_end_stepping_range)
1165 (tui_on_signal_exited, tui_on_exited)
1166 (tui_on_no_history): New functions.
1167 (tui_init): Install them as 'end_stepping_range',
1168 'signal_received' 'signal_exited', 'exited' and 'no_history'
1170 (_initialize_tui_interp): Delete tui_interp local.
1172 2014-05-29 Pedro Alves <palves@redhat.com>
1175 * linux-nat.c (linux_nat_resume_callback): Rename the second
1176 parameter to 'except'. Skip LP if it points to EXCEPT.
1177 (linux_nat_resume): Don't mark the event lwp as not stopped
1178 before resuming sibling lwps. Instead ask
1179 linux_nat_resume_callback to skip the event lwp. Mark it as not
1180 stopped after actually resuming it.
1181 (linux_handle_syscall_trap): Mark the lwp as not stopped after
1183 (wait_lwp): Mark the lwp as stopped here.
1184 (stop_wait_callback): Mark the lwp as not stopped right after
1185 resuming it. Don't mark lwps as stopped here.
1186 (linux_nat_filter_event): Mark the lwp as stopped earlier.
1187 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
1189 2014-05-29 Pedro Alves <palves@redhat.com>
1192 * infrun.c (resume): Determine how much to resume depending on
1193 whether the caller wanted a step, not whether we can hardware step
1194 the target. Mark all threads that we intend to run as running,
1195 unless we're calling an inferior function.
1196 (normal_stop): If the thread is running an infcall, don't finish
1198 * target.c (target_resume): Don't mark threads as running here.
1200 2014-05-28 Joel Brobecker <brobecker@adacore.com>
1202 * serial.c (_initialize_serial): Remove support for
1203 the "set remotebaud" and "show remotebaud" commands.
1204 * NEWS: Add entry documenting the removal of that command.
1206 2014-05-28 Yao Qi <yao@codesourcery.com>
1208 * charset.c: Fix typo in comments.
1210 2014-05-27 Gary Benson <gbenson@redhat.com>
1212 * utils.c (internal_vproblem): Prompt for a bug report.
1214 2014-05-26 Andy Wingo <wingo@igalia.com>
1216 * guile/scm-arch.c (arscm_mark_arch_smob):
1217 * guile/scm-block.c (bkscm_mark_block_smob)
1218 (bkscm_mark_block_syms_progress_smob):
1219 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
1220 * guile/scm-exception.c (exscm_mark_exception_smob):
1221 * guile/scm-frame.c (frscm_mark_frame_smob):
1222 * guile/scm-iterator.c (itscm_mark_iterator_smob):
1223 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
1224 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
1225 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
1226 (ppscm_mark_pretty_printer_worker_smob):
1227 * guile/scm-symbol.c (syscm_mark_symbol_smob):
1228 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
1229 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
1230 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
1232 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
1235 2014-05-26 Andy Wingo <wingo@igalia.com>
1236 Doug Evans <xdje42@gmail.com>
1238 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
1239 empty_base_class. All uses updated.
1240 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
1241 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
1243 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
1244 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
1245 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
1246 (gdbscm_gsmob_has_property_p, add_property_name)
1247 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
1248 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
1249 (gdb-object-has-property?, gdb-object-properties): Remove.
1250 (gdb-object-kind): Renamed from gsmob-kind.
1252 2014-05-26 Andy Wingo <wingo@igalia.com>
1254 * configure.ac (try_guile_versions): Allow building with guile 2.2.
1255 * configure: Regenerate.
1257 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1259 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
1261 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
1263 * record-btrace.c (record_btrace_allow_memory_access): Remove.
1264 (replay_memory_access_read_only, replay_memory_access_read_write)
1265 (replay_memory_access_types, replay_memory_access)
1266 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
1267 (cmd_set_record_btrace, cmd_show_record_btrace)
1268 (cmd_show_replay_memory_access): New.
1269 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
1270 (record_btrace_remove_breakpoint): Replace
1271 record_btrace_allow_memory_access with replay_memory_access.
1272 (_initialize_record_btrace): Add commands.
1273 * NEWS: Announce it.
1275 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1277 * aarch64-linux-nat.c (asm/ptrace.h): Include.
1279 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1281 * MAINTAINERS (Write After Approval): Move self back from
1284 2014-05-22 Pedro Alves <palves@redhat.com>
1286 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
1287 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
1288 (disable_randomization, enum exec_direction_kind)
1289 (execution_direction, stop_registers, start_remote)
1290 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
1291 (wait_for_inferior, normal_stop, get_last_target_status)
1292 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
1293 (insert_step_resume_breakpoint_at_sal)
1294 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
1295 (set_step_info, print_stop_event, signal_stop_state)
1296 (signal_print_state, signal_pass_state, signal_stop_update)
1297 (signal_print_update, signal_pass_update)
1298 (update_signals_program_target, clear_exit_convenience_vars)
1299 (displaced_step_dump_bytes, update_observer_mode)
1300 (signal_catch_update, gdb_signal_from_command): Move
1302 * infrun.h: ... to this new file.
1303 * amd64-tdep.c: Include infrun.h.
1304 * annotate.c: Include infrun.h.
1305 * arch-utils.c: Include infrun.h.
1306 * arm-linux-tdep.c: Include infrun.h.
1307 * arm-tdep.c: Include infrun.h.
1308 * break-catch-sig.c: Include infrun.h.
1309 * breakpoint.c: Include infrun.h.
1310 * common/agent.c: Include infrun.h instead of inferior.h.
1311 * corelow.c: Include infrun.h.
1312 * event-top.c: Include infrun.h.
1313 * go32-nat.c: Include infrun.h.
1314 * i386-tdep.c: Include infrun.h.
1315 * inf-loop.c: Include infrun.h.
1316 * infcall.c: Include infrun.h.
1317 * infcmd.c: Include infrun.h.
1318 * infrun.c: Include infrun.h.
1319 * linux-fork.c: Include infrun.h.
1320 * linux-nat.c: Include infrun.h.
1321 * linux-thread-db.c: Include infrun.h.
1322 * monitor.c: Include infrun.h.
1323 * nto-tdep.c: Include infrun.h.
1324 * procfs.c: Include infrun.h.
1325 * record-btrace.c: Include infrun.h.
1326 * record-full.c: Include infrun.h.
1327 * remote-m32r-sdi.c: Include infrun.h.
1328 * remote-mips.c: Include infrun.h.
1329 * remote-notif.c: Include infrun.h.
1330 * remote-sim.c: Include infrun.h.
1331 * remote.c: Include infrun.h.
1332 * reverse.c: Include infrun.h.
1333 * rs6000-tdep.c: Include infrun.h.
1334 * s390-linux-tdep.c: Include infrun.h.
1335 * solib-irix.c: Include infrun.h.
1336 * solib-osf.c: Include infrun.h.
1337 * solib-svr4.c: Include infrun.h.
1338 * target.c: Include infrun.h.
1339 * top.c: Include infrun.h.
1340 * windows-nat.c: Include infrun.h.
1341 * mi/mi-interp.c: Include infrun.h.
1342 * mi/mi-main.c: Include infrun.h.
1343 * python/py-threadevent.c: Include infrun.h.
1345 2014-05-22 Pedro Alves <palves@redhat.com>
1347 * infrun.c (handle_inferior_event): Store the exit code for
1348 --return-child-result here, instead of ...
1349 (print_exited_reason): ... here.
1351 2014-05-21 Pedro Alves <palves@redhat.com>
1354 * gdbthread.h (struct thread_control_state): New field
1356 * infrun.c (follow_fork): Copy the new thread control field to the
1358 (clear_proceed_status_thread): Clear the new thread control field.
1359 (proceed): Set the new thread control field.
1360 * interps.h (command_interp): Declare.
1361 * interps.c (command_interpreter): New global.
1362 (command_interp): New function.
1363 (interp_exec): Set `command_interpreter' while here.
1364 * cli-out.c (cli_uiout_dtor): New function.
1365 (cli_ui_out_impl): Install it.
1366 * mi/mi-interp.c: Include cli-out.h.
1367 (mi_cmd_interpreter_exec): Add comment.
1368 (restore_current_uiout_cleanup): New function.
1369 (ui_out_free_cleanup): New function.
1370 (mi_on_normal_stop): If finishing an execution command started by
1371 a CLI command, or any kind of breakpoint-like event triggered,
1372 print the stop event to the output (CLI) stream.
1373 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
1375 2014-05-21 Pedro Alves <palves@redhat.com>
1377 * cli/cli-cmds.c (list_command): Handle the first "list" after the
1378 current source line having changed.
1379 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
1380 * infrun.c (normal_stop): Adjust call to
1381 set_current_sal_from_frame.
1382 * source.c (clear_lines_listed_range): New function.
1383 (set_current_source_symtab_and_line, identify_source_line): Clear
1384 the lines listed range.
1385 (line_info): Handle the first "info line" after the current source
1386 line having changed.
1387 * stack.c (print_stack_frame): Remove center handling.
1388 (set_current_sal_from_frame): Remove 'center' parameter. Don't
1391 2014-05-21 Pedro Alves <palves@redhat.com>
1393 * inf-child.c (inf_child_mourn_inferior): New function.
1394 * inf-child.h (inf_child_mourn_inferior): New declaration.
1395 * darwin-nat.c (darwin_mourn_inferior): Use
1396 inf_child_mourn_inferior.
1397 * gnu-nat.c (gnu_mourn_inferior): Likewise.
1398 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
1399 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
1400 * nto-procfs.c (procfs_mourn_inferior): Likewise.
1401 * windows-nat.c (windows_mourn_inferior): Likewise.
1403 2014-05-21 Doug Evans <xdje42@gmail.com>
1405 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
1407 2014-05-21 Doug Evans <xdje42@gmail.com>
1409 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
1410 (gdbscm_out_of_range_error): Ditto.
1411 (gdbscm_memory_error): Ditto.
1412 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
1413 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
1414 (gdbscm_out_of_range_error): Update.
1415 (gdbscm_memory_error): Update.
1416 (gdbscm_scm_to_target_string_unsafe): Delete.
1418 2014-05-21 Pedro Alves <palves@redhat.com>
1420 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
1422 (inf_child_open_target): New function.
1423 (inf_child_open): Use inf_child_open_target to push the target
1424 instead of erroring out.
1425 (inf_child_disconnect, inf_child_close)
1426 (inf_child_maybe_unpush_target): New functions.
1427 (inf_child_target): Install inf_child_disconnect and
1428 inf_child_close. Store a pointer to the returned object.
1429 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
1431 * target.c (auto_connect_native_target): New global.
1432 (show_default_run_target): New function.
1433 (find_default_run_target): Return NULL if automatically connecting
1434 to the native target is disabled.
1435 (_initialize_target): Install set/show auto-connect-native-target.
1436 * NEWS: Mention "set auto-connect-native-target", and "target
1438 * linux-nat.c (super_close): New global.
1439 (linux_nat_close): Call super_close.
1440 (linux_nat_add_target): Store a pointer to the base class's
1442 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
1443 inf_child_maybe_unpush.
1444 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
1446 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
1447 the inferior. Use inf_child_maybe_unpush_target.
1448 (inf_ttrace_attach): Don't push the target if it is already
1450 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
1451 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
1452 after mourning the inferior. Use inf_child_maybe_unpush_target.
1453 (darwin_attach_pid): Don't push the target if it is already
1455 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
1456 mourning the inferior. Use inf_child_maybe_unpush_target.
1457 (gnu_detach): Use inf_child_maybe_unpush_target.
1458 * go32-nat.c (go32_create_inferior): Don't push the target if it
1460 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
1461 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
1462 (procfs_open): Rename to ...
1463 (procfs_open_1): ... this. Add target_ops parameter. Adjust
1464 comments. Can target_preopen before changing node. Call
1465 inf_child_open_target to push the target explicitly.
1466 (procfs_attach): Don't push the target if it is already pushed.
1467 (procfs_detach): Use inf_child_maybe_unpush_target.
1468 (procfs_create_inferior): Don't push the target if it is already
1470 (nto_native_ops): New global.
1471 (procfs_open): Reimplement.
1472 (procfs_native_open): New function.
1473 (init_procfs_targets): Install procfs_native_open as to_open of
1474 "target native". Store a pointer to the "native" target in
1476 * procfs.c (procfs_attach): Don't push the target if it is already
1478 (procfs_detach): Use inf_child_maybe_unpush_target.
1479 (procfs_mourn_inferior): Only unpush the target after mourning the
1480 inferior. Use inf_child_maybe_unpush_target.
1481 (procfs_init_inferior): Don't push the target if it is already
1483 * windows-nat.c (do_initial_windows_stuff): Don't push the target
1484 if it is already pushed.
1486 2014-05-21 Pedro Alves <palves@redhat.com>
1488 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
1489 and "procfs" targets are now called "native" instead.
1491 2014-05-21 Pedro Alves <palves@redhat.com>
1493 * go32-nat.c (go32_open): Delete.
1494 (go32_target): Don't override the to_open method.
1496 2014-05-21 Pedro Alves <palves@redhat.com>
1498 * nto-procfs.c (procfs_can_run): New function.
1499 (nto_procfs_ops): New global.
1500 (init_procfs_targets): New, based on procfs_target. Install
1501 "target native" in addition to "target procfs".
1502 (_initialize_procfs): Call init_procfs_targets instead of adding
1505 2014-05-21 Pedro Alves <palves@redhat.com>
1507 * windows-nat.c (windows_target): Don't override to_shortname,
1508 to_longname or to_doc.
1510 2014-05-21 Pedro Alves <palves@redhat.com>
1512 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
1515 2014-05-21 Pedro Alves <palves@redhat.com>
1517 * darwin-nat.c (_initialize_darwin_inferior): Don't override
1518 to_shortname, to_longname or to_doc.
1520 2014-05-21 Pedro Alves <palves@redhat.com>
1522 * go32-nat.c (go32_target): Don't override to_shortname,
1523 to_longname or to_doc.
1525 2014-05-21 Pedro Alves <palves@redhat.com>
1527 * inf-child.c (inf_child_open): Remove mention of "child".
1528 (inf_child_target): Rename target to "native" instead of "child".
1530 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1532 * Makefile.in (SFILES): Delete "regset.c".
1533 (COMMON_OBS): Delete "regset.o".
1535 * regset.h (regset_alloc): Delete prototype.
1537 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1539 * sparc-linux-tdep.c (sparc32_linux_gregset)
1540 (sparc32_linux_fpregset): New static regset structures.
1541 (sparc32_linux_init_abi): Drop dynamic regset allocations.
1542 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
1544 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
1545 (sparc64_linux_fpregset): New static regset structures.
1546 (sparc64_linux_init_abi): Drop dynamic regset allocations.
1547 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
1548 New static regset structures.
1549 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
1550 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
1551 New static regset structures.
1552 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
1553 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
1554 New static regset structures.
1555 (sparc64obsd_init_abi): Drop dynamic regset allocations.
1556 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
1557 New static regset structures.
1558 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
1560 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1562 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
1563 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
1564 register maps ("regmaps") from "*regset" to "*regmap". Do this
1565 for all regmap types and variables.
1566 * sparc-linux-tdep.c (sparc32_linux_step_trap)
1567 (sparc32_linux_supply_core_gregset)
1568 (sparc32_linux_collect_core_gregset)
1569 (sparc32_linux_supply_core_fpregset)
1570 (sparc32_linux_collect_core_fpregset): Likewise.
1571 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
1572 (sparc_gregmap, sparc_fpregmap): ... these.
1573 (sparc_supply_gregset, sparc_collect_gregset)
1574 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1575 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
1576 (_initialize_sparc_nat): Rename regmaps.
1577 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
1578 (sparc_gregmap, sparc_fpregmap): ... these.
1579 (sparc_supply_gregset, sparc_collect_gregset)
1580 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
1581 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
1583 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
1584 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
1586 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
1588 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
1589 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
1590 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
1592 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1593 (sparc32_bsd_fpregset): Rename to...
1594 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1595 (sparc32_bsd_fpregmap): ... these.
1596 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
1597 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
1598 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
1599 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
1600 (struct sparc_gregmap, struct sparc_fpregmap)
1601 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
1602 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
1603 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
1604 (sparc32_supply_regset, sparc32_collect_gregset)
1605 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
1607 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
1608 (sparc64_linux_ptrace_gregmap): ... this.
1609 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
1610 (_initialize_sparc64_linux_nat): Rename regmaps.
1611 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
1612 (sparc64_linux_core_gregmap): ... this.
1613 (sparc64_linux_supply_core_gregset)
1614 (sparc64_linux_collect_core_gregset)
1615 (sparc64_linux_supply_core_fpregset)
1616 (sparc64_linux_collect_core_fpregset): Rename regmaps.
1617 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
1618 (sparc64_sol2_fpregset): Rename to...
1619 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
1620 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
1621 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
1623 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
1624 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
1625 (sparc64_bsd_fpregset): Rename to...
1626 (struct sparc_gregmap, sparc64_sol2_gregmap)
1627 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
1628 (sparc64_bsd_fpregmap): ... these.
1629 (sparc64_supply_gregset, sparc64_collect_gregset)
1630 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
1632 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
1633 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
1634 (sparc64fbsd_gregmap): ... this.
1635 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
1636 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
1638 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
1639 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
1640 (sparc64nbsd_collect_fpregset): Likewise.
1641 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
1642 (sparc64nbsd_gregmap): ... this.
1643 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
1645 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
1646 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
1647 (sparc64obsd_gregmap): ... this.
1648 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
1650 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
1651 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
1652 (sparc32nbsd_gregmap): ... this.
1653 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
1656 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1658 * score-tdep.c (score7_linux_gregset): New static regset
1660 (score7_linux_regset_from_core_section): Remove dynamic regset
1662 (score_gdbarch_init): Drop allocation of tdep structure.
1663 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
1665 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1667 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
1669 (am33_regset_from_core_section): Remove dynamic regset
1672 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1674 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
1675 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
1677 (mips_linux_regset_from_core_section): Remove dynamic regset
1679 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1680 'gregset64', 'fpregset', and 'fpregset64'.
1681 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
1682 deleted tdep fields.
1684 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1686 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
1688 (amd64_regset_from_core_section): Remove dynamic regset
1690 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
1692 (amd64obsd_regset_from_core_section): Remove dynamic regset
1694 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
1696 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
1697 x86-common regset supply function.
1698 * i386-tdep.c (i386_collect_gregset): Make static.
1699 (i386_gregset): New global regset structure.
1700 (i386_fpregset, i386_xstateregset): New static regset structures.
1701 (i386_regset_from_core_section): Remove dynamic regset
1703 (i386_gdbarch_init): Remove initialization of tdep fields
1704 'gregset', 'fpregset', and 'xstateregset'.
1705 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
1706 'fpregset', and 'xstateregset'.
1707 (i386_collect_gregset): Remove prototype.
1708 (i386_gregset): New declaration.
1709 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
1711 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
1714 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1716 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
1717 (arm_linux_vfpregset): New static regset structures.
1718 (arm_linux_regset_from_core_section): Remove dynamic allocation of
1720 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
1721 and 'vfpregset' fields.
1723 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1725 * aarch64-linux-tdep.c (aarch64_linux_gregset)
1726 (aarch64_linux_fpregset): New static regset structures.
1727 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
1728 of regset structures.
1729 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
1732 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1734 * regset.h (struct regset): Remove gdbarch field.
1735 * regset.c (regset_alloc): Drop initialization of gdbarch field.
1736 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1737 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
1739 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
1740 (ppc32_linux_fpregset, ppc32_linux_vrregset)
1741 (ppc32_linux_vsxregset): Likewise.
1742 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
1743 via the regcache instead of the regset.
1744 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
1745 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
1746 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
1747 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
1750 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
1752 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
1753 Constify structures.
1754 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
1755 (alphanbsd_aout_gregset): Likewise.
1756 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
1757 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
1759 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
1760 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
1762 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
1763 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
1764 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
1765 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
1766 * m88k-tdep.c (m88k_gregset): Likewise.
1767 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
1768 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
1769 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
1770 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
1771 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1772 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
1773 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1774 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
1775 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
1777 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
1778 * sh-tdep.h (sh_corefile_gregset): Likewise.
1779 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
1780 * vax-tdep.c (vax_gregset): Likewise.
1782 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1784 Fix TLS access for -static -pthread.
1785 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
1786 (try_thread_db_load_1): Initialize it.
1787 (thread_db_get_thread_local_address): Call it if LM is zero.
1788 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
1789 * target.h (struct target_ops) (to_get_thread_local_address): Add
1790 load_module_addr comment.
1792 2014-05-21 Pedro Alves <palves@redhat.com>
1794 * dcache.c (dcache_read_memory_partial): If reading the cache line
1795 fails, fallback to reading just the memory the caller wanted.
1797 2014-05-20 Doug Evans <dje@google.com>
1799 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
1800 instead of get_current_arch.
1802 2014-05-20 Pedro Alves <palves@redhat.com>
1804 * NEWS: Mention that compare-sections now works with all targets.
1806 * remote.c (PACKET_qCRC): New enum value.
1807 (remote_verify_memory): Don't send qCRC if the target has no
1808 execution. Use packet_support/packet_ok. If the target doesn't
1809 support the qCRC packet, fallback to a deep memory copy.
1810 (compare_sections_command): Say "target image" instead of "remote
1812 (_initialize_remote): Add PACKET_qCRC to the list of config
1813 packets that have no associated command. Extend comment.
1814 * target.c (simple_verify_memory, default_verify_memory): New
1816 * target.h (struct target_ops) <to_verify_memory>: Default to
1817 default_verify_memory.
1818 (simple_verify_memory): New declaration.
1819 * target-delegates.c: Regenerate.
1821 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
1823 * record-btrace.c (record_btrace_step_thread): Check for empty history.
1825 2014-05-20 Hui Zhu <hui@codesourcery.com>
1826 Yao Qi <yao@codesourcery.com>
1829 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
1830 and change address of sp and pc.
1832 2014-05-19 Tom Tromey <tromey@redhat.com>
1834 * gdbtypes.c (rank_function): Use XNEWVEC.
1835 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
1837 2014-05-19 Doug Evans <dje@google.com>
1839 * dwarf2read.c (build_type_psymtabs_1): Renamed from
1840 build_type_unit_groups and moved closer to only caller. Remove
1841 arguments. All references updated. Remove outdated .gdb_index
1843 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
1844 build_type_psymtabs_1.
1846 2014-05-19 Doug Evans <dje@google.com>
1848 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
1849 n_type_unit_groups, all_type_unit_groups. All uses removed.
1850 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
1851 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
1852 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
1853 (add_type_unit_group_to_table): Delete.
1855 2014-05-19 Doug Evans <dje@google.com>
1857 * eval.c (evaluate_subexp_standard): Add some comments.
1859 2014-05-17 Doug Evans <xdje42@gmail.com>
1861 * progspace.c (remove_program_space): Delete, unused.
1862 * progspace.h (remove_program_space): Ditto.
1864 2014-05-17 Doug Evans <xdje42@gmail.com>
1866 * inferior.c (prune_inferiors): Fix comment.
1867 (remove_inferior_command): Call prune_program_spaces.
1869 2014-05-16 Doug Evans <dje@google.com>
1871 New command line option -D.
1873 * main.c (set_gdb_data_directory): New function.
1874 (captured_main): Recognize -D. Flag error for --data-directory "".
1875 Call set_gdb_data_directory.
1876 (print_gdb_help): Print --data-directory, -D.
1877 * main.h (set_gdb_data_directory): Declare.
1878 * top.c (staged_gdb_datadir): New static global.
1879 (set_gdb_datadir): Call set_gdb_data_directory
1880 (show_gdb_datadir): New function.
1881 (init_main): Update init of data-directory parameter.
1883 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
1885 Import the "dirfd" gnulib module.
1886 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
1887 * gnulib/aclocal.m4: Update.
1888 * gnulib/config.in: Update.
1889 * gnulib/configure: Update.
1890 * gnulib/import/Makefile.am: Update.
1891 * gnulib/import/Makefile.in: Update.
1892 * gnulib/import/dirfd.c: New.
1893 * gnulib/import/m4/dirfd.m4: New.
1894 * gnulib/import/m4/gnulib-cache.m4: Update.
1895 * gnulib/import/m4/gnulib-comp.m4: Update.
1897 2014-05-16 Pierre Muller <muller@sourceware.org>
1898 Yao Qi <yao@codesourcery.com>
1900 * valprint.c (print_wchar): Move the code on checking whether
1901 W is a printable wide char to the default branch of switch
1902 statement below. Call wchar_printable instead of gdb_iswprint.
1904 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
1906 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
1907 ldr.w and ldrd instructions.
1909 2014-05-15 Doug Evans <dje@google.com>
1911 * dwarf2read.c (read_structure_type): Delete outdated comments.
1913 2014-05-14 Tom Tromey <tromey@redhat.com>
1915 * macrocmd.c (print_macro_definition): Reindent.
1917 2014-05-13 Doug Evans <xdje42@gmail.com>
1919 * python/py-cmd.c (cmdpy_completer): Add comment.
1920 (completers): Make const.
1922 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
1924 * infrun.c (resume): Remove should_resume (unused). Move up
1925 declaration of resume_ptid.
1927 2014-05-13 Tom Tromey <tromey@redhat.com>
1929 * language.h (unop_type_check): Remove.
1930 (binop_type_check): Don't declare.
1932 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
1934 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
1935 call to regcache_raw_collect.
1937 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1939 * mi/mi-console.c (mi_console_raw_packet): Use the value from
1940 mi_console->quote as the quoting character.
1942 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
1944 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
1946 2014-04-29 Tom Tromey <tromey@redhat.com>
1948 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
1949 "show debug varobj".
1951 2014-05-07 Kyle McMartin <kyle@redhat.com>
1953 Pushed by Joel Brobecker <brobecker@adacore.com>.
1954 * aarch64-tdep.c (aarch64_software_single_step): New function.
1955 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
1956 with aarch64_software_single_step.
1958 2014-05-05 Joel Brobecker <brobecker@adacore.com>
1962 2014-05-05 Keith Seitz <keiths@redhat.com>
1964 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
1965 variable or history value is successfully parsed.
1967 2014-05-05 Yao Qi <yao@codesourcery.com>
1968 Pedro Alves <palves@redhat.com>
1970 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
1971 address of blocks that intersects the requested range. Trim
1972 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
1974 * ctf.c (ctf_xfer_partial): Likewise.
1976 2014-05-05 Yao Qi <yao@codesourcery.com>
1978 * printcmd.c (display_command): Remove the check to
1979 target_has_execution.
1981 2014-05-03 Mark Kettenis <kettenis@gnu.org>
1983 * ppcobsd-nat.c: Include "obsd-nat.h".
1984 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
1986 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
1988 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1990 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
1991 and 16-bit signed and unsigned arguments. Update comment.
1992 (stap_parse_probe_arguments): Extend code to handle such
1993 arguments. Use warning instead of complaint to notify about
1994 unrecognized bitness.
1996 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
1998 PR breakpoints/16889
1999 * stap-probe.c (stap_parse_probe_arguments): Simplify
2000 check for non-prefixed probes (i.e., probes whose
2001 arguments do not start with "N@"). Always set the
2002 argument type to a sane value.
2004 2014-05-01 David Taylor <dtaylor@emc.com>
2006 * remote.c (compare_sections_command): Add -r option to compare
2007 all loadable read-only sections.
2009 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
2011 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
2012 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
2014 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
2015 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
2016 Remove unused CORE_ADDR argument. Update all callers.
2018 2014-04-29 Pedro Alves <palves@redhat.com>
2020 * remote.c (struct packet_config) <detect>: Extend comment.
2021 (add_packet_config_cmd): Don't set the config's detect or support
2023 (init_all_packet_configs): Also initialize the config's 'detect'
2025 (reset_all_packet_configs_support): New function.
2026 (remote_open_1): Call reset_all_packet_configs_support instead of
2027 init_all_packet_configs.
2028 (_initialize_remote): Initialize all packet configs. Assert that
2029 all packets have an associated command, except a few known
2032 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2034 * dwarf2read.c (read_subrange_type): Handle dynamic
2035 DW_AT_lower_bound attributes.
2037 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2039 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
2040 dynamic bounds before computing its upper bound.
2041 (ada_discrete_type_low_bound): Same as above with the lower bound.
2043 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2045 * dwarf2read.c (is_dynamic_type): Return true for dynamic
2046 range types. Adjust the array handling implementation to
2047 take advantage of this change.
2048 (resolve_dynamic_range): New function, mostly extracted from
2049 resolve_dynamic_bounds.
2050 (resolve_dynamic_array): New function, mostly extracted from
2051 resolve_dynamic_bounds.
2052 (resolve_dynamic_bounds): Delete.
2053 (resolve_dynamic_type): Reimplement. Add handling of
2054 TYPE_CODE_RANGE types.
2056 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2058 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
2059 handling of parallel ___XA types.
2061 2014-04-28 Joel Brobecker <brobecker@adacore.com>
2063 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
2064 unnecessary second call to static_unwrap_type.
2066 2014-04-27 Hui Zhu <hui@codesourcery.com>
2068 * stack.c (print_frame_info): Call do_gdb_disassembly with
2069 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
2071 2014-04-26 Doug Evans <xdje42@gmail.com>
2073 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
2075 2014-04-25 Pedro Alves <palves@redhat.com>
2078 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
2079 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
2080 and newline from built string.
2081 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
2082 (linux_ptrace_attach_fail_reason): ... this.
2083 * linux-nat.c (linux_nat_attach): Adjust to use
2084 linux_ptrace_attach_fail_reason.
2086 2014-04-25 Pedro Alves <palves@redhat.com>
2088 * remote.c (struct remote_state): Remove multi_process_aware,
2089 non_stop_aware, cond_tracepoints, cond_breakpoints,
2090 breakpoint_commands, fast_tracepoints, static_tracepoints,
2091 install_in_trace, disconnected_tracing,
2092 enable_disable_tracepoints, string_tracing, and
2093 augmented_libraries_svr4_read fields.
2094 (remote_multi_process_p): Move further below in the file.
2095 (struct packet_config): Add comments.
2096 (update_packet_config): Delete function.
2097 (show_packet_config_cmd): Use packet_config_support.
2098 (add_packet_config_cmd): Use NULL as set callback.
2099 (packet_ok): "set remote foo-packet"-style commands no longer
2100 change config->supported -- adjust.
2101 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
2102 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
2103 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
2104 (PACKET_QNonStop, PACKET_multiprocess_feature)
2105 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
2106 (PACKET_DisconnectedTracing_feature)
2107 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
2108 (set_remote_protocol_packet_cmd): Delete function.
2109 (packet_config_support, packet_support): New functions.
2110 (set_remote_protocol_Z_packet_cmd): Don't call
2111 update_packet_config.
2112 (remote_query_attached, remote_pass_signals)
2113 (remote_program_signals, remote_threads_info)
2114 (remote_threads_extra_info, remote_start_remote): Use
2116 (remote_start_remote): Use packet_config_support and
2118 (init_all_packet_configs): Set all packets to unknown support,
2119 instead of calling update_packet_config.
2120 (remote_check_symbols): Use packet_support.
2121 (remote_supported_packet): Unconditionally set the packet config's
2123 (remote_multi_process_feature, remote_non_stop_feature)
2124 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
2125 (remote_breakpoint_commands_feature)
2126 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
2127 (remote_install_in_trace_feature)
2128 (remote_disconnected_tracing_feature)
2129 (remote_enable_disable_tracepoint_feature)
2130 (remote_string_tracing_feature)
2131 (remote_augmented_libraries_svr4_read_feature): Delete functions.
2132 (remote_protocol_features): Adjust to use remote_supported_packet
2133 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
2134 "ConditionalTracepoints", "ConditionalBreakpoints",
2135 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
2136 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
2137 "EnableDisableTracepoints", and "tracenz".
2138 (remote_query_supported): Use packet_support.
2139 (remote_open_1): Adjust.
2140 (extended_remote_attach_1): Use packet_support. Switch on the
2141 result of packet_ok instead of checking whether the packet ended
2143 (remote_vcont_resume): Use packet_support.
2144 (remote_resume, remote_stop_ns, fetch_register_using_p)
2145 (remote_prepare_to_store, store_register_using_P)
2146 (check_binary_download, remote_write_bytes): Use packet_support.
2147 (remote_vkill): Use packet_support. Switch on the result of
2148 packet_ok instead of checking whether the packet ended up
2150 (extended_remote_supports_disable_randomization): Use
2152 (extended_remote_run): Switch on the result of packet_ok instead
2153 of checking whether the packet ended up disabled.
2154 (remote_insert_breakpoint, remote_remove_breakpoint)
2155 (remote_insert_watchpoint, remote_remove_watchpoint)
2156 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
2158 (remote_search_memory): Use packet_config_support.
2159 (remote_get_thread_local_address, remote_get_tib_address)
2160 (remote_hostio_send_command, remote_can_execute_reverse): Use
2162 (remote_supports_cond_tracepoints)
2163 (remote_supports_cond_breakpoints)
2164 (remote_supports_fast_tracepoints)
2165 (remote_supports_static_tracepoints)
2166 (remote_supports_install_in_trace)
2167 (remote_supports_enable_disable_tracepoint)
2168 (remote_supports_string_tracing)
2169 (remote_can_run_breakpoint_commands): Rewrite, checking whether
2170 the packet config says the feature is enabled or disabled.
2171 (remote_download_tracepoint, remote_trace_set_readonly_regions)
2172 (remote_get_trace_status): Use packet_support.
2173 (remote_set_disconnected_tracing): Adjust to check whether the
2174 feature is enabled with packet_support.
2175 (remote_set_trace_buffer_size, remote_use_agent)
2176 (remote_can_use_agent, remote_supports_btrace): Use
2178 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
2179 Use packet_config_support.
2180 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
2181 the packet config says the feature is enabled or disabled.
2182 (set_range_stepping): Use packet_support.
2184 2014-04-25 Tom Tromey <tromey@redhat.com>
2186 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
2189 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
2191 * NEWS: Mention support for C99 variable length arrays.
2193 2014-04-24 Joel Brobecker <brobecker@adacore.com>
2195 * ada-lang.c (standard_exc): Expand introductory comment.
2197 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
2198 Walfred Tedeschi <walfred.tedeschi@intel.com>
2200 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
2202 (amd64_linux_read_description): Add code to handle AVX512 xstate
2203 mask and return respective tdesc.
2204 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
2205 and features/i386/x32-avx512-linux.c.
2206 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
2207 (amd64_linux_core_read_description): Add code to handle AVX512
2208 xstate mask and return respective tdesc.
2209 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
2210 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
2212 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
2213 (tdesc_amd64_avx512_linux): New prototype.
2214 (tdesc_x32_avx512_linux): Likewise.
2215 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
2216 features/i386/x32-avx512.c.
2217 (amd64_ymm_avx512_names): New register names for pseudo
2219 (amd64_ymmh_avx512_names): New register names for raw registers
2221 (amd64_k_names): New register names for K registers.
2222 (amd64_zmmh_names): New register names for ZMM raw registers.
2223 (amd64_zmm_names): New registers names for ZMM pseudo registers.
2224 (amd64_xmm_avx512_names): New register names for XMM16-31
2226 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
2228 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
2229 if feature is present.
2230 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
2231 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
2232 (AMD64_NUM_REGS): Adjust to new number of registers.
2233 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
2234 registers supplied via XSTATE by AVX512 registers.
2235 (i386_linux_read_description): Add case for AVX512.
2236 * i386-linux-tdep.c: Include i386-avx512-linux.c.
2237 (i386_linux_gregset_reg_offset): Add AVX512 registers.
2238 (i386_linux_core_read_description): Add case for AVX512.
2239 (i386_linux_init_abi): Install supported register note section
2241 (_initialize_i386_linux_tdep): Add call to tdesc init function for
2243 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
2244 registers to be number of zmm7h + 1.
2245 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
2246 * i386-tdep.c: Include features/i386/i386-avx512.c.
2247 (i386_zmm_names): Add ZMM pseudo register names array.
2248 (i386_zmmh_names): Add ZMM raw register names array.
2249 (i386_k_names): Add K raw register names array.
2250 (num_lower_zmm_regs): Add constant for the number of lower ZMM
2251 registers. AVX512 has 16 more ZMM registers than there are YMM
2253 (i386_zmmh_regnum_p): Add function to look up register number of
2255 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
2256 (i386_k_regnum_p): Likewise for K raw registers.
2257 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
2258 registers added by AVX512.
2259 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
2260 registers added by AVX512.
2261 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
2263 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
2264 (i386_pseudo_register_name): Add ZMM pseudo registers.
2265 (i386_zmm_type): Construct and return vector registers type for ZMM
2267 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
2268 ZMM0-31 pseudo registers and K registers.
2269 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
2270 and YMM16-31 registers from register cache.
2271 (i386_pseudo_register_write): Add code to write K, ZMM and
2273 (i386_register_reggroup_p): Add code to include/exclude AVX512
2274 registers in/from respective register groups.
2275 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
2276 registers if feature is present in xcr0.
2277 (i386_gdbarch_init): Add code to initialize AVX512 feature
2278 variables in tdep structure, wire in pseudo registers and call
2279 initialize_tdesc_i386_avx512.
2280 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
2282 (i386_regnum): Add AVX512 registers.
2283 (I386_SSE_NUM_REGS): New define for number of SSE registers.
2284 (I386_AVX_NUM_REGS): Likewise for AVX registers.
2285 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
2286 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
2288 (i386_xmm_avx512_regnum_p): New prototype for register look up.
2289 (i386_ymm_avx512_regnum_p): Likewise.
2290 (i386_k_regnum_p): Likewise.
2291 (i386_zmm_regnum_p): Likewise.
2292 (i386_zmmh_regnum_p): Likewise.
2293 * i387-tdep.c : Update year in copyright notice.
2294 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
2296 (XSAVE_YMM_AVX512_ADDR): New macro.
2297 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
2299 (XSAVE_XMM_AVX512_ADDR): New macro.
2300 (xsave_avx512_k_offset): New table for K register offsets in
2302 (XSAVE_AVX512_K_ADDR): New macro.
2303 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
2305 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
2306 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
2308 (i387_collect_xsave): Add code to collect AVX512 registers from
2310 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
2311 of XMM16-31 registers.
2312 (I387_NUM_K_REGS): New define for number of K registers.
2313 (I387_K0_REGNUM): New define for K0 register number.
2314 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
2315 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
2316 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
2318 (I387_YMM16H_REGNUM): New define for YMM16H register number.
2319 (I387_XMM16_REGNUM): New define for XMM16 register number.
2320 (I387_YMM0_REGNUM): New define for YMM0 register number.
2321 (I387_KEND_REGNUM): New define for last K register number.
2322 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
2323 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
2325 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
2327 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
2329 * features/Makefile: Add AVX512 related files.
2330 * features/i386/32bit-avx512.xml: New file.
2331 * features/i386/64bit-avx512.xml: Likewise.
2332 * features/i386/amd64-avx512-linux.c: Likewise.
2333 * features/i386/amd64-avx512-linux.xml: Likewise.
2334 * features/i386/amd64-avx512.c: Likewise.
2335 * features/i386/amd64-avx512.xml: Likewise.
2336 * features/i386/i386-avx512-linux.c: Likewise.
2337 * features/i386/i386-avx512-linux.xml: Likewise.
2338 * features/i386/i386-avx512.c: Likewise.
2339 * features/i386/i386-avx512.xml: Likewise.
2340 * features/i386/x32-avx512-linux.c: Likewise.
2341 * features/i386/x32-avx512-linux.xml: Likewise.
2342 * features/i386/x32-avx512.c: Likewise.
2343 * features/i386/x32-avx512.xml: Likewise.
2344 * regformats/i386/amd64-avx512-linux.dat: New file.
2345 * regformats/i386/amd64-avx512.dat: Likewise.
2346 * regformats/i386/i386-avx512-linux.dat: Likewise.
2347 * regformats/i386/i386-avx512.dat: Likewise.
2348 * regformats/i386/x32-avx512-linux.dat: Likewise.
2349 * regformats/i386/x32-avx512.dat: Likewise.
2350 * NEWS: Add note about new support for AVX512.
2353 2014-04-23 Pedro Alves <palves@redhat.com>
2355 * breakpoint.c (insert_bp_location): Tolerate errors if the
2356 breakpoint is set in a user-loaded objfile.
2357 (remove_breakpoint_1): Likewise. Also tolerate errors if the
2358 location is marked shlib_disabled. If the breakpoint is set in a
2359 user-loaded objfile is a GDB-side memory breakpoint, validate it
2360 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
2361 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
2363 * mem-break.c (memory_validate_breakpoint): New function.
2364 * objfiles.c (userloaded_objfile_contains_address_p): New
2366 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
2367 * target.h (memory_validate_breakpoint): New declaration.
2369 2014-04-23 Pedro Alves <palves@redhat.com>
2371 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
2372 the breakpoint is set in a shared library, only suppress
2373 errors for software breakpoints, not hardware breakpoints.
2375 2014-04-22 Pedro Alves <palves@redhat.com>
2377 * infrun.c (schedlock_applies): New function, factored out from
2378 find_thread_needs_step_over.
2379 (find_thread_needs_step_over): Use it.
2380 (switch_back_to_stepped_thread): Always clear trap_expected if the
2381 step over is finished. Return early if scheduler locking applies.
2382 Look for the stepping thread and a potential step-over thread with
2384 (currently_stepping_or_nexting_callback): Delete.
2386 2014-04-22 Nick Clifton <nickc@redhat.com>
2388 * NEWS: Mention that ARM sim now supports tracing.
2390 2014-04-22 Yao Qi <yao@codesourcery.com>
2392 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
2394 * tracefile.c (tracefile_fetch_registers): ... it. New
2396 * tracefile.h (tracefile_fetch_registers): Declare.
2397 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
2398 tracefile_fetch_registers.
2400 2014-04-19 Eli Zaretskii <eliz@gnu.org>
2403 * windows-nat.c (thread_rec): Don't display a warning when
2404 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
2405 fails for any reason, set th->suspended to -1, so that we don't
2406 try to resume such a thread. Also, don't return NULL in these
2407 cases, to avoid completely ruin the session due to "PC register is
2408 not available" error.
2409 (do_windows_fetch_inferior_registers): Check errors in
2410 GetThreadContext call.
2411 (windows_continue): Accept an additional argument KILLED; if not
2412 zero, ignore errors in the SetThreadContext call, since the
2413 inferior was killed and is shutting down.
2414 (windows_resume, get_windows_debug_event)
2415 (windows_create_inferior, windows_mourn_inferior)
2416 (windows_kill_inferior): All callers of windows_continue changed
2417 to adjust to its new calling sequence.
2419 2014-04-19 Yao Qi <yao@codesourcery.com>
2421 * ctf.c (ctf_open): Call post_create_inferior.
2423 2014-04-19 Yao Qi <yao@codesourcery.com>
2425 * ctf.c (handle_id): New static variable.
2426 (ctf_open_dir): Get handle_id from bt_context_add_trace return
2427 value. Get the declaration of event "register" and get length
2428 of field "contents".
2430 2014-04-19 Yao Qi <yao@codesourcery.com>
2432 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
2434 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
2436 * valops.c (oload_method_static): Remove unnecessary argument
2437 METHOD. Update all callers.
2439 2014-04-18 Pedro alves <palves@redhat.com>
2440 Tom Tromey <tromey@redhat.com>
2443 * frame.c (get_prev_frame_1): Rename to ...
2444 (get_prev_frame_always): ... this, and make extern. Adjust.
2445 (skip_artificial_frames): Use get_prev_frame_always.
2446 (frame_unwind_caller_id, frame_pop, get_prev_frame)
2447 (get_frame_unwind_stop_reason): Adjust to rename.
2448 * frame.h (get_prev_frame_always): Declare.
2449 * inline-frame.c: Include frame.h.
2450 (inline_frame_this_id): Use get_prev_frame_always.
2452 2014-04-18 Tristan Gingold <gingold@adacore.com>
2454 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
2455 code by using bfd_mach_o_get_base_address.
2457 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2459 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
2460 (spu_ax_pseudo_register_collect): New function.
2461 (spu_ax_pseudo_register_push_stack): Likewise.
2462 (spu_dwarf_reg_to_regnum): Likewise.
2463 (spu_gdbarch_init): Install them. Append DWARF unwinders.
2465 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
2467 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
2468 Replace FRAME argument with FRAME_ID.
2469 * gdbarch.c, gdbarch.h: Regenerate.
2470 * findvar.c (default_value_from_register): Add GDBARCH argument;
2471 replace FRAME by FRAME_ID. No longer call get_frame_id.
2472 (value_from_register): Update call to gdbarch_value_from_register.
2473 * value.h (default_value_from_register): Update prototype.
2474 * s390-linux-tdep.c (s390_value_from_register): Update interface
2475 and call to default_value_from_register.
2476 * spu-tdep.c (spu_value_from_register): Likewise.
2478 * findvar.c (address_from_register): Remove TYPE argument.
2479 Do not call value_from_register; use gdbarch_value_from_register
2480 with null_frame_id instead.
2481 * value.h (address_from_register): Update prototype.
2482 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
2483 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
2484 address_from_register interface change.
2486 2014-04-17 Yao Qi <yao@codesourcery.com>
2488 * gdbtypes.h: Update comments to link to types and macros'
2491 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
2493 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
2495 2014-04-16 Keith Seitz <keiths@redhat.com>
2498 * dwarf2read.c (skip_one_die): Check that all relative-offset
2499 sibling DIEs fall within range of the current reader's buffer.
2500 (read_partial_die): Likewise.
2502 2014-04-16 Keith Seitz <keiths@redhat.com>
2505 * cp-namespace.c (lookup_symbol_file): If the type name of
2506 `this' is NULL, return immediately.
2508 2014-04-14 Keith Seitz <keiths@redhat.com>
2511 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2512 from symbol_matches_domain in symtab.c. All local callers
2513 of symbol_matches_domain updated.
2514 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2515 search STRUCT_DOMAIN.
2516 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2517 independently. standard_lookup will do that automatically.
2518 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2519 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2520 (cp_lookup_symbol_in_namespace): Likewise.
2521 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2522 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2523 may return a STRUCT_DOMAIN match.
2524 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2525 * cp-support.c: Include language.h.
2526 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2528 * psymtab.c (match_partial_symbol): Compare the requested
2529 domain with the symbol's domain directly.
2530 (lookup_partial_symbol): Likewise.
2531 * symtab.c (lookup_symbol_in_language): Explain when/why
2532 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2533 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2534 appropriate languages.
2535 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2536 and moved to ada-lang.c
2537 (lookup_block_symbol): Explain that this function only returns
2538 symbol matching the requested DOMAIN.
2539 Compare the requested domain with the symbol's domain directly.
2540 (iterate_over_symbols): Compare the requested domain with the
2541 symbol's domain directly.
2542 * symtab.h (symbol_matches_domain): Remove.
2544 2014-04-14 Tom Tromey <tromey@redhat.com>
2547 * c-exp.y (type_aggregate_p): New function.
2548 (qualified_name, classify_inner_name): Use it.
2549 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
2550 and TYPE_TARGET_TYPE of an enum type.
2551 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
2553 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
2554 handle TYPE_DECLARED_CLASS.
2555 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
2557 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
2558 * valops.c (enum_constant_from_type): New function.
2559 (value_aggregate_elt): Use it.
2560 * cp-namespace.c (cp_lookup_nested_symbol): Handle
2563 2014-04-14 Tom Tromey <tromey@redhat.com>
2565 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
2566 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
2568 * value.h (value_aggregate_elt): Update.
2570 2014-04-14 Tom Tromey <tromey@redhat.com>
2572 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
2574 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2576 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2577 (evaluate_subexp_standard): Pass noside argument.
2578 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2579 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2580 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2581 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2582 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2584 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2586 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2587 points to a constant blob.
2589 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2591 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2592 property and store it as the high bound and flag the range accordingly.
2593 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2594 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2595 * gdbtypes.h (enum range_flags): New enum.
2596 (struct range_bounds): Add flags member.
2598 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2600 * c-typeprint.c (c_type_print_varspec_suffix): Added
2601 check for not yet resolved high bound. If unresolved, print
2602 "variable length" string to the console instead of random
2605 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2607 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
2609 (ada_template_to_fixed_record_type_1): Likewise.
2610 (ada_to_fixed_type_1): Likewise.
2611 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2612 (cp_print_value): Likewise.
2613 * d-valprint.c (dynamic_array_type): Likewise.
2614 * findvar.c (address_of_variable): Likewise.
2615 * jv-valprint.c (java_value_print): Likewise.
2616 * valops.c (value_ind): Likewise.
2617 * value.c (coerce_ref): Likewise.
2619 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2621 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2622 value and retrieve the dynamic type size.
2624 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2626 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2627 passed to sizeof is dynamic evaluate the argument to compute the length.
2629 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
2630 Joel Brobecker <brobecker@adacore.com>
2632 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2633 (dwarf2_evaluate_property): New function.
2634 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2635 * dwarf2read.c (attr_to_dynamic_prop): New function.
2636 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2638 * gdbtypes.c: Include dwarf2loc.h.
2639 (is_dynamic_type): New function.
2640 (resolve_dynamic_type): New function.
2641 (resolve_dynamic_bounds): New function.
2642 (get_type_length): New function.
2643 (check_typedef): Use get_type_length to compute type length.
2644 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2645 (TYPE_LOW_BOUND_KIND): New macro.
2646 (is_dynamic_type): New function prototype.
2647 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2648 to resolve dynamic properties of the type. Update comment.
2649 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2651 2014-04-14 Richard Henderson <rth@redhat.com>
2653 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
2655 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
2656 Doug Evans <xdje42@gmail.com>
2658 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
2659 dereference TYPE_CODE_REF values.
2661 2014-04-11 Joel Brobecker <brobecker@adacore.com>
2663 Revert the following changes due to regressions:
2665 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2666 (dwarf2_evaluate_property): New function.
2667 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2668 * dwarf2read.c (attr_to_dynamic_prop): New function.
2669 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2671 * gdbtypes.c: Include dwarf2loc.h.
2672 (is_dynamic_type): New function.
2673 (resolve_dynamic_type): New function.
2674 (resolve_dynamic_bounds): New function.
2675 (get_type_length): New function.
2676 (check_typedef): Use get_type_length to compute type length.
2677 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2678 (TYPE_LOW_BOUND_KIND): New macro.
2679 (is_dynamic_type): New function prototype.
2680 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2681 to resolve dynamic properties of the type. Update comment.
2682 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2684 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2685 passed to sizeof is dynamic evaluate the argument to compute the length.
2687 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2688 value and retrieve the dynamic type size.
2690 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2691 (ada_template_to_fixed_record_type_1): Likewise.
2692 (ada_to_fixed_type_1): Likewise.
2693 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2694 (cp_print_value): Likewise.
2695 * d-valprint.c (dynamic_array_type): Likewise.
2696 * eval.c (evaluate_subexp_with_coercion): Likewise.
2697 * findvar.c (address_of_variable): Likewise.
2698 * jv-valprint.c (java_value_print): Likewise.
2699 * valops.c (value_ind): Likewise.
2700 * value.c (coerce_ref): Likewise.
2702 * c-typeprint.c (c_type_print_varspec_suffix): Added
2703 check for not yet resolved high bound. If unresolved, print
2704 "variable length" string to the console instead of random
2707 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2708 property and store it as the high bound and flag the range accordingly.
2709 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2710 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2711 * gdbtypes.h (enum range_flags): New enum.
2712 (struct range_bounds): Add flags member.
2714 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2715 points to a constant blob.
2717 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2718 (evaluate_subexp_standard): Pass noside argument.
2719 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2720 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2721 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2722 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2723 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2725 2014-04-11 Keith Seitz <keiths@redhat.com>
2728 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
2729 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
2732 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2734 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
2735 (evaluate_subexp_standard): Pass noside argument.
2736 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
2737 if noside equals EVAL_NORMAL. If the subscript yields a vla type
2738 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
2739 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
2740 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
2742 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2744 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
2745 points to a constant blob.
2747 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2749 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
2750 property and store it as the high bound and flag the range accordingly.
2751 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
2752 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
2753 * gdbtypes.h (enum range_flags): New enum.
2754 (struct range_bounds): Add flags member.
2756 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2758 * c-typeprint.c (c_type_print_varspec_suffix): Added
2759 check for not yet resolved high bound. If unresolved, print
2760 "variable length" string to the console instead of random
2763 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2765 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
2766 (ada_template_to_fixed_record_type_1): Likewise.
2767 (ada_to_fixed_type_1): Likewise.
2768 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
2769 (cp_print_value): Likewise.
2770 * d-valprint.c (dynamic_array_type): Likewise.
2771 * eval.c (evaluate_subexp_with_coercion): Likewise.
2772 * findvar.c (address_of_variable): Likewise.
2773 * jv-valprint.c (java_value_print): Likewise.
2774 * valops.c (value_ind): Likewise.
2775 * value.c (coerce_ref): Likewise.
2777 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2779 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
2780 value and retrieve the dynamic type size.
2782 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2784 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
2785 passed to sizeof is dynamic evaluate the argument to compute the length.
2787 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2789 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
2790 (dwarf2_evaluate_property): New function.
2791 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
2792 * dwarf2read.c (attr_to_dynamic_prop): New function.
2793 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
2795 * gdbtypes.c: Include dwarf2loc.h.
2796 (is_dynamic_type): New function.
2797 (resolve_dynamic_type): New function.
2798 (resolve_dynamic_bounds): New function.
2799 (get_type_length): New function.
2800 (check_typedef): Use get_type_length to compute type length.
2801 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
2802 (TYPE_LOW_BOUND_KIND): New macro.
2803 (is_dynamic_type): New function prototype.
2804 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
2805 to resolve dynamic properties of the type. Update comment.
2806 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
2808 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2810 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
2811 declaring high/low bounds and change uses accordingly. Call
2812 create_range_type instead of create_static_range_type.
2813 * gdbtypes.c (create_range_type): New function.
2814 (create_range_type): Convert bounds into struct bound_prop and pass
2815 them to create_range_type.
2816 * gdbtypes.h (struct bound_prop): New struct.
2817 (create_range_type): New function prototype.
2818 (struct range_bounds): Use struct bound_prop instead of LONGEST for
2819 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
2820 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
2822 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
2824 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
2826 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
2827 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
2828 * ada-lang.c: All uses of create_range_type updated.
2829 * coffread.c: All uses of create_range_type updated.
2830 * dwarf2read.c: All uses of create_range_type updated.
2831 * f-exp.y: All uses of create_range_type updated.
2832 * m2-valprint.c: All uses of create_range_type updated.
2833 * mdebugread.c: All uses of create_range_type updated.
2834 * stabsread.c: All uses of create_range_type updated.
2835 * valops.c: All uses of create_range_type updated.
2836 * valprint.c: All uses of create_range_type updated.
2838 2014-04-10 Pedro Alves <palves@redhat.com>
2840 * breakpoint.c (single_step_breakpoints)
2841 (single_step_gdbarch): Move up in the file.
2842 (one_breakpoint_xfer_memory): New function, factored out from ...
2843 (breakpoint_xfer_memory): ... here. Also process single-step
2846 2014-04-09 Tristan Gingold <gingold@adacore.com>
2848 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
2850 (darwin_decode_exception_message): Free port only after use.
2852 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
2854 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
2855 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
2856 when setting the size of call_length.
2858 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
2860 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
2861 dereference TYPE_CODE_REF values.
2863 2014-04-07 Joel Brobecker <brobecker@adacore.com>
2865 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
2866 end of warning message.
2868 2014-04-03 Doug Evans <dje@google.com>
2870 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
2871 of stub_comp_unit_die, stub_comp_dir is non-NULL.
2873 2014-04-02 Alan Modra <amodra@gmail.com>
2875 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
2876 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
2877 (struct symbol_file_add_from_memory_args): Add size field.
2878 (find_vdso_size): New function.
2879 (add_vsyscall_page): Attempt to find vdso size.
2881 2014-04-01 Doug Evans <dje@google.com>
2883 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
2885 2014-04-01 Tristan Gingold <gingold@adacore.com>
2887 * darwin-nat.c (darwin_encode_reply): Add prototype.
2888 (darwin_decode_exception_message): Reply to unknown inferiors.
2889 (darwin_decode_message): Handle message by id. Ignore message
2890 to unknown inferior.
2891 (darwin_wait): Discard unknown messages, add debug trace.
2893 2014-03-31 Doug Evans <dje@google.com>
2895 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
2898 2014-03-31 Doug Evans <dje@google.com>
2900 New option "set print symbol-loading".
2902 * solib.c (solib_read_symbols): Only print symbol loading messages
2904 (solib_add): If symbol loading is in "brief" mode, notify user
2905 symbols are being loaded.
2906 (reload_shared_libraries_1): Ditto.
2907 * symfile.c (print_symbol_loading_off): New static global.
2908 (print_symbol_loading_brief): New static global.
2909 (print_symbol_loading_full): New static global.
2910 (print_symbol_loading_enums): New static global.
2911 (print_symbol_loading): New static global.
2912 (print_symbol_loading_p): New function.
2913 (symbol_file_add_with_addrs): Only print symbol loading messages
2915 (_initialize_symfile): Register "print symbol-loading" set/show
2917 * symfile.h (print_symbol_loading_p): Declare.
2919 2014-03-30 Doug Evans <xdje42@gmail.com>
2921 * infrun.c (set_last_target_status): New function.
2922 (handle_inferior_event): Call it.
2924 2014-03-30 Doug Evans <xdje42@gmail.com>
2926 * inferior.h (enum stop_kind): Improve comment.
2928 2014-03-28 Joel Brobecker <brobecker@adacore.com>
2930 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
2931 a reference, strip the reference layer before calling
2932 the lang_ops value_has_mutated callback.
2934 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
2936 Remove some globals from our parser.
2937 * language.c (unk_lang_parser): Add "struct parser_state"
2939 * language.h (struct language_defn) <la_parser>: Likewise.
2940 * parse.c (expout, expout_size, expout_ptr): Remove variables.
2941 (initialize_expout): Add "struct parser_state" argument.
2942 Rewrite function to use the parser state.
2943 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
2944 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
2945 write_exp_elt_longcst, write_exp_elt_dblcst,
2946 write_exp_elt_decfloatcst, write_exp_elt_type,
2947 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2948 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
2949 write_dollar_variable): Likewise.
2950 (parse_exp_in_context_1): Use parser state.
2951 (insert_type_address_space): Add "struct parser_state" argument.
2953 (increase_expout_size): New function.
2954 * parser-defs.h: Forward declare "struct language_defn" and
2955 "struct parser_state".
2956 (expout, expout_size, expout_ptr): Remove extern declarations.
2957 (parse_gdbarch, parse_language): Rewrite macro declarations to
2958 accept the parser state.
2959 (struct parser_state): New struct.
2960 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
2961 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
2962 write_exp_elt_decfloatcst, write_exp_elt_type,
2963 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
2964 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
2965 write_exp_msymbol, write_dollar_variable,
2966 mark_struct_expression, insert_type_address_space): Add "struct
2967 parser_state" argument.
2968 (increase_expout_size): New function.
2969 * utils.c (do_clear_parser_state): New function.
2970 (make_cleanup_clear_parser_state): Likewise.
2971 * utils.h (make_cleanup_clear_parser_state): New function
2973 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
2974 Update calls to write_exp* in order to pass the parser state.
2975 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
2976 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
2977 (i386_stap_parse_special_token_three_arg_disp): Likewise.
2978 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
2979 * stap-probe.c (stap_parse_register_operand): Likewise.
2980 (stap_parse_single_operand): Likewise.
2981 (stap_parse_argument_1): Likewise.
2982 (stap_parse_argument): Use parser state.
2983 * stap-probe.h: Include "parser-defs.h".
2984 (struct stap_parse_info) <pstate>: New field.
2985 * c-exp.y (parse_type): Rewrite to use parser state.
2986 (yyparse): Redefine to c_parse_internal.
2987 (pstate): New global variable.
2988 (parse_number): Add "struct parser_state" argument.
2989 (write_destructor_name): Likewise.
2990 (type_exp): Update calls to write_exp* and similars in order to
2992 (exp1, exp, variable, qualified_name, space_identifier,
2993 typename, typebase): Likewise.
2994 (write_destructor_name, parse_number, lex_one_token,
2995 classify_name, classify_inner_name, c_parse): Add "struct
2996 parser_state" argument. Update function to use parser state.
2997 * c-lang.h: Forward declare "struct parser_state".
2998 (c_parse): Add "struct parser_state" argument.
2999 * ada-exp.y (parse_type): Rewrite macro to use parser state.
3000 (yyparse): Redefine macro to ada_parse_internal.
3001 (pstate): New variable.
3002 (write_int, write_object_renaming, write_var_or_type,
3003 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
3004 type_int, type_long, type_long_long, type_float, type_double,
3005 type_long_double, type_char, type_boolean, type_system_address):
3006 Add "struct parser_state" argument.
3007 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
3008 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
3009 var_or_type, aggregate, aggregate_component_list,
3010 positional_list, others, component_group,
3011 component_associations): Update calls to write_exp* and similar
3012 functions in order to use parser state.
3013 (ada_parse, write_var_from_sym, write_int,
3014 write_exp_op_with_string, write_object_renaming,
3015 find_primitive_type, write_selectors, write_ambiguous_var,
3016 write_var_or_type, write_name_assoc, type_int, type_long,
3017 type_long_long, type_float, type_double, type_long_double,
3018 type_char, type_boolean, type_system_address): Add "struct
3019 parser_state" argument. Adjust function to use parser state.
3020 * ada-lang.c (parse): Likewise.
3021 * ada-lang.h: Forward declare "struct parser_state".
3022 (ada_parse): Add "struct parser_state" argument.
3023 * ada-lex.l (processInt, processReal): Likewise. Adjust all
3024 calls to both functions.
3025 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
3027 (yyparse): Redefine macro to f_parse_internal.
3028 (pstate): New variable.
3029 (parse_number): Add "struct parser_state" argument.
3030 (type_exp, exp, subrange, typebase): Update calls to write_exp*
3031 and similars in order to use parser state.
3032 (parse_number): Adjust code to use parser state.
3034 (f_parse): New function.
3035 * f-lang.h: Forward declare "struct parser_state".
3036 (f_parse): Add "struct parser_state" argument.
3037 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
3039 (yyparse): Redefine macro for java_parse_internal.
3040 (pstate): New variable.
3041 (push_expression_name, push_expression_name, insert_exp): Add
3042 "struct parser_state" argument.
3043 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
3044 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
3045 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
3046 PostIncrementExpression, PostDecrementExpression,
3047 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
3048 UnaryExpressionNotPlusMinus, CastExpression,
3049 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
3050 RelationalExpression, EqualityExpression, AndExpression,
3051 ExclusiveOrExpression, InclusiveOrExpression,
3052 ConditionalAndExpression, ConditionalOrExpression,
3053 ConditionalExpression, Assignment, LeftHandSide): Update
3054 calls to write_exp* and similars in order to use parser state.
3055 (parse_number): Ajust code to use parser state.
3057 (java_parse): New function.
3058 (push_variable): Add "struct parser_state" argument. Adjust
3059 code to user parser state.
3060 (push_fieldnames, push_qualified_expression_name,
3061 push_expression_name, insert_exp): Likewise.
3062 * jv-lang.h: Forward declare "struct parser_state".
3063 (java_parse): Add "struct parser_state" argument.
3064 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
3066 (yyparse): Redefine macro to m2_parse_internal.
3067 (pstate): New variable.
3068 (type_exp, exp, fblock, variable, type): Update calls to
3069 write_exp* and similars to use parser state.
3071 (m2_parse): New function.
3072 * m2-lang.h: Forward declare "struct parser_state".
3073 (m2_parse): Add "struct parser_state" argument.
3074 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
3075 * objc-lang.h: Forward declare "struct parser_state".
3076 (end_msglist): Add "struct parser_state" argument.
3077 * p-exp.y (parse_type): Rewrite macro to use parser state.
3078 (yyparse): Redefine macro to pascal_parse_internal.
3079 (pstate): New variable.
3080 (parse_number): Add "struct parser_state" argument.
3081 (type_exp, exp1, exp, qualified_name, variable): Update calls to
3082 write_exp* and similars in order to use parser state.
3083 (parse_number, yylex): Adjust code to use parser state.
3084 (pascal_parse): New function.
3085 * p-lang.h: Forward declare "struct parser_state".
3086 (pascal_parse): Add "struct parser_state" argument.
3087 * go-exp.y (parse_type): Rewrite macro to use parser state.
3088 (yyparse): Redefine macro to go_parse_internal.
3089 (pstate): New variable.
3090 (parse_number): Add "struct parser_state" argument.
3091 (type_exp, exp1, exp, variable, type): Update calls to
3092 write_exp* and similars in order to use parser state.
3093 (parse_number, lex_one_token, classify_name, yylex): Adjust code
3094 to use parser state.
3095 (go_parse): Likewise.
3096 * go-lang.h: Forward declare "struct parser_state".
3097 (go_parse): Add "struct parser_state" argument.
3099 2014-03-27 Doug Evans <dje@google.com>
3101 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
3103 2014-03-27 Doug Evans <dje@google.com>
3105 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
3106 Remove argument abbrev_section. All callers updated.
3108 2014-03-27 Doug Evans <dje@google.com>
3110 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
3111 addr_base, ranges_base.
3113 2014-03-26 Keith Seitz <keiths@redhat.com>
3115 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
3116 types, not VAR_DOMAIN.
3118 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
3120 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
3122 * features/nios2-linux.c: Regenerated.
3123 * features/nios2.c: Regenerated.
3125 2014-03-25 Pedro Alves <palves@redhat.com>
3127 * cli/cli-script.c (script_from_file): Force the interpreter to
3130 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3132 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
3133 small stack allocation.
3135 2014-03-24 Tristan Gingold <gingold@adacore.com>
3137 * darwin-nat.c (exc_server): Remove unused prototype.
3138 (darwin_dump_message): Correctly display data on x86_64.
3139 (darwin_encode_reply): Fix style.
3140 Add comments and fix indentation.
3142 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
3144 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
3146 2014-03-22 Doug Evans <xdje42@gmail.com>
3148 * infcmd.c: Whitespace fixes.
3149 (interrupt_command): Merge two function comments into one.
3151 2014-03-22 Doug Evans <xdje42@gmail.com>
3153 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
3156 2014-03-22 Yao Qi <yao@codesourcery.com>
3158 * remote.c (target_read_live_memory): Remove.
3159 (memory_xfer_live_readonly_partial): Rename it to
3160 remote_xfer_live_readonly_partial. Remove argument 'object'.
3161 All callers updated. Call remote_read_bytes_1
3162 instead of target_read_live_memory.
3163 * tracepoint.c (set_traceframe_number): Remove.
3164 (make_cleanup_restore_traceframe_number): Likewise .
3165 * tracepoint.h (set_traceframe_number): Remove declaration.
3166 (make_cleanup_restore_traceframe_number): Likewise.
3168 2014-03-22 Yao Qi <yao@codesourcery.com>
3170 * remote.c (remote_read_bytes): Move code on reading from the
3172 (remote_read_bytes_1): ... here. New function.
3174 2014-03-22 Yao Qi <yao@codesourcery.com>
3176 * ctf.c (ctf_xfer_partial): Check the return value of
3177 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
3178 return TARGET_XFER_UNAVAILABLE.
3179 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
3180 * target.c (target_read_live_memory): Move it to remote.c.
3181 (memory_xfer_live_readonly_partial): Likewise.
3182 (memory_xfer_partial_1): Move some code to remote_read_bytes.
3183 * remote.c (target_read_live_memory): Moved from target.c.
3184 (memory_xfer_live_readonly_partial): Likewise.
3185 (remote_read_bytes): Factored out from
3186 memory_xfer_partial_1.
3188 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
3190 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
3193 2014-03-21 Pedro Alves <palves@redhat.com>
3195 * infrun.c (normal_stop): Extend comment.
3197 2014-03-21 Hui Zhu <hui@codesourcery.com>
3198 Pedro Alves <palves@redhat.com>
3200 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
3202 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
3203 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
3204 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
3206 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
3208 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
3209 `z' formatted output modifier.
3211 2014-03-20 Tom Tromey <tromey@redhat.com>
3212 Sergio Durigan Junior <sergiodj@redhat.com>
3214 * probe.c (parse_probes): Turn assert into an ordinary error.
3215 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
3216 exceptions when parsing probes. Rearrange the code for clarity.
3218 2014-03-20 Tom Tromey <tromey@redhat.com>
3221 * top.c (execute_command): Only dispatch events if the command
3224 2014-03-20 Tom Tromey <tromey@redhat.com>
3227 * infcall.c: Include event-top.h.
3228 (run_inferior_call): Call async_disable_stdin if needed.
3230 2014-03-20 Pedro Alves <palves@redhat.com>
3232 * infrun.c (prepare_to_proceed): Delete.
3233 (thread_still_needs_step_over): New function.
3234 (find_thread_needs_step_over): New function.
3235 (proceed): If the current thread needs a step-over, set its
3236 steping_over_breakpoint flag. Adjust to use
3237 find_thread_needs_step_over instead of prepare_to_proceed.
3238 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
3239 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
3241 (switch_back_to_stepped_thread): Step over breakpoints of all
3242 threads not the stepping thread, before switching back to the
3245 2014-03-20 Pedro Alves <palves@redhat.com>
3247 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
3249 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
3250 * infrun.c (saved_singlestep_ptid)
3251 (stepping_past_singlestep_breakpoint): Delete.
3252 (resume): Remove stepping_past_singlestep_breakpoint handling.
3253 (proceed): Store the prev_pc of the stepping thread too.
3254 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
3256 (enum infwait_states): Delete infwait_thread_hop_state.
3257 (struct execution_control_state) <hit_singlestep_breakpoint>: New
3259 (handle_inferior_event): Adjust.
3260 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
3261 handling and the thread-hop code. Before removing single-step
3262 breakpoints, check whether the thread hit a single-step breakpoint
3263 of another thread. If it did, the trap is not a random signal.
3264 (switch_back_to_stepped_thread): If the event thread hit a
3265 single-step breakpoint, unblock it before switching to the
3266 stepping thread. Handle the case of the stepped thread having
3268 (keep_going): Handle the case of the current thread moving past a
3269 single-step breakpoint.
3271 2014-03-20 Pedro Alves <palves@redhat.com>
3274 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
3275 are being stepped over.
3276 (breakpoint_address_match): Make extern.
3277 * breakpoint.h (breakpoint_address_match): New declaration.
3278 * inferior.h (stepping_past_instruction_at): New declaration.
3279 * infrun.c (struct step_over_info): New type.
3280 (step_over_info): New global.
3281 (set_step_over_info, clear_step_over_info)
3282 (stepping_past_instruction_at): New functions.
3283 (handle_inferior_event): Clear the step-over info when
3284 trap_expected is cleared.
3285 (resume): Remove now stale comment.
3286 (clear_proceed_status): Clear step-over info.
3287 (proceed): Adjust step-over handling to set or clear the step-over
3288 info instead of removing all breakpoints.
3289 (handle_signal_stop): When setting up a thread-hop, don't remove
3291 (stop_stepping): Clear step-over info.
3292 (keep_going): Adjust step-over handling to set or clear step-over
3293 info and then always inserting breakpoints, instead of removing
3294 all breakpoints when stepping over one.
3296 2014-03-20 Pedro Alves <palves@redhat.com>
3298 * infrun.c (previous_inferior_ptid): Adjust comment.
3299 (deferred_step_ptid): Delete.
3300 (infrun_thread_ptid_changed, prepare_to_proceed)
3301 (init_wait_for_inferior): Adjust.
3302 (handle_signal_stop): Delete deferred_step_ptid handling.
3304 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3307 * defs.h (sync_quit_force_run): New declaration.
3308 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
3309 * event-top.c (async_sigterm_handler): New declaration.
3310 (async_sigterm_token): New variable.
3311 (async_init_signals): Create also async_sigterm_token.
3312 (async_sigterm_handler): New function.
3313 (sync_quit_force_run): New variable.
3314 (handle_sigterm): Replace quit_force call by other calls.
3315 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
3317 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
3319 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
3320 offset into SPE pseudo registers.
3322 2014-03-18 Pedro Alves <palves@redhat.com>
3325 * inferior.h (print_stop_event): Declare.
3326 * infrun.c (print_stop_event): New, factored out from ...
3327 (normal_stop): ... this.
3328 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
3329 of bpstat_print/print_stack_frame.
3331 2014-03-17 Tom Tromey <tromey@redhat.com>
3333 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
3335 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
3337 * ada-lang.c (decode_constrained_packed_array): Perform a
3338 minimal coercion for reference with coerce_ref instead of
3341 2014-03-17 Tristan Gingold <gingold@adacore.com>
3343 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
3344 (darwin_solib_create_inferior_hook): Emit a warning if version
3347 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
3349 * python/py-value.c (get_field_flag): Cast flag_name argument to
3350 PyObject_GetAttrString to support Python 2.4.
3352 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3354 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
3355 (Global Maintainers): Remove Jan Kratochvil.
3357 2014-03-14 Pedro Alves <palves@redhat.com>
3359 * inferior.h (terminal_ours_for_output): Rename to ...
3360 (child_terminal_ours_for_output): ... this.
3361 (terminal_save_ours): Rename to ...
3362 (child_terminal_save_ours): ... this.
3363 (terminal_ours): Rename to ...
3364 (child_terminal_ours): ... this.
3365 (terminal_inferior): Rename to ...
3366 (child_terminal_inferior): ... this.
3367 (terminal_init_inferior): Rename to ...
3368 (child_terminal_init_inferior): ... this.
3369 (terminal_init_inferior_with_pgrp): Rename to ...
3370 (child_terminal_init_inferior_with_pgrp): ... this.
3371 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
3372 (child_terminal_init_with_pgrp): ... this.
3373 (terminal_save_ours): Rename to ...
3374 (child_terminal_save_ours): ... this.
3375 (terminal_init_inferior): Rename to ...
3376 (child_terminal_init): ... this. Adjust.
3377 (terminal_inferior): Rename to ...
3378 (child_terminal_inferior): ... this.
3379 (terminal_ours_for_output): Rename to ...
3380 (child_terminal_ours_for_output): ... this. Adjust.
3381 (terminal_ours): Rename to ...
3382 (child_terminal_ours): ... this.
3383 (terminal_ours_1): Rename to ...
3384 (child_terminal_ours_1): ... this. Adjust.
3385 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
3386 * windows-nat.c (do_initial_windows_stuff): Adjust.
3387 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
3388 (gnu_terminal_init): ... this. Adjust.
3389 (gnu_target): Adjust.
3390 * inf-child.c (inf_child_target): Adjust.
3392 2014-03-13 Doug Evans <xdje42@gmail.com>
3395 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
3398 2014-03-13 Doug Evans <xdje42@gmail.com>
3400 * value.c (record_latest_value): Call release_value_or_incref
3401 instead of release_value.
3403 2014-03-13 Pedro Alves <palves@redhat.com>
3405 * procfs.c (procfs_target): Don't override to_shortname,
3406 to_longname or to_doc.
3408 2014-03-13 Pedro Alves <palves@redhat.com>
3410 * inf-child.c (inf_child_open, inf_child_target): Don't mention
3411 Unix in user visible strings.
3413 2014-03-12 Stan Shebs <stan@codesourcery.com>
3415 * gdbtypes.h: Annotate comments for Doxygen, add a page
3416 block comment with some general info.
3418 2014-03-12 Pedro Alves <palves@redhat.com>
3420 * infcmd.c (prepare_execution_command): New function, factored out
3421 from several execution commands.
3422 (run_command_1, continue_command, step_1, jump_command)
3423 (signal_command, until_command, advance_command, finish_command)
3424 (attach_command): Use prepare_execution_command.
3426 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
3428 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
3431 (struct arm_linux_thread_points): Removed.
3432 (struct arm_linux_process_info): New.
3433 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
3434 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
3435 (arm_linux_find_breakpoints_by_tid): Removed.
3436 (struct arch_lwp_info): New.
3437 (arm_linux_find_process_pid): New functions.
3438 (arm_linux_add_process): New functions.
3439 (arm_linux_process_info_get): New functions.
3440 (arm_linux_forget_process): New function.
3441 (arm_linux_get_debug_reg_state): New function.
3442 (struct update_registers_data): New.
3443 (update_registers_callback): New function.
3444 (arm_linux_insert_hw_breakpoint1): Updated.
3445 (arm_linux_remove_hw_breakpoint1): Updated.
3446 (arm_linux_insert_hw_breakpoint): Updated.
3447 (arm_linux_remove_hw_breakpoint): Updated.
3448 (arm_linux_insert_watchpoint): Updated.
3449 (arm_linux_remove_watchpoint): Updated.
3450 (arm_linux_new_thread): Updated.
3451 (arm_linux_prepare_to_resume): New function.
3452 (arm_linux_new_fork): New function.
3453 (_initialize_arm_linux_nat): Updated.
3455 2014-03-12 Pedro Alves <palves@redhat.com>
3457 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
3459 2014-03-12 Tom Tromey <tromey@redhat.com>
3461 * inf-child.c (return_zero): New function.
3462 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
3463 * aix-thread.c (aix_thread_inferior_created): New function.
3464 (aix_thread_attach): Remove.
3465 (init_aix_thread_ops): Don't set to_attach.
3466 (_initialize_aix_thread): Register inferior_created observer.
3467 * corelow.c (init_core_ops): Don't set to_attach or
3469 * exec.c (init_exec_ops): Don't set to_attach or
3471 * infcmd.c (run_command_1): Use find_run_target. Make direct
3473 (attach_command): Use find_attach_target. Make direct target
3475 * record-btrace.c (init_record_btrace_ops): Don't set
3477 * record-full.c (record_full_can_async_p, record_full_is_async_p):
3479 (init_record_full_ops, init_record_full_core_ops): Update. Don't
3480 set to_create_inferior.
3481 * target.c (complete_target_initialization): Add assertion.
3482 (target_create_inferior): Remove.
3483 (find_default_attach, find_default_create_inferior): Remove.
3484 (find_attach_target, find_run_target): New functions.
3485 (find_default_is_async_p, find_default_can_async_p)
3486 (target_supports_non_stop, target_attach): Remove.
3487 (init_dummy_target): Don't set to_create_inferior or
3488 to_supports_non_stop.
3489 * target.h (struct target_ops) <to_attach>: Add comment. Remove
3490 TARGET_DEFAULT_FUNC.
3491 <to_create_inferior>: Add comment.
3492 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
3493 TARGET_DEFAULT_RETURN.
3494 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
3495 (find_attach_target, find_run_target): Declare.
3496 (target_create_inferior): Remove.
3497 (target_has_execution_1): Update comment.
3498 (target_supports_non_stop): Remove.
3499 * target-delegates.c: Rebuild.
3501 2014-03-12 Pedro Alves <palves@redhat.com>
3503 * inf-child.h: Update comment to not mention Unix.
3505 2014-03-12 Pedro Alves <palves@redhat.com>
3507 * inf-child.c: Update top comment to not mention Unix. Add
3508 generic comment describing how this target is meant to be used.
3509 (inf_child_post_attach, inf_child_post_startup_inferior)
3510 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
3513 2014-03-12 Pedro Alves <palves@redhat.com>
3515 * nto-procfs.c: Include inf-child.h.
3516 (procfs_ops): Delete global.
3517 (procfs_can_run): Delete method.
3518 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
3519 target pointer instead of referencing procfs_ops.
3520 (procfs_prepare_to_store): Delete.
3521 (init_procfs_ops): Delete function.
3522 (procfs_target): New function, based on init_procfs_ops, but
3523 inherit inf_child_target.
3524 (_initialize_procfs): Use procfs_target.
3526 2014-03-12 Pedro Alves <palves@redhat.com>
3528 * windows-nat.c: Include inf-child.h.
3529 (windows_ops): Delete global.
3530 (windows_open, windows_prepare_to_store, windows_can_run): Delete
3532 (init_windows_ops): Delete function.
3533 (windows_target): New function, based on init_windows_ops, but
3534 inherit inf_child_target.
3535 (_initialize_windows_nat): Use windows_target. Install x86
3536 specific target methods here.
3538 2014-03-10 Doug Evans <xdje42@gmail.com>
3540 * guile/guile.c (call_initialize_gdb_module): New function.
3541 (initialize_guile): Replace call to scm_init_guile with call to
3544 2014-03-10 Joel Brobecker <brobecker@adacore.com>
3546 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
3547 in call to TYPE_CODE macro.
3549 2014-03-10 Jerome Guitton <guitton@adacore.com>
3551 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
3552 Resolve tagged types to full view.
3554 2014-03-10 Hui Zhu <hui@codesourcery.com>
3556 * target.h (target_insert_breakpoint): Remove "hardware" from its
3559 2014-03-07 Doug Evans <dje@google.com>
3561 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
3563 2014-03-07 Doug Evans <dje@google.com>
3565 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
3566 Remove unused local comp_dir_attr. Assert exactly one of
3567 stub_comp_unit_die, stub_comp_dir is non-NULL.
3569 2014-03-07 Joel Brobecker <brobecker@adacore.com>
3571 * target.h (complete_target_initialization, add_target):
3574 2014-03-07 Pedro Alves <palves@redhat.com>
3576 * go32-nat.c: Include inf-child.h.
3577 (go32_ops): Delete global.
3578 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
3580 (go32_create_inferior): Push the passed in target pointer instead
3581 of referencing go32_ops.
3582 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
3583 (go32_target): New function, based on init_go32_ops, but inherit
3585 (_initialize_go32_nat): Use go32_target. Move parts of
3588 2014-03-06 Joel Brobecker <brobecker@adacore.com>
3590 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
3591 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
3592 SYMBOL_VALUE_ADDRESS.
3593 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
3595 2014-03-06 Yao Qi <yao@codesourcery.com>
3597 * breakpoint.c (get_tracepoint_by_number): Remove argument
3598 optional_p. All callers updated. Adjust comments. Update
3600 * breakpoint.h (get_tracepoint_by_number): Update declaration.
3602 2014-03-06 Yao Qi <yao@codesourcery.com>
3604 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
3605 early if get_number returns zero. Use 'p' instead of 'args'.
3607 2014-03-06 Yao Qi <yao@codesourcery.com>
3609 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
3612 2014-03-06 Yao Qi <yao@codesourcery.com>
3614 PR breakpoints/16508
3615 * tracepoint.c (check_trace_running): New function.
3616 (trace_find_command): Move code to check_trace_running and
3617 call check_trace_running.
3618 (trace_find_pc_command): Likewise.
3619 (trace_find_tracepoint_command): Likewise.
3620 (trace_find_line_command): Likewise.
3621 (trace_find_range_command): Likewise.
3622 * tracepoint.h (check_trace_running): Likewise.
3623 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
3625 2014-03-06 Yao Qi <yao@codesourcery.com>
3627 * target.h (struct target_ops) <to_traceframe_info>: Use
3628 TARGET_DEFAULT_NORETURN (tcomplain ()).
3629 * target-delegates.c: Regenerated.
3631 2014-03-05 Pedro Alves <palves@redhat.com>
3634 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
3635 void. Update comment.
3636 (dcache_xfer_memory): Delete.
3637 (dcache_read_memory_partial): New, based on the read bits of
3639 (dcache_update): Add status parameter. Use ULONGEST for len, and
3640 adjust. Discard cache lines if the reason for the update was
3642 * dcache.h (dcache_xfer_memory): Delete declaration.
3643 (dcache_read_memory_partial): New declaration.
3644 (dcache_update): Update prototype.
3645 * target.c (raw_memory_xfer_partial): Update the dcache here.
3646 (memory_xfer_partial_1): Don't handle dcache writes here.
3648 2014-03-05 Mike Frysinger <vapier@gentoo.org>
3650 * remote-sim.c (gdbsim_load): Add const to prog.
3652 2014-03-03 Tom Tromey <tromey@redhat.com>
3654 * elfread.c (probe_key): Change to bfd_data.
3655 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
3656 now per-BFD, not per-objfile.
3657 * stap-probe.c (stap_probe_destroy): Update comment.
3658 (handle_stap_probe): Allocate on the per-BFD obstack.
3660 2014-03-03 Tom Tromey <tromey@redhat.com>
3662 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
3663 * breakpoint.c (create_longjmp_master_breakpoint): Use
3665 (add_location_to_breakpoint, bkpt_probe_insert_location)
3666 (bkpt_probe_remove_location): Update.
3667 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
3668 * elfread.c (elf_symfile_relocate_probe): Remove.
3669 (elf_probe_fns): Update.
3670 (insert_exception_resume_breakpoint): Change type of "probe"
3671 parameter to bound_probe.
3672 (check_exception_resume): Update.
3673 * objfiles.c (objfile_relocate1): Don't relocate probes.
3674 * probe.c (bound_probe_s): New typedef.
3675 (parse_probes): Use get_probe_address. Set sal's objfile.
3676 (find_probe_by_pc): Return a bound_probe.
3677 (collect_probes): Return a VEC(bound_probe_s).
3678 (compare_probes): Update.
3679 (gen_ui_out_table_header_info): Change type of "probes"
3681 (info_probes_for_ops): Update.
3682 (get_probe_address): New function.
3683 (probe_safe_evaluate_at_pc): Update.
3684 * probe.h (struct probe_ops) <get_probe_address>: New field.
3685 <set_semaphore, clear_semaphore>: Add objfile parameter.
3686 (struct probe) <objfile>: Remove field.
3688 <address>: Update comment.
3689 (struct bound_probe): New.
3690 (find_probe_by_pc): Return a bound_probe.
3691 (get_probe_address): Declare.
3692 * solib-svr4.c (struct probe_and_action) <address>: New field.
3693 (hash_probe_and_action, equal_probe_and_action): Update.
3694 (register_solib_event_probe): Add address parameter.
3695 (solib_event_probe_at): Update.
3696 (svr4_create_probe_breakpoints): Add objfile parameter. Use
3698 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
3699 (stap_get_probe_address): New function.
3700 (stap_can_evaluate_probe_arguments, compute_probe_arg)
3701 (compile_probe_arg): Update.
3702 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
3704 (handle_stap_probe): Don't relocate the probe.
3705 (stap_relocate): Remove.
3706 (stap_gen_info_probes_table_values): Update.
3707 (stap_probe_ops): Remove stap_relocate.
3708 * symfile-debug.c (debug_sym_relocate_probe): Remove.
3709 (debug_sym_probe_fns): Update.
3710 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
3711 * symtab.c (init_sal): Use memset.
3712 * symtab.h (struct symtab_and_line) <objfile>: New field.
3713 * tracepoint.c (start_tracing, stop_tracing): Update.
3715 2014-03-03 Tom Tromey <tromey@redhat.com>
3717 * probe.h (parse_probes, find_probe_by_pc)
3718 (find_probes_in_objfile): Fix comments.
3720 2014-03-02 Doug Evans <xdje42@gmail.com>
3722 * infrun.c (handle_signal_stop): Replace test for
3723 TARGET_WAITKIND_STOPPED with an assert.
3725 2014-03-02 Doug Evans <xdje42@gmail.com>
3727 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
3729 2014-03-02 Doug Evans <xdje42@gmail.com>
3731 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
3733 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3735 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
3737 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3739 * i386obsd-nat.c: Include "obsd-nat.h".
3740 (_initialize_i386obsd_nat): Call obsd_add_target instead of
3742 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3744 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3746 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
3748 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3750 * mips64obsd-nat.c: Include "obsd-nath".
3751 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
3753 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3755 2014-03-01 Mark Kettenis <kettenis@gnu.org>
3757 * amd64obsd-nat.c: Include "obsd-nat,h.
3758 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
3760 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
3762 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
3764 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
3765 (find_overload_match): Update call to find_oload_champ.
3766 (find_oload_champ_namespace_loop): Likewise
3768 2014-02-28 Mark Kettenis <kettenis@gnu.org>
3770 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
3772 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
3773 * config/sparc/obsd64.mh: New file.
3774 * sparc64obsd-nat.c: New file.
3776 * obsd-nat.h: New file.
3777 * obsd-nat.c: New file.
3778 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
3779 (ALLDEPFILES): Add obsd-nat.c.
3781 2014-02-28 Tom Tromey <tromey@redhat.com>
3783 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
3784 * cli-out.h (cli_ui_out_impl): Now const.
3785 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
3786 * ui-out.c (struct ui_out) <impl>: Now const.
3787 (default_ui_out_impl): Now const.
3788 (ui_out_new): Make 'impl' parameter const.
3789 * ui-out.h (ui_out_new): Update.
3791 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3793 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
3795 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3797 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
3799 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3801 Additional PR 8882 fix.
3802 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
3804 2014-02-27 Pedro Alves <palves@redhat.com>
3806 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
3809 2014-02-27 Pedro Alves <palves@redhat.com>
3812 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
3813 * nat/linux-waitpid.c: Include string.h.
3814 (status_to_str): Moved here and made extern.
3815 * nat/linux-waitpid.h (status_to_str): New declaration.
3817 2014-02-27 Hui Zhu <hui@codesourcery.com>
3820 * infrun.c (ptid_match): Move ...
3821 * common/ptid.c (ptid_match): ... here.
3822 * inferior.h (ptid_match): Move ...
3823 * common/ptid.h (ptid_match): ... here.
3825 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3827 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
3828 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
3831 2014-02-27 Mark Kettenis <kettenis@gnu.org>
3833 * obsd-tdep.c (obsd_auxv_parse): New function.
3834 (obsd_init_abi): Set auxv_parse.
3836 * gdbarch.sh (auxv_parse): New.
3837 * gdbarch.h: Regenerated.
3838 * gdbarch.c: Regenerated.
3839 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
3841 2014-02-26 Ludovic Courtès <ludo@gnu.org>
3843 * guile/scm-value.c (gdbscm_history_append_x): New function.
3844 (value_functions): Add it.
3846 2014-02-27 Joel Brobecker <brobecker@adacore.com>
3848 * dwarf2read.c (attr_value_as_address): New function.
3849 (dwarf2_find_base_address, read_call_site_scope): Use
3850 attr_value_as_address in place of DW_ADDR.
3851 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
3852 the low and high addresses. Slight rework of the handling
3853 of the high pc being a constant form, and limit it to
3854 DWARF verson 4 or higher.
3855 (dwarf2_record_block_ranges): Likewise.
3856 (read_partial_die): Likewise.
3857 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
3859 2014-02-26 Tom Tromey <tromey@redhat.com>
3861 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
3863 2014-02-26 Tom Tromey <tromey@redhat.com>
3865 * elfread.c (elf_read_minimal_symbols): Return early if
3866 minimal symbols have already been read. Add "ei" parameter.
3867 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
3868 * minsyms.c (prim_record_minimal_symbol_full): Update.
3869 * objfiles.h (struct objstats) <n_minsyms>: Move...
3870 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
3871 * symmisc.c (print_objfile_statistics): Update.
3873 2014-02-26 Tom Tromey <tromey@redhat.com>
3875 * elfread.c (elf_read_minimal_symbols): New function, from
3877 (elf_symfile_read): Call it.
3879 2014-02-26 Tom Tromey <tromey@redhat.com>
3881 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
3882 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
3883 (lookup_minimal_symbol_solib_trampoline)
3884 (lookup_minimal_symbol_by_pc_section_1)
3885 (lookup_minimal_symbol_and_objfile): Update.
3886 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
3887 Don't allocate a minimal symbol if minsyms have already been read.
3888 (build_minimal_symbol_hash_tables): Update.
3889 (install_minimal_symbols): Do nothing if minsyms already read.
3890 Use the per-BFD obstack.
3891 (terminate_minimal_symbol_table): Use the per-BFD obstack.
3892 * objfiles.c (allocate_objfile): Call
3893 terminate_minimal_symbol_table later.
3894 (have_minimal_symbols): Update.
3895 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
3896 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
3897 Move from struct objfile.
3898 <minsyms_read>: New field.
3899 (struct objfile) <msymbols, minimal_symbol_count,
3900 msymbol_hash, msymbol_demangled_hash>: Move.
3901 (ALL_OBJFILE_MSYMBOLS): Update.
3902 * symfile.c (read_symbols): Set minsyms_read.
3903 (reread_symbols): Update.
3904 * symmisc.c (dump_objfile, dump_msymbols): Update.
3906 2014-02-26 Tom Tromey <tromey@redhat.com>
3908 * minsyms.c (msymbols_sort): Remove.
3909 * minsyms.h (msymbols_sort): Remove.
3910 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
3911 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
3912 * elfread.c (elf_symtab_read): Don't add section offsets.
3913 * xcoffread.c (record_minimal_symbol): Don't add section offset
3914 to minimal symbol address.
3915 * somread.c (text_offset, data_offset): Remove.
3916 (som_symtab_read): Don't add section offsets to minimal symbol
3918 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
3919 Don't add section offsets to minimal symbols.
3920 * coffread.c (coff_symtab_read): Don't add section offsets
3921 to minimal symbol addresses.
3922 * machoread.c (macho_symtab_add_minsym): Don't add section offset
3923 to minimal symbol addresses.
3924 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
3925 section offset to minimal symbol addresses.
3926 * mdebugread.c (parse_partial_symbols): Don't add section
3927 offset to minimal symbol addresses.
3928 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
3929 offset to minimal symbol addresses.
3931 2014-02-26 Tom Tromey <tromey@redhat.com>
3933 * ada-lang.c (ada_main_name): Update.
3934 (ada_add_standard_exceptions): Update.
3935 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
3936 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
3937 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
3938 * auxv.c (ld_so_xfer_auxv): Update.
3939 * avr-tdep.c (avr_scan_prologue): Update.
3940 * ax-gdb.c (gen_var_ref): Update.
3941 * blockframe.c (get_pc_function_start)
3942 (find_pc_partial_function_gnu_ifunc): Update.
3943 * breakpoint.c (create_overlay_event_breakpoint)
3944 (create_longjmp_master_breakpoint)
3945 (create_std_terminate_master_breakpoint)
3946 (create_exception_master_breakpoint): Update.
3947 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
3948 * c-valprint.c (c_val_print): Update.
3949 * coff-pe-read.c (add_pe_forwarded_sym): Update.
3950 * common/agent.c (agent_look_up_symbols): Update.
3951 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
3952 * dwarf2loc.c (call_site_to_target_addr): Update.
3953 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
3954 * elfread.c (elf_gnu_ifunc_record_cache)
3955 (elf_gnu_ifunc_resolve_by_got): Update.
3956 * findvar.c (default_read_var_value): Update.
3957 * frame.c (inside_main_func): Update.
3958 * frv-tdep.c (frv_frame_this_id): Update.
3959 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
3960 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
3962 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
3963 (hppa_hpux_find_dummy_bpaddr): Update.
3964 * hppa-tdep.c (hppa_symbol_address): Update.
3965 * infcmd.c (until_next_command): Update.
3966 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
3968 * linespec.c (minsym_found, add_minsym): Update.
3969 * linux-nat.c (get_signo): Update.
3970 * linux-thread-db.c (inferior_has_bug): Update.
3971 * m32c-tdep.c (m32c_return_value)
3972 (m32c_m16c_address_to_pointer): Update.
3973 * m32r-tdep.c (m32r_frame_this_id): Update.
3974 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
3975 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
3976 * maint.c (maintenance_translate_address): Update.
3977 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
3978 (frob_address): New function.
3979 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
3980 frob_address. Rename parameter to "pc_in".
3981 (compare_minimal_symbols, compact_minimal_symbols): Use raw
3983 (find_solib_trampoline_target, minimal_symbol_upper_bound):
3985 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
3986 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
3987 * objc-lang.c (find_objc_msgsend): Update.
3988 * objfiles.c (objfile_relocate1): Update.
3989 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
3990 * p-valprint.c (pascal_val_print): Update.
3991 * parse.c (write_exp_msymbol): Update.
3992 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
3993 (ppc_elfv2_skip_entrypoint): Update.
3994 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
3995 * printcmd.c (build_address_symbolic, msym_info)
3996 (address_info): Update.
3997 * proc-service.c (ps_pglobal_lookup): Update.
3998 * psymtab.c (find_pc_sect_psymtab_closer)
3999 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
4000 Change msymbol parameter to bound_minimal_symbol.
4001 * ravenscar-thread.c (get_running_thread_id): Update.
4002 * remote.c (remote_check_symbols): Update.
4003 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
4005 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4006 * solib-dsbt.c (lm_base): Update.
4007 * solib-frv.c (lm_base, main_got): Update.
4008 * solib-irix.c (locate_base): Update.
4009 * solib-som.c (som_solib_create_inferior_hook)
4010 (link_map_start): Update.
4011 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
4012 * solib-svr4.c (elf_locate_base, enable_break): Update.
4013 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4014 (flush_ea_cache): Update.
4015 * stabsread.c (define_symbol, scan_file_globals): Update.
4016 * stack.c (find_frame_funname): Update.
4017 * symfile-debug.c (debug_qf_expand_symtabs_matching)
4018 (debug_qf_find_pc_sect_symtab): Update.
4019 * symfile.c (simple_read_overlay_table)
4020 (simple_overlay_update): Update.
4021 * symfile.h (struct quick_symbol_functions)
4022 <find_pc_sect_symtab>: Change type of msymbol to
4023 bound_minimal_symbol.
4024 * symmisc.c (dump_msymbols): Update.
4025 * symtab.c (find_pc_sect_symtab_via_partial)
4026 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
4027 (search_symbols, print_msymbol_info): Update.
4028 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
4029 (MSYMBOL_VALUE_ADDRESS): Redefine.
4030 (BMSYMBOL_VALUE_ADDRESS): New macro.
4031 * tracepoint.c (scope_info): Update.
4032 * tui/tui-disasm.c (tui_find_disassembly_address)
4033 (tui_get_begin_asm_address): Update.
4034 * valops.c (find_function_in_inferior): Update.
4035 * value.c (value_static_field, value_fn_field): Update.
4037 2014-02-26 Tom Tromey <tromey@redhat.com>
4039 * ada-lang.c (ada_update_initial_language): Update.
4040 (ada_main_name, ada_has_this_exception_support): Update.
4041 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
4042 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4043 * arm-tdep.c (arm_skip_stub): Update.
4044 * auxv.c (ld_so_xfer_auxv): Update.
4045 * avr-tdep.c (avr_scan_prologue): Update.
4046 * ax-gdb.c (gen_var_ref): Update.
4047 * breakpoint.c (struct breakpoint_objfile_data)
4048 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
4049 type to bound_minimal_symbol.
4050 (create_overlay_event_breakpoint)
4051 (create_longjmp_master_breakpoint)
4052 (create_std_terminate_master_breakpoint)
4053 (create_exception_master_breakpoint): Update.
4054 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4055 * c-exp.y (classify_name): Update.
4056 * coffread.c (coff_symfile_read): Update.
4057 * common/agent.c (agent_look_up_symbols): Update.
4058 * d-lang.c (d_main_name): Update.
4059 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
4060 * dec-thread.c (enable_dec_thread): Update.
4061 * dwarf2loc.c (call_site_to_target_addr): Update.
4062 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
4063 * eval.c (evaluate_subexp_standard): Update.
4064 * findvar.c (struct minsym_lookup_data) <result>: Change type
4065 to bound_minimal_symbol.
4067 (minsym_lookup_iterator_cb, default_read_var_value): Update.
4068 * frame.c (inside_main_func): Update.
4069 * frv-tdep.c (frv_frame_this_id): Update.
4070 * gcore.c (call_target_sbrk): Update.
4071 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4072 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
4074 * go-lang.c (go_main_name): Update.
4075 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
4076 (hppa_hpux_find_import_stub_for_addr): Update.
4077 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
4078 Update. Change return type.
4079 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
4081 * jit.c (jit_breakpoint_re_set_internal): Update.
4082 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
4084 * linux-nat.c (get_signo): Update.
4085 * linux-thread-db.c (inferior_has_bug): Update
4086 * m32c-tdep.c (m32c_return_value)
4087 (m32c_m16c_address_to_pointer): Update.
4088 * m32r-tdep.c (m32r_frame_this_id): Update.
4089 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4090 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4091 * minsyms.c (lookup_minimal_symbol_internal): Rename to
4092 lookup_minimal_symbol. Change return type.
4093 (lookup_minimal_symbol): Remove.
4094 (lookup_bound_minimal_symbol): Update.
4095 (lookup_minimal_symbol_text): Change return type.
4096 (lookup_minimal_symbol_solib_trampoline): Change return type.
4097 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
4098 (lookup_minimal_symbol_solib_trampoline): Change return type.
4099 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4100 * objc-lang.c (lookup_objc_class, lookup_child_selector)
4101 (value_nsstring, find_imps): Update.
4102 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4103 * p-lang.c (pascal_main_name): Update.
4104 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
4105 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4106 * proc-service.c (ps_pglobal_lookup): Update.
4107 * ravenscar-thread.c (get_running_thread_msymbol): Change
4109 (has_ravenscar_runtime, get_running_thread_id): Update.
4110 * remote.c (remote_check_symbols): Update.
4111 * sol-thread.c (ps_pglobal_lookup): Update.
4112 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4113 * solib-dsbt.c (lm_base): Update.
4114 * solib-frv.c (lm_base, frv_relocate_section_addresses):
4116 * solib-irix.c (locate_base): Update.
4117 * solib-som.c (som_solib_create_inferior_hook)
4118 (som_solib_desire_dynamic_linker_symbols, link_map_start):
4120 * solib-spu.c (spu_enable_break): Update.
4121 * solib-svr4.c (elf_locate_base, enable_break): Update.
4122 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
4123 (flush_ea_cache): Update.
4124 * stabsread.c (define_symbol): Update.
4125 * symfile.c (simple_read_overlay_table): Update.
4126 * symtab.c (find_pc_sect_line): Update.
4127 * tracepoint.c (scope_info): Update.
4128 * tui-disasm.c (tui_get_begin_asm_address): Update.
4129 * value.c (value_static_field): Update.
4131 2014-02-26 Tom Tromey <tromey@redhat.com>
4133 * minsyms.c (prim_record_minimal_symbol_full): Use
4134 SET_MSYMBOL_VALUE_ADDRESS.
4135 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
4136 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
4137 SET_MSYMBOL_VALUE_ADDRESS.
4138 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
4139 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
4141 2014-02-26 Tom Tromey <tromey@redhat.com>
4143 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
4144 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
4145 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
4146 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
4147 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
4148 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
4149 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
4150 * ada-lang.c (ada_main_name): Update.
4151 (ada_lookup_simple_minsym): Update.
4152 (ada_make_symbol_completion_list): Update.
4153 (ada_add_standard_exceptions): Update.
4154 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
4155 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
4156 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
4157 * arm-tdep.c (skip_prologue_function): Update.
4158 (arm_skip_stack_protector, arm_skip_stub): Update.
4159 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
4160 (arm_wince_skip_main_prologue): Update.
4161 * auxv.c (ld_so_xfer_auxv): Update.
4162 * avr-tdep.c (avr_scan_prologue): Update.
4163 * ax-gdb.c (gen_var_ref): Update.
4164 * block.c (call_site_for_pc): Update.
4165 * blockframe.c (get_pc_function_start): Update.
4166 (find_pc_partial_function_gnu_ifunc): Update.
4167 * breakpoint.c (create_overlay_event_breakpoint): Update.
4168 (create_longjmp_master_breakpoint): Update.
4169 (create_std_terminate_master_breakpoint): Update.
4170 (create_exception_master_breakpoint): Update.
4171 (resolve_sal_pc): Update.
4172 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
4173 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
4175 * c-valprint.c (c_val_print): Update.
4176 * coff-pe-read.c (add_pe_forwarded_sym): Update.
4177 * coffread.c (coff_symfile_read): Update.
4178 * common/agent.c (agent_look_up_symbols): Update.
4179 * dbxread.c (find_stab_function_addr): Update.
4180 (end_psymtab): Update.
4181 * dwarf2loc.c (call_site_to_target_addr): Update.
4182 (func_verify_no_selftailcall): Update.
4183 (tailcall_dump): Update.
4184 (call_site_find_chain_1): Update.
4185 (dwarf_expr_reg_to_entry_parameter): Update.
4186 * elfread.c (elf_gnu_ifunc_record_cache): Update.
4187 (elf_gnu_ifunc_resolve_by_got): Update.
4188 * f-valprint.c (info_common_command): Update.
4189 * findvar.c (read_var_value): Update.
4190 * frame.c (get_prev_frame_1): Update.
4191 (inside_main_func): Update.
4192 * frv-tdep.c (frv_skip_main_prologue): Update.
4193 (frv_frame_this_id): Update.
4194 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
4195 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
4196 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
4197 (gnuv3_skip_trampoline): Update.
4198 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
4199 (hppa64_hpux_in_solib_call_trampoline): Update.
4200 (hppa_hpux_skip_trampoline_code): Update.
4201 (hppa64_hpux_search_dummy_call_sequence): Update.
4202 (hppa_hpux_find_import_stub_for_addr): Update.
4203 (hppa_hpux_find_dummy_bpaddr): Update.
4204 * hppa-tdep.c (hppa_symbol_address)
4205 (hppa_lookup_stub_minimal_symbol): Update.
4206 * i386-tdep.c (i386_skip_main_prologue): Update.
4207 (i386_pe_skip_trampoline_code): Update.
4208 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
4209 * infcall.c (get_function_name): Update.
4210 * infcmd.c (until_next_command): Update.
4211 * jit.c (jit_breakpoint_re_set_internal): Update.
4212 (jit_inferior_init): Update.
4213 * linespec.c (minsym_found): Update.
4214 (add_minsym): Update.
4215 * linux-fork.c (info_checkpoints_command): Update.
4216 * linux-nat.c (get_signo): Update.
4217 * linux-thread-db.c (inferior_has_bug): Update.
4218 * m32c-tdep.c (m32c_return_value): Update.
4219 (m32c_m16c_address_to_pointer): Update.
4220 (m32c_m16c_pointer_to_address): Update.
4221 * m32r-tdep.c (m32r_frame_this_id): Update.
4222 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
4223 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
4224 * maint.c (maintenance_translate_address): Update.
4225 * minsyms.c (add_minsym_to_hash_table): Update.
4226 (add_minsym_to_demangled_hash_table): Update.
4227 (msymbol_objfile): Update.
4228 (lookup_minimal_symbol): Update.
4229 (iterate_over_minimal_symbols): Update.
4230 (lookup_minimal_symbol_text): Update.
4231 (lookup_minimal_symbol_by_pc_name): Update.
4232 (lookup_minimal_symbol_solib_trampoline): Update.
4233 (lookup_minimal_symbol_by_pc_section_1): Update.
4234 (lookup_minimal_symbol_and_objfile): Update.
4235 (prim_record_minimal_symbol_full): Update.
4236 (compare_minimal_symbols): Update.
4237 (compact_minimal_symbols): Update.
4238 (build_minimal_symbol_hash_tables): Update.
4239 (install_minimal_symbols): Update.
4240 (terminate_minimal_symbol_table): Update.
4241 (find_solib_trampoline_target): Update.
4242 (minimal_symbol_upper_bound): Update.
4243 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
4244 * mips-tdep.c (mips_stub_frame_sniffer): Update.
4245 (mips_skip_pic_trampoline_code): Update.
4246 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
4247 * objc-lang.c (selectors_info): Update.
4248 (classes_info): Update.
4249 (find_methods): Update.
4250 (find_imps): Update.
4251 (find_objc_msgsend): Update.
4252 * objfiles.c (objfile_relocate1): Update.
4253 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
4254 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
4255 * p-valprint.c (pascal_val_print): Update.
4256 * parse.c (write_exp_msymbol): Update.
4257 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
4258 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
4259 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
4260 * printcmd.c (build_address_symbolic): Update.
4262 (address_info): Update.
4263 * proc-service.c (ps_pglobal_lookup): Update.
4264 * psymtab.c (find_pc_sect_psymtab_closer): Update.
4265 (find_pc_sect_psymtab): Update.
4266 * python/py-framefilter.c (py_print_frame): Update.
4267 * ravenscar-thread.c (get_running_thread_id): Update.
4268 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
4270 * remote.c (remote_check_symbols): Update.
4271 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
4272 (rs6000_skip_trampoline_code): Update.
4273 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
4274 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
4275 * solib-dsbt.c (lm_base): Update.
4276 * solib-frv.c (lm_base): Update.
4278 * solib-irix.c (locate_base): Update.
4279 * solib-som.c (som_solib_create_inferior_hook): Update.
4280 (som_solib_desire_dynamic_linker_symbols): Update.
4281 (link_map_start): Update.
4282 * solib-spu.c (spu_enable_break): Update.
4283 (ocl_enable_break): Update.
4284 * solib-svr4.c (elf_locate_base): Update.
4285 (enable_break): Update.
4286 * spu-tdep.c (spu_get_overlay_table): Update.
4287 (spu_catch_start): Update.
4288 (flush_ea_cache): Update.
4289 * stabsread.c (define_symbol): Update.
4290 (scan_file_globals): Update.
4291 * stack.c (find_frame_funname): Update.
4292 (frame_info): Update.
4293 * symfile.c (simple_read_overlay_table): Update.
4294 (simple_overlay_update): Update.
4295 * symmisc.c (dump_msymbols): Update.
4296 * symtab.c (fixup_section): Update.
4297 (find_pc_sect_line): Update.
4298 (skip_prologue_sal): Update.
4299 (search_symbols): Update.
4300 (print_msymbol_info): Update.
4301 (rbreak_command): Update.
4302 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
4303 (completion_list_objc_symbol): Update.
4304 (default_make_symbol_completion_list_break_on): Update.
4305 * tracepoint.c (scope_info): Update.
4306 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
4307 (tui_get_begin_asm_address): Update.
4308 * valops.c (find_function_in_inferior): Update.
4309 * value.c (value_static_field): Update.
4310 (value_fn_field): Update.
4312 2014-02-26 Tom Tromey <tromey@redhat.com>
4314 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
4315 bound minimal symbols. Move code that knows about minsym
4317 * minsyms.c (minimal_symbol_upper_bound): ... here. New
4319 * minsyms.h (minimal_symbol_upper_bound): Declare.
4320 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
4321 minimal_symbol_upper_bound.
4323 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4325 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
4326 Use the type's name if its basic type does not have a tag.
4328 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4330 * dwarf2read.c (read_subrange_type): Add comment.
4332 2014-02-27 Joel Brobecker <brobecker@adacore.com>
4334 * dwarf2read.c (update_enumeration_type_from_children): New
4335 function, mostly extracted from process_structure_scope.
4336 (read_enumeration_type): Call update_enumeration_type_from_children.
4337 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
4338 and flag_flag_enum fields.
4340 2014-02-26 Pedro Alves <palves@redhat.com>
4342 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
4343 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
4344 to_xfer_partial method.
4346 2014-02-26 Pedro Alves <palves@redhat.com>
4348 * target.c (complete_target_initialization): Don't install
4349 default_xfer_partial as to_xfer_partial hook.
4351 (update_current_target): Don't INHERIT nor de_fault
4352 deprecated_xfer_memory. Delete de_fault macro.
4353 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
4354 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
4355 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
4358 2014-02-26 Pedro Alves <palves@redhat.com>
4360 * go32-nat.c (my_write_child): New function.
4361 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
4362 (go32_xfer_partial): New function.
4363 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
4364 Instead install a to_xfer_partial hook.
4366 2014-02-26 Pedro Alves <palves@redhat.com>
4368 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
4369 to_xfer_partial helper. Rewrite.
4370 (procfs_xfer_partial): New function.
4371 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
4372 Install a to_xfer_partial hook.
4374 2014-02-26 Pedro Alves <palves@redhat.com>
4376 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
4377 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
4378 (m32r_xfer_partial): New function.
4379 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
4380 Install a to_xfer_partial hook.
4382 2014-02-26 Pedro Alves <palves@redhat.com>
4384 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
4386 (mips_xfer_partial): New function.
4387 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
4388 hook. Install a to_xfer_partial hook.
4390 2014-02-26 Joel Brobecker <brobecker@adacore.com>
4392 * gdbtypes.h (create_array_type_with_stride): Add declaration.
4393 * gdbtypes.c (create_array_type_with_stride): New function,
4394 renaming create_array_type, but with an added parameter
4395 called "bit_stride".
4396 (create_array_type): Re-implement using
4397 create_array_type_with_stride.
4398 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
4399 and DW_AT_bit_stride attributes.
4401 2014-02-26 Pedro Alves <palves@redhat.com>
4403 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
4404 task-specific breakpoints.
4406 2014-02-25 Pedro Alves <palves@redhat.com>
4408 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
4409 handling of object == TARGET_OBJECT_UNWIND_TABLE.
4411 2014-02-25 Stan Shebs <stan@codesourcery.com>
4413 * defs.h: Annotate comments for Doxygen.
4415 2014-02-25 Tom Tromey <tromey@redhat.com>
4417 * target.h (target_ignore): Don't declare.
4418 * target.c (target_ignore): Remove.
4420 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4423 * auto-load.c (auto_load_objfile_script_1): Change filename to
4426 2014-02-25 Joel Brobecker <brobecker@adacore.com>
4428 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
4429 documentation. Adjust prototype to match the target_ops
4430 to_xfer_partial method. Adjust implementation accordingly.
4432 2014-02-25 Hui Zhu <hui@codesourcery.com>
4434 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
4437 2014-02-25 Kevin Buettner <kevinb@redhat.com>
4439 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
4440 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
4441 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
4442 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
4443 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
4444 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
4445 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
4446 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
4448 (rl78_register_type): Use a data pointer type for SP and
4449 new pseudo registers mentioned above. Use a 16 bit integer
4450 type for all other register pairs.
4451 (rl78_register_name, rl78_g10_register_name): Update for
4452 new pseudo registers.
4453 (rl78_pseudo_register_read): Likewise.
4454 (rl78_pseudo_register_write): Likewise.
4455 (rl78_dwarf_reg_to_regnum): Return register numbers representing
4456 to the newly added pseudo registers.
4458 2014-02-24 Doug Evans <dje@google.com>
4460 * value.c (record_latest_value): Fix comment.
4461 * printcmd.c (print_command_1): Remove code to handle -1 return from
4462 record_latest_value.
4464 2014-02-24 Pedro Alves <palves@redhat.com>
4466 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
4467 deprecated_xfer_memory hook.
4468 (procfs_xfer_partial): Call procfs_xfer_memory instead
4469 of the deprecated_xfer_memory target hook.
4470 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
4473 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
4475 * windows-nat.c (windows_xfer_shared_libraries): Return
4476 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
4477 requested object is TARGET_OBJECT_LIBRARIES.
4479 2014-02-24 Yao Qi <yao@codesourcery.com>
4481 * target.h (enum target_xfer_status)
4482 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
4483 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
4485 * corefile.c (memory_error_message): User updated.
4486 * exec.c (section_table_read_available_memory): Likewise.
4487 * record-btrace.c (record_btrace_xfer_partial): Likewise.
4488 * target.c (target_xfer_status_to_string): Likewise.
4489 (raw_memory_xfer_partial): Likewise.
4490 (memory_xfer_partial_1, target_xfer_partial): Likewise.
4491 * valops.c (read_value_memory): Likewise.
4492 * exec.h: Update comments.
4494 2014-02-24 Yao Qi <yao@codesourcery.com>
4496 * target.c (target_xfer_status_to_string): Rename argument err
4498 * target.h (target_xfer_status_to_string): Update declaration.
4499 Replace target_xfer_error_to_string with
4500 target_xfer_status_to_string in comment.
4502 2014-02-24 Yao Qi <yao@codesourcery.com>
4504 * mips-linux-nat.c (super_close): Update its type.
4505 (mips_linux_close): Pass 'self' to super_close.
4507 2014-02-24 Yao Qi <yao@codesourcery.com>
4509 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
4510 * corefile.c (read_memory): Adjusted.
4511 * target.c (target_write_with_progress): Adjusted.
4513 2014-02-23 Yao Qi <yao@codesourcery.com>
4517 2013-10-25 Yao Qi <yao@codesourcery.com>
4519 * remote.c (remote_traceframe_info): Return early if
4520 traceframe is not selected.
4522 2013-07-19 Yao Qi <yao@codesourcery.com>
4524 * target.c (update_current_target): Change the default action
4525 of 'to_traceframe_info' from tcomplain to return_zero.
4526 * target.h (struct target_ops) <to_traceframe_info>: Add more
4529 2014-02-23 Yao Qi <yao@codesourcery.com>
4531 * valops.c (read_value_memory): Rewrite it. Call
4532 target_xfer_partial in a loop.
4533 * exec.h (section_table_available_memory): Remove declaration.
4534 Move comments to ...
4535 * exec.c (section_table_available_memory): ... here. Make it
4538 2014-02-23 Yao Qi <yao@codesourcery.com>
4540 * exec.c (section_table_read_available_memory): New function.
4541 * exec.h (section_table_read_available_memory): Declare.
4542 * ctf.c (ctf_xfer_partial): Call
4543 section_table_read_available_memory.
4544 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4546 2014-02-23 Yao Qi <yao@codesourcery.com>
4548 * ctf.c (ctf_xfer_partial): Move code to ...
4549 * exec.c (exec_read_partial_read_only): ... it. New function.
4550 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4551 * tracefile.c: Include "exec.h".
4552 * exec.h (exec_read_partial_read_only): Declare.
4554 2014-02-23 Yao Qi <yao@codesourcery.com>
4556 * tracefile-tfile.c (tfile_has_all_memory): Remove.
4557 (tfile_has_memory): Remove.
4558 (init_tfile_ops): Don't set fields to_has_all_memory and
4559 to_has_memory of tfile_ops.
4560 * tracefile.c (tracefile_has_all_memory): New function.
4561 (tracefile_has_memory): New function.
4562 (init_tracefile_ops): Initialize fields to_has_all_memory and
4563 to_has_memory of 'ops'.
4565 2014-02-23 Yao Qi <yao@codesourcery.com>
4567 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
4568 (ctf_thread_alive, ctf_get_trace_status): Remove.
4569 (init_ctf_ops): Don't set some fields of ctf_ops. Call
4571 * tracefile-tfile.c (tfile_get_trace_status): Remove.
4572 (tfile_has_stack, tfile_has_registers): Remove.
4573 (tfile_thread_alive): Remove.
4574 (init_tfile_ops): Don't set some fields of tfile_ops. Call
4576 * tracefile.c (tracefile_has_stack): New function.
4577 (tracefile_has_registers): New function.
4578 (tracefile_thread_alive): New function.
4579 (tracefile_get_trace_status): New function.
4580 (init_tracefile_ops): New function.
4581 * tracefile.h (init_tracefile_ops): Declare.
4583 2014-02-23 Yao Qi <yao@codesourcery.com>
4585 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
4586 (O_LARGEFILE): Likewise.
4587 (tfile_ops): Likewise.
4588 (TRACE_HEADER_SIZE): Likewise.
4589 (trace_fd, trace_frames_offset, cur_offset): Likewise.
4590 (cur_data_size): Likewise.
4591 (tfile_read, tfile_open, tfile_interp_line): Likewise.
4592 (tfile_close, tfile_files_info): Likewise.
4593 (tfile_get_trace_status): Likewise.
4594 (tfile_get_tracepoint_status): Likewise.
4595 (tfile_get_traceframe_address): Likewise.
4596 (tfile_trace_find, match_blocktype): Likewise.
4597 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
4598 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
4599 (tfile_get_trace_state_variable_value): Likewise.
4600 (tfile_has_all_memory, tfile_has_memory): Likewise.
4601 (tfile_has_stack, tfile_has_registers): Likewise.
4602 (tfile_thread_alive, build_traceframe_info): Likewise.
4603 (tfile_traceframe_info, init_tfile_ops): Likewise.
4604 (_initialize_tracepoint): Don't call init_tfile_ops
4605 and add_target_with_completer.
4606 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
4607 exec.h, completer.h and filenames.h.
4608 (_initialize_tracefile_tfile): New function.
4610 2014-02-23 Yao Qi <yao@codesourcery.com>
4612 * Makefile.in (REMOTE_OBS): Append tracefile.o and
4614 (HFILES_NO_SRCDIR): Add tracefile.h.
4615 * ctf.c: Include "tracefile.h".
4616 * tracefile.h: New file.
4617 * tracefile.c: New file
4618 * tracefile-tfile.c: New file.
4619 * tracepoint.c: Include "tracefile.h".
4620 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
4621 (stop_reason_names): Add const.
4622 (trace_file_writer_xfree): Move it to tracefile.c.
4623 (trace_save, trace_save_command, trace_save_tfile): Likewise.
4624 (trace_save_ctf): Likewise.
4625 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
4626 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
4627 (tfile_write_header, tfile_write_regblock_type): Likewise.
4628 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
4629 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
4630 (tfile_write_raw_data, tfile_end): Likewise.
4631 (tfile_trace_file_writer_new): Likewise.
4632 (free_uploaded_tp): Make it extern.
4633 (free_uploaded_tsv): Make it extern.
4634 (_initialize_tracepoint): Move code to register command 'tsave'
4636 * tracepoint.h (stop_reason_names): Declare.
4637 (struct trace_frame_write_ops): Move it to tracefile.h.
4638 (struct trace_file_write_ops): Likewise.
4639 (struct trace_file_writer): Likewise.
4640 (free_uploaded_tsvs, free_uploaded_tps): Declare.
4642 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
4645 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
4647 (get_cores_used_by_process): New parameter num_cores, use it.
4648 (linux_xfer_osdata_processes): Pass num_cores to it.
4649 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
4652 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
4654 * target.c (memory_xfer_partial): Fix length arg in call to
4655 breakpoint_xfer_memory.
4657 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
4660 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
4661 number comes after the + or - signs. Adjust length of register
4662 name to be extracted.
4664 2014-02-20 Tom Tromey <tromey@redhat.com>
4666 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
4667 (ada_varobj_ops): Mark "extern".
4669 2014-02-20 Tom Tromey <tromey@redhat.com>
4671 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
4673 2014-02-20 Doug Evans <xdje42@gmail.com>
4675 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
4676 All callers updated.
4677 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
4678 All callers updated.
4679 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
4680 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
4682 2014-02-20 lin zuojian <manjian2006@gmail.com>
4683 Joel Brobecker <brobecker@adacore.com>
4684 Doug Evans <xdje42@gmail.com>
4687 * dwarf2read.c (struct die_info): New member in_process.
4688 (reset_die_in_process): New function.
4689 (process_die): Set it at the start, reset when returning.
4690 (inherit_abstract_dies): Only call process_die if origin_child_die
4691 not already being processed.
4693 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4695 * windows-nat.c (handle_unload_dll): Add function documentation.
4696 (do_initial_windows_stuff): Add comment explaining why we wait
4697 until after inferior initialization has finished before
4698 processing all DLLs.
4700 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4702 * windows-nat.c (get_module_name): Delete.
4703 (windows_get_exec_module_filename): New function, mostly
4704 inspired from get_module_name.
4705 (windows_pid_to_exec_file): Replace call to get_module_name
4706 by call to windows_get_exec_module_filename.
4708 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4710 * windows-nat.c (handle_load_dll): Rewrite this function's
4711 introductory comment. Remove code using get_module_name
4712 to get the DLL's name.
4714 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4716 * windows-nat.c (get_windows_debug_event): Ignore
4717 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
4718 if windows_initialization_done == 0.
4719 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
4720 Adjust implementation to always load all DLLs.
4721 (do_initial_windows_stuff): Replace call to
4722 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
4724 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4726 * windows-nat.c (_initialize_windows_nat): Deprecate the
4727 "dll-symbols" command. Turn the "add-shared-symbol-files"
4728 and "assf" aliases into commands, and deprecate them as well.
4729 * NEWS: Add entry explaining that "dll-symbols" and its two
4730 aliases are now deprecated.
4732 2014-02-20 Joel Brobecker <brobecker@adacore.com>
4734 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
4735 new-line in debug string. Remove trailing spaces.
4737 2014-02-19 Stan Shebs <stan@codesourcery.com>
4739 * darwin-nat.c (darwin_xfer_partial): Fix return type.
4741 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
4743 * NEWS: Add entry for the new feature
4744 * python/py-value.c (valpy_binop): Call value_x_binop for struct
4747 2014-02-19 Stan Shebs <stan@codesourcery.com>
4749 * MAINTAINERS: List Yao Qi as nios2 maintainer.
4751 2014-02-19 Pedro Alves <palves@redhat.com>
4753 * common/ptid.h (struct ptid): Mention that process_stratum
4754 targets should prefer ptid.lwp.
4756 2014-02-19 Pedro Alves <palves@redhat.com>
4758 * remote.c (remote_thread_alive, write_ptid, read_ptid)
4759 (read_ptid, remote_newthread_step, remote_threads_extra_info)
4760 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
4761 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
4762 store remote thread ids rather than ptid.tid.
4763 (_initialize_remote): Adjust.
4765 2014-02-19 Tom Tromey <tromey@redhat.com>
4767 * target.c (target_get_unwinder): Rewrite.
4768 (target_get_tailcall_unwinder): Rewrite.
4769 * record-btrace.c (record_btrace_to_get_unwinder): New function.
4770 (record_btrace_to_get_tailcall_unwinder): New function.
4771 (init_record_btrace_ops): Update.
4772 * target.h (struct target_ops) <to_get_unwinder,
4773 to_get_tailcall_unwinder>: Now function pointers. Use
4774 TARGET_DEFAULT_RETURN.
4776 2014-02-19 Tom Tromey <tromey@redhat.com>
4778 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
4780 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
4782 2014-02-19 Tom Tromey <tromey@redhat.com>
4784 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
4786 * target-delegates.c: Rebuild.
4787 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
4788 TARGET_DEFAULT_FUNC.
4789 * target.c (default_target_decr_pc_after_break): Rename from
4790 forward_target_decr_pc_after_break. Simplify.
4791 (target_decr_pc_after_break): Rely on delegation.
4793 2014-02-19 Tom Tromey <tromey@redhat.com>
4795 * target.c (update_current_target): Do not INHERIT to_doc or
4796 to_magic. Do not de_fault to_open or to_close.
4798 2014-02-19 Tom Tromey <tromey@redhat.com>
4800 * gcore.h (objfile_find_memory_regions): Declare.
4801 * gcore.c (objfile_find_memory_regions): No longer static. Add
4803 (_initialize_gcore): Don't call exec_set_find_memory_regions.
4804 * exec.c: Include gcore.h.
4805 (exec_set_find_memory_regions): Remove.
4806 (exec_find_memory_regions): Remove.
4807 (exec_do_find_memory_regions): Remove.
4808 (init_exec_ops): Update.
4809 * defs.h (exec_set_find_memory_regions): Remove.
4811 2014-02-19 Tom Tromey <tromey@redhat.com>
4813 * target-delegates.c: Rebuild.
4814 * target.h (struct target_ops) <to_extra_thread_info,
4815 to_thread_name, to_pid_to_exec_file, to_get_section_table,
4816 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
4817 not 0, in TARGET_DEFAULT_RETURN.
4819 2014-02-19 Tom Tromey <tromey@redhat.com>
4821 * target.c (complete_target_initialization): Remove casts. Use
4822 return_zero_has_execution.
4823 (return_zero): Add "ignore" argument.
4824 (return_zero_has_execution): New function.
4825 (init_dummy_target): Remove casts. Use
4826 return_zero_has_execution.
4828 2014-02-19 Tom Tromey <tromey@redhat.com>
4830 * target.c (update_current_target): Update comments. Do not
4833 2014-02-19 Tom Tromey <tromey@redhat.com>
4835 * arm-linux-nat.c (arm_linux_read_description): Delegate when
4837 * corelow.c (core_read_description): Delegate when needed.
4838 * remote.c (remote_read_description): Delegate when needed.
4839 * target-delegates.c: Rebuild.
4840 * target.c (target_read_description): Rewrite.
4841 * target.h (struct target_ops) <to_read_description>: Update
4842 comment. Use TARGET_DEFAULT_RETURN.
4844 2014-02-19 Tom Tromey <tromey@redhat.com>
4846 * target-delegates.c: Rebuild.
4847 * target.c (update_current_target): Don't inherit or default
4849 (find_default_run_target): Check against delegate_can_run.
4850 * target.h (struct target_ops) <to_can_run>: Use
4851 TARGET_DEFAULT_RETURN.
4853 2014-02-19 Tom Tromey <tromey@redhat.com>
4855 * target-delegates.c: Rebuild.
4856 * target.c (target_disconnect): Unconditionally delegate.
4857 * target.h (struct target_ops) <to_disconnect>: Use
4858 TARGET_DEFAULT_NORETURN.
4860 2014-02-19 Tom Tromey <tromey@redhat.com>
4862 * record.c (record_stop): Unconditionally delegate.
4863 * target-delegates.c: Rebuild.
4864 * target.c (target_stop_recording): Unconditionally delegate.
4865 * target.h (struct target_ops) <to_stop_recording>: Use
4866 TARGET_DEFAULT_IGNORE.
4868 2014-02-19 Tom Tromey <tromey@redhat.com>
4870 * target-delegates.c: Rebuild.
4871 * target.c (target_enable_btrace): Unconditionally delegate.
4872 * target.h (struct target_ops) <to_enable_btrace>: Use
4873 TARGET_DEFAULT_NORETURN.
4875 2014-02-19 Tom Tromey <tromey@redhat.com>
4877 * target-delegates.c: Rebuild.
4878 * target.c (target_read_btrace): Unconditionally delegate.
4879 * target.h (struct target_ops) <to_read_btrace>: Use
4880 TARGET_DEFAULT_NORETURN.
4882 2014-02-19 Tom Tromey <tromey@redhat.com>
4884 * target-delegates.c: Rebuild.
4885 * target.c (target_teardown_btrace): Unconditionally delegate.
4886 * target.h (struct target_ops) <to_teardown_btrace>: Use
4887 TARGET_DEFAULT_NORETURN.
4889 2014-02-19 Tom Tromey <tromey@redhat.com>
4891 * target-delegates.c: Rebuild.
4892 * target.c (target_disable_btrace): Unconditionally delegate.
4893 * target.h (struct target_ops) <to_disable_btrace>: Use
4894 TARGET_DEFAULT_NORETURN.
4896 2014-02-19 Tom Tromey <tromey@redhat.com>
4898 * target-delegates.c: Rebuild.
4899 * target.c (default_search_memory): New function.
4900 (simple_search_memory): Update comment.
4901 (target_search_memory): Unconditionally delegate.
4902 * target.h (struct target_ops) <to_search_memory>: Use
4903 TARGET_DEFAULT_FUNC.
4905 2014-02-19 Tom Tromey <tromey@redhat.com>
4907 * auxv.c (default_auxv_parse): No longer static.
4908 (target_auxv_parse): Unconditionally delegate.
4909 * auxv.h (default_auxv_parse): Declare.
4910 * target-delegates.c: Rebuild.
4911 * target.c: Include auxv.h.
4912 * target.h (struct target_ops) <to_auxv_parse>: Use
4913 TARGET_DEFAULT_FUNC.
4915 2014-02-19 Tom Tromey <tromey@redhat.com>
4917 * target-delegates.c: Rebuild.
4918 * target.c (target_memory_map): Unconditionally delegate.
4919 * target.h (struct target_ops) <to_memory_map>: Use
4920 TARGET_DEFAULT_RETURN.
4922 2014-02-19 Tom Tromey <tromey@redhat.com>
4924 * target-delegates.c: Rebuild.
4925 * target.c (target_thread_alive): Unconditionally delegate.
4926 * target.h (struct target_ops) <to_thread_alive>: Use
4927 TARGET_DEFAULT_RETURN.
4929 2014-02-19 Tom Tromey <tromey@redhat.com>
4931 * target-delegates.c: Rebuild.
4932 * target.c (target_save_record): Unconditionally delegate.
4933 * target.h (struct target_ops) <to_save_record>: Use
4934 TARGET_DEFAULT_NORETURN.
4936 2014-02-19 Tom Tromey <tromey@redhat.com>
4938 * target-delegates.c: Rebuild.
4939 * target.c (target_delete_record): Unconditionally delegate.
4940 * target.h (struct target_ops) <to_delete_record>: Use
4941 TARGET_DEFAULT_NORETURN.
4943 2014-02-19 Tom Tromey <tromey@redhat.com>
4945 * target-delegates.c: Rebuild.
4946 * target.c (target_record_is_replaying): Unconditionally
4948 * target.h (struct target_ops) <to_record_is_replaying>: Use
4949 TARGET_DEFAULT_RETURN.
4951 2014-02-19 Tom Tromey <tromey@redhat.com>
4953 * target-delegates.c: Rebuild.
4954 * target.c (target_goto_record_begin): Unconditionally delegate.
4955 * target.h (struct target_ops) <to_goto_record_begin>: Use
4956 TARGET_DEFAULT_NORETURN.
4958 2014-02-19 Tom Tromey <tromey@redhat.com>
4960 * target-delegates.c: Rebuild.
4961 * target.c (target_goto_record_end): Unconditionally delegate.
4962 * target.h (struct target_ops) <to_goto_record_end>: Use
4963 TARGET_DEFAULT_NORETURN.
4965 2014-02-19 Tom Tromey <tromey@redhat.com>
4967 * target-delegates.c: Rebuild.
4968 * target.c (target_goto_record): Unconditionally delegate.
4969 * target.h (struct target_ops) <to_goto_record>: Use
4970 TARGET_DEFAULT_NORETURN.
4972 2014-02-19 Tom Tromey <tromey@redhat.com>
4974 * target-delegates.c: Rebuild.
4975 * target.c (target_insn_history): Unconditionally delegate.
4976 * target.h (struct target_ops) <to_insn_history>: Use
4977 TARGET_DEFAULT_NORETURN.
4979 2014-02-19 Tom Tromey <tromey@redhat.com>
4981 * target-delegates.c: Rebuild.
4982 * target.c (target_insn_history_from): Unconditionally delegate.
4983 * target.h (struct target_ops) <to_insn_history_from>: Use
4984 TARGET_DEFAULT_NORETURN.
4986 2014-02-19 Tom Tromey <tromey@redhat.com>
4988 * target-delegates.c: Rebuild.
4989 * target.c (target_insn_history_range): Unconditionally delegate.
4990 * target.h (struct target_ops) <to_insn_history_range>: Use
4991 TARGET_DEFAULT_NORETURN.
4993 2014-02-19 Tom Tromey <tromey@redhat.com>
4995 * target-delegates.c: Rebuild.
4996 * target.c (target_call_history): Unconditionally delegate.
4997 * target.h (struct target_ops) <to_call_history>: Use
4998 TARGET_DEFAULT_NORETURN.
5000 2014-02-19 Tom Tromey <tromey@redhat.com>
5002 * target-delegates.c: Rebuild.
5003 * target.c (target_call_history_from): Unconditionally delegate.
5004 * target.h (struct target_ops) <to_call_history_from>: Use
5005 TARGET_DEFAULT_NORETURN.
5007 2014-02-19 Tom Tromey <tromey@redhat.com>
5009 * target-delegates.c: Rebuild.
5010 * target.c (target_call_history_range): Unconditionally delegate.
5011 * target.h (struct target_ops) <to_call_history_range>: Use
5012 TARGET_DEFAULT_NORETURN.
5014 2014-02-19 Tom Tromey <tromey@redhat.com>
5016 * target-delegates.c: Rebuild.
5017 * target.c (target_verify_memory): Unconditionally delegate.
5018 * target.h (struct target_ops) <to_verify_memory>: Use
5019 TARGET_DEFAULT_NORETURN.
5021 2014-02-19 Tom Tromey <tromey@redhat.com>
5023 * target-delegates.c: Rebuild.
5024 * target.c (target_core_of_thread): Unconditionally delegate.
5025 * target.h (struct target_ops) <to_core_of_thread>: Use
5026 TARGET_DEFAULT_RETURN.
5028 2014-02-19 Tom Tromey <tromey@redhat.com>
5030 * target-delegates.c: Rebuild.
5031 * target.c (target_flash_done): Unconditionally delegate.
5032 * target.h (struct target_ops) <to_flash_done>: Use
5033 TARGET_DEFAULT_NORETURN.
5035 2014-02-19 Tom Tromey <tromey@redhat.com>
5037 * target-delegates.c: Rebuild.
5038 * target.c (target_flash_erase): Unconditionally delegate.
5039 * target.h (struct target_ops) <to_flash_erase>: Use
5040 TARGET_DEFAULT_NORETURN.
5042 2014-02-19 Tom Tromey <tromey@redhat.com>
5044 * target-delegates.c: Rebuild.
5045 * target.c (target_get_section_table): Unconditionally delegate.
5046 * target.h (struct target_ops) <to_get_section_table>: Use
5047 TARGET_DEFAULT_RETURN.
5049 2014-02-19 Tom Tromey <tromey@redhat.com>
5051 * target-delegates.c: Rebuild.
5052 * target.c (target_pid_to_str): Unconditionally delegate.
5053 (init_dummy_target): Don't initialize to_pid_to_str.
5054 (default_pid_to_str): Rename from dummy_pid_to_str.
5055 * target.h (struct target_ops) <to_pid_to_str>: Use
5056 TARGET_DEFAULT_FUNC.
5058 2014-02-19 Tom Tromey <tromey@redhat.com>
5060 * target-delegates.c: Rebuild.
5061 * target.c (target_find_new_threads): Unconditionally delegate.
5062 * target.h (struct target_ops) <to_find_new_threads>: Use
5063 TARGET_DEFAULT_RETURN.
5065 2014-02-19 Tom Tromey <tromey@redhat.com>
5067 * target-delegates.c: Rebuild.
5068 * target.c (target_program_signals): Unconditionally delegate.
5069 * target.h (struct target_ops) <to_program_signals>: Use
5070 TARGET_DEFAULT_IGNORE.
5072 2014-02-19 Tom Tromey <tromey@redhat.com>
5074 * target-delegates.c: Rebuild.
5075 * target.c (target_pass_signals): Unconditionally delegate.
5076 * target.h (struct target_ops) <to_pass_signals>: Use
5077 TARGET_DEFAULT_IGNORE.
5079 2014-02-19 Tom Tromey <tromey@redhat.com>
5081 * target-delegates.c: Rebuild.
5082 * target.c (default_mourn_inferior): New function.
5083 (target_mourn_inferior): Unconditionally delegate.
5084 * target.h (struct target_ops) <to_mourn_inferior>: Use
5085 TARGET_DEFAULT_FUNC.
5087 2014-02-19 Tom Tromey <tromey@redhat.com>
5089 * target-delegates.c: Rebuild.
5090 * target.c (default_follow_fork): New function.
5091 (target_follow_fork): Unconditionally delegate.
5092 * target.h (struct target_ops) <to_follow_fork>: Use
5093 TARGET_DEFAULT_FUNC.
5095 2014-02-19 Tom Tromey <tromey@redhat.com>
5097 * target-delegates.c: Rebuild.
5098 * target.c (target_kill): Unconditionally delegate.
5099 * target.h (struct target_ops) <to_kill>: Use
5100 TARGET_DEFAULT_NORETURN.
5102 2014-02-19 Tom Tromey <tromey@redhat.com>
5104 * target-delegates.c: Rebuild.
5105 * target.c (target_masked_watch_num_registers): Unconditionally
5107 * target.h (struct target_ops) <to_masked_watch_num_registers>:
5108 Use TARGET_DEFAULT_RETURN.
5110 2014-02-19 Tom Tromey <tromey@redhat.com>
5112 * target-delegates.c: Rebuild.
5113 * target.c (target_remove_mask_watchpoint): Unconditionally
5115 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
5116 TARGET_DEFAULT_RETURN.
5118 2014-02-19 Tom Tromey <tromey@redhat.com>
5120 * target-delegates.c: Rebuild.
5121 * target.c (target_insert_mask_watchpoint): Unconditionally
5123 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
5124 TARGET_DEFAULT_RETURN.
5126 2014-02-19 Tom Tromey <tromey@redhat.com>
5128 * target-delegates.c: Rebuild.
5129 * target.c (target_ranged_break_num_registers): Unconditionally
5131 * target.h (struct target_ops) <to_ranged_break_num_registers>:
5132 Use TARGET_DEFAULT_RETURN.
5134 2014-02-19 Tom Tromey <tromey@redhat.com>
5136 * target-delegates.c: Rebuild.
5137 * target.c (target_fetch_registers): Unconditionally delegate.
5138 * target.h (struct target_ops) <to_fetch_registers>: Use
5139 TARGET_DEFAULT_NORETURN.
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
5146 * target.h (struct target_ops) <to_stop>: Use
5147 TARGET_DEFAULT_IGNORE.
5149 2014-02-19 Tom Tromey <tromey@redhat.com>
5151 * target-delegates.c: Rebuild.
5152 * target.c (update_current_target): Don't inherit or default
5153 to_can_run_breakpoint_commands.
5154 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
5155 Use TARGET_DEFAULT_RETURN.
5157 2014-02-19 Tom Tromey <tromey@redhat.com>
5159 * target-delegates.c: Rebuild.
5160 * target.c (update_current_target): Don't inherit or default
5161 to_supports_evaluation_of_breakpoint_conditions.
5162 * target.h (struct target_ops)
5163 <to_supports_evaluation_of_breakpoint_conditions>: Use
5164 TARGET_DEFAULT_RETURN.
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_augmented_libraries_svr4_read.
5171 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5172 Use TARGET_DEFAULT_RETURN.
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
5179 * target.h (struct target_ops) <to_can_use_agent>: Use
5180 TARGET_DEFAULT_RETURN.
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
5187 * target.h (struct target_ops) <to_use_agent>: Use
5188 TARGET_DEFAULT_NORETURN.
5190 2014-02-19 Tom Tromey <tromey@redhat.com>
5192 * target-delegates.c: Rebuild.
5193 * target.c (update_current_target): Don't inherit or default
5195 (return_null): Remove.
5196 * target.h (struct target_ops) <to_traceframe_info>: Use
5197 TARGET_DEFAULT_RETURN.
5199 2014-02-19 Tom Tromey <tromey@redhat.com>
5201 * target-delegates.c: Rebuild.
5202 * target.c (update_current_target): Don't inherit or default
5203 to_static_tracepoint_markers_by_strid.
5204 * target.h (struct target_ops)
5205 <to_static_tracepoint_markers_by_strid>: Use
5206 TARGET_DEFAULT_NORETURN.
5208 2014-02-19 Tom Tromey <tromey@redhat.com>
5210 * target-delegates.c: Rebuild.
5211 * target.c (update_current_target): Don't inherit or default
5212 to_static_tracepoint_marker_at.
5213 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5214 Use TARGET_DEFAULT_RETURN.
5216 2014-02-19 Tom Tromey <tromey@redhat.com>
5218 * target-delegates.c: Rebuild.
5219 * target.c (update_current_target): Don't inherit or default
5221 * target.h (struct target_ops) <to_set_permissions>: Use
5222 TARGET_DEFAULT_IGNORE.
5224 2014-02-19 Tom Tromey <tromey@redhat.com>
5226 * target-delegates.c: Rebuild.
5227 * target.c (update_current_target): Don't inherit or default
5229 * target.h (struct target_ops) <to_get_tib_address>: Use
5230 TARGET_DEFAULT_NORETURN.
5232 2014-02-19 Tom Tromey <tromey@redhat.com>
5234 * target-delegates.c: Rebuild.
5235 * target.c (update_current_target): Don't inherit or default
5237 * target.h (struct target_ops) <to_set_trace_notes>: Use
5238 TARGET_DEFAULT_RETURN.
5240 2014-02-19 Tom Tromey <tromey@redhat.com>
5242 * target-delegates.c: Rebuild.
5243 * target.c (update_current_target): Don't initialize
5244 to_set_trace_buffer_size.
5245 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
5246 TARGET_DEFAULT_IGNORE.
5248 2014-02-19 Tom Tromey <tromey@redhat.com>
5250 * target-delegates.c: Rebuild.
5251 * target.c (update_current_target): Don't inherit or default
5252 to_set_circular_trace_buffer.
5253 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
5254 TARGET_DEFAULT_IGNORE.
5256 2014-02-19 Tom Tromey <tromey@redhat.com>
5258 * target-delegates.c: Rebuild.
5259 * target.c (update_current_target): Don't inherit or default
5260 to_set_disconnected_tracing.
5261 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
5262 TARGET_DEFAULT_IGNORE.
5264 2014-02-19 Tom Tromey <tromey@redhat.com>
5266 * target-delegates.c: Rebuild.
5267 * target.c (update_current_target): Don't inherit or default
5268 to_get_min_fast_tracepoint_insn_len.
5269 (return_minus_one): Remove.
5270 * target.h (struct target_ops)
5271 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
5273 2014-02-19 Tom Tromey <tromey@redhat.com>
5275 * target-delegates.c: Rebuild.
5276 * target.c (update_current_target): Don't inherit or default
5277 to_get_raw_trace_data.
5278 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
5279 TARGET_DEFAULT_NORETURN.
5281 2014-02-19 Tom Tromey <tromey@redhat.com>
5283 * target-delegates.c: Rebuild.
5284 * target.c (update_current_target): Don't inherit or default
5285 to_upload_trace_state_variables.
5286 * target.h (struct target_ops) <to_upload_trace_state_variables>:
5287 Use TARGET_DEFAULT_RETURN.
5289 2014-02-19 Tom Tromey <tromey@redhat.com>
5291 * target-delegates.c: Rebuild.
5292 * target.c (update_current_target): Don't inherit or default
5293 to_upload_tracepoints.
5294 * target.h (struct target_ops) <to_upload_tracepoints>: Use
5295 TARGET_DEFAULT_RETURN.
5297 2014-02-19 Tom Tromey <tromey@redhat.com>
5299 * target-delegates.c: Rebuild.
5300 * target.c (update_current_target): Don't inherit or default
5302 * target.h (struct target_ops) <to_save_trace_data>: Use
5303 TARGET_DEFAULT_NORETURN.
5305 2014-02-19 Tom Tromey <tromey@redhat.com>
5307 * target-delegates.c: Rebuild.
5308 * target.c (update_current_target): Don't inherit or default
5309 to_get_trace_state_variable_value.
5310 * target.h (struct target_ops)
5311 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
5313 2014-02-19 Tom Tromey <tromey@redhat.com>
5315 * target-delegates.c: Rebuild.
5316 * target.c (update_current_target): Don't inherit or default
5318 * target.h (struct target_ops): Use 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
5325 * target.h (struct target_ops) <to_trace_stop>: Use
5326 TARGET_DEFAULT_NORETURN.
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_get_tracepoint_status.
5333 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
5334 TARGET_DEFAULT_NORETURN.
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
5340 to_get_trace_status.
5341 * target.h (struct target_ops) <to_get_trace_status>: Use
5342 TARGET_DEFAULT_RETURN.
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_trace_start>: Use
5350 TARGET_DEFAULT_NORETURN.
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_trace_set_readonly_regions.
5357 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
5358 Use TARGET_DEFAULT_NORETURN.
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
5364 to_disable_tracepoint.
5365 * target.h (struct target_ops) <to_disable_tracepoint>: Use
5366 TARGET_DEFAULT_NORETURN.
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_enable_tracepoint.
5373 * target.h (struct target_ops) <to_enable_tracepoint>: Use
5374 TARGET_DEFAULT_NORETURN.
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_download_trace_state_variable.
5381 * target.h (struct target_ops) <to_download_trace_state_variable>:
5382 Use TARGET_DEFAULT_NORETURN.
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
5388 to_can_download_tracepoint.
5389 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
5390 TARGET_DEFAULT_RETURN.
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_download_tracepoint.
5397 * target.h (struct target_ops) <to_download_tracepoint>: Use
5398 TARGET_DEFAULT_NORETURN.
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
5405 * target.h (struct target_ops) <to_trace_init>: Use
5406 TARGET_DEFAULT_RETURN.
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_supports_string_tracing.
5413 * target.h (struct target_ops) <to_supports_string_tracing>: Use
5414 TARGET_DEFAULT_RETURN.
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_supports_enable_disable_tracepoint.
5421 * target.h (struct target_ops)
5422 <to_supports_enable_disable_tracepoint>: Use
5423 TARGET_DEFAULT_RETURN.
5425 2014-02-19 Tom Tromey <tromey@redhat.com>
5427 * target-delegates.c: Rebuild.
5428 * target.c (update_current_target): Don't inherit or default
5429 to_supports_multi_process.
5430 * target.h (struct target_ops) <to_supports_multi_process>: Use
5431 TARGET_DEFAULT_RETURN.
5433 2014-02-19 Tom Tromey <tromey@redhat.com>
5435 * target-delegates.c: Rebuild.
5436 * target.c (update_current_target): Don't inherit or default
5437 to_get_ada_task_ptid.
5438 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
5439 TARGET_DEFAULT_FUNC.
5441 2014-02-19 Tom Tromey <tromey@redhat.com>
5443 * target-delegates.c: Rebuild.
5444 * target.c (update_current_target): Don't inherit or default
5445 to_thread_architecture.
5446 * target.h (struct target_ops) <to_thread_architecture>: Use
5447 TARGET_DEFAULT_FUNC.
5449 2014-02-19 Tom Tromey <tromey@redhat.com>
5451 * target-delegates.c: Rebuild.
5452 * target.c (update_current_target): Don't inherit or default
5453 to_execution_direction.
5454 * target.h (struct target_ops) <to_execution_direction>: Use
5455 TARGET_DEFAULT_FUNC.
5457 2014-02-19 Tom Tromey <tromey@redhat.com>
5459 * target-delegates.c: Rebuild.
5460 * target.c (update_current_target): Don't inherit or default
5461 to_can_execute_reverse.
5462 * target.h (struct target_ops) <to_can_execute_reverse>: Use
5463 TARGET_DEFAULT_RETURN.
5464 (target_can_execute_reverse): Unconditionally delegate.
5466 2014-02-19 Tom Tromey <tromey@redhat.com>
5468 * target-delegates.c: Rebuild.
5469 * target.c (update_current_target): Don't inherit or default
5471 (dummy_goto_bookmark): Remove.
5472 (init_dummy_target): Don't inherit or default to_goto_bookmark.
5473 * target.h (struct target_ops) <to_goto_bookmark>: Use
5474 TARGET_DEFAULT_NORETURN.
5476 2014-02-19 Tom Tromey <tromey@redhat.com>
5478 * target-delegates.c: Rebuild.
5479 * target.c (update_current_target): Don't inherit or default
5481 (dummy_get_bookmark): Remove.
5482 (init_dummy_target): Don't inherit or default to_get_bookmark.
5483 * target.h (struct target_ops) <to_get_bookmark>: Use
5484 TARGET_DEFAULT_NORETURN
5486 2014-02-19 Tom Tromey <tromey@redhat.com>
5488 * target-delegates.c: Rebuild.
5489 * target.c (update_current_target): Don't inherit or default
5490 to_make_corefile_notes.
5491 (init_dummy_target): Don't initialize to_make_corefile_notes.
5492 * target.h (struct target_ops) <to_make_corefile_notes>: Use
5493 TARGET_DEFAULT_FUNC.
5495 2014-02-19 Tom Tromey <tromey@redhat.com>
5497 * target-delegates.c: Rebuild.
5498 * target.c (update_current_target): Don't inherit or default
5499 to_find_memory_regions.
5500 (init_dummy_target): Don't initialize to_find_memory_regions.
5501 * target.h (struct target_ops) <to_find_memory_regions>: Use
5502 TARGET_DEFAULT_FUNC.
5504 2014-02-19 Tom Tromey <tromey@redhat.com>
5506 * target-delegates.c: Rebuild.
5507 * target.c (update_current_target): Don't inherit or default
5509 * target.h (struct target_ops) <to_log_command>: Use
5510 TARGET_DEFAULT_IGNORE.
5511 (target_log_command): Unconditionally delegate.
5513 2014-02-19 Tom Tromey <tromey@redhat.com>
5515 * target-delegates.c: Rebuild.
5516 * target.c (update_current_target): Don't inherit or default
5517 to_pid_to_exec_file.
5518 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
5519 TARGET_DEFAULT_RETURN.
5521 2014-02-19 Tom Tromey <tromey@redhat.com>
5523 * target-delegates.c: Rebuild.
5524 * target.c (update_current_target): Don't inherit or default
5526 (target_thread_name): Unconditionally delegate.
5527 * target.h (struct target_ops) <to_thread_name>: Use
5528 TARGET_DEFAULT_RETURN.
5530 2014-02-19 Tom Tromey <tromey@redhat.com>
5532 * target-delegates.c: Rebuild.
5533 * target.c (update_current_target): Don't inherit or default
5534 to_extra_thread_info.
5535 * target.h (struct target_ops) <to_extra_thread_info>: Use
5536 TARGET_DEFAULT_RETURN.
5538 2014-02-19 Tom Tromey <tromey@redhat.com>
5540 * target-delegates.c: Rebuild.
5541 * target.c (update_current_target): Don't inherit or default
5543 * target.h (struct target_ops) <to_has_exited>: Use
5544 TARGET_DEFAULT_RETURN..
5546 2014-02-19 Tom Tromey <tromey@redhat.com>
5548 * target-delegates.c: Rebuild.
5549 * target.c (update_current_target): Don't inherit or default
5550 to_set_syscall_catchpoint.
5551 (return_one): Remove.
5552 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
5553 TARGET_DEFAULT_RETURN.
5555 2014-02-19 Tom Tromey <tromey@redhat.com>
5557 * target-delegates.c: Rebuild.
5558 * target.c (update_current_target): Don't inherit or default
5559 to_insert_exec_catchpoint.
5560 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5561 TARGET_DEFAULT_RETURN.
5563 2014-01-08 Tom Tromey <tromey@redhat.com>
5565 * target-delegates.c: Rebuild.
5566 * target.c (update_current_target): Don't inherit or default
5567 to_insert_exec_catchpoint.
5568 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
5569 TARGET_DEFAULT_RETURN.
5571 2014-02-19 Tom Tromey <tromey@redhat.com>
5573 * target-delegates.c: Rebuild.
5574 * target.c (update_current_target): Don't inherit or default
5575 to_remove_vfork_catchpoint.
5576 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
5577 TARGET_DEFAULT_RETURN.
5579 2014-02-19 Tom Tromey <tromey@redhat.com>
5581 * target-delegates.c: Rebuild.
5582 * target.c (update_current_target): Don't inherit or default
5583 to_insert_vfork_catchpoint.
5584 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
5585 TARGET_DEFAULT_RETURN.
5587 2014-02-19 Tom Tromey <tromey@redhat.com>
5589 * target-delegates.c: Rebuild.
5590 * target.c (update_current_target): Don't inherit or default
5591 to_remove_fork_catchpoint.
5592 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
5593 TARGET_DEFAULT_RETURN.
5595 2014-02-19 Tom Tromey <tromey@redhat.com>
5597 * target-delegates.c: Rebuild.
5598 * target.c (update_current_target): Don't inherit or default
5599 to_insert_fork_catchpoint.
5600 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
5601 TARGET_DEFAULT_RETURN.
5603 2014-02-19 Tom Tromey <tromey@redhat.com>
5605 * target-delegates.c: Rebuild.
5606 * target.c (update_current_target): Don't inherit or default
5607 to_post_startup_inferior.
5608 * target.h (struct target_ops) <to_post_startup_inferior>: Use
5609 TARGET_DEFAULT_IGNORE.
5611 2014-02-19 Tom Tromey <tromey@redhat.com>
5613 * target-delegates.c: Rebuild.
5614 * target.c (update_current_target): Don't inherit or default
5616 * target.h (struct target_ops) <to_load>: Use
5617 TARGET_DEFAULT_NORETURN.
5619 2014-02-19 Tom Tromey <tromey@redhat.com>
5621 * target-delegates.c: Rebuild.
5622 * target.c (update_current_target): Don't inherit or default
5624 * target.h (struct target_ops) <to_terminal_info>: Use
5625 TARGET_DEFAULT_FUNC.
5627 2014-02-19 Tom Tromey <tromey@redhat.com>
5629 * target-delegates.c: Rebuild.
5630 * target.c (update_current_target): Don't inherit or default
5631 to_terminal_save_ours.
5632 * target.h (struct target_ops) <to_terminal_save_ours>: Use
5633 TARGET_DEFAULT_IGNORE.
5635 2014-02-19 Tom Tromey <tromey@redhat.com>
5637 * target-delegates.c: Rebuild.
5638 * target.c (update_current_target): Don't inherit or default
5640 * target.h (struct target_ops) <to_terminal_ours>: Use
5641 TARGET_DEFAULT_IGNORE.
5643 2014-02-19 Tom Tromey <tromey@redhat.com>
5645 * target-delegates.c: Rebuild.
5646 * target.c (update_current_target): Don't inherit or default
5647 to_terminal_ours_for_output.
5648 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
5649 TARGET_DEFAULT_IGNORE.
5651 2014-02-19 Tom Tromey <tromey@redhat.com>
5653 * target-delegates.c: Rebuild.
5654 * target.c (update_current_target): Don't inherit or default
5655 to_terminal_inferior.
5656 * target.h (struct target_ops) <to_terminal_inferior>: Use
5657 TARGET_DEFAULT_IGNORE.
5659 2014-02-19 Tom Tromey <tromey@redhat.com>
5661 * target-delegates.c: Rebuild.
5662 * target.c (update_current_target): Don't inherit or default
5664 * target.h (struct target_ops) <to_terminal_init>: Use
5665 TARGET_DEFAULT_IGNORE.
5667 2014-02-19 Tom Tromey <tromey@redhat.com>
5669 * target-delegates.c: Rebuild.
5670 * target.c (update_current_target): Don't inherit or default
5671 to_can_accel_watchpoint_condition.
5672 * target.h (struct target_ops)
5673 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
5675 2014-02-19 Tom Tromey <tromey@redhat.com>
5677 * target-delegates.c: Rebuild.
5678 * target.c (update_current_target): Don't inherit or default
5679 to_region_ok_for_hw_watchpoint.
5680 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5681 Use TARGET_DEFAULT_FUNC.
5683 2014-02-19 Tom Tromey <tromey@redhat.com>
5685 * target-delegates.c: Rebuild.
5686 * target.c (update_current_target): Don't inherit or default
5687 to_watchpoint_addr_within_range.
5688 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
5689 Use TARGET_DEFAULT_FUNC.
5691 2014-02-19 Tom Tromey <tromey@redhat.com>
5693 * target-delegates.c: Rebuild.
5694 * target.c (update_current_target): Don't inherit or default
5695 to_remove_watchpoint.
5696 * target.h (struct target_ops) <to_remove_watchpoint>: Use
5697 TARGET_DEFAULT_NORETURN.
5699 2014-02-19 Tom Tromey <tromey@redhat.com>
5701 * target-delegates.c: Rebuild.
5702 * target.c (update_current_target): Don't inherit or default
5703 to_insert_watchpoint.
5704 * target.h (struct target_ops) <to_insert_watchpoint>: Use
5705 TARGET_DEFAULT_RETURN.
5707 2014-02-19 Tom Tromey <tromey@redhat.com>
5709 * target-delegates.c: Rebuild.
5710 * target.c (update_current_target): Don't inherit or default
5711 to_remove_hw_breakpoint.
5712 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
5713 TARGET_DEFAULT_RETURN.
5715 2014-02-19 Tom Tromey <tromey@redhat.com>
5717 * target-delegates.c: Rebuild.
5718 * target.c (update_current_target): Don't inherit or default
5719 to_insert_hw_breakpoint.
5720 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
5721 TARGET_DEFAULT_RETURN.
5723 2014-02-19 Tom Tromey <tromey@redhat.com>
5725 * target-delegates.c: Rebuild.
5726 * target.c (update_current_target): Don't inherit or default
5727 to_can_use_hw_breakpoint.
5728 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
5729 TARGET_DEFAULT_RETURN.
5731 2014-02-19 Tom Tromey <tromey@redhat.com>
5733 * target-delegates.c: Rebuild.
5734 * target.c (update_current_target): Don't inherit or default
5736 * target.h (struct target_ops) <to_files_info>: Use
5737 TARGET_DEFAULT_IGNORE.
5739 2014-02-19 Tom Tromey <tromey@redhat.com>
5741 * target-delegates.c: Rebuild.
5742 * target.c (update_current_target): Don't inherit or default
5744 * target.h (struct target_ops) <to_store>: Use
5745 TARGET_DEFAULT_NORETURN.
5747 2014-02-19 Tom Tromey <tromey@redhat.com>
5749 * target-delegates.c: Rebuild.
5750 * target.c (update_current_target): Don't inherit or default
5752 * target.h (struct target_ops) <to_post_attach>: Use
5753 TARGET_DEFAULT_IGNORE.
5755 2014-02-19 Tom Tromey <tromey@redhat.com>
5757 * target-delegates.c: Rebuild.
5758 * target.c (update_current_target): Don't inherit or default
5760 (default_rcmd): New function.
5761 (do_monitor_command): Unconditionally delegate.
5762 * target.h (struct target_ops) <to_rmcd>: Use
5763 TARGET_DEFAULT_FUNC.
5765 2014-02-19 Tom Tromey <tromey@redhat.com>
5767 * target-delegates.c: Rebuild.
5768 * target.c (init_dummy_target): Don't initialize to_attach.
5769 (target_attach): Unconditionally delegate.
5770 * target.h (struct target_ops) <to_attach>: Use
5771 TARGET_DEFAULT_FUNC.
5773 2014-02-19 Tom Tromey <tromey@redhat.com>
5775 * target-delegates.c: Rebuild.
5776 * target.c (target_detach): Unconditionally delegate.
5777 (init_dummy_target): Don't initialize to_detach.
5778 * target.h (struct target_ops) <to_detach>: Use
5779 TARGET_DEFAULT_IGNORE.
5781 2014-02-19 Tom Tromey <tromey@redhat.com>
5783 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
5785 (target_augmented_libraries_svr4_read): Add argument.
5786 * target.c (update_current_target): Update.
5787 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
5790 2014-02-19 Tom Tromey <tromey@redhat.com>
5792 * target.h (struct target_ops) <to_call_history_range>: Add
5794 * target.c (target_call_history_range): Add argument.
5795 * record-btrace.c (record_btrace_call_history_range): Add 'self'
5797 (record_btrace_call_history_from): Update.
5799 2014-02-19 Tom Tromey <tromey@redhat.com>
5801 * target.h (struct target_ops) <to_call_history_from>: Add
5803 * target.c (target_call_history_from): Add argument.
5804 * record-btrace.c (record_btrace_call_history_from): Add 'self'
5807 2014-02-19 Tom Tromey <tromey@redhat.com>
5809 * target.h (struct target_ops) <to_call_history>: Add argument.
5810 * target.c (target_call_history): Add argument.
5811 * record-btrace.c (record_btrace_call_history): Add 'self'
5814 2014-02-19 Tom Tromey <tromey@redhat.com>
5816 * target.h (struct target_ops) <to_insn_history_range>: Add
5818 * target.c (target_insn_history_range): Add argument.
5819 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
5821 (record_btrace_insn_history_from): Update.
5823 2014-02-19 Tom Tromey <tromey@redhat.com>
5825 * target.h (struct target_ops) <to_insn_history_from>: Add
5827 * target.c (target_insn_history_from): Add argument.
5828 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
5831 2014-02-19 Tom Tromey <tromey@redhat.com>
5833 * target.h (struct target_ops) <to_insn_history>: Add argument.
5834 * target.c (target_insn_history): Add argument.
5835 * record-btrace.c (record_btrace_insn_history): Add 'self'
5838 2014-02-19 Tom Tromey <tromey@redhat.com>
5840 * target.h (struct target_ops) <to_goto_record>: Add argument.
5841 * target.c (target_goto_record): Add argument.
5842 * record-full.c (record_full_goto): Add 'self' argument.
5843 * record-btrace.c (record_btrace_goto): Add 'self' argument.
5845 2014-02-19 Tom Tromey <tromey@redhat.com>
5847 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
5848 * target.c (target_goto_record_end): Add argument.
5849 * record-full.c (record_full_goto_end): Add 'self' argument.
5850 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
5852 2014-02-19 Tom Tromey <tromey@redhat.com>
5854 * target.h (struct target_ops) <to_goto_record_begin>: Add
5856 * target.c (target_goto_record_begin): Add argument.
5857 * record-full.c (record_full_goto_begin): Add 'self' argument.
5858 * record-btrace.c (record_btrace_goto_begin): Add 'self'
5861 2014-02-19 Tom Tromey <tromey@redhat.com>
5863 * target.h (struct target_ops) <to_record_is_replaying>: Add
5865 * target.c (target_record_is_replaying): Add argument.
5866 * record-full.c (record_full_is_replaying): Add 'self' argument.
5867 * record-btrace.c (record_btrace_is_replaying): Add 'self'
5869 (record_btrace_xfer_partial, record_btrace_store_registers)
5870 (record_btrace_prepare_to_store, record_btrace_resume)
5871 (record_btrace_wait, record_btrace_decr_pc_after_break)
5872 (record_btrace_find_new_threads, record_btrace_thread_alive):
5875 2014-02-19 Tom Tromey <tromey@redhat.com>
5877 * target.h (struct target_ops) <to_delete_record>: Add argument.
5878 * target.c (target_delete_record): Add argument.
5879 * record-full.c (record_full_delete): Add 'self' argument.
5881 2014-02-19 Tom Tromey <tromey@redhat.com>
5883 * target.h (struct target_ops) <to_save_record>: Add argument.
5884 * target.c (target_save_record): Add argument.
5885 * record-full.c (record_full_save): Add 'self' argument.
5886 (record_full_save): Add 'self' argument.
5888 2014-02-19 Tom Tromey <tromey@redhat.com>
5890 * target.h (struct target_ops) <to_info_record>: Add argument.
5891 * target.c (target_info_record): Add argument.
5892 * record.c (info_record_command): Add argument.
5893 * record-full.c (record_full_info): Add 'self' argument.
5894 * record-btrace.c (record_btrace_info): Add 'self' argument.
5896 2014-02-19 Tom Tromey <tromey@redhat.com>
5898 * target.h (struct target_ops) <to_stop_recording>: Add argument.
5899 * target.c (target_stop_recording): Add argument.
5900 * record.c (record_stop): Add argument.
5901 * record-btrace.c (record_btrace_stop_recording): Add 'self'
5904 2014-02-19 Tom Tromey <tromey@redhat.com>
5906 * target.h (struct target_ops) <to_read_btrace>: Add argument.
5907 * target.c (struct target_ops) <to_read_btrace>: Add argument.
5908 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
5910 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
5911 (_initialize_amd64_linux_nat): Use it.
5912 * i386-linux-nat.c (i386_linux_read_btrace): New function.
5913 (_initialize_i386_linux_nat): Use it.
5915 2014-02-19 Tom Tromey <tromey@redhat.com>
5917 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
5918 * target.c (target_teardown_btrace): Add argument.
5919 * remote.c (remote_teardown_btrace): Add 'self' argument.
5920 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
5922 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
5925 2014-02-19 Tom Tromey <tromey@redhat.com>
5927 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
5928 * target.c (target_disable_btrace): Add argument.
5929 * remote.c (remote_disable_btrace): Add 'self' argument.
5930 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
5932 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
5935 2014-02-19 Tom Tromey <tromey@redhat.com>
5937 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
5938 * target.c (target_enable_btrace): Add argument.
5939 * remote.c (remote_enable_btrace): Add 'self' argument.
5940 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
5942 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
5945 2014-02-19 Tom Tromey <tromey@redhat.com>
5947 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
5948 (target_can_use_agent): Add argument.
5949 * target.c (update_current_target): Update.
5950 * remote.c (remote_can_use_agent): Add 'self' argument.
5951 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
5953 2014-02-19 Tom Tromey <tromey@redhat.com>
5955 * target.h (struct target_ops) <to_use_agent>: Add argument.
5956 (target_use_agent): Add argument.
5957 * target.c (update_current_target): Update.
5958 * remote.c (remote_use_agent): Add 'self' argument.
5959 * inf-child.c (inf_child_use_agent): Add 'self' argument.
5961 2014-02-19 Tom Tromey <tromey@redhat.com>
5963 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
5964 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
5965 (target_traceframe_info): Add argument.
5966 * target.c (update_current_target): Update.
5967 * remote.c (remote_traceframe_info): Add 'self' argument.
5968 * ctf.c (ctf_traceframe_info): Add 'self' argument.
5970 2014-02-19 Tom Tromey <tromey@redhat.com>
5972 * target.h (target_static_tracepoint_markers_by_strid): Add
5974 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
5976 * target.c (update_current_target): Update.
5977 * remote.c (struct target_ops)
5978 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5979 * linux-nat.c (struct target_ops)
5980 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
5982 2014-02-19 Tom Tromey <tromey@redhat.com>
5984 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
5986 (target_static_tracepoint_marker_at): Add argument.
5987 * target.c (update_current_target): Update.
5988 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
5991 2014-02-19 Tom Tromey <tromey@redhat.com>
5993 * target.h (struct target_ops) <to_set_permissions>: Add argument.
5994 (target_set_permissions): Add argument.
5995 * target.c (update_current_target): Update.
5996 * remote.c (remote_set_permissions): Add 'self' argument.
5997 (remote_start_remote): Update.
5999 2014-02-19 Tom Tromey <tromey@redhat.com>
6001 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
6002 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
6003 (target_get_tib_address): Add argument.
6004 * target.c (update_current_target): Update.
6005 * remote.c (remote_get_tib_address): Add 'self' argument.
6007 2014-02-19 Tom Tromey <tromey@redhat.com>
6009 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
6010 (target_set_trace_notes): Add argument.
6011 * target.c (update_current_target): Update.
6012 * remote.c (remote_set_trace_notes): Add 'self' argument.
6014 2014-02-19 Tom Tromey <tromey@redhat.com>
6016 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
6018 (target_set_trace_buffer_size): Add argument.
6019 * target.c (update_current_target): Update.
6020 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
6022 2014-02-19 Tom Tromey <tromey@redhat.com>
6024 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
6026 (target_set_circular_trace_buffer): Add argument.
6027 * target.c (update_current_target): Update.
6028 * remote.c (remote_set_circular_trace_buffer): Add 'self'
6031 2014-02-19 Tom Tromey <tromey@redhat.com>
6033 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
6035 (target_set_disconnected_tracing): Add argument.
6036 * target.c (update_current_target): Update.
6037 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
6039 2014-02-19 Tom Tromey <tromey@redhat.com>
6041 * target.h (struct target_ops)
6042 <to_get_min_fast_tracepoint_insn_len>: Add argument.
6043 (target_get_min_fast_tracepoint_insn_len): Add argument.
6044 * target.c (update_current_target): Update.
6045 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
6048 2014-02-19 Tom Tromey <tromey@redhat.com>
6050 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
6052 (target_get_raw_trace_data): Add argument.
6053 * target.c (update_current_target): Update.
6054 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
6056 2014-02-19 Tom Tromey <tromey@redhat.com>
6058 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6060 (target_upload_trace_state_variables): Add argument.
6061 * target.c (update_current_target): Update.
6062 * remote.c (remote_upload_trace_state_variables): Add 'self'
6064 (remote_start_remote): Update.
6066 2014-02-19 Tom Tromey <tromey@redhat.com>
6068 * target.h (struct target_ops) <to_upload_tracepoints>: Add
6070 (target_upload_tracepoints): Add argument.
6071 * target.c (update_current_target): Update.
6072 * remote.c (remote_upload_tracepoints): Add 'self' argument.
6073 (remote_start_remote): Update.
6075 2014-02-19 Tom Tromey <tromey@redhat.com>
6077 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
6078 (target_save_trace_data): Add argument.
6079 * target.c (update_current_target): Update.
6080 * remote.c (remote_save_trace_data): Add 'self' argument.
6082 2014-02-19 Tom Tromey <tromey@redhat.com>
6084 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
6086 * target.h (struct target_ops)
6087 <to_get_trace_state_variable_value>: Add argument.
6088 (target_get_trace_state_variable_value): Add argument.
6089 * target.c (update_current_target): Update.
6090 * remote.c (remote_get_trace_state_variable_value): Add 'self'
6092 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
6094 2014-02-19 Tom Tromey <tromey@redhat.com>
6096 * tracepoint.c (tfile_trace_find): Add 'self' argument.
6097 * target.h (struct target_ops) <to_trace_find>: Add argument.
6098 (target_trace_find): Add argument.
6099 * target.c (update_current_target): Update.
6100 * remote.c (remote_trace_find): Add 'self' argument.
6101 * ctf.c (ctf_trace_find): Add 'self' argument.
6103 2014-02-19 Tom Tromey <tromey@redhat.com>
6105 * target.h (struct target_ops) <to_trace_stop>: Add argument.
6106 (target_trace_stop): Add argument.
6107 * target.c (update_current_target): Update.
6108 * remote.c (remote_trace_stop): Add 'self' argument.
6110 2014-02-19 Tom Tromey <tromey@redhat.com>
6112 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
6113 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
6115 (target_get_tracepoint_status): Add argument.
6116 * target.c (update_current_target): Update.
6117 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
6119 2014-02-19 Tom Tromey <tromey@redhat.com>
6121 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
6122 * target.h (struct target_ops) <to_get_trace_status>: Add
6124 (target_get_trace_status): Add argument.
6125 * target.c (update_current_target): Update.
6126 * remote.c (remote_get_trace_status): Add 'self' argument.
6127 (remote_start_remote, remote_can_download_tracepoint): Update.
6128 * ctf.c (ctf_get_trace_status): Add 'self' argument.
6130 2014-02-19 Tom Tromey <tromey@redhat.com>
6132 * target.h (struct target_ops) <to_trace_start>: Add argument.
6133 (target_trace_start): Add argument.
6134 * target.c (update_current_target): Update.
6135 * remote.c (remote_trace_start): Add 'self' argument.
6137 2014-02-19 Tom Tromey <tromey@redhat.com>
6139 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6141 (target_trace_set_readonly_regions): Add argument.
6142 * target.c (update_current_target): Update.
6143 * remote.c (remote_trace_set_readonly_regions): Add 'self'
6146 2014-02-19 Tom Tromey <tromey@redhat.com>
6148 * target.h (struct target_ops) <to_disable_tracepoint>: Add
6150 (target_disable_tracepoint): Add argument.
6151 * target.c (update_current_target): Update.
6152 * remote.c (remote_disable_tracepoint): Add 'self' argument.
6154 2014-02-19 Tom Tromey <tromey@redhat.com>
6156 * target.h (struct target_ops) <to_enable_tracepoint>: Add
6158 (target_enable_tracepoint): Add argument.
6159 * target.c (update_current_target): Update.
6160 * remote.c (remote_enable_tracepoint): Add 'self' argument.
6162 2014-02-19 Tom Tromey <tromey@redhat.com>
6164 * target.h (struct target_ops) <to_download_trace_state_variable>:
6166 (target_download_trace_state_variable): Add argument.
6167 * target.c (update_current_target): Update.
6168 * remote.c (remote_download_trace_state_variable): Add 'self'
6171 2014-02-19 Tom Tromey <tromey@redhat.com>
6173 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
6175 (target_can_download_tracepoint): Add argument.
6176 * target.c (update_current_target): Update.
6177 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
6179 2014-02-19 Tom Tromey <tromey@redhat.com>
6181 * target.h (struct target_ops) <to_download_tracepoint>: Add
6183 (target_download_tracepoint): Add argument.
6184 * target.c (update_current_target): Update.
6185 * remote.c (remote_download_tracepoint): Add 'self' argument.
6187 2014-02-19 Tom Tromey <tromey@redhat.com>
6189 * target.h (struct target_ops) <to_trace_init>: Add argument.
6190 (target_trace_init): Add argument.
6191 * target.c (update_current_target): Update.
6192 * remote.c (remote_trace_init): Add 'self' argument.
6194 2014-02-19 Tom Tromey <tromey@redhat.com>
6196 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
6197 * target.c (target_fileio_readlink): Add argument.
6198 * remote.c (remote_hostio_readlink): Add 'self' argument.
6199 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
6201 2014-02-19 Tom Tromey <tromey@redhat.com>
6203 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
6204 * target.c (target_fileio_unlink): Add argument.
6205 * remote.c (remote_hostio_unlink): Add 'self' argument.
6206 (remote_file_delete): Update.
6207 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
6209 2014-02-19 Tom Tromey <tromey@redhat.com>
6211 * target.h (struct target_ops) <to_fileio_close>: Add argument.
6212 * target.c (target_fileio_close): Add argument.
6213 * remote.c (remote_hostio_close): Add 'self' argument.
6214 (remote_hostio_close_cleanup): Update.
6215 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
6217 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
6219 2014-02-19 Tom Tromey <tromey@redhat.com>
6221 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
6222 * target.c (target_fileio_pread): Add argument.
6223 * remote.c (remote_hostio_pread): Add 'self' argument.
6224 (remote_bfd_iovec_pread, remote_file_get): Update.
6225 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
6227 2014-02-19 Tom Tromey <tromey@redhat.com>
6229 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
6230 * target.c (target_fileio_pwrite): Add argument.
6231 * remote.c (remote_hostio_pwrite): Add 'self' argument.
6232 (remote_file_put): Update.
6233 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
6235 2014-02-19 Tom Tromey <tromey@redhat.com>
6237 * target.h (struct target_ops) <to_fileio_open>: Add argument.
6238 * target.c (target_fileio_open): Add argument.
6239 * remote.c (remote_hostio_open): Add 'self' argument.
6240 (remote_bfd_iovec_open): Add 'self' argument.
6241 (remote_file_put): Add 'self' argument.
6242 (remote_file_get): Add 'self' argument.
6243 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
6245 2014-02-19 Tom Tromey <tromey@redhat.com>
6247 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6249 (target_can_run_breakpoint_commands): Add argument.
6250 * target.c (update_current_target): Update.
6251 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
6253 (remote_insert_breakpoint): Add 'self' argument.
6254 (remote_insert_hw_breakpoint): Add 'self' argument.
6255 (remote_can_run_breakpoint_commands): Add 'self' argument.
6257 2014-02-19 Tom Tromey <tromey@redhat.com>
6259 * target.h (struct target_ops)
6260 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
6261 (target_supports_evaluation_of_breakpoint_conditions): Add
6263 * target.c (update_current_target): Update.
6264 * remote.c (remote_supports_cond_breakpoints): Add 'self'
6266 (remote_insert_breakpoint): Add 'self' argument.
6267 (remote_insert_hw_breakpoint): Add 'self' argument.
6268 (remote_supports_cond_breakpoints): Add 'self' argument.
6270 2014-02-19 Tom Tromey <tromey@redhat.com>
6272 * target.h (struct target_ops) <to_supports_string_tracing>: Add
6274 (target_supports_string_tracing): Add argument.
6275 * target.c (update_current_target): Update.
6276 * remote.c (remote_supports_string_tracing): Add 'self' argument.
6278 2014-02-19 Tom Tromey <tromey@redhat.com>
6280 * target.h (struct target_ops)
6281 <to_supports_disable_randomization>: Add argument.
6282 * target.c (find_default_supports_disable_randomization): Add
6284 (target_supports_disable_randomization): Add argument.
6285 (find_default_supports_disable_randomization): Add 'self'
6287 * remote.c (extended_remote_supports_disable_randomization): Add
6289 (remote_supports_disable_randomization): Add 'self' argument.
6290 (extended_remote_create_inferior): Update.
6291 * linux-nat.c (linux_nat_supports_disable_randomization): Add
6294 2014-02-19 Tom Tromey <tromey@redhat.com>
6296 * target.h (struct target_ops)
6297 <to_supports_enable_disable_tracepoint>: Add argument.
6298 (target_supports_enable_disable_tracepoint): Add argument.
6299 * target.c (update_current_target): Update.
6300 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
6303 2014-02-19 Tom Tromey <tromey@redhat.com>
6305 * target.h (struct target_ops) <to_supports_multi_process>: Add
6307 (target_supports_multi_process): Add argument.
6308 * target.c (update_current_target): Update.
6309 * remote.c (remote_supports_multi_process): Add 'self' argument.
6310 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
6312 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
6315 2014-02-19 Tom Tromey <tromey@redhat.com>
6317 * target.h (struct target_ops) <to_execution_direction>: Add
6319 (target_execution_direction): Add argument.
6320 * target.c (default_execution_direction): Add 'self' argument.
6321 * record-full.c (record_full_execution_direction): Add 'self'
6324 2014-02-19 Tom Tromey <tromey@redhat.com>
6326 * target.h (struct target_ops) <to_can_execute_reverse>: Add
6328 (target_can_execute_reverse): Add argument.
6329 * remote.c (remote_can_execute_reverse): Add 'self' argument.
6330 * record-full.c (record_full_can_execute_reverse): Add 'self'
6332 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
6335 2014-02-19 Tom Tromey <tromey@redhat.com>
6337 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
6338 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
6340 (target_get_ada_task_ptid): Add argument.
6341 * target.c (update_current_target): Update.
6342 (default_get_ada_task_ptid): Add 'self' argument.
6343 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
6344 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
6345 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
6347 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
6349 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
6351 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
6353 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
6354 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
6357 2014-02-19 Tom Tromey <tromey@redhat.com>
6359 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
6360 (target_goto_bookmark): Add argument.
6361 * target.c (dummy_goto_bookmark): Add 'self' argument.
6362 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
6364 2014-02-19 Tom Tromey <tromey@redhat.com>
6366 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
6367 (target_get_bookmark): Add argument.
6368 * target.c (dummy_get_bookmark): Add 'self' argument.
6369 * record-full.c (record_full_get_bookmark): Add 'self' argument.
6371 2014-02-19 Tom Tromey <tromey@redhat.com>
6373 * target.h (struct target_ops) <to_make_corefile_notes>: Add
6375 (target_make_corefile_notes): Add argument.
6376 * target.c (dummy_make_corefile_notes): Add 'self' argument.
6377 * procfs.c (procfs_make_note_section): Add 'self' argument.
6378 (procfs_make_note_section): Add 'self' argument.
6379 (procfs_make_note_section): Add 'self' argument.
6380 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
6382 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
6383 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
6384 * exec.c (exec_make_note_section): Add 'self' argument.
6385 (exec_make_note_section): Add 'self' argument.
6387 2014-02-19 Tom Tromey <tromey@redhat.com>
6389 * target.h (struct target_ops) <to_find_memory_regions>: Add
6391 (target_find_memory_regions): Add argument.
6392 * target.c (dummy_find_memory_regions): Add 'self' argument.
6393 * procfs.c (proc_find_memory_regions): Add 'self' argument.
6394 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
6395 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
6396 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
6397 * exec. (exec_do_find_memory_regions): New global.
6398 (exec_set_find_memory_regions): Rewrite.
6399 (exec_find_memory_regions): New function.
6400 (init_exec_ops): Use exec_find_memory_regions.
6402 2014-02-19 Tom Tromey <tromey@redhat.com>
6404 * target.h (struct target_ops) <to_supports_non_stop>: Add
6406 * target.c (find_default_supports_non_stop): Add argument.
6407 (target_supports_non_stop): Add argument.
6408 (find_default_supports_non_stop): Add 'self' argument.
6409 * remote.c (remote_supports_non_stop): Add 'self' argument.
6410 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
6412 2014-02-19 Tom Tromey <tromey@redhat.com>
6414 * target.h (struct target_ops) <to_log_command>: Add argument.
6415 (target_log_command): Add argument.
6416 * serial.h (serial_log_command): Add 'self' argument.
6417 * serial.c (serial_log_command): Add 'self' argument.
6419 2014-02-19 Tom Tromey <tromey@redhat.com>
6421 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
6422 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
6424 (target_pid_to_exec_file): Add argument.
6425 * target.c (debug_to_pid_to_exec_file): Add argument.
6426 (update_current_target): Update.
6427 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
6428 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
6429 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
6430 (linux_handle_extended_wait): Update.
6431 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
6432 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
6433 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
6434 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
6436 2014-02-19 Tom Tromey <tromey@redhat.com>
6438 * target.h (struct target_ops) <to_rcmd>: Add argument.
6439 (target_rcmd): Add argument.
6440 * target.c (debug_to_rcmd): Add argument.
6441 (update_current_target, do_monitor_command): Update.
6442 * remote.c (remote_rcmd): Add 'self' argument.
6443 * monitor.c (monitor_rcmd): Add 'self' argument.
6445 2014-02-19 Tom Tromey <tromey@redhat.com>
6447 * windows-nat.c (windows_stop): Add 'self' argument.
6448 * target.h (struct target_ops) <to_stop>: Add argument.
6449 * target.c (target_stop): Add argument.
6450 (debug_to_stop): Add argument.
6451 (update_current_target): Update.
6452 * remote.c (remote_stop): Add 'self' argument.
6453 * remote-sim.c (gdbsim_stop): Add 'self' argument.
6454 (gdbsim_cntrl_c): Update.
6455 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
6456 * procfs.c (procfs_stop): Add 'self' argument.
6457 * nto-procfs.c (procfs_stop): Add 'self' argument.
6458 * monitor.c (monitor_stop): Add 'self' argument.
6459 (monitor_open): Update.
6460 * linux-nat.c (linux_nat_stop): Add argument.
6461 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
6462 * gnu-nat.c (gnu_stop): Add 'self' argument.
6463 * darwin-nat.c (darwin_stop): Add 'self' argument.
6465 2014-02-19 Tom Tromey <tromey@redhat.com>
6467 * target.h (struct target_ops) <to_thread_name>: Add argument.
6468 * target.c (target_thread_name): Add argument.
6469 (update_current_target): Update.
6470 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
6472 2014-02-19 Tom Tromey <tromey@redhat.com>
6474 * target.h (struct target_ops) <to_extra_thread_info>: Add
6476 (target_extra_thread_info): Add argument.
6477 * target.c (update_current_target): Update.
6478 * remote.c (remote_threads_extra_info): Add 'self' argument.
6479 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
6481 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
6482 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
6483 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
6485 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
6487 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
6489 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
6492 2014-02-19 Tom Tromey <tromey@redhat.com>
6494 * target.h (struct target_ops) <to_program_signals>: Add argument.
6495 * target.c (target_program_signals): Add argument.
6496 * remote.c (remote_program_signals): Add 'self' argument.
6498 2014-02-19 Tom Tromey <tromey@redhat.com>
6500 * target.h (struct target_ops) <to_pass_signals>: Add argument.
6501 * target.c (target_pass_signals): Add argument.
6502 * remote.c (remote_pass_signals): Add 'self' argument.
6503 (remote_start_remote): Update.
6504 * procfs.c (procfs_pass_signals): Add 'self' argument.
6505 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
6506 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
6507 (linux_nat_create_inferior, linux_nat_attach): Update.
6509 2014-02-19 Tom Tromey <tromey@redhat.com>
6511 * windows-nat.c (windows_can_run): Add 'self' argument.
6512 * target.h (struct target_ops) <to_can_run>: Add argument.
6513 (target_can_run): Add argument.
6514 * target.c (debug_to_can_run): Add argument.
6515 (update_current_target): Update.
6516 * nto-procfs.c (procfs_can_run): Add 'self' argument.
6517 * inf-child.c (inf_child_can_run): Add 'self' argument.
6518 * go32-nat.c (go32_can_run): Add 'self' argument.
6520 2014-02-19 Tom Tromey <tromey@redhat.com>
6522 * target.h (struct target_ops) <to_has_exited>: Add argument.
6523 (target_has_exited): Add argument.
6524 * target.c (debug_to_has_exited): Add argument.
6525 (update_current_target): Update.
6527 2014-02-19 Tom Tromey <tromey@redhat.com>
6529 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
6531 (target_set_syscall_catchpoint): Add argument.
6532 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
6534 * target.c (update_current_target): Update.
6536 2014-02-19 Tom Tromey <tromey@redhat.com>
6538 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
6540 (target_remove_exec_catchpoint): Add argument.
6541 * target.c (debug_to_remove_exec_catchpoint): Add argument.
6542 (update_current_target): Update.
6543 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
6546 2014-02-19 Tom Tromey <tromey@redhat.com>
6548 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
6550 (target_insert_exec_catchpoint): Add argument.
6551 * target.c (debug_to_insert_exec_catchpoint): Add argument.
6552 (update_current_target): Update.
6553 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
6556 2014-02-19 Tom Tromey <tromey@redhat.com>
6558 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
6560 (target_remove_vfork_catchpoint): Add argument.
6561 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
6562 (update_current_target): Update.
6563 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
6566 2014-02-19 Tom Tromey <tromey@redhat.com>
6568 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
6570 (target_insert_vfork_catchpoint): Add argument.
6571 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
6572 (update_current_target): Update.
6573 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
6576 2014-02-19 Tom Tromey <tromey@redhat.com>
6578 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
6580 (target_remove_fork_catchpoint): Add argument.
6581 * target.c (debug_to_remove_fork_catchpoint): Add argument.
6582 (update_current_target): Update.
6583 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
6586 2014-02-19 Tom Tromey <tromey@redhat.com>
6588 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
6590 (target_insert_fork_catchpoint): Add argument.
6591 * target.c (debug_to_insert_fork_catchpoint): Add argument.
6592 (update_current_target): Update.
6593 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
6596 2014-02-19 Tom Tromey <tromey@redhat.com>
6598 * target.h (struct target_ops) <to_post_startup_inferior>: Add
6600 (target_post_startup_inferior): Add argument.
6601 * target.c (debug_to_post_startup_inferior): Add argument.
6602 (update_current_target): Update.
6603 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
6605 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
6607 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
6609 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
6611 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
6613 (super_post_startup_inferior): Likewise.
6614 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
6616 (super_post_startup_inferior): Likewise.
6617 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
6618 Add 'self' argument.
6619 (super_post_startup_inferior): Likewise.
6621 2014-02-19 Tom Tromey <tromey@redhat.com>
6623 * target.h (struct target_ops) <to_load>: Add argument.
6624 * target.c (target_load): Add argument.
6625 (debug_to_load): Add argument.
6626 (update_current_target): Update.
6627 * remote.c (remote_load): Add 'self' argument.
6628 * remote-sim.c (gdbsim_load): Add 'self' argument.
6629 * remote-mips.c (mips_load): Add 'self' argument.
6630 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
6631 * monitor.c (monitor_load): Add 'self' argument.
6632 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
6634 2014-02-19 Tom Tromey <tromey@redhat.com>
6636 * target.h (struct target_ops) <to_terminal_info>: Add argument.
6637 (target_terminal_info): Add argument.
6638 * target.c (debug_to_terminal_info): Add argument.
6639 (default_terminal_info): Likewise.
6640 * inflow.c (child_terminal_info): Add 'self' argument.
6641 * inferior.h (child_terminal_info): Add 'self' argument.
6642 * go32-nat.c (go32_terminal_info): Add 'self' argument.
6644 2014-02-19 Tom Tromey <tromey@redhat.com>
6646 * target.h (struct target_ops) <to_terminal_save_ours>: Add
6648 (target_terminal_save_ours): Add argument.
6649 * target.c (debug_to_terminal_save_ours): Add argument.
6650 (update_current_target): Update.
6651 * inflow.c (terminal_save_ours): Add 'self' argument.
6652 * inferior.h (terminal_save_ours): Add 'self' argument.
6654 2014-02-19 Tom Tromey <tromey@redhat.com>
6656 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
6657 (target_terminal_ours): Add argument.
6658 * target.c (debug_to_terminal_ours): Add argument.
6659 (update_current_target): Update.
6660 * remote.c (remote_terminal_ours): Add 'self' argument.
6661 (remote_close): Update.
6662 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
6663 * inflow.c (terminal_ours): Add 'self' argument.
6664 * inferior.h (terminal_ours): Add 'self' argument.
6665 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6667 2014-02-19 Pedro Alves <palves@redhat.com>
6668 Tom Tromey <tromey@redhat.com>
6670 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
6672 (target_terminal_ours_for_output): Add argument.
6673 * target.c (debug_to_terminal_ours_for_output): Add argument.
6674 (update_current_target): Update.
6675 * inflow.c (terminal_ours_for_output): Add 'self' argument.
6676 * inferior.h (terminal_ours_for_output): Add 'self' argument.
6677 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
6679 2014-02-19 Tom Tromey <tromey@redhat.com>
6681 * target.h (struct target_ops) <to_terminal_inferior>: Add
6683 * target.c (target_terminal_inferior): Add argument.
6684 (update_current_target): Update.
6685 * remote.c (remote_terminal_inferior): Add 'self' argument.
6686 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
6687 * inflow.c (terminal_inferior): Add 'self' argument.
6688 * inferior.h (terminal_inferior): Add 'self' argument.
6689 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
6690 (go32_terminal_inferior): Add 'self' argument.
6692 2014-02-19 Tom Tromey <tromey@redhat.com>
6694 * target.h (struct target_ops) <to_terminal_init>: Add argument.
6695 (target_terminal_init): Add argument.
6696 * target.c (debug_to_terminal_init): Add argument.
6697 (update_current_target): Update.
6698 * inflow.c (terminal_init_inferior): Add 'self' argument.
6699 * inferior.h (terminal_init_inferior): Add 'self' argument.
6700 * go32-nat.c (go32_terminal_init): Add 'self' argument.
6701 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
6703 2014-02-19 Tom Tromey <tromey@redhat.com>
6705 * target.h (struct target_ops)
6706 <to_can_accel_watchpoint_condition>: Add argument.
6707 (target_can_accel_watchpoint_condition): Add argument.
6708 * target.c (debug_to_can_accel_watchpoint_condition): Add
6710 (update_current_target): Update.
6711 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
6714 2014-02-19 Tom Tromey <tromey@redhat.com>
6716 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
6718 (target_region_ok_for_hw_watchpoint): Add argument.
6719 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
6720 (default_region_ok_for_hw_watchpoint): Add argument.
6721 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
6722 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
6724 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
6726 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
6728 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
6730 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
6732 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
6734 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
6735 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
6737 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
6738 Add 'self' argument.
6740 2014-02-19 Tom Tromey <tromey@redhat.com>
6742 * target.h (struct target_ops) <to_insert_watchpoint>: Add
6744 (target_insert_watchpoint): Add argument.
6745 * target.c (debug_to_insert_watchpoint): Add argument.
6746 (update_current_target): Update.
6747 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
6748 * remote.c (remote_insert_watchpoint): Add 'self' argument.
6749 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
6750 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
6751 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
6752 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
6754 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
6755 (procfs_insert_hw_watchpoint): Add 'self' argument.
6756 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
6758 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
6760 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
6762 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
6763 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
6765 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
6768 2014-02-19 Tom Tromey <tromey@redhat.com>
6770 * target.h (struct target_ops) <to_remove_watchpoint>: Add
6772 (target_remove_watchpoint): Add argument.
6773 * target.c (debug_to_remove_watchpoint): Add argument.
6774 (update_current_target): Update.
6775 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
6776 * remote.c (remote_remove_watchpoint): Add 'self' argument.
6777 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
6778 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
6779 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
6780 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
6782 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
6783 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
6785 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
6787 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
6789 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
6790 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
6792 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
6795 2014-02-19 Tom Tromey <tromey@redhat.com>
6797 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
6799 (target_remove_hw_breakpoint): Add argument.
6800 * target.c (debug_to_remove_hw_breakpoint): Add argument.
6801 (update_current_target): Update.
6802 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
6803 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
6805 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
6806 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
6808 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
6811 2014-02-19 Tom Tromey <tromey@redhat.com>
6813 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
6815 (target_insert_hw_breakpoint): Add argument.
6816 * target.c (debug_to_insert_hw_breakpoint): Add argument.
6817 (update_current_target): Update.
6818 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
6819 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
6821 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
6822 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
6823 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
6825 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
6828 2014-02-19 Tom Tromey <tromey@redhat.com>
6830 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
6832 (target_can_use_hardware_watchpoint): Add argument.
6833 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
6834 (update_current_target): Update.
6835 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
6837 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
6839 * remote.c (remote_check_watch_resources): Add 'self' argument.
6840 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
6841 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
6843 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
6844 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
6846 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
6848 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
6850 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
6852 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
6854 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
6856 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
6857 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
6859 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
6862 2014-02-19 Tom Tromey <tromey@redhat.com>
6864 * target.h (struct target_ops) <to_post_attach>: Add argument.
6865 (target_post_attach): Add argument.
6866 * target.c (debug_to_post_attach): Add argument.
6867 (update_current_target): Update.
6868 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
6869 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
6870 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
6871 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
6872 * inf-child.c (inf_child_post_attach): Add 'self' argument.
6874 2014-02-19 Tom Tromey <tromey@redhat.com>
6876 * windows-nat.c (windows_close): Add 'self' argument.
6877 * tracepoint.c (tfile_close): Add 'self' argument.
6878 * target.h (struct target_ops) <to_close>: Add argument.
6879 * target.c (target_close): Add argument.
6880 (update_current_target): Update.
6881 * remote.c (remote_close): Add 'self' argument.
6882 * remote-sim.c (gdbsim_close): Add 'self' argument.
6883 * remote-mips.c (mips_close): Add 'self' argument.
6884 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
6885 * record-full.c (record_full_close): Add 'self' argument.
6886 * record-btrace.c (record_btrace_close): Add 'self' argument.
6887 * monitor.h (monitor_close): Add 'self' argument.
6888 * monitor.c (monitor_close): Add 'self' argument.
6889 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
6890 * linux-nat.c (linux_nat_close): Add argument.
6891 * go32-nat.c (go32_close): Add 'self' argument.
6892 * exec.c (exec_close_1): Add 'self' argument.
6893 * ctf.c (ctf_close): Add 'self' argument.
6894 * corelow.c (core_close): Add 'self' argument.
6895 (core_close_cleanup): Update.
6896 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
6897 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
6899 2014-02-19 Tom Tromey <tromey@redhat.com>
6901 * remote.c (remote_load): New function.
6902 (init_remote_ops): Use it.
6904 2014-02-19 Tom Tromey <tromey@redhat.com>
6906 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
6908 * common/linux-btrace.h (linux_supports_btrace): Update.
6909 * remote.c (remote_supports_btrace): Add "self" argument.
6910 * target-delegates.c: Rebuild.
6911 * target.c (target_supports_btrace): Remove.
6912 * target.h (struct target_ops) <to_supports_btrace>: Add
6913 target_ops argument.
6914 (target_supports_btrace): New define.
6916 2014-02-19 Tom Tromey <tromey@redhat.com>
6918 * record-full.c (record_full_beneath_to_resume_ops)
6919 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
6920 (record_full_beneath_to_wait)
6921 (record_full_beneath_to_store_registers_ops)
6922 (record_full_beneath_to_store_registers)
6923 (record_full_beneath_to_xfer_partial_ops)
6924 (record_full_beneath_to_xfer_partial)
6925 (record_full_beneath_to_insert_breakpoint_ops)
6926 (record_full_beneath_to_insert_breakpoint)
6927 (record_full_beneath_to_remove_breakpoint_ops)
6928 (record_full_beneath_to_remove_breakpoint)
6929 (record_full_beneath_to_stopped_by_watchpoint)
6930 (record_full_beneath_to_stopped_data_address)
6931 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
6932 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
6933 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
6934 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
6935 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
6936 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
6937 (tmp_to_stopped_data_address, tmp_to_async): Remove.
6938 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
6939 (record_full_resume, record_full_wait_1)
6940 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
6941 (record_full_store_registers, record_full_xfer_partial)
6942 (record_full_insert_breakpoint, record_full_remove_breakpoint)
6943 (record_full_async, record_full_core_xfer_partial): Use target
6945 * target-delegates.c: Rebuild.
6946 * target.c (current_xfer_partial): Remove.
6947 (update_current_target): Do not INHERIT or de_fault
6948 to_insert_breakpoint, to_remove_breakpoint,
6949 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
6950 to_is_async_p, to_async. Do not set to_xfer_partial field.
6951 (default_xfer_partial): Simplify.
6952 (current_xfer_partial): Remove.
6953 (target_wait, target_resume): Simplify.
6954 (find_default_can_async_p, find_default_is_async_p): Update.
6955 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
6956 to_xfer_partial, to_stopped_by_watchpoint,
6957 to_stopped_data_address.
6958 (target_store_registers): Simplify.
6959 (forward_target_remove_breakpoint)
6960 (forward_target_insert_breakpoint): Remove.
6961 (target_remove_breakpoint, target_insert_breakpoint)
6962 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
6963 * target.h (struct target_ops) <to_resume, to_wait,
6964 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
6965 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
6966 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
6968 (forward_target_remove_breakpoint)
6969 (forward_target_insert_breakpoint): Remove.
6970 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
6972 (record_btrace_insert_breakpoint): Delegate directly.
6974 2014-02-19 Tom Tromey <tromey@redhat.com>
6977 * target-delegates.c: New file.
6978 * target.c: Include target-delegates.c.
6979 (init_dummy_target): Call install_dummy_methods.
6980 (complete_target_initialization): Call install_delegators.
6981 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
6982 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
6983 * make-target-delegates: New file.
6985 2014-02-19 Tom Tromey <tromey@redhat.com>
6987 * record.c (find_record_target): Use find_target_at.
6988 * target.c (find_target_at): New function.
6989 * target.h (find_target_at): Declare.
6991 2014-02-19 Tom Tromey <tromey@redhat.com>
6993 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
6995 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
6997 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
6998 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
7000 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
7002 * linux-nat.c (save_sigtrap): Update.
7003 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
7004 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
7005 (linux_nat_close): Update.
7006 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
7008 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
7010 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
7011 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
7012 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
7013 (tmp_to_async): Add 'ops' argument.
7014 (record_full_stopped_by_watchpoint, record_full_async)
7015 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
7017 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
7018 (m32r_stopped_by_watchpoint): Add 'ops' argument.
7019 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
7020 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
7021 (remote_is_async_p, remote_async): Add 'ops' argument.
7022 (remote_stopped_data_address): Update.
7023 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
7024 * target.c (update_current_target)
7025 (find_default_can_async_p, find_default_is_async_p): Update.
7026 (init_dummy_target): Update.
7027 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
7028 * target.h (struct target_ops) <to_stopped_by_watchpoint,
7029 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
7030 (target_can_async_p, target_is_async_p, target_async)
7031 (target_stopped_by_watchpoint): Update.
7033 2014-02-19 Yao Qi <yao@codesourcery.com>
7036 * gdbarch.sh: Remove startup_gdbarch.
7037 * gdbarch.c: Regenerated.
7038 * gdbarch.h: Likewise.
7040 2014-02-17 Kevin Buettner <kevinb@redhat.com>
7042 * rl78-tdep.c (rl78_g10_register_name): New function.
7043 (rl78_return_value): Add g10 support.
7044 (rl78_gdbarch_init): Register rl78_g10_register_name for the
7047 2014-02-17 Doug Evans <xdje42@gmail.com>
7049 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
7050 (SUBDIR_GUILE_SRCS): Ditto.
7051 (scm-gsmob.o): Ditto.
7053 2014-02-17 Yao Qi <yao@codesourcery.com>
7055 * gnu-nat.c (ILL_RPC): Declare defined function.
7057 2014-02-17 Yao Qi <yao@codesourcery.com>
7059 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
7060 mach_msg_type_number_t.
7061 (gnu_write_inferior): Likewise.
7063 2014-02-17 Yao Qi <yao@codesourcery.com>
7065 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
7067 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
7068 (inf_validate_procs, inf_signal): Likewise.
7069 (S_exception_raise_request): Likewise.
7070 (do_mach_notify_dead_name): Likewise.
7071 (steal_exc_port): Likewise.
7072 (gnu_read_inferior): Change 'copy_count''s type to
7073 mach_msg_type_number_t.
7074 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
7077 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
7079 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
7080 flag. Adjust all users; in particular...
7081 (gnu_wait): ..., don't decrement its value in here...
7082 (gnu_create_inferior): ..., and instead set the flag in here,
7083 around the startup_inferior call, and call that one with
7084 START_INFERIOR_TRAPS_EXPECTED.
7086 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
7087 (ILL_RPC): ... new macro.
7088 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
7089 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
7090 (do_mach_notify_send_once, S_proc_setmsgport_reply)
7091 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
7092 functions with ILL_RPC macro.
7093 (S_proc_pid2task_reply, S_proc_task2pid_reply)
7094 (S_proc_task2proc_reply, S_proc_proc2task_reply)
7095 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
7096 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
7097 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
7098 (S_proc_getlogin_reply, S_proc_getsid_reply)
7099 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
7100 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
7101 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
7102 (S_proc_getnports_reply, S_proc_is_important_reply)
7103 (S_proc_get_code_reply): New stub functions, generated with
7106 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
7107 collected the type check structures.
7109 * reply_mig_hack.awk: Don't expect to see the auto keyword.
7111 2014-02-14 Doug Evans <dje@google.com>
7113 * target.c (target_write_partial): Fix result type.
7115 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
7117 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
7118 the proper offsets to access fpregset_t.
7120 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
7122 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
7123 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
7124 * h8300-tdep.c (setmachinelist): Remove global.
7125 * hppa-tdep.c (hppa_sigtramp): Remove global.
7126 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
7127 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
7128 * ravenscar-thread.c (update_target_observer): Remove global.
7129 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
7131 2014-02-12 Tom Tromey <tromey@redhat.com>
7133 * common/rsp-low.c: Update comments.
7134 * common/rsp-low.h: Update comments.
7136 2014-02-12 Tom Tromey <tromey@redhat.com>
7138 * common/rsp-low.c (convert_ascii_to_int): Remove.
7139 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
7141 2014-02-12 Tom Tromey <tromey@redhat.com>
7143 * common/rsp-low.h (unhexify): Don't declare.
7144 * common/rsp-low.c (unhexify): Remove.
7146 2014-02-12 Tom Tromey <tromey@redhat.com>
7148 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
7149 * common/rsp-low.c (convert_int_to_ascii): Remove.
7151 2014-02-12 Tom Tromey <tromey@redhat.com>
7153 * common/rsp-low.h (hexify): Don't declare.
7154 * common/rsp-low.c (hexify): Remove.
7156 2014-02-12 Tom Tromey <tromey@redhat.com>
7158 * common/rsp-low.c (hexify): Never take strlen of argument.
7160 2014-02-12 Tom Tromey <tromey@redhat.com>
7162 * common/rsp-low.c (bin2hex): Never take strlen of argument.
7163 * remote.c (extended_remote_run, remote_rcmd)
7164 (remote_download_trace_state_variable, remote_save_trace_data)
7165 (remote_set_trace_notes): Update.
7166 * tracepoint.c (encode_source_string, tfile_write_status)
7167 (tfile_write_uploaded_tsv): Update.
7169 2014-02-12 Tom Tromey <tromey@redhat.com>
7171 * tracepoint.c: Include rsp-low.h.
7172 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
7173 * remote.c: Include rsp-low.h.
7174 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
7175 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
7176 (remote_unescape_input): Move to common/rsp-low.c.
7177 * common/rsp-low.h: New file.
7178 * common/rsp-low.c: New file.
7179 * Makefile.in (SFILES): Add common/rsp-low.c.
7180 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
7181 (COMMON_OBS): Add rsp-low.o.
7182 (rsp-low.o): New target.
7184 2014-02-12 Tom Tromey <tromey@redhat.com>
7186 * utils.h: Include print-utils.h.
7187 (host_address_to_string, plongest, pulongest, phex, phex_nz)
7188 (int_string, core_addr_to_string, core_addr_to_string_nz)
7189 (hex_string, hex_string_custom): Don't declare.
7190 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
7191 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
7192 (hex_string_custom, int_string, core_addr_to_string)
7193 (core_addr_to_string_nz, host_address_to_string): Move to
7194 common/print-utils.c.
7195 * common/print-utils.h: New file.
7196 * common/print-utils.c: New file
7197 * Makefile.in (SFILES): Add common/print-utils.c.
7198 (HFILES_NO_SRCDIR): Add common/print-utils.h.
7199 (COMMON_OBS): Add print-utils.o.
7200 (print-utils.o): New target.
7202 2014-02-12 Tom Tromey <tromey@redhat.com>
7204 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
7206 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7208 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
7210 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7212 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
7213 if a PT_IO ptrace request returns sucessfully but indicates that 0
7214 bytes were transferred.
7216 2014-02-12 Pedro Alves <palves@redhat.com>
7217 Kevin Buettner <kevinb@redhat.com>
7219 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
7220 TYPE_INSTANCE_FLAG_CODE_SPACE.
7222 2014-02-12 Pedro Alves <palves@redhat.com>
7224 * h8300-tdep.c (pseudo_from_raw_register)
7225 (raw_from_pseudo_register): New functions.
7226 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
7229 2014-02-12 Pedro Alves <palves@redhat.com>
7231 * h8300-tdep.c (h8300_register_sim_regno): New function.
7232 (h8300_gdbarch_init): Install h8300_register_sim_regno as
7233 gdbarch_register_sim_regno hook.
7235 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7237 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
7239 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
7241 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
7243 2014-02-12 Mark Kettenis <kettenis@gnu.org>
7245 * obsd-tdep.h (obsd_init_abi): New prototype.
7246 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
7247 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
7248 (obsd_init_abi): New functions.
7249 * i386obsd-tdep.c: Include "obsd-tdep.h".
7250 (i386obsd_init_abi): Call obsd_init_abi.
7251 * amd64obsd-tdep.c: Include "obsd-tdep.h".
7252 (amd64obsd_init_abi): Call obsd_init_abi.
7253 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
7254 obsd-tdep.c to gdb_target_obs.
7256 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
7258 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
7259 double float arguments to 16-byte in the argument slots.
7261 2014-02-11 Doug Evans <xdje42@gmail.com>
7263 * configure.ac: Don't crash if pkg-config is not found and guile
7264 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
7266 * configure: Regenerate.
7268 2014-02-11 Yao Qi <yao@codesourcery.com>
7270 * aix-thread.c (aix_thread_xfer_partial): Update comments.
7271 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
7272 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
7273 * gnu-nat.c (gnu_xfer_memory): Likewise.
7274 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7275 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7276 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7277 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7279 2014-02-11 Yao Qi <yao@codesourcery.com>
7281 * target.h (enum target_xfer_error): Rename to ...
7282 (enum target_xfer_status): ... it. New. All users updated.
7283 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
7285 (TARGET_XFER_STATUS_ERROR_P): New macro.
7286 (target_xfer_error_to_string): Remove declaration.
7287 (target_xfer_status_to_string): Declare.
7288 (target_xfer_partial_ftype): Adjust it.
7289 (struct target_ops) <to_xfer_partial>: Return
7290 target_xfer_status. Add argument xfered_len. Update
7292 * target.c (target_xfer_error_to_string): Rename to ...
7293 (target_xfer_status_to_string): ... it. New. All callers
7295 (target_read_live_memory): Likewise. Call target_xfer_partial
7296 instead of target_read.
7297 (memory_xfer_live_readonly_partial): Return
7298 target_xfer_status. Add argument xfered_len.
7299 (raw_memory_xfer_partial): Likewise.
7300 (memory_xfer_partial_1): Likewise.
7301 (memory_xfer_partial): Likewise.
7302 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
7303 properly. Update debug message.
7304 (default_xfer_partial, current_xfer_partial): Likewise.
7305 (target_write_partial): Likewise.
7306 (target_read_partial): Likewise. All callers updated.
7307 (read_whatever_is_readable): Likewise.
7308 (target_write_with_progress): Likewise.
7309 (target_read_alloc_1): Likewise.
7311 * aix-thread.c (aix_thread_xfer_partial): Likewise.
7312 * auxv.c (procfs_xfer_auxv): Likewise.
7313 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
7314 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7315 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7316 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
7317 * corefile.c (read_memory): Adjust.
7318 * corelow.c (core_xfer_partial): Likewise.
7319 * ctf.c (ctf_xfer_partial): Likewise.
7320 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
7322 (darwin_xfer_partial): Likewise.
7323 * exec.c (section_table_xfer_memory_partial): Likewise. All
7325 (exec_xfer_partial): Likewise.
7326 * exec.h (section_table_xfer_memory_partial): Update
7328 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
7330 (gnu_xfer_partial): Likewise.
7331 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
7332 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
7333 (ia64_hpux_xfer_solib_got): Likewise.
7334 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
7335 type of 'partial_len' to ULONGEST.
7336 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7337 * linux-nat.c (linux_xfer_siginfo ): Likewise.
7338 (linux_nat_xfer_partial): Likewise.
7339 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
7340 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
7341 * monitor.c (monitor_xfer_memory): Likewise.
7342 (monitor_xfer_partial): Likewise.
7343 * procfs.c (procfs_xfer_partial): Likewise.
7344 * record-btrace.c (record_btrace_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_memory): Likewise.
7348 (gdbsim_xfer_partial): Likewise.
7349 * remote.c (remote_write_bytes_aux): Likewise. All callers
7351 (remote_write_bytes, remote_read_bytes): Likewise. All
7353 (remote_flash_erase): Likewise. All callers updated.
7354 (remote_write_qxfer): Likewise. All callers updated.
7355 (remote_read_qxfer): Likewise. All callers updated.
7356 (remote_xfer_partial): Likewise.
7357 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7358 (rs6000_xfer_shared_libraries): Likewise.
7359 * sol-thread.c (sol_thread_xfer_partial): Likewise.
7360 (sol_thread_xfer_partial): Likewise.
7361 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7362 (sparc_xfer_partial): Likewise.
7363 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
7365 (spu_xfer_partial): Likewise.
7366 * spu-multiarch.c (spu_xfer_partial): Likewise.
7367 * tracepoint.c (tfile_xfer_partial): Likewise.
7368 * windows-nat.c (windows_xfer_memory): Likewise.
7369 (windows_xfer_shared_libraries): Likewise.
7370 (windows_xfer_partial): Likewise.
7371 * valprint.c: Replace 'target_xfer_error' with
7372 'target_xfer_status' in comments.
7374 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
7376 Checked in by Joel Brobecker <brobecker@adacore.com>.
7377 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
7379 2014-02-11 Joel Brobecker <brobecker@adacore.com>
7381 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
7382 function parameters.
7384 2014-02-10 Will Newton <will.newton@linaro.org>
7386 * elfread.c (elf_rel_plt_read): Look for a .got section if
7387 looking up .got.plt fails.
7388 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
7389 on address passed to elf_gnu_ifunc_record_cache.
7390 (elf_gnu_ifunc_resolve_addr): Likewise.
7391 (elf_gnu_ifunc_resolver_return_stop): Likewise.
7393 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
7395 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
7396 (X_RETTURN): New macro.
7397 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
7399 * sparc64-tdep.c (sparc64_init_abi): Hook
7400 sparc_in_function_epilogue_p.
7402 2014-02-10 Gary Benson <gbenson@redhat.com>
7404 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7405 Rename name_matcher to symbol_matcher.
7407 2014-02-10 Gary Benson <gbenson@redhat.com>
7409 * symfile-debug.c (debug_qf_expand_symtabs_matching):
7410 Use expand_symtabs_file_matcher_ftype and
7411 expand_symtabs_symbol_matcher_ftype.
7413 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7415 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
7416 (struct ada_symbol_cache): New.
7417 (ada_free_symbol_cache): Forward declare.
7418 (struct ada_pspace_data): New.
7419 (ada_pspace_data_handle): New static global.
7420 (get_ada_pspace_data, ada_pspace_data_cleanup)
7421 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
7422 (cache_space, cache): Delete, now folded inside struct
7424 (ada_get_symbol_cache): New function.
7425 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
7427 (_initialize_ada_language): Remove initialization of cache_space.
7428 Move call to observer_attach_inferior_exit up, grouping it
7429 with the other observer registrations inside this function.
7430 Rename command to be more general. Add call to
7431 register_program_space_data_with_cleanup.
7433 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7435 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
7436 ada_new_objfile_observer.
7437 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
7438 (_initialize_tasks): Update uses of ada_new_objfile_observer
7439 and ada_tasks_normal_stop_observer.
7441 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7443 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
7444 returned by the 'Length attribute to integer.
7446 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7448 * ada-lang.c (_initialize_ada_language): Initialize
7449 cache_space obstack.
7451 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7453 * ada-lang.c (HASH_SIZE): New macro.
7454 (struct cache_entry): New type.
7455 (cache_space, cache): New static globals.
7456 (ada_clear_symbol_cache, find_entry): New functions.
7457 (lookup_cached_symbol, cache_symbol): Implement.
7458 (ada_new_objfile_observer, ada_free_objfile_observer): New.
7459 (_initialize_ada_language): Attach ada_new_objfile_observer
7460 and ada_free_objfile_observer.
7462 2014-02-10 Joel Brobecker <brobecker@adacore.com>
7464 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
7465 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
7466 struct block * parameter.
7467 (ada_lookup_symbol_list_worker): Constify local variable "block".
7468 Remove cast which is no longer necessary.
7470 2014-02-10 Doug Evans <xdje42@gmail.com>
7472 Add Guile as an extension language.
7473 * NEWS: Mention Guile scripting.
7474 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
7475 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
7476 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
7477 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
7478 (CLIBS): Add GUILE_LIBS.
7479 (install-guile): New rule.
7480 (guile.o): New rule.
7481 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
7482 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
7483 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
7484 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
7485 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
7486 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
7487 (scm-type.o, scm-utils.o, scm-value.o): New rules.
7488 * configure.ac: New option --with-guile.
7489 * configure: Regenerate.
7490 * config.in: Regenerate.
7491 * auto-load.c: Remove #include "python/python.h". Add #include
7492 "gdb/section-scripts.h".
7493 (source_section_scripts): Handle Guile scripts.
7494 (_initialize_auto_load): Add name of Guile objfile script to
7495 scripts-directory help text.
7496 * breakpoint.c (condition_command): Tweak comment to include Scheme.
7497 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
7498 (struct breakpoint): New member scm_bp_object.
7499 * defs.h (enum command_control_type): New value guile_control.
7500 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
7502 (show_user): Update comment.
7503 (_initialize_cli_cmds): Update help text for "show user". Update help
7504 text for max-user-call-depth.
7505 * cli/cli-script.c: Remove #include "python/python.h". Add #include
7507 (multi_line_command_p): Add guile_control.
7508 (print_command_lines): Handle guile_control.
7509 (execute_control_command, recurse_read_control_structure): Ditto.
7510 (process_next_line): Recognize "guile" commands.
7511 * disasm.c (gdb_disassemble_info): Make non-static.
7512 * disasm.h: #include "dis-asm.h".
7513 (struct gdbarch): Add forward decl.
7514 (gdb_disassemble_info): Declare.
7515 * extension.c: #include "guile/guile.h".
7516 (extension_languages): Add guile.
7517 (get_ext_lang_defn): Handle EXT_LANG_GDB.
7518 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
7519 * gdbtypes.c (get_unsigned_type_max): New function.
7520 (get_signed_type_minmax): New function.
7521 * gdbtypes.h (get_unsigned_type_max): Declare.
7522 (get_signed_type_minmax): Declare.
7523 * guile/README: New file.
7524 * guile/guile-internal.h: New file.
7525 * guile/guile.c: New file.
7526 * guile/guile.h: New file.
7527 * guile/scm-arch.c: New file.
7528 * guile/scm-auto-load.c: New file.
7529 * guile/scm-block.c: New file.
7530 * guile/scm-breakpoint.c: New file.
7531 * guile/scm-disasm.c: New file.
7532 * guile/scm-exception.c: New file.
7533 * guile/scm-frame.c: New file.
7534 * guile/scm-gsmob.c: New file.
7535 * guile/scm-iterator.c: New file.
7536 * guile/scm-lazy-string.c: New file.
7537 * guile/scm-math.c: New file.
7538 * guile/scm-objfile.c: New file.
7539 * guile/scm-ports.c: New file.
7540 * guile/scm-pretty-print.c: New file.
7541 * guile/scm-safe-call.c: New file.
7542 * guile/scm-string.c: New file.
7543 * guile/scm-symbol.c: New file.
7544 * guile/scm-symtab.c: New file.
7545 * guile/scm-type.c: New file.
7546 * guile/scm-utils.c: New file.
7547 * guile/scm-value.c: New file.
7548 * guile/lib/gdb.scm: New file.
7549 * guile/lib/gdb/boot.scm: New file.
7550 * guile/lib/gdb/experimental.scm: New file.
7551 * guile/lib/gdb/init.scm: New file.
7552 * guile/lib/gdb/iterator.scm: New file.
7553 * guile/lib/gdb/printing.scm: New file.
7554 * guile/lib/gdb/types.scm: New file.
7555 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
7556 (VPATH): Add $(GUILE_SRCDIR).
7557 (GUILE_DIR): New variable.
7558 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
7559 (all): Add stamp-guile dependency.
7560 (stamp-guile): New rule.
7561 (clean-guile, install-guile, uninstall-guile): New rules.
7562 (install-only): Add install-guile dependency.
7563 (uninstall): Add uninstall-guile dependency.
7564 (clean): Add clean-guile dependency.
7566 2014-02-09 Doug Evans <xdje42@gmail.com>
7568 Revert this patch (which I approved, mea culpa).
7570 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7572 * Makefile.in (all-lib): Remove.
7573 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7575 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7577 Fix Python stack corruption.
7578 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
7581 2014-02-08 Mark Kettenis <kettenis@gnu.org>
7583 * Makefile.in (all-lib): Remove.
7584 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
7586 2014-02-07 Doug Evans <dje@google.com>
7588 * extension-priv.h (extension_language_script_ops): Add comment.
7589 (extension_language_ops): Add comment.
7590 (active_ext_lang_state): Fix typo in comment.
7592 2014-02-07 Pedro Alves <palves@redhat.com>
7594 PR breakpoints/16292
7595 * infrun.c (handle_signal_stop) <signal arrives while stepping
7596 over a breakpoint>: Switch back to the stepping thread.
7598 2014-02-07 Yao Qi <yao@codesourcery.com>
7600 * target.c (target_xfer_partial): Return zero if LEN is zero.
7602 2014-02-07 Yao Qi <yao@codesourcery.com>
7604 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
7605 (ld_so_xfer_auxv): Likewise.
7606 * bfd-target.c (target_bfd_xfer_partial): Likewise.
7607 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
7608 * corelow.c (core_xfer_partial): Likewise.
7609 * ctf.c (ctf_xfer_partial): Likewise.
7610 * darwin-nat.c (darwin_read_dyld_info): Likewise.
7611 (darwin_xfer_partial): Likewise.
7612 * exec.c (exec_xfer_partial): Likewise.
7613 * gnu-nat.c (gnu_xfer_partial): Likewise.
7614 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
7615 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
7616 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
7617 * linux-nat.c (linux_xfer_siginfo): Likewise.
7618 (linux_proc_xfer_spu): Likewise.
7619 * procfs.c (procfs_xfer_partial): Likewise.
7620 * record-full.c (record_full_xfer_partial): Likewise.
7621 (record_full_core_xfer_partial): Likewise.
7622 * remote-sim.c (gdbsim_xfer_partial): Likewise.
7623 * remote.c (remote_write_qxfer): Likewise.
7624 (remote_write_qxfer, remote_read_qxfer): Likewise.
7625 (remote_xfer_partial): Likewise.
7626 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
7627 (rs6000_xfer_shared_libraries): Likewise.
7628 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
7629 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
7630 (spu_xfer_partial): Likewise.
7631 * target.c (memory_xfer_partial_1): Likewise.
7632 * tracepoint.c (tfile_xfer_partial): Likewise.
7633 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
7634 (windows_xfer_partial): Likewise.
7636 2014-02-07 Yao Qi <yao@codesourcery.com>
7638 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
7640 (core_xfer_shared_libraries_aix): Likewise.
7641 * gdbarch.c, gdbarch.h: Regenerated.
7642 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
7643 ULONGEST. Change 'len_avail' type to ULONGEST.
7644 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
7645 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
7647 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
7649 2014-02-07 Yao Qi <yao@codesourcery.com>
7651 * corefile.c (memory_error): Get 'exception' from ERR and pass
7652 'exception' to throw_error.
7654 2014-02-06 Doug Evans <xdje42@gmail.com>
7656 * configure.ac (libpython checking): Remove all but python.o from
7657 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
7658 * configure: Regenerate.
7660 * Makefile.in (SFILES): Add extension.c.
7661 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
7662 (COMMON_OBS): Add extension.o.
7663 * extension.h: New file.
7664 * extension-priv.h: New file.
7665 * extension.c: New file.
7667 * python/python-internal.h: #include "extension.h".
7668 (gdbpy_auto_load_enabled): Declare.
7669 (gdbpy_apply_val_pretty_printer): Declare.
7670 (gdbpy_apply_frame_filter): Declare.
7671 (gdbpy_preserve_values): Declare.
7672 (gdbpy_breakpoint_cond_says_stop): Declare.
7673 (gdbpy_breakpoint_has_cond): Declare.
7674 (void source_python_script_for_objfile): Delete.
7675 * python/python.c: #include "extension-priv.h".
7676 Delete inclusion of "observer.h".
7677 (extension_language_python): Moved here and renamed from
7678 script_language_python in py-auto-load.c.
7679 Redefined to be of type extension_language_defn.
7680 (python_extension_script_ops): New global.
7681 (python_extension_ops): New global.
7682 (struct python_env): New member previous_active.
7683 (restore_python_env): Call restore_active_ext_lang.
7684 (ensure_python_env): Call set_active_ext_lang.
7685 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
7687 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
7689 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
7691 (gdbpy_eval_from_control_command): Renamed from
7692 eval_python_from_control_command, made static. New arg extlang.
7693 (gdbpy_source_script) Renamed from source_python_script, made static.
7695 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
7696 result to int. New arg extlang.
7697 (gdbpy_source_objfile_script): Renamed from
7698 source_python_script_for_objfile, made static. New arg extlang.
7699 (gdbpy_start_type_printers): Renamed from start_type_printers, made
7700 static. New args extlang, extlang_printers. Change result type to
7702 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
7703 static. New arg extlang. Rename arg printers to extlang_printers
7704 and change type to ext_lang_type_printers *.
7705 (gdbpy_free_type_printers): Renamed from free_type_printers, made
7706 static. Replace argument arg with extlang, extlang_printers.
7707 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
7708 (!HAVE_PYTHON, source_python_script): Delete.
7709 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
7710 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
7711 (!HAVE_PYTHON, start_type_printers): Delete.
7712 (!HAVE_PYTHON, apply_type_printers): Delete.
7713 (!HAVE_PYTHON, free_type_printers): Delete.
7714 (_initialize_python): Delete call to observer_attach_before_prompt.
7715 (finalize_python): Set/restore active extension language.
7716 (gdbpy_finish_initialization) Renamed from
7717 finish_python_initialization, made static. New arg extlang.
7718 (gdbpy_initialized): New function.
7719 * python/python.h: #include "extension.h". Delete #include
7720 "value.h", "mi/mi-cmds.h".
7721 (extension_language_python): Declare.
7722 (GDBPY_AUTO_FILE_NAME): Delete.
7723 (enum py_bt_status): Moved to extension.h and renamed to
7725 (enum frame_filter_flags): Moved to extension.h.
7726 (enum py_frame_args): Moved to extension.h and renamed to
7727 ext_lang_frame_args.
7728 (finish_python_initialization): Delete.
7729 (eval_python_from_control_command): Delete.
7730 (source_python_script): Delete.
7731 (apply_val_pretty_printer): Delete.
7732 (apply_frame_filter): Delete.
7733 (preserve_python_values): Delete.
7734 (gdbpy_script_language_defn): Delete.
7735 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
7736 (start_type_printers, apply_type_printers, free_type_printers): Delete.
7738 * auto-load.c: #include "extension.h".
7739 (GDB_AUTO_FILE_NAME): Delete.
7740 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
7741 (script_language_gdb): Delete, moved to extension.c and renamed to
7742 extension_language_gdb.
7743 (source_gdb_script_for_objfile): Delete.
7744 (auto_load_pspace_info): New member unsupported_script_warning_printed.
7745 (loaded_script): Change type of language member to
7746 struct extension_language_defn *.
7747 (init_loaded_scripts_info): Initialize
7748 unsupported_script_warning_printed.
7749 (maybe_add_script): Make static. Change type of language arg to
7750 struct extension_language_defn *.
7751 (clear_section_scripts): Reset unsupported_script_warning_printed.
7752 (auto_load_objfile_script_1): Rewrite to use extension language API.
7753 (auto_load_objfile_script): Make public. Remove support-compiled-in
7754 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
7755 (source_section_scripts): Rewrite to use extension language API.
7756 (load_auto_scripts_for_objfile): Rewrite to use
7757 auto_load_scripts_for_objfile.
7758 (collect_matching_scripts_data): Change type of language member to
7759 struct extension_language_defn *.
7760 (auto_load_info_scripts): Change type of language arg to
7761 struct extension_language_defn *.
7762 (unsupported_script_warning_print): New function.
7763 (script_not_found_warning_print): Make static.
7764 (_initialize_auto_load): Rewrite construction of scripts-directory
7766 * auto-load.h (struct objfile): Add forward decl.
7767 (struct script_language): Delete.
7768 (struct auto_load_pspace_info): Add forward decl.
7769 (struct extension_language_defn): Add forward decl.
7770 (maybe_add_script): Delete.
7771 (auto_load_objfile_script): Declare.
7772 (script_not_found_warning_print): Delete.
7773 (auto_load_info_scripts): Update prototype.
7774 (auto_load_gdb_scripts_enabled): Declare.
7775 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
7776 auto_load_python_scripts_enabled and made public.
7777 (script_language_python): Delete, moved to python.c.
7778 (gdbpy_script_language_defn): Delete.
7779 (info_auto_load_python_scripts): Update to use
7780 extension_language_python.
7782 * breakpoint.c (condition_command): Replace call to
7783 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
7784 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
7785 with call to breakpoint_ext_lang_cond_says_stop.
7786 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
7787 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
7788 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
7789 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
7791 (local_setattro): Print name of extension language with existing
7794 * valprint.c (val_print, value_print): Update to call
7795 apply_ext_lang_val_pretty_printer.
7796 * cp-valprint.c (cp_print_value): Update call to
7797 apply_ext_lang_val_pretty_printer.
7798 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
7799 (gdbpy_apply_val_pretty_printer): Renamed from
7800 apply_val_pretty_printer. New arg extlang.
7801 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
7803 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
7804 extension language API.
7805 * cli/cli-script.c (execute_control_command): Update to call
7806 eval_ext_lang_from_control_command.
7808 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
7809 enum ext_lang_bt_status values. Update call to
7810 apply_ext_lang_frame_filter.
7811 (mi_cmd_stack_list_locals): Ditto.
7812 (mi_cmd_stack_list_args): Ditto.
7813 (mi_cmd_stack_list_variables): Ditto.
7814 * mi/mi-main.c: Delete #include "python/python-internal.h".
7815 Add #include "extension.h".
7816 (mi_cmd_list_features): Replace reference to python internal variable
7817 gdb_python_initialized with call to ext_lang_initialized_p.
7819 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
7820 Update to use enum ext_lang_frame_args. Update to call
7821 apply_ext_lang_frame_filter.
7822 * python/py-framefilter.c (extract_sym): Update to use enum
7824 (extract_value, py_print_type, py_print_value): Ditto.
7825 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
7826 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
7827 (py_print_frame): Ditto.
7828 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
7829 New arg extlang. Update to use enum ext_lang_bt_status.
7831 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
7832 finish_python_initialization. Replace with call to
7833 finish_ext_lang_initialization.
7835 * typeprint.c (do_free_global_table): Update to call
7836 free_ext_lang_type_printers.
7837 (create_global_typedef_table): Update to call
7838 start_ext_lang_type_printers.
7839 (find_global_typedef): Update to call apply_ext_lang_type_printers.
7840 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
7841 (type_print_options): Change type of global_printers from "void *"
7842 to "struct ext_lang_type_printers *".
7844 * value.c (preserve_values): Update to call preserve_ext_lang_values.
7845 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
7846 (gdbpy_preserve_values): Renamed from preserve_python_values.
7848 (!HAVE_PYTHON, preserve_python_values): Delete.
7850 * utils.c (quit_flag): Delete, moved to extension.c.
7851 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
7854 * eval.c: Delete #include "python/python.h".
7855 * main.c: Delete #include "python/python.h".
7857 * defs.h: Update comment.
7859 2014-02-06 Joel Brobecker <brobecker@adacore.com>
7863 2014-02-05 Mark Kettenis <kettenis@gnu.org>
7865 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
7868 2014-02-05 Yao Qi <yao@codesourcery.com>
7870 * remote.c (remote_pass_signals): Remove local 'buf' and use
7872 (remote_program_signals): Likewise.
7874 2014-02-05 Yao Qi <yao@codesourcery.com>
7876 * ctf.c: Include "inferior.h" and "gdbthread.h".
7877 (CTF_PID): A new macro.
7878 (ctf_open): Call inferior_appeared and add_thread_silent.
7879 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
7880 (ctf_thread_alive): New function.
7881 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
7883 2014-02-05 Yao Qi <yao@codesourcery.com>
7887 2013-05-24 Yao Qi <yao@codesourcery.com>
7889 * tracepoint.c (TFILE_PID): Remove.
7890 (tfile_open): Don't add thread and inferior.
7891 (tfile_close): Don't set 'inferior_ptid'. Don't call
7892 exit_inferior_silent.
7893 (tfile_thread_alive): Remove.
7894 (init_tfile_ops): Don't set field 'to_thread_alive' of
7897 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
7899 * remote.c (remote_start_remote): Call remote_check_symbols even
7900 if only symbol-file (not file) has been given.
7902 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7904 * gdbarch.sh (skip_entrypoint): New callback.
7905 * gdbarch.c, gdbarch.h: Regenerate.
7906 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
7907 * infrun.c (fill_in_stop_func): Likewise.
7908 * ppc-linux-tdep.c: Include "elf/ppc64.h".
7909 (ppc_elfv2_elf_make_msymbol_special): New function.
7910 (ppc_elfv2_skip_entrypoint): Likewise.
7911 (ppc_linux_init_abi): Install them for ELFv2.
7913 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7915 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
7916 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
7917 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
7918 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
7919 structures returned in GPRs.
7921 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7923 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
7924 offset to the stack parameter list for the ELFv2 ABI.
7926 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7928 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
7929 set_gdbarch_convert_from_func_ptr_addr and
7930 set_gdbarch_elf_make_msymbol_special for ELFv1.
7931 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
7932 function descriptors on ELFv1.
7933 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
7934 set up r12 at function entry.
7936 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7938 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
7939 (struct gdbarch_tdep): New member elf_abi.
7941 * rs6000-tdep.c: Include "elf/ppc64.h".
7942 (rs6000_gdbarch_init): Detect ELF ABI version.
7944 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7946 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
7947 within a register pair holding a DFP 128-bit value on little-endian.
7948 (ppc64_sysv_abi_return_value_base): Likewise.
7949 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
7950 (dfp_pseudo_register_write): Likewise.
7952 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7954 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
7955 offset on little-endian when passing _Decimal32.
7956 (ppc64_sysv_abi_return_value_base): Likewise for return values.
7958 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7960 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
7961 of the overlapped FP register within the VSX register on little-
7963 (efpr_pseudo_register_write): Likewise.
7965 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7967 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
7968 offset on little-endian when passing small structures.
7970 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7972 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
7973 (struct ppc64_sysv_argpos): New data structure.
7974 (ppc64_sysv_abi_push_float): Remove.
7975 (ppc64_sysv_abi_push_val): New function.
7976 (ppc64_sysv_abi_push_integer): Likewise.
7977 (ppc64_sysv_abi_push_freg): Likewise.
7978 (ppc64_sysv_abi_push_vreg): Likewise.
7979 (ppc64_sysv_abi_push_param): Likewise.
7980 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
7981 (ppc64_sysv_abi_return_value_base): New function.
7982 (ppc64_sysv_abi_return_value): Refactor to use it.
7984 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7986 * NEWS: Document new target powerpc64le-*-linux*.
7988 2014-02-04 Mark Kettenis <kettenis@gnu.org>
7990 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
7991 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
7993 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
7994 register set used in ELF core dumps. Add floating-point register set.
7996 2014-02-03 Kevin Buettner <kevinb@redhat.com>
7998 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
7999 dwarf2_to_gdb[] table using symbolic constants. Adjust
8000 penultimate entry from number representing the PC register
8001 to symbolic constant representing the MDR register. Add
8002 constant for the PC register to the end of the table.
8004 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8006 * bsd-kvm.c: Include <sys/param.h>
8008 2014-02-03 Mark Kettenis <kettenis@gnu.org>
8010 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
8012 2014-01-31 Joel Brobecker <brobecker@adacore.com>
8014 * ada-lang.h (clear_ada_sym_cache): Delete.
8016 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8018 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
8020 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
8022 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
8023 the sigreturn register save area only if the syscall is
8026 2014-01-29 Joel Brobecker <brobecker@adacore.com>
8028 * valops.c (value_slice): Minor reformatting.
8030 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
8032 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
8034 2014-01-28 Joel Brobecker <brobecker@adacore.com>
8036 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
8038 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
8039 (ada_ignore_descriptive_types_p): New static global.
8040 (find_parallel_type_by_descriptive_type): Return immediately
8041 if ada_ignore_descriptive_types_p is set.
8042 (_initialize_ada_language): Register new commands "maintenance
8043 set ada", "maintenance show ada", "maintenance set ada
8044 ignore-descriptive-types" and "maintenance show ada
8045 ignore-descriptive-types".
8046 * NEWS: Add entry for new "maint ada set/show
8047 ignore-descriptive-types" commands.
8049 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
8051 * record-btrace.c (record_btrace_close): Call btrace_teardown
8054 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8056 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
8059 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8061 * ada-typeprint (type_is_full_subrange_of_target_type):
8063 (print_range): Add parameter bounds_prefered_p. If not set,
8064 try printing range types using the name of their base type.
8065 (print_range_type): Add parameter bounds_prefered_p.
8066 Use it in call to print_range.
8067 (print_array_type, ada_print_type): Update calls to print_range
8068 and print_range_type.
8070 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8072 * ada-typeprint.c (print_array_type, print_choices, print_range)
8073 (print_range_bound, print_dynamic_range_bound, print_range_type):
8076 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8078 * ada-typeprint.c (print_range): Add missing empty line
8079 after local declaration.
8081 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8083 * ada-valprint.c (print_optional_low_bound): Get index_type's
8084 target type for as long as it is a TYPE_CODE_RANGE.
8086 2014-01-27 Joel Brobecker <brobecker@adacore.com>
8088 * procfs.c (procfs_make_note_section): Remove assertion and
8091 2014-01-24 Yao Qi <yao@codesourcery.com>
8093 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
8094 * corelow.c (get_core_siginfo): Likewise.
8096 2014-01-24 Yao Qi <yao@codesourcery.com>
8098 * remote.c (remote_write_bytes_aux): Change type of 'len' to
8099 ULONGEST. Don't check 'len' is negative.
8100 (remote_write_bytes): Change type of 'len' to ULONGEST.
8102 2014-01-23 Tom Tromey <tromey@redhat.com>
8105 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
8106 Handle exception from frame.block.
8107 (FrameVars.fetch_frame_locals): Likewise.
8109 2014-01-23 Tom Tromey <tromey@redhat.com>
8112 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
8113 on a NULL pointer. Move "goto error" to correct place.
8115 2014-01-23 Tom Tromey <tromey@redhat.com>
8118 * python/py-framefilter.c (apply_frame_filter): Call
8119 ensure_python_env after computing gdbarch.
8121 2014-01-23 Yao Qi <yao@codesourcery.com>
8123 * target.c (raw_memory_xfer_partial): Change argument type
8124 from void * to gdb_byte *.
8125 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
8127 2014-01-22 Doug Evans <dje@google.com>
8129 New gdbserver option --debug-format=timestamp.
8132 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
8134 * syscalls/s390x-linux.xml: New file.
8135 * syscalls/s390-linux.xml: New file.
8136 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
8137 (XML_SYSCALL_FILENAME_S390X): Likewise.
8138 (op_svc): New enum value for SVC opcode.
8139 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
8140 (s390_linux_get_syscall_number): New function.
8141 (s390_gdbarch_init): Register '*get_syscall_number' and the
8142 syscall xml file name.
8143 * data-directory/Makefile.in (SYSCALLS_FILES): Add
8144 "s390-linux.xml" and "s390x-linux.xml".
8145 * NEWS: Announce new feature.
8147 2014-01-22 Baruch Siach <baruch@tkos.co.il>
8149 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
8151 2014-01-22 Pedro Alves <palves@redhat.com>
8153 * xtensa-config.c: Include defs.h.
8155 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8157 * common/common-utils.h: Add "ARI:" comment beside __func__
8160 2014-01-22 Joel Brobecker <brobecker@adacore.com>
8162 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
8163 documentation a bit.
8165 2014-01-21 Roland McGrath <mcgrathr@google.com>
8167 * configure.ac: Call AM_PROG_INSTALL_STRIP.
8168 * configure: Regenerate.
8169 * aclocal.m4: Regenerate.
8170 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
8171 New substituted variables.
8172 (install-strip): New target.
8173 (INSTALL_SCRIPT): New substituted variable.
8174 (FLAGS_TO_PASS): Add it.
8175 (install-only): Use $(INSTALL_SCRIPT) rather than
8176 $(INSTALL_PROGRAM) for gcore.
8178 2014-01-20 Tom Tromey <tromey@redhat.com>
8180 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
8183 2014-01-20 Tom Tromey <tromey@redhat.com>
8185 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
8186 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
8187 (deprecated_cmd_warning, complete_on_cmdlist): Update.
8188 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
8189 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
8190 (struct cmd_list_element) <flags>: Remove.
8191 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
8192 doc_allocated>: New fields.
8193 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
8195 * maint.c (maintenance_do_deprecate): Update.
8196 * top.c (execute_command): Update.
8198 2014-01-20 Baruch Siach <baruch@tkos.co.il>
8200 * xtensa-linux-nat.c: Include asm/ptrace.h.
8202 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8204 * Makefile.in (SFILES): Add d-support.c.
8205 (COMMON_OBS): Add d-support.o.
8206 * d-lang.h (d_parse_symbol): Add comment, now defined in
8208 * d-lang.c (parse_call_convention)
8209 (parse_attributes, parse_function_types)
8210 (parse_function_args, parse_type, parse_identifier)
8211 (call_convention_p, d_parse_symbol): Move functions to ...
8212 * d-support.c: ... New file.
8214 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8216 * d-lang.h (d_parse_symbol): Add declaration.
8217 * d-lang.c (extract_identifiers)
8218 (extract_type_info): Remove functions.
8219 (parse_call_convention, parse_attributes)
8220 (parse_function_types, parse_function_args)
8221 (parse_type, parse_identifier, call_convention_p)
8222 (d_parse_symbol): New functions.
8223 (d_demangle): Use d_parse_symbol to demangle D symbols.
8225 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8227 * d-lang.h (struct builtin_d_type): New data type.
8228 (builtin_d_type): Add declaration.
8229 * d-lang.c (d_language_arch_info, build_d_types)
8230 (builtin_d_type): New functions.
8231 (enum d_primitive_types): New data type.
8232 (d_language_defn): Change c_language_arch_info to
8233 d_language_arch_info.
8234 (d_type_data): New static variable.
8235 (_initialize_d_language): Initialize d_type_data.
8237 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8239 * d-lang.h (d_main_name): Add declaration.
8240 * d-lang.c (d_main_name): New function.
8241 * symtab.c (find_main_name): Add call to d_main_name.
8243 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8245 * d-lang.c (d_language_defn): Change macro_expansion_c to
8248 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
8250 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8252 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
8254 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
8255 gdb_exception" declaration.
8256 * remote.c (getpkt_or_notif_sane): Likewise.
8258 2014-01-17 Doug Evans <dje@google.com>
8260 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
8261 function, contents of dirnames_to_char_ptr_vec_append moved here.
8262 (delim_string_to_char_ptr_vec): New function.
8263 (dirnames_to_char_ptr_vec_append): Rewrite.
8264 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
8266 2014-01-17 Doug Evans <dje@google.com>
8268 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
8270 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
8271 #include "common-utils.h".
8272 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
8273 * common/vec.h (VEC_ASSERT_PASS): Update.
8274 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
8275 (MACH_CHECK_ERROR): Update.
8277 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
8279 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
8281 * gdbarch.h: Regenerate.
8283 2014-01-16 Tom Tromey <tromey@redhat.com>
8285 * value.c (struct value) <regnum>: Move earlier.
8287 2014-01-16 Tom Tromey <tromey@redhat.com>
8289 * remote.c (extended_remote_create_inferior): Rename from
8290 extended_remote_create_inferior_1. Add "ops" argument. Remove
8293 2014-01-16 Pedro Alves <palves@redhat.com>
8295 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
8296 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
8299 2014-01-16 Doug Evans <dje@google.com>
8301 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
8303 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8305 * btrace.h (btrace_thread_flag): New.
8306 (struct btrace_thread_info) <flags>: New.
8307 * record-btrace.c (record_btrace_resume_thread)
8308 (record_btrace_find_thread_to_move, btrace_step_no_history)
8309 (btrace_step_stopped, record_btrace_start_replaying)
8310 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
8311 (record_btrace_find_resume_thread): New.
8312 (record_btrace_resume, record_btrace_wait): Extend.
8313 (record_btrace_can_execute_reverse): New.
8314 (record_btrace_open): Fail in non-stop mode.
8315 (record_btrace_set_replay): Split into this, ...
8316 (record_btrace_stop_replaying): ... this, ...
8317 (record_btrace_clear_histories): ... and this.
8318 (init_record_btrace_ops): Init to_can_execute_reverse.
8319 * NEWS: Announce it.
8321 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8323 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
8324 (forward_target_decr_pc_after_break)
8325 (target_decr_pc_after_break): New.
8326 * target.c (forward_target_decr_pc_after_break)
8327 (target_decr_pc_after_break): New.
8328 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
8329 instead of gdbarch_decr_pc_after_break.
8330 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8331 instead of gdbarch_decr_pc_after_break.
8332 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
8333 instead of gdbarch_decr_pc_after_break.
8334 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
8335 instead of gdbarch_decr_pc_after_break.
8336 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
8337 instead of gdbarch_decr_pc_after_break.
8338 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
8339 instead of gdbarch_decr_pc_after_break.
8341 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8343 * btrace.c: Include regcache.h.
8344 (btrace_add_pc): New.
8345 (btrace_enable): Call btrace_add_pc.
8346 (btrace_is_empty): New.
8347 * btrace.h (btrace_is_empty): New.
8348 * record-btrace.c (require_btrace, record_btrace_info): Call
8351 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8353 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
8354 Support delta reads.
8355 (linux_disable_btrace): Change return type.
8356 * common/linux-btrace.h (linux_read_btrace): Change parameters
8357 and return type to allow error reporting. Update users.
8358 (linux_disable_btrace): Change return type. Update users.
8359 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
8361 (btrace_error): New.
8362 (btrace_block) <begin>: Comment on BEGIN == 0.
8363 * btrace.c (btrace_compute_ftrace): Start from the end of
8365 (btrace_stitch_trace, btrace_clear_history): New.
8366 (btrace_fetch): Read delta trace, return if replaying.
8367 (btrace_clear): Move clear history code to btrace_clear_history.
8368 (parse_xml_btrace): Throw an error if parsing failed.
8369 * target.h (struct target_ops) <to_read_btrace>: Change parameters
8370 and return type to allow error reporting.
8371 (target_read_btrace): Change parameters and return type to allow
8373 * target.c (target_read_btrace): Update.
8374 * remote.c (remote_read_btrace): Support delta reads. Pass
8376 * NEWS: Announce it.
8378 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8380 * record.h (record_btrace_frame_unwind)
8381 (record_btrace_tailcall_frame_unwind): New declarations.
8382 * dwarf2-frame: Include record.h
8383 (dwarf2_frame_cfa): Throw an error for btrace frames.
8384 * record-btrace.c: Include hashtab.h.
8385 (btrace_get_bfun_name): New.
8386 (btrace_call_history): Call btrace_get_bfun_name.
8387 (struct btrace_frame_cache): New.
8389 (bfcache_hash, bfcache_eq, bfcache_new): New.
8390 (btrace_get_frame_function): New.
8391 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
8392 (record_btrace_frame_this_id): Compute own id.
8393 (record_btrace_frame_prev_register): Provide PC, throw_error
8394 for all other registers.
8395 (record_btrace_frame_sniffer): Detect btrace frames.
8396 (record_btrace_tailcall_frame_sniffer): New.
8397 (record_btrace_frame_dealloc_cache): New.
8398 (record_btrace_frame_unwind): Add new functions.
8399 (record_btrace_tailcall_frame_unwind): New.
8400 (_initialize_record_btrace): Allocate cache.
8401 * btrace.c (btrace_clear): Call reinit_frame_cache.
8402 * NEWS: Announce it.
8404 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8406 * record-btrace.c (record_btrace_set_replay)
8407 (record_btrace_goto_begin, record_btrace_goto_end)
8408 (record_btrace_goto): New.
8409 (init_record_btrace_ops): Initialize them.
8410 * NEWS: Announce it.
8412 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8414 * record-btrace.c (record_btrace_find_new_threads)
8415 (record_btrace_thread_alive): New.
8416 (init_record_btrace_ops): Initialize to_find_new_threads and
8419 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8421 * record-btrace.c (record_btrace_resume): New.
8422 (record_btrace_wait): New.
8423 (init_record_btrace_ops): Initialize to_wait and to_resume.
8425 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8427 * record-btrace.c (record_btrace_xfer_partial)
8428 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
8429 (record_btrace_allow_memory_access): New.
8430 (init_record_btrace_ops): Initialize new methods.
8431 * target.c (raw_memory_xfer_partial): Bail out if target reports
8432 that this memory is not available.
8434 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8436 * target.h (target_ops) <to_insert_breakpoint>
8437 <to_remove_breakpoint>: Add target_ops parameter.
8438 (forward_target_insert_breakpoint): New.
8439 (forward_target_remove_breakpoint): New.
8440 (memory_remove_breakpoint, memory_insert_breakpoint):
8441 Add target_ops parameter.
8442 * target.c (target_insert_breakpoint): Split into this and ...
8443 (forward_target_insert_breakpoint): ... this.
8444 (target_remove_breakpoint): Split into this and ...
8445 (forward_target_remove_breakpoint): ... this.
8446 (debug_to_insert_breakpoint): Add target_ops parameter.
8447 Call forward_target_insert_breakpoint.
8448 (debug_to_remove_breakpoint): Add target_ops parameter.
8449 Call forward_target_remove_breakpoint.
8450 (update_current_target): Do not inherit or default to_insert_breakpoint
8451 and to_remove_breakpoint.
8452 * corelow.c (ignore): Add target_ops parameter.
8453 * exec.c (ignore): Add target_ops parameter.
8454 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
8455 Add target_ops parameter.
8456 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
8457 Add target_ops parameter.
8458 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
8459 Add target_ops parameter.
8460 * record-full.c (record_full_beneath_to_insert_breakpoint)
8461 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
8462 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
8463 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
8464 (record_full_core_remove_breakpoint): Add target_ops parameter.
8466 (record_full_beneath_to_insert_breakpoint_ops)
8467 (record_full_beneath_to_remove_breakpoint_ops)
8468 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
8469 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
8470 tmp_to_remove_breakpoint_ops,
8471 record_full_beneath_to_insert_breakpoint_ops, and
8472 record_full_beneath_to_remove_breakpoint_ops.
8473 * remote-m32r-sdi.c (m32r_insert_breakpoint)
8474 (m32r_remove_breakpoint): Add target_ops parameter.
8475 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
8476 Add target_ops parameter.
8477 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
8478 Add target_ops parameter.
8480 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8481 Markus Metzger <markus.t.metzger@intel.com>
8483 * record-btrace.c: Include frame-unwind.h.
8484 (record_btrace_frame_unwind_stop_reason)
8485 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
8486 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
8488 (init_record_btrace_ops): Install it.
8490 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8492 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
8495 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8497 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
8500 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8502 * frame-unwind.c: Include target.h.
8503 (frame_unwind_try_unwinder): New function with code from ...
8504 (frame_unwind_find_by_frame): ... here. New variable
8505 unwinder_from_target, call also target_get_unwinder)
8506 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
8507 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
8508 * target.h (struct target_ops): New fields to_get_unwinder and
8509 to_get_tailcall_unwinder.
8510 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
8512 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8514 * record-btrace.c (record_btrace_fetch_registers)
8515 (record_btrace_store_registers)
8516 (record_btrace_to_prepare_to_store): New.
8517 (init_record_btrace_ops): Add the above.
8519 2014-01-16 Tom Tromey <tromey@redhat.com>
8521 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
8522 * target.h (struct target_ops) <to_prepare_to_store>: Add
8524 (target_prepare_to_store): Add argument.
8525 * target.c (debug_to_prepare_to_store): Add argument.
8526 (update_current_target): Update.
8527 * remote.c (remote_prepare_to_store): Add 'self' argument.
8528 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
8529 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
8530 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
8531 * record-full.c (record_full_core_prepare_to_store): Add 'self'
8533 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
8534 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
8535 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
8536 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
8537 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
8539 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8541 * btrace.h (replay) <replay>: New.
8542 (btrace_is_replaying): New.
8543 * btrace.c (btrace_clear): Free replay iterator.
8544 (btrace_is_replaying): New.
8545 * record-btrace.c (record_btrace_is_replaying): New.
8546 (record_btrace_info): Print insn number if replaying.
8547 (record_btrace_insn_history): Start at replay position.
8548 (record_btrace_call_history): Start at replay position.
8549 (init_record_btrace_ops): Init to_record_is_replaying.
8551 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8553 * record-btrace.c (record_btrace_insn_history_range): Include
8555 (record_btrace_insn_history_from): Adjust range.
8556 (record_btrace_call_history_range): Include
8558 (record_btrace_call_history_from): Adjust range.
8559 * NEWS: Announce changes.
8561 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8563 * record.h (enum record_print_flag)
8564 <record_print_indent_calls>: New.
8565 * record.c (get_call_history_modifiers): Recognize /c modifier.
8566 (_initialize_record): Document /c modifier.
8567 * record-btrace.c (btrace_call_history): Add btinfo parameter.
8568 Reorder fields. Optionally indent the function name. Update
8570 * NEWS: Announce changes.
8572 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8574 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
8576 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8578 * btrace.c (ftrace_new_function): Start counting at one.
8579 * record-btrace.c (record_btrace_info): Adjust number of calls
8581 * NEWS: Announce it.
8583 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8585 * record-btrace.c (btrace_call_history_insn_range): Print
8586 insn range as [begin, end].
8588 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8590 * btrace.h (struct btrace_func_link): New.
8591 (enum btrace_function_flag): New.
8592 (struct btrace_inst): Rename to ...
8593 (struct btrace_insn): ...this. Update all users.
8594 (struct btrace_func) <ibegin, iend>: Remove.
8595 (struct btrace_func_link): New.
8596 (struct btrace_func): Rename to ...
8597 (struct btrace_function): ...this. Update all users.
8598 (struct btrace_function) <segment, flow, up, insn, insn_offset)
8599 (number, level, flags>: New.
8600 (struct btrace_insn_iterator): Rename to ...
8601 (struct btrace_insn_history): ...this.
8603 (struct btrace_insn_iterator, btrace_call_iterator): New.
8604 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
8605 (struct btrace_target_info) <begin, end, level>
8606 <insn_history, call_history>: New.
8607 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8608 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8609 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8610 (btrace_call_number, btrace_call_begin, btrace_call_end)
8611 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8612 (btrace_find_function_by_number, btrace_set_insn_history)
8613 (btrace_set_call_history): New.
8614 * btrace.c (btrace_init_insn_iterator)
8615 (btrace_init_func_iterator, compute_itrace): Remove.
8616 (ftrace_print_function_name, ftrace_print_filename)
8617 (ftrace_skip_file): Change
8619 (ftrace_init_func): Remove.
8620 (ftrace_debug): Use new btrace_function fields.
8621 (ftrace_function_switched): Also consider gaining and
8622 losing symbol information).
8623 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
8624 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
8625 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
8627 (ftrace_new_function): Move. Remove debug print.
8628 (ftrace_update_lines, ftrace_update_insns): New.
8629 (ftrace_update_function): Check for call, ret, and jump.
8630 (compute_ftrace): Renamed to ...
8631 (btrace_compute_ftrace): ...this. Rewritten to compute call
8633 (btrace_fetch, btrace_clear): Updated.
8634 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
8635 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
8636 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
8637 (btrace_call_number, btrace_call_begin, btrace_call_end)
8638 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
8639 (btrace_find_function_by_number, btrace_set_insn_history)
8640 (btrace_set_call_history): New.
8641 * record-btrace.c (require_btrace): Use new btrace thread
8643 (record_btrace_info, btrace_insn_history)
8644 (record_btrace_insn_history, record_btrace_insn_history_range):
8645 Use new btrace thread info fields and new iterator.
8646 (btrace_func_history_src_line): Rename to ...
8647 (btrace_call_history_src_line): ...this. Use new btrace
8649 (btrace_func_history): Rename to ...
8650 (btrace_call_history): ...this. Use new btrace thread info
8651 fields and new iterator.
8652 (record_btrace_call_history, record_btrace_call_history_range):
8653 Use new btrace thread info fields and new iterator.
8655 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8657 * frame.h (frame_id_build_unavailable_stack_special): New.
8658 * frame.c (frame_id_build_unavailable_stack_special): New.
8660 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8662 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
8663 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
8664 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
8666 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
8667 (i386_insn_is_jump, i386_jmp_p): New.
8668 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
8669 insn_is_jump to gdbarch.
8670 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
8671 * gdbarch.h: Regenerated.
8672 * gdbarch.c: Regenerated.
8673 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
8674 (default_insn_is_jump): New.
8675 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
8676 (default_insn_is_jump): New.
8678 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8680 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
8682 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
8683 (btrace_read_type) <btrace_read_new>: Change to ...
8684 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
8686 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
8688 * common/linux-btrace.c (linux_read_btrace): Free trace from
8691 2014-01-15 Doug Evans <dje@google.com>
8693 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
8696 2014-01-15 Tom Tromey <tromey@redhat.com>
8698 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
8699 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
8700 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
8701 (set_objfile_main_name): New function.
8702 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
8703 language_of_main>: New fields.
8704 (set_objfile_main_name): Declare.
8705 * symtab.c (find_main_name): Loop over objfiles to find the main
8707 (set_main_name): Now static.
8708 (get_main_info): Add comment.
8709 * symtab.h (set_main_name): Don't declare.
8711 2014-01-15 Tom Tromey <tromey@redhat.com>
8713 * symtab.c (main_progspace_key): New global.
8714 (struct main_info): New.
8715 (name_of_main, language_of_main): Remove.
8716 (get_main_info, main_info_cleanup): New function.
8717 (set_main_name, main_name, main_language): Use get_main_info.
8718 (_initialize_symtab): Initialize main_progspace_key.
8720 2014-01-15 Tom Tromey <tromey@redhat.com>
8722 * dbxread.c (process_one_symbol): Update.
8723 * dwarf2read.c (read_partial_die): Update.
8724 * symfile.c (set_initial_language): Call main_language.
8725 * symtab.c (language_of_main): Now static.
8726 (set_main_name): Add 'lang' parameter.
8727 (find_main_name): Update.
8728 (main_language): New function.
8729 (symtab_observer_executable_changed): Update.
8730 * symtab.h (set_main_name): Update.
8731 (language_of_main): Remove.
8732 (main_language): Declare.
8734 2014-01-15 Tom Tromey <tromey@redhat.com>
8736 * symfile.c (init_entry_point_info): Use new "initialized" field.
8738 * objfiles.h (struct entry_point) <initialized>: New field.
8739 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
8740 (struct objfile) <ei>: ...here. Remove.
8741 * objfiles.c (entry_point_address_query): Update.
8743 2014-01-15 Tom Tromey <tromey@redhat.com>
8745 * objfiles.c (entry_point_address_query): Relocate entry point
8747 (objfile_relocate1): Do not relocate entry point address.
8748 * objfiles.h (struct entry_info) <entry_point>: Update comment.
8749 <the_bfd_section_index>: New field.
8750 * symfile.c (init_entry_point_info): Find the entry point's
8753 2014-01-15 Tom Tromey <tromey@redhat.com>
8755 * solib-frv.c (enable_break): Use entry_point_address_query.
8757 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8759 * NEWS: Add note on improved process record-replay on
8760 arm*-linux* targets.
8762 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8764 * arm-tdep.c (enum arm_record_result): New enum.
8765 (arm_record_unsupported_insn): New function.
8766 (arm_record_coproc_data_proc): Removed.
8767 (thumb2_record_ld_st_multiple): New function.
8768 (thumb2_record_ld_st_dual_ex_tbb): New function.
8769 (thumb2_record_data_proc_sreg_mimm): New function.
8770 (thumb2_record_ps_dest_generic): New function.
8771 (thumb2_record_branch_misc_cntrl): New function.
8772 (thumb2_record_str_single_data): New function.
8773 (thumb2_record_ld_mem_hints): New function.
8774 (thumb2_record_ld_word): New function.
8775 (thumb2_record_lmul_lmla_div): New function.
8776 (thumb2_record_decode_insn_handler): New function.
8777 (decode_insn): Add thumb32 instruction handlers.
8779 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8781 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
8782 (struct arm_linux_record_tdep): Declare.
8783 (arm_canonicalize_syscall): New function.
8784 (arm_all_but_pc_registers_record): New function.
8785 (arm_linux_syscall_record): New function.
8786 (arm_linux_init_abi): Add syscall recording constructs.
8787 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
8788 decoding. (arm_record_coproc_data_proc): Update arm syscall
8790 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
8791 <arm_syscall_record>: New field.
8792 * configure.tgt (arm*-*-linux*): Add linux-record.o to
8795 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8797 * arm-tdep.c (thumb_record_misc): Update to use sp as base
8798 register for push instruction recording.
8800 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8802 * arm-tdep.c (thumb_record_misc): Update to correct logical
8803 error while recording ldm, ldmia and pop instructions.
8805 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
8807 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
8809 2014-01-15 Pedro Alves <palves@redhat.com>
8811 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
8812 (go32_resume, go32_fetch_registers, store_register)
8813 (go32_store_registers, go32_prepare_to_store)
8814 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
8815 (go32_create_inferior, go32_can_run, go32_terminal_init)
8816 (go32_terminal_inferior, go32_terminal_ours): Delete forward
8819 2014-01-15 Tom Tromey <tromey@redhat.com>
8821 * target.h (async_callback_ftype): New typedef.
8822 (struct target_ops) <to_async>: Use it.
8824 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8826 * python/py-value.c (get_field_type): Remove unnecessary curly
8827 braces for single-statement if block.
8829 2014-01-15 Joel Brobecker <brobecker@adacore.com>
8831 * python/py-type.c (convert_field): Add missing empty line
8834 2014-01-14 Doug Evans <dje@google.com>
8836 * symfile.h (expand_symtabs_matching): Renamed from
8837 expand_partial_symbol_names. Update prototype.
8838 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8839 * symfile.c (expand_symtabs_matching): Renamed from
8840 expand_partial_symbol_names. New args file_matcher, kind.
8841 Rename arg fun to symbol_matcher.
8842 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
8843 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
8844 ada_expand_partial_symbol_name.
8845 (ada_make_symbol_completion_list): Update to call
8846 expand_symtabs_matching.
8847 (ada_add_global_exceptions): Call expand_symtabs_matching.
8848 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
8849 call map_symbol_filenames.
8850 * symtab.c (sources_info): Update to call map_symbol_filenames.
8851 (search_symbols): Call expand_symtabs_matching.
8852 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
8853 (default_make_symbol_completion_list_break_on): Update to call
8854 expand_symtabs_matching.
8855 (make_source_files_completion_list): Update to call
8856 map_symbol_filenames.
8858 2014-01-14 Doug Evans <dje@google.com>
8860 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
8861 (expand_symtabs_symbol_matcher_ftype): New typedef.
8862 (quick_symbol_functions.expand_symtabs_matching): Update to use.
8863 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8864 * symfile.c (expand_partial_symbol_names): Update to use
8865 expand_symtabs_symbol_matcher_ftype.
8866 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
8867 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8868 Arg name_matcher renamed to symbol_matcher.
8869 * psymtab.c (recursively_search_psymtabs): Update to use
8870 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
8872 (expand_symtabs_matching_via_partial): Update to use
8873 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
8874 Arg name_matcher renamed to symbol_matcher.
8876 2014-01-14 Doug Evans <dje@google.com>
8878 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
8879 (map_partial_symbol_filenames): Ditto.
8880 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
8881 (map_partial_symbol_filenames): Ditto.
8882 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
8883 (map_partial_symbol_filenames): Ditto.
8884 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
8885 (map_partial_symbol_filenames): Ditto.
8886 * symtab.c: Delete #include "psymtab.h".
8888 2014-01-14 Pedro Alves <palves@redhat.com>
8889 Tom Tromey <tromey@redhat.com>
8891 * infrun.c (use_displaced_stepping): Use find_record_target
8892 instead of RECORD_IS_USED.
8893 (adjust_pc_after_break): Use record_full_is_used instead of
8895 * record-btrace.c (record_btrace_open): Call record_preopen
8896 instead of checking RECORD_IS_USED.
8897 * record-full.c (record_full_shortname)
8898 (record_full_core_shortname): New globals.
8899 (record_full_is_used): New function.
8900 (find_full_open): Call record_preopen instead of checking
8902 (init_record_full_ops): Set the target's shortname to
8903 record_full_shortname.
8904 (init_record_full_core_ops): Set the target's shortname to
8905 record_full_core_shortname.
8906 * record-full.h (record_full_is_used): Declare.
8907 * record.c (find_record_target): Make extern.
8908 (record_preopen): New function.
8909 * record.h (RECORD_IS_USED): Delete macro.
8910 (find_record_target, record_preopen): Declare functions.
8912 2014-01-14 Yao Qi <yao@codesourcery.com>
8914 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
8915 'len''s type to ULONGEST.
8916 (core_xfer_shared_libraries_aix): Likewise.
8917 * gdbarch.c, gdbarch.h: Regenerated.
8918 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
8919 Change type of 'len' to ULONGEST.
8920 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8921 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
8923 2014-01-14 Yao Qi <yao@codesourcery.com>
8925 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
8926 type of 'len' to ULONGEST.
8927 (linux_xfer_osdata_processgroups): Likewise.
8928 (linux_xfer_osdata_threads): Likewise.
8929 (linux_xfer_osdata_fds): Likewise.
8930 (linux_xfer_osdata_isockets): Likewise.
8931 (linux_xfer_osdata_shm): Likewise.
8932 (linux_xfer_osdata_sem): Likewise.
8933 (linux_xfer_osdata_msg): Likewise.
8934 (linux_common_xfer_osdata): Likewise.
8935 (struct osdata_type) <getter>: Likewise.
8936 * common/linux-osdata.h (linux_common_xfer_osdata): Update
8939 2014-01-14 Yao Qi <yao@codesourcery.com>
8941 * target.h (target_xfer_partial_ftype): Update.
8942 (struct target_ops) <to_xfer_partial>: Change 'len' type to
8944 * aix-thread.c (aix_thread_xfer_partial): Change type of
8945 argument 'len' to ULONGEST.
8946 * auxv.c (procfs_xfer_auxv): Likewise.
8947 (ld_so_xfer_auxv): Likewise.
8948 (memory_xfer_auxv): Likewise.
8949 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8950 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8951 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8952 * corelow.c (core_xfer_partial): Likewise.
8953 * ctf.c (ctf_xfer_partial): Likewise.
8954 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
8956 (darwin_read_dyld_info): Likewise.
8957 (darwin_xfer_partial): Likewise.
8958 * exec.c (section_table_xfer_memory_partial): Likewise.
8959 (exec_xfer_partial): Likewise.
8960 * exec.h (section_table_xfer_memory_partial): Update
8962 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
8963 instead of plongest.
8964 (gnu_xfer_partial): Likewise.
8965 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
8966 (ia64_hpux_xfer_solib_got): Likewise.
8967 (ia64_hpux_xfer_partial): Likewise.
8968 * ia64-linux-nat.c (ia64_linux_xfer_partial):
8969 * inf-ptrace.c (inf_ptrace_xfer_partial):
8970 * inf-ttrace.c (inf_ttrace_xfer_partial):
8971 * linux-nat.c (linux_xfer_siginfo): Likewise.
8972 (linux_nat_xfer_partial): Likewise.
8973 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
8974 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
8975 * monitor.c (monitor_xfer_memory): Likewise.
8976 (monitor_xfer_partial): Likewise.
8977 * procfs.c (procfs_xfer_partial): Likewise.
8978 * record-full.c (record_full_xfer_partial): Likewise.
8979 (record_full_core_xfer_partial): Likewise.
8980 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
8981 instead of plongest.
8982 (gdbsim_xfer_partial): Likewise.
8983 * remote.c (remote_xfer_partial): Likewise.
8984 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
8985 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
8987 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8988 (rs6000_xfer_shared_libraries): Likewise.
8989 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8990 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8991 (sparc_xfer_partial): Likewise.
8992 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8993 (spu_xfer_partial): Likewise.
8994 * spu-multiarch.c (spu_xfer_partial): Likewise.
8995 * target.c (target_read_live_memory): Likewise.
8996 (memory_xfer_live_readonly_partial): Likewise.
8997 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
8998 (target_xfer_partial, default_xfer_partial): Likewise.
8999 (current_xfer_partial): Likewise.
9000 * tracepoint.c (tfile_xfer_partial): Likewise.
9001 * windows-nat.c (windows_xfer_memory): Likewise. Call
9002 pulongest instead of plongest.
9003 (windows_xfer_partial): Likewise.
9004 (windows_xfer_shared_libraries): Likewise.
9006 2014-01-14 Yao Qi <yao@codesourcery.com>
9008 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
9009 target_xfer_partial_ftype.
9011 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
9015 * valops.c (value_struct_elt_bitpos): New function
9016 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
9017 object to 'None' if the field name is an empty string ("").
9018 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
9019 attribute to look for a field when 'name' is 'None'.
9020 (get_field_type): New function
9022 2014-01-13 Doug Evans <dje@google.com>
9025 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
9026 (try_open_dwop_file): Ditto.
9027 * gdb_bfd.c: #include "vec.h".
9028 (bfdp): New typedef.
9029 (struct gdb_bfd_data): New member included_bfds.
9030 (gdb_bfd_unref): Unref all included bfds.
9031 (gdb_bfd_record_inclusion): New function.
9032 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
9034 2014-01-13 Tom Tromey <tromey@redhat.com>
9036 * gdbcore.h (deprecated_core_resize_section_table): Remove.
9038 2014-01-13 Tom Tromey <tromey@redhat.com>
9040 * defs.h (use_windows): Remove.
9041 * gdb.c (main): Update.
9042 * main.c (captured_main, gdb_main): Update.
9043 * main.h (struct captured_main_args) <use_windows>: Remove.
9044 * top.c (use_windows): Remove.
9046 2014-01-13 Tom Tromey <tromey@redhat.com>
9048 * defs.h (deprecated_flush_hook): Remove.
9050 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9053 * linux-thread-db.c (try_thread_db_load): Add parameter
9054 check_auto_load_safe. Move here the file_is_auto_load_safe call.
9055 (try_thread_db_load_from_pdir_1): Move it there from here.
9056 (try_thread_db_load_from_sdir): Update caller.
9057 (try_thread_db_load_from_dir): Move it there from here.
9059 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
9061 * regformats/regdat.sh: Always rewrite the register file.
9063 2014-01-13 Pedro Alves <palves@redhat.com>
9065 * Makefile.in (CHECK_HEADERS): New variable.
9066 (check-headers:): New rule.
9068 2014-01-13 Tom Tromey <tromey@redhat.com>
9070 * cli/cli-setshow.c (do_set_command): Update.
9071 * defs.h (deprecated_set_hook): Remove.
9072 * top.c (deprecated_set_hook): Remove.
9074 2014-01-13 Pedro Alves <palves@redhat.com>
9076 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
9077 the tracepoint if the PC is a pseudo-register.
9079 2014-01-13 Tom Tromey <tromey@redhat.com>
9081 * defs.h (XCALLOC): Remove.
9082 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
9083 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
9084 * dwarf2loc.c (allocate_piece_closure): Likewise.
9085 * elfread.c (elf_symfile_segments): Likewise.
9086 (elf_symfile_segments): Likewise.
9087 * gdbtypes.c (copy_type_recursive): Likewise.
9088 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
9089 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
9090 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
9092 * mt-tdep.c (mt_gdbarch_init): Likewise.
9093 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
9095 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
9096 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
9097 * registry.c (registry_alloc_data): Likewise.
9098 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
9099 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
9100 * serial.c (serial_fdopen_ops): Likewise.
9101 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
9103 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
9104 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
9107 2014-01-13 Tom Tromey <tromey@redhat.com>
9109 * defs.h (XMALLOC): Remove.
9110 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
9111 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
9112 * cli-out.c (struct ui_out *): Likewise.
9113 * cli/cli-dump.c (add_dump_command): Likewise.
9114 (add_dump_command): Likewise.
9115 * complaints.c (get_complaints): Likewise.
9116 (find_complaint): Likewise.
9117 * dwarf2-frame.c (execute_cfa_program): Likewise.
9118 * dwarf2read.c (abbrev_table_read_table): Likewise.
9119 * gdbarch.sh: Likewise.
9120 * gdbarch.c: Rebuild.
9121 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
9122 * interps.c (interp_new): Likewise.
9123 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
9124 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
9125 * mi/mi-console.c (mi_console_file_new): Likewise.
9126 * mi/mi-interp.c (mi_interpreter_init): Likewise.
9127 * mi/mi-out.c (mi_out_new): Likewise.
9128 * mi/mi-parse.c (mi_parse): Likewise.
9129 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
9130 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
9131 * observer.c (xalloc_observer_list_node): Likewise.
9132 * regcache.c (regcache_xmalloc_1): Likewise.
9133 * reggroups.c (reggroup_new): Likewise.
9134 (_initialize_reggroup): Likewise.
9135 * registry.c (register_data_with_cleanup): Likewise.
9136 * remote.c (remote_notif_stop_alloc_reply): Likewise.
9137 * ser-base.c (serial_ttystate): Likewise.
9138 * ser-mingw.c (make_pipe_state): Likewise.
9139 * ser-pipe.c (pipe_open): Likewise.
9140 * serial.c (serial_open): Likewise.
9141 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
9142 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
9143 (tui_alloc_win_info): Likewise.
9144 (tui_add_content_elements): Likewise.
9145 * tui/tui-file.c (tui_file_new): Likewise.
9146 * tui/tui-out.c (tui_out_new): Likewise.
9147 * ui-file.c (mem_file_new): Likewise.
9148 * ui-out.c (push_level): Likewise.
9149 (make_cleanup_ui_out_end): Likewise.
9150 (append_header_to_list): Likewise.
9151 (ui_out_new): Likewise.
9152 * user-regs.c (user_reg_add_builtin): Likewise.
9154 2014-01-13 Tom Tromey <tromey@redhat.com>
9156 * defs.h (XZALLOC): Remove.
9157 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
9158 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
9159 (get_ada_tasks_inferior_data): Likewise.
9160 * auto-load.c (get_auto_load_pspace_data): Likewise.
9161 * auxv.c (get_auxv_inferior_data): Likewise.
9162 * bfd-target.c (target_bfd_reopen): Likewise.
9163 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
9164 (deprecated_insert_raw_breakpoint): Likewise.
9165 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
9166 * corelow.c (core_open): Likewise.
9167 * darwin-nat.c (darwin_check_new_threads): Likewise.
9168 (darwin_attach_pid): Likewise.
9169 * dummy-frame.c (dummy_frame_push): Likewise.
9170 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
9171 * dwarf2loc.c (allocate_piece_closure): Likewise.
9172 * elfread.c (elf_symfile_segments): Likewise.
9173 * eval.c (ptrmath_type_p): Likewise.
9174 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
9175 * gdbtypes.c (alloc_type_arch): Likewise.
9176 (alloc_type_instance): Likewise.
9177 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
9178 * inf-child.c (inf_child_can_use_agent): Likewise.
9179 * inflow.c (get_inflow_inferior_data): Likewise.
9180 * infrun.c (save_infcall_suspend_state): Likewise.
9181 * jit.c (jit_reader_load): Likewise.
9182 (get_jit_objfile_data): Likewise.
9183 (get_jit_program_space_data): Likewise.
9184 (jit_object_open_impl): Likewise.
9185 (jit_symtab_open_impl): Likewise.
9186 (jit_block_open_impl): Likewise.
9187 (jit_frame_sniffer): Likewise.
9188 * linux-fork.c (add_fork): Likewise.
9189 * maint.c (make_command_stats_cleanup): Likewise.
9190 * objfiles.c (get_objfile_pspace_data): Likewise.
9191 * opencl-lang.c (struct lval_closure): Likewise.
9192 * osdata.c (osdata_start_osdata): Likewise.
9193 * progspace.c (new_address_space): Likewise.
9194 (add_program_space): Likewise.
9195 * remote-sim.c (get_sim_inferior_data): Likewise.
9196 * sh-tdep.c (sh_gdbarch_init): Likewise.
9197 * skip.c (Ignore): Likewise.
9198 (skip_delete_command): Likewise.
9199 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
9200 (library_list_start_library): Likewise.
9201 (solib_aix_current_sos): Likewise.
9202 * solib-darwin.c (get_darwin_info): Likewise.
9203 (darwin_current_sos): Likewise.
9204 * solib-dsbt.c (get_dsbt_info): Likewise.
9205 * solib-ia64-hpux.c (new_so_list): Likewise.
9206 (ia64_hpux_get_solib_linkage_addr): Likewise.
9207 * solib-spu.c (append_ocl_sos): Likewise.
9208 (spu_current_sos): Likewise.
9209 * solib-svr4.c (get_svr4_info): Likewise.
9210 (svr4_keep_data_in_core): Likewise.
9211 (library_list_start_library): Likewise.
9212 (svr4_default_sos): Likewise.
9213 (svr4_read_so_list): Likewise.
9214 * solib-target.c (library_list_start_library): Likewise.
9215 (solib_target_current_sos): Likewise.
9216 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
9217 * symfile-debug.c (install_symfile_debug_logging): Likewise.
9218 * symfile.c (default_symfile_segments): Likewise.
9219 * target-descriptions.c (tdesc_data_init): Likewise.
9220 (tdesc_create_reg): Likewise.
9221 (struct tdesc_type *): Likewise.
9222 (tdesc_create_vector): Likewise.
9223 (tdesc_set_struct_size): Likewise.
9224 (struct tdesc_type *): Likewise.
9225 (tdesc_free_feature): Likewise.
9226 (tdesc_create_feature): Likewise.
9227 * windows-nat.c (windows_add_thread): Likewise.
9228 (windows_make_so): Likewise.
9229 * xml-support.c (gdb_xml_body_text): Likewise.
9230 (gdb_xml_create_parser_and_cleanup): Likewise.
9231 (xml_process_xincludes): Likewise.
9232 * xml-syscall.c (allocate_syscalls_info): Likewise.
9233 (syscall_create_syscall_desc): Likewise.
9235 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
9237 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
9238 function, with code from i386_stap_parse_special_token.
9239 (i386_stap_parse_special_token_three_arg_disp): Likewise.
9240 (i386_stap_parse_special_token): Move code to the two functions
9243 2014-01-09 Pedro Alves <palves@redhat.com>
9244 Hui Zhu <hui@codesourcery.com>
9247 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
9248 bp_err_string. Don't mark the location shlib_disabled if the
9249 error thrown wasn't a generic or memory error. Catch errors
9250 thrown while inserting breakpoints in overlayed code. Output
9251 error message of software breakpoints.
9252 * remote.c (remote_insert_breakpoint): If this breakpoint has
9253 target-side commands but this stub doesn't support Z0 packets,
9254 throw NOT_SUPPORTED_ERROR error.
9255 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
9256 * target.h (target_insert_breakpoint): Extend comment.
9257 (target_insert_hw_breakpoint): Add comment.
9259 2014-01-08 Pedro Alves <palves@redhat.com>
9261 * remote.c (remote_add_thread): Add threads silently if starting
9263 (remote_notice_new_inferior): If in all-stop, and starting up,
9264 don't call notice_new_inferior.
9265 (get_current_thread): New function, factored out from ...
9266 (add_current_inferior_and_thread): ... this. Adjust.
9267 (remote_start_remote) <all-stop>: Fetch the thread list. If we
9268 found any thread, then select the remote's current thread as GDB's
9271 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9273 * NEWS: Create a new section for the next release branch.
9274 Rename the section of the current branch, now that it has
9277 2014-01-08 Joel Brobecker <brobecker@adacore.com>
9279 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
9280 * version.in: Bump version to 7.7.50.DATE-cvs.
9282 2014-01-08 Yao Qi <yao@codesourcery.com>
9284 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
9285 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
9286 (spu_xfer_partial): Cast 'buf' to 'const char *'.
9288 2014-01-08 Yao Qi <yao@codesourcery.com>
9290 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
9291 return value of bfd_get_filename to symbol_file_add_from_bfd.
9293 2014-01-08 Pierre Muller <muller@sourceware.org>
9296 * coff-pe-read.c (struct read_pe_section_data): Add index field.
9297 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
9298 to prim_record_mininal_symbol_and_info.
9299 (add_pe_forwarded_sym): Use known section number of forwarded symbol
9300 in call to prim_record_minimal_symbol_and_info.
9301 (read_pe_exported_syms): Set index field of section_data.
9303 2014-01-07 Andrew Pinski <apinski@cavium.com>
9305 * features/aarch64-core.xml (cpsr): Change to be 64bit.
9306 * features/aarch64.c: Regenerate.
9308 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
9310 * target.c (return_null): Define.
9311 (update_current_target): Use it instead of return_zero for
9312 functions that return a pointer.
9314 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
9316 * source.c (add_path): Fix check for duplicated paths in the previously
9319 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
9321 * ada-lang.c: Remove duplicated include statements.
9322 * alphabsd-nat.c: Ditto.
9323 * amd64-darwin-tdep.c: Ditto.
9324 * amd64fbsd-nat.c: Ditto.
9325 * auto-load.c: Ditto.
9327 * breakpoint.c: Ditto.
9329 * fork-child.c: Ditto.
9330 * gdb_usleep.c: Ditto.
9331 * i386-darwin-tdep.c: Ditto.
9332 * i386fbsd-nat.c: Ditto.
9334 * inferior.c: Ditto.
9336 * linux-nat.c: Ditto.
9337 * linux-tdep.c: Ditto.
9338 * m68kbsd-nat.c: Ditto.
9339 * m68klinux-nat.c: Ditto.
9340 * microblaze-tdep.c: Ditto.
9341 * mips-linux-tdep.c: Ditto.
9342 * mn10300-tdep.c: Ditto.
9343 * nto-tdep.c: Ditto.
9344 * opencl-lang.c: Ditto.
9346 * printcmd.c: Ditto.
9347 * regcache.c: Ditto.
9348 * remote-m32r-sdi.c: Ditto.
9352 * tilegx-linux-nat.c: Ditto.
9353 * tilegx-tdep.c: Ditto.
9354 * tracepoint.c: Ditto.
9356 * vaxbsd-nat.c: Ditto.
9357 * windows-nat.c: Ditto.
9358 * xtensa-tdep.c: Ditto.
9360 2014-01-07 Yao Qi <yao@codesourcery.com>
9362 * spu-linux-nat.c (_initialize_spu_nat): Declare.
9364 2014-01-07 Yao Qi <yao@codesourcery.com>
9365 Joel Brobecker <brobecker@adacore.com>
9367 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
9368 (pdc_write_regs): Likewise.
9369 (fetch_regs_kernel_thread): Likewise.
9370 (store_regs_kernel_thread): Likewise.
9372 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9374 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
9375 tagged type objects to their actual type.
9377 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9379 * ada-valprint.c (print_field_values): Add "language" parameter.
9380 Update calls to print_field_values and print_variant_part.
9381 Pass new parameter "language" in call to val_print instead
9382 of "current_language". Replace call to ada_val_print by call
9384 (print_variant_part): Add "language" parameter.
9385 (ada_val_print_struct_union): Update call to print_field_values.
9387 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9389 * ada-valprint.c (ui_memcpy): Delete.
9390 (ada_print_floating): Update documentation. Add empty line
9391 between between function documentation and implementation.
9392 Delete variable "buffer". Use ui_file_xstrdup in place of
9393 ui_file_put. Minor adjustments following this change.
9395 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9397 * ada-valprint.c (ada_val_print_string): New function,
9398 extracted from ada_val_print_array.
9399 (ada_val_print_array): Replace extracted code by call
9400 to ada_val_print_string followed by a return. Move
9401 "else" branch to the function's top block.
9403 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9405 * ada-valprint.c (ada_val_print_array): Move implementation
9406 down. Rename parameter "offset" and "val" into "offset_aligned"
9407 and "original_value" respectively. Add parameter "offset".
9409 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9411 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
9412 re-organizing the code. Change the "???" message printed
9413 when target type is a TYPE_CODE_UNDEF into
9414 "<ref to undefined type>".
9416 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9418 * ada-valprint.c (print_record): Delete, implementation inlined...
9419 (ada_val_print_struct_union): ... here. Remove call to
9420 ada_check_typedef in inlined implementation.
9422 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9424 * ada-valprint.c (ada_val_print_gnat_array): New function,
9425 extracted from ada_val_print_1;
9426 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
9427 (ada_val_print_flt, ada_val_print_struct_union)
9428 (ada_val_print_ref): Likewise.
9429 (ada_val_print_1): Delete variables i and elttype.
9430 Replace extracted-out code by call to corresponding
9433 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9435 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
9437 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9439 * ada-valprint.c (ada_val_print_1): Replace calls to
9440 ada_val_print_1 by calls to val_print.
9442 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9444 * ada-valprint.c (ada_val_print_1): Add parameter "language".
9445 Update calls to self accordingly. Replace calls to c_val_print
9446 by calls to val_print.
9448 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9450 * ada-valprint.c (print_record): Delete declaration.
9451 (adjust_type_signedness, ada_val_print_1): Likewise.
9452 (ada_val_print): Move function implementation down.
9453 (print_variant_part, print_field_values, print_record):
9454 Move function implementation up.
9456 2014-01-07 Joel Brobecker <brobecker@adacore.com>
9458 * python/py-type.c (typy_get_name): New function.
9459 (type_object_getset): Add entry for attribute "name".
9460 * NEWS: Add entry mentioning this new attribute.
9462 2014-01-07 Yao Qi <yao@codesourcery.com>
9464 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
9467 2014-01-07 Yao Qi <yao@codesourcery.com>
9469 * gnu-nat.c (info_port_rights): Add qualifier const to
9472 2014-01-07 Yao Qi <yao@codesourcery.com>
9474 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
9476 2014-01-07 Yao Qi <yao@codesourcery.com>
9478 * gnu-nat.c (make_inf) Update declaration.
9479 (make_inf): Make it static.
9480 (inf_set_traced): Likewise.
9481 (inf_port_to_thread, inf_task_died_status): Likewise.
9483 2014-01-07 Yao Qi <yao@codesourcery.com>
9485 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
9487 2014-01-07 Yao Qi <yao@codesourcery.com>
9489 * gnu-nat.c (_initialize_gnu_nat): Declare.
9491 2014-01-07 Yao Qi <yao@codesourcery.com>
9493 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
9495 (struct gdbarch_info) <byte_order>: Change type to
9497 <byte_order_for_code>: Likewise.
9498 * gdbarch.c, gdbarch.h: Regenerated.
9500 2014-01-06 Sasha Smundak <asmundak@google.com>
9502 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
9504 2014-01-06 Tom Tromey <tromey@redhat.com>
9506 * doublest.c (convert_doublest_to_floatformat): Use const, not
9508 * somread.c (som_symtab_read): Likewise.
9510 2014-01-07 Hui Zhu <hui@codesourcery.com>
9512 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
9513 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
9514 (gdb_bfd_fopen): Ditto.
9515 (gdb_bfd_openr): Ditto.
9516 (gdb_bfd_openw): Ditto.
9517 (gdb_bfd_openr_iovec): Ditto.
9518 (gdb_bfd_fdopenr): Ditto.
9519 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
9520 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
9522 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
9524 * symfile-mem.c (symbol_file_add_from_memory): Removed
9525 gdb_bfd_stash_filename.
9527 2014-01-03 Doug Evans <dje@google.com>
9529 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
9532 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9534 Update year range in copyright notice of all files.
9536 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9538 * top.c (print_gdb_version): Set copyright year to 2014.
9540 2014-01-01 Joel Brobecker <brobecker@adacore.com>
9542 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
9544 For older changes see ChangeLog-2013.
9550 version-control: never