1 2014-08-06 Yao Qi <yao@codesourcery.com>
3 * amd64-linux-nat.c: Remove duplicated include
5 * i386-linux-nat.c: Likewise.
7 2014-08-06 Yao Qi <yao@codesourcery.com>
9 * dwarf2read.c (dwarf_decode_lines_1): Replace "Special
10 operand" with "Special opcode" in comments.
12 2014-08-05 Gary Benson <gbenson@redhat.com>
14 * interps.c (initialize_interps): Remove prototype.
15 (interpreter_initialized): Remove static global.
16 (interp_add): Do not call initialize_interps.
17 (initialize_interps): Remove function.
19 2014-08-05 Gary Benson <gbenson@redhat.com>
21 * utils.c (vwarning): Remove spurious va_end.
23 2014-08-05 Alan Modra <amodra@gmail.com>
25 * charset.c (convert_between_encodings): Cast result of obstack_base.
26 * cp-valprint.c (cp_print_value_fields): Use size_t locals.
27 * hppa-tdep.c (internalize_unwinds): Change "size" parm to size_t.
28 (read_unwind_info): Use size_t for some locals.
29 * jit.c (finalize_symtab): Likewise.
30 * utils.c (hashtab_obstack_allocate): Likewise.
31 * symmisc.c (print_objfile_statistics): Update format strings.
33 2014-08-04 Jan Kratochvil <jan.kratochvil@redhat.com>
35 * NEWS (Changes in GDB-4.0): Move Intel MPX and Intel AVX-512 items ...
36 (Changes in GDB 7.8): ... here.
38 2014-08-04 Tom Tromey <tromey@redhat.com>
40 * target.c (set_targetdebug): New function.
41 (initialize_targets): Pass set_targetdebug when creating "set
44 2014-08-01 Joel Brobecker <brobecker@adacore.com>
46 * gdbtypes.c (resolve_dynamic_struct): Do not generate an error
47 if detecting a variable-sized field that is not the last field.
48 Fix struct type length computation.
50 2014-08-01 Joel Brobecker <brobecker@adacore.com>
52 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
55 2014-08-01 Joel Brobecker <brobecker@adacore.com>
57 * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
58 Remove "+ 8" offset in computation of CHAIN_VMA.
60 2014-07-31 Doug Evans <dje@google.com>
62 * inflow.c (child_terminal_inferior): Add comment.
63 (child_terminal_ours_for_output): Add comment.
64 (child_terminal_ours): Add comment.
65 * linux-nat.c (linux_nat_terminal_inferior): Add comment.
66 (linux_nat_terminal_ours): Add comment.
68 2014-07-31 Gary Benson <gbenson@redhat.com>
70 * common/btrace-common.h: Do not include defs.h or server.h.
71 * nat/mips-linux-watch.h: Likewise.
72 * gdb-dlfcn.h: Do not include defs.h.
73 * tracefile.h: Likewise.
75 2014-07-30 Roland McGrath <mcgrathr@google.com>
77 * remote-sim.c (gdbsim_open): Apply constification to forward decl.
79 2014-07-30 Tom Tromey <tromey@redhat.com>
81 * bsd-kvm.c (bsd_kvm_open): Constify.
82 * corelow.c (core_open): Constify.
83 * ctf.c (ctf_open): Constify.
84 * dbug-rom.c (dbug_open): Constify.
85 * exec.c (exec_open): Constify.
86 * m32r-rom.c (m32r_open, mon2000_open): Constify.
87 * microblaze-rom.c (picobug_open): Constify.
88 * nto-procfs.c (procfs_open_1, procfs_open, procfs_native_open):
90 * ppcbug-rom.c (ppcbug_open0, ppcbug_open1): Constify.
91 * record-btrace.c (record_btrace_open): Constify.
92 * record-full.c (record_full_core_open_1, record_full_open_1)
93 (record_full_open): Constify.
94 * remote-m32r-sdi.c (m32r_open): Constify.
95 * remote-mips.c (common_open, mips_open, pmon_open, ddb_open)
96 (rockhopper_open, lsi_open): Constify.
97 * remote-sim.c (gdbsim_open): Constify.
98 * remote.c (remote_open, extended_remote_open, remote_open_1):
100 * target.h (struct target_ops) <to_open>: Make "arg" const.
101 * tracefile-tfile.c (tfile_open): Constify.
103 2014-07-30 Tom Tromey <tromey@redhat.com>
105 * breakpoint.c (map_breakpoint_numbers): Update.
106 * cli/cli-utils.c (get_number_trailer): Make "pp" const. Update.
107 (get_number_const): New function.
108 (get_number): Rewrite using get_number_const.
109 (init_number_or_range): Make "string" const.
110 (number_is_in_list): Make "list" const.
111 * cli/cli-utils.h (get_number_const): Declare.
112 (struct get_number_or_range_state) <string, end_ptr>: Now const.
113 (init_number_or_range, number_is_in_list): Update.
114 * printcmd.c (map_display_numbers): Update.
115 * value.c (value_from_history_ref): Constify.
116 * value.h (value_from_history_ref): Update.
118 2014-07-30 Tom Tromey <tromey@redhat.com>
120 * corefile.c (hook_type, call_extra_exec_file_hooks)
121 (specify_exec_file_hook): Constify.
122 * exec.c (exec_file_attach): Make "filename" const.
123 * gdbcore.h (deprecated_exec_file_display_hook)
124 (specify_exec_file_hook, exec_file_attach): Constify.
125 * main.c (captured_main): Use catch_command_errors_const.
127 2014-07-30 Tom Tromey <tromey@redhat.com>
129 * target.c (open_target): New function.
130 (add_target_with_completer, add_deprecated_target_alias): Use
131 set_cmd_sfunc, set_cmd_context.
132 (debug_to_open): Remove.
133 (setup_target_debug): Update.
135 2014-07-30 Yao Qi <yao@codesourcery.com>
137 * parser-defs.h (struct exp_descriptor) <operator_check>: Update
139 * parse.c (exp_iterate): Update comments.
141 2014-07-30 Gary Benson <gbenson@redhat.com>
143 * common/common-defs.h: New file.
144 * Makefile.in (HFILES_NO_SRCDIR): Add common/common-defs.h.
145 * defs.h: Include common-defs.h.
146 Do not include config.h or build-gnulib/config.h.
148 2014-07-30 Gary Benson <gbenson@redhat.com>
150 * common/common-utils.h: Do not include config.h.
151 * nat/linux-btrace.h: Likewise.
153 2014-07-30 Gary Benson <gbenson@redhat.com>
155 * btrace.c: Include defs.h.
156 * common/ptid.c: Include defs.h or server.h as appropriate.
157 * nat/mips-linux-watch.c: Likewise.
159 2014-07-29 Tom Tromey <tromey@redhat.com>
161 * target.c (target_is_pushed): Simplify.
163 2014-07-29 Joel Brobecker <brobecker@adacore.com>
167 2014-07-29 Yao Qi <yao@codesourcery.com>
170 * infcmd.c (until_next_command): Set step_range_end to PC + 1.
172 2014-07-28 Doug Evans <xdje42@gmail.com>
175 * guile/scm-param.c (pascm_parameter_defined_p): New function.
176 (gdbscm_register_parameter_x): Call it. Raise error for pre-existing
179 2014-07-28 Will Newton <will.newton@linaro.org>
181 * arm-linux-tdep.c (THUMB2_SET_R7_SIGRETURN1): New define.
182 (THUMB2_SET_R7_SIGRETURN2): Likewise.
183 (THUMB2_SET_R7_RT_SIGRETURN1): Likewise.
184 (THUMB2_SET_R7_RT_SIGRETURN2): Likewise.
185 (THUMB2_EABI_SYSCALL): Likewise.
186 (thumb2_eabi_linux_sigreturn_tramp_frame): Create new
188 (thumb2_eabi_linux_rt_sigreturn_tramp_frame): Likewise.
189 (arm_linux_init_abi): Add Thumb2 tramp frame unwinders.
191 2014-07-27 Doug Evans <xdje42@gmail.com>
193 * guile/scm-param.c (pascm_print_param_smob): Fix output.
195 2014-07-27 Doug Evans <xdje42@gmail.com>
197 * guile/guile.c (gdbscm_execute_gdb_command): Fix typo in comment.
199 2014-07-26 Ludovic Courtès <ludo@gnu.org>
200 Doug Evans <xdje42@gmail.com>
203 * acinclude.m4 (GDB_GUILE_PROGRAM_NAMES): New macro.
204 (GDB_GUILD_TARGET_FLAG, GDB_TRY_GUILD): New macros.
205 * configure.ac: Try to use guild to compile an scm file, if it fails
206 then disable guile support.
207 * configure: Regenerate.
208 * data-directory/Makefile.in (GUILE_SOURCE_FILES): Renamed from
210 (GUILE_COMPILED_FILES): New variable.
211 (GUILE_FILES) Update.
212 (GUILD, GUILD_TARGET_FLAG, GUILD_COMPILE_FLAGS): New variables.
213 (stamp-guile): Compile scm files.
214 * guile/guile.c (boot_guile_support): New function.
215 (standard_throw_args_p): New function.
216 (print_standard_throw_error, print_throw_error): New functions.
217 (handle_boot_error): New function.
218 (initialize_scheme_side): Rewrite to call boot_guile_support.
219 * guile/lib/gdb/boot.scm: Update %load-compiled-path. Load gdb.go.
220 * guile/lib/gdb/init.scm (%silence-compiler-warnings%): New function.
222 2014-07-26 Ludovic Courtès <ludo@gnu.org>
223 Doug Evans <xdje42@gmail.com>
226 * data-directory/Makefile.in (GUILE_FILES): Add support.scm.
227 * guile/lib/gdb/support.scm: New file.
228 * guile/guile.c (gdbscm_init_module_name): Change to "gdb".
229 * guile/lib/gdb.scm: Load gdb/init.scm as an include file.
231 * guile/lib/gdb/init.scm (SCM_ARG1, SCM_ARG2): Moved to support.scm.
233 (%assert-type): Ditto, and renamed to assert-type.
234 (%exception-print-style): Delete.
236 2014-07-26 Doug Evans <xdje42@gmail.com>
239 * configure.ac: Add AM_CONDITIONALs for HAVE_PYTHON, HAVE_GUILE.
240 * configure: Regenerate.
241 * data-directory/Makefile.in (PYTHON_FILE_LIST): Renamed from
243 (PYTHON_FILES): New variable.
244 (GUILE_FILE_LIST): Renamed from GUILE_FILES.
245 (GUILE_FILES): New variable.
246 (stamp-python, install-python, uninstall-python): Handle empty
248 (stamp-guile, install-guile, uninstall-guile): Ditto.
250 2014-07-26 Doug Evans <xdje42@gmail.com>
253 * guile/lib/gdb.scm (pretty-printers): Export.
254 (set-pretty-printers!): Export.
255 * guile/lib/gdb/printing.scm (gdb module): Update.
256 (prepend-pretty-printer!, append-pretty-printer!): Update.
257 * guile/scm-pretty-print.c (pretty_printer_list_name): Delete.
258 (pretty_printer_list_var): Delete.
259 (pretty_printer_list): New static global.
260 (gdbscm_pretty_printers): New function.
261 (gdbscm_set_pretty_printers_x): New function.
262 (ppscm_find_pretty_printer_from_gdb): Update.
263 (pretty_printer_functions): Add pretty-printers, set-pretty-printers!.
264 (gdbscm_initialize_pretty_printers): Update.
266 2014-07-26 Doug Evans <xdje42@gmail.com>
269 * configure.ac: Add check for header gc/gc.h.
270 Add check for function setenv.
271 * configure: Regenerate.
272 * config.in: Regenerate.
273 * guile/guile.c (_initialize_guile): Add workaround for libgc 7.4.0.
275 2014-07-25 Maciej W. Rozycki <macro@codesourcery.com>
277 * mips-tdep.c (mips_gdbarch_init): Also check the compressed ISA
278 variation in gdbarch matching.
280 2014-07-25 Tom Tromey <tromey@redhat.com>
282 * exec.c (using_exec_ops): Remove.
283 (exec_close_1): Update. Remove extraneous block, reindent.
284 (add_target_sections): Use target_is_pushed.
286 2014-07-25 Pedro Alves <palves@redhat.com>
288 * go32-nat.c (go32_create_inferior): Pass 0 to clear_proceed_status.
289 * monitor.c (monitor_create_inferior): Likewise.
290 * remote-m32r-sdi.c (m32r_create_inferior): Likewise.
291 * remote-sim.c (gdbsim_create_inferior): Likewise.
292 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
293 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
294 * windows-nat.c (do_initial_windows_stuff): Likewise.
296 2014-07-25 Pedro Alves <palves@redhat.com>
298 * NEWS: Mention signal passing and "signal" command changes.
299 * gdbthread.h (struct thread_suspend_state) <stop_signal>: Extend
301 * breakpoint.c (until_break_command): Adjust clear_proceed_status
303 * infcall.c (run_inferior_call): Adjust clear_proceed_status call.
304 * infcmd.c (proceed_thread_callback, continue_1, step_once)
305 (jump_command): Adjust clear_proceed_status call.
306 (signal_command): Warn if other thread that are resumed have
307 signals that will be delivered. Adjust clear_proceed_status call.
308 (until_next_command, finish_command)
309 (proceed_after_attach_callback, attach_command_post_wait)
310 (attach_command): Adjust clear_proceed_status call.
311 * infrun.c (proceed_after_vfork_done): Likewise.
312 (proceed_after_attach_callback): Adjust comment.
313 (clear_proceed_status_thread): Clear stop_signal if not in pass
315 (clear_proceed_status_callback): Delete.
316 (clear_proceed_status): New 'step' parameter. Only clear the
317 proceed status of threads the command being prepared is about to
319 (proceed): If passed in an explicit signal, override stop_signal
320 with it. Don't pass the last stop signal to the thread we're
322 (init_wait_for_inferior): Adjust clear_proceed_status call.
323 (switch_back_to_stepped_thread): Clear the signal if it should not
325 * infrun.h (clear_proceed_status): New 'step' parameter.
326 (user_visible_resume_ptid): Add comment.
327 * linux-nat.c (linux_nat_resume_callback): Don't check whether the
328 signal is in pass state.
329 * remote.c (append_pending_thread_resumptions): Likewise.
330 * mi/mi-main.c (proceed_thread): Adjust clear_proceed_status call.
332 2014-07-25 Tom Tromey <tromey@redhat.com>
334 * target.h (target_stopped_data_address)
335 (target_watchpoint_addr_within_range): Use "->", not ".". Fix
338 2014-07-25 Pierre Langlois <pierre.langlois@embecosm.com>
340 * avr-tdep.c (avr_address_to_pointer): Clarify the conversion in the
342 (avr_pointer_to_address): Likewise.
344 2014-07-24 Tom Tromey <tromey@redhat.com>
346 * monitor.c (compile_pattern): Update.
347 * target.h (struct target_ops) <to_shortname, to_longname,
350 2014-07-24 Tom Tromey <tromey@redhat.com>
352 * cli/cli-decode.c (add_cmd, add_prefix_cmd)
353 (add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
354 (add_info_alias, add_com): Make "doc" const.
355 (print_doc_line): Make "str" const.
356 (delete_cmd): Update.
357 * cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
358 (print_doc_line): Update.
359 * cli/cli-script.c (document_command): Update.
360 * command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
361 (add_com, add_info, add_info_alias): Update.
362 * guile/scm-cmd.c (cmdscm_destroyer): Update.
363 * python/py-cmd.c (cmdpy_destroyer): Update.
365 2014-07-24 Tom Tromey <tromey@redhat.com>
367 * cli/cli-decode.c (print_help_for_command): Make "prefix" const.
368 (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
369 (help_cmd_list): Constify.
370 (lookup_cmd): Update.
371 * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
373 (help_cmd_list, apropos_cmd): Update.
374 * cli/cli-script.c (show_user): Update.
375 * cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
376 * cli/cli-setshow.h (cmd_show_list): Update.
377 * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
378 (cmd_show_list): Update.
379 * guile/scm-cmd.c (cmdscm_destroyer): Update.
380 * python/py-cmd.c (cmdpy_destroyer): Update.
382 2014-07-24 Tom Tromey <tromey@redhat.com>
384 * cli/cli-decode.c (deprecate_cmd): Make "replacement" const.
385 * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now
387 * command.h (deprecate_cmd): Update.
388 * maint.c (maintenance_do_deprecate): Add casts.
390 2014-07-24 Tom Tromey <tromey@redhat.com>
392 * cli/cli-decode.c (help_cmd): Make parameter "const".
393 * cli/cli-decode.h (help_cmd): Update.
395 2014-07-24 Tom Tromey <tromey@redhat.com>
397 * stack.c (up_silently_base, down_silently_base): Make argument
400 2014-07-24 Tom Tromey <tromey@redhat.com>
402 * solib.c (solib_add): Make "pattern" const.
403 * solib.h (solib_add): Update.
405 2014-07-24 Tom Tromey <tromey@redhat.com>
407 * remote.c (remote_serial_open, print_packet, putpkt)
408 (putpkt_binary): Constify.
409 * remote.h (putpkt): Update.
411 2014-07-24 Tom Tromey <tromey@redhat.com>
413 * monitor.c (monitor_open): Make "args" const.
414 * monitor.h (monitor_open): Update.
416 2014-07-24 Tom Tromey <tromey@redhat.com>
418 * maint.c (match_bfd_flags): Make "string" const.
419 (print_bfd_section_info): Remove casts.
420 (print_objfile_section_info): Make "string" const.
422 2014-07-24 Tom Tromey <tromey@redhat.com>
424 * inf-child.c (inf_child_open_target): Make "arg" const.
425 * inf-child.h (inf_child_open_target): Update.
427 2014-07-24 Tom Tromey <tromey@redhat.com>
429 * environ.c (unset_in_environ): Make "var" const.
430 * environ.h (unset_in_environ): Update.
432 2014-07-24 Tom Tromey <tromey@redhat.com>
434 * cli/cli-dump.c (scan_expression_with_cleanup): Return const.
436 (scan_filename_with_cleanup): Likewise.
437 (dump_memory_to_file, dump_value_to_file, restore_binary_file):
438 Make arguments const.
439 (restore_command): Update.
441 2014-07-24 Pedro Alves <palves@redhat.com>
443 * tui/tui-io.c (tui_prep_terminal): Handle NULL rl_prompt.
445 2014-07-24 Tom Tromey <tromey@redhat.com>
446 Gary Benson <gbenson@redhat.com>
448 * nat/linux-ptrace.c (additional_flags): New global.
449 (linux_test_for_tracesysgood, linux_test_for_tracefork): Use
450 additional_flags; don't check GDBSERVER.
451 (linux_ptrace_set_additional_flags): New function.
452 * nat/linux-ptrace.h (linux_ptrace_set_additional_flags):
454 * linux-nat.c (_initialize_linux_nat): Call
455 linux_ptrace_set_additional_flags.
457 2014-07-24 Tom Tromey <tromey@redhat.com>
459 * make-target-delegates (munge_type, write_debugmethod): New
461 (debug_names): New global.
462 ($TARGET_DEBUG_PRINTER): New global.
463 (write_function_header): Strip TARGET_DEBUG_PRINTER from the type
465 Write debug methods. Generate init_debug_target.
466 * target-debug.h: New file.
467 * target-delegates.c: Rebuild.
468 * target.c: Include target-debug.h.
469 (debug_target): Hoist definition.
470 (target_kill, target_get_section_table, target_memory_map)
471 (target_flash_erase, target_flash_done, target_detach)
472 (target_disconnect, target_wait, target_resume)
473 (target_pass_signals, target_program_signals, target_follow_fork)
474 (target_mourn_inferior, target_search_memory)
475 (target_thread_address_space, target_close)
476 (target_find_new_threads, target_core_of_thread)
477 (target_verify_memory, target_insert_mask_watchpoint)
478 (target_remove_mask_watchpoint): Remove targetdebug code.
479 (debug_to_post_attach, debug_to_prepare_to_store)
480 (debug_to_files_info, debug_to_insert_breakpoint)
481 (debug_to_remove_breakpoint, debug_to_can_use_hw_breakpoint)
482 (debug_to_region_ok_for_hw_watchpoint)
483 (debug_to_can_accel_watchpoint_condition)
484 (debug_to_stopped_by_watchpoint, debug_to_stopped_data_address)
485 (debug_to_watchpoint_addr_within_range)
486 (debug_to_insert_hw_breakpoint, debug_to_remove_hw_breakpoint)
487 (debug_to_insert_watchpoint, debug_to_remove_watchpoint)
488 (debug_to_terminal_init, debug_to_terminal_inferior)
489 (debug_to_terminal_ours_for_output, debug_to_terminal_ours)
490 (debug_to_terminal_save_ours, debug_to_terminal_info)
491 (debug_to_load, debug_to_post_startup_inferior)
492 (debug_to_insert_fork_catchpoint)
493 (debug_to_remove_fork_catchpoint)
494 (debug_to_insert_vfork_catchpoint)
495 (debug_to_remove_vfork_catchpoint)
496 (debug_to_insert_exec_catchpoint)
497 (debug_to_remove_exec_catchpoint, debug_to_has_exited)
498 (debug_to_can_run, debug_to_thread_architecture, debug_to_stop)
499 (debug_to_rcmd, debug_to_pid_to_exec_file): Remove.
500 (setup_target_debug): Call init_debug_target.
501 * target.h (TARGET_DEBUG_PRINTER): New macro.
502 (struct target_ops) <to_resume, to_wait, to_pass_signals,
503 to_program_signals>: Use TARGET_DEBUG_PRINTER.
505 2014-07-24 Gary Benson <gbenson@redhat.com>
507 * exceptions.h (throw_vfatal): Renamed to...
508 (throw_vquit): New declaration.
509 (throw_quit): Likewise.
510 * exceptions.c (throw_vfatal): Renamed to...
511 (throw_vquit): New function.
512 (throw_quit): Likewise.
513 (throw_error): Call throw_verror rather than throw_it.
514 * utils.h (vfatal): Removed.
516 * utils.c (vfatal): Removed.
518 (internal_verror): Replaced call to fatal with call to throw_quit.
519 (quit): Replaced calls to fatal with calls to throw_quit.
521 2014-07-23 Ajit Agarwal <ajitkum@xilinx.com>
523 * microblaze-tdep.c (microblaze_fetch_instruction): Use of
526 2014-07-23 Chen Gang <gang.chen.5i5j@gmail.com>
528 * microblaze-tdep.c (microblaze_dwarf2_reg_to_regnum): Check whether
529 less than zero in conditional expression.
531 2014-07-23 Tom Tromey <tromey@redhat.com>
533 * make-target-delegates ($ARGS_PART): Match trailing close paren.
534 ($INTRO_PART): Don't match whitespace.
535 ($METHOD_TRAILER): Move earlier. Remove trailing semicolon and
537 ($METHOD): Add $METHOD_TRAILER.
539 (scan_target_h): New sub.
540 Change main loop not to collect state.
541 * target-delegates.c: Rebuild.
543 2014-07-23 Gary Benson <gbenson@redhat.com>
545 * cp-support.c (gdb_demangle): Fix build on systems without
548 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
550 * dwarf2loc.c (value_of_dwarf_reg_entry): Remove setting value address
551 for reference entry value target data value.
553 2014-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
555 * stack.c (read_frame_arg): Verify value_optimized_out before calling
556 value_available_contents_eq.
558 2014-07-22 Pedro Alves <palves@redhat.com>
560 * value.c (allocate_optimized_out_value): Don't mark value as
563 2014-07-22 Jiong Wang <jiong.wang@arm.com>
565 * MAINTAINERS (Write After Approval): Update my email address.
567 2014-07-20 Doug Evans <dje@google.com>
570 * remote.c (putpkt_binary): Add text to error message.
572 2014-07-20 Yao Qi <yao@codesourcery.com>
574 * eval.c: Remove "Chill" from comments.
575 * gdbtypes.h: Likewise.
576 * symtab.h: Likewise.
578 2014-07-20 Yao Qi <yao@codesourcery.com>
580 * std-operator.def: Update comments to TERNOP_SLICE.
582 2014-07-20 Yao Qi <yao@codesourcery.com>
584 * std-operator.def: Remove BINOP_RANGE.
585 * breakpoint.c (watchpoint_exp_is_const): Update.
586 * expprint.c (dump_subexp_body_standard): Likewise.
587 * eval.c (init_array_element): Remove dead code.
588 (evaluate_subexp_standard): Likewise.
590 2014-07-20 Yao Qi <yao@codesourcery.com>
592 * std-operator.def: Remove BINOP_IN.
593 * breakpoint.c (watchpoint_exp_is_const): Update.
594 * eval.c (evaluate_subexp_standard): Likewise.
595 * expprint.c (dump_subexp_body_standard): Likewise.
597 2014-07-19 Ajit Agarwal <ajitkum@xilinx.com>
599 * microblaze-tdep.c (microblaze_register_names): Add
600 the rshr and rslr register names.
601 (microblaze_gdbarch_init): Use of tdesc_has_registers.
602 Use of tdesc_find_feature. Use of tdesc_data_alloc.
603 Use of tdesc_numbered_register. Use of
604 microblaze_register_g_packet_guesses. Use of
605 tdesc_use_registers. Use of set_gdbarch_register_type.
606 (microblaze_register_g_packet_guesses): New.
607 * microblaze-tdep.h (microblaze_reg_num): Add
608 field MICROBLAZE_SLR_REGNUM MICROBLAZE_SHR_REGNUM
609 MICROBLAZE_NUM_REGS and MICROBLAZE_NUM_CORE_REGS.
610 (microblaze_frame_cache): Use of MICROBLAZE_NUM_REGS.
611 * features/microblaze-core.xml: New file.
612 * features/microblaze-stack-protect.xml: New file.
613 * features/microblaze-with-stack-protect.c: New file.
614 * features/microblaze-with-stack-protect.xml: New file.
615 * features/microblaze.xml: New file.
616 * features/microblaze.c: New file.
617 * features/Makefile (microblaze-with-stack-protect): Add
618 microblaze-with-stack-protect microblaze and microblaze-expedite.
619 * regformats/microblaze-with-stack-protect.dat: New file.
620 * regformats/microblaze.dat: New file.
621 * doc/gdb.texinfo (MicroBlaze Features): Added.
623 2014-07-18 Tom Tromey <tromey@redhat.com>
625 * exec.c (exec_ops): Now static.
626 * exec.h (exec_ops): Don't declare.
628 2014-07-18 Tom Tromey <tromey@redhat.com>
630 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Pass "self"
631 to find_target_beneath.
632 * ravenscar-thread.c (ravenscar_prepare_to_store): Pass "ops" to
634 (ravenscar_mourn_inferior): Pass "self" to find_target_beneath.
636 2014-07-18 Tom Tromey <tromey@redhat.com>
639 * utils.c (quit): Use target_supports_terminal_ours.
640 * target.h (target_supports_terminal_ours): Declare.
641 * target.c (target_supports_delete_record): Don't check
642 to_delete_record against NULL.
643 (target_supports_terminal_ours): New function.
645 2014-07-18 Tom Tromey <tromey@redhat.com>
648 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint)
649 (spu_fetch_registers, spu_store_registers, spu_xfer_partial)
650 (spu_search_memory, spu_mourn_inferior): Simplify delegation.
651 * linux-thread-db.c (thread_db_pid_to_str): Always delegate.
652 * windows-nat.c (windows_xfer_partial): Always delegate.
653 * record-btrace.c (record_btrace_xfer_partial): Simplify
655 (record_btrace_fetch_registers, record_btrace_store_registers)
656 (record_btrace_prepare_to_store, record_btrace_resume)
657 (record_btrace_wait, record_btrace_find_new_threads)
658 (record_btrace_thread_alive): Likewise.
659 * procfs.c (procfs_xfer_partial): Always delegate.
660 * corelow.c (core_xfer_partial): Always delegate.
661 * sol-thread.c (sol_find_new_threads): Simplify delegation.
663 2014-07-18 Tom Tromey <tromey@redhat.com>
665 * exec.c (exec_make_note_section): Move earlier.
667 2014-07-17 Doug Evans <dje@google.com>
670 * maint.c (count_symtabs_and_blocks): Handle NULL
671 current_program_space.
672 (report_command_stats): Check global enabled flag in addition to
673 recorded enabled flag.
674 (make_command_stats_cleanup): Handle msg_type == 0, startup.
676 2014-07-16 Pedro Alves <palves@redhat.com>
678 * linux-nat.c (kill_callback): Use kill_lwp, not kill.
680 2014-07-16 Tom Tromey <tromey@redhat.com>
682 * target.h (struct target_ops) <to_delete_record>: Reformat
685 2014-07-16 Tom Tromey <tromey@redhat.com>
687 * target-delegates.c: Rebuild.
689 2014-07-15 Pierre Langlois <pierre.langlois@embecosm.com>
691 * avr-tdep.c (AVR_TYPE_ADDRESS_CLASS_FLASH): New macro.
692 (AVR_TYPE_INSTANCE_FLAG_ADDRESS_CLASS_FLASH): Likewise.
693 (avr_address_to_pointer): Check for AVR_TYPE_ADDRESS_CLASS_FLASH.
694 (avr_pointer_to_address): Likewise.
695 (avr_address_class_type_flags): New function.
696 (avr_address_class_type_flags_to_name): Likewise.
697 (avr_address_class_name_to_type_flags): Likewise.
698 (avr_gdbarch_init): Set address_class_type_flags,
699 address_class_type_flags_to_name and
700 address_class_name_to_type_flags.
702 2014-07-15 Pedro Alves <palves@redhat.com>
704 * linux-nat.c (kill_callback): Save errno and work with saved
707 2014-07-15 Simon Marchi <simon.marchi@ericsson.com>
709 * expprint.c (dump_subexp_body_standard): Handle OP_STRING.
711 2014-07-14 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
713 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Report no hardware
714 breakpoint support correctly.
716 2014-07-14 Pedro Alves <palves@redhat.com>
718 * utils.c (prompt_for_continue): Call target_terminal_ours.
720 2014-07-14 Pedro Alves <palves@redhat.com>
722 * inf-loop.c (inferior_event_handler): Use TRY_CATCH instead of
723 catch_errors. Don't re-enable stdin or notify observers where,
725 (fetch_inferior_event_wrapper): Delete.
727 2014-07-14 Pedro Alves <palves@redhat.com>
730 * top.c: Include "inf-loop.h".
731 (struct gdb_readline_wrapper_cleanup) <target_is_async_orig>: New
733 (gdb_readline_wrapper_cleanup): Make the target async again, if it
735 (gdb_readline_wrapper): Store whether the target is async, and
738 2014-07-14 Pedro Alves <palves@redhat.com>
741 * top.c (gdb_readline_wrapper_line): Tweak comment.
742 (gdb_readline_wrapper_cleanup): If readline is enabled, reinstall
743 the input handler callback.
745 2014-07-14 Pedro Alves <palves@redhat.com>
748 * main.c: Include event-top.h.
749 (handle_command_errors): New function.
750 (catch_command_errors, catch_command_errors_const): Use it.
752 2014-07-14 Pedro Alves <palves@redhat.com>
754 * exceptions.c (catch_command_errors, catch_command_errors_const):
756 * exceptions.h (catch_command_errors_ftype)
757 (catch_command_errors_const_ftype): Moved to main.c.
758 (catch_command_errors, catch_command_errors_const): Delete
760 * main.c (catch_command_errors_ftype)
761 (catch_command_errors_const_ftype): Moved here from exceptions.h.
762 (catch_command_errors, catch_command_errors_const)): Moved here
763 from exceptions.c and make static.
765 2014-07-14 Pedro Alves <palves@redhat.com>
767 * exceptions.c (print_any_exception): Delete.
768 (catch_exceptions_with_msg): Use exception_print instead of
770 (catch_errors): Use exception_fprintf instead of
772 (catch_command_errors, catch_command_errors_const): Use
773 exception_print instead of print_any_exception.
775 2014-07-14 Pedro Alves <palves@redhat.com>
777 * infcall.c (run_inferior_call): Set 'sync_execution' while
778 running the inferior call.
780 2014-07-14 Pedro Alves <palves@redhat.com>
782 * value.c (value_contents_equal): Delete function.
783 * value.h (value_contents_equal): Delete declaration.
785 2014-07-14 Tom Tromey <tromey@redhat.com>
788 * gdbtypes.c (is_dynamic_type_internal): New function, from
790 (is_dynamic_type): Rewrite.
791 (resolve_dynamic_union): Use resolve_dynamic_type_internal.
792 (resolve_dynamic_struct): Likewise.
793 (resolve_dynamic_type_internal): New function, from
794 resolve_dynamic_type.
795 (resolve_dynamic_type): Rewrite.
797 2014-07-14 Tom Tromey <tromey@redhat.com>
799 * target.c (target_require_runnable): Also check record_stratum.
802 2014-07-11 Yao Qi <yao@codesourcery.com>
804 * arm-tdep.c (thumb_analyze_prologue): Break the loop if
805 thumb_instruction_restores_sp return true.
807 2014-07-11 Yao Qi <yao@codesourcery.com>
809 * arm-tdep.c (thumb_instruction_restores_sp): New function.
810 (thumb_in_function_epilogue_p): Call
811 thumb_instruction_restores_sp.
813 2014-07-11 Yao Qi <yao@codesourcery.com>
815 * arm-tdep.c (thumb_analyze_prologue): Don't match instruction
817 (thumb_in_function_epilogue_p): Don't match 'sub sp, #imm'.
819 2014-07-11 Gary Benson <gbenson@redhat.com>
821 * amd64-linux-nat.c (gdbcore.h): Remove include.
822 (regset.h): Likewise.
823 (nat/linux-btrace.h): Likewise.
824 (btrace.h): Likewise.
825 (gdb_assert.h): Likewise.
826 (string.h): Likewise.
827 (sys/uio.h): Likewise.
828 (sys/debugreg.h): Likewise.
829 (sys/syscall.h): Likewise.
830 (sys/procfs.h): Likewise.
831 (sys/user.h): Likewise.
832 (asm/ptrace.h): Likewise.
833 (i386-nat.h): Likewise.
834 * i386-linux-nat.c (i386-nat.h): Likewise.
835 (regset.h): Likewise.
836 (target.h): Likewise.
837 (linux-nat.h): Likewise.
838 (nat/linux-btrace.h): Likewise.
839 (btrace.h): Likewise.
840 (gdb_assert.h): Likewise.
841 (string.h): Likewise.
842 (sys/uio.h): Likewise.
843 (sys/user.h): Likewise.
844 (sys/procfs.h): Likewise.
845 (sys/reg.h): Likewise.
846 (sys/debugreg.h): Likewise.
847 (ORIG_EAX): Remove definition.
849 2014-07-11 Gary Benson <gbenson@redhat.com>
851 * i386-linux-nat.h: New file.
852 * x86-linux-nat.h: Likewise.
853 * x86-linux-nat.c: Likewise.
854 * Makefile.in (HFILES_NO_SRCDIR): Add the above new headers.
855 * config/i386/linux.mh (NATDEPFILES): Add x86-linux-nat.o.
856 * config/i386/linux64.mh (NATDEPFILES): Likewise.
857 * amd64-linux-nat.c (x86-linux-nat.h): New include.
858 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
859 (PTRACE_SETREGSET): Likewise.
860 (arch_lwp_info): Now in x86-linux-nat.c.
861 (have_ptrace_getregset): Now in x86-linux-nat.h.
862 (x86_linux_dr_get): Now in x86-linux-nat.c.
863 (x86_linux_dr_set): Likewise.
864 (x86_linux_dr_get_addr): Likewise.
865 (x86_linux_dr_get_control): Likewise.
866 (x86_linux_dr_get_status): Likewise.
867 (update_debug_registers_callback): Likewise.
868 (x86_linux_dr_set_control): Likewise.
869 (x86_linux_dr_set_addr): Likewise.
870 (x86_linux_prepare_to_resume): Likewise.
871 (x86_linux_new_thread): Likewise.
872 (x86_linux_new_fork): Likewise.
873 (x86_linux_get_thread_area): Likewise.
874 (super_post_startup_inferior): Likewise.
875 (x86_linux_child_post_startup_inferior): Likewise.
876 (AMD64_LINUX_USER64_CS): Likewise.
877 (AMD64_LINUX_X32_DS): Likewise.
878 (x86_linux_read_description): Likewise.
879 (x86_linux_enable_btrace): Likewise.
880 (x86_linux_disable_btrace): Likewise.
881 (x86_linux_teardown_btrace): Likewise.
882 (x86_linux_read_btrace): Likewise.
883 (x86_linux_create_target): Likewise.
884 (x86_linux_add_target): Likewise.
885 * i386-linux-nat.c (x86-linux-nat.h): New include.
886 (PTRACE_GETREGSET): Now in x86-linux-nat.h.
887 (PTRACE_SETREGSET): Likewise.
888 (arch_lwp_info): Now in x86-linux-nat.c.
889 (have_ptrace_getregset): Now in x86-linux-nat.h.
890 (x86_linux_dr_get): Now in x86-linux-nat.c.
891 (x86_linux_dr_set): Likewise.
892 (x86_linux_dr_get_addr): Likewise.
893 (x86_linux_dr_get_control): Likewise.
894 (x86_linux_dr_get_status): Likewise.
895 (update_debug_registers_callback): Likewise.
896 (x86_linux_dr_set_control): Likewise.
897 (x86_linux_dr_set_addr): Likewise.
898 (x86_linux_prepare_to_resume): Likewise.
899 (x86_linux_new_thread): Likewise.
900 (x86_linux_new_fork): Likewise.
901 (x86_linux_get_thread_area): Likewise.
902 (super_post_startup_inferior): Likewise.
903 (x86_linux_child_post_startup_inferior): Likewise.
904 (AMD64_LINUX_USER64_CS): Likewise.
905 (AMD64_LINUX_X32_DS): Likewise.
906 (x86_linux_read_description): Likewise.
907 (x86_linux_enable_btrace): Likewise.
908 (x86_linux_disable_btrace): Likewise.
909 (x86_linux_teardown_btrace): Likewise.
910 (x86_linux_read_btrace): Likewise.
911 (x86_linux_create_target): Likewise.
912 (x86_linux_add_target): Likewise.
914 2014-07-11 Gary Benson <gbenson@redhat.com>
916 * amd64-linux-nat.c: Comment and whitespace changes.
917 * i386-linux-nat.c: Comment and whitespace changes.
919 2014-07-11 Gary Benson <gbenson@redhat.com>
921 * amd64-linux-nat.c (x86_linux_create_target): New function.
922 (x86_linux_add_target): Likewise.
923 (_initialize_amd64_linux_nat): Delegate to the above new functions.
924 * i386-linux-nat.c (x86_linux_create_target): New function.
925 (x86_linux_add_target): Likewise.
926 (_initialize_i386_linux_nat): Delegate to the above new functions.
928 2014-07-11 Gary Benson <gbenson@redhat.com>
930 * amd64-linux-nat.c (x86_linux_get_thread_area): New function.
931 (ps_get_thread_area): Delegate to the above in 32-bit mode.
932 * i386-linux-nat.c (x86_linux_get_thread_area): New function.
933 (ps_get_thread_area): Delegate to the above.
935 2014-07-11 Gary Benson <gbenson@redhat.com>
937 * amd64-linux-nat.c (amd64_linux_read_description): Renamed to
938 x86_linux_read_description. All uses updated. amd64-specific
939 code conditionalized. Conditionalized i386-specific code added.
940 Redundant cast removed.
941 * i386-linux-nat.c (i386_linux_read_description): Renamed to
942 x86_linux_read_description. All uses updated. i386-specific
943 code conditionalized. Conditionalized amd64-specific code added.
944 One sizeof replaced with the actual type it is describing.
946 2014-07-11 Gary Benson <gbenson@redhat.com>
948 * amd64-linux-nat.c (amd64_linux_dr_get): Renamed to
949 x86_linux_dr_get. All uses updated.
950 (amd64_linux_dr_set): Renamed to
951 x86_linux_dr_set. All uses updated.
952 (amd64_linux_dr_get_addr): Renamed to
953 x86_linux_dr_get_addr. All uses updated.
954 (amd64_linux_dr_get_control): Renamed to
955 x86_linux_dr_get_control. All uses updated.
956 (amd64_linux_dr_get_status): Renamed to
957 x86_linux_dr_get_status. All uses updated.
958 (amd64_linux_dr_set_control): Renamed to
959 x86_linux_dr_set_control. All uses updated.
960 (amd64_linux_dr_set_addr): Renamed to
961 x86_linux_dr_set_addr. All uses updated.
962 (amd64_linux_prepare_to_resume): Renamed to
963 x86_linux_prepare_to_resume. All uses updated.
964 (amd64_linux_new_thread): Renamed to
965 x86_linux_new_thread. All uses updated.
966 (amd64_linux_new_fork): Renamed to
967 x86_linux_new_fork. All uses updated.
968 (amd64_linux_child_post_startup_inferior): Renamed to
969 x86_linux_child_post_startup_inferior. All uses updated.
970 (amd64_linux_enable_btrace): Renamed to
971 x86_linux_enable_btrace. All uses updated.
972 (amd64_linux_disable_btrace): Renamed to
973 x86_linux_disable_btrace. All uses updated.
974 (amd64_linux_teardown_btrace): Renamed to
975 x86_linux_teardown_btrace. All uses updated.
976 (amd64_linux_read_btrace): Renamed to
977 x86_linux_read_btrace. All uses updated.
978 * i386-linux-nat.c (i386_linux_dr_get): Renamed to
979 x86_linux_dr_get. All uses updated.
980 (i386_linux_dr_set): Renamed to
981 x86_linux_dr_set. All uses updated.
982 (i386_linux_dr_get_addr): Renamed to
983 x86_linux_dr_get_addr. All uses updated.
984 (i386_linux_dr_get_control): Renamed to
985 x86_linux_dr_get_control. All uses updated.
986 (i386_linux_dr_get_status): Renamed to
987 x86_linux_dr_get_status. All uses updated.
988 (i386_linux_dr_set_control): Renamed to
989 x86_linux_dr_set_control. All uses updated.
990 (i386_linux_dr_set_addr): Renamed to
991 x86_linux_dr_set_addr. All uses updated.
992 (i386_linux_prepare_to_resume): Renamed to
993 x86_linux_prepare_to_resume. All uses updated.
994 (i386_linux_new_thread): Renamed to
995 x86_linux_new_thread. All uses updated.
996 (i386_linux_new_fork): Renamed to
997 x86_linux_new_fork. All uses updated.
998 (i386_linux_child_post_startup_inferior): Renamed to
999 x86_linux_child_post_startup_inferior. All uses updated.
1000 (i386_linux_enable_btrace): Renamed to
1001 x86_linux_enable_btrace. All uses updated.
1002 (i386_linux_disable_btrace): Renamed to
1003 x86_linux_disable_btrace. All uses updated.
1004 (i386_linux_teardown_btrace): Renamed to
1005 x86_linux_teardown_btrace. All uses updated.
1006 (i386_linux_read_btrace): Renamed to
1007 x86_linux_read_btrace. All uses updated.
1009 2014-07-11 Adrian Sendroiu <adrian.sendroiu@freescale.com>
1011 * remote.c (extended_remote_post_attach): New function.
1012 (init_extended_remote_ops): Install it as to_post_attach method.
1014 2014-07-09 Pedro Alves <palves@redhat.com>
1016 * infcmd.c (attach_command_post_wait): Don't call
1017 target_terminal_inferior here.
1018 (attach_command): Call it here instead.
1020 2014-07-09 Andrew Burgess <andrew.burgess@embecosm.com>
1022 * ada-varobj.c (ada_varobj_ops): Fill in is_path_expr_parent
1024 * c-varobj.c (c_is_path_expr_parent): New function, moved core
1025 from varobj.c, with additional checks.
1026 (c_varobj_ops): Fill in is_path_expr_parent field.
1027 (cplus_varobj_ops): Fill in is_path_expr_parent field.
1028 * jv-varobj.c (java_varobj_ops): Fill in is_path_expr_parent
1030 * varobj.c (is_path_expr_parent): Call is_path_expr_parent varobj
1032 (varobj_default_is_path_expr_parent): New function.
1033 * varobj.h (lang_varobj_ops): Add is_path_expr_parent field.
1034 (varobj_default_is_path_expr_parent): Declare new function.
1036 2014-07-08 Markus Metzger <markus.t.metzger@intel.com>
1038 * infcmd.c (finish_backward): Turn internal error into normal error.
1040 2014-07-07 Pedro Alves <palves@redhat.com>
1043 * remote.c (async_handle_remote_sigint)
1044 (async_handle_remote_sigint_twice): Call
1045 gdb_call_async_signal_handler instead of
1046 mark_async_signal_handler.
1048 2014-07-07 Tom Tromey <tromey@redhat.com>
1050 * target-delegates.c: Rebuild.
1051 * target.c (target_info_record): Remove.
1052 * record.c (info_record_command): Unconditionally call
1054 * target.h (struct target_ops) <to_info_record>: Use
1055 TARGET_DEFAULT_IGNORE.
1056 (target_info_record): Remove.
1058 2014-07-07 Tom Tromey <tromey@redhat.com>
1060 * target.h (struct target_ops) <to_get_thread_local_address>: Use
1061 TARGET_DEFAULT_NORETURN.
1062 * target.c (generic_tls_error): New function.
1063 (target_translate_tls_address): Don't search target stack.
1064 * target-delegates.c: Rebuild.
1065 * ppc-linux-tdep.c (ppc_linux_spe_context): Don't search target
1067 * linux-thread-db.c (thread_db_get_thread_local_address):
1068 Unconditionally call beneath target.
1070 2014-07-03 Marc Khouzam <marc.khouzam@ericsson.com>
1072 * cli/cli-logging.c (pop_output_files): Assign targerr to
1075 2014-07-03 Andrew Burgess <andrew.burgess@embecosm.com>
1077 * MAINTAINERS (Write After Approval): Update my email address.
1079 2014-07-02 Gary Benson <gbenson@redhat.com>
1081 * proc-service.c (ps_xfer_memory): Update comment.
1082 (ps_pstop): Remove unused function.
1083 (ps_pcontinue): Likewise.
1084 (ps_lstop): Likewise.
1085 (ps_lcontinue): Likewise.
1086 (ps_lgetxregsize): Likewise.
1087 (ps_lgetxregs): Likewise.
1088 (ps_lsetxregs): Likewise.
1089 (ps_plog): Likewise.
1090 (ps_ptread): Likewise.
1091 (ps_ptwrite): Likewise.
1093 2014-07-01 Mark Wielaard <mjw@redhat.com>
1095 * dwarf2read.c (add_array_cv_type): New function.
1096 (read_tag_const_type): Call add_array_cv_type for TYPE_CODE_ARRAY.
1097 (read_tag_volatile_type): Likewise.
1099 2014-07-01 Tom Tromey <tromey@redhat.com>
1101 * breakpoint.c (add_catch_command): Use cmd_sfunc_ftype.
1102 * breakpoint.h (add_catch_command): Use cmd_sfunc_ftype.
1103 * cli/cli-decode.c (cmd_cfunc_eq, add_cmd, add_prefix_cmd)
1104 (add_abbrev_prefix_cmd, add_info, add_com): Use cmd_cfunc_ftype.
1105 * command.h (cmd_cfunc_ftype): Move earlier.
1106 (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd, cmd_cfunc_eq)
1107 (add_com, add_info): Use cmd_cfunc_ftype.
1109 2014-06-30 Tom Tromey <tromey@redhat.com>
1111 * symtab.c (operator_chars): Make parameters and return type
1113 (file_matches): Make "files" const.
1114 (struct search_symbols_data) <files>: Now const.
1115 (search_symbols): Make "regexp" and "files" parameters const.
1117 (symtab_symbol_info): Remove cast.
1118 (rbreak_command): Update.
1119 * symtab.h (search_symbols): Update.
1121 2014-06-27 Yao Qi <yao@codesourcery.com>
1123 * breakpoint.c (check_longjmp_breakpoint_for_call_dummy):
1124 Change parameter type to 'struct thread_info *'. Caller
1126 * breakpoint.h (check_longjmp_breakpoint_for_call_dummy):
1128 * dummy-frame.c (struct dummy_frame_id): New.
1129 (dummy_frame_id_eq): New function.
1130 (struct dummy_frame) <id>: Change its type to 'struct
1132 (dummy_frame_push): Add parameter ptid and save it in
1134 (pop_dummy_frame_bpt): Use ptid of dummy_frame instead of
1136 (pop_dummy_frame): Assert that the ptid of dummy_frame equals
1138 (lookup_dummy_frame): Change parameter type to 'struct
1139 dummy_frame_id *'. Callers updated. Call dummy_frame_id_eq
1140 instead of frame_id_eq.
1141 (dummy_frame_pop): Add parameter ptid. Callers updated.
1142 Update comments. Compose dummy_frame_id and pass it to
1144 (dummy_frame_discard): Add parameter ptid.
1145 (dummy_frame_sniffer): Compose dummy_frame_id and call
1146 dummy_frame_id_eq instead of frame_id_eq.
1147 (fprint_dummy_frames): Print ptid.
1148 * dummy-frame.h: Remove comments.
1149 (dummy_frame_push): Add ptid in declaration.
1150 (dummy_frame_pop, dummy_frame_discard): Likewise.
1152 2014-06-26 Tom Tromey <tromey@redhat.com>
1154 * cli/cli-cmds.c (error_no_arg): Make "why" const.
1155 * command.h (error_no_arg): Update.
1157 2014-06-26 Tom Tromey <tromey@redhat.com>
1159 * cli/cli-setshow.c (do_set_command): Make "arg" const.
1160 (do_show_command): Make "arg" const.
1161 * cli/cli-setshow.h (do_set_command, do_show_command): Update.
1163 2014-06-26 Tom Tromey <tromey@redhat.com>
1165 * record-full.c (record_full_get_bookmark): Make "args" const.
1166 (record_full_goto_bookmark): Make "raw_bookmark" const.
1167 * record.c (record_goto): New function.
1168 (cmd_record_goto): Use it. Now static.
1169 * record.h (record_goto): Declare.
1170 (cmd_record_goto): Remove declaration.
1171 * target-delegates.c: Rebuild.
1172 * target.h (struct target_ops) <to_get_bookmark,
1173 to_goto_bookmark>: Make parameter const.
1175 2014-06-26 Tom Tromey <tromey@redhat.com>
1177 * defs.h (generic_load): Update.
1178 * m32r-rom.c (m32r_load_gen): Make "filename" const.
1179 * monitor.c (monitor_load): Make "args" const.
1180 * remote-m32r-sdi.c (m32r_load): Make "args" const.
1181 * remote-mips.c (mips_load_srec, pmon_load_fast): Make "args"
1183 (mips_load): Make "file" const.
1184 * remote-sim.c (gdbsim_load): Make "args" const.
1185 * remote.c (remote_load): Make "name" const.
1186 * symfile.c (generic_load): Make "args" const.
1187 * target-delegates.c: Rebuild.
1188 * target.c (target_load): Make "arg" const.
1189 (debug_to_load): Make "args" const.
1190 * target.h (struct target_ops) <to_load>: Make parameter const.
1191 (target_load): Update.
1193 2014-06-26 Tom Tromey <tromey@redhat.com>
1196 * dwarf2read.c (fixup_go_packaging, dwarf2_compute_name)
1197 (dwarf2_physname, read_partial_die)
1198 (guess_partial_die_structure_name, fixup_partial_die)
1199 (guess_full_die_structure_name, anonymous_struct_prefix)
1200 (dwarf2_name): Use per-BFD obstack.
1202 2014-06-26 Yao Qi <yao@codesourcery.com>
1204 * dummy-frame.c (dummy_frame_sniffer): Move local variables
1205 dummyframe and this_id into inner block below.
1207 2014-06-26 Yao Qi <yao@codesourcery.com>
1209 * infrun.c (_initialize_infrun): Replace "signal_program[0]"
1210 with "signal_pass[0]" in the initialization of signal_pass.
1212 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1214 * record-btrace.c (record_btrace_generating_corefile)
1215 (record_btrace_prepare_to_generate_core)
1216 (record_btrace_done_generating_core): New.
1217 (record_btrace_xfer_partial, record_btrace_fetch_registers)
1218 (record_btrace_store_registers, record_btrace_prepare_to_store):
1219 Forward request when generating a core file.
1220 (record_btrace_open): Set record_btrace_generating_corefile to zero.
1221 (init_record_btrace_ops): Set to_prepare_to_generate_core and
1222 to_done_generating_core.
1224 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1226 * target.h (target_ops) <to_prepare_to_generate_core>
1227 <to_done_generating_core>: New.
1228 (target_prepare_to_generate_core, target_done_generating_core): New.
1229 * target.c (target_prepare_to_generate_core)
1230 (target_done_generating_core): New.
1231 * target-delegates.c: Regenerate.
1232 * gcore.c: (write_gcore_file): Rename to ...
1233 (write_gcore_file_1): ...this.
1234 (write_gcore_file): Call target_prepare_to_generate_core
1235 and target_done_generating_core.
1237 2014-06-25 Markus Metzger <markus.t.metzger@intel.com>
1239 * fbsd-nat.c (fbsd_make_corefile_notes): Remove make_cleanup call.
1240 * gcore.c (write_gcore_file): Free memory returned from
1241 make_corefile_notes.
1242 * linux-tdep.c (linux_make_corefile_notes): Remove make_cleanup call.
1243 * procfs.c (procfs_make_note_section): Remove make_cleanup call.
1245 2014-06-24 Yao Qi <yao@codesourcery.com>
1247 * arm-linux-tdep.c (arm_linux_skip_trampoline_code): New.
1248 (arm_linux_init_abi): Set skip_trampoline_code with
1249 gdbarch_skip_trampoline_code instead of
1250 find_solib_trampoline_target.
1252 2014-06-24 Yao Qi <yao@codesourcery.com>
1254 * arm-tdep.c (arm_stub_unwind_sniffer): Return 1 if
1255 arm_skip_bx_reg returns non-zero.
1257 2014-06-24 Yao Qi <yao@codesourcery.com>
1259 * arm-tdep.c (arm_skip_bx_reg): New function.
1260 (arm_skip_stub): Call arm_skip_bx_reg.
1262 2014-06-23 Don Breazeal <donb@codesourcery.com>
1264 * MAINTAINERS: Add myself as write-after-approval maintainer.
1266 2014-06-23 Pedro Alves <palves@redhat.com>
1268 * amd64-linux-nat.c (amd64_linux_prepare_to_resume): Clear
1269 DR_CONTROL before setting DR0..DR3.
1270 * i386-linux-nat.c (i386_linux_prepare_to_resume): Likewise.
1271 * nat/i386-dregs.c (i386_remove_aligned_watchpoint): Clear all
1272 bits of DR_CONTROL related to the debug register slot being
1273 disabled. If all slots are vacant, clear local slowdown as well,
1274 and assert DR_CONTROL is 0.
1276 2014-06-23 Siva Chandra Reddy <sivachandra@google.com>
1278 * python/lib/gdb/command/xmethods.py
1279 (get_method_matchers_in_loci): Lookup xmethod matchers in the
1280 current progspace only if the string "progspace" matches LOCUS_RE.
1282 2014-06-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1284 Fix --with-system-readline with readline-6.3 patch 5.
1285 * tui/tui-io.c (tui_old_rl_getc_function, tui_old_rl_redisplay_function)
1286 (tui_old_rl_prep_terminal, tui_old_rl_deprep_terminal): Use rl_*_t
1289 2014-06-20 Tom Tromey <tromey@redhat.com>
1291 * dwarf2read.c (dw2_get_real_path): Use correct type in
1293 * gdb_obstack.h (OBSTACK_ZALLOC, OBSTACK_CALLOC): Cast result.
1295 2014-06-20 Gary Benson <gbenson@redhat.com>
1297 * common/gdb_thread_db.h: Moved to nat. All includes updated.
1298 * common/glibc_thread_db.h: Likewise.
1299 * common/i386-cpuid.h: Likewise.
1300 * common/i386-gcc-cpuid.h: Likewise.
1301 * common/linux-btrace.h: Likewise.
1302 * common/linux-osdata.h: Likewise.
1303 * common/linux-procfs.h: Likewise.
1304 * common/linux-ptrace.h: Likewise.
1305 * common/mips-linux-watch.h: Likewise.
1306 * common/linux-btrace.c: Moved to nat.
1307 * common/linux-osdata.c: Likewise.
1308 * common/linux-procfs.c: Likewise.
1309 * common/linux-ptrace.c: Likewise.
1310 * common/mips-linux-watch.c: Likewise.
1311 * nat/gdb_thread_db.h: Moved from common.
1312 * nat/glibc_thread_db.h: Likewise.
1313 * nat/i386-cpuid.h: Likewise.
1314 * nat/i386-gcc-cpuid.h: Likewise.
1315 * nat/linux-btrace.c: Likewise.
1316 * nat/linux-btrace.h: Likewise.
1317 * nat/linux-osdata.c: Likewise.
1318 * nat/linux-osdata.h: Likewise.
1319 * nat/linux-procfs.c: Likewise.
1320 * nat/linux-procfs.h: Likewise.
1321 * nat/linux-ptrace.c: Likewise.
1322 * nat/linux-ptrace.h: Likewise.
1323 * nat/mips-linux-watch.c: Likewise.
1324 * nat/mips-linux-watch.h: Likewise.
1325 * Makefile.in (HFILES_NO_SRCDIR): Reflect new locations.
1326 (object file files): Reordered.
1327 * gdb/copyright.py (EXCLUDE_LIST): Reflect new location
1328 of glibc_thread_db.h.
1330 2014-06-20 Gary Benson <gbenson@redhat.com>
1332 * i386-nat.h (debug_hw_points): Moved to nat/i386-dregs.c.
1333 (i386_dr_low_type): Moved to nat/i386-dregs.h.
1334 (i386_dr_low): Likewise.
1335 (i386_dr_low_can_set_addr): Moved to nat/i386-dregs.c.
1336 (i386_dr_low_set_addr): Likewise.
1337 (i386_dr_low_get_addr): Likewise.
1338 (i386_dr_low_can_set_control): Likewise.
1339 (i386_dr_low_set_control): Likewise.
1340 (i386_dr_low_get_control): Likewise.
1341 (i386_dr_low_get_status): Likewise.
1342 (i386_get_debug_register_length): Likewise.
1343 * nat/i386-dregs.h (i386_dr_low_type): Moved from i386-nat.h.
1344 (i386_dr_low): Likewise.
1345 * nat/i386-dregs.c (i386-low.h): Remove include.
1346 (i386-nat.h): Likewise.
1347 (nat/i386-dregs.h): New include.
1348 (i386_dr_low_can_set_addr): Moved from i386-nat.h.
1349 (i386_dr_low_set_addr): Likewise.
1350 (i386_dr_low_get_addr): Likewise.
1351 (i386_dr_low_can_set_control): Likewise.
1352 (i386_dr_low_set_control): Likewise.
1353 (i386_dr_low_get_control): Likewise.
1354 (i386_dr_low_get_status): Likewise.
1355 (i386_get_debug_register_length): Likewise.
1356 (debug_hw_points): Likewise.
1358 2014-06-19 Iain Buclaw <ibuclaw@gdcproject.org>
1360 * Makefile.in (SFILES): Add d-exp.y.
1361 (YYFILES): Add d-exp.c.
1362 (YYOBJ): Add d-exp.o.
1363 (local-maintainer-clean): Delete d-exp.c.
1364 * d-exp.y: New file.
1365 * d-lang.h (d_parse): New declaration.
1366 (d_error): New declaration.
1367 * d-lang.c (d_op_print_tab): Add entry for BINOP_CONCAT and BINOP_EXP.
1368 Set BINOP_EQUAL and BINOP_NOTEQUAL to same precedence as other
1369 PREC_ORDER operators.
1370 (d_language_defn): Use d_parse, d_error instead of c_parse, c_error.
1372 2014-06-19 Yao Qi <yao@codesourcery.com>
1374 * gdbthread.h (any_running): Remove the declaration.
1375 * thread.c (any_running): Remove.
1377 2014-06-19 Yao Qi <yao@codesourcery.com>
1379 * gdbthread.h (struct thread_info) <state>: Change its type to
1380 'enum thread_state'. Update comments.
1382 2014-06-19 Pedro Alves <palves@redhat.com>
1384 * gdbthread.h (ALL_THREADS): Delete.
1385 (ALL_NON_EXITED_THREADS): New macro.
1386 * btrace.c (btrace_free_objfile): Use ALL_NON_EXITED_THREADS
1387 instead of ALL_THREADS.
1388 * infrun.c (find_thread_needs_step_over)
1389 (switch_back_to_stepped_thread): Use ALL_NON_EXITED_THREADS
1390 instead of ALL_THREADS.
1391 * record-btrace.c (record_btrace_open)
1392 (record_btrace_stop_recording, record_btrace_close)
1393 (record_btrace_is_replaying, record_btrace_resume)
1394 (record_btrace_find_thread_to_move, record_btrace_wait): Likewise.
1395 * remote.c (append_pending_thread_resumptions): Likewise.
1396 * thread.c (thread_apply_all_command): Likewise.
1398 2014-06-19 Gary Benson <gbenson@redhat.com>
1400 * i386-nat.c (i386_stopped_by_watchpoint):
1401 Use i386_dr_stopped_by_watchpoint.
1402 (i386_insert_hw_breakpoint): Use i386_dr_insert_watchpoint.
1403 (i386_remove_hw_breakpoint): Use i386_dr_remove_watchpoint.
1405 2014-06-19 Gary Benson <gbenson@redhat.com>
1407 * nat/i386-dregs.c: New file.
1408 * Makefile.in (i386-dregs.o): New rule.
1409 * config/i386/cygwin.mh (NATDEPFILES): Add i386-dregs.o.
1410 * config/i386/cygwin64.mh (NATDEPFILES): Likewise.
1411 * config/i386/darwin.mh (NATDEPFILES): Likewise.
1412 * config/i386/fbsd.mh (NATDEPFILES): Likewise.
1413 * config/i386/fbsd64.mh (NATDEPFILES): Likewise.
1414 * config/i386/go32.mh (NATDEPFILES): Likewise.
1415 * config/i386/linux.mh (NATDEPFILES): Likewise.
1416 * config/i386/linux64.mh (NATDEPFILES): Likewise.
1417 * config/i386/mingw.mh (NATDEPFILES): Likewise.
1418 * config/i386/mingw64.mh (NATDEPFILES): Likewise.
1419 * i386-nat.h (debug_hw_points): New declaration.
1420 * i386-nat.c (breakpoint.h): Remove include.
1421 (command.h): Likewise.
1422 (target.h): Likewise.
1423 (gdb_assert.h): Likewise.
1424 (debug_hw_points): Made nonstatic.
1425 (debug_printf): Now in i386-dregs.c.
1426 (TARGET_HAS_DR_LEN_8): Likewise.
1427 (DR_CONTROL_SHIFT): Likewise.
1428 (DR_CONTROL_SIZE): Likewise.
1429 (DR_RW_EXECUTE): Likewise.
1430 (DR_RW_WRITE): Likewise.
1431 (DR_RW_READ): Likewise.
1432 (DR_RW_IORW): Likewise.
1433 (DR_LEN_1): Likewise.
1434 (DR_LEN_2): Likewise.
1435 (DR_LEN_4): Likewise.
1436 (DR_LEN_8): Likewise.
1437 (DR_LOCAL_ENABLE_SHIFT): Likewise.
1438 (DR_GLOBAL_ENABLE_SHIFT): Likewise.
1439 (DR_ENABLE_SIZE): Likewise.
1440 (DR_LOCAL_SLOWDOWN): Likewise.
1441 (DR_GLOBAL_SLOWDOWN): Likewise.
1442 (DR_CONTROL_RESERVED): Likewise.
1443 (I386_DR_CONTROL_MASK): Likewise.
1444 (I386_DR_VACANT): Likewise.
1445 (I386_DR_LOCAL_ENABLE): Likewise.
1446 (I386_DR_GLOBAL_ENABLE): Likewise.
1447 (I386_DR_DISABLE): Likewise.
1448 (I386_DR_SET_RW_LEN): Likewise.
1449 (I386_DR_GET_RW_LEN): Likewise.
1450 (I386_DR_WATCH_HIT): Likewise.
1451 (i386_wp_op_t): Likewise.
1452 (i386_show_dr): Likewise.
1453 (i386_length_and_rw_bits): Likewise.
1454 (i386_insert_aligned_watchpoint): Likewise.
1455 (i386_remove_aligned_watchpoint): Likewise.
1456 (i386_handle_nonaligned_watchpoint): Likewise.
1457 (i386_update_inferior_debug_regs): Likewise.
1458 (i386_insert_watchpoint): Use i386_dr_insert_watchpoint.
1459 (i386_remove_watchpoint): Use i386_dr_remove_watchpoint.
1460 (i386_region_ok_for_watchpoint):
1461 Use i386_dr_region_ok_for_watchpoint.
1462 (i386_stopped_data_address): Use i386_dr_stopped_data_address.
1464 2014-06-19 Gary Benson <gbenson@redhat.com>
1466 * i386-nat.c (i386_insert_hw_breakpoint): Use
1467 i386_insert_watchpoint.
1468 (i386_remove_hw_breakpoint): Use i386_remove_watchpoint.
1470 2014-06-19 Gary Benson <gbenson@redhat.com>
1472 * i386-nat.c (i386_dr_show): Renamed to
1473 i386_show_dr and made static. All uses updated.
1474 (i386_dr_length_and_rw_bits): Renamed to
1475 i386_length_and_rw_bits and made static.
1477 (i386_dr_insert_aligned_watchpoint): Renamed to
1478 i386_insert_aligned_watchpoint and made static.
1480 (i386_dr_remove_aligned_watchpoint): Renamed to
1481 i386_remove_aligned_watchpoint and made static.
1483 (i386_dr_update_inferior_debug_regs): Renamed to
1484 i386_update_inferior_debug_regs and made static.
1486 * nat/i386-dregs.h (i386_dr_show): Removed.
1487 (i386_dr_length_and_rw_bits): Likewise.
1488 (i386_dr_insert_aligned_watchpoint): Likewise.
1489 (i386_dr_remove_aligned_watchpoint): Likewise.
1490 (i386_dr_update_inferior_debug_regs): Likewise.
1492 2014-06-19 Gary Benson <gbenson@redhat.com>
1494 * configure.ac [AC_CHECK_FUNCS] <sigaltstack>: New check.
1495 * configure: Regenerate.
1496 * config.in: Likewise.
1497 * main.c (signal.h): New include.
1498 (setup_alternate_signal_stack): New function.
1499 (captured_main): Call the above.
1500 * cp-support.c (signal.h): New include.
1501 (catch_demangler_crashes): New flag.
1502 (SIGJMP_BUF): New define.
1503 (SIGSETJMP): Likewise.
1504 (SIGLONGJMP): Likewise.
1505 (gdb_demangle_jmp_buf): New static global.
1506 (gdb_demangle_attempt_core_dump): Likewise.
1507 (gdb_demangle_signal_handler): New function.
1508 (gdb_demangle): If catch_demangler_crashes is set, install the
1509 above signal handler before calling bfd_demangle, and restore
1510 the original signal handler afterwards. Display the offending
1511 symbol and call demangler_warning the first time a segmentation
1513 (_initialize_cp_support): New maint set/show command.
1515 2014-06-19 Gary Benson <gbenson@redhat.com>
1517 * utils.h (resource_limit_kind): New enum.
1518 (can_dump_core): New declaration.
1519 (warn_cant_dump_core): Likewise.
1520 (dump_core): Likewise.
1521 * utils.c (dump_core): Made nonstatic. Added new
1522 parameter "limit_kind".
1523 (can_dump_core): Made nonstatic. Moved printing code to...
1524 (warn_cant_dump_core): New function.
1525 (can_dump_core_warn): Likewise.
1526 (internal_vproblem): Replace calls to can_dump_core with
1527 calls to can_dump_core_warn. Supply new argument to each.
1529 2014-06-19 Gary Benson <gbenson@redhat.com>
1531 * utils.h (demangler_vwarning): New declaration.
1532 (demangler_warning): Likewise.
1533 * utils.c (struct internal_problem)
1534 <user_settable_should_quit>: New field.
1535 <user_settable_should_dump_core>: Likewise
1536 (internal_error_problem): Add values for above new fields.
1537 (internal_warning_problem): Likewise.
1538 (demangler_warning_problem): New static global.
1539 (demangler_vwarning): New function.
1540 (demangler_warning): Likewise.
1541 (add_internal_problem_command): Selectively add commands.
1542 (_initialize_utils): New internal problem command.
1543 * maint.c (maintenance_demangler_warning): New function.
1544 (_initialize_maint_cmds): New command.
1546 2014-06-18 Tom Tromey <tromey@redhat.com>
1548 * f-valprint.c (info_common_command_for_block): Update.
1549 * symtab.h (struct general_symbol_info) <common_block>: Now
1552 2014-06-18 Tom Tromey <tromey@redhat.com>
1554 * symtab.h (struct symtab) <blockvector>: Now const.
1555 * ada-lang.c (ada_add_global_exceptions): Update.
1556 * buildsym.c (augment_type_symtab): Update.
1557 * dwarf2read.c (dw2_lookup_symbol): Update.
1558 * jit.c (finalize_symtab): Update.
1559 * jv-lang.c (add_class_symtab_symbol): Update.
1560 * mdebugread.c (parse_symbol, add_block, sort_blocks, new_symtab):
1562 * objfiles.c (objfile_relocate1): Update.
1563 * psymtab.c (lookup_symbol_aux_psymtabs)
1564 (maintenance_check_psymtabs): Update.
1565 * python/py-symtab.c (stpy_global_block, stpy_static_block):
1567 * spu-tdep.c (spu_catch_start): Update.
1568 * symmisc.c (dump_symtab_1): Update.
1569 * symtab.c (lookup_global_symbol_from_objfile)
1570 (lookup_symbol_aux_objfile, lookup_symbol_aux_quick)
1571 (basic_lookup_transparent_type_quick)
1572 (basic_lookup_transparent_type, find_pc_sect_symtab)
1573 (find_pc_sect_line, search_symbols): Update.
1574 * block.c (find_block_in_blockvector): Make "bl" const.
1575 (blockvector_for_pc_sect, blockvector_for_pc): Make return type
1577 (blockvector_contains_pc): Make "bv" const.
1578 (block_for_pc_sect): Update.
1579 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1580 (blockvector_contains_pc): Update.
1581 * breakpoint.c (resolve_sal_pc): Update.
1582 * inline-frame.c (block_starting_point_at): Update.
1584 2014-06-18 Tom Tromey <tromey@redhat.com>
1586 * completer.c (complete_line): Make "line_buffer" const.
1587 * completer.h (complete_line): Update.
1589 2014-06-18 Tom Tromey <tromey@redhat.com>
1591 * symtab.c (add_macro_name): Remove unneeded cast.
1593 2014-06-18 Tom Tromey <tromey@redhat.com>
1595 * cli/cli-setshow.h (parse_cli_boolean_value): Update.
1596 * cli/cli-setshow.c (parse_cli_boolean_value): Make "arg" const.
1598 2014-06-18 Tom Tromey <tromey@redhat.com>
1600 * probe.c (info_probes_for_ops): Make "arg" const.
1601 * probe.h (info_probes_for_ops): Update.
1603 2014-06-18 Tom Tromey <tromey@redhat.com>
1605 * varobj.c (varobj_create): Update.
1606 * valops.c (value_of_this): Update.
1607 * tracepoint.c (add_local_symbols, scope_info): Update.
1608 * symtab.h (struct general_symbol_info) <block>: Now const.
1609 * symtab.c (skip_prologue_sal)
1610 (default_make_symbol_completion_list_break_on)
1611 (skip_prologue_using_sal): Update.
1612 * stack.h (iterate_over_block_locals)
1613 (iterate_over_block_local_vars): Update.
1614 * stack.c (print_frame_args): Update.
1615 (iterate_over_block_locals, iterate_over_block_local_vars): Make
1617 (get_selected_block): Make return type const.
1618 * python/py-frame.c (frapy_block): Update.
1619 * python/py-block.c (gdbpy_block_for_pc): Update.
1620 * p-exp.y (%union) <bval>: Now const.
1621 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1622 * mdebugread.c (mylookup_symbol, parse_procedure): Update.
1623 * m2-exp.y (%union) <bval>: Now const.
1624 * linespec.c (get_current_search_block): Make return type const.
1625 (create_sals_line_offset, find_label_symbols): Update.
1626 * inline-frame.c (inline_frame_sniffer, skip_inline_frames):
1628 (block_starting_point_at): Make "block" const.
1629 * infrun.c (insert_exception_resume_breakpoint): Make "b" const.
1630 (check_exception_resume): Update.
1631 * guile/scm-frame.c (gdbscm_frame_block): Update.
1632 * guile/scm-block.c (gdbscm_lookup_block): Update.
1633 * frame.h (get_frame_block): Update.
1634 (get_selected_block): Make return type const.
1635 * frame.c (frame_id_inner): Update.
1636 * f-valprint.c (info_common_command_for_block)
1637 (info_common_command): Update.
1638 * dwarf2loc.c (dwarf2_find_location_expression)
1639 (dwarf_expr_frame_base, dwarf2_compile_expr_to_ax)
1640 (locexpr_describe_location_piece): Update.
1641 * c-exp.y (%union) <bval>: Now const.
1642 * breakpoint.c (resolve_sal_pc): Update.
1643 * blockframe.c (get_frame_block):Make return type const.
1644 (get_pc_function_start, get_frame_function, find_pc_sect_function)
1645 (block_innermost_frame): Update.
1646 * block.h (blockvector_for_pc, blockvector_for_pc_sect)
1647 (block_for_pc, block_for_pc_sect): Update.
1648 * block.c (blockvector_for_pc_sect, blockvector_for_pc): Make
1650 (block_for_pc_sect, block_for_pc): Make return type const.
1651 * ax-gdb.c (gen_expr): Update.
1652 * alpha-mdebug-tdep.c (find_proc_desc): Update.
1653 * ada-lang.c (ada_read_renaming_var_value): Make 'block' const.
1654 (ada_make_symbol_completion_list, ada_add_exceptions_from_frame)
1655 (ada_read_var_value): Update.
1656 * ada-exp.y (struct name_info) <block>: Now const.
1658 (block_lookup): Constify.
1660 2014-06-18 Gary Benson <gbenson@redhat.com>
1662 * nat/i386-dregs.h: New file.
1663 * Makefile.in (HFILES_NO_SRCDIR): Add the above.
1664 * i386-nat.h (i386-dregs.h): New include.
1665 (DR_FIRSTADDR): Now in i386-dregs.h.
1666 (DR_LASTADDR): Likewise.
1667 (DR_NADDR): Likewise.
1668 (DR_STATUS): Likewise.
1669 (DR_CONTROL): Likewise.
1670 (i386_debug_reg_state): Likewise.
1671 * i386-nat.c (ALL_DEBUG_REGISTERS): Likewise.
1673 2014-06-18 Don Breazeal <donb@codesourcery.com>
1675 * breakpoint.c (set_longjmp_breakpoint): Call
1676 momentary_breakpoint_from_master with additional argument.
1677 (set_longjmp_breakpoint_for_call_dummy): Call
1678 momentary_breakpoint_from_master with additional argument.
1679 (set_std_terminate_breakpoint): Call
1680 momentary_breakpoint_from_master with additional argument.
1681 (momentary_breakpoint_from_master): Add argument to function
1682 definition and use it to initialize structure member flag.
1683 (clone_momentary_breakpoint): Call
1684 momentary_breakpoint_from_master with additional argument.
1685 * infrun.c (follow_inferior_reset_breakpoints): Clear structure
1686 member flags set in momentary_breakpoint_from_master.
1688 2014-06-18 Gary Benson <gbenson@redhat.com>
1690 * i386-nat.c (i386_show_dr): Renamed to
1691 i386_dr_show and made nonstatic. All uses updated.
1692 (i386_length_and_rw_bits): Renamed to
1693 i386_dr_length_and_rw_bits and made nonstatic.
1695 (i386_insert_aligned_watchpoint): Renamed to
1696 i386_dr_insert_aligned_watchpoint and made nonstatic.
1698 (i386_remove_aligned_watchpoint): Renamed to
1699 i386_dr_remove_aligned_watchpoint and made nonstatic.
1701 (i386_update_inferior_debug_regs): Renamed to
1702 i386_dr_update_inferior_debug_regs and made nonstatic.
1705 2014-06-18 Gary Benson <gbenson@redhat.com>
1707 * i386-nat.c (i386_dr_low_can_set_addr): New macro.
1708 (i386_dr_low_can_set_control): Likewise.
1709 (i386_dr_low_set_addr): Likewise.
1710 (i386_dr_low_set_control): Likewise.
1711 (i386_dr_low_get_addr): Likewise.
1712 (i386_dr_low_get_status): Likewise.
1713 (i386_dr_low_get_control): Likewise.
1714 (i386_insert_aligned_watchpoint): Use new macros.
1715 (i386_update_inferior_debug_regs): Likewise.
1716 (i386_stopped_data_address): Likewise.
1718 2014-06-18 Gary Benson <gbenson@redhat.com>
1720 * i386-nat.c (i386_update_inferior_debug_regs) <state>:
1721 New parameter. All uses updated.
1723 2014-06-18 Gary Benson <gbenson@redhat.com>
1725 * i386-nat.c (maint_show_dr): Renamed to debug_hw_points.
1728 2014-06-18 Gary Benson <gbenson@redhat.com>
1730 * i386-nat.c (debug_printf): New macro.
1731 (i386_get_debug_register_length): Likewise.
1732 (TARGET_HAS_DR_LEN_8): Use above macro.
1733 (i386_show_dr): Use debug_printf instead of puts_unfiltered
1734 and printf_unfiltered. Use phex to format values.
1736 2014-06-18 Gary Benson <gbenson@redhat.com>
1738 * i386-nat.c (i386_handle_nonaligned_watchpoint) <size_try_array>:
1741 2014-06-18 Gary Benson <gbenson@redhat.com>
1743 * i386-nat.c: Comment changes.
1745 2014-06-18 Gary Benson <gbenson@redhat.com>
1747 * i386-nat.c (I386_DR_WATCH_MASK): Remove macro.
1749 2014-06-18 Gary Benson <gbenson@redhat.com>
1751 * i386-nat.c (i386_length_and_rw_bits): Remove prototype.
1752 (i386_insert_aligned_watchpoint): Likewise.
1753 (i386_remove_aligned_watchpoint): Likewise.
1754 (i386_handle_nonaligned_watchpoint): Likewise.
1756 2014-06-18 Gary Benson <gbenson@redhat.com>
1758 * i386-nat.c: Whitespace changes.
1760 2014-06-17 Samuel Bronson <naesten@gmail.com>
1762 * MAINTAINERS: Update Roland McGrath's email address.
1763 Thanks to Sergio Durigan Junior for pointing out that he left
1764 Red Hat a while ago, and giving me a current address.
1766 2014-06-17 Tom Tromey <tromey@redhat.com>
1768 * utils.h (savestring): Remove declaration.
1770 2014-06-17 Tom Tromey <tromey@redhat.com>
1772 * remote.c (extended_remote_run): Use make_cleanup_freeargv.
1774 2014-06-16 Keith Seitz <keiths@redhat.com>
1777 * mi/mi-cmd-var.c (mi_cmd_var_update_iter): Do not attempt
1778 to update the varobj if inferior_ptid is null_ptid.
1780 2014-06-16 Tom Tromey <tromey@redhat.com>
1782 * target.h (struct target_ops) <to_info_proc>: Make parameter
1784 (target_info_proc): Update.
1785 * target.c (target_info_proc): Make "args" const.
1786 * procfs.c (procfs_info_proc): Update.
1787 * linux-tdep.c (linux_info_proc): Update.
1788 (linux_core_info_proc_mappings): Make "args" const.
1789 (linux_core_info_proc): Update.
1790 * gdbarch.sh (info_proc, core_info_proc): Make "args" const.
1791 * gdbarch.c: Rebuild.
1792 * gdbarch.h: Rebuild.
1793 * corelow.c (core_info_proc): Update.
1795 2014-06-16 Tom Tromey <tromey@redhat.com>
1797 * target.h (struct target_ops) <to_disconnect>: Make parameter
1799 (target_disconnect): Update.
1800 * target.c (target_disconnect): Make "args" const.
1801 * target-delegates.c: Rebuild.
1802 * remote.c (remote_disconnect): Update.
1803 * record.h (record_disconnect): Update.
1804 * record.c (record_disconnect): Update.
1805 * inf-child.c (inf_child_disconnect): Update.
1807 2014-06-16 Tom Tromey <tromey@redhat.com>
1809 * target.h (struct target_ops) <to_rcmd>: Make "command" const.
1810 * target.c (debug_to_rcmd, default_rcmd): Update.
1811 * target-delegates.c: Rebuild.
1812 * remote.c (remote_rcmd): Update.
1813 * monitor.c (monitor_rcmd): Update.
1815 2014-06-16 Pedro Alves <palves@redhat.com>
1817 * breakpoint.c (insert_bp_location, remove_breakpoint_1): Adjust.
1818 (disable_breakpoints_in_freed_objfile): Skip objfiles that don't
1819 have OBJF_SHARED set.
1820 * objfiles.c (userloaded_objfile_contains_address_p): Rename to...
1821 (shared_objfile_contains_address_p): ... this. Check OBJF_SHARED
1822 instead of OBJF_USERLOADED.
1823 * objfiles.h (OBJF_SHARED): Update comment.
1824 (userloaded_objfile_contains_address_p): Rename to ...
1825 (shared_objfile_contains_address_p): ... this, and update
1827 * symfile.c (add_symbol_file_command): Also set OBJF_SHARED in the
1829 (remove_symbol_file_command): Skip objfiles that don't have
1832 2014-06-16 Tom Tromey <tromey@redhat.com>
1834 * minsyms.h (prim_record_minimal_symbol)
1835 (prim_record_minimal_symbol_and_info): Update comments.
1837 2014-06-14 Eli Zaretskii <eliz@gnu.org>
1839 * top.c (print_gdb_configuration) [HAVE_GUILE]: Print --with-guile
1840 or --without-guile, according to how GDB was built.
1842 2014-06-13 Tom Tromey <tromey@redhat.com>
1844 * cp-support.c (maint_cplus_command): Pass all_commands, not -1,
1846 * guile/guile.c (info_guile_command): Pass all_commands, not -1,
1848 * tui/tui-win.c (tui_command): Pass all_commands, not -1, to
1850 * tui/tui-regs.c (tui_reg_command): Pass all_commands, not -1, to
1851 help_list.Pass all_commands, not -1, to help_list.
1852 * cli/cli-dump.c (dump_command, append_command)
1853 (srec_dump_command, ihex_dump_command, tekhex_dump_command)
1854 (binary_dump_command, binary_append_command): Pass all_commands,
1855 not -1, to help_list.
1856 * cli/cli-cmds.c (info_command, set_debug): Pass all_commands, not
1858 * valprint.c (set_print, set_print_raw): Pass all_commands, not
1860 * typeprint.c (set_print_type): Pass all_commands, not -1, to
1862 * top.c (set_history): Pass all_commands, not -1, to help_list.
1863 * target-descriptions.c (set_tdesc_cmd, unset_tdesc_cmd): Pass
1864 all_commands, not -1, to help_list.
1865 * symfile.c (overlay_command): Pass all_commands, not -1, to
1867 * spu-tdep.c (info_spu_command): Pass all_commands, not -1, to
1869 * serial.c (serial_set_cmd): Pass all_commands, not -1, to
1871 * ser-tcp.c (set_tcp_cmd, show_tcp_cmd): Pass all_commands, not
1873 * remote.c (remote_command, set_remote_cmd): Pass all_commands,
1874 not -1, to help_list.
1875 * ravenscar-thread.c (set_ravenscar_command): Pass all_commands,
1876 not -1, to help_list.
1877 * maint.c (maintenance_command, maintenance_info_command)
1878 (maintenance_print_command, maintenance_set_cmd): Pass
1879 all_commands, not -1, to help_list.
1880 * macrocmd.c (macro_command): Pass all_commands, not -1, to
1882 * language.c (set_check): Pass all_commands, not -1, to help_list.
1883 * infcmd.c (unset_command): Pass all_commands, not -1, to
1885 * frame.c (set_backtrace_cmd): Pass all_commands, not -1, to
1887 * dwarf2read.c (set_dwarf2_cmd): Pass all_commands, not -1, to
1889 * dcache.c (set_dcache_command): Pass all_commands, not -1, to
1891 * breakpoint.c (save_command): Pass all_commands, not -1, to
1893 * ada-lang.c (maint_set_ada_cmd, set_ada_command): Pass
1894 all_commands, not -1, to help_list.
1896 2014-06-12 Pierre Langlois <pierre.langlois@embecosm.com>
1898 * regcache.c (struct register_to_invalidate): New structure.
1899 (do_register_invalidate, make_cleanup_regcache_invalidate): New
1901 (regcache_raw_write): Call make_cleanup_regcache_invalidate.
1903 2014-06-12 Yao Qi <yao@codesourcery.com>
1905 * varobj.c (varobj_get_num_children): Call
1906 varobj_is_dynamic_p.
1907 (varobj_list_children): Likewise.
1908 (varobj_update): Likewise. Update comments.
1910 2014-06-12 Yao Qi <yao@codesourcery.com>
1912 * varobj.c (varobj_pretty_printed_p): Rename to ...
1913 (varobj_is_dynamic_p): ... this. New function.
1914 * varobj.h (varobj_pretty_printed_p): Remove declaration.
1915 (varobj_is_dynamic_p): Declare.
1916 * mi/mi-cmd-var.c (print_varobj): All callers updated.
1917 (mi_print_value_p, varobj_update_one): Likewise.
1919 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1920 Yao Qi <yao@codesourcery.com>
1922 * varobj.c: Remove "#if HAVE_PYTHON" and "#endif".
1923 (varobj_get_iterator): Wrap up code for pretty-printer by
1924 "#if HAVE_PYTHON" and "#endif".
1925 (update_dynamic_varobj_children): Likewise.
1927 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1928 Yao Qi <yao@codesourcery.com>
1930 * python/py-varobj.c (py_varobj_iter_next): Return NULL if
1931 gdb_python_initialized is false. Move some code from varobj.c.
1932 * varobj-iter.h (struct varobj_item): Moved from varobj.c.
1933 * varobj.c: Move "varobj-iter.h" inclusion earlier.
1934 (struct varobj_item): Moved to varobj-iter.h".
1935 (varobj_clear_saved_item): New function.
1936 (update_dynamic_varobj_children): Move python-related code to
1938 (free_variable): Call varobj_clear_saved_item and
1941 2014-06-12 Pedro Alves <pedro@codesourcery.com>
1942 Yao Qi <yao@codesourcery.com>
1944 * Makefile.in (SUBDIR_PYTHON_OBS): Add "py-varobj.o".
1945 (SUBDIR_PYTHON_SRCS): Add "python/py-varobj.c".
1946 (HFILES_NO_SRCDIR): Add "varobj-iter.h".
1947 (py-varobj.o): New rule.
1948 * python/py-varobj.c: New file.
1949 * python/python-internal.h (py_varobj_get_iterator): Declare.
1950 * varobj-iter.h: New file.
1951 * varobj.c: Include "varobj-iter.h"
1952 (struct varobj) <child_iter>: Change its type from "PyObject *"
1953 to "struct varobj_iter *".
1954 <saved_item>: Likewise.
1955 [HAVE_PYTHON] (varobj_ensure_python_env): Make it extern.
1956 [HAVE_PYTHON] (varobj_get_iterator): New function.
1957 (update_dynamic_varobj_children) [HAVE_PYTHON]: Move
1958 python-specific code to python/py-varobj.c.
1959 (install_visualizer): Call varobj_iter_delete instead of
1961 * varobj.h (varobj_ensure_python_env): Declare.
1963 2014-06-12 Yao Qi <yao@codesourcery.com>
1965 * varobj.c (struct varobj_item): New structure.
1966 (create_child_with_value): Update declaration.
1967 (varobj_add_child): Replace arguments 'name' and 'value' with
1968 'item'. All callers updated.
1969 (install_dynamic_child): Likewise.
1970 (update_dynamic_varobj_children): Likewise.
1971 (varobj_add_child): Likewise.
1972 (create_child_with_value): Likewise.
1974 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1976 * NEWS: Create a new section for the next release branch.
1977 Rename the section of the current branch, now that it has
1980 2014-06-11 Joel Brobecker <brobecker@adacore.com>
1982 GDB 7.8 branch created (173373c6f6388171d1d62a217fae90a052395be2):
1983 * version.in: Bump version to 7.8.50.DATE-cvs.
1985 2014-06-11 Pedro Alves <palves@redhat.com>
1988 * ser-mingw.c (net_windows_socket_check_pending): New function.
1989 (net_windows_select_thread): Ignore spurious wakeups. Use
1990 net_windows_socket_check_pending.
1991 (net_windows_wait_handle): Check for pending events with
1992 ioctlsocket, through net_windows_socket_check_pending, instead of
1993 checking the socket's event.
1995 2014-06-10 Siva Chandra Reddy <sivachandra@google.com>
1997 * python/python-internal.h (gdb_PyObject_GetAttrString)
1998 (gdb_PyObject_HasAttrString): New inline function definitions.
1999 * py-value.c (get_field_flag): Remove the now unnecessary cast to
2000 char * of the second argument to PyObject_GetAttrString.
2002 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2004 * serial.c (serial_write): Fix index of character to be printed
2005 in call to serial_logchar when serial debug traces are enabled.
2007 2014-06-10 Joel Brobecker <brobecker@adacore.com>
2009 * gdbtypes (resolve_dynamic_range): Add function description.
2011 2014-06-09 Pedro Alves <palves@redhat.com>
2013 * linux-nat.c (linux_child_follow_fork): Initialize status with
2014 W_STOPCODE (0) instead of 0. Remove shodowing 'status' local from
2015 inner block. Only pass the signal to PTRACE_DETACH if in pass
2018 2014-06-09 Gary Benson <gbenson@redhat.com>
2020 * common/signals.c (gdb_signal_from_host): Reorder to separate
2021 the always-available ANSI-standard signals from the signals that
2023 (do_gdb_signal_to_host): Likewise.
2024 * proc-events.c (signal_table): Likewise.
2026 2014-06-08 Hui Zhu <hui@codesourcery.com>
2028 * common/linux-ptrace.c (linux_disable_event_reporting): New
2030 * common/linux-ptrace.h (linux_disable_event_reporting): New
2032 * linux-nat.c (linux_child_follow_fork): Do a single step before
2035 2014-06-07 Keith Seitz <keiths@redhat.com>
2039 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
2040 from symbol_matches_domain in symtab.c. All local callers
2041 of symbol_matches_domain updated.
2042 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
2043 search STRUCT_DOMAIN.
2044 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
2045 independently. standard_lookup will do that automatically.
2046 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
2047 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2048 (cp_lookup_symbol_in_namespace): Likewise.
2049 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
2050 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
2051 may return a STRUCT_DOMAIN match.
2052 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
2053 * cp-support.c: Include language.h.
2054 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
2056 * psymtab.c (match_partial_symbol): Compare the requested
2057 domain with the symbol's domain directly.
2058 (lookup_partial_symbol): Likewise.
2059 * symtab.c (lookup_symbol_in_language): Explain when/why
2060 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
2061 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
2062 appropriate languages.
2063 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
2064 and moved to ada-lang.c
2065 (lookup_block_symbol): Explain that this function only returns
2066 symbol matching the requested DOMAIN.
2067 Compare the requested domain with the symbol's domain directly.
2068 (iterate_over_symbols): Compare the requested domain with the
2069 symbol's domain directly.
2070 * symtab.h (symbol_matches_domain): Remove.
2072 2014-06-06 Doug Evans <xdje42@gmail.com>
2074 * guile/guile-internal.h (gdbscm_guile_major_version): Declare.
2075 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): Declare.
2076 (gdbscm_guile_version_is_at_least): Declare.
2077 (gdbscm_scm_string_to_int): Declare.
2078 * guile/guile.c (gdbscm_guile_major_version): New global.
2079 (gdbscm_guile_minor_version, gdbscm_guile_micro_version): New globals.
2080 (guile_datadir): New static global.
2081 (gdbscm_guile_data_directory): New function.
2082 (initialize_scheme_side): Update.
2083 (misc_guile_functions): Add guile-data-directory.
2084 (initialize_gdb_module): Fetch guile version number.
2085 * guile/lib/gdb.scm: Remove call to add-to-load-path.
2086 * guile/lib/gdb/init.scm (%initialize!): Ditto.
2087 * guile/lib/gdb/boot.scm: Use guile-data-directory.
2088 * guile/scm-exception.c (gdbscm_print_exception_with_stack): Fix
2090 * guile/scm-string.c (gdbscm_scm_string_to_int): New function.
2091 * guile/scm-utils.c (gdbscm_guile_version_is_at_least): New function.
2092 * guile/scm-value.c (gdbscm_value_to_string): Only call
2093 scm_port_conversion_strategy if Guile version >= 2.0.6.
2095 2014-06-06 Mingjie Xing <mingjie.xing@gmail.com>
2097 * main.c (print_gdb_help): Add -q and --silent.
2099 2014-06-06 Gary Benson <gbenson@redhat.com>
2101 * common/signals.c: Remove preprocessor conditionals for
2102 always-defined signals SIGINT, SIGILL, SIGABRT, SIGFPE,
2103 SIGSEGV and SIGTERM.
2104 * proc-events.c: Likewise.
2106 2014-06-06 Markus Metzger <markus.t.metzger@intel.com>
2108 * symfile.c (symfile_free_objfile): Remove restriction to
2110 * symfile-mem.c (symbol_file_add_from_memory): Call
2111 add_target_sections_of_objfile.
2113 2014-06-05 Ludovic Courtès <ludo@gnu.org>
2115 * guile/scm-value.c (gdbscm_history_append_x): Use
2116 'vlscm_get_value_smob_arg_unsafe' instead of
2117 'vlscm_scm_to_value'.
2119 2014-06-05 Simon Marchi <simon.marchi@ericsson.com>
2122 * utils.c (printchar): Don't escape at all if quoter is NUL.
2123 Update function documentation to clarify effect of parameter
2125 * remote.c (escape_buffer): Pass '\\' as the quoter to
2126 fputstrn_unfiltered.
2127 * mi/mi-interp.c (mi_solib_loaded): Use ui_out_field_* functions to
2128 generate the output.
2129 (mi_solib_unloaded): Same.
2131 2014-06-05 Joel Brobecker <brobecker@adacore.com>
2133 * development.sh: Delete.
2134 * Makefile.in (config.status): Adjust dependency on development.sh.
2135 * configure.ac: Adjust development.sh source call.
2136 * configure: Regenerate.
2138 2014-06-04 Doug Evans <xdje42@gmail.com>
2140 * guile/scm-breakpoint.c (struct gdbscm_breakpoint_object): New members
2141 is_scheme_bkpt, spec.
2142 (bpscm_make_breakpoint_smob): Initialize new members.
2143 (gdbscm_create_breakpoint_x): Split into two ...
2144 (gdbscm_make_breakpoint, gdbscm_register_breakpoint_x): New functions.
2145 (bpscm_breakpoint_deleted): Reset breakpoint number and stop function.
2146 (scheme_function breakpoint_functions): Update.
2147 * guile/lib/gdb.scm: Delete create-breakpoint!. Rename
2148 breakpoint-delete! to delete-breakpoint!. Add make-breakpoint,
2149 register-breakpoint!.
2151 2014-06-04 Joel Brobecker <brobecker@adacorer.com>
2154 * mem-break.c (z_type_supported): Return zero if
2155 THE_TARGET->SUPPORTS_Z_POINT_TYPE is NULL.
2157 2014-06-04 Tom Tromey <tromey@redhat.com>
2159 * ada-lang.c (ada_template_to_fixed_record_type_1): Use
2160 value_from_contents_and_address_unresolved.
2161 (ada_template_to_fixed_record_type_1): Likewise.
2162 (ada_which_variant_applies): Likewise.
2163 * value.h (value_from_contents_and_address_unresolved): Declare.
2164 * value.c (value_from_contents_and_address_unresolved): New
2166 * gdbtypes.c (is_dynamic_type, resolve_dynamic_type)
2167 <TYPE_CODE_STRUCT, TYPE_CODE_UNION>: New cases.
2168 (resolve_dynamic_struct, resolve_dynamic_union): New functions.
2170 2014-06-04 Tom Tromey <tromey@redhat.com>
2172 * gdbtypes.c (is_dynamic_type): Remove unneeded "break"s.
2174 2014-06-04 Tom Tromey <tromey@redhat.com>
2176 * procfs.c (procfs_attach): Make "args" const.
2177 * windows-nat.c (windows_attach): Make "args" const.
2178 * nto-procfs.c (procfs_attach): Make "args" const.
2179 * inf-ttrace.c (inf_ttrace_attach): Make "args" const.
2180 * go32-nat.c (go32_attach): Make "args" const.
2181 * gnu-nat.c (gnu_attach): Make "args" const.
2182 * darwin-nat.c (darwin_attach): Make "args" const.
2183 * inf-ptrace.c (inf_ptrace_attach): Make "args" const.
2184 * linux-nat.c (linux_nat_attach): Make "args" const.
2185 * remote.c (extended_remote_attach_1, extended_remote_attach):
2187 * target.h (struct target_ops) <to_attach>: Make "args" const.
2188 (find_default_attach): Likewise.
2189 * utils.c (parse_pid_to_attach): Make "args" const.
2190 * utils.h (parse_pid_to_attach): Update.
2192 2014-06-04 Tom Tromey <tromey@redhat.com>
2194 * target-delegates.c: Rebuild.
2195 * target.c (default_thread_address_space): New function.
2196 (target_thread_address_space): Simplify.
2197 * target.h (struct target_ops) <to_thread_address_space>: Add
2198 TARGET_DEFAULT_FUNC.
2200 2014-06-04 Doug Evans <xdje42@gmail.com>
2202 * guile/scm-type.c (type_smob): Remove duplicate typedef.
2204 2014-06-04 Markus Metzger <markus.t.metzger@intel.com>
2206 * record-btrace.c: Include event-loop.h and inf-loop.h.
2207 (record_btrace_resume_exec_dir)
2208 (record_btrace_async_inferior_event_handler)
2209 (record_btrace_handle_async_inferior_event): New.
2210 (record_btrace_open): Create async event handler.
2211 (record_btrace_close): Delete async event handler.
2212 (record_btrace_resume): Set record_btrace_resume_exec_dir,
2213 Mark async event handler.
2214 (record_btrace_execution_direction): New.
2215 (init_record_btrace_ops): Initialize to_execution_direction.
2217 2014-06-03 Doug Evans <xdje42@gmail.com>
2219 * guile/scm-param.c (pascm_make_param_smob): Add ARI comment.
2220 (gdbscm_make_parameter): Ditto.
2222 2014-06-03 Doug Evans <dje@google.com>
2224 * exec.c (exec_close_1): Call clear_section_table instead of
2225 resize_section_table.
2226 (clear_section_table): New function.
2227 (resize_section_table): Make static. Rename arg num_added to
2229 * exec.h (clear_section_table): Declare.
2230 (resize_section_table): Delete.
2231 * progspace.c (release_program_space): Call clear_section_table
2232 instead of resize_section_table.
2234 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2236 * NEWS (Python Scripting): Add entry about the new xmethods
2239 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2241 * python/py-xmethods.c: New file.
2242 * python/py-objfile.c (objfile_object): New field 'xmethods'.
2243 (objfpy_dealloc): XDECREF on the new xmethods field.
2244 (objfpy_new, objfile_to_objfile_object): Initialize xmethods
2246 (objfpy_get_xmethods): New function.
2247 (objfile_getset): New entry 'xmethods'.
2248 * python/py-progspace.c (pspace_object): New field 'xmethods'.
2249 (pspy_dealloc): XDECREF on the new xmethods field.
2250 (pspy_new, pspace_to_pspace_object): Initialize xmethods
2252 (pspy_get_xmethods): New function.
2253 (pspace_getset): New entry 'xmethods'.
2254 * python/python-internal.h: Add declarations for new functions.
2255 * python/python.c (_initialize_python): Invoke
2256 gdbpy_initialize_xmethods.
2257 * python/lib/gdb/__init__.py (xmethods): New
2259 * python/lib/gdb/xmethod.py: New file.
2260 * python/lib/gdb/command/xmethods.py: New file.
2262 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2264 * eval.c (evaluate_subexp_standard): Call the xmethod if the
2265 best match method returned by find_overload_match is an xmethod.
2266 * valarith.c (value_x_binop, value_x_unop): Call the xmethod if
2267 the best matching operator returned by find_overload_match is an
2269 * valops.c: #include "extension.h".
2270 (find_method_list): Add "fn_list" and "xm_worker_vec" arguments.
2271 Return void. The list of matching source methods is returned in
2272 "fn_list" and a vector of matching debug method workers is
2273 returned in "xm_worker_vec". Update all callers.
2274 (value_find_oload_method_list): Likewise.
2275 (find_oload_champ): Add "xm_worker_vec" parameter. If it is
2276 non-NULL, then the index of the best matching method in this
2277 vector is returned. Update all callers.
2278 (find_overload_match): Include xmethods while performing overload
2281 2014-06-03 Siva Chandra Reddy <sivachandra@google.com>
2283 * defs.h (enum lval_type): New enumerator "lval_xcallable".
2284 * extension-priv.h (struct extension_language_ops): Add the
2286 * extension.c (new_xmethod_worker, clone_xmethod_worker,
2287 get_matching_xmethod_workers, get_xmethod_argtypes,
2288 invoke_xmethod, free_xmethod_worker,
2289 free_xmethod_worker_vec): New functions.
2290 * extension.h: #include "common/vec.h".
2291 New function declarations.
2292 (struct xmethod_worker): New struct.
2293 (VEC (xmethod_worker_ptr)): New vector type.
2294 (xmethod_worker_ptr): New typedef.
2295 (xmethod_worker_vec): Likewise.
2296 * gdbtypes.c (gdbtypes_post_init): Initialize "xmethod" field of
2298 * gdbtypes.h (enum type_code): New enumerator TYPE_CODE_XMETHOD.
2299 (struct builtin_type): New field "xmethod".
2300 * valarith.c (value_ptradd): Assert that the value argument is not
2302 * valops.c (value_must_coerce_to_target): Return 0 for
2303 lval_xcallable values.
2304 * value.c (struct value): New field XM_WORKER in the field
2306 (value_address, value_raw_address): Return 0 for lval_xcallable
2308 (set_value_address): Assert that the value is not an
2310 (value_free): Free the associated xmethod worker when freeing
2311 lval_xcallable values.
2312 (set_value_component_location): Assert that the WHOLE value is not
2314 (value_of_xmethod, call_xmethod): New functions.
2315 * value.h: Declare "struct xmethod_worker".
2316 Declare new functions value_of_xmethod, call_xmethod.
2318 2014-06-03 Joel Brobecker <brobecker@adacore.com>
2319 Pedro Alves <palves@redhat.com>
2321 PR breakpoints/17000
2322 * breakpoint.c (find_non_raw_software_breakpoint_inserted_here):
2323 New function, extracted from software_breakpoint_inserted_here_p.
2324 (software_breakpoint_inserted_here_p): Replace factored out code
2325 by call to find_non_raw_software_breakpoint_inserted_here.
2326 (bp_target_info_copy_insertion_state): New function.
2327 (bkpt_insert_location): Handle the case of a single-step
2328 breakpoint already inserted at the same address.
2329 (bkpt_remove_location): Handle the case of a single-step
2330 breakpoint still inserted at the same address.
2331 (deprecated_insert_raw_breakpoint): Handle the case of non-raw
2332 breakpoint already inserted at the same address.
2333 (deprecated_remove_raw_breakpoint): Handle the case of a
2334 non-raw breakpoint still inserted at the same address.
2335 (find_single_step_breakpoint): New function, extracted from
2336 single_step_breakpoint_inserted_here_p.
2337 (find_single_step_breakpoint): New function,
2338 factored out from single_step_breakpoint_inserted_here_p.
2339 (single_step_breakpoint_inserted_here_p): Reimplement.
2341 2014-06-03 Brad Mouring <bmouring@ni.com> (tiny patch)
2343 Pushed by Joel Brobecker <brobecker@adacore.com>
2344 * source.c (show_substitute_path_command): Fix display of matching
2347 2014-06-03 Gary Benson <gbenson@redhat.com>
2349 * gnu-v2-abi.c (gnuv2_value_rtti_type): Use gdb_demangle.
2351 2014-06-02 Doug Evans <xdje42@gmail.com>
2353 Add parameter support for Guile.
2354 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-param.o.
2355 (SUBDIR_GUILE_SRCS): Add scm-param.c.
2356 (scm-param.o): New rule.
2357 * guile/guile-internal.h (gdbscm_gc_dup_argv): Declare.
2358 (gdbscm_misc_error): Declare.
2359 (gdbscm_canonicalize_command_name): Declare.
2360 (gdbscm_scm_to_host_string): Declare.
2361 (gdbscm_scm_from_host_string): Declare.
2362 (gdbscm_initialize_parameters): Declare.
2363 * guile/guile.c (initialize_gdb_module): Call
2364 gdbscm_initialize_parameters.
2365 * guile/lib/gdb.scm: Export parameter symbols.
2366 * guile/scm-cmd.c (gdbscm_canonicalize_command_name): Renamed from
2367 cmdscm_canonicalize_name and made public. All callers updated.
2368 * guile/scm-exception.c (gdbscm_misc_error): New function.
2369 * guile/scm-param.c: New file.
2370 * guile/scm-string.c (gdbscm_scm_to_string): Add comments.
2371 (gdbscm_scm_to_host_string): New function.
2372 (gdbscm_scm_from_host_string): New function.
2373 * scm-utils.c (gdbscm_gc_dup_argv): New function.
2375 2014-06-02 Doug Evans <xdje42@gmail.com>
2377 Add command support for Guile.
2378 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-cmd.o.
2379 (SUBDIR_GUILE_SRCS): Add scm-cmd.c.
2380 (scm-cmd.o): New rule.
2381 * guile/guile-internal.h (gdbscm_gc_xstrdup): Declare.
2382 (gdbscm_user_error_p): Declare.
2383 (gdbscm_parse_command_name): Declare.
2384 (gdbscm_valid_command_class_p): Declare.
2385 (gdbscm_initialize_commands): Declare.
2386 * guile/guile.c (initialize_gdb_module): Call
2387 gdbscm_initialize_commands.
2388 * guile/lib/gdb.scm: Export command symbols.
2389 * guile/lib/gdb/init.scm (%exception-keys): Add gdb:user-error.
2390 (throw-user-error): New function.
2391 * guile/scm-cmd.c: New file.
2392 * guile/scm-exception.c (user_error_symbol): New static global.
2393 (gdbscm_user_error_p): New function.
2394 (gdbscm_initialize_exceptions): Set user_error_symbol.
2395 * scm-utils.c (gdbscm_gc_xstrdup): New function.
2397 2014-06-02 Phil Muldoon <pmuldoon@redhat.com>
2399 * top.c (command_loop): Handle comments here...
2400 (command_line_input): ... not here.
2402 2014-06-02 Doug Evans <xdje42@gmail.com>
2404 Add progspace support for Guile.
2405 * Makefile.in (SUBDIR_GUILE_OBS): Add scm-progspace.o.
2406 (SUBDIR_GUILE_SRCS): Add scm-progspace.c.
2407 (scm-progspace.o): New rule.
2408 * guile/guile-internal.h (pspace_smob): New typedef.
2409 (psscm_pspace_smob_pretty_printers): Declare.
2410 (psscm_pspace_smob_from_pspace): Declare.
2411 (psscm_scm_from_pspace): Declare.
2412 * guile/guile.c (initialize_gdb_module): Call
2413 gdbscm_initialize_pspaces.
2414 * guile/lib/gdb.scm: Export progspace symbols.
2415 * guile/lib/gdb/printing.scm (prepend-pretty-printer!): Add progspace
2417 (append-pretty-printer!): Ditto.
2418 * guile/scm-pretty-print.c (ppscm_find_pretty_printer_from_progspace):
2420 * guile/scm-progspace.c: New file.
2422 2014-06-03 Alan Modra <amodra@gmail.com>
2424 * ppc64-tdep.c (ppc64_standard_linkage8): New.
2425 (ppc64_skip_trampoline_code): Recognise ELFv2 stub supporting fusion.
2427 2014-06-02 Doug Evans <dje@google.com>
2429 Add support for skeletonless type units.
2430 * dwarf2read.c (struct dwarf2_per_objfile): New member
2431 n_allocated_type_units.
2432 (struct dwarf2_per_objfile) <tu_stats>: New member
2433 nr_all_type_units_reallocs.
2434 (create_signatured_type_table_from_index): Initialize
2435 n_allocated_type_units
2436 (create_all_type_units): Ditto.
2437 (add_type_unit): Move up in file. New arg slot.
2438 All callers updated. Increase space for all_type_units more
2440 (fill_in_sig_entry_from_dwo_entry): Handle psymtabs.
2441 (lookup_dwo_signatured_type): Handle skeletonless TUs.
2442 (lookup_dwp_signatured_type): Ditto.
2443 (init_tu_and_read_dwo_dies): New arg use_existing_cu.
2444 All callers updated.
2445 (build_type_psymtabs_1): Leave type_unit_groups as
2446 NULL if no TUs present.
2447 (print_tu_stats): New function.
2448 (process_skeletonless_type_unit): New function.
2449 (process_dwo_file_for_skeletonless_type_units): New
2451 (process_skeletonless_type_units): New function.
2452 (dwarf2_build_psymtabs_hard): Handle skeletonless TUs.
2453 Call print tu_stats if debugging enabled.
2455 2014-06-02 Pedro Alves <palves@redhat.com>
2457 * breakpoint.c (build_target_command_list): Don't build a command
2458 list if we have any duplicate location that isn't a dprintf.
2460 2014-06-02 Pedro Alves <palves@redhat.com>
2462 * breakpoint.c (dprintf_breakpoint_hit): New function.
2463 (initialize_breakpoint_ops): Install it as dprintf's
2464 breakpoint_hit method.
2466 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2468 * source.c (substitute_path_rule_matches): Simplify using
2469 filename_ncmp instead of FILENAME_CMP.
2471 2014-06-02 Joel Brobecker <brobecker@adacore.com>
2473 * source.c (substitute_path_rule_matches): Remove trailing spaces.
2475 2014-06-01 Ludovic Courtès <ludo@gnu.org>
2477 * configure.ac: When Guile is available, check for the
2478 availability of 'scm_new_smob'.
2479 * configure, config.h.in: Regenerate.
2480 * guile/guile-internal.h (scm_new_smob) [!HAVE_SCM_NEW_SMOB]: New
2483 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2485 * frame.c (struct frame_info): Add stop_string field.
2486 (get_prev_frame_always_1): Renamed from get_prev_frame_always.
2487 (get_prev_frame_always): Old content moved into
2488 get_prev_frame_always_1. Call get_prev_frame_always_1 inside
2489 TRY_CATCH, handle MEMORY_ERROR exceptions.
2490 (frame_stop_reason_string): New function definition.
2491 * frame.h (unwind_stop_reason_to_string): Extend comment to
2492 mention frame_stop_reason_string.
2493 (frame_stop_reason_string): New function declaration.
2494 * stack.c (frame_info): Switch to frame_stop_reason_string.
2495 (backtrace_command_1): Switch to frame_stop_reason_string.
2496 * unwind_stop_reason.def: Add UNWIND_MEMORY_ERROR.
2497 (LAST_ENTRY): Changed to UNWIND_MEMORY_ERROR.
2498 * guile/lib/gdb.scm: Add FRAME_UNWIND_MEMORY_ERROR to export list.
2500 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2502 * frame.c (frame_stop_reason_string): Rename to ...
2503 (unwind_stop_reason_to_string): this.
2504 * frame.h (frame_stop_reason_string): Rename to ...
2505 (unwind_stop_reason_to_string): this.
2506 * stack.c (frame_info): Update call to frame_stop_reason_string.
2507 (backtrace_command_1): Likewise.
2508 * guile/scm-frame.c (gdbscm_unwind_stop_reason_string): Likewise.
2509 * python/py-frame.c (gdbpy_frame_stop_reason_string): Likewise.
2511 2014-05-30 Andrew Burgess <aburgess@broadcom.com>
2513 * frame.c (remove_prev_frame): New function.
2514 (get_prev_frame_if_no_cycle): Create / discard cleanup using
2517 2014-05-29 Pedro Alves <palves@redhat.com>
2519 * infrun.c (resume): Rename local 'hw_step' to 'entry_step'
2520 and make it const. When a single-step decays to a continue,
2521 clear 'step', not 'hw_step'. Pass whether the caller wanted
2522 to step to user_visible_resume_ptid, not what we ask the
2525 2014-05-29 Pedro Alves <palves@redhat.com>
2527 * infrun.c (process_event_stop_test, handle_step_into_function)
2528 (handle_step_into_function_backward): Adjust.
2529 Don't set the even thread's stop_step and call stop_waiting before
2530 calling end_stepping_range. Instead do that ...
2531 (end_stepping_range): ... here. Take an ecs pointer parameter.
2533 2014-05-29 Pedro Alves <palves@redhat.com>
2535 * infrun.c (stop_stepping): Rename to ...
2536 (stop_waiting): ... this.
2537 (proceed): Update comment.
2538 (process_event_stop_test, handle_inferior_event)
2539 (handle_signal_stop, handle_step_into_function)
2540 (handle_step_into_function_backward): Update.
2542 2014-05-29 Pedro Alves <palves@redhat.com>
2544 * infcall.c (run_inferior_call): Don't check whether the current
2545 thread is running after the proceed call.
2547 2014-05-29 Pedro Alves <palves@redhat.com>
2548 Tom Tromey <tromey@redhat.com>
2550 * NEWS: Mention "maint set target-async", "set mi-async", and that
2551 background execution commands are now always available.
2552 * target.h (target_async_permitted): Update comment.
2553 * target.c (target_async_permitted, target_async_permitted_1):
2555 (set_target_async_command): Rename to ...
2556 (maint_set_target_async_command): ... this.
2557 (show_target_async_command): Rename to ...
2558 (maint_show_target_async_command): ... this.
2559 (_initialize_target): Adjust.
2560 * infcmd.c (prepare_execution_command): Make extern.
2561 * inferior.h (prepare_execution_command): Declare.
2562 * infrun.c (set_observer_mode): Leave target async alone.
2563 * mi/mi-interp.c (mi_interpreter_init): Install
2564 mi_on_sync_execution_done as sync_execution_done observer.
2565 (mi_on_sync_execution_done): New function.
2566 (mi_execute_command_input_handler): Don't print the prompt if we
2567 just started a synchronous command with an async target.
2568 (mi_on_resume): Check sync_execution before printing prompt.
2569 * mi/mi-main.h (mi_async_p): Declare.
2570 * mi/mi-main.c: Include gdbcmd.h.
2571 (mi_async_p): New function.
2572 (mi_async, mi_async_1): New globals.
2573 (set_mi_async_command, show_mi_async_command, mi_async): New
2575 (exec_continue): Call prepare_execution_command.
2576 (run_one_inferior, mi_cmd_exec_run, mi_cmd_list_target_features)
2577 (mi_execute_async_cli_command): Use mi_async_p.
2578 (_initialize_mi_main): Install "set mi-async". Make
2579 "target-async" a deprecated alias.
2581 2014-05-29 Pedro Alves <palves@redhat.com>
2583 * cli/cli-interp.c (cli_interpreter_display_prompt_p): Delete.
2584 (_initialize_cli_interp): Adjust.
2585 * event-loop.c: Include "observer.h".
2586 (start_event_loop): Notify 'command_error' observers instead of
2587 calling display_gdb_prompt. Remove FIXME comment.
2588 * event-top.c (display_gdb_prompt): Remove call into the
2590 * inf-loop.c: Include "observer.h".
2591 (inferior_event_handler): Notify 'command_error' observers instead
2592 of calling display_gdb_prompt.
2593 * infrun.c (fetch_inferior_event): Notify 'sync_execution_done'
2594 observers instead of calling display_gdb_prompt.
2595 * interps.c (interp_set): Don't call display_gdb_prompt.
2596 (current_interp_display_prompt_p): Delete.
2597 * interps.h (interp_prompt_p): Delete declaration.
2598 (interp_prompt_p_ftype): Delete.
2599 (struct interp_procs) <prompt_proc_p>: Delete field.
2600 (current_interp_display_prompt_p): Delete declaration.
2601 * mi-interp.c (mi_interpreter_prompt_p): Delete.
2602 (_initialize_mi_interp): Adjust.
2603 * tui-interp.c (tui_init): Install 'sync_execution_done' and
2604 'command_error' observers.
2605 (tui_on_sync_execution_done, tui_on_command_error): New
2607 (tui_display_prompt_p): Delete.
2608 (_initialize_tui_interp): Adjust.
2610 2014-05-29 Pedro Alves <palves@redhat.com>
2613 * cli/cli-interp.c: Include infrun.h and observer.h.
2614 (cli_uiout, cli_interp): New globals.
2615 (cli_on_signal_received, cli_on_end_stepping_range)
2616 (cli_on_signal_exited, cli_on_exited, cli_on_no_history): New
2618 (cli_interpreter_init): Install them as 'end_stepping_range',
2619 'signal_received' 'signal_exited', 'exited' and 'no_history'
2621 (_initialize_cli_interp): Remove cli_interp local.
2622 * infrun.c (handle_inferior_event): Call the several stop reason
2623 observers instead of printing the stop reason directly.
2624 (end_stepping_range): New function.
2625 (print_end_stepping_range_reason, print_signal_exited_reason)
2626 (print_exited_reason, print_signal_received_reason)
2627 (print_no_history_reason): Make static, and add an uiout
2628 parameter. Print to that instead of to CURRENT_UIOUT.
2629 * infrun.h (print_end_stepping_range_reason)
2630 (print_signal_exited_reason, print_exited_reason)
2631 (print_signal_received_reason print_no_history_reason): New
2633 * mi/mi-common.h (struct mi_interp): Rename 'uiout' field to
2635 <cli_uiout>: New field.
2636 * mi/mi-interp.c (mi_interpreter_init): Adjust. Create the new
2637 uiout for CLI output. Install 'signal_received',
2638 'end_stepping_range', 'signal_exited', 'exited' and 'no_history'
2640 (find_mi_interpreter, mi_interp_data, mi_on_signal_received)
2641 (mi_on_end_stepping_range, mi_on_signal_exited, mi_on_exited)
2642 (mi_on_no_history): New functions.
2643 (ui_out_free_cleanup): Delete function.
2644 (mi_on_normal_stop): Don't allocate a new uiout for CLI output,
2645 instead use the one already stored in the MI interpreter data.
2646 (mi_ui_out): Adjust.
2647 * tui/tui-interp.c: Include infrun.h and observer.h.
2648 (tui_interp): New global.
2649 (tui_on_signal_received, tui_on_end_stepping_range)
2650 (tui_on_signal_exited, tui_on_exited)
2651 (tui_on_no_history): New functions.
2652 (tui_init): Install them as 'end_stepping_range',
2653 'signal_received' 'signal_exited', 'exited' and 'no_history'
2655 (_initialize_tui_interp): Delete tui_interp local.
2657 2014-05-29 Pedro Alves <palves@redhat.com>
2660 * linux-nat.c (linux_nat_resume_callback): Rename the second
2661 parameter to 'except'. Skip LP if it points to EXCEPT.
2662 (linux_nat_resume): Don't mark the event lwp as not stopped
2663 before resuming sibling lwps. Instead ask
2664 linux_nat_resume_callback to skip the event lwp. Mark it as not
2665 stopped after actually resuming it.
2666 (linux_handle_syscall_trap): Mark the lwp as not stopped after
2668 (wait_lwp): Mark the lwp as stopped here.
2669 (stop_wait_callback): Mark the lwp as not stopped right after
2670 resuming it. Don't mark lwps as stopped here.
2671 (linux_nat_filter_event): Mark the lwp as stopped earlier.
2672 (linux_nat_wait_1): Don't mark dead lwps as stopped here.
2674 2014-05-29 Pedro Alves <palves@redhat.com>
2677 * infrun.c (resume): Determine how much to resume depending on
2678 whether the caller wanted a step, not whether we can hardware step
2679 the target. Mark all threads that we intend to run as running,
2680 unless we're calling an inferior function.
2681 (normal_stop): If the thread is running an infcall, don't finish
2683 * target.c (target_resume): Don't mark threads as running here.
2685 2014-05-28 Joel Brobecker <brobecker@adacore.com>
2687 * serial.c (_initialize_serial): Remove support for
2688 the "set remotebaud" and "show remotebaud" commands.
2689 * NEWS: Add entry documenting the removal of that command.
2691 2014-05-28 Yao Qi <yao@codesourcery.com>
2693 * charset.c: Fix typo in comments.
2695 2014-05-27 Gary Benson <gbenson@redhat.com>
2697 * utils.c (internal_vproblem): Prompt for a bug report.
2699 2014-05-26 Andy Wingo <wingo@igalia.com>
2701 * guile/scm-arch.c (arscm_mark_arch_smob):
2702 * guile/scm-block.c (bkscm_mark_block_smob)
2703 (bkscm_mark_block_syms_progress_smob):
2704 * guile/scm-breakpoint.c (bpscm_mark_breakpoint_smob):
2705 * guile/scm-exception.c (exscm_mark_exception_smob):
2706 * guile/scm-frame.c (frscm_mark_frame_smob):
2707 * guile/scm-iterator.c (itscm_mark_iterator_smob):
2708 * guile/scm-lazy-string.c (lsscm_mark_lazy_string_smob):
2709 * guile/scm-objfile.c (ofscm_mark_objfile_smob):
2710 * guile/scm-pretty-print.c (ppscm_mark_pretty_printer_smob)
2711 (ppscm_mark_pretty_printer_worker_smob):
2712 * guile/scm-symbol.c (syscm_mark_symbol_smob):
2713 * guile/scm-symtab.c (stscm_mark_symtab_smob, stscm_mark_sal_smob):
2714 * guile/scm-type.c (tyscm_mark_type_smob, tyscm_mark_field_smob):
2715 * guile/scm-value.c (vlscm_mark_value_smob): Remove unnecessary
2717 * guile/scm-symtab.c (stscm_free_sal_smob): Remove unnecessary free
2720 2014-05-26 Andy Wingo <wingo@igalia.com>
2721 Doug Evans <xdje42@gmail.com>
2723 * guile/guile-internal.h (GDB_SMOB_HEAD): Replace properties with
2724 empty_base_class. All uses updated.
2725 (gdbscm_mark_gsmob, gdbscm_mark_chained_gsmob)
2726 (gdbscm_mark_eqable_gsmob): Remove these now-unneeded functions.
2728 * guile/scm-gsmob.c (gdbscm_mark_gsmob)
2729 (gdbscm_mark_chained_gsmob, gdbscm_mark_eqable_gsmob): Remove.
2730 (gdbscm_gsmob_property, gdbscm_set_gsmob_property_x)
2731 (gdbscm_gsmob_has_property_p, add_property_name)
2732 (gdbscm_gsmob_properties): Remove, and remove them from gsmob_functions.
2733 * guile/lib/gdb.scm (gdb-object-property, set-gdb-object-property)
2734 (gdb-object-has-property?, gdb-object-properties): Remove.
2735 (gdb-object-kind): Renamed from gsmob-kind.
2737 2014-05-26 Andy Wingo <wingo@igalia.com>
2739 * configure.ac (try_guile_versions): Allow building with guile 2.2.
2740 * configure: Regenerate.
2742 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2744 * symfile-mem.c (symbol_file_add_from_memory): Add BFD sections.
2746 2014-05-23 Markus Metzger <markus.t.metzger@intel.com>
2748 * record-btrace.c (record_btrace_allow_memory_access): Remove.
2749 (replay_memory_access_read_only, replay_memory_access_read_write)
2750 (replay_memory_access_types, replay_memory_access)
2751 (set_record_btrace_cmdlist, show_record_btrace_cmdlist)
2752 (cmd_set_record_btrace, cmd_show_record_btrace)
2753 (cmd_show_replay_memory_access): New.
2754 (record_btrace_xfer_partial, record_btrace_insert_breakpoint)
2755 (record_btrace_remove_breakpoint): Replace
2756 record_btrace_allow_memory_access with replay_memory_access.
2757 (_initialize_record_btrace): Add commands.
2758 * NEWS: Announce it.
2760 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2762 * aarch64-linux-nat.c (asm/ptrace.h): Include.
2764 2014-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2766 * MAINTAINERS (Write After Approval): Move self back from
2769 2014-05-22 Pedro Alves <palves@redhat.com>
2771 * inferior.h (debug_infrun, debug_displaced, stop_on_solib_events)
2772 (sync_execution, sched_multi, step_stop_if_no_debug, non_stop)
2773 (disable_randomization, enum exec_direction_kind)
2774 (execution_direction, stop_registers, start_remote)
2775 (clear_proceed_status, proceed, resume, user_visible_resume_ptid)
2776 (wait_for_inferior, normal_stop, get_last_target_status)
2777 (prepare_for_detach, fetch_inferior_event, init_wait_for_inferior)
2778 (insert_step_resume_breakpoint_at_sal)
2779 (follow_inferior_reset_breakpoints, stepping_past_instruction_at)
2780 (set_step_info, print_stop_event, signal_stop_state)
2781 (signal_print_state, signal_pass_state, signal_stop_update)
2782 (signal_print_update, signal_pass_update)
2783 (update_signals_program_target, clear_exit_convenience_vars)
2784 (displaced_step_dump_bytes, update_observer_mode)
2785 (signal_catch_update, gdb_signal_from_command): Move
2787 * infrun.h: ... to this new file.
2788 * amd64-tdep.c: Include infrun.h.
2789 * annotate.c: Include infrun.h.
2790 * arch-utils.c: Include infrun.h.
2791 * arm-linux-tdep.c: Include infrun.h.
2792 * arm-tdep.c: Include infrun.h.
2793 * break-catch-sig.c: Include infrun.h.
2794 * breakpoint.c: Include infrun.h.
2795 * common/agent.c: Include infrun.h instead of inferior.h.
2796 * corelow.c: Include infrun.h.
2797 * event-top.c: Include infrun.h.
2798 * go32-nat.c: Include infrun.h.
2799 * i386-tdep.c: Include infrun.h.
2800 * inf-loop.c: Include infrun.h.
2801 * infcall.c: Include infrun.h.
2802 * infcmd.c: Include infrun.h.
2803 * infrun.c: Include infrun.h.
2804 * linux-fork.c: Include infrun.h.
2805 * linux-nat.c: Include infrun.h.
2806 * linux-thread-db.c: Include infrun.h.
2807 * monitor.c: Include infrun.h.
2808 * nto-tdep.c: Include infrun.h.
2809 * procfs.c: Include infrun.h.
2810 * record-btrace.c: Include infrun.h.
2811 * record-full.c: Include infrun.h.
2812 * remote-m32r-sdi.c: Include infrun.h.
2813 * remote-mips.c: Include infrun.h.
2814 * remote-notif.c: Include infrun.h.
2815 * remote-sim.c: Include infrun.h.
2816 * remote.c: Include infrun.h.
2817 * reverse.c: Include infrun.h.
2818 * rs6000-tdep.c: Include infrun.h.
2819 * s390-linux-tdep.c: Include infrun.h.
2820 * solib-irix.c: Include infrun.h.
2821 * solib-osf.c: Include infrun.h.
2822 * solib-svr4.c: Include infrun.h.
2823 * target.c: Include infrun.h.
2824 * top.c: Include infrun.h.
2825 * windows-nat.c: Include infrun.h.
2826 * mi/mi-interp.c: Include infrun.h.
2827 * mi/mi-main.c: Include infrun.h.
2828 * python/py-threadevent.c: Include infrun.h.
2830 2014-05-22 Pedro Alves <palves@redhat.com>
2832 * infrun.c (handle_inferior_event): Store the exit code for
2833 --return-child-result here, instead of ...
2834 (print_exited_reason): ... here.
2836 2014-05-21 Pedro Alves <palves@redhat.com>
2839 * gdbthread.h (struct thread_control_state): New field
2841 * infrun.c (follow_fork): Copy the new thread control field to the
2843 (clear_proceed_status_thread): Clear the new thread control field.
2844 (proceed): Set the new thread control field.
2845 * interps.h (command_interp): Declare.
2846 * interps.c (command_interpreter): New global.
2847 (command_interp): New function.
2848 (interp_exec): Set `command_interpreter' while here.
2849 * cli-out.c (cli_uiout_dtor): New function.
2850 (cli_ui_out_impl): Install it.
2851 * mi/mi-interp.c: Include cli-out.h.
2852 (mi_cmd_interpreter_exec): Add comment.
2853 (restore_current_uiout_cleanup): New function.
2854 (ui_out_free_cleanup): New function.
2855 (mi_on_normal_stop): If finishing an execution command started by
2856 a CLI command, or any kind of breakpoint-like event triggered,
2857 print the stop event to the output (CLI) stream.
2858 * mi/mi-out.c (mi_ui_out_impl): Install NULL `dtor' handler.
2860 2014-05-21 Pedro Alves <palves@redhat.com>
2862 * cli/cli-cmds.c (list_command): Handle the first "list" after the
2863 current source line having changed.
2864 * frame.h (set_current_sal_from_frame): Remove 'center' parameter.
2865 * infrun.c (normal_stop): Adjust call to
2866 set_current_sal_from_frame.
2867 * source.c (clear_lines_listed_range): New function.
2868 (set_current_source_symtab_and_line, identify_source_line): Clear
2869 the lines listed range.
2870 (line_info): Handle the first "info line" after the current source
2871 line having changed.
2872 * stack.c (print_stack_frame): Remove center handling.
2873 (set_current_sal_from_frame): Remove 'center' parameter. Don't
2876 2014-05-21 Pedro Alves <palves@redhat.com>
2878 * inf-child.c (inf_child_mourn_inferior): New function.
2879 * inf-child.h (inf_child_mourn_inferior): New declaration.
2880 * darwin-nat.c (darwin_mourn_inferior): Use
2881 inf_child_mourn_inferior.
2882 * gnu-nat.c (gnu_mourn_inferior): Likewise.
2883 * inf-ptrace.c (inf_ptrace_mourn_inferior): Likewise.
2884 * inf-ttrace.c (inf_ttrace_mourn_inferior): Likewise.
2885 * nto-procfs.c (procfs_mourn_inferior): Likewise.
2886 * windows-nat.c (windows_mourn_inferior): Likewise.
2888 2014-05-21 Doug Evans <xdje42@gmail.com>
2890 * guile/scm-breakpoint.c (breakpoint_functions): Fix typo.
2892 2014-05-21 Doug Evans <xdje42@gmail.com>
2894 * guile/scm-exception.c (gdbscm_invalid_object_error): Make result void.
2895 (gdbscm_out_of_range_error): Ditto.
2896 (gdbscm_memory_error): Ditto.
2897 * guile/scm-string.c (gdbscm_scm_to_target_string_unsafe): Delete.
2898 * guile/guile-internal.h (gdbscm_invalid_object_error): Update.
2899 (gdbscm_out_of_range_error): Update.
2900 (gdbscm_memory_error): Update.
2901 (gdbscm_scm_to_target_string_unsafe): Delete.
2903 2014-05-21 Pedro Alves <palves@redhat.com>
2905 * inf-child.c (inf_child_ops, inf_child_explicitly_opened): New
2907 (inf_child_open_target): New function.
2908 (inf_child_open): Use inf_child_open_target to push the target
2909 instead of erroring out.
2910 (inf_child_disconnect, inf_child_close)
2911 (inf_child_maybe_unpush_target): New functions.
2912 (inf_child_target): Install inf_child_disconnect and
2913 inf_child_close. Store a pointer to the returned object.
2914 * inf-child.h (inf_child_open_target, inf_child_maybe_unpush): New
2916 * target.c (auto_connect_native_target): New global.
2917 (show_default_run_target): New function.
2918 (find_default_run_target): Return NULL if automatically connecting
2919 to the native target is disabled.
2920 (_initialize_target): Install set/show auto-connect-native-target.
2921 * NEWS: Mention "set auto-connect-native-target", and "target
2923 * linux-nat.c (super_close): New global.
2924 (linux_nat_close): Call super_close.
2925 (linux_nat_add_target): Store a pointer to the base class's
2927 * inf-ptrace.c (inf_ptrace_mourn_inferior, inf_ptrace_detach): Use
2928 inf_child_maybe_unpush.
2929 * inf-ttrace.c (inf_ttrace_him): Don't push the target if it is
2931 (inf_ttrace_mourn_inferior): Only unpush the target after mourning
2932 the inferior. Use inf_child_maybe_unpush_target.
2933 (inf_ttrace_attach): Don't push the target if it is already
2935 (inf_ttrace_detach): Use inf_child_maybe_unpush_target.
2936 * darwin-nat.c (darwin_mourn_inferior): Only unpush the target
2937 after mourning the inferior. Use inf_child_maybe_unpush_target.
2938 (darwin_attach_pid): Don't push the target if it is already
2940 * gnu-nat.c (gnu_mourn_inferior): Only unpush the target after
2941 mourning the inferior. Use inf_child_maybe_unpush_target.
2942 (gnu_detach): Use inf_child_maybe_unpush_target.
2943 * go32-nat.c (go32_create_inferior): Don't push the target if it
2945 (go32_mourn_inferior): Use inf_child_maybe_unpush_target.
2946 * nto-procfs.c (procfs_is_nto_target): Adjust comment.
2947 (procfs_open): Rename to ...
2948 (procfs_open_1): ... this. Add target_ops parameter. Adjust
2949 comments. Can target_preopen before changing node. Call
2950 inf_child_open_target to push the target explicitly.
2951 (procfs_attach): Don't push the target if it is already pushed.
2952 (procfs_detach): Use inf_child_maybe_unpush_target.
2953 (procfs_create_inferior): Don't push the target if it is already
2955 (nto_native_ops): New global.
2956 (procfs_open): Reimplement.
2957 (procfs_native_open): New function.
2958 (init_procfs_targets): Install procfs_native_open as to_open of
2959 "target native". Store a pointer to the "native" target in
2961 * procfs.c (procfs_attach): Don't push the target if it is already
2963 (procfs_detach): Use inf_child_maybe_unpush_target.
2964 (procfs_mourn_inferior): Only unpush the target after mourning the
2965 inferior. Use inf_child_maybe_unpush_target.
2966 (procfs_init_inferior): Don't push the target if it is already
2968 * windows-nat.c (do_initial_windows_stuff): Don't push the target
2969 if it is already pushed.
2971 2014-05-21 Pedro Alves <palves@redhat.com>
2973 * NEWS: Mention that the "child", "GNU, "djgpp", "darwin-child"
2974 and "procfs" targets are now called "native" instead.
2976 2014-05-21 Pedro Alves <palves@redhat.com>
2978 * go32-nat.c (go32_open): Delete.
2979 (go32_target): Don't override the to_open method.
2981 2014-05-21 Pedro Alves <palves@redhat.com>
2983 * nto-procfs.c (procfs_can_run): New function.
2984 (nto_procfs_ops): New global.
2985 (init_procfs_targets): New, based on procfs_target. Install
2986 "target native" in addition to "target procfs".
2987 (_initialize_procfs): Call init_procfs_targets instead of adding
2990 2014-05-21 Pedro Alves <palves@redhat.com>
2992 * windows-nat.c (windows_target): Don't override to_shortname,
2993 to_longname or to_doc.
2995 2014-05-21 Pedro Alves <palves@redhat.com>
2997 * gnu-nat.c (gnu): Don't override to_shortname, to_longname or
3000 2014-05-21 Pedro Alves <palves@redhat.com>
3002 * darwin-nat.c (_initialize_darwin_inferior): Don't override
3003 to_shortname, to_longname or to_doc.
3005 2014-05-21 Pedro Alves <palves@redhat.com>
3007 * go32-nat.c (go32_target): Don't override to_shortname,
3008 to_longname or to_doc.
3010 2014-05-21 Pedro Alves <palves@redhat.com>
3012 * inf-child.c (inf_child_open): Remove mention of "child".
3013 (inf_child_target): Rename target to "native" instead of "child".
3015 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3017 * Makefile.in (SFILES): Delete "regset.c".
3018 (COMMON_OBS): Delete "regset.o".
3020 * regset.h (regset_alloc): Delete prototype.
3022 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3024 * sparc-linux-tdep.c (sparc32_linux_gregset)
3025 (sparc32_linux_fpregset): New static regset structures.
3026 (sparc32_linux_init_abi): Drop dynamic regset allocations.
3027 * sparc-tdep.h (struct gdbarch_tdep): Constify 'gregset' and
3029 * sparc64-linux-tdep.c: (sparc64_linux_gregset)
3030 (sparc64_linux_fpregset): New static regset structures.
3031 (sparc64_linux_init_abi): Drop dynamic regset allocations.
3032 * sparc64fbsd-tdep.c (sparc64fbsd_gregset, sparc64fbsd_fpregset):
3033 New static regset structures.
3034 (sparc64fbsd_init_abi): Drop dynamic regset allocations.
3035 * sparc64nbsd-tdep.c (sparc64nbsd_gregset, sparc64nbsd_fpregset):
3036 New static regset structures.
3037 (sparc64nbsd_init_abi): Drop dynamic regset allocations.
3038 * sparc64obsd-tdep.c (sparc64obsd_gregset, sparc64obsd_fpregset):
3039 New static regset structures.
3040 (sparc64obsd_init_abi): Drop dynamic regset allocations.
3041 * sparcnbsd-tdep.c (sparc32nbsd_gregset, sparc32nbsd_fpregset):
3042 New static regset structures.
3043 (sparc32nbsd_init_abi): Drop dynamic regset allocations.
3045 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3047 * sparc-linux-nat.c (supply_gregset, supply_fpregset)
3048 (fill_gregset, fill_fpregset, _initialize_sparc_linux_nat): Rename
3049 register maps ("regmaps") from "*regset" to "*regmap". Do this
3050 for all regmap types and variables.
3051 * sparc-linux-tdep.c (sparc32_linux_step_trap)
3052 (sparc32_linux_supply_core_gregset)
3053 (sparc32_linux_collect_core_gregset)
3054 (sparc32_linux_supply_core_fpregset)
3055 (sparc32_linux_collect_core_fpregset): Likewise.
3056 * sparc-nat.c (sparc_gregset, sparc_fpregset): Rename to...
3057 (sparc_gregmap, sparc_fpregmap): ... these.
3058 (sparc_supply_gregset, sparc_collect_gregset)
3059 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3060 (sparc_fetch_inferior_registers, sparc_store_inferior_registers)
3061 (_initialize_sparc_nat): Rename regmaps.
3062 * sparc-nat.h (sparc_gregset, sparc_fpregset): Rename to...
3063 (sparc_gregmap, sparc_fpregmap): ... these.
3064 (sparc_supply_gregset, sparc_collect_gregset)
3065 (sparc_supply_fpregset, sparc_collect_fpregset): Likewise.
3066 * sparc-sol2-nat.c (sparc_sol2_gregset, sparc_sol2_fpregset):
3068 (sparc_sol2_gregmap, sparc_sol2_fpregmap): ... these.
3069 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset):
3071 * sparc-sol2-tdep.c (sparc32_sol2_gregset, sparc32_sol2_fpregset):
3073 (sparc32_sol2_gregmap, sparc32_sol2_fpregmap): ... these.
3074 * sparc-tdep.c (sparc32_supply_gregset, sparc32_collect_gregset)
3075 (sparc32_supply_fpregset, sparc32_collect_fpregset): Rename
3077 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3078 (sparc32_bsd_fpregset): Rename to...
3079 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3080 (sparc32_bsd_fpregmap): ... these.
3081 * sparc-tdep.h (struct sparc_gregset, struct sparc_fpregset)
3082 (sparc32_sunos4_gregset, sparc32_sunos4_fpregset)
3083 (sparc32_bsd_fpregset, sparc32_sol2_gregset)
3084 (sparc32_sol2_fpregset, sparc32nbsd_gregset): Rename to...
3085 (struct sparc_gregmap, struct sparc_fpregmap)
3086 (sparc32_sunos4_gregmap, sparc32_sunos4_fpregmap)
3087 (sparc32_bsd_fpregmap, sparc32_sol2_gregmap)
3088 (sparc32_sol2_fpregmap, sparc32nbsd_gregmap): ... these.
3089 (sparc32_supply_regset, sparc32_collect_gregset)
3090 (sparc32_supply_fpregset, sparc32_collect_fpregset): Adjust
3092 * sparc64-linux-nat.c (sparc64_linux_ptrace_gregset): Rename to...
3093 (sparc64_linux_ptrace_gregmap): ... this.
3094 (supply_gregset, supply_fpregset, fill_gregset, fill_fpregset)
3095 (_initialize_sparc64_linux_nat): Rename regmaps.
3096 * sparc64-linux-tdep.c (sparc64_linux_core_gregset): Rename to...
3097 (sparc64_linux_core_gregmap): ... this.
3098 (sparc64_linux_supply_core_gregset)
3099 (sparc64_linux_collect_core_gregset)
3100 (sparc64_linux_supply_core_fpregset)
3101 (sparc64_linux_collect_core_fpregset): Rename regmaps.
3102 * sparc64-sol2-tdep.c (sparc64_sol2_gregset)
3103 (sparc64_sol2_fpregset): Rename to...
3104 (sparc64_sol2_gregmap, sparc64_sol2_fpregmap): ... these.
3105 * sparc64-tdep.c (sparc64_supply_gregset, sparc64_collect_gregset)
3106 (sparc64_supply_fpregset, sparc64_collect_fpregset): Rename
3108 * sparc64-tdep.h (struct sparc_gregset, sparc64_sol2_gregset)
3109 (sparc64_sol2_fpregset, sparc64fbsd_gregset, sparc64nbsd_gregset)
3110 (sparc64_bsd_fpregset): Rename to...
3111 (struct sparc_gregmap, sparc64_sol2_gregmap)
3112 (sparc64_sol2_fpregmap, sparc64fbsd_gregmap, sparc64nbsd_gregmap)
3113 (sparc64_bsd_fpregmap): ... these.
3114 (sparc64_supply_gregset, sparc64_collect_gregset)
3115 (sparc64_supply_fpregset, sparc64_collect_fpregset): Adjust
3117 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Rename regmaps.
3118 * sparc64fbsd-tdep.c (sparc64fbsd_gregset): Rename to...
3119 (sparc64fbsd_gregmap): ... this.
3120 (sparc64fbsd_supply_gregset, sparc64fbsd_collect_gregset)
3121 (sparc64fbsd_supply_fpregset, sparc64fbsd_collect_fpregset):
3123 * sparc64nbsd-nat.c (sparc64nbsd_supply_gregset)
3124 (sparc64nbsd_collect_gregset, sparc64nbsd_supply_fpregset)
3125 (sparc64nbsd_collect_fpregset): Likewise.
3126 * sparc64nbsd-tdep.c (sparc64nbsd_gregset): Rename to...
3127 (sparc64nbsd_gregmap): ... this.
3128 (sparc64nbsd_supply_gregset, sparc64nbsd_supply_fpregset): Rename
3130 * sparc64obsd-nat.c (_initialize_sparc64obsd_nat): Likewise.
3131 * sparc64obsd-tdep.c (sparc64obsd_gregset): Rename to...
3132 (sparc64obsd_gregmap): ... this.
3133 (sparc64obsd_supply_gregset, sparc64obsd_supply_fpregset): Rename
3135 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Likewise.
3136 * sparcnbsd-tdep.c (sparc32nbsd_gregset): Rename to...
3137 (sparc32nbsd_gregmap): ... this.
3138 (sparc32nbsd_supply_gregset, sparc32nbsd_supply_fpregset): Rename
3141 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3143 * score-tdep.c (score7_linux_gregset): New static regset
3145 (score7_linux_regset_from_core_section): Remove dynamic regset
3147 (score_gdbarch_init): Drop allocation of tdep structure.
3148 * score-tdep.h (struct gdbarch_tdep): Remove declaration.
3150 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3152 * mn10300-linux-tdep.c (am33_gregset, am33_fpregset): New static
3154 (am33_regset_from_core_section): Remove dynamic regset
3157 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3159 * mips-linux-tdep.c (mips_linux_gregset, mips64_linux_gregset)
3160 (mips_linux_fpregset, mips64_linux_fpregset): New static regset
3162 (mips_linux_regset_from_core_section): Remove dynamic regset
3164 * mips-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3165 'gregset64', 'fpregset', and 'fpregset64'.
3166 * mips-tdep.c (mips_gdbarch_init): Remove initialization of
3167 deleted tdep fields.
3169 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3171 * amd64-tdep.c (amd64_fpregset, amd64_xstateregset): New static
3173 (amd64_regset_from_core_section): Remove dynamic regset
3175 * amd64obsd-tdep.c (amd64obsd_combined_regset): New static regset
3177 (amd64obsd_regset_from_core_section): Remove dynamic regset
3179 * i386-cygwin-tdep.c (i386_windows_regset_from_core_section):
3181 * i386-nto-tdep.c (i386nto_supply_gregset): Adjust call to
3182 x86-common regset supply function.
3183 * i386-tdep.c (i386_collect_gregset): Make static.
3184 (i386_gregset): New global regset structure.
3185 (i386_fpregset, i386_xstateregset): New static regset structures.
3186 (i386_regset_from_core_section): Remove dynamic regset
3188 (i386_gdbarch_init): Remove initialization of tdep fields
3189 'gregset', 'fpregset', and 'xstateregset'.
3190 * i386-tdep.h (struct gdbarch_tdep): Remove fields 'gregset',
3191 'fpregset', and 'xstateregset'.
3192 (i386_collect_gregset): Remove prototype.
3193 (i386_gregset): New declaration.
3194 * i386obsd-tdep.c (i386obsd_aout_gregset): New static regset
3196 (i386obsd_aout_regset_from_core_section): Remove dynamic regset
3199 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3201 * arm-linux-tdep.c (arm_linux_gregset, arm_linux_fpregset)
3202 (arm_linux_vfpregset): New static regset structures.
3203 (arm_linux_regset_from_core_section): Remove dynamic allocation of
3205 * arm-tdep.h (struct gdbarch_tdep): Remove 'gregset', 'fpregset',
3206 and 'vfpregset' fields.
3208 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3210 * aarch64-linux-tdep.c (aarch64_linux_gregset)
3211 (aarch64_linux_fpregset): New static regset structures.
3212 (aarch64_linux_regset_from_core_section): Drop dynamic allocation
3213 of regset structures.
3214 * aarch64-tdep.h (struct gdbarch_tdep): Remove 'gregset' and
3217 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3219 * regset.h (struct regset): Remove gdbarch field.
3220 * regset.c (regset_alloc): Drop initialization of gdbarch field.
3221 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3222 * ppcfbsd-tdep.c (ppc32_fbsd_gregset, ppc64_fbsd_gregset):
3224 * ppc-linux-tdep.c (ppc32_linux_gregset, ppc64_linux_gregset)
3225 (ppc32_linux_fpregset, ppc32_linux_vrregset)
3226 (ppc32_linux_vsxregset): Likewise.
3227 * i386obsd-tdep.c (i386obsd_aout_supply_regset): Get the gdbarch
3228 via the regcache instead of the regset.
3229 * i386-tdep.c (i386_supply_gregset, i386_collect_gregset)
3230 (i386_supply_fpregset, i386_collect_fpregset): Likewise.
3231 * amd64obsd-tdep.c (amd64obsd_supply_regset): Likewise.
3232 * amd64-tdep.c (amd64_supply_fpregset, amd64_collect_fpregset):
3235 2014-05-21 Andreas Arnez <arnez@linux.vnet.ibm.com>
3237 * alpha-linux-tdep.c (alpha_linux_gregset, alpha_linux_fpregset):
3238 Constify structures.
3239 * alphanbsd-tdep.c (alphanbsd_gregset, alphanbsd_fpregset)
3240 (alphanbsd_aout_gregset): Likewise.
3241 * armbsd-tdep.c (armbsd_gregset, armbsd_fpregset): Likewise.
3242 * frv-linux-tdep.c (frv_linux_gregset, frv_linux_fpregset):
3244 * hppa-hpux-tdep.c (hppa_hpux_regset): Likewise.
3245 * hppa-linux-tdep.c (hppa_linux_regset, hppa_linux_fpregset):
3247 * hppanbsd-tdep.c (hppanbsd_gregset): Likewise.
3248 * hppaobsd-tdep.c (hppaobsd_gregset, hppaobsd_fpregset): Likewise.
3249 * m32r-linux-tdep.c (m32r_linux_gregset): Likewise.
3250 * m68kbsd-tdep.c (m68kbsd_gregset, m68kbsd_fpregset): Likewise.
3251 * m88k-tdep.c (m88k_gregset): Likewise.
3252 * mips64obsd-tdep.c (mips64obsd_gregset): Likewise.
3253 * mipsnbsd-tdep.c (mipsnbsd_gregset, mipsnbsd_fpregset): Likewise.
3254 * nios2-linux-tdep.c (nios2_core_regset): Likewise.
3255 * ppcfbsd-tdep.c (ppc32_fbsd_fpregset): Likewise.
3256 * ppcnbsd-tdep.c (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3257 * ppcnbsd-tdep.h (ppcnbsd_gregset, ppcnbsd_fpregset): Likewise.
3258 * ppcobsd-tdep.c (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3259 * ppcobsd-tdep.h (ppcobsd_gregset, ppcobsd_fpregset): Likewise.
3260 * rs6000-aix-tdep.c (rs6000_aix32_regset, rs6000_aix64_regset):
3262 * sh-tdep.c (sh_corefile_gregset, sh_corefile_fpregset): Likewise.
3263 * sh-tdep.h (sh_corefile_gregset): Likewise.
3264 * tilegx-linux-tdep.c (tilegx_linux_regset): Likewise.
3265 * vax-tdep.c (vax_gregset): Likewise.
3267 2014-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3269 Fix TLS access for -static -pthread.
3270 * linux-thread-db.c (struct thread_db_info): Add td_thr_tlsbase_p.
3271 (try_thread_db_load_1): Initialize it.
3272 (thread_db_get_thread_local_address): Call it if LM is zero.
3273 * target.c (target_translate_tls_address): Remove LM_ADDR zero check.
3274 * target.h (struct target_ops) (to_get_thread_local_address): Add
3275 load_module_addr comment.
3277 2014-05-21 Pedro Alves <palves@redhat.com>
3279 * dcache.c (dcache_read_memory_partial): If reading the cache line
3280 fails, fallback to reading just the memory the caller wanted.
3282 2014-05-20 Doug Evans <dje@google.com>
3284 * python/py-progspace.c (py_free_pspace): Call target_gdbarch
3285 instead of get_current_arch.
3287 2014-05-20 Pedro Alves <palves@redhat.com>
3289 * NEWS: Mention that compare-sections now works with all targets.
3291 * remote.c (PACKET_qCRC): New enum value.
3292 (remote_verify_memory): Don't send qCRC if the target has no
3293 execution. Use packet_support/packet_ok. If the target doesn't
3294 support the qCRC packet, fallback to a deep memory copy.
3295 (compare_sections_command): Say "target image" instead of "remote
3297 (_initialize_remote): Add PACKET_qCRC to the list of config
3298 packets that have no associated command. Extend comment.
3299 * target.c (simple_verify_memory, default_verify_memory): New
3301 * target.h (struct target_ops) <to_verify_memory>: Default to
3302 default_verify_memory.
3303 (simple_verify_memory): New declaration.
3304 * target-delegates.c: Regenerate.
3306 2014-05-20 Markus Metzger <markus.t.metzger@intel.com>
3308 * record-btrace.c (record_btrace_step_thread): Check for empty history.
3310 2014-05-20 Hui Zhu <hui@codesourcery.com>
3311 Yao Qi <yao@codesourcery.com>
3314 * aarch64-linux-tdep.c (aarch64_linux_sigframe_init): Update comments
3315 and change address of sp and pc.
3317 2014-05-19 Tom Tromey <tromey@redhat.com>
3319 * gdbtypes.c (rank_function): Use XNEWVEC.
3320 * mi/mi-cmds.c (build_table): Use XCNEWVEC.
3322 2014-05-19 Doug Evans <dje@google.com>
3324 * dwarf2read.c (build_type_psymtabs_1): Renamed from
3325 build_type_unit_groups and moved closer to only caller. Remove
3326 arguments. All references updated. Remove outdated .gdb_index
3328 (struct tu_abbrev_offset, sort_tu_by_abbrev_offset): Move with
3329 build_type_psymtabs_1.
3331 2014-05-19 Doug Evans <dje@google.com>
3333 * dwarf2read.c (struct dwarf2_per_objfile): Delete unused members
3334 n_type_unit_groups, all_type_unit_groups. All uses removed.
3335 (get_type_unit_group, build_type_unit_groups): Delete forward decls.
3336 (dw2_get_cutu): Renamed from dw2_get_cu. All callers updated.
3337 (dw2_get_cu): Renamed from dw2_get_primary_cu. All callers updated.
3338 (add_type_unit_group_to_table): Delete.
3340 2014-05-19 Doug Evans <dje@google.com>
3342 * eval.c (evaluate_subexp_standard): Add some comments.
3344 2014-05-17 Doug Evans <xdje42@gmail.com>
3346 * progspace.c (remove_program_space): Delete, unused.
3347 * progspace.h (remove_program_space): Ditto.
3349 2014-05-17 Doug Evans <xdje42@gmail.com>
3351 * inferior.c (prune_inferiors): Fix comment.
3352 (remove_inferior_command): Call prune_program_spaces.
3354 2014-05-16 Doug Evans <dje@google.com>
3356 New command line option -D.
3358 * main.c (set_gdb_data_directory): New function.
3359 (captured_main): Recognize -D. Flag error for --data-directory "".
3360 Call set_gdb_data_directory.
3361 (print_gdb_help): Print --data-directory, -D.
3362 * main.h (set_gdb_data_directory): Declare.
3363 * top.c (staged_gdb_datadir): New static global.
3364 (set_gdb_datadir): Call set_gdb_data_directory
3365 (show_gdb_datadir): New function.
3366 (init_main): Update init of data-directory parameter.
3368 2014-05-16 Gregory Fong <gregory.0xf0@gmail.com>
3370 Import the "dirfd" gnulib module.
3371 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add dirfd.
3372 * gnulib/aclocal.m4: Update.
3373 * gnulib/config.in: Update.
3374 * gnulib/configure: Update.
3375 * gnulib/import/Makefile.am: Update.
3376 * gnulib/import/Makefile.in: Update.
3377 * gnulib/import/dirfd.c: New.
3378 * gnulib/import/m4/dirfd.m4: New.
3379 * gnulib/import/m4/gnulib-cache.m4: Update.
3380 * gnulib/import/m4/gnulib-comp.m4: Update.
3382 2014-05-16 Pierre Muller <muller@sourceware.org>
3383 Yao Qi <yao@codesourcery.com>
3385 * valprint.c (print_wchar): Move the code on checking whether
3386 W is a printable wide char to the default branch of switch
3387 statement below. Call wchar_printable instead of gdb_iswprint.
3389 2014-05-16 Taimoor Mirza <tmirza@codesourcery.com>
3391 * arm-tdep.c (thumb_analyze_prologue): Fix offset calculation for
3392 ldr.w and ldrd instructions.
3394 2014-05-15 Doug Evans <dje@google.com>
3396 * dwarf2read.c (read_structure_type): Delete outdated comments.
3398 2014-05-14 Tom Tromey <tromey@redhat.com>
3400 * macrocmd.c (print_macro_definition): Reindent.
3402 2014-05-13 Doug Evans <xdje42@gmail.com>
3404 * python/py-cmd.c (cmdpy_completer): Add comment.
3405 (completers): Make const.
3407 2014-05-13 Simon Marchi <simon.marchi@ericsson.com>
3409 * infrun.c (resume): Remove should_resume (unused). Move up
3410 declaration of resume_ptid.
3412 2014-05-13 Tom Tromey <tromey@redhat.com>
3414 * language.h (unop_type_check): Remove.
3415 (binop_type_check): Don't declare.
3417 2014-05-13 Andreas Arnez <arnez@vnet.linux.ibm.com>
3419 * s390-linux-nat.c (fill_gregset): Remove erroneous offset 4 in
3420 call to regcache_raw_collect.
3422 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3424 * mi/mi-console.c (mi_console_raw_packet): Use the value from
3425 mi_console->quote as the quoting character.
3427 2014-05-12 Simon Marchi <simon.marchi@ericsson.com>
3429 * MAINTAINERS (Write After Approval): Add "Simon Marchi".
3431 2014-04-29 Tom Tromey <tromey@redhat.com>
3433 * varobj.c (_initialize_varobj): Rename to "set debug varobj" and
3434 "show debug varobj".
3436 2014-05-07 Kyle McMartin <kyle@redhat.com>
3438 Pushed by Joel Brobecker <brobecker@adacore.com>.
3439 * aarch64-tdep.c (aarch64_software_single_step): New function.
3440 (aarch64_gdbarch_init): Handle single stepping of atomic sequences
3441 with aarch64_software_single_step.
3443 2014-05-05 Joel Brobecker <brobecker@adacore.com>
3447 2014-05-05 Keith Seitz <keiths@redhat.com>
3449 * linespec.c (linespec_parse_basic): Run cleanups if a convenience
3450 variable or history value is successfully parsed.
3452 2014-05-05 Yao Qi <yao@codesourcery.com>
3453 Pedro Alves <palves@redhat.com>
3455 * tracefile-tfile.c (tfile_xfer_partial): Record the lowest
3456 address of blocks that intersects the requested range. Trim
3457 LEN up to LOW_ADDR_AVAILABLE if read from executable read-only
3459 * ctf.c (ctf_xfer_partial): Likewise.
3461 2014-05-05 Yao Qi <yao@codesourcery.com>
3463 * printcmd.c (display_command): Remove the check to
3464 target_has_execution.
3466 2014-05-03 Mark Kettenis <kettenis@gnu.org>
3468 * ppcobsd-nat.c: Include "obsd-nat.h".
3469 (_initialize_ppcobsd_nat): Call obsd_add_target instead of
3471 * config/powerpc/obsd.mh (NATDEPFILES): Add obsd-nat.o.
3473 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3475 * stap-probe.c (enum stap_arg_bitness): New enums to represent 8
3476 and 16-bit signed and unsigned arguments. Update comment.
3477 (stap_parse_probe_arguments): Extend code to handle such
3478 arguments. Use warning instead of complaint to notify about
3479 unrecognized bitness.
3481 2014-05-02 Sergio Durigan Junior <sergiodj@redhat.com>
3483 PR breakpoints/16889
3484 * stap-probe.c (stap_parse_probe_arguments): Simplify
3485 check for non-prefixed probes (i.e., probes whose
3486 arguments do not start with "N@"). Always set the
3487 argument type to a sane value.
3489 2014-05-01 David Taylor <dtaylor@emc.com>
3491 * remote.c (compare_sections_command): Add -r option to compare
3492 all loadable read-only sections.
3494 2014-04-30 Siva Chandra Reddy <sivachandra@google.com>
3496 * dwarf2loc.c (dwarf2_locexpr_baton_eval,
3497 dwarf2_evaluate_property): Remove unused CORE_ADDR argument.
3499 * dwarf2loc.h (dwarf2_evaluate_property): Update signature.
3500 * gdbtypes.c (resolve_dynamic_range, resolve_dynamic_array):
3501 Remove unused CORE_ADDR argument. Update all callers.
3503 2014-04-29 Pedro Alves <palves@redhat.com>
3505 * remote.c (struct packet_config) <detect>: Extend comment.
3506 (add_packet_config_cmd): Don't set the config's detect or support
3508 (init_all_packet_configs): Also initialize the config's 'detect'
3510 (reset_all_packet_configs_support): New function.
3511 (remote_open_1): Call reset_all_packet_configs_support instead of
3512 init_all_packet_configs.
3513 (_initialize_remote): Initialize all packet configs. Assert that
3514 all packets have an associated command, except a few known
3517 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3519 * dwarf2read.c (read_subrange_type): Handle dynamic
3520 DW_AT_lower_bound attributes.
3522 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3524 * ada-lang.c (ada_discrete_type_high_bound): Resolve the type's
3525 dynamic bounds before computing its upper bound.
3526 (ada_discrete_type_low_bound): Same as above with the lower bound.
3528 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3530 * dwarf2read.c (is_dynamic_type): Return true for dynamic
3531 range types. Adjust the array handling implementation to
3532 take advantage of this change.
3533 (resolve_dynamic_range): New function, mostly extracted from
3534 resolve_dynamic_bounds.
3535 (resolve_dynamic_array): New function, mostly extracted from
3536 resolve_dynamic_bounds.
3537 (resolve_dynamic_bounds): Delete.
3538 (resolve_dynamic_type): Reimplement. Add handling of
3539 TYPE_CODE_RANGE types.
3541 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3543 * ada-varobj.c (ada_varobj_describe_simple_array_child): Remove
3544 handling of parallel ___XA types.
3546 2014-04-28 Joel Brobecker <brobecker@adacore.com>
3548 * ada-lang.c (ada_evaluate_subexp) <OP_VAR_VALUE>: Remove
3549 unnecessary second call to static_unwrap_type.
3551 2014-04-27 Hui Zhu <hui@codesourcery.com>
3553 * stack.c (print_frame_info): Call do_gdb_disassembly with
3554 DUMMY_FRAME, SIGTRAMP_FRAME and ARCH_FRAME.
3556 2014-04-26 Doug Evans <xdje42@gmail.com>
3558 * guile/scm-safe-call.c (scscm_eval_scheme_string): Fix comment.
3560 2014-04-25 Pedro Alves <palves@redhat.com>
3563 * common/linux-ptrace.c (linux_ptrace_attach_warnings): Rename to ...
3564 (linux_ptrace_attach_fail_reason): ... this. Remove "warning: "
3565 and newline from built string.
3566 * common/linux-ptrace.h (linux_ptrace_attach_warnings): Rename to ...
3567 (linux_ptrace_attach_fail_reason): ... this.
3568 * linux-nat.c (linux_nat_attach): Adjust to use
3569 linux_ptrace_attach_fail_reason.
3571 2014-04-25 Pedro Alves <palves@redhat.com>
3573 * remote.c (struct remote_state): Remove multi_process_aware,
3574 non_stop_aware, cond_tracepoints, cond_breakpoints,
3575 breakpoint_commands, fast_tracepoints, static_tracepoints,
3576 install_in_trace, disconnected_tracing,
3577 enable_disable_tracepoints, string_tracing, and
3578 augmented_libraries_svr4_read fields.
3579 (remote_multi_process_p): Move further below in the file.
3580 (struct packet_config): Add comments.
3581 (update_packet_config): Delete function.
3582 (show_packet_config_cmd): Use packet_config_support.
3583 (add_packet_config_cmd): Use NULL as set callback.
3584 (packet_ok): "set remote foo-packet"-style commands no longer
3585 change config->supported -- adjust.
3586 (PACKET_ConditionalTracepoints, PACKET_ConditionalBreakpoints)
3587 (PACKET_BreakpointCommands, PACKET_FastTracepoints)
3588 (PACKET_StaticTracepoints, PACKET_InstallInTrace): Add comments.
3589 (PACKET_QNonStop, PACKET_multiprocess_feature)
3590 (PACKET_EnableDisableTracepoints_feature, PACKET_tracenz_feature)
3591 (PACKET_DisconnectedTracing_feature)
3592 (PACKET_augmented_libraries_svr4_read_feature): New enum values.
3593 (set_remote_protocol_packet_cmd): Delete function.
3594 (packet_config_support, packet_support): New functions.
3595 (set_remote_protocol_Z_packet_cmd): Don't call
3596 update_packet_config.
3597 (remote_query_attached, remote_pass_signals)
3598 (remote_program_signals, remote_threads_info)
3599 (remote_threads_extra_info, remote_start_remote): Use
3601 (remote_start_remote): Use packet_config_support and
3603 (init_all_packet_configs): Set all packets to unknown support,
3604 instead of calling update_packet_config.
3605 (remote_check_symbols): Use packet_support.
3606 (remote_supported_packet): Unconditionally set the packet config's
3608 (remote_multi_process_feature, remote_non_stop_feature)
3609 (remote_cond_tracepoint_feature, remote_cond_breakpoint_feature)
3610 (remote_breakpoint_commands_feature)
3611 (remote_fast_tracepoint_feature, remote_static_tracepoint_feature)
3612 (remote_install_in_trace_feature)
3613 (remote_disconnected_tracing_feature)
3614 (remote_enable_disable_tracepoint_feature)
3615 (remote_string_tracing_feature)
3616 (remote_augmented_libraries_svr4_read_feature): Delete functions.
3617 (remote_protocol_features): Adjust to use remote_supported_packet
3618 for "augmented-libraries-svr4-read", "multiprocess", "QNonStop",
3619 "ConditionalTracepoints", "ConditionalBreakpoints",
3620 "BreakpointCommands", "FastTracepoints", "StaticTracepoints",
3621 "InstallInTrace", "DisconnectedTracing", "DisconnectedTracing",
3622 "EnableDisableTracepoints", and "tracenz".
3623 (remote_query_supported): Use packet_support.
3624 (remote_open_1): Adjust.
3625 (extended_remote_attach_1): Use packet_support. Switch on the
3626 result of packet_ok instead of checking whether the packet ended
3628 (remote_vcont_resume): Use packet_support.
3629 (remote_resume, remote_stop_ns, fetch_register_using_p)
3630 (remote_prepare_to_store, store_register_using_P)
3631 (check_binary_download, remote_write_bytes): Use packet_support.
3632 (remote_vkill): Use packet_support. Switch on the result of
3633 packet_ok instead of checking whether the packet ended up
3635 (extended_remote_supports_disable_randomization): Use
3637 (extended_remote_run): Switch on the result of packet_ok instead
3638 of checking whether the packet ended up disabled.
3639 (remote_insert_breakpoint, remote_remove_breakpoint)
3640 (remote_insert_watchpoint, remote_remove_watchpoint)
3641 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Use
3643 (remote_search_memory): Use packet_config_support.
3644 (remote_get_thread_local_address, remote_get_tib_address)
3645 (remote_hostio_send_command, remote_can_execute_reverse): Use
3647 (remote_supports_cond_tracepoints)
3648 (remote_supports_cond_breakpoints)
3649 (remote_supports_fast_tracepoints)
3650 (remote_supports_static_tracepoints)
3651 (remote_supports_install_in_trace)
3652 (remote_supports_enable_disable_tracepoint)
3653 (remote_supports_string_tracing)
3654 (remote_can_run_breakpoint_commands): Rewrite, checking whether
3655 the packet config says the feature is enabled or disabled.
3656 (remote_download_tracepoint, remote_trace_set_readonly_regions)
3657 (remote_get_trace_status): Use packet_support.
3658 (remote_set_disconnected_tracing): Adjust to check whether the
3659 feature is enabled with packet_support.
3660 (remote_set_trace_buffer_size, remote_use_agent)
3661 (remote_can_use_agent, remote_supports_btrace): Use
3663 (remote_enable_btrace, remote_disable_btrace, remote_read_btrace):
3664 Use packet_config_support.
3665 (remote_augmented_libraries_svr4_read): Rewrite, checking whether
3666 the packet config says the feature is enabled or disabled.
3667 (set_range_stepping): Use packet_support.
3669 2014-04-25 Tom Tromey <tromey@redhat.com>
3671 * cli/cli-cmds.c (_initialize_cli_cmds): Document "quit" command's
3674 2014-04-24 Sanimir Agovic <sanimir.agovic@intel.com>
3676 * NEWS: Mention support for C99 variable length arrays.
3678 2014-04-24 Joel Brobecker <brobecker@adacore.com>
3680 * ada-lang.c (standard_exc): Expand introductory comment.
3682 2014-04-24 Michael Sturm <michael.sturm@mintel.com>
3683 Walfred Tedeschi <walfred.tedeschi@intel.com>
3685 * amd64-linux-nat.c (amd64_linux_gregset32_reg_offset): Add
3687 (amd64_linux_read_description): Add code to handle AVX512 xstate
3688 mask and return respective tdesc.
3689 * amd64-linux-tdep.c: Include features/i386/amd64-avx512-linux.c
3690 and features/i386/x32-avx512-linux.c.
3691 (amd64_linux_gregset_reg_offset): Add AVX512 registers.
3692 (amd64_linux_core_read_description): Add code to handle AVX512
3693 xstate mask and return respective tdesc.
3694 (_initialize_amd64_linux_tdep): Initialize AVX512 tdesc.
3695 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Adjust regnum
3697 (AMD64_LINUX_NUM_REGS): Adjust to new number of registers.
3698 (tdesc_amd64_avx512_linux): New prototype.
3699 (tdesc_x32_avx512_linux): Likewise.
3700 * amd64-tdep.c: Include features/i386/amd64-avx512.c and
3701 features/i386/x32-avx512.c.
3702 (amd64_ymm_avx512_names): New register names for pseudo
3704 (amd64_ymmh_avx512_names): New register names for raw registers
3706 (amd64_k_names): New register names for K registers.
3707 (amd64_zmmh_names): New register names for ZMM raw registers.
3708 (amd64_zmm_names): New registers names for ZMM pseudo registers.
3709 (amd64_xmm_avx512_names): New register names for XMM16-31
3711 (amd64_pseudo_register_name): Add code to return AVX512 pseudo
3713 (amd64_init_abi): Add code to intitialize AVX512 tdep variables
3714 if feature is present.
3715 (_initialize_amd64_tdep): Call AVX512 tdesc initializers.
3716 * amd64-tdep.h (enum amd64_regnum): Add AVX512 registers.
3717 (AMD64_NUM_REGS): Adjust to new number of registers.
3718 * i386-linux-nat.c (GETXSTATEREGS_SUPPLIES): Extend range of
3719 registers supplied via XSTATE by AVX512 registers.
3720 (i386_linux_read_description): Add case for AVX512.
3721 * i386-linux-tdep.c: Include i386-avx512-linux.c.
3722 (i386_linux_gregset_reg_offset): Add AVX512 registers.
3723 (i386_linux_core_read_description): Add case for AVX512.
3724 (i386_linux_init_abi): Install supported register note section
3726 (_initialize_i386_linux_tdep): Add call to tdesc init function for
3728 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): Set number of
3729 registers to be number of zmm7h + 1.
3730 (tdesc_i386_avx512_linux): Add tdesc for AVX512 registers.
3731 * i386-tdep.c: Include features/i386/i386-avx512.c.
3732 (i386_zmm_names): Add ZMM pseudo register names array.
3733 (i386_zmmh_names): Add ZMM raw register names array.
3734 (i386_k_names): Add K raw register names array.
3735 (num_lower_zmm_regs): Add constant for the number of lower ZMM
3736 registers. AVX512 has 16 more ZMM registers than there are YMM
3738 (i386_zmmh_regnum_p): Add function to look up register number of
3740 (i386_zmm_regnum_p): Likewise for ZMM pseudo registers.
3741 (i386_k_regnum_p): Likewise for K raw registers.
3742 (i386_ymmh_avx512_regnum_p): Likewise for additional YMM raw
3743 registers added by AVX512.
3744 (i386_ymm_avx512_regnum_p): Likewise for additional YMM pseudo
3745 registers added by AVX512.
3746 (i386_xmm_avx512_regnum_p): Likewise for additional XMM registers
3748 (i386_register_name): Add code to hide YMMH16-31 and ZMMH0-31.
3749 (i386_pseudo_register_name): Add ZMM pseudo registers.
3750 (i386_zmm_type): Construct and return vector registers type for ZMM
3752 (i386_pseudo_register_type): Return appropriate type for YMM16-31,
3753 ZMM0-31 pseudo registers and K registers.
3754 (i386_pseudo_register_read_into_value): Add code to read K, ZMM
3755 and YMM16-31 registers from register cache.
3756 (i386_pseudo_register_write): Add code to write K, ZMM and
3758 (i386_register_reggroup_p): Add code to include/exclude AVX512
3759 registers in/from respective register groups.
3760 (i386_validate_tdesc_p): Handle AVX512 feature, add AVX512
3761 registers if feature is present in xcr0.
3762 (i386_gdbarch_init): Add code to initialize AVX512 feature
3763 variables in tdep structure, wire in pseudo registers and call
3764 initialize_tdesc_i386_avx512.
3765 * i386-tdep.h (struct gdbarch_tdep): Add AVX512 related
3767 (i386_regnum): Add AVX512 registers.
3768 (I386_SSE_NUM_REGS): New define for number of SSE registers.
3769 (I386_AVX_NUM_REGS): Likewise for AVX registers.
3770 (I386_AVX512_NUM_REGS): Likewise for AVX512 registers.
3771 (I386_MAX_REGISTER_SIZE): Change to 64 bytes, ZMM registers are
3773 (i386_xmm_avx512_regnum_p): New prototype for register look up.
3774 (i386_ymm_avx512_regnum_p): Likewise.
3775 (i386_k_regnum_p): Likewise.
3776 (i386_zmm_regnum_p): Likewise.
3777 (i386_zmmh_regnum_p): Likewise.
3778 * i387-tdep.c : Update year in copyright notice.
3779 (xsave_ymm_avx512_offset): New table for YMM16-31 offsets in
3781 (XSAVE_YMM_AVX512_ADDR): New macro.
3782 (xsave_xmm_avx512_offset): New table for XMM16-31 offsets in
3784 (XSAVE_XMM_AVX512_ADDR): New macro.
3785 (xsave_avx512_k_offset): New table for K register offsets in
3787 (XSAVE_AVX512_K_ADDR): New macro.
3788 (xsave_avx512_zmm_h_offset): New table for ZMM register offsets
3790 (XSAVE_AVX512_ZMM_H_ADDR): New macro.
3791 (i387_supply_xsave): Add code to supply AVX512 registers to XSAVE
3793 (i387_collect_xsave): Add code to collect AVX512 registers from
3795 * i387-tdep.h (I387_NUM_XMM_AVX512_REGS): New define for number
3796 of XMM16-31 registers.
3797 (I387_NUM_K_REGS): New define for number of K registers.
3798 (I387_K0_REGNUM): New define for K0 register number.
3799 (I387_NUM_ZMMH_REGS): New define for number of ZMMH registers.
3800 (I387_ZMM0H_REGNUM): New define for ZMM0H register number.
3801 (I387_NUM_YMM_AVX512_REGS): New define for number of YMM16-31
3803 (I387_YMM16H_REGNUM): New define for YMM16H register number.
3804 (I387_XMM16_REGNUM): New define for XMM16 register number.
3805 (I387_YMM0_REGNUM): New define for YMM0 register number.
3806 (I387_KEND_REGNUM): New define for last K register number.
3807 (I387_ZMMENDH_REGNUM): New define for last ZMMH register number.
3808 (I387_YMMH_AVX512_END_REGNUM): New define for YMM31 register
3810 (I387_XMM_AVX512_END_REGNUM): New define for XMM31 register
3812 * common/i386-xstate.h: Add AVX 3.1 feature bits, mask and XSTATE
3814 * features/Makefile: Add AVX512 related files.
3815 * features/i386/32bit-avx512.xml: New file.
3816 * features/i386/64bit-avx512.xml: Likewise.
3817 * features/i386/amd64-avx512-linux.c: Likewise.
3818 * features/i386/amd64-avx512-linux.xml: Likewise.
3819 * features/i386/amd64-avx512.c: Likewise.
3820 * features/i386/amd64-avx512.xml: Likewise.
3821 * features/i386/i386-avx512-linux.c: Likewise.
3822 * features/i386/i386-avx512-linux.xml: Likewise.
3823 * features/i386/i386-avx512.c: Likewise.
3824 * features/i386/i386-avx512.xml: Likewise.
3825 * features/i386/x32-avx512-linux.c: Likewise.
3826 * features/i386/x32-avx512-linux.xml: Likewise.
3827 * features/i386/x32-avx512.c: Likewise.
3828 * features/i386/x32-avx512.xml: Likewise.
3829 * regformats/i386/amd64-avx512-linux.dat: New file.
3830 * regformats/i386/amd64-avx512.dat: Likewise.
3831 * regformats/i386/i386-avx512-linux.dat: Likewise.
3832 * regformats/i386/i386-avx512.dat: Likewise.
3833 * regformats/i386/x32-avx512-linux.dat: Likewise.
3834 * regformats/i386/x32-avx512.dat: Likewise.
3835 * NEWS: Add note about new support for AVX512.
3838 2014-04-23 Pedro Alves <palves@redhat.com>
3840 * breakpoint.c (insert_bp_location): Tolerate errors if the
3841 breakpoint is set in a user-loaded objfile.
3842 (remove_breakpoint_1): Likewise. Also tolerate errors if the
3843 location is marked shlib_disabled. If the breakpoint is set in a
3844 user-loaded objfile is a GDB-side memory breakpoint, validate it
3845 before uninsertion. (disable_breakpoints_in_freed_objfile): Skip
3846 non-OBJF_USERLOADED objfiles. Don't clear the location's inserted
3848 * mem-break.c (memory_validate_breakpoint): New function.
3849 * objfiles.c (userloaded_objfile_contains_address_p): New
3851 * objfiles.h (userloaded_objfile_contains_address_p): Declare.
3852 * target.h (memory_validate_breakpoint): New declaration.
3854 2014-04-23 Pedro Alves <palves@redhat.com>
3856 * breakpoint.c (insert_bp_location, remove_breakpoint_1): If
3857 the breakpoint is set in a shared library, only suppress
3858 errors for software breakpoints, not hardware breakpoints.
3860 2014-04-22 Pedro Alves <palves@redhat.com>
3862 * infrun.c (schedlock_applies): New function, factored out from
3863 find_thread_needs_step_over.
3864 (find_thread_needs_step_over): Use it.
3865 (switch_back_to_stepped_thread): Always clear trap_expected if the
3866 step over is finished. Return early if scheduler locking applies.
3867 Look for the stepping thread and a potential step-over thread with
3869 (currently_stepping_or_nexting_callback): Delete.
3871 2014-04-22 Nick Clifton <nickc@redhat.com>
3873 * NEWS: Mention that ARM sim now supports tracing.
3875 2014-04-22 Yao Qi <yao@codesourcery.com>
3877 * tracefile-tfile.c (tfile_fetch_registers): Move the bottom
3879 * tracefile.c (tracefile_fetch_registers): ... it. New
3881 * tracefile.h (tracefile_fetch_registers): Declare.
3882 * ctf.c (ctf_fetch_registers): Remove the bottom. Call
3883 tracefile_fetch_registers.
3885 2014-04-19 Eli Zaretskii <eliz@gnu.org>
3888 * windows-nat.c (thread_rec): Don't display a warning when
3889 SuspendThread fails with ERROR_ACCESS_DENIED. If SuspendThread
3890 fails for any reason, set th->suspended to -1, so that we don't
3891 try to resume such a thread. Also, don't return NULL in these
3892 cases, to avoid completely ruin the session due to "PC register is
3893 not available" error.
3894 (do_windows_fetch_inferior_registers): Check errors in
3895 GetThreadContext call.
3896 (windows_continue): Accept an additional argument KILLED; if not
3897 zero, ignore errors in the SetThreadContext call, since the
3898 inferior was killed and is shutting down.
3899 (windows_resume, get_windows_debug_event)
3900 (windows_create_inferior, windows_mourn_inferior)
3901 (windows_kill_inferior): All callers of windows_continue changed
3902 to adjust to its new calling sequence.
3904 2014-04-19 Yao Qi <yao@codesourcery.com>
3906 * ctf.c (ctf_open): Call post_create_inferior.
3908 2014-04-19 Yao Qi <yao@codesourcery.com>
3910 * ctf.c (handle_id): New static variable.
3911 (ctf_open_dir): Get handle_id from bt_context_add_trace return
3912 value. Get the declaration of event "register" and get length
3913 of field "contents".
3915 2014-04-19 Yao Qi <yao@codesourcery.com>
3917 * ctf.c (ctf_xfer_partial): Check 'name' is NULL before strcmp.
3919 2014-04-18 Siva Chandra Reddy <sivachandra@google.com>
3921 * valops.c (oload_method_static): Remove unnecessary argument
3922 METHOD. Update all callers.
3924 2014-04-18 Pedro alves <palves@redhat.com>
3925 Tom Tromey <tromey@redhat.com>
3928 * frame.c (get_prev_frame_1): Rename to ...
3929 (get_prev_frame_always): ... this, and make extern. Adjust.
3930 (skip_artificial_frames): Use get_prev_frame_always.
3931 (frame_unwind_caller_id, frame_pop, get_prev_frame)
3932 (get_frame_unwind_stop_reason): Adjust to rename.
3933 * frame.h (get_prev_frame_always): Declare.
3934 * inline-frame.c: Include frame.h.
3935 (inline_frame_this_id): Use get_prev_frame_always.
3937 2014-04-18 Tristan Gingold <gingold@adacore.com>
3939 * solib-darwin.c (darwin_solib_create_inferior_hook): Simplify
3940 code by using bfd_mach_o_get_base_address.
3942 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3944 * spu-tdep.c: Include "dwarf2-frame.h" and "ax.h".
3945 (spu_ax_pseudo_register_collect): New function.
3946 (spu_ax_pseudo_register_push_stack): Likewise.
3947 (spu_dwarf_reg_to_regnum): Likewise.
3948 (spu_gdbarch_init): Install them. Append DWARF unwinders.
3950 2014-04-17 Ulrich Weigand <uweigand@de.ibm.com>
3952 * gdbarch.sh (value_from_register): Make class "m" instead of "f".
3953 Replace FRAME argument with FRAME_ID.
3954 * gdbarch.c, gdbarch.h: Regenerate.
3955 * findvar.c (default_value_from_register): Add GDBARCH argument;
3956 replace FRAME by FRAME_ID. No longer call get_frame_id.
3957 (value_from_register): Update call to gdbarch_value_from_register.
3958 * value.h (default_value_from_register): Update prototype.
3959 * s390-linux-tdep.c (s390_value_from_register): Update interface
3960 and call to default_value_from_register.
3961 * spu-tdep.c (spu_value_from_register): Likewise.
3963 * findvar.c (address_from_register): Remove TYPE argument.
3964 Do not call value_from_register; use gdbarch_value_from_register
3965 with null_frame_id instead.
3966 * value.h (address_from_register): Update prototype.
3967 * dwarf2-frame.c (read_addr_from_reg): Use address_from_register.
3968 * dwarf2loc.c (dwarf_expr_read_addr_from_reg): Update for
3969 address_from_register interface change.
3971 2014-04-17 Yao Qi <yao@codesourcery.com>
3973 * gdbtypes.h: Update comments to link to types and macros'
3976 2014-04-16 Siva Chandra Reddy <sivachandra@google.com>
3978 * gdbtypes.h: Remove definition of the macro TYPE_FN_FIELDS.
3980 2014-04-16 Keith Seitz <keiths@redhat.com>
3983 * dwarf2read.c (skip_one_die): Check that all relative-offset
3984 sibling DIEs fall within range of the current reader's buffer.
3985 (read_partial_die): Likewise.
3987 2014-04-16 Keith Seitz <keiths@redhat.com>
3990 * cp-namespace.c (lookup_symbol_file): If the type name of
3991 `this' is NULL, return immediately.
3993 2014-04-14 Keith Seitz <keiths@redhat.com>
3996 * ada-lang.c (ada_symbol_matches_domain): Moved here and renamed
3997 from symbol_matches_domain in symtab.c. All local callers
3998 of symbol_matches_domain updated.
3999 (standard_lookup): If DOMAIN is VAR_DOMAIN and no symbol is found,
4000 search STRUCT_DOMAIN.
4001 (ada_find_any_type_symbol): Do not search STRUCT_DOMAIN
4002 independently. standard_lookup will do that automatically.
4003 * cp-namespace.c (cp_lookup_symbol_nonlocal): Explain when/why
4004 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4005 (cp_lookup_symbol_in_namespace): Likewise.
4006 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN.
4007 (cp_lookup_symbol_exports): Explain when/why VAR_DOMAIN searches
4008 may return a STRUCT_DOMAIN match.
4009 (lookup_symbol_file): Search for the class name in STRUCT_DOMAIN.
4010 * cp-support.c: Include language.h.
4011 (inspect_type): Explicitly search STRUCT_DOMAIN before searching
4013 * psymtab.c (match_partial_symbol): Compare the requested
4014 domain with the symbol's domain directly.
4015 (lookup_partial_symbol): Likewise.
4016 * symtab.c (lookup_symbol_in_language): Explain when/why
4017 VAR_DOMAIN searches may return a STRUCT_DOMAIN match.
4018 If no VAR_DOMAIN symbol is found, search STRUCT_DOMAIN for
4019 appropriate languages.
4020 (symbol_matches_domain): Renamed `ada_symbol_matches_domain'
4021 and moved to ada-lang.c
4022 (lookup_block_symbol): Explain that this function only returns
4023 symbol matching the requested DOMAIN.
4024 Compare the requested domain with the symbol's domain directly.
4025 (iterate_over_symbols): Compare the requested domain with the
4026 symbol's domain directly.
4027 * symtab.h (symbol_matches_domain): Remove.
4029 2014-04-14 Tom Tromey <tromey@redhat.com>
4032 * c-exp.y (type_aggregate_p): New function.
4033 (qualified_name, classify_inner_name): Use it.
4034 * c-typeprint.c (c_type_print_base): Handle TYPE_DECLARED_CLASS
4035 and TYPE_TARGET_TYPE of an enum type.
4036 * dwarf2read.c (read_enumeration_type): Set TYPE_DECLARED_CLASS on
4038 (determine_prefix) <case DW_TAG_enumeration_type>: New case;
4039 handle TYPE_DECLARED_CLASS.
4040 * gdbtypes.c (rank_one_type): Handle TYPE_DECLARED_CLASS on enum
4042 * gdbtypes.h (TYPE_DECLARED_CLASS): Update comment.
4043 * valops.c (enum_constant_from_type): New function.
4044 (value_aggregate_elt): Use it.
4045 * cp-namespace.c (cp_lookup_nested_symbol): Handle
4048 2014-04-14 Tom Tromey <tromey@redhat.com>
4050 * valops.c (value_aggregate_elt, value_struct_elt_for_reference)
4051 (value_namespace_elt, value_maybe_namespace_elt): Make "name"
4053 * value.h (value_aggregate_elt): Update.
4055 2014-04-14 Tom Tromey <tromey@redhat.com>
4057 * dwarf2read.c (read_enumeration_type): Handle DW_AT_type.
4059 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4061 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4062 (evaluate_subexp_standard): Pass noside argument.
4063 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4064 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4065 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4066 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4067 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4069 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4071 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4072 points to a constant blob.
4074 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4076 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4077 property and store it as the high bound and flag the range accordingly.
4078 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4079 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4080 * gdbtypes.h (enum range_flags): New enum.
4081 (struct range_bounds): Add flags member.
4083 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4085 * c-typeprint.c (c_type_print_varspec_suffix): Added
4086 check for not yet resolved high bound. If unresolved, print
4087 "variable length" string to the console instead of random
4090 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4092 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from
4094 (ada_template_to_fixed_record_type_1): Likewise.
4095 (ada_to_fixed_type_1): Likewise.
4096 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4097 (cp_print_value): Likewise.
4098 * d-valprint.c (dynamic_array_type): Likewise.
4099 * findvar.c (address_of_variable): Likewise.
4100 * jv-valprint.c (java_value_print): Likewise.
4101 * valops.c (value_ind): Likewise.
4102 * value.c (coerce_ref): Likewise.
4104 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4106 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4107 value and retrieve the dynamic type size.
4109 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4111 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4112 passed to sizeof is dynamic evaluate the argument to compute the length.
4114 2014-04-14 Sanimir Agovic <sanimir.agovic@intel.com>
4115 Joel Brobecker <brobecker@adacore.com>
4117 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4118 (dwarf2_evaluate_property): New function.
4119 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4120 * dwarf2read.c (attr_to_dynamic_prop): New function.
4121 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4123 * gdbtypes.c: Include dwarf2loc.h.
4124 (is_dynamic_type): New function.
4125 (resolve_dynamic_type): New function.
4126 (resolve_dynamic_bounds): New function.
4127 (get_type_length): New function.
4128 (check_typedef): Use get_type_length to compute type length.
4129 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4130 (TYPE_LOW_BOUND_KIND): New macro.
4131 (is_dynamic_type): New function prototype.
4132 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4133 to resolve dynamic properties of the type. Update comment.
4134 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4136 2014-04-14 Richard Henderson <rth@redhat.com>
4138 * alpha-linux-nat.c (_initialize_alpha_linux_nat): Fix prototype.
4140 2014-04-12 Siva Chandra Reddy <sivachandra@google.com>
4141 Doug Evans <xdje42@gmail.com>
4143 * guile/scm-value.c (gdbscm_value_dynamic_type): Use coerce_ref to
4144 dereference TYPE_CODE_REF values.
4146 2014-04-11 Joel Brobecker <brobecker@adacore.com>
4148 Revert the following changes due to regressions:
4150 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4151 (dwarf2_evaluate_property): New function.
4152 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4153 * dwarf2read.c (attr_to_dynamic_prop): New function.
4154 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4156 * gdbtypes.c: Include dwarf2loc.h.
4157 (is_dynamic_type): New function.
4158 (resolve_dynamic_type): New function.
4159 (resolve_dynamic_bounds): New function.
4160 (get_type_length): New function.
4161 (check_typedef): Use get_type_length to compute type length.
4162 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4163 (TYPE_LOW_BOUND_KIND): New macro.
4164 (is_dynamic_type): New function prototype.
4165 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4166 to resolve dynamic properties of the type. Update comment.
4167 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4169 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4170 passed to sizeof is dynamic evaluate the argument to compute the length.
4172 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4173 value and retrieve the dynamic type size.
4175 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4176 (ada_template_to_fixed_record_type_1): Likewise.
4177 (ada_to_fixed_type_1): Likewise.
4178 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4179 (cp_print_value): Likewise.
4180 * d-valprint.c (dynamic_array_type): Likewise.
4181 * eval.c (evaluate_subexp_with_coercion): Likewise.
4182 * findvar.c (address_of_variable): Likewise.
4183 * jv-valprint.c (java_value_print): Likewise.
4184 * valops.c (value_ind): Likewise.
4185 * value.c (coerce_ref): Likewise.
4187 * c-typeprint.c (c_type_print_varspec_suffix): Added
4188 check for not yet resolved high bound. If unresolved, print
4189 "variable length" string to the console instead of random
4192 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4193 property and store it as the high bound and flag the range accordingly.
4194 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4195 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4196 * gdbtypes.h (enum range_flags): New enum.
4197 (struct range_bounds): Add flags member.
4199 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4200 points to a constant blob.
4202 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4203 (evaluate_subexp_standard): Pass noside argument.
4204 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4205 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4206 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4207 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4208 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4210 2014-04-11 Keith Seitz <keiths@redhat.com>
4213 * c-exp.y (exp : SIZEOF '(' type ')'): Handle reference types.
4214 * eval.c (evaluate_subexp_for_sizeof): Refactor and handle
4217 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4219 * eval.c (evaluate_subexp_for_sizeof): Add enum noside argument.
4220 (evaluate_subexp_standard): Pass noside argument.
4221 (evaluate_subexp_for_sizeof) <BINOP_SUBSCRIPT>: Handle subscript case
4222 if noside equals EVAL_NORMAL. If the subscript yields a vla type
4223 re-evaluate subscript operation with EVAL_NORMAL to enable sideffects.
4224 * gdbtypes.c (resolve_dynamic_bounds): Mark bound as evaluated.
4225 * gdbtypes.h (enum range_flags): Add RANGE_EVALUATED case.
4227 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4229 * findvar.c (default_read_var_value): Resolve dynamic bounds if location
4230 points to a constant blob.
4232 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4234 * dwarf2read.c (read_subrange_type): Convert DW_AT_count to a dynamic
4235 property and store it as the high bound and flag the range accordingly.
4236 * gdbtypes.c (resolve_dynamic_bounds): If range is flagged as
4237 RANGE_UPPER_BOUND_IS_COUNT assign low + high - 1 as the new high bound.
4238 * gdbtypes.h (enum range_flags): New enum.
4239 (struct range_bounds): Add flags member.
4241 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4243 * c-typeprint.c (c_type_print_varspec_suffix): Added
4244 check for not yet resolved high bound. If unresolved, print
4245 "variable length" string to the console instead of random
4248 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4250 * ada-lang.c (ada_value_primitive_packed_val): Re-fetch type from value.
4251 (ada_template_to_fixed_record_type_1): Likewise.
4252 (ada_to_fixed_type_1): Likewise.
4253 * cp-valprint.c (cp_print_value_fields_rtti): Likewise.
4254 (cp_print_value): Likewise.
4255 * d-valprint.c (dynamic_array_type): Likewise.
4256 * eval.c (evaluate_subexp_with_coercion): Likewise.
4257 * findvar.c (address_of_variable): Likewise.
4258 * jv-valprint.c (java_value_print): Likewise.
4259 * valops.c (value_ind): Likewise.
4260 * value.c (coerce_ref): Likewise.
4262 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4264 * eval.c (evaluate_subexp_for_sizeof) <UNOP_IND>: Create an indirect
4265 value and retrieve the dynamic type size.
4267 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4269 * eval.c (evaluate_subexp_for_sizeof) <OP_VAR_VALUE>: If the type
4270 passed to sizeof is dynamic evaluate the argument to compute the length.
4272 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4274 * dwarf2loc.c (dwarf2_locexpr_baton_eval): New function.
4275 (dwarf2_evaluate_property): New function.
4276 * dwarf2loc.h (dwarf2_evaluate_property): New function prototype.
4277 * dwarf2read.c (attr_to_dynamic_prop): New function.
4278 (read_subrange_type): Use attr_to_dynamic_prop to read high bound
4280 * gdbtypes.c: Include dwarf2loc.h.
4281 (is_dynamic_type): New function.
4282 (resolve_dynamic_type): New function.
4283 (resolve_dynamic_bounds): New function.
4284 (get_type_length): New function.
4285 (check_typedef): Use get_type_length to compute type length.
4286 * gdbtypes.h (TYPE_HIGH_BOUND_KIND): New macro.
4287 (TYPE_LOW_BOUND_KIND): New macro.
4288 (is_dynamic_type): New function prototype.
4289 * value.c (value_from_contents_and_address): Call resolve_dynamic_type
4290 to resolve dynamic properties of the type. Update comment.
4291 * valops.c (get_value_at, value_at, value_at_lazy): Update comment.
4293 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4295 * dwarf2read.c (read_subrange_type): Use struct bound_prop for
4296 declaring high/low bounds and change uses accordingly. Call
4297 create_range_type instead of create_static_range_type.
4298 * gdbtypes.c (create_range_type): New function.
4299 (create_range_type): Convert bounds into struct bound_prop and pass
4300 them to create_range_type.
4301 * gdbtypes.h (struct bound_prop): New struct.
4302 (create_range_type): New function prototype.
4303 (struct range_bounds): Use struct bound_prop instead of LONGEST for
4304 high/low bounds. Remove low_undefined/high_undefined and adapt all uses.
4305 (TYPE_LOW_BOUND,TYPE_HIGH_BOUND): Adapt macros to refer to the static
4307 * parse.c (follow_types): Set high bound kind to BOUND_UNDEFINED.
4309 2014-04-11 Sanimir Agovic <sanimir.agovic@intel.com>
4311 * gdbtypes.c (create_static_range_type): Renamed from create_range_type.
4312 * gdbtypes.h (create_static_range_type): Renamed from create_range_type.
4313 * ada-lang.c: All uses of create_range_type updated.
4314 * coffread.c: All uses of create_range_type updated.
4315 * dwarf2read.c: All uses of create_range_type updated.
4316 * f-exp.y: All uses of create_range_type updated.
4317 * m2-valprint.c: All uses of create_range_type updated.
4318 * mdebugread.c: All uses of create_range_type updated.
4319 * stabsread.c: All uses of create_range_type updated.
4320 * valops.c: All uses of create_range_type updated.
4321 * valprint.c: All uses of create_range_type updated.
4323 2014-04-10 Pedro Alves <palves@redhat.com>
4325 * breakpoint.c (single_step_breakpoints)
4326 (single_step_gdbarch): Move up in the file.
4327 (one_breakpoint_xfer_memory): New function, factored out from ...
4328 (breakpoint_xfer_memory): ... here. Also process single-step
4331 2014-04-09 Tristan Gingold <gingold@adacore.com>
4333 * darwin-nat.c (darwin_check_new_threads): Fix port leak, add
4335 (darwin_decode_exception_message): Free port only after use.
4337 2014-04-08 Pierre Langlois <pierre.langlois@embecosm.com>
4339 * avr-tdep.c (struct gdbarch_tdep): Mention avrxmega in the comment.
4340 (avr_gdbarch_init): Add xmega architectures given by bfd_architecture
4341 when setting the size of call_length.
4343 2014-04-07 Siva Chandra Reddy <sivachandra@google.com>
4345 * python/py-value.c (valpy_get_dynamic_type): Use coerce_ref to
4346 dereference TYPE_CODE_REF values.
4348 2014-04-07 Joel Brobecker <brobecker@adacore.com>
4350 * darwin-nat.c (darwin_decode_message): Remove trailing '\n' at
4351 end of warning message.
4353 2014-04-03 Doug Evans <dje@google.com>
4355 * dwarf2read.c (read_cutu_die_from_dwo): Fix assertion, at most one
4356 of stub_comp_unit_die, stub_comp_dir is non-NULL.
4358 2014-04-02 Alan Modra <amodra@gmail.com>
4360 * symfile-mem.c (symbol_file_add_from_memory): Add size parameter.
4361 Pass to bfd_elf_bfd_from_remote_memory. Adjust all callers.
4362 (struct symbol_file_add_from_memory_args): Add size field.
4363 (find_vdso_size): New function.
4364 (add_vsyscall_page): Attempt to find vdso size.
4366 2014-04-01 Doug Evans <dje@google.com>
4368 * dwarf2read.c (read_cutu_die_from_dwo): Improve comment.
4370 2014-04-01 Tristan Gingold <gingold@adacore.com>
4372 * darwin-nat.c (darwin_encode_reply): Add prototype.
4373 (darwin_decode_exception_message): Reply to unknown inferiors.
4374 (darwin_decode_message): Handle message by id. Ignore message
4375 to unknown inferior.
4376 (darwin_wait): Discard unknown messages, add debug trace.
4378 2014-03-31 Doug Evans <dje@google.com>
4380 * dwarf2read.c (read_cutu_die_from_dwo): Delete unused local
4383 2014-03-31 Doug Evans <dje@google.com>
4385 New option "set print symbol-loading".
4387 * solib.c (solib_read_symbols): Only print symbol loading messages
4389 (solib_add): If symbol loading is in "brief" mode, notify user
4390 symbols are being loaded.
4391 (reload_shared_libraries_1): Ditto.
4392 * symfile.c (print_symbol_loading_off): New static global.
4393 (print_symbol_loading_brief): New static global.
4394 (print_symbol_loading_full): New static global.
4395 (print_symbol_loading_enums): New static global.
4396 (print_symbol_loading): New static global.
4397 (print_symbol_loading_p): New function.
4398 (symbol_file_add_with_addrs): Only print symbol loading messages
4400 (_initialize_symfile): Register "print symbol-loading" set/show
4402 * symfile.h (print_symbol_loading_p): Declare.
4404 2014-03-30 Doug Evans <xdje42@gmail.com>
4406 * infrun.c (set_last_target_status): New function.
4407 (handle_inferior_event): Call it.
4409 2014-03-30 Doug Evans <xdje42@gmail.com>
4411 * inferior.h (enum stop_kind): Improve comment.
4413 2014-03-28 Joel Brobecker <brobecker@adacore.com>
4415 * varobj.c (varobj_value_has_mutated): If NEW_VALUE is
4416 a reference, strip the reference layer before calling
4417 the lang_ops value_has_mutated callback.
4419 2014-03-27 Sergio Durigan Junior <sergiodj@redhat.com>
4421 Remove some globals from our parser.
4422 * language.c (unk_lang_parser): Add "struct parser_state"
4424 * language.h (struct language_defn) <la_parser>: Likewise.
4425 * parse.c (expout, expout_size, expout_ptr): Remove variables.
4426 (initialize_expout): Add "struct parser_state" argument.
4427 Rewrite function to use the parser state.
4428 (reallocate_expout, write_exp_elt, write_exp_elt_opcode,
4429 write_exp_elt_sym, write_exp_elt_block, write_exp_elt_objfile,
4430 write_exp_elt_longcst, write_exp_elt_dblcst,
4431 write_exp_elt_decfloatcst, write_exp_elt_type,
4432 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4433 write_exp_bitstring, write_exp_msymbol, mark_struct_expression,
4434 write_dollar_variable): Likewise.
4435 (parse_exp_in_context_1): Use parser state.
4436 (insert_type_address_space): Add "struct parser_state" argument.
4438 (increase_expout_size): New function.
4439 * parser-defs.h: Forward declare "struct language_defn" and
4440 "struct parser_state".
4441 (expout, expout_size, expout_ptr): Remove extern declarations.
4442 (parse_gdbarch, parse_language): Rewrite macro declarations to
4443 accept the parser state.
4444 (struct parser_state): New struct.
4445 (initialize_expout, reallocate_expout, write_exp_elt_opcode,
4446 write_exp_elt_sym, write_exp_elt_longcst, write_exp_elt_dblcst,
4447 write_exp_elt_decfloatcst, write_exp_elt_type,
4448 write_exp_elt_intern, write_exp_string, write_exp_string_vector,
4449 write_exp_bitstring, write_exp_elt_block, write_exp_elt_objfile,
4450 write_exp_msymbol, write_dollar_variable,
4451 mark_struct_expression, insert_type_address_space): Add "struct
4452 parser_state" argument.
4453 (increase_expout_size): New function.
4454 * utils.c (do_clear_parser_state): New function.
4455 (make_cleanup_clear_parser_state): Likewise.
4456 * utils.h (make_cleanup_clear_parser_state): New function
4458 * aarch64-linux-tdep.c (aarch64_stap_parse_special_token):
4459 Update calls to write_exp* in order to pass the parser state.
4460 * arm-linux-tdep.c (arm_stap_parse_special_token): Likewise.
4461 * i386-tdep.c (i386_stap_parse_special_token_triplet): Likewise.
4462 (i386_stap_parse_special_token_three_arg_disp): Likewise.
4463 * ppc-linux-tdep.c (ppc_stap_parse_special_token): Likewise.
4464 * stap-probe.c (stap_parse_register_operand): Likewise.
4465 (stap_parse_single_operand): Likewise.
4466 (stap_parse_argument_1): Likewise.
4467 (stap_parse_argument): Use parser state.
4468 * stap-probe.h: Include "parser-defs.h".
4469 (struct stap_parse_info) <pstate>: New field.
4470 * c-exp.y (parse_type): Rewrite to use parser state.
4471 (yyparse): Redefine to c_parse_internal.
4472 (pstate): New global variable.
4473 (parse_number): Add "struct parser_state" argument.
4474 (write_destructor_name): Likewise.
4475 (type_exp): Update calls to write_exp* and similars in order to
4477 (exp1, exp, variable, qualified_name, space_identifier,
4478 typename, typebase): Likewise.
4479 (write_destructor_name, parse_number, lex_one_token,
4480 classify_name, classify_inner_name, c_parse): Add "struct
4481 parser_state" argument. Update function to use parser state.
4482 * c-lang.h: Forward declare "struct parser_state".
4483 (c_parse): Add "struct parser_state" argument.
4484 * ada-exp.y (parse_type): Rewrite macro to use parser state.
4485 (yyparse): Redefine macro to ada_parse_internal.
4486 (pstate): New variable.
4487 (write_int, write_object_renaming, write_var_or_type,
4488 write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
4489 type_int, type_long, type_long_long, type_float, type_double,
4490 type_long_double, type_char, type_boolean, type_system_address):
4491 Add "struct parser_state" argument.
4492 (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
4493 or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
4494 var_or_type, aggregate, aggregate_component_list,
4495 positional_list, others, component_group,
4496 component_associations): Update calls to write_exp* and similar
4497 functions in order to use parser state.
4498 (ada_parse, write_var_from_sym, write_int,
4499 write_exp_op_with_string, write_object_renaming,
4500 find_primitive_type, write_selectors, write_ambiguous_var,
4501 write_var_or_type, write_name_assoc, type_int, type_long,
4502 type_long_long, type_float, type_double, type_long_double,
4503 type_char, type_boolean, type_system_address): Add "struct
4504 parser_state" argument. Adjust function to use parser state.
4505 * ada-lang.c (parse): Likewise.
4506 * ada-lang.h: Forward declare "struct parser_state".
4507 (ada_parse): Add "struct parser_state" argument.
4508 * ada-lex.l (processInt, processReal): Likewise. Adjust all
4509 calls to both functions.
4510 * f-exp.y (parse_type, parse_f_type): Rewrite macros to use
4512 (yyparse): Redefine macro to f_parse_internal.
4513 (pstate): New variable.
4514 (parse_number): Add "struct parser_state" argument.
4515 (type_exp, exp, subrange, typebase): Update calls to write_exp*
4516 and similars in order to use parser state.
4517 (parse_number): Adjust code to use parser state.
4519 (f_parse): New function.
4520 * f-lang.h: Forward declare "struct parser_state".
4521 (f_parse): Add "struct parser_state" argument.
4522 * jv-exp.y (parse_type, parse_java_type): Rewrite macros to use
4524 (yyparse): Redefine macro for java_parse_internal.
4525 (pstate): New variable.
4526 (push_expression_name, push_expression_name, insert_exp): Add
4527 "struct parser_state" argument.
4528 (type_exp, StringLiteral, Literal, PrimitiveType, IntegralType,
4529 FloatingPointType, exp1, PrimaryNoNewArray, FieldAccess,
4530 FuncStart, MethodInvocation, ArrayAccess, PostfixExpression,
4531 PostIncrementExpression, PostDecrementExpression,
4532 UnaryExpression, PreIncrementExpression, PreDecrementExpression,
4533 UnaryExpressionNotPlusMinus, CastExpression,
4534 MultiplicativeExpression, AdditiveExpression, ShiftExpression,
4535 RelationalExpression, EqualityExpression, AndExpression,
4536 ExclusiveOrExpression, InclusiveOrExpression,
4537 ConditionalAndExpression, ConditionalOrExpression,
4538 ConditionalExpression, Assignment, LeftHandSide): Update
4539 calls to write_exp* and similars in order to use parser state.
4540 (parse_number): Ajust code to use parser state.
4542 (java_parse): New function.
4543 (push_variable): Add "struct parser_state" argument. Adjust
4544 code to user parser state.
4545 (push_fieldnames, push_qualified_expression_name,
4546 push_expression_name, insert_exp): Likewise.
4547 * jv-lang.h: Forward declare "struct parser_state".
4548 (java_parse): Add "struct parser_state" argument.
4549 * m2-exp.y (parse_type, parse_m2_type): Rewrite macros to use
4551 (yyparse): Redefine macro to m2_parse_internal.
4552 (pstate): New variable.
4553 (type_exp, exp, fblock, variable, type): Update calls to
4554 write_exp* and similars to use parser state.
4556 (m2_parse): New function.
4557 * m2-lang.h: Forward declare "struct parser_state".
4558 (m2_parse): Add "struct parser_state" argument.
4559 * objc-lang.c (end_msglist): Add "struct parser_state" argument.
4560 * objc-lang.h: Forward declare "struct parser_state".
4561 (end_msglist): Add "struct parser_state" argument.
4562 * p-exp.y (parse_type): Rewrite macro to use parser state.
4563 (yyparse): Redefine macro to pascal_parse_internal.
4564 (pstate): New variable.
4565 (parse_number): Add "struct parser_state" argument.
4566 (type_exp, exp1, exp, qualified_name, variable): Update calls to
4567 write_exp* and similars in order to use parser state.
4568 (parse_number, yylex): Adjust code to use parser state.
4569 (pascal_parse): New function.
4570 * p-lang.h: Forward declare "struct parser_state".
4571 (pascal_parse): Add "struct parser_state" argument.
4572 * go-exp.y (parse_type): Rewrite macro to use parser state.
4573 (yyparse): Redefine macro to go_parse_internal.
4574 (pstate): New variable.
4575 (parse_number): Add "struct parser_state" argument.
4576 (type_exp, exp1, exp, variable, type): Update calls to
4577 write_exp* and similars in order to use parser state.
4578 (parse_number, lex_one_token, classify_name, yylex): Adjust code
4579 to use parser state.
4580 (go_parse): Likewise.
4581 * go-lang.h: Forward declare "struct parser_state".
4582 (go_parse): Add "struct parser_state" argument.
4584 2014-03-27 Doug Evans <dje@google.com>
4586 * dwarf2read.c (read_str_index): Delete arg cu. All callers updated.
4588 2014-03-27 Doug Evans <dje@google.com>
4590 * dwarf2read.c (init_cutu_and_read_dies_no_follow): Fix comments.
4591 Remove argument abbrev_section. All callers updated.
4593 2014-03-27 Doug Evans <dje@google.com>
4595 * dwarf2read.c (struct dwarf2_cu): Improve comments for members
4596 addr_base, ranges_base.
4598 2014-03-26 Keith Seitz <keiths@redhat.com>
4600 * ada-tasks.c (get_tcb_types_info): Search STRUCT_DOMAIN for
4601 types, not VAR_DOMAIN.
4603 2014-03-25 Sandra Loosemore <sandra@codesourcery.com>
4605 * features/nios2-cpu.xml: Correct types of "gp", "fp", "ea", and
4607 * features/nios2-linux.c: Regenerated.
4608 * features/nios2.c: Regenerated.
4610 2014-03-25 Pedro Alves <palves@redhat.com>
4612 * cli/cli-script.c (script_from_file): Force the interpreter to
4615 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4617 * avr-tdep.c (avr_scan_prologue): Accept push r1 instruction for
4618 small stack allocation.
4620 2014-03-24 Tristan Gingold <gingold@adacore.com>
4622 * darwin-nat.c (exc_server): Remove unused prototype.
4623 (darwin_dump_message): Correctly display data on x86_64.
4624 (darwin_encode_reply): Fix style.
4625 Add comments and fix indentation.
4627 2014-03-24 Pierre Langlois <pierre.langlois@embecosm.com>
4629 * MAINTAINERS (Write After Approval): Add "Pierre Langlois".
4631 2014-03-22 Doug Evans <xdje42@gmail.com>
4633 * infcmd.c: Whitespace fixes.
4634 (interrupt_command): Merge two function comments into one.
4636 2014-03-22 Doug Evans <xdje42@gmail.com>
4638 * infcmd.c (interrupt_command): Renamed from interrupt_target_command.
4641 2014-03-22 Yao Qi <yao@codesourcery.com>
4643 * remote.c (target_read_live_memory): Remove.
4644 (memory_xfer_live_readonly_partial): Rename it to
4645 remote_xfer_live_readonly_partial. Remove argument 'object'.
4646 All callers updated. Call remote_read_bytes_1
4647 instead of target_read_live_memory.
4648 * tracepoint.c (set_traceframe_number): Remove.
4649 (make_cleanup_restore_traceframe_number): Likewise .
4650 * tracepoint.h (set_traceframe_number): Remove declaration.
4651 (make_cleanup_restore_traceframe_number): Likewise.
4653 2014-03-22 Yao Qi <yao@codesourcery.com>
4655 * remote.c (remote_read_bytes): Move code on reading from the
4657 (remote_read_bytes_1): ... here. New function.
4659 2014-03-22 Yao Qi <yao@codesourcery.com>
4661 * ctf.c (ctf_xfer_partial): Check the return value of
4662 exec_read_partial_read_only, if it is not TARGET_XFER_OK,
4663 return TARGET_XFER_UNAVAILABLE.
4664 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
4665 * target.c (target_read_live_memory): Move it to remote.c.
4666 (memory_xfer_live_readonly_partial): Likewise.
4667 (memory_xfer_partial_1): Move some code to remote_read_bytes.
4668 * remote.c (target_read_live_memory): Moved from target.c.
4669 (memory_xfer_live_readonly_partial): Likewise.
4670 (remote_read_bytes): Factored out from
4671 memory_xfer_partial_1.
4673 2014-03-21 Daniel Gutson <daniel.gutson@tallertechnologies.com>
4675 * extension.c (eval_ext_lang_from_control_command): Avoid dereferencing
4678 2014-03-21 Pedro Alves <palves@redhat.com>
4680 * infrun.c (normal_stop): Extend comment.
4682 2014-03-21 Hui Zhu <hui@codesourcery.com>
4683 Pedro Alves <palves@redhat.com>
4685 * darwin-nat.c (darwin_pid_to_exec_file): Change xmalloc to
4687 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
4688 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
4689 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
4691 2014-03-20 Maciej W. Rozycki <macro@codesourcery.com>
4693 * mi/mi-interp.c (mi_memory_changed): Avoid using the ISO C99
4694 `z' formatted output modifier.
4696 2014-03-20 Tom Tromey <tromey@redhat.com>
4697 Sergio Durigan Junior <sergiodj@redhat.com>
4699 * probe.c (parse_probes): Turn assert into an ordinary error.
4700 * break-catch-throw.c (re_set_exception_catchpoint): Ignore
4701 exceptions when parsing probes. Rearrange the code for clarity.
4703 2014-03-20 Tom Tromey <tromey@redhat.com>
4706 * top.c (execute_command): Only dispatch events if the command
4709 2014-03-20 Tom Tromey <tromey@redhat.com>
4712 * infcall.c: Include event-top.h.
4713 (run_inferior_call): Call async_disable_stdin if needed.
4715 2014-03-20 Pedro Alves <palves@redhat.com>
4717 * infrun.c (prepare_to_proceed): Delete.
4718 (thread_still_needs_step_over): New function.
4719 (find_thread_needs_step_over): New function.
4720 (proceed): If the current thread needs a step-over, set its
4721 steping_over_breakpoint flag. Adjust to use
4722 find_thread_needs_step_over instead of prepare_to_proceed.
4723 (process_event_stop_test): For BPSTAT_WHAT_STOP_NOISY and
4724 BPSTAT_WHAT_STOP_SILENT, assume the thread stopped for a
4726 (switch_back_to_stepped_thread): Step over breakpoints of all
4727 threads not the stepping thread, before switching back to the
4730 2014-03-20 Pedro Alves <palves@redhat.com>
4732 * breakpoint.c (single_step_breakpoint_inserted_here_p): Make
4734 * breakpoint.h (single_step_breakpoint_inserted_here_p): Declare.
4735 * infrun.c (saved_singlestep_ptid)
4736 (stepping_past_singlestep_breakpoint): Delete.
4737 (resume): Remove stepping_past_singlestep_breakpoint handling.
4738 (proceed): Store the prev_pc of the stepping thread too.
4739 (init_wait_for_inferior): Adjust. Clear singlestep_ptid and
4741 (enum infwait_states): Delete infwait_thread_hop_state.
4742 (struct execution_control_state) <hit_singlestep_breakpoint>: New
4744 (handle_inferior_event): Adjust.
4745 (handle_signal_stop): Delete stepping_past_singlestep_breakpoint
4746 handling and the thread-hop code. Before removing single-step
4747 breakpoints, check whether the thread hit a single-step breakpoint
4748 of another thread. If it did, the trap is not a random signal.
4749 (switch_back_to_stepped_thread): If the event thread hit a
4750 single-step breakpoint, unblock it before switching to the
4751 stepping thread. Handle the case of the stepped thread having
4753 (keep_going): Handle the case of the current thread moving past a
4754 single-step breakpoint.
4756 2014-03-20 Pedro Alves <palves@redhat.com>
4759 * breakpoint.c (should_be_inserted): Don't insert breakpoints that
4760 are being stepped over.
4761 (breakpoint_address_match): Make extern.
4762 * breakpoint.h (breakpoint_address_match): New declaration.
4763 * inferior.h (stepping_past_instruction_at): New declaration.
4764 * infrun.c (struct step_over_info): New type.
4765 (step_over_info): New global.
4766 (set_step_over_info, clear_step_over_info)
4767 (stepping_past_instruction_at): New functions.
4768 (handle_inferior_event): Clear the step-over info when
4769 trap_expected is cleared.
4770 (resume): Remove now stale comment.
4771 (clear_proceed_status): Clear step-over info.
4772 (proceed): Adjust step-over handling to set or clear the step-over
4773 info instead of removing all breakpoints.
4774 (handle_signal_stop): When setting up a thread-hop, don't remove
4776 (stop_stepping): Clear step-over info.
4777 (keep_going): Adjust step-over handling to set or clear step-over
4778 info and then always inserting breakpoints, instead of removing
4779 all breakpoints when stepping over one.
4781 2014-03-20 Pedro Alves <palves@redhat.com>
4783 * infrun.c (previous_inferior_ptid): Adjust comment.
4784 (deferred_step_ptid): Delete.
4785 (infrun_thread_ptid_changed, prepare_to_proceed)
4786 (init_wait_for_inferior): Adjust.
4787 (handle_signal_stop): Delete deferred_step_ptid handling.
4789 2014-03-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4792 * defs.h (sync_quit_force_run): New declaration.
4793 (QUIT): Check also SYNC_QUIT_FORCE_RUN.
4794 * event-top.c (async_sigterm_handler): New declaration.
4795 (async_sigterm_token): New variable.
4796 (async_init_signals): Create also async_sigterm_token.
4797 (async_sigterm_handler): New function.
4798 (sync_quit_force_run): New variable.
4799 (handle_sigterm): Replace quit_force call by other calls.
4800 * utils.c (quit): Call quit_force if SYNC_QUIT_FORCE_RUN.
4802 2014-03-18 Maciej W. Rozycki <macro@codesourcery.com>
4804 * rs6000-tdep.c (rs6000_frame_cache): Correct little-endian GPR
4805 offset into SPE pseudo registers.
4807 2014-03-18 Pedro Alves <palves@redhat.com>
4810 * inferior.h (print_stop_event): Declare.
4811 * infrun.c (print_stop_event): New, factored out from ...
4812 (normal_stop): ... this.
4813 * mi/mi-interp.c (mi_on_normal_stop): Use print_stop_event instead
4814 of bpstat_print/print_stack_frame.
4816 2014-03-17 Tom Tromey <tromey@redhat.com>
4818 * ui-out.c (clear_table, ui_out_new): Clear uiout->table.id.
4820 2014-03-17 Pierre-Marie de Rodat <derodat@adacore.com>
4822 * ada-lang.c (decode_constrained_packed_array): Perform a
4823 minimal coercion for reference with coerce_ref instead of
4826 2014-03-17 Tristan Gingold <gingold@adacore.com>
4828 * solib-darwin.c (DYLD_VERSION_MAX): Increase value.
4829 (darwin_solib_create_inferior_hook): Emit a warning if version
4832 2014-03-16 Ulrich Weigand <uweigand@de.ibm.com>
4834 * python/py-value.c (get_field_flag): Cast flag_name argument to
4835 PyObject_GetAttrString to support Python 2.4.
4837 2014-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4839 * MAINTAINERS (The Official FSF-appointed GDB Maintainers)
4840 (Global Maintainers): Remove Jan Kratochvil.
4842 2014-03-14 Pedro Alves <palves@redhat.com>
4844 * inferior.h (terminal_ours_for_output): Rename to ...
4845 (child_terminal_ours_for_output): ... this.
4846 (terminal_save_ours): Rename to ...
4847 (child_terminal_save_ours): ... this.
4848 (terminal_ours): Rename to ...
4849 (child_terminal_ours): ... this.
4850 (terminal_inferior): Rename to ...
4851 (child_terminal_inferior): ... this.
4852 (terminal_init_inferior): Rename to ...
4853 (child_terminal_init_inferior): ... this.
4854 (terminal_init_inferior_with_pgrp): Rename to ...
4855 (child_terminal_init_inferior_with_pgrp): ... this.
4856 * inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
4857 (child_terminal_init_with_pgrp): ... this.
4858 (terminal_save_ours): Rename to ...
4859 (child_terminal_save_ours): ... this.
4860 (terminal_init_inferior): Rename to ...
4861 (child_terminal_init): ... this. Adjust.
4862 (terminal_inferior): Rename to ...
4863 (child_terminal_inferior): ... this.
4864 (terminal_ours_for_output): Rename to ...
4865 (child_terminal_ours_for_output): ... this. Adjust.
4866 (terminal_ours): Rename to ...
4867 (child_terminal_ours): ... this.
4868 (terminal_ours_1): Rename to ...
4869 (child_terminal_ours_1): ... this. Adjust.
4870 * linux-nat.c (linux_nat_terminal_inferior): Adjust.
4871 * windows-nat.c (do_initial_windows_stuff): Adjust.
4872 * gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
4873 (gnu_terminal_init): ... this. Adjust.
4874 (gnu_target): Adjust.
4875 * inf-child.c (inf_child_target): Adjust.
4877 2014-03-13 Doug Evans <xdje42@gmail.com>
4880 * guile/scm-type.c (tyscm_copy_type_recursive): Move type to its
4883 2014-03-13 Doug Evans <xdje42@gmail.com>
4885 * value.c (record_latest_value): Call release_value_or_incref
4886 instead of release_value.
4888 2014-03-13 Pedro Alves <palves@redhat.com>
4890 * procfs.c (procfs_target): Don't override to_shortname,
4891 to_longname or to_doc.
4893 2014-03-13 Pedro Alves <palves@redhat.com>
4895 * inf-child.c (inf_child_open, inf_child_target): Don't mention
4896 Unix in user visible strings.
4898 2014-03-12 Stan Shebs <stan@codesourcery.com>
4900 * gdbtypes.h: Annotate comments for Doxygen, add a page
4901 block comment with some general info.
4903 2014-03-12 Pedro Alves <palves@redhat.com>
4905 * infcmd.c (prepare_execution_command): New function, factored out
4906 from several execution commands.
4907 (run_command_1, continue_command, step_1, jump_command)
4908 (signal_command, until_command, advance_command, finish_command)
4909 (attach_command): Use prepare_execution_command.
4911 2014-03-12 Omair Javaid <omair.javaid@linaro.org>
4913 * arm-linux-nat.c (arm_linux_get_hwbp_cap): Updated.
4916 (struct arm_linux_thread_points): Removed.
4917 (struct arm_linux_process_info): New.
4918 (DEF_VEC_P (arm_linux_thread_points_p)): Removed.
4919 (VEC(arm_linux_thread_points_p) *arm_threads): Removed.
4920 (arm_linux_find_breakpoints_by_tid): Removed.
4921 (struct arch_lwp_info): New.
4922 (arm_linux_find_process_pid): New functions.
4923 (arm_linux_add_process): New functions.
4924 (arm_linux_process_info_get): New functions.
4925 (arm_linux_forget_process): New function.
4926 (arm_linux_get_debug_reg_state): New function.
4927 (struct update_registers_data): New.
4928 (update_registers_callback): New function.
4929 (arm_linux_insert_hw_breakpoint1): Updated.
4930 (arm_linux_remove_hw_breakpoint1): Updated.
4931 (arm_linux_insert_hw_breakpoint): Updated.
4932 (arm_linux_remove_hw_breakpoint): Updated.
4933 (arm_linux_insert_watchpoint): Updated.
4934 (arm_linux_remove_watchpoint): Updated.
4935 (arm_linux_new_thread): Updated.
4936 (arm_linux_prepare_to_resume): New function.
4937 (arm_linux_new_fork): New function.
4938 (_initialize_arm_linux_nat): Updated.
4940 2014-03-12 Pedro Alves <palves@redhat.com>
4942 * Makefile.in (TARGET_FLAGS_TO_PASS): Add TESTS.
4944 2014-03-12 Tom Tromey <tromey@redhat.com>
4946 * inf-child.c (return_zero): New function.
4947 (inf_child_target): Set to_can_async_p, to_supports_non_stop.
4948 * aix-thread.c (aix_thread_inferior_created): New function.
4949 (aix_thread_attach): Remove.
4950 (init_aix_thread_ops): Don't set to_attach.
4951 (_initialize_aix_thread): Register inferior_created observer.
4952 * corelow.c (init_core_ops): Don't set to_attach or
4954 * exec.c (init_exec_ops): Don't set to_attach or
4956 * infcmd.c (run_command_1): Use find_run_target. Make direct
4958 (attach_command): Use find_attach_target. Make direct target
4960 * record-btrace.c (init_record_btrace_ops): Don't set
4962 * record-full.c (record_full_can_async_p, record_full_is_async_p):
4964 (init_record_full_ops, init_record_full_core_ops): Update. Don't
4965 set to_create_inferior.
4966 * target.c (complete_target_initialization): Add assertion.
4967 (target_create_inferior): Remove.
4968 (find_default_attach, find_default_create_inferior): Remove.
4969 (find_attach_target, find_run_target): New functions.
4970 (find_default_is_async_p, find_default_can_async_p)
4971 (target_supports_non_stop, target_attach): Remove.
4972 (init_dummy_target): Don't set to_create_inferior or
4973 to_supports_non_stop.
4974 * target.h (struct target_ops) <to_attach>: Add comment. Remove
4975 TARGET_DEFAULT_FUNC.
4976 <to_create_inferior>: Add comment.
4977 <to_can_async_p, to_is_async_p, to_supports_non_stop>: Use
4978 TARGET_DEFAULT_RETURN.
4979 <to_can_async_p, to_supports_non_stop, to_can_run>: Add comments.
4980 (find_attach_target, find_run_target): Declare.
4981 (target_create_inferior): Remove.
4982 (target_has_execution_1): Update comment.
4983 (target_supports_non_stop): Remove.
4984 * target-delegates.c: Rebuild.
4986 2014-03-12 Pedro Alves <palves@redhat.com>
4988 * inf-child.h: Update comment to not mention Unix.
4990 2014-03-12 Pedro Alves <palves@redhat.com>
4992 * inf-child.c: Update top comment to not mention Unix. Add
4993 generic comment describing how this target is meant to be used.
4994 (inf_child_post_attach, inf_child_post_startup_inferior)
4995 (inf_child_follow_fork, inf_child_pid_to_exec_file): Don't mention
4998 2014-03-12 Pedro Alves <palves@redhat.com>
5000 * nto-procfs.c: Include inf-child.h.
5001 (procfs_ops): Delete global.
5002 (procfs_can_run): Delete method.
5003 (procfs_detach, procfs_mourn_inferior): Unpush the passed in
5004 target pointer instead of referencing procfs_ops.
5005 (procfs_prepare_to_store): Delete.
5006 (init_procfs_ops): Delete function.
5007 (procfs_target): New function, based on init_procfs_ops, but
5008 inherit inf_child_target.
5009 (_initialize_procfs): Use procfs_target.
5011 2014-03-12 Pedro Alves <palves@redhat.com>
5013 * windows-nat.c: Include inf-child.h.
5014 (windows_ops): Delete global.
5015 (windows_open, windows_prepare_to_store, windows_can_run): Delete
5017 (init_windows_ops): Delete function.
5018 (windows_target): New function, based on init_windows_ops, but
5019 inherit inf_child_target.
5020 (_initialize_windows_nat): Use windows_target. Install x86
5021 specific target methods here.
5023 2014-03-10 Doug Evans <xdje42@gmail.com>
5025 * guile/guile.c (call_initialize_gdb_module): New function.
5026 (initialize_guile): Replace call to scm_init_guile with call to
5029 2014-03-10 Joel Brobecker <brobecker@adacore.com>
5031 * ada-lang.c (ada_evaluate_subexp): Add missing space before '('
5032 in call to TYPE_CODE macro.
5034 2014-03-10 Jerome Guitton <guitton@adacore.com>
5036 * ada-lang.c (ada_evaluate_subexp) <UNOP_IND, STRUCTOP_STRUCT>:
5037 Resolve tagged types to full view.
5039 2014-03-10 Hui Zhu <hui@codesourcery.com>
5041 * target.h (target_insert_breakpoint): Remove "hardware" from its
5044 2014-03-07 Doug Evans <dje@google.com>
5046 * dwarf2read.c (read_str_index): Rename local dwo_name to objf_name.
5048 2014-03-07 Doug Evans <dje@google.com>
5050 * dwarf2read.c (read_cutu_die_from_dwo): Fix function comment.
5051 Remove unused local comp_dir_attr. Assert exactly one of
5052 stub_comp_unit_die, stub_comp_dir is non-NULL.
5054 2014-03-07 Joel Brobecker <brobecker@adacore.com>
5056 * target.h (complete_target_initialization, add_target):
5059 2014-03-07 Pedro Alves <palves@redhat.com>
5061 * go32-nat.c: Include inf-child.h.
5062 (go32_ops): Delete global.
5063 (go32_close, go32_detach, go32_prepare_to_store, go32_can_run):
5065 (go32_create_inferior): Push the passed in target pointer instead
5066 of referencing go32_ops.
5067 (init_go32_ops): Delete function. Moved parts to _initialize_go32_nat.
5068 (go32_target): New function, based on init_go32_ops, but inherit
5070 (_initialize_go32_nat): Use go32_target. Move parts of
5073 2014-03-06 Joel Brobecker <brobecker@adacore.com>
5075 * sol-thread.c: #include "symtab.h", "minsym.h" and "objfiles.h".
5076 (ps_pglobal_lookup): Use BMSYMBOL_VALUE_ADDRESS instead of
5077 SYMBOL_VALUE_ADDRESS.
5078 (info_cb): MSYMBOL_PRINT_NAME instead of SYMBOL_PRINT_NAME.
5080 2014-03-06 Yao Qi <yao@codesourcery.com>
5082 * breakpoint.c (get_tracepoint_by_number): Remove argument
5083 optional_p. All callers updated. Adjust comments. Update
5085 * breakpoint.h (get_tracepoint_by_number): Update declaration.
5087 2014-03-06 Yao Qi <yao@codesourcery.com>
5089 * reverse.c (goto_bookmark_command): Add local 'p'. Emit error
5090 early if get_number returns zero. Use 'p' instead of 'args'.
5092 2014-03-06 Yao Qi <yao@codesourcery.com>
5094 * cli/cli-utils.c (get_number_trailer): Add '\n' at the end of
5097 2014-03-06 Yao Qi <yao@codesourcery.com>
5099 PR breakpoints/16508
5100 * tracepoint.c (check_trace_running): New function.
5101 (trace_find_command): Move code to check_trace_running and
5102 call check_trace_running.
5103 (trace_find_pc_command): Likewise.
5104 (trace_find_tracepoint_command): Likewise.
5105 (trace_find_line_command): Likewise.
5106 (trace_find_range_command): Likewise.
5107 * tracepoint.h (check_trace_running): Likewise.
5108 * mi/mi-main.c (mi_cmd_trace_find): Call check_trace_running.
5110 2014-03-06 Yao Qi <yao@codesourcery.com>
5112 * target.h (struct target_ops) <to_traceframe_info>: Use
5113 TARGET_DEFAULT_NORETURN (tcomplain ()).
5114 * target-delegates.c: Regenerated.
5116 2014-03-05 Pedro Alves <palves@redhat.com>
5119 * dcache.c (dcache_poke_byte): Constify ptr parameter. Return
5120 void. Update comment.
5121 (dcache_xfer_memory): Delete.
5122 (dcache_read_memory_partial): New, based on the read bits of
5124 (dcache_update): Add status parameter. Use ULONGEST for len, and
5125 adjust. Discard cache lines if the reason for the update was
5127 * dcache.h (dcache_xfer_memory): Delete declaration.
5128 (dcache_read_memory_partial): New declaration.
5129 (dcache_update): Update prototype.
5130 * target.c (raw_memory_xfer_partial): Update the dcache here.
5131 (memory_xfer_partial_1): Don't handle dcache writes here.
5133 2014-03-05 Mike Frysinger <vapier@gentoo.org>
5135 * remote-sim.c (gdbsim_load): Add const to prog.
5137 2014-03-03 Tom Tromey <tromey@redhat.com>
5139 * elfread.c (probe_key): Change to bfd_data.
5140 (elf_get_probes, probe_key_free, _initialize_elfread): Probes are
5141 now per-BFD, not per-objfile.
5142 * stap-probe.c (stap_probe_destroy): Update comment.
5143 (handle_stap_probe): Allocate on the per-BFD obstack.
5145 2014-03-03 Tom Tromey <tromey@redhat.com>
5147 * break-catch-throw.c (fetch_probe_arguments): Use bound probes.
5148 * breakpoint.c (create_longjmp_master_breakpoint): Use
5150 (add_location_to_breakpoint, bkpt_probe_insert_location)
5151 (bkpt_probe_remove_location): Update.
5152 * breakpoint.h (struct bp_location) <probe>: Now a bound_probe.
5153 * elfread.c (elf_symfile_relocate_probe): Remove.
5154 (elf_probe_fns): Update.
5155 (insert_exception_resume_breakpoint): Change type of "probe"
5156 parameter to bound_probe.
5157 (check_exception_resume): Update.
5158 * objfiles.c (objfile_relocate1): Don't relocate probes.
5159 * probe.c (bound_probe_s): New typedef.
5160 (parse_probes): Use get_probe_address. Set sal's objfile.
5161 (find_probe_by_pc): Return a bound_probe.
5162 (collect_probes): Return a VEC(bound_probe_s).
5163 (compare_probes): Update.
5164 (gen_ui_out_table_header_info): Change type of "probes"
5166 (info_probes_for_ops): Update.
5167 (get_probe_address): New function.
5168 (probe_safe_evaluate_at_pc): Update.
5169 * probe.h (struct probe_ops) <get_probe_address>: New field.
5170 <set_semaphore, clear_semaphore>: Add objfile parameter.
5171 (struct probe) <objfile>: Remove field.
5173 <address>: Update comment.
5174 (struct bound_probe): New.
5175 (find_probe_by_pc): Return a bound_probe.
5176 (get_probe_address): Declare.
5177 * solib-svr4.c (struct probe_and_action) <address>: New field.
5178 (hash_probe_and_action, equal_probe_and_action): Update.
5179 (register_solib_event_probe): Add address parameter.
5180 (solib_event_probe_at): Update.
5181 (svr4_create_probe_breakpoints): Add objfile parameter. Use
5183 * stap-probe.c (struct stap_probe) <sem_addr>: Update comment.
5184 (stap_get_probe_address): New function.
5185 (stap_can_evaluate_probe_arguments, compute_probe_arg)
5186 (compile_probe_arg): Update.
5187 (stap_set_semaphore, stap_clear_semaphore): Compute semaphore's
5189 (handle_stap_probe): Don't relocate the probe.
5190 (stap_relocate): Remove.
5191 (stap_gen_info_probes_table_values): Update.
5192 (stap_probe_ops): Remove stap_relocate.
5193 * symfile-debug.c (debug_sym_relocate_probe): Remove.
5194 (debug_sym_probe_fns): Update.
5195 * symfile.h (struct sym_probe_fns) <sym_relocate_probe>: Remove.
5196 * symtab.c (init_sal): Use memset.
5197 * symtab.h (struct symtab_and_line) <objfile>: New field.
5198 * tracepoint.c (start_tracing, stop_tracing): Update.
5200 2014-03-03 Tom Tromey <tromey@redhat.com>
5202 * probe.h (parse_probes, find_probe_by_pc)
5203 (find_probes_in_objfile): Fix comments.
5205 2014-03-02 Doug Evans <xdje42@gmail.com>
5207 * infrun.c (handle_signal_stop): Replace test for
5208 TARGET_WAITKIND_STOPPED with an assert.
5210 2014-03-02 Doug Evans <xdje42@gmail.com>
5212 * guile/scm-objfile.c (ofscm_mark_objfile_smob): Fix typo in comment.
5214 2014-03-02 Doug Evans <xdje42@gmail.com>
5216 * guile/lib/gdb/printing.scm (append-pretty-printer!): Fix thinko.
5218 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5220 * obsd-nat.c: Include "gdb_wait.h" instead of <sys/wait.h>.
5222 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5224 * i386obsd-nat.c: Include "obsd-nat.h".
5225 (_initialize_i386obsd_nat): Call obsd_add_target instead of
5227 * config/i386/obsd.mh (NATDEPFILES): Add obsd-nat.o.
5229 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5231 * i386obsd-nat.c (i386obsd_supply_pcb): Cast 'sf' to 'gdb_byte *'.
5233 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5235 * mips64obsd-nat.c: Include "obsd-nath".
5236 (_initialize_mips64obsd_nat): Call obsd_add_target instead of
5238 * config/mips/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5240 2014-03-01 Mark Kettenis <kettenis@gnu.org>
5242 * amd64obsd-nat.c: Include "obsd-nat,h.
5243 (_initialize_amd64obsd_nat): Call obsd_add_target instead of
5245 * config/i386/obsd64.mh (NATDEPFILES): Add obsd-nat.o.
5247 2014-02-28 Siva Chandra Reddy <sivachandra@google.com>
5249 * valops.c (find_oload_champ): Remove unneccesary argument METHOD.
5250 (find_overload_match): Update call to find_oload_champ.
5251 (find_oload_champ_namespace_loop): Likewise
5253 2014-02-28 Mark Kettenis <kettenis@gnu.org>
5255 * Makefile.in (ALLDEPFILES): Add sparc64obsd-nat.c.
5257 * configure.host (sparc64-*-openbsd*): Set gdb_host to obsd64.
5258 * config/sparc/obsd64.mh: New file.
5259 * sparc64obsd-nat.c: New file.
5261 * obsd-nat.h: New file.
5262 * obsd-nat.c: New file.
5263 * Makefile.in (HFILES_NO_SRCDIR): Add obsd-nat.h.
5264 (ALLDEPFILES): Add obsd-nat.c.
5266 2014-02-28 Tom Tromey <tromey@redhat.com>
5268 * cli-out.c (cli_ui_out_impl): Now const. Remove comment.
5269 * cli-out.h (cli_ui_out_impl): Now const.
5270 * mi/mi-out.c (mi_ui_out_impl): Now const. Remove comment.
5271 * ui-out.c (struct ui_out) <impl>: Now const.
5272 (default_ui_out_impl): Now const.
5273 (ui_out_new): Make 'impl' parameter const.
5274 * ui-out.h (ui_out_new): Update.
5276 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5278 * solib-svr4.c (svr4_read_so_list): Initialize first_l_name to 0.
5280 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5282 * sparc-nat.c (sparc_xfer_wcookie): Always use process ID.
5284 2014-02-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5286 Additional PR 8882 fix.
5287 * solib-svr4.c (svr4_read_so_list): Change first to first_l_name.
5289 2014-02-27 Pedro Alves <palves@redhat.com>
5291 * nat/linux-waitpid.c (my_waitpid): Only block signals if WNOHANG
5294 2014-02-27 Pedro Alves <palves@redhat.com>
5297 * linux-nat.c (status_to_str): Moved to nat/linux-waitpid.c.
5298 * nat/linux-waitpid.c: Include string.h.
5299 (status_to_str): Moved here and made extern.
5300 * nat/linux-waitpid.h (status_to_str): New declaration.
5302 2014-02-27 Hui Zhu <hui@codesourcery.com>
5305 * infrun.c (ptid_match): Move ...
5306 * common/ptid.c (ptid_match): ... here.
5307 * inferior.h (ptid_match): Move ...
5308 * common/ptid.h (ptid_match): ... here.
5310 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5312 * mips64obsd-tdep.c (mips64obsd_init_abi): Call obsd_init_abi.
5313 * configure.tgt (mips64*-*-openbsd*): Add obsd-tdep.c to
5316 2014-02-27 Mark Kettenis <kettenis@gnu.org>
5318 * obsd-tdep.c (obsd_auxv_parse): New function.
5319 (obsd_init_abi): Set auxv_parse.
5321 * gdbarch.sh (auxv_parse): New.
5322 * gdbarch.h: Regenerated.
5323 * gdbarch.c: Regenerated.
5324 * auxv.c (target_auxv_parse): Call gdbarch_parse_auxv if provided.
5326 2014-02-26 Ludovic Courtès <ludo@gnu.org>
5328 * guile/scm-value.c (gdbscm_history_append_x): New function.
5329 (value_functions): Add it.
5331 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5333 * dwarf2read.c (attr_value_as_address): New function.
5334 (dwarf2_find_base_address, read_call_site_scope): Use
5335 attr_value_as_address in place of DW_ADDR.
5336 (dwarf2_get_pc_bounds): Use attr_value_as_address to get
5337 the low and high addresses. Slight rework of the handling
5338 of the high pc being a constant form, and limit it to
5339 DWARF verson 4 or higher.
5340 (dwarf2_record_block_ranges): Likewise.
5341 (read_partial_die): Likewise.
5342 (new_symbol_full): Use attr_value_as_address in place of DW_ADDR.
5344 2014-02-26 Tom Tromey <tromey@redhat.com>
5346 * exec.c (exec_file_attach): Hold a reference to exec_bfd.
5348 2014-02-26 Tom Tromey <tromey@redhat.com>
5350 * elfread.c (elf_read_minimal_symbols): Return early if
5351 minimal symbols have already been read. Add "ei" parameter.
5352 (elf_symfile_read): Call elf_read_minimal_symbols earlier.
5353 * minsyms.c (prim_record_minimal_symbol_full): Update.
5354 * objfiles.h (struct objstats) <n_minsyms>: Move...
5355 (struct objfile_per_bfd_storage) <n_minsyms>: ... here.
5356 * symmisc.c (print_objfile_statistics): Update.
5358 2014-02-26 Tom Tromey <tromey@redhat.com>
5360 * elfread.c (elf_read_minimal_symbols): New function, from
5362 (elf_symfile_read): Call it.
5364 2014-02-26 Tom Tromey <tromey@redhat.com>
5366 * minsyms.c (lookup_minimal_symbol, iterate_over_minimal_symbols)
5367 (lookup_minimal_symbol_text, lookup_minimal_symbol_by_pc_name)
5368 (lookup_minimal_symbol_solib_trampoline)
5369 (lookup_minimal_symbol_by_pc_section_1)
5370 (lookup_minimal_symbol_and_objfile): Update.
5371 (prim_record_minimal_symbol_full): Use the per-BFD obstack.
5372 Don't allocate a minimal symbol if minsyms have already been read.
5373 (build_minimal_symbol_hash_tables): Update.
5374 (install_minimal_symbols): Do nothing if minsyms already read.
5375 Use the per-BFD obstack.
5376 (terminate_minimal_symbol_table): Use the per-BFD obstack.
5377 * objfiles.c (allocate_objfile): Call
5378 terminate_minimal_symbol_table later.
5379 (have_minimal_symbols): Update.
5380 * objfiles.h (struct objfile_per_bfd_storage) <msymbols,
5381 minimal_symbol_count, msymbol_hash, msymbol_demangled_hash>:
5382 Move from struct objfile.
5383 <minsyms_read>: New field.
5384 (struct objfile) <msymbols, minimal_symbol_count,
5385 msymbol_hash, msymbol_demangled_hash>: Move.
5386 (ALL_OBJFILE_MSYMBOLS): Update.
5387 * symfile.c (read_symbols): Set minsyms_read.
5388 (reread_symbols): Update.
5389 * symmisc.c (dump_objfile, dump_msymbols): Update.
5391 2014-02-26 Tom Tromey <tromey@redhat.com>
5393 * minsyms.c (msymbols_sort): Remove.
5394 * minsyms.h (msymbols_sort): Remove.
5395 * objfiles.c (objfile_relocate1): Don't relocate minsyms.
5396 * symtab.h (MSYMBOL_VALUE_ADDRESS): Use objfile offsets.
5397 * elfread.c (elf_symtab_read): Don't add section offsets.
5398 * xcoffread.c (record_minimal_symbol): Don't add section offset
5399 to minimal symbol address.
5400 * somread.c (text_offset, data_offset): Remove.
5401 (som_symtab_read): Don't add section offsets to minimal symbol
5403 * coff-pe-read.c (add_pe_forwarded_sym, read_pe_exported_syms):
5404 Don't add section offsets to minimal symbols.
5405 * coffread.c (coff_symtab_read): Don't add section offsets
5406 to minimal symbol addresses.
5407 * machoread.c (macho_symtab_add_minsym): Don't add section offset
5408 to minimal symbol addresses.
5409 * mipsread.c (read_alphacoff_dynamic_symtab): Don't add
5410 section offset to minimal symbol addresses.
5411 * mdebugread.c (parse_partial_symbols): Don't add section
5412 offset to minimal symbol addresses.
5413 * dbxread.c (read_dbx_dynamic_symtab): Don't add section
5414 offset to minimal symbol addresses.
5416 2014-02-26 Tom Tromey <tromey@redhat.com>
5418 * ada-lang.c (ada_main_name): Update.
5419 (ada_add_standard_exceptions): Update.
5420 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5421 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5422 * arm-tdep.c (skip_prologue_function, arm_skip_stub): Update.
5423 * auxv.c (ld_so_xfer_auxv): Update.
5424 * avr-tdep.c (avr_scan_prologue): Update.
5425 * ax-gdb.c (gen_var_ref): Update.
5426 * blockframe.c (get_pc_function_start)
5427 (find_pc_partial_function_gnu_ifunc): Update.
5428 * breakpoint.c (create_overlay_event_breakpoint)
5429 (create_longjmp_master_breakpoint)
5430 (create_std_terminate_master_breakpoint)
5431 (create_exception_master_breakpoint): Update.
5432 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5433 * c-valprint.c (c_val_print): Update.
5434 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5435 * common/agent.c (agent_look_up_symbols): Update.
5436 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5437 * dwarf2loc.c (call_site_to_target_addr): Update.
5438 * dwarf2read.c (dw2_find_pc_sect_symtab): Update.
5439 * elfread.c (elf_gnu_ifunc_record_cache)
5440 (elf_gnu_ifunc_resolve_by_got): Update.
5441 * findvar.c (default_read_var_value): Update.
5442 * frame.c (inside_main_func): Update.
5443 * frv-tdep.c (frv_frame_this_id): Update.
5444 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5445 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5447 * hppa-hpux-tdep.c (hppa64_hpux_search_dummy_call_sequence)
5448 (hppa_hpux_find_dummy_bpaddr): Update.
5449 * hppa-tdep.c (hppa_symbol_address): Update.
5450 * infcmd.c (until_next_command): Update.
5451 * jit.c (jit_read_descriptor, jit_breakpoint_re_set_internal):
5453 * linespec.c (minsym_found, add_minsym): Update.
5454 * linux-nat.c (get_signo): Update.
5455 * linux-thread-db.c (inferior_has_bug): Update.
5456 * m32c-tdep.c (m32c_return_value)
5457 (m32c_m16c_address_to_pointer): Update.
5458 * m32r-tdep.c (m32r_frame_this_id): Update.
5459 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5460 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5461 * maint.c (maintenance_translate_address): Update.
5462 * minsyms.c (lookup_minimal_symbol_by_pc_name): Update.
5463 (frob_address): New function.
5464 (lookup_minimal_symbol_by_pc_section_1): Use raw addresses,
5465 frob_address. Rename parameter to "pc_in".
5466 (compare_minimal_symbols, compact_minimal_symbols): Use raw
5468 (find_solib_trampoline_target, minimal_symbol_upper_bound):
5470 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5471 * mips-tdep.c (mips_skip_pic_trampoline_code): Update.
5472 * objc-lang.c (find_objc_msgsend): Update.
5473 * objfiles.c (objfile_relocate1): Update.
5474 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5475 * p-valprint.c (pascal_val_print): Update.
5476 * parse.c (write_exp_msymbol): Update.
5477 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup)
5478 (ppc_elfv2_skip_entrypoint): Update.
5479 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5480 * printcmd.c (build_address_symbolic, msym_info)
5481 (address_info): Update.
5482 * proc-service.c (ps_pglobal_lookup): Update.
5483 * psymtab.c (find_pc_sect_psymtab_closer)
5484 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial):
5485 Change msymbol parameter to bound_minimal_symbol.
5486 * ravenscar-thread.c (get_running_thread_id): Update.
5487 * remote.c (remote_check_symbols): Update.
5488 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use raw
5490 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5491 * solib-dsbt.c (lm_base): Update.
5492 * solib-frv.c (lm_base, main_got): Update.
5493 * solib-irix.c (locate_base): Update.
5494 * solib-som.c (som_solib_create_inferior_hook)
5495 (link_map_start): Update.
5496 * solib-spu.c (spu_enable_break, ocl_enable_break): Update.
5497 * solib-svr4.c (elf_locate_base, enable_break): Update.
5498 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5499 (flush_ea_cache): Update.
5500 * stabsread.c (define_symbol, scan_file_globals): Update.
5501 * stack.c (find_frame_funname): Update.
5502 * symfile-debug.c (debug_qf_expand_symtabs_matching)
5503 (debug_qf_find_pc_sect_symtab): Update.
5504 * symfile.c (simple_read_overlay_table)
5505 (simple_overlay_update): Update.
5506 * symfile.h (struct quick_symbol_functions)
5507 <find_pc_sect_symtab>: Change type of msymbol to
5508 bound_minimal_symbol.
5509 * symmisc.c (dump_msymbols): Update.
5510 * symtab.c (find_pc_sect_symtab_via_partial)
5511 (find_pc_sect_psymtab, find_pc_sect_line, skip_prologue_sal)
5512 (search_symbols, print_msymbol_info): Update.
5513 * symtab.h (MSYMBOL_VALUE_RAW_ADDRESS): New macro.
5514 (MSYMBOL_VALUE_ADDRESS): Redefine.
5515 (BMSYMBOL_VALUE_ADDRESS): New macro.
5516 * tracepoint.c (scope_info): Update.
5517 * tui/tui-disasm.c (tui_find_disassembly_address)
5518 (tui_get_begin_asm_address): Update.
5519 * valops.c (find_function_in_inferior): Update.
5520 * value.c (value_static_field, value_fn_field): Update.
5522 2014-02-26 Tom Tromey <tromey@redhat.com>
5524 * ada-lang.c (ada_update_initial_language): Update.
5525 (ada_main_name, ada_has_this_exception_support): Update.
5526 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Update.
5527 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5528 * arm-tdep.c (arm_skip_stub): Update.
5529 * auxv.c (ld_so_xfer_auxv): Update.
5530 * avr-tdep.c (avr_scan_prologue): Update.
5531 * ax-gdb.c (gen_var_ref): Update.
5532 * breakpoint.c (struct breakpoint_objfile_data)
5533 <overlay_msym, longjmp_msym, terminate_msym, exception_msym>: Change
5534 type to bound_minimal_symbol.
5535 (create_overlay_event_breakpoint)
5536 (create_longjmp_master_breakpoint)
5537 (create_std_terminate_master_breakpoint)
5538 (create_exception_master_breakpoint): Update.
5539 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5540 * c-exp.y (classify_name): Update.
5541 * coffread.c (coff_symfile_read): Update.
5542 * common/agent.c (agent_look_up_symbols): Update.
5543 * d-lang.c (d_main_name): Update.
5544 * dbxread.c (find_stab_function_addr, end_psymtab): Update.
5545 * dec-thread.c (enable_dec_thread): Update.
5546 * dwarf2loc.c (call_site_to_target_addr): Update.
5547 * elfread.c (elf_gnu_ifunc_resolve_by_got): Update.
5548 * eval.c (evaluate_subexp_standard): Update.
5549 * findvar.c (struct minsym_lookup_data) <result>: Change type
5550 to bound_minimal_symbol.
5552 (minsym_lookup_iterator_cb, default_read_var_value): Update.
5553 * frame.c (inside_main_func): Update.
5554 * frv-tdep.c (frv_frame_this_id): Update.
5555 * gcore.c (call_target_sbrk): Update.
5556 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5557 * gnu-v3-abi.c (gnuv3_get_typeid, gnuv3_skip_trampoline):
5559 * go-lang.c (go_main_name): Update.
5560 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
5561 (hppa_hpux_find_import_stub_for_addr): Update.
5562 * hppa-tdep.c (hppa_extract_17, hppa_lookup_stub_minimal_symbol):
5563 Update. Change return type.
5564 * hppa-tdep.h (hppa_lookup_stub_minimal_symbol): Change return
5566 * jit.c (jit_breakpoint_re_set_internal): Update.
5567 * linux-fork.c (inferior_call_waitpid, checkpoint_command):
5569 * linux-nat.c (get_signo): Update.
5570 * linux-thread-db.c (inferior_has_bug): Update
5571 * m32c-tdep.c (m32c_return_value)
5572 (m32c_m16c_address_to_pointer): Update.
5573 * m32r-tdep.c (m32r_frame_this_id): Update.
5574 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5575 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5576 * minsyms.c (lookup_minimal_symbol_internal): Rename to
5577 lookup_minimal_symbol. Change return type.
5578 (lookup_minimal_symbol): Remove.
5579 (lookup_bound_minimal_symbol): Update.
5580 (lookup_minimal_symbol_text): Change return type.
5581 (lookup_minimal_symbol_solib_trampoline): Change return type.
5582 * minsyms.h (lookup_minimal_symbol, lookup_minimal_symbol_text)
5583 (lookup_minimal_symbol_solib_trampoline): Change return type.
5584 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5585 * objc-lang.c (lookup_objc_class, lookup_child_selector)
5586 (value_nsstring, find_imps): Update.
5587 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5588 * p-lang.c (pascal_main_name): Update.
5589 * ppc-linux-tdep.c (ppc_linux_spe_context_lookup): Update.
5590 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5591 * proc-service.c (ps_pglobal_lookup): Update.
5592 * ravenscar-thread.c (get_running_thread_msymbol): Change
5594 (has_ravenscar_runtime, get_running_thread_id): Update.
5595 * remote.c (remote_check_symbols): Update.
5596 * sol-thread.c (ps_pglobal_lookup): Update.
5597 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5598 * solib-dsbt.c (lm_base): Update.
5599 * solib-frv.c (lm_base, frv_relocate_section_addresses):
5601 * solib-irix.c (locate_base): Update.
5602 * solib-som.c (som_solib_create_inferior_hook)
5603 (som_solib_desire_dynamic_linker_symbols, link_map_start):
5605 * solib-spu.c (spu_enable_break): Update.
5606 * solib-svr4.c (elf_locate_base, enable_break): Update.
5607 * spu-tdep.c (spu_get_overlay_table, spu_catch_start)
5608 (flush_ea_cache): Update.
5609 * stabsread.c (define_symbol): Update.
5610 * symfile.c (simple_read_overlay_table): Update.
5611 * symtab.c (find_pc_sect_line): Update.
5612 * tracepoint.c (scope_info): Update.
5613 * tui-disasm.c (tui_get_begin_asm_address): Update.
5614 * value.c (value_static_field): Update.
5616 2014-02-26 Tom Tromey <tromey@redhat.com>
5618 * minsyms.c (prim_record_minimal_symbol_full): Use
5619 SET_MSYMBOL_VALUE_ADDRESS.
5620 * objfiles.c (objfile_relocate1): Use SET_MSYMBOL_VALUE_ADDRESS.
5621 * sh64-tdep.c (sh64_elf_make_msymbol_special): Use
5622 SET_MSYMBOL_VALUE_ADDRESS.
5623 * symtab.h (MSYMBOL_VALUE_ADDRESS): Expand to an rvalue.
5624 (SET_MSYMBOL_VALUE_ADDRESS): New macro.
5626 2014-02-26 Tom Tromey <tromey@redhat.com>
5628 * symtab.h (struct minimal_symbol) <mginfo>: Rename from ginfo.
5629 (MSYMBOL_VALUE, MSYMBOL_VALUE_ADDRESS, MSYMBOL_VALUE_BYTES)
5630 (MSYMBOL_BLOCK_VALUE, MSYMBOL_VALUE_CHAIN, MSYMBOL_LANGUAGE)
5631 (MSYMBOL_SECTION, MSYMBOL_OBJ_SECTION, MSYMBOL_NATURAL_NAME)
5632 (MSYMBOL_LINKAGE_NAME, MSYMBOL_PRINT_NAME, MSYMBOL_DEMANGLED_NAME)
5633 (MSYMBOL_SET_LANGUAGE, MSYMBOL_SEARCH_NAME)
5634 (MSYMBOL_MATCHES_SEARCH_NAME, MSYMBOL_SET_NAMES): New macros.
5635 * ada-lang.c (ada_main_name): Update.
5636 (ada_lookup_simple_minsym): Update.
5637 (ada_make_symbol_completion_list): Update.
5638 (ada_add_standard_exceptions): Update.
5639 * ada-tasks.c (read_atcb, ada_tasks_inferior_data_sniffer): Update.
5640 * aix-thread.c (pdc_symbol_addrs, pd_enable): Update.
5641 * amd64-windows-tdep.c (amd64_skip_main_prologue): Update.
5642 * arm-tdep.c (skip_prologue_function): Update.
5643 (arm_skip_stack_protector, arm_skip_stub): Update.
5644 * arm-wince-tdep.c (arm_pe_skip_trampoline_code): Update.
5645 (arm_wince_skip_main_prologue): Update.
5646 * auxv.c (ld_so_xfer_auxv): Update.
5647 * avr-tdep.c (avr_scan_prologue): Update.
5648 * ax-gdb.c (gen_var_ref): Update.
5649 * block.c (call_site_for_pc): Update.
5650 * blockframe.c (get_pc_function_start): Update.
5651 (find_pc_partial_function_gnu_ifunc): Update.
5652 * breakpoint.c (create_overlay_event_breakpoint): Update.
5653 (create_longjmp_master_breakpoint): Update.
5654 (create_std_terminate_master_breakpoint): Update.
5655 (create_exception_master_breakpoint): Update.
5656 (resolve_sal_pc): Update.
5657 * bsd-uthread.c (bsd_uthread_lookup_address): Update.
5658 * btrace.c (ftrace_print_function_name, ftrace_function_switched):
5660 * c-valprint.c (c_val_print): Update.
5661 * coff-pe-read.c (add_pe_forwarded_sym): Update.
5662 * coffread.c (coff_symfile_read): Update.
5663 * common/agent.c (agent_look_up_symbols): Update.
5664 * dbxread.c (find_stab_function_addr): Update.
5665 (end_psymtab): Update.
5666 * dwarf2loc.c (call_site_to_target_addr): Update.
5667 (func_verify_no_selftailcall): Update.
5668 (tailcall_dump): Update.
5669 (call_site_find_chain_1): Update.
5670 (dwarf_expr_reg_to_entry_parameter): Update.
5671 * elfread.c (elf_gnu_ifunc_record_cache): Update.
5672 (elf_gnu_ifunc_resolve_by_got): Update.
5673 * f-valprint.c (info_common_command): Update.
5674 * findvar.c (read_var_value): Update.
5675 * frame.c (get_prev_frame_1): Update.
5676 (inside_main_func): Update.
5677 * frv-tdep.c (frv_skip_main_prologue): Update.
5678 (frv_frame_this_id): Update.
5679 * glibc-tdep.c (glibc_skip_solib_resolver): Update.
5680 * gnu-v2-abi.c (gnuv2_value_rtti_type): Update.
5681 * gnu-v3-abi.c (gnuv3_rtti_type): Update.
5682 (gnuv3_skip_trampoline): Update.
5683 * hppa-hpux-tdep.c (hppa32_hpux_in_solib_call_trampoline): Update.
5684 (hppa64_hpux_in_solib_call_trampoline): Update.
5685 (hppa_hpux_skip_trampoline_code): Update.
5686 (hppa64_hpux_search_dummy_call_sequence): Update.
5687 (hppa_hpux_find_import_stub_for_addr): Update.
5688 (hppa_hpux_find_dummy_bpaddr): Update.
5689 * hppa-tdep.c (hppa_symbol_address)
5690 (hppa_lookup_stub_minimal_symbol): Update.
5691 * i386-tdep.c (i386_skip_main_prologue): Update.
5692 (i386_pe_skip_trampoline_code): Update.
5693 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
5694 * infcall.c (get_function_name): Update.
5695 * infcmd.c (until_next_command): Update.
5696 * jit.c (jit_breakpoint_re_set_internal): Update.
5697 (jit_inferior_init): Update.
5698 * linespec.c (minsym_found): Update.
5699 (add_minsym): Update.
5700 * linux-fork.c (info_checkpoints_command): Update.
5701 * linux-nat.c (get_signo): Update.
5702 * linux-thread-db.c (inferior_has_bug): Update.
5703 * m32c-tdep.c (m32c_return_value): Update.
5704 (m32c_m16c_address_to_pointer): Update.
5705 (m32c_m16c_pointer_to_address): Update.
5706 * m32r-tdep.c (m32r_frame_this_id): Update.
5707 * m68hc11-tdep.c (m68hc11_get_register_info): Update.
5708 * machoread.c (macho_resolve_oso_sym_with_minsym): Update.
5709 * maint.c (maintenance_translate_address): Update.
5710 * minsyms.c (add_minsym_to_hash_table): Update.
5711 (add_minsym_to_demangled_hash_table): Update.
5712 (msymbol_objfile): Update.
5713 (lookup_minimal_symbol): Update.
5714 (iterate_over_minimal_symbols): Update.
5715 (lookup_minimal_symbol_text): Update.
5716 (lookup_minimal_symbol_by_pc_name): Update.
5717 (lookup_minimal_symbol_solib_trampoline): Update.
5718 (lookup_minimal_symbol_by_pc_section_1): Update.
5719 (lookup_minimal_symbol_and_objfile): Update.
5720 (prim_record_minimal_symbol_full): Update.
5721 (compare_minimal_symbols): Update.
5722 (compact_minimal_symbols): Update.
5723 (build_minimal_symbol_hash_tables): Update.
5724 (install_minimal_symbols): Update.
5725 (terminate_minimal_symbol_table): Update.
5726 (find_solib_trampoline_target): Update.
5727 (minimal_symbol_upper_bound): Update.
5728 * mips-linux-tdep.c (mips_linux_skip_resolver): Update.
5729 * mips-tdep.c (mips_stub_frame_sniffer): Update.
5730 (mips_skip_pic_trampoline_code): Update.
5731 * msp430-tdep.c (msp430_skip_trampoline_code): Update.
5732 * objc-lang.c (selectors_info): Update.
5733 (classes_info): Update.
5734 (find_methods): Update.
5735 (find_imps): Update.
5736 (find_objc_msgsend): Update.
5737 * objfiles.c (objfile_relocate1): Update.
5738 * objfiles.h (ALL_OBJFILE_MSYMBOLS): Update.
5739 * obsd-tdep.c (obsd_skip_solib_resolver): Update.
5740 * p-valprint.c (pascal_val_print): Update.
5741 * parse.c (write_exp_msymbol): Update.
5742 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code)
5743 (ppc_linux_spe_context_lookup, ppc_elfv2_skip_entrypoint): Update.
5744 * ppc-sysv-tdep.c (convert_code_addr_to_desc_addr): Update.
5745 * printcmd.c (build_address_symbolic): Update.
5747 (address_info): Update.
5748 * proc-service.c (ps_pglobal_lookup): Update.
5749 * psymtab.c (find_pc_sect_psymtab_closer): Update.
5750 (find_pc_sect_psymtab): Update.
5751 * python/py-framefilter.c (py_print_frame): Update.
5752 * ravenscar-thread.c (get_running_thread_id): Update.
5753 * record-btrace.c (btrace_call_history, btrace_get_bfun_name):
5755 * remote.c (remote_check_symbols): Update.
5756 * rs6000-tdep.c (rs6000_skip_main_prologue): Update.
5757 (rs6000_skip_trampoline_code): Update.
5758 * sh64-tdep.c (sh64_elf_make_msymbol_special): Update.
5759 * sol2-tdep.c (sol2_skip_solib_resolver): Update.
5760 * solib-dsbt.c (lm_base): Update.
5761 * solib-frv.c (lm_base): Update.
5763 * solib-irix.c (locate_base): Update.
5764 * solib-som.c (som_solib_create_inferior_hook): Update.
5765 (som_solib_desire_dynamic_linker_symbols): Update.
5766 (link_map_start): Update.
5767 * solib-spu.c (spu_enable_break): Update.
5768 (ocl_enable_break): Update.
5769 * solib-svr4.c (elf_locate_base): Update.
5770 (enable_break): Update.
5771 * spu-tdep.c (spu_get_overlay_table): Update.
5772 (spu_catch_start): Update.
5773 (flush_ea_cache): Update.
5774 * stabsread.c (define_symbol): Update.
5775 (scan_file_globals): Update.
5776 * stack.c (find_frame_funname): Update.
5777 (frame_info): Update.
5778 * symfile.c (simple_read_overlay_table): Update.
5779 (simple_overlay_update): Update.
5780 * symmisc.c (dump_msymbols): Update.
5781 * symtab.c (fixup_section): Update.
5782 (find_pc_sect_line): Update.
5783 (skip_prologue_sal): Update.
5784 (search_symbols): Update.
5785 (print_msymbol_info): Update.
5786 (rbreak_command): Update.
5787 (MCOMPLETION_LIST_ADD_SYMBOL): New macro.
5788 (completion_list_objc_symbol): Update.
5789 (default_make_symbol_completion_list_break_on): Update.
5790 * tracepoint.c (scope_info): Update.
5791 * tui/tui-disasm.c (tui_find_disassembly_address): Update.
5792 (tui_get_begin_asm_address): Update.
5793 * valops.c (find_function_in_inferior): Update.
5794 * value.c (value_static_field): Update.
5795 (value_fn_field): Update.
5797 2014-02-26 Tom Tromey <tromey@redhat.com>
5799 * blockframe.c (find_pc_partial_function_gnu_ifunc): Use
5800 bound minimal symbols. Move code that knows about minsym
5802 * minsyms.c (minimal_symbol_upper_bound): ... here. New
5804 * minsyms.h (minimal_symbol_upper_bound): Declare.
5805 * objc-lang.c (find_objc_msgsend): Use bound minimal symbols,
5806 minimal_symbol_upper_bound.
5808 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5810 * python/lib/gdb/printing.py (RegexpCollectionPrettyPrinter):
5811 Use the type's name if its basic type does not have a tag.
5813 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5815 * dwarf2read.c (read_subrange_type): Add comment.
5817 2014-02-27 Joel Brobecker <brobecker@adacore.com>
5819 * dwarf2read.c (update_enumeration_type_from_children): New
5820 function, mostly extracted from process_structure_scope.
5821 (read_enumeration_type): Call update_enumeration_type_from_children.
5822 (process_enumeration_scope): Do not set THIS_TYPE's flag_unsigned
5823 and flag_flag_enum fields.
5825 2014-02-26 Pedro Alves <palves@redhat.com>
5827 * bsd-uthread.c (bsd_uthread_xfer_partial): Delete function.
5828 (bsd_uthread_target): Don't install bsd_uthread_xfer_partial as
5829 to_xfer_partial method.
5831 2014-02-26 Pedro Alves <palves@redhat.com>
5833 * target.c (complete_target_initialization): Don't install
5834 default_xfer_partial as to_xfer_partial hook.
5836 (update_current_target): Don't INHERIT nor de_fault
5837 deprecated_xfer_memory. Delete de_fault macro.
5838 (default_xfer_partial, deprecated_debug_xfer_memory): Delete.
5839 (setup_target_debug): Don't install a deprecated_xfer_memory hook.
5840 * target.h (struct target_ops) <deprecated_xfer_memory>: Delete
5843 2014-02-26 Pedro Alves <palves@redhat.com>
5845 * go32-nat.c (my_write_child): New function.
5846 (go32_xfer_memory): Rewrite as to_xfer_partial helper.
5847 (go32_xfer_partial): New function.
5848 (init_go32_ops): Don't install a deprecated_xfer_memory hook.
5849 Instead install a to_xfer_partial hook.
5851 2014-02-26 Pedro Alves <palves@redhat.com>
5853 * nto-procfs.c (procfs_xfer_memory): Adjust interface as a
5854 to_xfer_partial helper. Rewrite.
5855 (procfs_xfer_partial): New function.
5856 (init_procfs_ops): Don't install a deprecated_xfer_memory hook.
5857 Install a to_xfer_partial hook.
5859 2014-02-26 Pedro Alves <palves@redhat.com>
5861 * remote-m32r-sdi.c (send_data): Constify 'buf' parameter.
5862 (m32r_xfer_memory): Adjust as a to_xfer_partial helper.
5863 (m32r_xfer_partial): New function.
5864 (init_m32r_ops): Don't install a deprecated_xfer_memory hook.
5865 Install a to_xfer_partial hook.
5867 2014-02-26 Pedro Alves <palves@redhat.com>
5869 * remote-mips.c (mips_xfer_memory): Adjust as to_xfer_partial
5871 (mips_xfer_partial): New function.
5872 (_initialize_remote_mips): Don't install a deprecated_xfer_memory
5873 hook. Install a to_xfer_partial hook.
5875 2014-02-26 Joel Brobecker <brobecker@adacore.com>
5877 * gdbtypes.h (create_array_type_with_stride): Add declaration.
5878 * gdbtypes.c (create_array_type_with_stride): New function,
5879 renaming create_array_type, but with an added parameter
5880 called "bit_stride".
5881 (create_array_type): Re-implement using
5882 create_array_type_with_stride.
5883 * dwarf2read.c (read_array_type): Add support for DW_AT_byte_stride
5884 and DW_AT_bit_stride attributes.
5886 2014-02-26 Pedro Alves <palves@redhat.com>
5888 * breakpoint.c (bpstat_check_breakpoint_conditions): Handle
5889 task-specific breakpoints.
5891 2014-02-25 Pedro Alves <palves@redhat.com>
5893 * ia64-linux-nat.c (ia64_linux_xfer_partial): Reimplement
5894 handling of object == TARGET_OBJECT_UNWIND_TABLE.
5896 2014-02-25 Stan Shebs <stan@codesourcery.com>
5898 * defs.h: Annotate comments for Doxygen.
5900 2014-02-25 Tom Tromey <tromey@redhat.com>
5902 * target.h (target_ignore): Don't declare.
5903 * target.c (target_ignore): Remove.
5905 2014-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5908 * auto-load.c (auto_load_objfile_script_1): Change filename to
5911 2014-02-25 Joel Brobecker <brobecker@adacore.com>
5913 * ia64-linux-nat.c (ia64_linux_xfer_partial): Add function
5914 documentation. Adjust prototype to match the target_ops
5915 to_xfer_partial method. Adjust implementation accordingly.
5917 2014-02-25 Hui Zhu <hui@codesourcery.com>
5919 * target.h (target_ops): Fix TARGET_DEFAULT_RETURN of
5922 2014-02-25 Kevin Buettner <kevinb@redhat.com>
5924 * rl78-tdep.c (RL78_BANK0_RP0_PTR_REGNUM, RL78_BANK0_RP1_PTR_REGNUM)
5925 (RL78_BANK0_RP2_PTR_REGNUM, RL78_BANK0_RP3_PTR_REGNUM)
5926 (RL78_BANK1_RP0_PTR_REGNUM, RL78_BANK1_RP1_PTR_REGNUM)
5927 (RL78_BANK1_RP2_PTR_REGNUM, RL78_BANK1_RP3_PTR_REGNUM)
5928 (RL78_BANK2_RP0_PTR_REGNUM, RL78_BANK2_RP1_PTR_REGNUM)
5929 (RL78_BANK2_RP2_PTR_REGNUM, RL78_BANK2_RP3_PTR_REGNUM)
5930 (RL78_BANK3_RP0_PTR_REGNUM, RL78_BANK3_RP1_PTR_REGNUM)
5931 (RL78_BANK3_RP2_PTR_REGNUM, RL78_BANK3_RP3_PTR_REGNUM):
5933 (rl78_register_type): Use a data pointer type for SP and
5934 new pseudo registers mentioned above. Use a 16 bit integer
5935 type for all other register pairs.
5936 (rl78_register_name, rl78_g10_register_name): Update for
5937 new pseudo registers.
5938 (rl78_pseudo_register_read): Likewise.
5939 (rl78_pseudo_register_write): Likewise.
5940 (rl78_dwarf_reg_to_regnum): Return register numbers representing
5941 to the newly added pseudo registers.
5943 2014-02-24 Doug Evans <dje@google.com>
5945 * value.c (record_latest_value): Fix comment.
5946 * printcmd.c (print_command_1): Remove code to handle -1 return from
5947 record_latest_value.
5949 2014-02-24 Pedro Alves <palves@redhat.com>
5951 * procfs.c (procfs_target): Don't install procfs_xfer_memory as
5952 deprecated_xfer_memory hook.
5953 (procfs_xfer_partial): Call procfs_xfer_memory instead
5954 of the deprecated_xfer_memory target hook.
5955 (procfs_xfer_memory): Adjust interface as a to_xfer_partial
5958 2014-02-24 Yuanhui Zhang <asmwarrior@gmail.com>
5960 * windows-nat.c (windows_xfer_shared_libraries): Return
5961 TARGET_XFER_EOF if LEN is zero to fix an assert failure when
5962 requested object is TARGET_OBJECT_LIBRARIES.
5964 2014-02-24 Yao Qi <yao@codesourcery.com>
5966 * target.h (enum target_xfer_status)
5967 <TARGET_XFER_E_UNAVAILABLE>: Rename it to ...
5968 <TARGET_XFER_UNAVAILABLE>: ... it with setting value 2
5970 * corefile.c (memory_error_message): User updated.
5971 * exec.c (section_table_read_available_memory): Likewise.
5972 * record-btrace.c (record_btrace_xfer_partial): Likewise.
5973 * target.c (target_xfer_status_to_string): Likewise.
5974 (raw_memory_xfer_partial): Likewise.
5975 (memory_xfer_partial_1, target_xfer_partial): Likewise.
5976 * valops.c (read_value_memory): Likewise.
5977 * exec.h: Update comments.
5979 2014-02-24 Yao Qi <yao@codesourcery.com>
5981 * target.c (target_xfer_status_to_string): Rename argument err
5983 * target.h (target_xfer_status_to_string): Update declaration.
5984 Replace target_xfer_error_to_string with
5985 target_xfer_status_to_string in comment.
5987 2014-02-24 Yao Qi <yao@codesourcery.com>
5989 * mips-linux-nat.c (super_close): Update its type.
5990 (mips_linux_close): Pass 'self' to super_close.
5992 2014-02-24 Yao Qi <yao@codesourcery.com>
5994 * target.h (TARGET_XFER_STATUS_ERROR_P): Remove.
5995 * corefile.c (read_memory): Adjusted.
5996 * target.c (target_write_with_progress): Adjusted.
5998 2014-02-23 Yao Qi <yao@codesourcery.com>
6002 2013-10-25 Yao Qi <yao@codesourcery.com>
6004 * remote.c (remote_traceframe_info): Return early if
6005 traceframe is not selected.
6007 2013-07-19 Yao Qi <yao@codesourcery.com>
6009 * target.c (update_current_target): Change the default action
6010 of 'to_traceframe_info' from tcomplain to return_zero.
6011 * target.h (struct target_ops) <to_traceframe_info>: Add more
6014 2014-02-23 Yao Qi <yao@codesourcery.com>
6016 * valops.c (read_value_memory): Rewrite it. Call
6017 target_xfer_partial in a loop.
6018 * exec.h (section_table_available_memory): Remove declaration.
6019 Move comments to ...
6020 * exec.c (section_table_available_memory): ... here. Make it
6023 2014-02-23 Yao Qi <yao@codesourcery.com>
6025 * exec.c (section_table_read_available_memory): New function.
6026 * exec.h (section_table_read_available_memory): Declare.
6027 * ctf.c (ctf_xfer_partial): Call
6028 section_table_read_available_memory.
6029 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6031 2014-02-23 Yao Qi <yao@codesourcery.com>
6033 * ctf.c (ctf_xfer_partial): Move code to ...
6034 * exec.c (exec_read_partial_read_only): ... it. New function.
6035 * tracefile-tfile.c (tfile_xfer_partial): Likewise.
6036 * tracefile.c: Include "exec.h".
6037 * exec.h (exec_read_partial_read_only): Declare.
6039 2014-02-23 Yao Qi <yao@codesourcery.com>
6041 * tracefile-tfile.c (tfile_has_all_memory): Remove.
6042 (tfile_has_memory): Remove.
6043 (init_tfile_ops): Don't set fields to_has_all_memory and
6044 to_has_memory of tfile_ops.
6045 * tracefile.c (tracefile_has_all_memory): New function.
6046 (tracefile_has_memory): New function.
6047 (init_tracefile_ops): Initialize fields to_has_all_memory and
6048 to_has_memory of 'ops'.
6050 2014-02-23 Yao Qi <yao@codesourcery.com>
6052 * ctf.c (ctf_has_stack, ctf_has_registers): Remove.
6053 (ctf_thread_alive, ctf_get_trace_status): Remove.
6054 (init_ctf_ops): Don't set some fields of ctf_ops. Call
6056 * tracefile-tfile.c (tfile_get_trace_status): Remove.
6057 (tfile_has_stack, tfile_has_registers): Remove.
6058 (tfile_thread_alive): Remove.
6059 (init_tfile_ops): Don't set some fields of tfile_ops. Call
6061 * tracefile.c (tracefile_has_stack): New function.
6062 (tracefile_has_registers): New function.
6063 (tracefile_thread_alive): New function.
6064 (tracefile_get_trace_status): New function.
6065 (init_tracefile_ops): New function.
6066 * tracefile.h (init_tracefile_ops): Declare.
6068 2014-02-23 Yao Qi <yao@codesourcery.com>
6070 * tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
6071 (O_LARGEFILE): Likewise.
6072 (tfile_ops): Likewise.
6073 (TRACE_HEADER_SIZE): Likewise.
6074 (trace_fd, trace_frames_offset, cur_offset): Likewise.
6075 (cur_data_size): Likewise.
6076 (tfile_read, tfile_open, tfile_interp_line): Likewise.
6077 (tfile_close, tfile_files_info): Likewise.
6078 (tfile_get_trace_status): Likewise.
6079 (tfile_get_tracepoint_status): Likewise.
6080 (tfile_get_traceframe_address): Likewise.
6081 (tfile_trace_find, match_blocktype): Likewise.
6082 (traceframe_walk_blocks, traceframe_find_block_type): Likewise.
6083 (tfile_fetch_registers, tfile_xfer_partial): Likewise.
6084 (tfile_get_trace_state_variable_value): Likewise.
6085 (tfile_has_all_memory, tfile_has_memory): Likewise.
6086 (tfile_has_stack, tfile_has_registers): Likewise.
6087 (tfile_thread_alive, build_traceframe_info): Likewise.
6088 (tfile_traceframe_info, init_tfile_ops): Likewise.
6089 (_initialize_tracepoint): Don't call init_tfile_ops
6090 and add_target_with_completer.
6091 * tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
6092 exec.h, completer.h and filenames.h.
6093 (_initialize_tracefile_tfile): New function.
6095 2014-02-23 Yao Qi <yao@codesourcery.com>
6097 * Makefile.in (REMOTE_OBS): Append tracefile.o and
6099 (HFILES_NO_SRCDIR): Add tracefile.h.
6100 * ctf.c: Include "tracefile.h".
6101 * tracefile.h: New file.
6102 * tracefile.c: New file
6103 * tracefile-tfile.c: New file.
6104 * tracepoint.c: Include "tracefile.h".
6105 (free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
6106 (stop_reason_names): Add const.
6107 (trace_file_writer_xfree): Move it to tracefile.c.
6108 (trace_save, trace_save_command, trace_save_tfile): Likewise.
6109 (trace_save_ctf): Likewise.
6110 (struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
6111 (tfile_target_save, tfile_dtor, tfile_start): Likewise.
6112 (tfile_write_header, tfile_write_regblock_type): Likewise.
6113 (tfile_write_status, tfile_write_uploaded_tsv): Likewise.
6114 (tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
6115 (tfile_write_raw_data, tfile_end): Likewise.
6116 (tfile_trace_file_writer_new): Likewise.
6117 (free_uploaded_tp): Make it extern.
6118 (free_uploaded_tsv): Make it extern.
6119 (_initialize_tracepoint): Move code to register command 'tsave'
6121 * tracepoint.h (stop_reason_names): Declare.
6122 (struct trace_frame_write_ops): Move it to tracefile.h.
6123 (struct trace_file_write_ops): Likewise.
6124 (struct trace_file_writer): Likewise.
6125 (free_uploaded_tsvs, free_uploaded_tps): Declare.
6127 2014-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6130 * common/linux-osdata.c (linux_common_core_of_thread): Find the end of
6132 (get_cores_used_by_process): New parameter num_cores, use it.
6133 (linux_xfer_osdata_processes): Pass num_cores to it.
6134 * linux-tdep.c (linux_info_proc, linux_fill_prpsinfo): Find the end of
6137 2014-02-21 Andreas Arnez <arnez@vnet.linux.ibm.com>
6139 * target.c (memory_xfer_partial): Fix length arg in call to
6140 breakpoint_xfer_memory.
6142 2014-02-20 Sergio Durigan Junior <sergiodj@redhat.com>
6145 * i386-tdep.c (i386_stap_parse_special_token_triplet): Check if a
6146 number comes after the + or - signs. Adjust length of register
6147 name to be extracted.
6149 2014-02-20 Tom Tromey <tromey@redhat.com>
6151 * varobj.h (c_varobj_ops, cplus_varobj_ops, java_varobj_ops)
6152 (ada_varobj_ops): Mark "extern".
6154 2014-02-20 Tom Tromey <tromey@redhat.com>
6156 * dbxread.c (read_dbx_symtab): Remove last_o_file_start.
6158 2014-02-20 Doug Evans <xdje42@gmail.com>
6160 * guile/scm-gsmob.c (gdbscm_init_eqable_gsmob): New arg containing_scm.
6161 All callers updated.
6162 (gdbscm_fill_eqable_gsmob_ptr_slot): Delete arg containing_scm.
6163 All callers updated.
6164 * guile/guile-internal.h (gdbscm_init_eqable_gsmob): Update.
6165 (gdbscm_fill_eqable_gsmob_ptr_slot): Update.
6167 2014-02-20 lin zuojian <manjian2006@gmail.com>
6168 Joel Brobecker <brobecker@adacore.com>
6169 Doug Evans <xdje42@gmail.com>
6172 * dwarf2read.c (struct die_info): New member in_process.
6173 (reset_die_in_process): New function.
6174 (process_die): Set it at the start, reset when returning.
6175 (inherit_abstract_dies): Only call process_die if origin_child_die
6176 not already being processed.
6178 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6180 * windows-nat.c (handle_unload_dll): Add function documentation.
6181 (do_initial_windows_stuff): Add comment explaining why we wait
6182 until after inferior initialization has finished before
6183 processing all DLLs.
6185 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6187 * windows-nat.c (get_module_name): Delete.
6188 (windows_get_exec_module_filename): New function, mostly
6189 inspired from get_module_name.
6190 (windows_pid_to_exec_file): Replace call to get_module_name
6191 by call to windows_get_exec_module_filename.
6193 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6195 * windows-nat.c (handle_load_dll): Rewrite this function's
6196 introductory comment. Remove code using get_module_name
6197 to get the DLL's name.
6199 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6201 * windows-nat.c (get_windows_debug_event): Ignore
6202 LOAD_DLL_DEBUG_EVENT and UNLOAD_DLL_DEBUG_EVENT
6203 if windows_initialization_done == 0.
6204 (windows_add_all_dlls): Renames windows_ensure_ntdll_loaded.
6205 Adjust implementation to always load all DLLs.
6206 (do_initial_windows_stuff): Replace call to
6207 windows_ensure_ntdll_loaded by call to windows_add_all_dlls.
6209 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6211 * windows-nat.c (_initialize_windows_nat): Deprecate the
6212 "dll-symbols" command. Turn the "add-shared-symbol-files"
6213 and "assf" aliases into commands, and deprecate them as well.
6214 * NEWS: Add entry explaining that "dll-symbols" and its two
6215 aliases are now deprecated.
6217 2014-02-20 Joel Brobecker <brobecker@adacore.com>
6219 * dec-thread.c (dec_thread_get_ada_task_ptid): Avoid unescaped
6220 new-line in debug string. Remove trailing spaces.
6222 2014-02-19 Stan Shebs <stan@codesourcery.com>
6224 * darwin-nat.c (darwin_xfer_partial): Fix return type.
6226 2014-02-19 Siva Chandra Reddy <sivachandra@google.com>
6228 * NEWS: Add entry for the new feature
6229 * python/py-value.c (valpy_binop): Call value_x_binop for struct
6232 2014-02-19 Stan Shebs <stan@codesourcery.com>
6234 * MAINTAINERS: List Yao Qi as nios2 maintainer.
6236 2014-02-19 Pedro Alves <palves@redhat.com>
6238 * common/ptid.h (struct ptid): Mention that process_stratum
6239 targets should prefer ptid.lwp.
6241 2014-02-19 Pedro Alves <palves@redhat.com>
6243 * remote.c (remote_thread_alive, write_ptid, read_ptid)
6244 (read_ptid, remote_newthread_step, remote_threads_extra_info)
6245 (remote_get_ada_task_ptid, append_resumption, remote_stop_ns)
6246 (threadalive_test, remote_pid_to_str): Use the ptid.lwp field to
6247 store remote thread ids rather than ptid.tid.
6248 (_initialize_remote): Adjust.
6250 2014-02-19 Tom Tromey <tromey@redhat.com>
6252 * target.c (target_get_unwinder): Rewrite.
6253 (target_get_tailcall_unwinder): Rewrite.
6254 * record-btrace.c (record_btrace_to_get_unwinder): New function.
6255 (record_btrace_to_get_tailcall_unwinder): New function.
6256 (init_record_btrace_ops): Update.
6257 * target.h (struct target_ops) <to_get_unwinder,
6258 to_get_tailcall_unwinder>: Now function pointers. Use
6259 TARGET_DEFAULT_RETURN.
6261 2014-02-19 Tom Tromey <tromey@redhat.com>
6263 * nto-procfs.c (procfs_remove_hw_breakpoint): Add 'self'
6265 (init_procfs_ops): Correctly set to_remove_hw_breakpoint.
6267 2014-02-19 Tom Tromey <tromey@redhat.com>
6269 * record-btrace.c (record_btrace_decr_pc_after_break): Delegate
6271 * target-delegates.c: Rebuild.
6272 * target.h (struct target_ops) <to_decr_pc_after_break>: Use
6273 TARGET_DEFAULT_FUNC.
6274 * target.c (default_target_decr_pc_after_break): Rename from
6275 forward_target_decr_pc_after_break. Simplify.
6276 (target_decr_pc_after_break): Rely on delegation.
6278 2014-02-19 Tom Tromey <tromey@redhat.com>
6280 * target.c (update_current_target): Do not INHERIT to_doc or
6281 to_magic. Do not de_fault to_open or to_close.
6283 2014-02-19 Tom Tromey <tromey@redhat.com>
6285 * gcore.h (objfile_find_memory_regions): Declare.
6286 * gcore.c (objfile_find_memory_regions): No longer static. Add
6288 (_initialize_gcore): Don't call exec_set_find_memory_regions.
6289 * exec.c: Include gcore.h.
6290 (exec_set_find_memory_regions): Remove.
6291 (exec_find_memory_regions): Remove.
6292 (exec_do_find_memory_regions): Remove.
6293 (init_exec_ops): Update.
6294 * defs.h (exec_set_find_memory_regions): Remove.
6296 2014-02-19 Tom Tromey <tromey@redhat.com>
6298 * target-delegates.c: Rebuild.
6299 * target.h (struct target_ops) <to_extra_thread_info,
6300 to_thread_name, to_pid_to_exec_file, to_get_section_table,
6301 to_memory_map, to_read_description, to_traceframe_info>: Use NULL,
6302 not 0, in TARGET_DEFAULT_RETURN.
6304 2014-02-19 Tom Tromey <tromey@redhat.com>
6306 * target.c (complete_target_initialization): Remove casts. Use
6307 return_zero_has_execution.
6308 (return_zero): Add "ignore" argument.
6309 (return_zero_has_execution): New function.
6310 (init_dummy_target): Remove casts. Use
6311 return_zero_has_execution.
6313 2014-02-19 Tom Tromey <tromey@redhat.com>
6315 * target.c (update_current_target): Update comments. Do not
6318 2014-02-19 Tom Tromey <tromey@redhat.com>
6320 * arm-linux-nat.c (arm_linux_read_description): Delegate when
6322 * corelow.c (core_read_description): Delegate when needed.
6323 * remote.c (remote_read_description): Delegate when needed.
6324 * target-delegates.c: Rebuild.
6325 * target.c (target_read_description): Rewrite.
6326 * target.h (struct target_ops) <to_read_description>: Update
6327 comment. Use TARGET_DEFAULT_RETURN.
6329 2014-02-19 Tom Tromey <tromey@redhat.com>
6331 * target-delegates.c: Rebuild.
6332 * target.c (update_current_target): Don't inherit or default
6334 (find_default_run_target): Check against delegate_can_run.
6335 * target.h (struct target_ops) <to_can_run>: Use
6336 TARGET_DEFAULT_RETURN.
6338 2014-02-19 Tom Tromey <tromey@redhat.com>
6340 * target-delegates.c: Rebuild.
6341 * target.c (target_disconnect): Unconditionally delegate.
6342 * target.h (struct target_ops) <to_disconnect>: Use
6343 TARGET_DEFAULT_NORETURN.
6345 2014-02-19 Tom Tromey <tromey@redhat.com>
6347 * record.c (record_stop): Unconditionally delegate.
6348 * target-delegates.c: Rebuild.
6349 * target.c (target_stop_recording): Unconditionally delegate.
6350 * target.h (struct target_ops) <to_stop_recording>: Use
6351 TARGET_DEFAULT_IGNORE.
6353 2014-02-19 Tom Tromey <tromey@redhat.com>
6355 * target-delegates.c: Rebuild.
6356 * target.c (target_enable_btrace): Unconditionally delegate.
6357 * target.h (struct target_ops) <to_enable_btrace>: Use
6358 TARGET_DEFAULT_NORETURN.
6360 2014-02-19 Tom Tromey <tromey@redhat.com>
6362 * target-delegates.c: Rebuild.
6363 * target.c (target_read_btrace): Unconditionally delegate.
6364 * target.h (struct target_ops) <to_read_btrace>: Use
6365 TARGET_DEFAULT_NORETURN.
6367 2014-02-19 Tom Tromey <tromey@redhat.com>
6369 * target-delegates.c: Rebuild.
6370 * target.c (target_teardown_btrace): Unconditionally delegate.
6371 * target.h (struct target_ops) <to_teardown_btrace>: Use
6372 TARGET_DEFAULT_NORETURN.
6374 2014-02-19 Tom Tromey <tromey@redhat.com>
6376 * target-delegates.c: Rebuild.
6377 * target.c (target_disable_btrace): Unconditionally delegate.
6378 * target.h (struct target_ops) <to_disable_btrace>: Use
6379 TARGET_DEFAULT_NORETURN.
6381 2014-02-19 Tom Tromey <tromey@redhat.com>
6383 * target-delegates.c: Rebuild.
6384 * target.c (default_search_memory): New function.
6385 (simple_search_memory): Update comment.
6386 (target_search_memory): Unconditionally delegate.
6387 * target.h (struct target_ops) <to_search_memory>: Use
6388 TARGET_DEFAULT_FUNC.
6390 2014-02-19 Tom Tromey <tromey@redhat.com>
6392 * auxv.c (default_auxv_parse): No longer static.
6393 (target_auxv_parse): Unconditionally delegate.
6394 * auxv.h (default_auxv_parse): Declare.
6395 * target-delegates.c: Rebuild.
6396 * target.c: Include auxv.h.
6397 * target.h (struct target_ops) <to_auxv_parse>: Use
6398 TARGET_DEFAULT_FUNC.
6400 2014-02-19 Tom Tromey <tromey@redhat.com>
6402 * target-delegates.c: Rebuild.
6403 * target.c (target_memory_map): Unconditionally delegate.
6404 * target.h (struct target_ops) <to_memory_map>: Use
6405 TARGET_DEFAULT_RETURN.
6407 2014-02-19 Tom Tromey <tromey@redhat.com>
6409 * target-delegates.c: Rebuild.
6410 * target.c (target_thread_alive): Unconditionally delegate.
6411 * target.h (struct target_ops) <to_thread_alive>: Use
6412 TARGET_DEFAULT_RETURN.
6414 2014-02-19 Tom Tromey <tromey@redhat.com>
6416 * target-delegates.c: Rebuild.
6417 * target.c (target_save_record): Unconditionally delegate.
6418 * target.h (struct target_ops) <to_save_record>: Use
6419 TARGET_DEFAULT_NORETURN.
6421 2014-02-19 Tom Tromey <tromey@redhat.com>
6423 * target-delegates.c: Rebuild.
6424 * target.c (target_delete_record): Unconditionally delegate.
6425 * target.h (struct target_ops) <to_delete_record>: Use
6426 TARGET_DEFAULT_NORETURN.
6428 2014-02-19 Tom Tromey <tromey@redhat.com>
6430 * target-delegates.c: Rebuild.
6431 * target.c (target_record_is_replaying): Unconditionally
6433 * target.h (struct target_ops) <to_record_is_replaying>: Use
6434 TARGET_DEFAULT_RETURN.
6436 2014-02-19 Tom Tromey <tromey@redhat.com>
6438 * target-delegates.c: Rebuild.
6439 * target.c (target_goto_record_begin): Unconditionally delegate.
6440 * target.h (struct target_ops) <to_goto_record_begin>: Use
6441 TARGET_DEFAULT_NORETURN.
6443 2014-02-19 Tom Tromey <tromey@redhat.com>
6445 * target-delegates.c: Rebuild.
6446 * target.c (target_goto_record_end): Unconditionally delegate.
6447 * target.h (struct target_ops) <to_goto_record_end>: Use
6448 TARGET_DEFAULT_NORETURN.
6450 2014-02-19 Tom Tromey <tromey@redhat.com>
6452 * target-delegates.c: Rebuild.
6453 * target.c (target_goto_record): Unconditionally delegate.
6454 * target.h (struct target_ops) <to_goto_record>: Use
6455 TARGET_DEFAULT_NORETURN.
6457 2014-02-19 Tom Tromey <tromey@redhat.com>
6459 * target-delegates.c: Rebuild.
6460 * target.c (target_insn_history): Unconditionally delegate.
6461 * target.h (struct target_ops) <to_insn_history>: Use
6462 TARGET_DEFAULT_NORETURN.
6464 2014-02-19 Tom Tromey <tromey@redhat.com>
6466 * target-delegates.c: Rebuild.
6467 * target.c (target_insn_history_from): Unconditionally delegate.
6468 * target.h (struct target_ops) <to_insn_history_from>: Use
6469 TARGET_DEFAULT_NORETURN.
6471 2014-02-19 Tom Tromey <tromey@redhat.com>
6473 * target-delegates.c: Rebuild.
6474 * target.c (target_insn_history_range): Unconditionally delegate.
6475 * target.h (struct target_ops) <to_insn_history_range>: Use
6476 TARGET_DEFAULT_NORETURN.
6478 2014-02-19 Tom Tromey <tromey@redhat.com>
6480 * target-delegates.c: Rebuild.
6481 * target.c (target_call_history): Unconditionally delegate.
6482 * target.h (struct target_ops) <to_call_history>: Use
6483 TARGET_DEFAULT_NORETURN.
6485 2014-02-19 Tom Tromey <tromey@redhat.com>
6487 * target-delegates.c: Rebuild.
6488 * target.c (target_call_history_from): Unconditionally delegate.
6489 * target.h (struct target_ops) <to_call_history_from>: Use
6490 TARGET_DEFAULT_NORETURN.
6492 2014-02-19 Tom Tromey <tromey@redhat.com>
6494 * target-delegates.c: Rebuild.
6495 * target.c (target_call_history_range): Unconditionally delegate.
6496 * target.h (struct target_ops) <to_call_history_range>: Use
6497 TARGET_DEFAULT_NORETURN.
6499 2014-02-19 Tom Tromey <tromey@redhat.com>
6501 * target-delegates.c: Rebuild.
6502 * target.c (target_verify_memory): Unconditionally delegate.
6503 * target.h (struct target_ops) <to_verify_memory>: Use
6504 TARGET_DEFAULT_NORETURN.
6506 2014-02-19 Tom Tromey <tromey@redhat.com>
6508 * target-delegates.c: Rebuild.
6509 * target.c (target_core_of_thread): Unconditionally delegate.
6510 * target.h (struct target_ops) <to_core_of_thread>: Use
6511 TARGET_DEFAULT_RETURN.
6513 2014-02-19 Tom Tromey <tromey@redhat.com>
6515 * target-delegates.c: Rebuild.
6516 * target.c (target_flash_done): Unconditionally delegate.
6517 * target.h (struct target_ops) <to_flash_done>: Use
6518 TARGET_DEFAULT_NORETURN.
6520 2014-02-19 Tom Tromey <tromey@redhat.com>
6522 * target-delegates.c: Rebuild.
6523 * target.c (target_flash_erase): Unconditionally delegate.
6524 * target.h (struct target_ops) <to_flash_erase>: Use
6525 TARGET_DEFAULT_NORETURN.
6527 2014-02-19 Tom Tromey <tromey@redhat.com>
6529 * target-delegates.c: Rebuild.
6530 * target.c (target_get_section_table): Unconditionally delegate.
6531 * target.h (struct target_ops) <to_get_section_table>: Use
6532 TARGET_DEFAULT_RETURN.
6534 2014-02-19 Tom Tromey <tromey@redhat.com>
6536 * target-delegates.c: Rebuild.
6537 * target.c (target_pid_to_str): Unconditionally delegate.
6538 (init_dummy_target): Don't initialize to_pid_to_str.
6539 (default_pid_to_str): Rename from dummy_pid_to_str.
6540 * target.h (struct target_ops) <to_pid_to_str>: Use
6541 TARGET_DEFAULT_FUNC.
6543 2014-02-19 Tom Tromey <tromey@redhat.com>
6545 * target-delegates.c: Rebuild.
6546 * target.c (target_find_new_threads): Unconditionally delegate.
6547 * target.h (struct target_ops) <to_find_new_threads>: Use
6548 TARGET_DEFAULT_RETURN.
6550 2014-02-19 Tom Tromey <tromey@redhat.com>
6552 * target-delegates.c: Rebuild.
6553 * target.c (target_program_signals): Unconditionally delegate.
6554 * target.h (struct target_ops) <to_program_signals>: Use
6555 TARGET_DEFAULT_IGNORE.
6557 2014-02-19 Tom Tromey <tromey@redhat.com>
6559 * target-delegates.c: Rebuild.
6560 * target.c (target_pass_signals): Unconditionally delegate.
6561 * target.h (struct target_ops) <to_pass_signals>: Use
6562 TARGET_DEFAULT_IGNORE.
6564 2014-02-19 Tom Tromey <tromey@redhat.com>
6566 * target-delegates.c: Rebuild.
6567 * target.c (default_mourn_inferior): New function.
6568 (target_mourn_inferior): Unconditionally delegate.
6569 * target.h (struct target_ops) <to_mourn_inferior>: Use
6570 TARGET_DEFAULT_FUNC.
6572 2014-02-19 Tom Tromey <tromey@redhat.com>
6574 * target-delegates.c: Rebuild.
6575 * target.c (default_follow_fork): New function.
6576 (target_follow_fork): Unconditionally delegate.
6577 * target.h (struct target_ops) <to_follow_fork>: Use
6578 TARGET_DEFAULT_FUNC.
6580 2014-02-19 Tom Tromey <tromey@redhat.com>
6582 * target-delegates.c: Rebuild.
6583 * target.c (target_kill): Unconditionally delegate.
6584 * target.h (struct target_ops) <to_kill>: Use
6585 TARGET_DEFAULT_NORETURN.
6587 2014-02-19 Tom Tromey <tromey@redhat.com>
6589 * target-delegates.c: Rebuild.
6590 * target.c (target_masked_watch_num_registers): Unconditionally
6592 * target.h (struct target_ops) <to_masked_watch_num_registers>:
6593 Use TARGET_DEFAULT_RETURN.
6595 2014-02-19 Tom Tromey <tromey@redhat.com>
6597 * target-delegates.c: Rebuild.
6598 * target.c (target_remove_mask_watchpoint): Unconditionally
6600 * target.h (struct target_ops) <to_remove_mask_watchpoint>: Use
6601 TARGET_DEFAULT_RETURN.
6603 2014-02-19 Tom Tromey <tromey@redhat.com>
6605 * target-delegates.c: Rebuild.
6606 * target.c (target_insert_mask_watchpoint): Unconditionally
6608 * target.h (struct target_ops) <to_insert_mask_watchpoint>: Use
6609 TARGET_DEFAULT_RETURN.
6611 2014-02-19 Tom Tromey <tromey@redhat.com>
6613 * target-delegates.c: Rebuild.
6614 * target.c (target_ranged_break_num_registers): Unconditionally
6616 * target.h (struct target_ops) <to_ranged_break_num_registers>:
6617 Use TARGET_DEFAULT_RETURN.
6619 2014-02-19 Tom Tromey <tromey@redhat.com>
6621 * target-delegates.c: Rebuild.
6622 * target.c (target_fetch_registers): Unconditionally delegate.
6623 * target.h (struct target_ops) <to_fetch_registers>: Use
6624 TARGET_DEFAULT_NORETURN.
6626 2014-02-19 Tom Tromey <tromey@redhat.com>
6628 * target-delegates.c: Rebuild.
6629 * target.c (update_current_target): Don't inherit or default
6631 * target.h (struct target_ops) <to_stop>: Use
6632 TARGET_DEFAULT_IGNORE.
6634 2014-02-19 Tom Tromey <tromey@redhat.com>
6636 * target-delegates.c: Rebuild.
6637 * target.c (update_current_target): Don't inherit or default
6638 to_can_run_breakpoint_commands.
6639 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
6640 Use TARGET_DEFAULT_RETURN.
6642 2014-02-19 Tom Tromey <tromey@redhat.com>
6644 * target-delegates.c: Rebuild.
6645 * target.c (update_current_target): Don't inherit or default
6646 to_supports_evaluation_of_breakpoint_conditions.
6647 * target.h (struct target_ops)
6648 <to_supports_evaluation_of_breakpoint_conditions>: Use
6649 TARGET_DEFAULT_RETURN.
6651 2014-02-19 Tom Tromey <tromey@redhat.com>
6653 * target-delegates.c: Rebuild.
6654 * target.c (update_current_target): Don't inherit or default
6655 to_augmented_libraries_svr4_read.
6656 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
6657 Use TARGET_DEFAULT_RETURN.
6659 2014-02-19 Tom Tromey <tromey@redhat.com>
6661 * target-delegates.c: Rebuild.
6662 * target.c (update_current_target): Don't inherit or default
6664 * target.h (struct target_ops) <to_can_use_agent>: Use
6665 TARGET_DEFAULT_RETURN.
6667 2014-02-19 Tom Tromey <tromey@redhat.com>
6669 * target-delegates.c: Rebuild.
6670 * target.c (update_current_target): Don't inherit or default
6672 * target.h (struct target_ops) <to_use_agent>: Use
6673 TARGET_DEFAULT_NORETURN.
6675 2014-02-19 Tom Tromey <tromey@redhat.com>
6677 * target-delegates.c: Rebuild.
6678 * target.c (update_current_target): Don't inherit or default
6680 (return_null): Remove.
6681 * target.h (struct target_ops) <to_traceframe_info>: Use
6682 TARGET_DEFAULT_RETURN.
6684 2014-02-19 Tom Tromey <tromey@redhat.com>
6686 * target-delegates.c: Rebuild.
6687 * target.c (update_current_target): Don't inherit or default
6688 to_static_tracepoint_markers_by_strid.
6689 * target.h (struct target_ops)
6690 <to_static_tracepoint_markers_by_strid>: Use
6691 TARGET_DEFAULT_NORETURN.
6693 2014-02-19 Tom Tromey <tromey@redhat.com>
6695 * target-delegates.c: Rebuild.
6696 * target.c (update_current_target): Don't inherit or default
6697 to_static_tracepoint_marker_at.
6698 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
6699 Use TARGET_DEFAULT_RETURN.
6701 2014-02-19 Tom Tromey <tromey@redhat.com>
6703 * target-delegates.c: Rebuild.
6704 * target.c (update_current_target): Don't inherit or default
6706 * target.h (struct target_ops) <to_set_permissions>: Use
6707 TARGET_DEFAULT_IGNORE.
6709 2014-02-19 Tom Tromey <tromey@redhat.com>
6711 * target-delegates.c: Rebuild.
6712 * target.c (update_current_target): Don't inherit or default
6714 * target.h (struct target_ops) <to_get_tib_address>: Use
6715 TARGET_DEFAULT_NORETURN.
6717 2014-02-19 Tom Tromey <tromey@redhat.com>
6719 * target-delegates.c: Rebuild.
6720 * target.c (update_current_target): Don't inherit or default
6722 * target.h (struct target_ops) <to_set_trace_notes>: Use
6723 TARGET_DEFAULT_RETURN.
6725 2014-02-19 Tom Tromey <tromey@redhat.com>
6727 * target-delegates.c: Rebuild.
6728 * target.c (update_current_target): Don't initialize
6729 to_set_trace_buffer_size.
6730 * target.h (struct target_ops) <to_set_trace_buffer_size>: Use
6731 TARGET_DEFAULT_IGNORE.
6733 2014-02-19 Tom Tromey <tromey@redhat.com>
6735 * target-delegates.c: Rebuild.
6736 * target.c (update_current_target): Don't inherit or default
6737 to_set_circular_trace_buffer.
6738 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Use
6739 TARGET_DEFAULT_IGNORE.
6741 2014-02-19 Tom Tromey <tromey@redhat.com>
6743 * target-delegates.c: Rebuild.
6744 * target.c (update_current_target): Don't inherit or default
6745 to_set_disconnected_tracing.
6746 * target.h (struct target_ops) <to_set_disconnected_tracing>: Use
6747 TARGET_DEFAULT_IGNORE.
6749 2014-02-19 Tom Tromey <tromey@redhat.com>
6751 * target-delegates.c: Rebuild.
6752 * target.c (update_current_target): Don't inherit or default
6753 to_get_min_fast_tracepoint_insn_len.
6754 (return_minus_one): Remove.
6755 * target.h (struct target_ops)
6756 <to_get_min_fast_tracepoint_insn_len>: Use TARGET_DEFAULT_RETURN.
6758 2014-02-19 Tom Tromey <tromey@redhat.com>
6760 * target-delegates.c: Rebuild.
6761 * target.c (update_current_target): Don't inherit or default
6762 to_get_raw_trace_data.
6763 * target.h (struct target_ops) <to_get_raw_trace_data>: Use
6764 TARGET_DEFAULT_NORETURN.
6766 2014-02-19 Tom Tromey <tromey@redhat.com>
6768 * target-delegates.c: Rebuild.
6769 * target.c (update_current_target): Don't inherit or default
6770 to_upload_trace_state_variables.
6771 * target.h (struct target_ops) <to_upload_trace_state_variables>:
6772 Use TARGET_DEFAULT_RETURN.
6774 2014-02-19 Tom Tromey <tromey@redhat.com>
6776 * target-delegates.c: Rebuild.
6777 * target.c (update_current_target): Don't inherit or default
6778 to_upload_tracepoints.
6779 * target.h (struct target_ops) <to_upload_tracepoints>: Use
6780 TARGET_DEFAULT_RETURN.
6782 2014-02-19 Tom Tromey <tromey@redhat.com>
6784 * target-delegates.c: Rebuild.
6785 * target.c (update_current_target): Don't inherit or default
6787 * target.h (struct target_ops) <to_save_trace_data>: Use
6788 TARGET_DEFAULT_NORETURN.
6790 2014-02-19 Tom Tromey <tromey@redhat.com>
6792 * target-delegates.c: Rebuild.
6793 * target.c (update_current_target): Don't inherit or default
6794 to_get_trace_state_variable_value.
6795 * target.h (struct target_ops)
6796 <to_get_trace_state_variable_value>: Use TARGET_DEFAULT_RETURN.
6798 2014-02-19 Tom Tromey <tromey@redhat.com>
6800 * target-delegates.c: Rebuild.
6801 * target.c (update_current_target): Don't inherit or default
6803 * target.h (struct target_ops): Use TARGET_DEFAULT_RETURN.
6805 2014-02-19 Tom Tromey <tromey@redhat.com>
6807 * target-delegates.c: Rebuild.
6808 * target.c (update_current_target): Don't inherit or default
6810 * target.h (struct target_ops) <to_trace_stop>: Use
6811 TARGET_DEFAULT_NORETURN.
6813 2014-02-19 Tom Tromey <tromey@redhat.com>
6815 * target-delegates.c: Rebuild.
6816 * target.c (update_current_target): Don't inherit or default
6817 to_get_tracepoint_status.
6818 * target.h (struct target_ops) <to_get_tracepoint_status>: Use
6819 TARGET_DEFAULT_NORETURN.
6821 2014-02-19 Tom Tromey <tromey@redhat.com>
6823 * target-delegates.c: Rebuild.
6824 * target.c (update_current_target): Don't inherit or default
6825 to_get_trace_status.
6826 * target.h (struct target_ops) <to_get_trace_status>: Use
6827 TARGET_DEFAULT_RETURN.
6829 2014-02-19 Tom Tromey <tromey@redhat.com>
6831 * target-delegates.c: Rebuild.
6832 * target.c (update_current_target): Don't inherit or default
6834 * target.h (struct target_ops) <to_trace_start>: Use
6835 TARGET_DEFAULT_NORETURN.
6837 2014-02-19 Tom Tromey <tromey@redhat.com>
6839 * target-delegates.c: Rebuild.
6840 * target.c (update_current_target): Don't inherit or default
6841 to_trace_set_readonly_regions.
6842 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
6843 Use TARGET_DEFAULT_NORETURN.
6845 2014-02-19 Tom Tromey <tromey@redhat.com>
6847 * target-delegates.c: Rebuild.
6848 * target.c (update_current_target): Don't inherit or default
6849 to_disable_tracepoint.
6850 * target.h (struct target_ops) <to_disable_tracepoint>: Use
6851 TARGET_DEFAULT_NORETURN.
6853 2014-02-19 Tom Tromey <tromey@redhat.com>
6855 * target-delegates.c: Rebuild.
6856 * target.c (update_current_target): Don't inherit or default
6857 to_enable_tracepoint.
6858 * target.h (struct target_ops) <to_enable_tracepoint>: Use
6859 TARGET_DEFAULT_NORETURN.
6861 2014-02-19 Tom Tromey <tromey@redhat.com>
6863 * target-delegates.c: Rebuild.
6864 * target.c (update_current_target): Don't inherit or default
6865 to_download_trace_state_variable.
6866 * target.h (struct target_ops) <to_download_trace_state_variable>:
6867 Use TARGET_DEFAULT_NORETURN.
6869 2014-02-19 Tom Tromey <tromey@redhat.com>
6871 * target-delegates.c: Rebuild.
6872 * target.c (update_current_target): Don't inherit or default
6873 to_can_download_tracepoint.
6874 * target.h (struct target_ops) <to_can_download_tracepoint>: Use
6875 TARGET_DEFAULT_RETURN.
6877 2014-02-19 Tom Tromey <tromey@redhat.com>
6879 * target-delegates.c: Rebuild.
6880 * target.c (update_current_target): Don't inherit or default
6881 to_download_tracepoint.
6882 * target.h (struct target_ops) <to_download_tracepoint>: Use
6883 TARGET_DEFAULT_NORETURN.
6885 2014-02-19 Tom Tromey <tromey@redhat.com>
6887 * target-delegates.c: Rebuild.
6888 * target.c (update_current_target): Don't inherit or default
6890 * target.h (struct target_ops) <to_trace_init>: Use
6891 TARGET_DEFAULT_RETURN.
6893 2014-02-19 Tom Tromey <tromey@redhat.com>
6895 * target-delegates.c: Rebuild.
6896 * target.c (update_current_target): Don't inherit or default
6897 to_supports_string_tracing.
6898 * target.h (struct target_ops) <to_supports_string_tracing>: Use
6899 TARGET_DEFAULT_RETURN.
6901 2014-02-19 Tom Tromey <tromey@redhat.com>
6903 * target-delegates.c: Rebuild.
6904 * target.c (update_current_target): Don't inherit or default
6905 to_supports_enable_disable_tracepoint.
6906 * target.h (struct target_ops)
6907 <to_supports_enable_disable_tracepoint>: Use
6908 TARGET_DEFAULT_RETURN.
6910 2014-02-19 Tom Tromey <tromey@redhat.com>
6912 * target-delegates.c: Rebuild.
6913 * target.c (update_current_target): Don't inherit or default
6914 to_supports_multi_process.
6915 * target.h (struct target_ops) <to_supports_multi_process>: Use
6916 TARGET_DEFAULT_RETURN.
6918 2014-02-19 Tom Tromey <tromey@redhat.com>
6920 * target-delegates.c: Rebuild.
6921 * target.c (update_current_target): Don't inherit or default
6922 to_get_ada_task_ptid.
6923 * target.h (struct target_ops) <to_get_ada_task_ptid>: Use
6924 TARGET_DEFAULT_FUNC.
6926 2014-02-19 Tom Tromey <tromey@redhat.com>
6928 * target-delegates.c: Rebuild.
6929 * target.c (update_current_target): Don't inherit or default
6930 to_thread_architecture.
6931 * target.h (struct target_ops) <to_thread_architecture>: Use
6932 TARGET_DEFAULT_FUNC.
6934 2014-02-19 Tom Tromey <tromey@redhat.com>
6936 * target-delegates.c: Rebuild.
6937 * target.c (update_current_target): Don't inherit or default
6938 to_execution_direction.
6939 * target.h (struct target_ops) <to_execution_direction>: Use
6940 TARGET_DEFAULT_FUNC.
6942 2014-02-19 Tom Tromey <tromey@redhat.com>
6944 * target-delegates.c: Rebuild.
6945 * target.c (update_current_target): Don't inherit or default
6946 to_can_execute_reverse.
6947 * target.h (struct target_ops) <to_can_execute_reverse>: Use
6948 TARGET_DEFAULT_RETURN.
6949 (target_can_execute_reverse): Unconditionally delegate.
6951 2014-02-19 Tom Tromey <tromey@redhat.com>
6953 * target-delegates.c: Rebuild.
6954 * target.c (update_current_target): Don't inherit or default
6956 (dummy_goto_bookmark): Remove.
6957 (init_dummy_target): Don't inherit or default to_goto_bookmark.
6958 * target.h (struct target_ops) <to_goto_bookmark>: Use
6959 TARGET_DEFAULT_NORETURN.
6961 2014-02-19 Tom Tromey <tromey@redhat.com>
6963 * target-delegates.c: Rebuild.
6964 * target.c (update_current_target): Don't inherit or default
6966 (dummy_get_bookmark): Remove.
6967 (init_dummy_target): Don't inherit or default to_get_bookmark.
6968 * target.h (struct target_ops) <to_get_bookmark>: Use
6969 TARGET_DEFAULT_NORETURN
6971 2014-02-19 Tom Tromey <tromey@redhat.com>
6973 * target-delegates.c: Rebuild.
6974 * target.c (update_current_target): Don't inherit or default
6975 to_make_corefile_notes.
6976 (init_dummy_target): Don't initialize to_make_corefile_notes.
6977 * target.h (struct target_ops) <to_make_corefile_notes>: Use
6978 TARGET_DEFAULT_FUNC.
6980 2014-02-19 Tom Tromey <tromey@redhat.com>
6982 * target-delegates.c: Rebuild.
6983 * target.c (update_current_target): Don't inherit or default
6984 to_find_memory_regions.
6985 (init_dummy_target): Don't initialize to_find_memory_regions.
6986 * target.h (struct target_ops) <to_find_memory_regions>: Use
6987 TARGET_DEFAULT_FUNC.
6989 2014-02-19 Tom Tromey <tromey@redhat.com>
6991 * target-delegates.c: Rebuild.
6992 * target.c (update_current_target): Don't inherit or default
6994 * target.h (struct target_ops) <to_log_command>: Use
6995 TARGET_DEFAULT_IGNORE.
6996 (target_log_command): Unconditionally delegate.
6998 2014-02-19 Tom Tromey <tromey@redhat.com>
7000 * target-delegates.c: Rebuild.
7001 * target.c (update_current_target): Don't inherit or default
7002 to_pid_to_exec_file.
7003 * target.h (struct target_ops) <to_pid_to_exec_file>: Use
7004 TARGET_DEFAULT_RETURN.
7006 2014-02-19 Tom Tromey <tromey@redhat.com>
7008 * target-delegates.c: Rebuild.
7009 * target.c (update_current_target): Don't inherit or default
7011 (target_thread_name): Unconditionally delegate.
7012 * target.h (struct target_ops) <to_thread_name>: Use
7013 TARGET_DEFAULT_RETURN.
7015 2014-02-19 Tom Tromey <tromey@redhat.com>
7017 * target-delegates.c: Rebuild.
7018 * target.c (update_current_target): Don't inherit or default
7019 to_extra_thread_info.
7020 * target.h (struct target_ops) <to_extra_thread_info>: Use
7021 TARGET_DEFAULT_RETURN.
7023 2014-02-19 Tom Tromey <tromey@redhat.com>
7025 * target-delegates.c: Rebuild.
7026 * target.c (update_current_target): Don't inherit or default
7028 * target.h (struct target_ops) <to_has_exited>: Use
7029 TARGET_DEFAULT_RETURN..
7031 2014-02-19 Tom Tromey <tromey@redhat.com>
7033 * target-delegates.c: Rebuild.
7034 * target.c (update_current_target): Don't inherit or default
7035 to_set_syscall_catchpoint.
7036 (return_one): Remove.
7037 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Use
7038 TARGET_DEFAULT_RETURN.
7040 2014-02-19 Tom Tromey <tromey@redhat.com>
7042 * target-delegates.c: Rebuild.
7043 * target.c (update_current_target): Don't inherit or default
7044 to_insert_exec_catchpoint.
7045 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7046 TARGET_DEFAULT_RETURN.
7048 2014-01-08 Tom Tromey <tromey@redhat.com>
7050 * target-delegates.c: Rebuild.
7051 * target.c (update_current_target): Don't inherit or default
7052 to_insert_exec_catchpoint.
7053 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Use
7054 TARGET_DEFAULT_RETURN.
7056 2014-02-19 Tom Tromey <tromey@redhat.com>
7058 * target-delegates.c: Rebuild.
7059 * target.c (update_current_target): Don't inherit or default
7060 to_remove_vfork_catchpoint.
7061 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Use
7062 TARGET_DEFAULT_RETURN.
7064 2014-02-19 Tom Tromey <tromey@redhat.com>
7066 * target-delegates.c: Rebuild.
7067 * target.c (update_current_target): Don't inherit or default
7068 to_insert_vfork_catchpoint.
7069 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Use
7070 TARGET_DEFAULT_RETURN.
7072 2014-02-19 Tom Tromey <tromey@redhat.com>
7074 * target-delegates.c: Rebuild.
7075 * target.c (update_current_target): Don't inherit or default
7076 to_remove_fork_catchpoint.
7077 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Use
7078 TARGET_DEFAULT_RETURN.
7080 2014-02-19 Tom Tromey <tromey@redhat.com>
7082 * target-delegates.c: Rebuild.
7083 * target.c (update_current_target): Don't inherit or default
7084 to_insert_fork_catchpoint.
7085 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Use
7086 TARGET_DEFAULT_RETURN.
7088 2014-02-19 Tom Tromey <tromey@redhat.com>
7090 * target-delegates.c: Rebuild.
7091 * target.c (update_current_target): Don't inherit or default
7092 to_post_startup_inferior.
7093 * target.h (struct target_ops) <to_post_startup_inferior>: Use
7094 TARGET_DEFAULT_IGNORE.
7096 2014-02-19 Tom Tromey <tromey@redhat.com>
7098 * target-delegates.c: Rebuild.
7099 * target.c (update_current_target): Don't inherit or default
7101 * target.h (struct target_ops) <to_load>: Use
7102 TARGET_DEFAULT_NORETURN.
7104 2014-02-19 Tom Tromey <tromey@redhat.com>
7106 * target-delegates.c: Rebuild.
7107 * target.c (update_current_target): Don't inherit or default
7109 * target.h (struct target_ops) <to_terminal_info>: Use
7110 TARGET_DEFAULT_FUNC.
7112 2014-02-19 Tom Tromey <tromey@redhat.com>
7114 * target-delegates.c: Rebuild.
7115 * target.c (update_current_target): Don't inherit or default
7116 to_terminal_save_ours.
7117 * target.h (struct target_ops) <to_terminal_save_ours>: Use
7118 TARGET_DEFAULT_IGNORE.
7120 2014-02-19 Tom Tromey <tromey@redhat.com>
7122 * target-delegates.c: Rebuild.
7123 * target.c (update_current_target): Don't inherit or default
7125 * target.h (struct target_ops) <to_terminal_ours>: Use
7126 TARGET_DEFAULT_IGNORE.
7128 2014-02-19 Tom Tromey <tromey@redhat.com>
7130 * target-delegates.c: Rebuild.
7131 * target.c (update_current_target): Don't inherit or default
7132 to_terminal_ours_for_output.
7133 * target.h (struct target_ops) <to_terminal_ours_for_output>: Use
7134 TARGET_DEFAULT_IGNORE.
7136 2014-02-19 Tom Tromey <tromey@redhat.com>
7138 * target-delegates.c: Rebuild.
7139 * target.c (update_current_target): Don't inherit or default
7140 to_terminal_inferior.
7141 * target.h (struct target_ops) <to_terminal_inferior>: Use
7142 TARGET_DEFAULT_IGNORE.
7144 2014-02-19 Tom Tromey <tromey@redhat.com>
7146 * target-delegates.c: Rebuild.
7147 * target.c (update_current_target): Don't inherit or default
7149 * target.h (struct target_ops) <to_terminal_init>: Use
7150 TARGET_DEFAULT_IGNORE.
7152 2014-02-19 Tom Tromey <tromey@redhat.com>
7154 * target-delegates.c: Rebuild.
7155 * target.c (update_current_target): Don't inherit or default
7156 to_can_accel_watchpoint_condition.
7157 * target.h (struct target_ops)
7158 <to_can_accel_watchpoint_condition>: Use TARGET_DEFAULT_RETURN.
7160 2014-02-19 Tom Tromey <tromey@redhat.com>
7162 * target-delegates.c: Rebuild.
7163 * target.c (update_current_target): Don't inherit or default
7164 to_region_ok_for_hw_watchpoint.
7165 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
7166 Use TARGET_DEFAULT_FUNC.
7168 2014-02-19 Tom Tromey <tromey@redhat.com>
7170 * target-delegates.c: Rebuild.
7171 * target.c (update_current_target): Don't inherit or default
7172 to_watchpoint_addr_within_range.
7173 * target.h (struct target_ops) <to_watchpoint_addr_within_range>:
7174 Use TARGET_DEFAULT_FUNC.
7176 2014-02-19 Tom Tromey <tromey@redhat.com>
7178 * target-delegates.c: Rebuild.
7179 * target.c (update_current_target): Don't inherit or default
7180 to_remove_watchpoint.
7181 * target.h (struct target_ops) <to_remove_watchpoint>: Use
7182 TARGET_DEFAULT_NORETURN.
7184 2014-02-19 Tom Tromey <tromey@redhat.com>
7186 * target-delegates.c: Rebuild.
7187 * target.c (update_current_target): Don't inherit or default
7188 to_insert_watchpoint.
7189 * target.h (struct target_ops) <to_insert_watchpoint>: Use
7190 TARGET_DEFAULT_RETURN.
7192 2014-02-19 Tom Tromey <tromey@redhat.com>
7194 * target-delegates.c: Rebuild.
7195 * target.c (update_current_target): Don't inherit or default
7196 to_remove_hw_breakpoint.
7197 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Use
7198 TARGET_DEFAULT_RETURN.
7200 2014-02-19 Tom Tromey <tromey@redhat.com>
7202 * target-delegates.c: Rebuild.
7203 * target.c (update_current_target): Don't inherit or default
7204 to_insert_hw_breakpoint.
7205 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Use
7206 TARGET_DEFAULT_RETURN.
7208 2014-02-19 Tom Tromey <tromey@redhat.com>
7210 * target-delegates.c: Rebuild.
7211 * target.c (update_current_target): Don't inherit or default
7212 to_can_use_hw_breakpoint.
7213 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Use
7214 TARGET_DEFAULT_RETURN.
7216 2014-02-19 Tom Tromey <tromey@redhat.com>
7218 * target-delegates.c: Rebuild.
7219 * target.c (update_current_target): Don't inherit or default
7221 * target.h (struct target_ops) <to_files_info>: Use
7222 TARGET_DEFAULT_IGNORE.
7224 2014-02-19 Tom Tromey <tromey@redhat.com>
7226 * target-delegates.c: Rebuild.
7227 * target.c (update_current_target): Don't inherit or default
7229 * target.h (struct target_ops) <to_store>: Use
7230 TARGET_DEFAULT_NORETURN.
7232 2014-02-19 Tom Tromey <tromey@redhat.com>
7234 * target-delegates.c: Rebuild.
7235 * target.c (update_current_target): Don't inherit or default
7237 * target.h (struct target_ops) <to_post_attach>: Use
7238 TARGET_DEFAULT_IGNORE.
7240 2014-02-19 Tom Tromey <tromey@redhat.com>
7242 * target-delegates.c: Rebuild.
7243 * target.c (update_current_target): Don't inherit or default
7245 (default_rcmd): New function.
7246 (do_monitor_command): Unconditionally delegate.
7247 * target.h (struct target_ops) <to_rmcd>: Use
7248 TARGET_DEFAULT_FUNC.
7250 2014-02-19 Tom Tromey <tromey@redhat.com>
7252 * target-delegates.c: Rebuild.
7253 * target.c (init_dummy_target): Don't initialize to_attach.
7254 (target_attach): Unconditionally delegate.
7255 * target.h (struct target_ops) <to_attach>: Use
7256 TARGET_DEFAULT_FUNC.
7258 2014-02-19 Tom Tromey <tromey@redhat.com>
7260 * target-delegates.c: Rebuild.
7261 * target.c (target_detach): Unconditionally delegate.
7262 (init_dummy_target): Don't initialize to_detach.
7263 * target.h (struct target_ops) <to_detach>: Use
7264 TARGET_DEFAULT_IGNORE.
7266 2014-02-19 Tom Tromey <tromey@redhat.com>
7268 * target.h (struct target_ops) <to_augmented_libraries_svr4_read>:
7270 (target_augmented_libraries_svr4_read): Add argument.
7271 * target.c (update_current_target): Update.
7272 * remote.c (remote_augmented_libraries_svr4_read): Add 'self'
7275 2014-02-19 Tom Tromey <tromey@redhat.com>
7277 * target.h (struct target_ops) <to_call_history_range>: Add
7279 * target.c (target_call_history_range): Add argument.
7280 * record-btrace.c (record_btrace_call_history_range): Add 'self'
7282 (record_btrace_call_history_from): Update.
7284 2014-02-19 Tom Tromey <tromey@redhat.com>
7286 * target.h (struct target_ops) <to_call_history_from>: Add
7288 * target.c (target_call_history_from): Add argument.
7289 * record-btrace.c (record_btrace_call_history_from): Add 'self'
7292 2014-02-19 Tom Tromey <tromey@redhat.com>
7294 * target.h (struct target_ops) <to_call_history>: Add argument.
7295 * target.c (target_call_history): Add argument.
7296 * record-btrace.c (record_btrace_call_history): Add 'self'
7299 2014-02-19 Tom Tromey <tromey@redhat.com>
7301 * target.h (struct target_ops) <to_insn_history_range>: Add
7303 * target.c (target_insn_history_range): Add argument.
7304 * record-btrace.c (record_btrace_insn_history_range): Add 'self'
7306 (record_btrace_insn_history_from): Update.
7308 2014-02-19 Tom Tromey <tromey@redhat.com>
7310 * target.h (struct target_ops) <to_insn_history_from>: Add
7312 * target.c (target_insn_history_from): Add argument.
7313 * record-btrace.c (record_btrace_insn_history_from): Add 'self'
7316 2014-02-19 Tom Tromey <tromey@redhat.com>
7318 * target.h (struct target_ops) <to_insn_history>: Add argument.
7319 * target.c (target_insn_history): Add argument.
7320 * record-btrace.c (record_btrace_insn_history): Add 'self'
7323 2014-02-19 Tom Tromey <tromey@redhat.com>
7325 * target.h (struct target_ops) <to_goto_record>: Add argument.
7326 * target.c (target_goto_record): Add argument.
7327 * record-full.c (record_full_goto): Add 'self' argument.
7328 * record-btrace.c (record_btrace_goto): Add 'self' argument.
7330 2014-02-19 Tom Tromey <tromey@redhat.com>
7332 * target.h (struct target_ops) <to_goto_record_end>: Add argument.
7333 * target.c (target_goto_record_end): Add argument.
7334 * record-full.c (record_full_goto_end): Add 'self' argument.
7335 * record-btrace.c (record_btrace_goto_end): Add 'self' argument.
7337 2014-02-19 Tom Tromey <tromey@redhat.com>
7339 * target.h (struct target_ops) <to_goto_record_begin>: Add
7341 * target.c (target_goto_record_begin): Add argument.
7342 * record-full.c (record_full_goto_begin): Add 'self' argument.
7343 * record-btrace.c (record_btrace_goto_begin): Add 'self'
7346 2014-02-19 Tom Tromey <tromey@redhat.com>
7348 * target.h (struct target_ops) <to_record_is_replaying>: Add
7350 * target.c (target_record_is_replaying): Add argument.
7351 * record-full.c (record_full_is_replaying): Add 'self' argument.
7352 * record-btrace.c (record_btrace_is_replaying): Add 'self'
7354 (record_btrace_xfer_partial, record_btrace_store_registers)
7355 (record_btrace_prepare_to_store, record_btrace_resume)
7356 (record_btrace_wait, record_btrace_decr_pc_after_break)
7357 (record_btrace_find_new_threads, record_btrace_thread_alive):
7360 2014-02-19 Tom Tromey <tromey@redhat.com>
7362 * target.h (struct target_ops) <to_delete_record>: Add argument.
7363 * target.c (target_delete_record): Add argument.
7364 * record-full.c (record_full_delete): Add 'self' argument.
7366 2014-02-19 Tom Tromey <tromey@redhat.com>
7368 * target.h (struct target_ops) <to_save_record>: Add argument.
7369 * target.c (target_save_record): Add argument.
7370 * record-full.c (record_full_save): Add 'self' argument.
7371 (record_full_save): Add 'self' argument.
7373 2014-02-19 Tom Tromey <tromey@redhat.com>
7375 * target.h (struct target_ops) <to_info_record>: Add argument.
7376 * target.c (target_info_record): Add argument.
7377 * record.c (info_record_command): Add argument.
7378 * record-full.c (record_full_info): Add 'self' argument.
7379 * record-btrace.c (record_btrace_info): Add 'self' argument.
7381 2014-02-19 Tom Tromey <tromey@redhat.com>
7383 * target.h (struct target_ops) <to_stop_recording>: Add argument.
7384 * target.c (target_stop_recording): Add argument.
7385 * record.c (record_stop): Add argument.
7386 * record-btrace.c (record_btrace_stop_recording): Add 'self'
7389 2014-02-19 Tom Tromey <tromey@redhat.com>
7391 * target.h (struct target_ops) <to_read_btrace>: Add argument.
7392 * target.c (struct target_ops) <to_read_btrace>: Add argument.
7393 * remote.c (struct target_ops) <to_read_btrace>: Add 'self'
7395 * amd64-linux-nat.c (amd64_linux_read_btrace): New function.
7396 (_initialize_amd64_linux_nat): Use it.
7397 * i386-linux-nat.c (i386_linux_read_btrace): New function.
7398 (_initialize_i386_linux_nat): Use it.
7400 2014-02-19 Tom Tromey <tromey@redhat.com>
7402 * target.h (struct target_ops) <to_teardown_btrace>: Add argument.
7403 * target.c (target_teardown_btrace): Add argument.
7404 * remote.c (remote_teardown_btrace): Add 'self' argument.
7405 * i386-linux-nat.c (i386_linux_teardown_btrace): Add 'self'
7407 * amd64-linux-nat.c (amd64_linux_teardown_btrace): Add 'self'
7410 2014-02-19 Tom Tromey <tromey@redhat.com>
7412 * target.h (struct target_ops) <to_disable_btrace>: Add argument.
7413 * target.c (target_disable_btrace): Add argument.
7414 * remote.c (remote_disable_btrace): Add 'self' argument.
7415 * i386-linux-nat.c (i386_linux_disable_btrace): Add 'self'
7417 * amd64-linux-nat.c (amd64_linux_disable_btrace): Add 'self'
7420 2014-02-19 Tom Tromey <tromey@redhat.com>
7422 * target.h (struct target_ops) <to_enable_btrace>: Add argument.
7423 * target.c (target_enable_btrace): Add argument.
7424 * remote.c (remote_enable_btrace): Add 'self' argument.
7425 * i386-linux-nat.c (i386_linux_enable_btrace): Add 'self'
7427 * amd64-linux-nat.c (amd64_linux_enable_btrace): Add 'self'
7430 2014-02-19 Tom Tromey <tromey@redhat.com>
7432 * target.h (struct target_ops) <to_can_use_agent>: Add argument.
7433 (target_can_use_agent): Add argument.
7434 * target.c (update_current_target): Update.
7435 * remote.c (remote_can_use_agent): Add 'self' argument.
7436 * inf-child.c (inf_child_can_use_agent): Add 'self' argument.
7438 2014-02-19 Tom Tromey <tromey@redhat.com>
7440 * target.h (struct target_ops) <to_use_agent>: Add argument.
7441 (target_use_agent): Add argument.
7442 * target.c (update_current_target): Update.
7443 * remote.c (remote_use_agent): Add 'self' argument.
7444 * inf-child.c (inf_child_use_agent): Add 'self' argument.
7446 2014-02-19 Tom Tromey <tromey@redhat.com>
7448 * tracepoint.c (tfile_traceframe_info): Add 'self' argument.
7449 * target.h (struct target_ops) <to_traceframe_info>: Add argument.
7450 (target_traceframe_info): Add argument.
7451 * target.c (update_current_target): Update.
7452 * remote.c (remote_traceframe_info): Add 'self' argument.
7453 * ctf.c (ctf_traceframe_info): Add 'self' argument.
7455 2014-02-19 Tom Tromey <tromey@redhat.com>
7457 * target.h (target_static_tracepoint_markers_by_strid): Add
7459 (struct target_ops) <to_static_tracepoint_markers_by_strid>: Add
7461 * target.c (update_current_target): Update.
7462 * remote.c (struct target_ops)
7463 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7464 * linux-nat.c (struct target_ops)
7465 <to_static_tracepoint_markers_by_strid>: Add 'self' argument.
7467 2014-02-19 Tom Tromey <tromey@redhat.com>
7469 * target.h (struct target_ops) <to_static_tracepoint_marker_at>:
7471 (target_static_tracepoint_marker_at): Add argument.
7472 * target.c (update_current_target): Update.
7473 * remote.c (remote_static_tracepoint_marker_at): Add 'self'
7476 2014-02-19 Tom Tromey <tromey@redhat.com>
7478 * target.h (struct target_ops) <to_set_permissions>: Add argument.
7479 (target_set_permissions): Add argument.
7480 * target.c (update_current_target): Update.
7481 * remote.c (remote_set_permissions): Add 'self' argument.
7482 (remote_start_remote): Update.
7484 2014-02-19 Tom Tromey <tromey@redhat.com>
7486 * windows-nat.c (windows_get_tib_address): Add 'self' argument.
7487 * target.h (struct target_ops) <to_get_tib_address>: Add argument.
7488 (target_get_tib_address): Add argument.
7489 * target.c (update_current_target): Update.
7490 * remote.c (remote_get_tib_address): Add 'self' argument.
7492 2014-02-19 Tom Tromey <tromey@redhat.com>
7494 * target.h (struct target_ops) <to_set_trace_notes>: Add argument.
7495 (target_set_trace_notes): Add argument.
7496 * target.c (update_current_target): Update.
7497 * remote.c (remote_set_trace_notes): Add 'self' argument.
7499 2014-02-19 Tom Tromey <tromey@redhat.com>
7501 * target.h (struct target_ops) <to_set_trace_buffer_size>: Add
7503 (target_set_trace_buffer_size): Add argument.
7504 * target.c (update_current_target): Update.
7505 * remote.c (remote_set_trace_buffer_size): Add 'self' argument.
7507 2014-02-19 Tom Tromey <tromey@redhat.com>
7509 * target.h (struct target_ops) <to_set_circular_trace_buffer>: Add
7511 (target_set_circular_trace_buffer): Add argument.
7512 * target.c (update_current_target): Update.
7513 * remote.c (remote_set_circular_trace_buffer): Add 'self'
7516 2014-02-19 Tom Tromey <tromey@redhat.com>
7518 * target.h (struct target_ops) <to_set_disconnected_tracing>: Add
7520 (target_set_disconnected_tracing): Add argument.
7521 * target.c (update_current_target): Update.
7522 * remote.c (remote_set_disconnected_tracing): Add 'self' argument.
7524 2014-02-19 Tom Tromey <tromey@redhat.com>
7526 * target.h (struct target_ops)
7527 <to_get_min_fast_tracepoint_insn_len>: Add argument.
7528 (target_get_min_fast_tracepoint_insn_len): Add argument.
7529 * target.c (update_current_target): Update.
7530 * remote.c (remote_get_min_fast_tracepoint_insn_len): Add 'self'
7533 2014-02-19 Tom Tromey <tromey@redhat.com>
7535 * target.h (struct target_ops) <to_get_raw_trace_data>: Add
7537 (target_get_raw_trace_data): Add argument.
7538 * target.c (update_current_target): Update.
7539 * remote.c (remote_get_raw_trace_data): Add 'self' argument.
7541 2014-02-19 Tom Tromey <tromey@redhat.com>
7543 * target.h (struct target_ops) <to_upload_trace_state_variables>:
7545 (target_upload_trace_state_variables): Add argument.
7546 * target.c (update_current_target): Update.
7547 * remote.c (remote_upload_trace_state_variables): Add 'self'
7549 (remote_start_remote): Update.
7551 2014-02-19 Tom Tromey <tromey@redhat.com>
7553 * target.h (struct target_ops) <to_upload_tracepoints>: Add
7555 (target_upload_tracepoints): Add argument.
7556 * target.c (update_current_target): Update.
7557 * remote.c (remote_upload_tracepoints): Add 'self' argument.
7558 (remote_start_remote): Update.
7560 2014-02-19 Tom Tromey <tromey@redhat.com>
7562 * target.h (struct target_ops) <to_save_trace_data>: Add argument.
7563 (target_save_trace_data): Add argument.
7564 * target.c (update_current_target): Update.
7565 * remote.c (remote_save_trace_data): Add 'self' argument.
7567 2014-02-19 Tom Tromey <tromey@redhat.com>
7569 * tracepoint.c (tfile_get_trace_state_variable_value): Add 'self'
7571 * target.h (struct target_ops)
7572 <to_get_trace_state_variable_value>: Add argument.
7573 (target_get_trace_state_variable_value): Add argument.
7574 * target.c (update_current_target): Update.
7575 * remote.c (remote_get_trace_state_variable_value): Add 'self'
7577 * ctf.c (ctf_get_trace_state_variable_value): Add 'self' argument.
7579 2014-02-19 Tom Tromey <tromey@redhat.com>
7581 * tracepoint.c (tfile_trace_find): Add 'self' argument.
7582 * target.h (struct target_ops) <to_trace_find>: Add argument.
7583 (target_trace_find): Add argument.
7584 * target.c (update_current_target): Update.
7585 * remote.c (remote_trace_find): Add 'self' argument.
7586 * ctf.c (ctf_trace_find): Add 'self' argument.
7588 2014-02-19 Tom Tromey <tromey@redhat.com>
7590 * target.h (struct target_ops) <to_trace_stop>: Add argument.
7591 (target_trace_stop): Add argument.
7592 * target.c (update_current_target): Update.
7593 * remote.c (remote_trace_stop): Add 'self' argument.
7595 2014-02-19 Tom Tromey <tromey@redhat.com>
7597 * tracepoint.c (tfile_get_tracepoint_status): Add 'self' argument.
7598 * target.h (struct target_ops) <to_get_tracepoint_status>: Add
7600 (target_get_tracepoint_status): Add argument.
7601 * target.c (update_current_target): Update.
7602 * remote.c (remote_get_tracepoint_status): Add 'self' argument.
7604 2014-02-19 Tom Tromey <tromey@redhat.com>
7606 * tracepoint.c (tfile_get_trace_status): Add 'self' argument.
7607 * target.h (struct target_ops) <to_get_trace_status>: Add
7609 (target_get_trace_status): Add argument.
7610 * target.c (update_current_target): Update.
7611 * remote.c (remote_get_trace_status): Add 'self' argument.
7612 (remote_start_remote, remote_can_download_tracepoint): Update.
7613 * ctf.c (ctf_get_trace_status): Add 'self' argument.
7615 2014-02-19 Tom Tromey <tromey@redhat.com>
7617 * target.h (struct target_ops) <to_trace_start>: Add argument.
7618 (target_trace_start): Add argument.
7619 * target.c (update_current_target): Update.
7620 * remote.c (remote_trace_start): Add 'self' argument.
7622 2014-02-19 Tom Tromey <tromey@redhat.com>
7624 * target.h (struct target_ops) <to_trace_set_readonly_regions>:
7626 (target_trace_set_readonly_regions): Add argument.
7627 * target.c (update_current_target): Update.
7628 * remote.c (remote_trace_set_readonly_regions): Add 'self'
7631 2014-02-19 Tom Tromey <tromey@redhat.com>
7633 * target.h (struct target_ops) <to_disable_tracepoint>: Add
7635 (target_disable_tracepoint): Add argument.
7636 * target.c (update_current_target): Update.
7637 * remote.c (remote_disable_tracepoint): Add 'self' argument.
7639 2014-02-19 Tom Tromey <tromey@redhat.com>
7641 * target.h (struct target_ops) <to_enable_tracepoint>: Add
7643 (target_enable_tracepoint): Add argument.
7644 * target.c (update_current_target): Update.
7645 * remote.c (remote_enable_tracepoint): Add 'self' argument.
7647 2014-02-19 Tom Tromey <tromey@redhat.com>
7649 * target.h (struct target_ops) <to_download_trace_state_variable>:
7651 (target_download_trace_state_variable): Add argument.
7652 * target.c (update_current_target): Update.
7653 * remote.c (remote_download_trace_state_variable): Add 'self'
7656 2014-02-19 Tom Tromey <tromey@redhat.com>
7658 * target.h (struct target_ops) <to_can_download_tracepoint>: Add
7660 (target_can_download_tracepoint): Add argument.
7661 * target.c (update_current_target): Update.
7662 * remote.c (remote_can_download_tracepoint): Add 'self' argument.
7664 2014-02-19 Tom Tromey <tromey@redhat.com>
7666 * target.h (struct target_ops) <to_download_tracepoint>: Add
7668 (target_download_tracepoint): Add argument.
7669 * target.c (update_current_target): Update.
7670 * remote.c (remote_download_tracepoint): Add 'self' argument.
7672 2014-02-19 Tom Tromey <tromey@redhat.com>
7674 * target.h (struct target_ops) <to_trace_init>: Add argument.
7675 (target_trace_init): Add argument.
7676 * target.c (update_current_target): Update.
7677 * remote.c (remote_trace_init): Add 'self' argument.
7679 2014-02-19 Tom Tromey <tromey@redhat.com>
7681 * target.h (struct target_ops) <to_fileio_readlink>: Add argument.
7682 * target.c (target_fileio_readlink): Add argument.
7683 * remote.c (remote_hostio_readlink): Add 'self' argument.
7684 * inf-child.c (inf_child_fileio_readlink): Add 'self' argument.
7686 2014-02-19 Tom Tromey <tromey@redhat.com>
7688 * target.h (struct target_ops) <to_fileio_unlink>: Add argument.
7689 * target.c (target_fileio_unlink): Add argument.
7690 * remote.c (remote_hostio_unlink): Add 'self' argument.
7691 (remote_file_delete): Update.
7692 * inf-child.c (inf_child_fileio_unlink): Add 'self' argument.
7694 2014-02-19 Tom Tromey <tromey@redhat.com>
7696 * target.h (struct target_ops) <to_fileio_close>: Add argument.
7697 * target.c (target_fileio_close): Add argument.
7698 * remote.c (remote_hostio_close): Add 'self' argument.
7699 (remote_hostio_close_cleanup): Update.
7700 (remote_bfd_iovec_close, remote_file_put, remote_file_get):
7702 * inf-child.c (inf_child_fileio_close): Add 'self' argument.
7704 2014-02-19 Tom Tromey <tromey@redhat.com>
7706 * target.h (struct target_ops) <to_fileio_pread>: Add argument.
7707 * target.c (target_fileio_pread): Add argument.
7708 * remote.c (remote_hostio_pread): Add 'self' argument.
7709 (remote_bfd_iovec_pread, remote_file_get): Update.
7710 * inf-child.c (inf_child_fileio_pread): Add 'self' argument.
7712 2014-02-19 Tom Tromey <tromey@redhat.com>
7714 * target.h (struct target_ops) <to_fileio_pwrite>: Add argument.
7715 * target.c (target_fileio_pwrite): Add argument.
7716 * remote.c (remote_hostio_pwrite): Add 'self' argument.
7717 (remote_file_put): Update.
7718 * inf-child.c (inf_child_fileio_pwrite): Add 'self' argument.
7720 2014-02-19 Tom Tromey <tromey@redhat.com>
7722 * target.h (struct target_ops) <to_fileio_open>: Add argument.
7723 * target.c (target_fileio_open): Add argument.
7724 * remote.c (remote_hostio_open): Add 'self' argument.
7725 (remote_bfd_iovec_open): Add 'self' argument.
7726 (remote_file_put): Add 'self' argument.
7727 (remote_file_get): Add 'self' argument.
7728 * inf-child.c (inf_child_fileio_open): Add 'self' argument.
7730 2014-02-19 Tom Tromey <tromey@redhat.com>
7732 * target.h (struct target_ops) <to_can_run_breakpoint_commands>:
7734 (target_can_run_breakpoint_commands): Add argument.
7735 * target.c (update_current_target): Update.
7736 * remote.c (remote_can_run_breakpoint_commands): Add 'self'
7738 (remote_insert_breakpoint): Add 'self' argument.
7739 (remote_insert_hw_breakpoint): Add 'self' argument.
7740 (remote_can_run_breakpoint_commands): Add 'self' argument.
7742 2014-02-19 Tom Tromey <tromey@redhat.com>
7744 * target.h (struct target_ops)
7745 <to_supports_evaluation_of_breakpoint_conditions>: Add argument.
7746 (target_supports_evaluation_of_breakpoint_conditions): Add
7748 * target.c (update_current_target): Update.
7749 * remote.c (remote_supports_cond_breakpoints): Add 'self'
7751 (remote_insert_breakpoint): Add 'self' argument.
7752 (remote_insert_hw_breakpoint): Add 'self' argument.
7753 (remote_supports_cond_breakpoints): Add 'self' argument.
7755 2014-02-19 Tom Tromey <tromey@redhat.com>
7757 * target.h (struct target_ops) <to_supports_string_tracing>: Add
7759 (target_supports_string_tracing): Add argument.
7760 * target.c (update_current_target): Update.
7761 * remote.c (remote_supports_string_tracing): Add 'self' argument.
7763 2014-02-19 Tom Tromey <tromey@redhat.com>
7765 * target.h (struct target_ops)
7766 <to_supports_disable_randomization>: Add argument.
7767 * target.c (find_default_supports_disable_randomization): Add
7769 (target_supports_disable_randomization): Add argument.
7770 (find_default_supports_disable_randomization): Add 'self'
7772 * remote.c (extended_remote_supports_disable_randomization): Add
7774 (remote_supports_disable_randomization): Add 'self' argument.
7775 (extended_remote_create_inferior): Update.
7776 * linux-nat.c (linux_nat_supports_disable_randomization): Add
7779 2014-02-19 Tom Tromey <tromey@redhat.com>
7781 * target.h (struct target_ops)
7782 <to_supports_enable_disable_tracepoint>: Add argument.
7783 (target_supports_enable_disable_tracepoint): Add argument.
7784 * target.c (update_current_target): Update.
7785 * remote.c (remote_supports_enable_disable_tracepoint): Add 'self'
7788 2014-02-19 Tom Tromey <tromey@redhat.com>
7790 * target.h (struct target_ops) <to_supports_multi_process>: Add
7792 (target_supports_multi_process): Add argument.
7793 * target.c (update_current_target): Update.
7794 * remote.c (remote_supports_multi_process): Add 'self' argument.
7795 * linux-nat.c (linux_nat_supports_multi_process): Add 'self'
7797 * darwin-nat.c (darwin_supports_multi_process): Add 'self'
7800 2014-02-19 Tom Tromey <tromey@redhat.com>
7802 * target.h (struct target_ops) <to_execution_direction>: Add
7804 (target_execution_direction): Add argument.
7805 * target.c (default_execution_direction): Add 'self' argument.
7806 * record-full.c (record_full_execution_direction): Add 'self'
7809 2014-02-19 Tom Tromey <tromey@redhat.com>
7811 * target.h (struct target_ops) <to_can_execute_reverse>: Add
7813 (target_can_execute_reverse): Add argument.
7814 * remote.c (remote_can_execute_reverse): Add 'self' argument.
7815 * record-full.c (record_full_can_execute_reverse): Add 'self'
7817 * record-btrace.c (record_btrace_can_execute_reverse): Add 'self'
7820 2014-02-19 Tom Tromey <tromey@redhat.com>
7822 * windows-nat.c (windows_get_ada_task_ptid): Add 'self' argument.
7823 * target.h (struct target_ops) <to_get_ada_task_ptid>: Add
7825 (target_get_ada_task_ptid): Add argument.
7826 * target.c (update_current_target): Update.
7827 (default_get_ada_task_ptid): Add 'self' argument.
7828 * sol-thread.c (sol_get_ada_task_ptid): Add 'self' argument.
7829 * remote.c (remote_get_ada_task_ptid): Add 'self' argument.
7830 * ravenscar-thread.c (ravenscar_get_ada_task_ptid): Add 'self'
7832 * linux-thread-db.c (thread_db_get_ada_task_ptid): Add 'self'
7834 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): Add 'self'
7836 * dec-thread.c (dec_thread_get_ada_task_ptid): Add 'self'
7838 * darwin-nat.c (darwin_get_ada_task_ptid): Add 'self' argument.
7839 * aix-thread.c (aix_thread_get_ada_task_ptid): Add 'self'
7842 2014-02-19 Tom Tromey <tromey@redhat.com>
7844 * target.h (struct target_ops) <to_goto_bookmark>: Add argument.
7845 (target_goto_bookmark): Add argument.
7846 * target.c (dummy_goto_bookmark): Add 'self' argument.
7847 * record-full.c (record_full_goto_bookmark): Add 'self' argument.
7849 2014-02-19 Tom Tromey <tromey@redhat.com>
7851 * target.h (struct target_ops) <to_get_bookmark>: Add argument.
7852 (target_get_bookmark): Add argument.
7853 * target.c (dummy_get_bookmark): Add 'self' argument.
7854 * record-full.c (record_full_get_bookmark): Add 'self' argument.
7856 2014-02-19 Tom Tromey <tromey@redhat.com>
7858 * target.h (struct target_ops) <to_make_corefile_notes>: Add
7860 (target_make_corefile_notes): Add argument.
7861 * target.c (dummy_make_corefile_notes): Add 'self' argument.
7862 * procfs.c (procfs_make_note_section): Add 'self' argument.
7863 (procfs_make_note_section): Add 'self' argument.
7864 (procfs_make_note_section): Add 'self' argument.
7865 * linux-nat.c (linux_nat_make_corefile_notes): Add 'self'
7867 * fbsd-nat.h (fbsd_make_corefile_notes): Add 'self' argument.
7868 * fbsd-nat.c (fbsd_make_corefile_notes): Add 'self' argument.
7869 * exec.c (exec_make_note_section): Add 'self' argument.
7870 (exec_make_note_section): Add 'self' argument.
7872 2014-02-19 Tom Tromey <tromey@redhat.com>
7874 * target.h (struct target_ops) <to_find_memory_regions>: Add
7876 (target_find_memory_regions): Add argument.
7877 * target.c (dummy_find_memory_regions): Add 'self' argument.
7878 * procfs.c (proc_find_memory_regions): Add 'self' argument.
7879 * gnu-nat.c (gnu_find_memory_regions): Add 'self' argument.
7880 * fbsd-nat.h (fbsd_find_memory_regions): Add 'self' argument.
7881 * fbsd-nat.c (fbsd_find_memory_regions): Add 'self' argument.
7882 * exec. (exec_do_find_memory_regions): New global.
7883 (exec_set_find_memory_regions): Rewrite.
7884 (exec_find_memory_regions): New function.
7885 (init_exec_ops): Use exec_find_memory_regions.
7887 2014-02-19 Tom Tromey <tromey@redhat.com>
7889 * target.h (struct target_ops) <to_supports_non_stop>: Add
7891 * target.c (find_default_supports_non_stop): Add argument.
7892 (target_supports_non_stop): Add argument.
7893 (find_default_supports_non_stop): Add 'self' argument.
7894 * remote.c (remote_supports_non_stop): Add 'self' argument.
7895 * linux-nat.c (linux_nat_supports_non_stop): Add 'self' argument.
7897 2014-02-19 Tom Tromey <tromey@redhat.com>
7899 * target.h (struct target_ops) <to_log_command>: Add argument.
7900 (target_log_command): Add argument.
7901 * serial.h (serial_log_command): Add 'self' argument.
7902 * serial.c (serial_log_command): Add 'self' argument.
7904 2014-02-19 Tom Tromey <tromey@redhat.com>
7906 * windows-nat.c (windows_pid_to_exec_file): Add 'self' argument.
7907 * target.h (struct target_ops) <to_pid_to_exec_file>: Add
7909 (target_pid_to_exec_file): Add argument.
7910 * target.c (debug_to_pid_to_exec_file): Add argument.
7911 (update_current_target): Update.
7912 * nbsd-nat.h (nbsd_pid_to_exec_file): Add 'self' argument.
7913 * nbsd-nat.c (nbsd_pid_to_exec_file): Add 'self' argument.
7914 * linux-nat.c (linux_child_pid_to_exec_file): Add 'self' argument.
7915 (linux_handle_extended_wait): Update.
7916 * inf-child.c (inf_child_pid_to_exec_file): Add 'self' argument.
7917 * fbsd-nat.h (fbsd_pid_to_exec_file): Add 'self' argument.
7918 * fbsd-nat.c (fbsd_pid_to_exec_file): Add 'self' argument.
7919 * darwin-nat.c (darwin_pid_to_exec_file): Add 'self' argument.
7921 2014-02-19 Tom Tromey <tromey@redhat.com>
7923 * target.h (struct target_ops) <to_rcmd>: Add argument.
7924 (target_rcmd): Add argument.
7925 * target.c (debug_to_rcmd): Add argument.
7926 (update_current_target, do_monitor_command): Update.
7927 * remote.c (remote_rcmd): Add 'self' argument.
7928 * monitor.c (monitor_rcmd): Add 'self' argument.
7930 2014-02-19 Tom Tromey <tromey@redhat.com>
7932 * windows-nat.c (windows_stop): Add 'self' argument.
7933 * target.h (struct target_ops) <to_stop>: Add argument.
7934 * target.c (target_stop): Add argument.
7935 (debug_to_stop): Add argument.
7936 (update_current_target): Update.
7937 * remote.c (remote_stop): Add 'self' argument.
7938 * remote-sim.c (gdbsim_stop): Add 'self' argument.
7939 (gdbsim_cntrl_c): Update.
7940 * remote-m32r-sdi.c (m32r_stop): Add 'self' argument.
7941 * procfs.c (procfs_stop): Add 'self' argument.
7942 * nto-procfs.c (procfs_stop): Add 'self' argument.
7943 * monitor.c (monitor_stop): Add 'self' argument.
7944 (monitor_open): Update.
7945 * linux-nat.c (linux_nat_stop): Add argument.
7946 * inf-ptrace.c (inf_ptrace_stop): Add 'self' argument.
7947 * gnu-nat.c (gnu_stop): Add 'self' argument.
7948 * darwin-nat.c (darwin_stop): Add 'self' argument.
7950 2014-02-19 Tom Tromey <tromey@redhat.com>
7952 * target.h (struct target_ops) <to_thread_name>: Add argument.
7953 * target.c (target_thread_name): Add argument.
7954 (update_current_target): Update.
7955 * linux-nat.c (linux_nat_thread_name): Add 'self' argument.
7957 2014-02-19 Tom Tromey <tromey@redhat.com>
7959 * target.h (struct target_ops) <to_extra_thread_info>: Add
7961 (target_extra_thread_info): Add argument.
7962 * target.c (update_current_target): Update.
7963 * remote.c (remote_threads_extra_info): Add 'self' argument.
7964 * ravenscar-thread.c (ravenscar_extra_thread_info): Add 'self'
7966 * nto-tdep.h (nto_extra_thread_info): Add 'self' argument.
7967 * nto-tdep.c (nto_extra_thread_info): Add 'self' argument.
7968 * linux-thread-db.c (thread_db_extra_thread_info): Add 'self'
7970 * inf-ttrace.c (inf_ttrace_extra_thread_info): Add 'self'
7972 * bsd-uthread.c (bsd_uthread_extra_thread_info): Add 'self'
7974 * aix-thread.c (aix_thread_extra_thread_info): Add 'self'
7977 2014-02-19 Tom Tromey <tromey@redhat.com>
7979 * target.h (struct target_ops) <to_program_signals>: Add argument.
7980 * target.c (target_program_signals): Add argument.
7981 * remote.c (remote_program_signals): Add 'self' argument.
7983 2014-02-19 Tom Tromey <tromey@redhat.com>
7985 * target.h (struct target_ops) <to_pass_signals>: Add argument.
7986 * target.c (target_pass_signals): Add argument.
7987 * remote.c (remote_pass_signals): Add 'self' argument.
7988 (remote_start_remote): Update.
7989 * procfs.c (procfs_pass_signals): Add 'self' argument.
7990 * nto-procfs.c (procfs_pass_signals): Add 'self' argument.
7991 * linux-nat.c (linux_nat_pass_signals): Add 'self' argument.
7992 (linux_nat_create_inferior, linux_nat_attach): Update.
7994 2014-02-19 Tom Tromey <tromey@redhat.com>
7996 * windows-nat.c (windows_can_run): Add 'self' argument.
7997 * target.h (struct target_ops) <to_can_run>: Add argument.
7998 (target_can_run): Add argument.
7999 * target.c (debug_to_can_run): Add argument.
8000 (update_current_target): Update.
8001 * nto-procfs.c (procfs_can_run): Add 'self' argument.
8002 * inf-child.c (inf_child_can_run): Add 'self' argument.
8003 * go32-nat.c (go32_can_run): Add 'self' argument.
8005 2014-02-19 Tom Tromey <tromey@redhat.com>
8007 * target.h (struct target_ops) <to_has_exited>: Add argument.
8008 (target_has_exited): Add argument.
8009 * target.c (debug_to_has_exited): Add argument.
8010 (update_current_target): Update.
8012 2014-02-19 Tom Tromey <tromey@redhat.com>
8014 * target.h (struct target_ops) <to_set_syscall_catchpoint>: Add
8016 (target_set_syscall_catchpoint): Add argument.
8017 * linux-nat.c (linux_child_set_syscall_catchpoint): Add 'self'
8019 * target.c (update_current_target): Update.
8021 2014-02-19 Tom Tromey <tromey@redhat.com>
8023 * target.h (struct target_ops) <to_remove_exec_catchpoint>: Add
8025 (target_remove_exec_catchpoint): Add argument.
8026 * target.c (debug_to_remove_exec_catchpoint): Add argument.
8027 (update_current_target): Update.
8028 * linux-nat.c (linux_child_remove_exec_catchpoint): Add 'self'
8031 2014-02-19 Tom Tromey <tromey@redhat.com>
8033 * target.h (struct target_ops) <to_insert_exec_catchpoint>: Add
8035 (target_insert_exec_catchpoint): Add argument.
8036 * target.c (debug_to_insert_exec_catchpoint): Add argument.
8037 (update_current_target): Update.
8038 * linux-nat.c (linux_child_insert_exec_catchpoint): Add 'self'
8041 2014-02-19 Tom Tromey <tromey@redhat.com>
8043 * target.h (struct target_ops) <to_remove_vfork_catchpoint>: Add
8045 (target_remove_vfork_catchpoint): Add argument.
8046 * target.c (debug_to_remove_vfork_catchpoint): Add argument.
8047 (update_current_target): Update.
8048 * linux-nat.c (linux_child_remove_vfork_catchpoint): Add 'self'
8051 2014-02-19 Tom Tromey <tromey@redhat.com>
8053 * target.h (struct target_ops) <to_insert_vfork_catchpoint>: Add
8055 (target_insert_vfork_catchpoint): Add argument.
8056 * target.c (debug_to_insert_vfork_catchpoint): Add argument.
8057 (update_current_target): Update.
8058 * linux-nat.c (linux_child_insert_vfork_catchpoint): Add 'self'
8061 2014-02-19 Tom Tromey <tromey@redhat.com>
8063 * target.h (struct target_ops) <to_remove_fork_catchpoint>: Add
8065 (target_remove_fork_catchpoint): Add argument.
8066 * target.c (debug_to_remove_fork_catchpoint): Add argument.
8067 (update_current_target): Update.
8068 * linux-nat.c (linux_child_remove_fork_catchpoint): Add 'self'
8071 2014-02-19 Tom Tromey <tromey@redhat.com>
8073 * target.h (struct target_ops) <to_insert_fork_catchpoint>: Add
8075 (target_insert_fork_catchpoint): Add argument.
8076 * target.c (debug_to_insert_fork_catchpoint): Add argument.
8077 (update_current_target): Update.
8078 * linux-nat.c (linux_child_insert_fork_catchpoint): Add 'self'
8081 2014-02-19 Tom Tromey <tromey@redhat.com>
8083 * target.h (struct target_ops) <to_post_startup_inferior>: Add
8085 (target_post_startup_inferior): Add argument.
8086 * target.c (debug_to_post_startup_inferior): Add argument.
8087 (update_current_target): Update.
8088 * spu-linux-nat.c (spu_child_post_startup_inferior): Add 'self'
8090 * linux-nat.c (linux_child_post_startup_inferior): Add 'self'
8092 * inf-ptrace.c (inf_ptrace_post_startup_inferior): Add 'self'
8094 * inf-child.c (inf_child_post_startup_inferior): Add 'self'
8096 * i386-linux-nat.c (i386_linux_child_post_startup_inferior): Add
8098 (super_post_startup_inferior): Likewise.
8099 * amd64-linux-nat.c (amd64_linux_child_post_startup_inferior): Add
8101 (super_post_startup_inferior): Likewise.
8102 * aarch64-linux-nat.c (aarch64_linux_child_post_startup_inferior):
8103 Add 'self' argument.
8104 (super_post_startup_inferior): Likewise.
8106 2014-02-19 Tom Tromey <tromey@redhat.com>
8108 * target.h (struct target_ops) <to_load>: Add argument.
8109 * target.c (target_load): Add argument.
8110 (debug_to_load): Add argument.
8111 (update_current_target): Update.
8112 * remote.c (remote_load): Add 'self' argument.
8113 * remote-sim.c (gdbsim_load): Add 'self' argument.
8114 * remote-mips.c (mips_load): Add 'self' argument.
8115 * remote-m32r-sdi.c (m32r_load): Add 'self' argument.
8116 * monitor.c (monitor_load): Add 'self' argument.
8117 * m32r-rom.c (m32r_load_gen): Add 'self' argument.
8119 2014-02-19 Tom Tromey <tromey@redhat.com>
8121 * target.h (struct target_ops) <to_terminal_info>: Add argument.
8122 (target_terminal_info): Add argument.
8123 * target.c (debug_to_terminal_info): Add argument.
8124 (default_terminal_info): Likewise.
8125 * inflow.c (child_terminal_info): Add 'self' argument.
8126 * inferior.h (child_terminal_info): Add 'self' argument.
8127 * go32-nat.c (go32_terminal_info): Add 'self' argument.
8129 2014-02-19 Tom Tromey <tromey@redhat.com>
8131 * target.h (struct target_ops) <to_terminal_save_ours>: Add
8133 (target_terminal_save_ours): Add argument.
8134 * target.c (debug_to_terminal_save_ours): Add argument.
8135 (update_current_target): Update.
8136 * inflow.c (terminal_save_ours): Add 'self' argument.
8137 * inferior.h (terminal_save_ours): Add 'self' argument.
8139 2014-02-19 Tom Tromey <tromey@redhat.com>
8141 * target.h (struct target_ops) <to_terminal_ours>: Add argument.
8142 (target_terminal_ours): Add argument.
8143 * target.c (debug_to_terminal_ours): Add argument.
8144 (update_current_target): Update.
8145 * remote.c (remote_terminal_ours): Add 'self' argument.
8146 (remote_close): Update.
8147 * linux-nat.c (linux_nat_terminal_ours): Add 'self' argument.
8148 * inflow.c (terminal_ours): Add 'self' argument.
8149 * inferior.h (terminal_ours): Add 'self' argument.
8150 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8152 2014-02-19 Pedro Alves <palves@redhat.com>
8153 Tom Tromey <tromey@redhat.com>
8155 * target.h (struct target_ops) <to_terminal_ours_for_output>: Add
8157 (target_terminal_ours_for_output): Add argument.
8158 * target.c (debug_to_terminal_ours_for_output): Add argument.
8159 (update_current_target): Update.
8160 * inflow.c (terminal_ours_for_output): Add 'self' argument.
8161 * inferior.h (terminal_ours_for_output): Add 'self' argument.
8162 * go32-nat.c (go32_terminal_ours): Add 'self' argument.
8164 2014-02-19 Tom Tromey <tromey@redhat.com>
8166 * target.h (struct target_ops) <to_terminal_inferior>: Add
8168 * target.c (target_terminal_inferior): Add argument.
8169 (update_current_target): Update.
8170 * remote.c (remote_terminal_inferior): Add 'self' argument.
8171 * linux-nat.c (linux_nat_terminal_inferior): Add 'self' argument.
8172 * inflow.c (terminal_inferior): Add 'self' argument.
8173 * inferior.h (terminal_inferior): Add 'self' argument.
8174 * go32-nat.c (go32_terminal_inferior): Add 'self' argument.
8175 (go32_terminal_inferior): Add 'self' argument.
8177 2014-02-19 Tom Tromey <tromey@redhat.com>
8179 * target.h (struct target_ops) <to_terminal_init>: Add argument.
8180 (target_terminal_init): Add argument.
8181 * target.c (debug_to_terminal_init): Add argument.
8182 (update_current_target): Update.
8183 * inflow.c (terminal_init_inferior): Add 'self' argument.
8184 * inferior.h (terminal_init_inferior): Add 'self' argument.
8185 * go32-nat.c (go32_terminal_init): Add 'self' argument.
8186 * gnu-nat.c (gnu_terminal_init_inferior): Add 'self' argument.
8188 2014-02-19 Tom Tromey <tromey@redhat.com>
8190 * target.h (struct target_ops)
8191 <to_can_accel_watchpoint_condition>: Add argument.
8192 (target_can_accel_watchpoint_condition): Add argument.
8193 * target.c (debug_to_can_accel_watchpoint_condition): Add
8195 (update_current_target): Update.
8196 * ppc-linux-nat.c (ppc_linux_can_accel_watchpoint_condition): Add
8199 2014-02-19 Tom Tromey <tromey@redhat.com>
8201 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
8203 (target_region_ok_for_hw_watchpoint): Add argument.
8204 * target.c (debug_to_region_ok_for_hw_watchpoint): Add argument.
8205 (default_region_ok_for_hw_watchpoint): Add argument.
8206 * spu-multiarch.c (spu_region_ok_for_hw_watchpoint): Add argument.
8207 * s390-linux-nat.c (s390_region_ok_for_hw_watchpoint): Add 'self'
8209 * remote.c (remote_region_ok_for_hw_watchpoint): Add 'self'
8211 * procfs.c (procfs_region_ok_for_hw_watchpoint): Add 'self'
8213 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Add
8215 * mips-linux-nat.c (mips_linux_region_ok_for_hw_watchpoint): Add
8217 * inf-ttrace.c (inf_ttrace_region_ok_for_hw_watchpoint): Add
8219 * i386-nat.c (i386_region_ok_for_watchpoint): Add 'self' argument.
8220 * arm-linux-nat.c (arm_linux_region_ok_for_hw_watchpoint): Add
8222 * aarch64-linux-nat.c (aarch64_linux_region_ok_for_hw_watchpoint):
8223 Add 'self' argument.
8225 2014-02-19 Tom Tromey <tromey@redhat.com>
8227 * target.h (struct target_ops) <to_insert_watchpoint>: Add
8229 (target_insert_watchpoint): Add argument.
8230 * target.c (debug_to_insert_watchpoint): Add argument.
8231 (update_current_target): Update.
8232 * s390-linux-nat.c (s390_insert_watchpoint): Add 'self' argument.
8233 * remote.c (remote_insert_watchpoint): Add 'self' argument.
8234 * remote-mips.c (mips_insert_watchpoint): Add 'self' argument.
8235 * remote-m32r-sdi.c (m32r_insert_watchpoint): Add 'self' argument.
8236 * procfs.c (procfs_insert_watchpoint): Add 'self' argument.
8237 * ppc-linux-nat.c (ppc_linux_insert_watchpoint): Add 'self'
8239 * nto-procfs.c (procfs_insert_hw_watchpoint): Add 'self' argument.
8240 (procfs_insert_hw_watchpoint): Add 'self' argument.
8241 * mips-linux-nat.c (mips_linux_insert_watchpoint): Add 'self'
8243 * inf-ttrace.c (inf_ttrace_insert_watchpoint): Add 'self'
8245 * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Add 'self'
8247 * i386-nat.c (i386_insert_watchpoint): Add 'self' argument.
8248 * arm-linux-nat.c (arm_linux_insert_watchpoint): Add 'self'
8250 * aarch64-linux-nat.c (aarch64_linux_insert_watchpoint): Add
8253 2014-02-19 Tom Tromey <tromey@redhat.com>
8255 * target.h (struct target_ops) <to_remove_watchpoint>: Add
8257 (target_remove_watchpoint): Add argument.
8258 * target.c (debug_to_remove_watchpoint): Add argument.
8259 (update_current_target): Update.
8260 * s390-linux-nat.c (s390_remove_watchpoint): Add 'self' argument.
8261 * remote.c (remote_remove_watchpoint): Add 'self' argument.
8262 * remote-mips.c (mips_remove_watchpoint): Add 'self' argument.
8263 * remote-m32r-sdi.c (m32r_remove_watchpoint): Add 'self' argument.
8264 * procfs.c (procfs_remove_watchpoint): Add 'self' argument.
8265 * ppc-linux-nat.c (ppc_linux_remove_watchpoint): Add 'self'
8267 * nto-procfs.c (procfs_remove_hw_watchpoint): Add 'self' argument.
8268 * mips-linux-nat.c (mips_linux_remove_watchpoint): Add 'self'
8270 * inf-ttrace.c (inf_ttrace_remove_watchpoint): Add 'self'
8272 * ia64-linux-nat.c (ia64_linux_remove_watchpoint): Add 'self'
8274 * i386-nat.c (i386_remove_watchpoint): Add 'self' argument.
8275 * arm-linux-nat.c (arm_linux_remove_watchpoint): Add 'self'
8277 * aarch64-linux-nat.c (aarch64_linux_remove_watchpoint): Add
8280 2014-02-19 Tom Tromey <tromey@redhat.com>
8282 * target.h (struct target_ops) <to_remove_hw_breakpoint>: Add
8284 (target_remove_hw_breakpoint): Add argument.
8285 * target.c (debug_to_remove_hw_breakpoint): Add argument.
8286 (update_current_target): Update.
8287 * remote.c (remote_remove_hw_breakpoint): Add 'self' argument.
8288 * ppc-linux-nat.c (ppc_linux_remove_hw_breakpoint): Add 'self'
8290 * i386-nat.c (i386_remove_hw_breakpoint): Add 'self' argument.
8291 * arm-linux-nat.c (arm_linux_remove_hw_breakpoint): Add 'self'
8293 * aarch64-linux-nat.c (aarch64_linux_remove_hw_breakpoint): Add
8296 2014-02-19 Tom Tromey <tromey@redhat.com>
8298 * target.h (struct target_ops) <to_insert_hw_breakpoint>: Add
8300 (target_insert_hw_breakpoint): Add argument.
8301 * target.c (debug_to_insert_hw_breakpoint): Add argument.
8302 (update_current_target): Update.
8303 * remote.c (remote_insert_hw_breakpoint): Add 'self' argument.
8304 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint): Add 'self'
8306 * nto-procfs.c (procfs_insert_hw_breakpoint): Add 'self' argument.
8307 * i386-nat.c (i386_insert_hw_breakpoint): Add 'self' argument.
8308 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint): Add 'self'
8310 * aarch64-linux-nat.c (aarch64_linux_insert_hw_breakpoint): Add
8313 2014-02-19 Tom Tromey <tromey@redhat.com>
8315 * target.h (struct target_ops) <to_can_use_hw_breakpoint>: Add
8317 (target_can_use_hardware_watchpoint): Add argument.
8318 * target.c (debug_to_can_use_hw_breakpoint): Add argument.
8319 (update_current_target): Update.
8320 * spu-linux-nat.c (spu_can_use_hw_breakpoint): Add 'self'
8322 * s390-linux-nat.c (s390_can_use_hw_breakpoint): Add 'self'
8324 * remote.c (remote_check_watch_resources): Add 'self' argument.
8325 * remote-mips.c (mips_can_use_watchpoint): Add 'self' argument.
8326 * remote-m32r-sdi.c (m32r_can_use_hw_watchpoint): Add 'self'
8328 * procfs.c (procfs_can_use_hw_breakpoint): Add 'self' argument.
8329 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): Add 'self'
8331 * nto-procfs.c (procfs_can_use_hw_breakpoint): Add 'self'
8333 * mips-linux-nat.c (mips_linux_can_use_hw_breakpoint): Add 'self'
8335 * inf-ttrace.c (inf_ttrace_can_use_hw_breakpoint): Add 'self'
8337 * ia64-linux-nat.c (ia64_linux_can_use_hw_breakpoint): Add 'self'
8339 * ia64-hpux-nat.c (ia64_hpux_can_use_hw_breakpoint): Add 'self'
8341 * i386-nat.c (i386_can_use_hw_breakpoint): Add 'self' argument.
8342 * arm-linux-nat.c (arm_linux_can_use_hw_breakpoint): Add 'self'
8344 * aarch64-linux-nat.c (aarch64_linux_can_use_hw_breakpoint): Add
8347 2014-02-19 Tom Tromey <tromey@redhat.com>
8349 * target.h (struct target_ops) <to_post_attach>: Add argument.
8350 (target_post_attach): Add argument.
8351 * target.c (debug_to_post_attach): Add argument.
8352 (update_current_target): Update.
8353 * spu-linux-nat.c (spu_child_post_attach): Add 'self' argument.
8354 * nto-procfs.c (procfs_post_attach): Add 'self' argument.
8355 * linux-nat.c (linux_child_post_attach): Add 'self' argument.
8356 * inf-ptrace.c (inf_ptrace_post_attach): Add 'self' argument.
8357 * inf-child.c (inf_child_post_attach): Add 'self' argument.
8359 2014-02-19 Tom Tromey <tromey@redhat.com>
8361 * windows-nat.c (windows_close): Add 'self' argument.
8362 * tracepoint.c (tfile_close): Add 'self' argument.
8363 * target.h (struct target_ops) <to_close>: Add argument.
8364 * target.c (target_close): Add argument.
8365 (update_current_target): Update.
8366 * remote.c (remote_close): Add 'self' argument.
8367 * remote-sim.c (gdbsim_close): Add 'self' argument.
8368 * remote-mips.c (mips_close): Add 'self' argument.
8369 * remote-m32r-sdi.c (m32r_close): Add 'self' argument.
8370 * record-full.c (record_full_close): Add 'self' argument.
8371 * record-btrace.c (record_btrace_close): Add 'self' argument.
8372 * monitor.h (monitor_close): Add 'self' argument.
8373 * monitor.c (monitor_close): Add 'self' argument.
8374 * mips-linux-nat.c (mips_linux_close): Add 'self' argument.
8375 * linux-nat.c (linux_nat_close): Add argument.
8376 * go32-nat.c (go32_close): Add 'self' argument.
8377 * exec.c (exec_close_1): Add 'self' argument.
8378 * ctf.c (ctf_close): Add 'self' argument.
8379 * corelow.c (core_close): Add 'self' argument.
8380 (core_close_cleanup): Update.
8381 * bsd-uthread.c (bsd_uthread_close): Add 'self' argument.
8382 * bsd-kvm.c (bsd_kvm_close): Add 'self' argument.
8384 2014-02-19 Tom Tromey <tromey@redhat.com>
8386 * remote.c (remote_load): New function.
8387 (init_remote_ops): Use it.
8389 2014-02-19 Tom Tromey <tromey@redhat.com>
8391 * common/linux-btrace.c (linux_supports_btrace): Add "ops"
8393 * common/linux-btrace.h (linux_supports_btrace): Update.
8394 * remote.c (remote_supports_btrace): Add "self" argument.
8395 * target-delegates.c: Rebuild.
8396 * target.c (target_supports_btrace): Remove.
8397 * target.h (struct target_ops) <to_supports_btrace>: Add
8398 target_ops argument.
8399 (target_supports_btrace): New define.
8401 2014-02-19 Tom Tromey <tromey@redhat.com>
8403 * record-full.c (record_full_beneath_to_resume_ops)
8404 (record_full_beneath_to_resume, record_full_beneath_to_wait_ops)
8405 (record_full_beneath_to_wait)
8406 (record_full_beneath_to_store_registers_ops)
8407 (record_full_beneath_to_store_registers)
8408 (record_full_beneath_to_xfer_partial_ops)
8409 (record_full_beneath_to_xfer_partial)
8410 (record_full_beneath_to_insert_breakpoint_ops)
8411 (record_full_beneath_to_insert_breakpoint)
8412 (record_full_beneath_to_remove_breakpoint_ops)
8413 (record_full_beneath_to_remove_breakpoint)
8414 (record_full_beneath_to_stopped_by_watchpoint)
8415 (record_full_beneath_to_stopped_data_address)
8416 (record_full_beneath_to_async, tmp_to_resume_ops, tmp_to_resume)
8417 (tmp_to_wait_ops, tmp_to_wait, tmp_to_store_registers_ops)
8418 (tmp_to_store_registers, tmp_to_xfer_partial_ops)
8419 (tmp_to_xfer_partial, tmp_to_instmp_to_insert_breakpoint_ops)
8420 (tmp_to_insert_breakpoint, tmp_to_remove_breakpoint_ops)
8421 (tmp_to_remove_breakpoint, tmp_to_stopped_by_watchpoint)
8422 (tmp_to_stopped_data_address, tmp_to_async): Remove.
8423 (record_full_open_1, record_full_open): Update. Use RECORD_IS_USED.
8424 (record_full_resume, record_full_wait_1)
8425 (record_full_stopped_by_watchpoint, record_full_stopped_data_address)
8426 (record_full_store_registers, record_full_xfer_partial)
8427 (record_full_insert_breakpoint, record_full_remove_breakpoint)
8428 (record_full_async, record_full_core_xfer_partial): Use target
8430 * target-delegates.c: Rebuild.
8431 * target.c (current_xfer_partial): Remove.
8432 (update_current_target): Do not INHERIT or de_fault
8433 to_insert_breakpoint, to_remove_breakpoint,
8434 to_stopped_data_address, to_stopped_by_watchpoint, to_can_async_p,
8435 to_is_async_p, to_async. Do not set to_xfer_partial field.
8436 (default_xfer_partial): Simplify.
8437 (current_xfer_partial): Remove.
8438 (target_wait, target_resume): Simplify.
8439 (find_default_can_async_p, find_default_is_async_p): Update.
8440 (init_dummy_target): Don't set to_can_async_p, to_is_async_p,
8441 to_xfer_partial, to_stopped_by_watchpoint,
8442 to_stopped_data_address.
8443 (target_store_registers): Simplify.
8444 (forward_target_remove_breakpoint)
8445 (forward_target_insert_breakpoint): Remove.
8446 (target_remove_breakpoint, target_insert_breakpoint)
8447 (debug_to_insert_breakpoint, debug_to_remove_breakpoint): Update.
8448 * target.h (struct target_ops) <to_resume, to_wait,
8449 to_store_registers, to_insert_breakpoint, to_remove_breakpoint,
8450 to_stopped_by_watchpoint, to_stopped_data_address, to_can_async_p,
8451 to_is_async_p, to_async, to_xfer_partial>: Add TARGET_DEFAULT
8453 (forward_target_remove_breakpoint)
8454 (forward_target_insert_breakpoint): Remove.
8455 * record-btrace.c (record_btrace_remove_breakpoint): Delegate
8457 (record_btrace_insert_breakpoint): Delegate directly.
8459 2014-02-19 Tom Tromey <tromey@redhat.com>
8462 * target-delegates.c: New file.
8463 * target.c: Include target-delegates.c.
8464 (init_dummy_target): Call install_dummy_methods.
8465 (complete_target_initialization): Call install_delegators.
8466 * target.h (TARGET_DEFAULT_IGNORE, TARGET_DEFAULT_NORETURN)
8467 (TARGET_DEFAULT_RETURN, TARGET_DEFAULT_FUNC): New defines.
8468 * make-target-delegates: New file.
8470 2014-02-19 Tom Tromey <tromey@redhat.com>
8472 * record.c (find_record_target): Use find_target_at.
8473 * target.c (find_target_at): New function.
8474 * target.h (find_target_at): Declare.
8476 2014-02-19 Tom Tromey <tromey@redhat.com>
8478 * aarch64-linux-nat.c (aarch64_linux_stopped_by_watchpoint):
8480 * arm-linux-nat.c (arm_linux_stopped_by_watchpoint): Add
8482 * i386-nat.c (i386_stopped_by_watchpoint): Add 'ops' argument.
8483 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Add
8485 * inf-ttrace.c (inf_ttrace_stopped_by_watchpoint): Add 'ops'
8487 * linux-nat.c (save_sigtrap): Update.
8488 (linux_nat_stopped_by_watchpoint, linux_nat_is_async_p)
8489 (linux_nat_can_async_p, linux_nat_async): Add 'ops' argument.
8490 (linux_nat_close): Update.
8491 * mips-linux-nat.c (mips_linux_stopped_by_watchpoint): Add 'ops'
8493 * ppc-linux-nat.c (ppc_linux_stopped_by_watchpoint): Add 'ops'
8495 * procfs.c (procfs_stopped_by_watchpoint): Add 'ops' argument.
8496 * record-full.c (record_full_beneath_to_stopped_by_watchpoint)
8497 (record_full_beneath_to_async, tmp_to_stopped_by_watchpoint)
8498 (tmp_to_async): Add 'ops' argument.
8499 (record_full_stopped_by_watchpoint, record_full_async)
8500 (record_full_can_async_p, record_full_is_async_p): Add 'ops'
8502 * remote-m32r-sdi.c (m32r_insert_breakpoint, m32r_remove_breakpoint)
8503 (m32r_stopped_by_watchpoint): Add 'ops' argument.
8504 * remote-mips.c (mips_stopped_by_watchpoint): Add 'ops' argument.
8505 * remote.c (remote_stopped_by_watchpoint_p, remote_can_async_p)
8506 (remote_is_async_p, remote_async): Add 'ops' argument.
8507 (remote_stopped_data_address): Update.
8508 * s390-nat.c (s390_stopped_by_watchpoint): Add 'ops' argument.
8509 * target.c (update_current_target)
8510 (find_default_can_async_p, find_default_is_async_p): Update.
8511 (init_dummy_target): Update.
8512 (debug_to_stopped_by_watchpoint): Add 'ops' argument.
8513 * target.h (struct target_ops) <to_stopped_by_watchpoint,
8514 to_can_async_p, to_is_async_p, to_async>: Add 'ops' argument.
8515 (target_can_async_p, target_is_async_p, target_async)
8516 (target_stopped_by_watchpoint): Update.
8518 2014-02-19 Yao Qi <yao@codesourcery.com>
8521 * gdbarch.sh: Remove startup_gdbarch.
8522 * gdbarch.c: Regenerated.
8523 * gdbarch.h: Likewise.
8525 2014-02-17 Kevin Buettner <kevinb@redhat.com>
8527 * rl78-tdep.c (rl78_g10_register_name): New function.
8528 (rl78_return_value): Add g10 support.
8529 (rl78_gdbarch_init): Register rl78_g10_register_name for the
8532 2014-02-17 Doug Evans <xdje42@gmail.com>
8534 * Makefile.in (SUBDIR_GUILE_OBS): Resort alphabetically.
8535 (SUBDIR_GUILE_SRCS): Ditto.
8536 (scm-gsmob.o): Ditto.
8538 2014-02-17 Yao Qi <yao@codesourcery.com>
8540 * gnu-nat.c (ILL_RPC): Declare defined function.
8542 2014-02-17 Yao Qi <yao@codesourcery.com>
8544 * gnu-nat.c (gnu_read_inferior): Change 'copy_count' type to
8545 mach_msg_type_number_t.
8546 (gnu_write_inferior): Likewise.
8548 2014-02-17 Yao Qi <yao@codesourcery.com>
8550 * gnu-nat.c (proc_get_exception_port): Use 'lu' insetad of 'd'
8552 (proc_steal_exc_port, make_proc, inf_set_pid): Likewise.
8553 (inf_validate_procs, inf_signal): Likewise.
8554 (S_exception_raise_request): Likewise.
8555 (do_mach_notify_dead_name): Likewise.
8556 (steal_exc_port): Likewise.
8557 (gnu_read_inferior): Change 'copy_count''s type to
8558 mach_msg_type_number_t.
8559 (gnu_write_inferior): Likewise. Use 'lx' instead of 'x' in
8562 2014-02-16 Thomas Schwinge <thomas@codesourcery.com>
8564 * gnu-nat.c (struct inf): Change pending_execs member to a 1-bit
8565 flag. Adjust all users; in particular...
8566 (gnu_wait): ..., don't decrement its value in here...
8567 (gnu_create_inferior): ..., and instead set the flag in here,
8568 around the startup_inferior call, and call that one with
8569 START_INFERIOR_TRAPS_EXPECTED.
8571 * gnu-nat.c (ill_rpc): Remove function; replaced with this...
8572 (ILL_RPC): ... new macro.
8573 (do_mach_notify_no_senders, do_mach_notify_port_deleted)
8574 (do_mach_notify_msg_accepted, do_mach_notify_port_destroyed)
8575 (do_mach_notify_send_once, S_proc_setmsgport_reply)
8576 (S_proc_getmsgport_reply, S_msg_sig_post_reply): Generate stub
8577 functions with ILL_RPC macro.
8578 (S_proc_pid2task_reply, S_proc_task2pid_reply)
8579 (S_proc_task2proc_reply, S_proc_proc2task_reply)
8580 (S_proc_pid2proc_reply, S_proc_getprocinfo_reply)
8581 (S_proc_getprocargs_reply, S_proc_getprocenv_reply)
8582 (S_proc_getloginid_reply, S_proc_getloginpids_reply)
8583 (S_proc_getlogin_reply, S_proc_getsid_reply)
8584 (S_proc_getsessionpgids_reply, S_proc_getsessionpids_reply)
8585 (S_proc_getsidport_reply, S_proc_getpgrp_reply)
8586 (S_proc_getpgrppids_reply, S_proc_get_tty_reply)
8587 (S_proc_getnports_reply, S_proc_is_important_reply)
8588 (S_proc_get_code_reply): New stub functions, generated with
8591 * reply_mig_hack.awk: In phase 5, keep going if we have not yet
8592 collected the type check structures.
8594 * reply_mig_hack.awk: Don't expect to see the auto keyword.
8596 2014-02-14 Doug Evans <dje@google.com>
8598 * target.c (target_write_partial): Fix result type.
8600 2014-02-14 Jose E. Marchesi <jose.marchesi@oracle.com>
8602 * sparc64-linux-nat.c (_initialize_sparc64_linux_nat): Register
8603 the proper offsets to access fpregset_t.
8605 2014-02-13 Sanimir Agovic <sanimir.agovic@intel.com>
8607 * cris-tdep.c (cris_supply_gregset): Remove zerobuf.
8608 (_initialize_cris_tdep): Remove cris_set_cmdlist, cris_show_cmdlist.
8609 * h8300-tdep.c (setmachinelist): Remove global.
8610 * hppa-tdep.c (hppa_sigtramp): Remove global.
8611 * mipsnbsd-tdep.c (sigtramp_retcode_mipsel, sigtramp_retcode_mipseb
8612 RETCODE_NWORDS, RETCODE_SIZE): Wrap code with #if 0.
8613 * ravenscar-thread.c (update_target_observer): Remove global.
8614 * rs6000-tdep.c (rs6000_gdbarch_init): Remove segment_regs.
8616 2014-02-12 Tom Tromey <tromey@redhat.com>
8618 * common/rsp-low.c: Update comments.
8619 * common/rsp-low.h: Update comments.
8621 2014-02-12 Tom Tromey <tromey@redhat.com>
8623 * common/rsp-low.c (convert_ascii_to_int): Remove.
8624 * common/rsp-low.h (convert_ascii_to_int): Don't declare.
8626 2014-02-12 Tom Tromey <tromey@redhat.com>
8628 * common/rsp-low.h (unhexify): Don't declare.
8629 * common/rsp-low.c (unhexify): Remove.
8631 2014-02-12 Tom Tromey <tromey@redhat.com>
8633 * common/rsp-low.h (convert_int_to_ascii): Don't declare.
8634 * common/rsp-low.c (convert_int_to_ascii): Remove.
8636 2014-02-12 Tom Tromey <tromey@redhat.com>
8638 * common/rsp-low.h (hexify): Don't declare.
8639 * common/rsp-low.c (hexify): Remove.
8641 2014-02-12 Tom Tromey <tromey@redhat.com>
8643 * common/rsp-low.c (hexify): Never take strlen of argument.
8645 2014-02-12 Tom Tromey <tromey@redhat.com>
8647 * common/rsp-low.c (bin2hex): Never take strlen of argument.
8648 * remote.c (extended_remote_run, remote_rcmd)
8649 (remote_download_trace_state_variable, remote_save_trace_data)
8650 (remote_set_trace_notes): Update.
8651 * tracepoint.c (encode_source_string, tfile_write_status)
8652 (tfile_write_uploaded_tsv): Update.
8654 2014-02-12 Tom Tromey <tromey@redhat.com>
8656 * tracepoint.c: Include rsp-low.h.
8657 * remote.h (hex2bin, bin2hex, unpack_varlen_hex): Don't declare.
8658 * remote.c: Include rsp-low.h.
8659 (hexchars, ishex, unpack_varlen_hex, pack_nibble, pack_hex_byte)
8660 (fromhex, hex2bin, tohex, bin2hex, remote_escape_output)
8661 (remote_unescape_input): Move to common/rsp-low.c.
8662 * common/rsp-low.h: New file.
8663 * common/rsp-low.c: New file.
8664 * Makefile.in (SFILES): Add common/rsp-low.c.
8665 (HFILES_NO_SRCDIR): Add common/rsp-low.h.
8666 (COMMON_OBS): Add rsp-low.o.
8667 (rsp-low.o): New target.
8669 2014-02-12 Tom Tromey <tromey@redhat.com>
8671 * utils.h: Include print-utils.h.
8672 (host_address_to_string, plongest, pulongest, phex, phex_nz)
8673 (int_string, core_addr_to_string, core_addr_to_string_nz)
8674 (hex_string, hex_string_custom): Don't declare.
8675 * utils.c (NUMCELLS, CELLSIZE, get_cell, decimal2str, pulongest)
8676 (plongest, thirty_two, phex, phex_nz, octal2str, hex_string)
8677 (hex_string_custom, int_string, core_addr_to_string)
8678 (core_addr_to_string_nz, host_address_to_string): Move to
8679 common/print-utils.c.
8680 * common/print-utils.h: New file.
8681 * common/print-utils.c: New file
8682 * Makefile.in (SFILES): Add common/print-utils.c.
8683 (HFILES_NO_SRCDIR): Add common/print-utils.h.
8684 (COMMON_OBS): Add print-utils.o.
8685 (print-utils.o): New target.
8687 2014-02-12 Tom Tromey <tromey@redhat.com>
8689 * nios2-tdep.c (nios2_stub_frame_base_address): Remove.
8691 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8693 * sparc64obsd-tdep.c (sparc64obsd_init_abi): Call obsd_init_abi.
8695 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8697 * inf-ptrace.c (inf_ptrace_xfer_partial): Return TARGET_XFER_EOF
8698 if a PT_IO ptrace request returns sucessfully but indicates that 0
8699 bytes were transferred.
8701 2014-02-12 Pedro Alves <palves@redhat.com>
8702 Kevin Buettner <kevinb@redhat.com>
8704 * gnu-v3-abi.c (build_gdb_vtable_type): Return a type marked with
8705 TYPE_INSTANCE_FLAG_CODE_SPACE.
8707 2014-02-12 Pedro Alves <palves@redhat.com>
8709 * h8300-tdep.c (pseudo_from_raw_register)
8710 (raw_from_pseudo_register): New functions.
8711 (h8300_pseudo_register_read, h8300_pseudo_register_write): Use
8714 2014-02-12 Pedro Alves <palves@redhat.com>
8716 * h8300-tdep.c (h8300_register_sim_regno): New function.
8717 (h8300_gdbarch_init): Install h8300_register_sim_regno as
8718 gdbarch_register_sim_regno hook.
8720 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8722 * nios2-tdep.c (nios2_stub_frame_base): Remove global.
8724 2014-02-12 Sanimir Agovic <sanimir.agovic@intel.com>
8726 * tic6x-tdep.c (tic6x_gdbarch_init): Call frame_base_set_default.
8728 2014-02-12 Mark Kettenis <kettenis@gnu.org>
8730 * obsd-tdep.h (obsd_init_abi): New prototype.
8731 * obsd-tdep.c: Define enum with OpenBSD signal numbers.
8732 (obsd_gdb_signal_from_target, obsd_gdb_signal_to_target)
8733 (obsd_init_abi): New functions.
8734 * i386obsd-tdep.c: Include "obsd-tdep.h".
8735 (i386obsd_init_abi): Call obsd_init_abi.
8736 * amd64obsd-tdep.c: Include "obsd-tdep.h".
8737 (amd64obsd_init_abi): Call obsd_init_abi.
8738 * configure.tgt (i[34567]86-*-openbsd*, x86_64-*-openbsd*): Add
8739 obsd-tdep.c to gdb_target_obs.
8741 2014-02-11 Jose E. Marchesi <jose.marchesi@oracle.com>
8743 * sparc64-tdep.c (sparc64_store_arguments): Do not align complex
8744 double float arguments to 16-byte in the argument slots.
8746 2014-02-11 Doug Evans <xdje42@gmail.com>
8748 * configure.ac: Don't crash if pkg-config is not found and guile
8749 wasn't explicitly requested. Use AC_MSG_ERROR instead of AC_ERROR
8751 * configure: Regenerate.
8753 2014-02-11 Yao Qi <yao@codesourcery.com>
8755 * aix-thread.c (aix_thread_xfer_partial): Update comments.
8756 * auxv.c (procfs_xfer_auxv, memory_xfer_auxv): Likewise.
8757 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
8758 * gnu-nat.c (gnu_xfer_memory): Likewise.
8759 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
8760 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8761 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8762 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
8764 2014-02-11 Yao Qi <yao@codesourcery.com>
8766 * target.h (enum target_xfer_error): Rename to ...
8767 (enum target_xfer_status): ... it. New. All users updated.
8768 (enum target_xfer_status) <TARGET_XFER_OK>, <TARGET_XFER_EOF>:
8770 (TARGET_XFER_STATUS_ERROR_P): New macro.
8771 (target_xfer_error_to_string): Remove declaration.
8772 (target_xfer_status_to_string): Declare.
8773 (target_xfer_partial_ftype): Adjust it.
8774 (struct target_ops) <to_xfer_partial>: Return
8775 target_xfer_status. Add argument xfered_len. Update
8777 * target.c (target_xfer_error_to_string): Rename to ...
8778 (target_xfer_status_to_string): ... it. New. All callers
8780 (target_read_live_memory): Likewise. Call target_xfer_partial
8781 instead of target_read.
8782 (memory_xfer_live_readonly_partial): Return
8783 target_xfer_status. Add argument xfered_len.
8784 (raw_memory_xfer_partial): Likewise.
8785 (memory_xfer_partial_1): Likewise.
8786 (memory_xfer_partial): Likewise.
8787 (target_xfer_partial): Likewise. Check *XFERED_LEN is set
8788 properly. Update debug message.
8789 (default_xfer_partial, current_xfer_partial): Likewise.
8790 (target_write_partial): Likewise.
8791 (target_read_partial): Likewise. All callers updated.
8792 (read_whatever_is_readable): Likewise.
8793 (target_write_with_progress): Likewise.
8794 (target_read_alloc_1): Likewise.
8796 * aix-thread.c (aix_thread_xfer_partial): Likewise.
8797 * auxv.c (procfs_xfer_auxv): Likewise.
8798 (ld_so_xfer_auxv, memory_xfer_auxv): Likewise.
8799 * bfd-target.c (target_bfd_xfer_partial): Likewise.
8800 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
8801 * bsd-uthread.c (bsd_uthread_xfer_partia): Likewise.
8802 * corefile.c (read_memory): Adjust.
8803 * corelow.c (core_xfer_partial): Likewise.
8804 * ctf.c (ctf_xfer_partial): Likewise.
8805 * darwin-nat.c (darwin_read_dyld_info): Likewise. All callers
8807 (darwin_xfer_partial): Likewise.
8808 * exec.c (section_table_xfer_memory_partial): Likewise. All
8810 (exec_xfer_partial): Likewise.
8811 * exec.h (section_table_xfer_memory_partial): Update
8813 * gnu-nat.c (gnu_xfer_memory): Likewise. Assert 'res' is not
8815 (gnu_xfer_partial): Likewise.
8816 * ia64-hpux-nat.c (ia64_hpux_xfer_memory_no_bs): Likewise.
8817 (ia64_hpux_xfer_memory, ia64_hpux_xfer_uregs): Likewise.
8818 (ia64_hpux_xfer_solib_got): Likewise.
8819 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise. Change
8820 type of 'partial_len' to ULONGEST.
8821 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
8822 * linux-nat.c (linux_xfer_siginfo ): Likewise.
8823 (linux_nat_xfer_partial): Likewise.
8824 (linux_proc_xfer_partial, linux_xfer_partial): Likewise.
8825 (linux_proc_xfer_spu, linux_nat_xfer_osdata): Likewise.
8826 * monitor.c (monitor_xfer_memory): Likewise.
8827 (monitor_xfer_partial): Likewise.
8828 * procfs.c (procfs_xfer_partial): Likewise.
8829 * record-btrace.c (record_btrace_xfer_partial): Likewise.
8830 * record-full.c (record_full_xfer_partial): Likewise.
8831 (record_full_core_xfer_partial): Likewise.
8832 * remote-sim.c (gdbsim_xfer_memory): Likewise.
8833 (gdbsim_xfer_partial): Likewise.
8834 * remote.c (remote_write_bytes_aux): Likewise. All callers
8836 (remote_write_bytes, remote_read_bytes): Likewise. All
8838 (remote_flash_erase): Likewise. All callers updated.
8839 (remote_write_qxfer): Likewise. All callers updated.
8840 (remote_read_qxfer): Likewise. All callers updated.
8841 (remote_xfer_partial): Likewise.
8842 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
8843 (rs6000_xfer_shared_libraries): Likewise.
8844 * sol-thread.c (sol_thread_xfer_partial): Likewise.
8845 (sol_thread_xfer_partial): Likewise.
8846 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
8847 (sparc_xfer_partial): Likewise.
8848 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise. All callers
8850 (spu_xfer_partial): Likewise.
8851 * spu-multiarch.c (spu_xfer_partial): Likewise.
8852 * tracepoint.c (tfile_xfer_partial): Likewise.
8853 * windows-nat.c (windows_xfer_memory): Likewise.
8854 (windows_xfer_shared_libraries): Likewise.
8855 (windows_xfer_partial): Likewise.
8856 * valprint.c: Replace 'target_xfer_error' with
8857 'target_xfer_status' in comments.
8859 2014-02-11 Simon Marchi <simon.marchi@ericsson.com> (tiny patch)
8861 Checked in by Joel Brobecker <brobecker@adacore.com>.
8862 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Fix comment.
8864 2014-02-11 Joel Brobecker <brobecker@adacore.com>
8866 * symfile-debug.c (debug_qf_expand_symtabs_matching): Reformat
8867 function parameters.
8869 2014-02-10 Will Newton <will.newton@linaro.org>
8871 * elfread.c (elf_rel_plt_read): Look for a .got section if
8872 looking up .got.plt fails.
8873 (elf_gnu_ifunc_resolve_by_got): Call gdbarch_addr_bits_remove
8874 on address passed to elf_gnu_ifunc_record_cache.
8875 (elf_gnu_ifunc_resolve_addr): Likewise.
8876 (elf_gnu_ifunc_resolver_return_stop): Likewise.
8878 2014-02-10 Jose E. Marchesi <jose.marchesi@oracle.com>
8880 * sparc-tdep.c (sparc_in_function_epilogue_p): New function.
8881 (X_RETTURN): New macro.
8882 * sparc-tdep.h: sparc_in_function_epilogue_p prototype.
8884 * sparc64-tdep.c (sparc64_init_abi): Hook
8885 sparc_in_function_epilogue_p.
8887 2014-02-10 Gary Benson <gbenson@redhat.com>
8889 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8890 Rename name_matcher to symbol_matcher.
8892 2014-02-10 Gary Benson <gbenson@redhat.com>
8894 * symfile-debug.c (debug_qf_expand_symtabs_matching):
8895 Use expand_symtabs_file_matcher_ftype and
8896 expand_symtabs_symbol_matcher_ftype.
8898 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8900 * ada-lang.c (struct cache_entry, HASH_SIZE): Move definition up.
8901 (struct ada_symbol_cache): New.
8902 (ada_free_symbol_cache): Forward declare.
8903 (struct ada_pspace_data): New.
8904 (ada_pspace_data_handle): New static global.
8905 (get_ada_pspace_data, ada_pspace_data_cleanup)
8906 (ada_init_symbol_cache, ada_free_symbol_cache): New functions.
8907 (cache_space, cache): Delete, now folded inside struct
8909 (ada_get_symbol_cache): New function.
8910 (ada_clear_symbol_cache, find_entry, cache_symbol): Adjust
8912 (_initialize_ada_language): Remove initialization of cache_space.
8913 Move call to observer_attach_inferior_exit up, grouping it
8914 with the other observer registrations inside this function.
8915 Rename command to be more general. Add call to
8916 register_program_space_data_with_cleanup.
8918 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8920 * ada-tasks.c (ada_tasks_new_objfile_observer): Renames
8921 ada_new_objfile_observer.
8922 (ada_tasks_normal_stop_observer): Renames ada_normal_stop_observer.
8923 (_initialize_tasks): Update uses of ada_new_objfile_observer
8924 and ada_tasks_normal_stop_observer.
8926 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8928 * ada-lang.c (ada_evaluate_subexp): Set the type of the value
8929 returned by the 'Length attribute to integer.
8931 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8933 * ada-lang.c (_initialize_ada_language): Initialize
8934 cache_space obstack.
8936 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8938 * ada-lang.c (HASH_SIZE): New macro.
8939 (struct cache_entry): New type.
8940 (cache_space, cache): New static globals.
8941 (ada_clear_symbol_cache, find_entry): New functions.
8942 (lookup_cached_symbol, cache_symbol): Implement.
8943 (ada_new_objfile_observer, ada_free_objfile_observer): New.
8944 (_initialize_ada_language): Attach ada_new_objfile_observer
8945 and ada_free_objfile_observer.
8947 2014-02-10 Joel Brobecker <brobecker@adacore.com>
8949 * ada-lang.c (ada_add_block_symbols, add_defn_to_vec)
8950 (lookup_cached_symbol, ada_add_local_symbols): Add "const" to
8951 struct block * parameter.
8952 (ada_lookup_symbol_list_worker): Constify local variable "block".
8953 Remove cast which is no longer necessary.
8955 2014-02-10 Doug Evans <xdje42@gmail.com>
8957 Add Guile as an extension language.
8958 * NEWS: Mention Guile scripting.
8959 * Makefile.in (SUBDIR_GUILE_OBS): New variable.
8960 (SUBDIR_GUILE_SRCS, SUBDIR_GUILE_DEPS): New variables
8961 (SUBDIR_GUILE_LDFLAGS, SUBDIR_GUILE_CFLAGS): New variables.
8962 (INTERNAL_CPPFLAGS): Add GUILE_CPPFLAGS.
8963 (CLIBS): Add GUILE_LIBS.
8964 (install-guile): New rule.
8965 (guile.o): New rule.
8966 (scm-arch.o, scm-auto-load.o, scm-block.o): New rules.
8967 (scm-breakpoint.o, scm-disasm.o, scm-exception.o): New rules.
8968 (scm-frame.o, scm-iterator.o, scm-lazy-string.o): New rules.
8969 (scm-math.o, scm-objfile.o, scm-ports.o): New rules.
8970 (scm-pretty-print.o, scm-safe-call.o, scm-gsmob.o): New rules.
8971 (scm-string.o, scm-symbol.o, scm-symtab.o): New rules.
8972 (scm-type.o, scm-utils.o, scm-value.o): New rules.
8973 * configure.ac: New option --with-guile.
8974 * configure: Regenerate.
8975 * config.in: Regenerate.
8976 * auto-load.c: Remove #include "python/python.h". Add #include
8977 "gdb/section-scripts.h".
8978 (source_section_scripts): Handle Guile scripts.
8979 (_initialize_auto_load): Add name of Guile objfile script to
8980 scripts-directory help text.
8981 * breakpoint.c (condition_command): Tweak comment to include Scheme.
8982 * breakpoint.h (gdbscm_breakpoint_object): Add forward decl.
8983 (struct breakpoint): New member scm_bp_object.
8984 * defs.h (enum command_control_type): New value guile_control.
8985 * cli/cli-cmds.c: Remove #include "python/python.h". Add #include
8987 (show_user): Update comment.
8988 (_initialize_cli_cmds): Update help text for "show user". Update help
8989 text for max-user-call-depth.
8990 * cli/cli-script.c: Remove #include "python/python.h". Add #include
8992 (multi_line_command_p): Add guile_control.
8993 (print_command_lines): Handle guile_control.
8994 (execute_control_command, recurse_read_control_structure): Ditto.
8995 (process_next_line): Recognize "guile" commands.
8996 * disasm.c (gdb_disassemble_info): Make non-static.
8997 * disasm.h: #include "dis-asm.h".
8998 (struct gdbarch): Add forward decl.
8999 (gdb_disassemble_info): Declare.
9000 * extension.c: #include "guile/guile.h".
9001 (extension_languages): Add guile.
9002 (get_ext_lang_defn): Handle EXT_LANG_GDB.
9003 * extension.h (enum extension_language): New value EXT_LANG_GUILE.
9004 * gdbtypes.c (get_unsigned_type_max): New function.
9005 (get_signed_type_minmax): New function.
9006 * gdbtypes.h (get_unsigned_type_max): Declare.
9007 (get_signed_type_minmax): Declare.
9008 * guile/README: New file.
9009 * guile/guile-internal.h: New file.
9010 * guile/guile.c: New file.
9011 * guile/guile.h: New file.
9012 * guile/scm-arch.c: New file.
9013 * guile/scm-auto-load.c: New file.
9014 * guile/scm-block.c: New file.
9015 * guile/scm-breakpoint.c: New file.
9016 * guile/scm-disasm.c: New file.
9017 * guile/scm-exception.c: New file.
9018 * guile/scm-frame.c: New file.
9019 * guile/scm-gsmob.c: New file.
9020 * guile/scm-iterator.c: New file.
9021 * guile/scm-lazy-string.c: New file.
9022 * guile/scm-math.c: New file.
9023 * guile/scm-objfile.c: New file.
9024 * guile/scm-ports.c: New file.
9025 * guile/scm-pretty-print.c: New file.
9026 * guile/scm-safe-call.c: New file.
9027 * guile/scm-string.c: New file.
9028 * guile/scm-symbol.c: New file.
9029 * guile/scm-symtab.c: New file.
9030 * guile/scm-type.c: New file.
9031 * guile/scm-utils.c: New file.
9032 * guile/scm-value.c: New file.
9033 * guile/lib/gdb.scm: New file.
9034 * guile/lib/gdb/boot.scm: New file.
9035 * guile/lib/gdb/experimental.scm: New file.
9036 * guile/lib/gdb/init.scm: New file.
9037 * guile/lib/gdb/iterator.scm: New file.
9038 * guile/lib/gdb/printing.scm: New file.
9039 * guile/lib/gdb/types.scm: New file.
9040 * data-directory/Makefile.in (GUILE_SRCDIR): New variable.
9041 (VPATH): Add $(GUILE_SRCDIR).
9042 (GUILE_DIR): New variable.
9043 (GUILE_INSTALL_DIR, GUILE_FILES): New variables.
9044 (all): Add stamp-guile dependency.
9045 (stamp-guile): New rule.
9046 (clean-guile, install-guile, uninstall-guile): New rules.
9047 (install-only): Add install-guile dependency.
9048 (uninstall): Add uninstall-guile dependency.
9049 (clean): Add clean-guile dependency.
9051 2014-02-09 Doug Evans <xdje42@gmail.com>
9053 Revert this patch (which I approved, mea culpa).
9055 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9057 * Makefile.in (all-lib): Remove.
9058 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9060 2014-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9062 Fix Python stack corruption.
9063 * python/py-linetable.c (ltpy_get_pcs_for_line, ltpy_has_line): Use
9066 2014-02-08 Mark Kettenis <kettenis@gnu.org>
9068 * Makefile.in (all-lib): Remove.
9069 ($(LIBGNU) $(GNULIB_H)): Replace with gits of remove all-lib target.
9071 2014-02-07 Doug Evans <dje@google.com>
9073 * extension-priv.h (extension_language_script_ops): Add comment.
9074 (extension_language_ops): Add comment.
9075 (active_ext_lang_state): Fix typo in comment.
9077 2014-02-07 Pedro Alves <palves@redhat.com>
9079 PR breakpoints/16292
9080 * infrun.c (handle_signal_stop) <signal arrives while stepping
9081 over a breakpoint>: Switch back to the stepping thread.
9083 2014-02-07 Yao Qi <yao@codesourcery.com>
9085 * target.c (target_xfer_partial): Return zero if LEN is zero.
9087 2014-02-07 Yao Qi <yao@codesourcery.com>
9089 * auxv.c (procfs_xfer_auxv): Replace -1 with TARGET_XFER_E_IO.
9090 (ld_so_xfer_auxv): Likewise.
9091 * bfd-target.c (target_bfd_xfer_partial): Likewise.
9092 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
9093 * corelow.c (core_xfer_partial): Likewise.
9094 * ctf.c (ctf_xfer_partial): Likewise.
9095 * darwin-nat.c (darwin_read_dyld_info): Likewise.
9096 (darwin_xfer_partial): Likewise.
9097 * exec.c (exec_xfer_partial): Likewise.
9098 * gnu-nat.c (gnu_xfer_partial): Likewise.
9099 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): Likewise.
9100 * inf-ptrace.c (inf_ptrace_xfer_partial): Likewise.
9101 * inf-ttrace.c (inf_ttrace_xfer_partial): Likewise.
9102 * linux-nat.c (linux_xfer_siginfo): Likewise.
9103 (linux_proc_xfer_spu): Likewise.
9104 * procfs.c (procfs_xfer_partial): Likewise.
9105 * record-full.c (record_full_xfer_partial): Likewise.
9106 (record_full_core_xfer_partial): Likewise.
9107 * remote-sim.c (gdbsim_xfer_partial): Likewise.
9108 * remote.c (remote_write_qxfer): Likewise.
9109 (remote_write_qxfer, remote_read_qxfer): Likewise.
9110 (remote_xfer_partial): Likewise.
9111 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
9112 (rs6000_xfer_shared_libraries): Likewise.
9113 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
9114 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
9115 (spu_xfer_partial): Likewise.
9116 * target.c (memory_xfer_partial_1): Likewise.
9117 * tracepoint.c (tfile_xfer_partial): Likewise.
9118 * windows-nat.c (windows_xfer_shared_libraries): Likewise.
9119 (windows_xfer_partial): Likewise.
9121 2014-02-07 Yao Qi <yao@codesourcery.com>
9123 * gdbarch.sh (core_xfer_shared_libraries): Returns ULONGEST. Add
9125 (core_xfer_shared_libraries_aix): Likewise.
9126 * gdbarch.c, gdbarch.h: Regenerated.
9127 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries): Return
9128 ULONGEST. Change 'len_avail' type to ULONGEST.
9129 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
9130 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
9132 (rs6000_aix_core_xfer_shared_libraries_aix): Return ULONGEST.
9134 2014-02-07 Yao Qi <yao@codesourcery.com>
9136 * corefile.c (memory_error): Get 'exception' from ERR and pass
9137 'exception' to throw_error.
9139 2014-02-06 Doug Evans <xdje42@gmail.com>
9141 * configure.ac (libpython checking): Remove all but python.o from
9142 CONFIG_OBS. Remove all but python.c from CONFIG_SRCS.
9143 * configure: Regenerate.
9145 * Makefile.in (SFILES): Add extension.c.
9146 (HFILES_NO_SRCDIR): Add extension.h, extension-priv.h
9147 (COMMON_OBS): Add extension.o.
9148 * extension.h: New file.
9149 * extension-priv.h: New file.
9150 * extension.c: New file.
9152 * python/python-internal.h: #include "extension.h".
9153 (gdbpy_auto_load_enabled): Declare.
9154 (gdbpy_apply_val_pretty_printer): Declare.
9155 (gdbpy_apply_frame_filter): Declare.
9156 (gdbpy_preserve_values): Declare.
9157 (gdbpy_breakpoint_cond_says_stop): Declare.
9158 (gdbpy_breakpoint_has_cond): Declare.
9159 (void source_python_script_for_objfile): Delete.
9160 * python/python.c: #include "extension-priv.h".
9161 Delete inclusion of "observer.h".
9162 (extension_language_python): Moved here and renamed from
9163 script_language_python in py-auto-load.c.
9164 Redefined to be of type extension_language_defn.
9165 (python_extension_script_ops): New global.
9166 (python_extension_ops): New global.
9167 (struct python_env): New member previous_active.
9168 (restore_python_env): Call restore_active_ext_lang.
9169 (ensure_python_env): Call set_active_ext_lang.
9170 (gdbpy_clear_quit_flag): Renamed from clear_quit_flag, made static.
9172 (gdbpy_set_quit_flag): Renamed from set_quit_flag, made static.
9174 (gdbpy_check_quit_flag): Renamed from check_quit_flag, made static.
9176 (gdbpy_eval_from_control_command): Renamed from
9177 eval_python_from_control_command, made static. New arg extlang.
9178 (gdbpy_source_script) Renamed from source_python_script, made static.
9180 (gdbpy_before_prompt_hook): Renamed from before_prompt_hook. Change
9181 result to int. New arg extlang.
9182 (gdbpy_source_objfile_script): Renamed from
9183 source_python_script_for_objfile, made static. New arg extlang.
9184 (gdbpy_start_type_printers): Renamed from start_type_printers, made
9185 static. New args extlang, extlang_printers. Change result type to
9187 (gdbpy_apply_type_printers): Renamed from apply_type_printers, made
9188 static. New arg extlang. Rename arg printers to extlang_printers
9189 and change type to ext_lang_type_printers *.
9190 (gdbpy_free_type_printers): Renamed from free_type_printers, made
9191 static. Replace argument arg with extlang, extlang_printers.
9192 (!HAVE_PYTHON, eval_python_from_control_command): Delete.
9193 (!HAVE_PYTHON, source_python_script): Delete.
9194 (!HAVE_PYTHON, gdbpy_should_stop): Delete.
9195 (!HAVE_PYTHON, gdbpy_breakpoint_has_py_cond): Delete.
9196 (!HAVE_PYTHON, start_type_printers): Delete.
9197 (!HAVE_PYTHON, apply_type_printers): Delete.
9198 (!HAVE_PYTHON, free_type_printers): Delete.
9199 (_initialize_python): Delete call to observer_attach_before_prompt.
9200 (finalize_python): Set/restore active extension language.
9201 (gdbpy_finish_initialization) Renamed from
9202 finish_python_initialization, made static. New arg extlang.
9203 (gdbpy_initialized): New function.
9204 * python/python.h: #include "extension.h". Delete #include
9205 "value.h", "mi/mi-cmds.h".
9206 (extension_language_python): Declare.
9207 (GDBPY_AUTO_FILE_NAME): Delete.
9208 (enum py_bt_status): Moved to extension.h and renamed to
9210 (enum frame_filter_flags): Moved to extension.h.
9211 (enum py_frame_args): Moved to extension.h and renamed to
9212 ext_lang_frame_args.
9213 (finish_python_initialization): Delete.
9214 (eval_python_from_control_command): Delete.
9215 (source_python_script): Delete.
9216 (apply_val_pretty_printer): Delete.
9217 (apply_frame_filter): Delete.
9218 (preserve_python_values): Delete.
9219 (gdbpy_script_language_defn): Delete.
9220 (gdbpy_should_stop, gdbpy_breakpoint_has_py_cond): Delete.
9221 (start_type_printers, apply_type_printers, free_type_printers): Delete.
9223 * auto-load.c: #include "extension.h".
9224 (GDB_AUTO_FILE_NAME): Delete.
9225 (auto_load_gdb_scripts_enabled): Make public. New arg extlang.
9226 (script_language_gdb): Delete, moved to extension.c and renamed to
9227 extension_language_gdb.
9228 (source_gdb_script_for_objfile): Delete.
9229 (auto_load_pspace_info): New member unsupported_script_warning_printed.
9230 (loaded_script): Change type of language member to
9231 struct extension_language_defn *.
9232 (init_loaded_scripts_info): Initialize
9233 unsupported_script_warning_printed.
9234 (maybe_add_script): Make static. Change type of language arg to
9235 struct extension_language_defn *.
9236 (clear_section_scripts): Reset unsupported_script_warning_printed.
9237 (auto_load_objfile_script_1): Rewrite to use extension language API.
9238 (auto_load_objfile_script): Make public. Remove support-compiled-in
9239 and auto-load-enabled checks, moved to auto_load_scripts_for_objfile.
9240 (source_section_scripts): Rewrite to use extension language API.
9241 (load_auto_scripts_for_objfile): Rewrite to use
9242 auto_load_scripts_for_objfile.
9243 (collect_matching_scripts_data): Change type of language member to
9244 struct extension_language_defn *.
9245 (auto_load_info_scripts): Change type of language arg to
9246 struct extension_language_defn *.
9247 (unsupported_script_warning_print): New function.
9248 (script_not_found_warning_print): Make static.
9249 (_initialize_auto_load): Rewrite construction of scripts-directory
9251 * auto-load.h (struct objfile): Add forward decl.
9252 (struct script_language): Delete.
9253 (struct auto_load_pspace_info): Add forward decl.
9254 (struct extension_language_defn): Add forward decl.
9255 (maybe_add_script): Delete.
9256 (auto_load_objfile_script): Declare.
9257 (script_not_found_warning_print): Delete.
9258 (auto_load_info_scripts): Update prototype.
9259 (auto_load_gdb_scripts_enabled): Declare.
9260 * python/py-auto-load.c (gdbpy_auto_load_enabled): Renamed from
9261 auto_load_python_scripts_enabled and made public.
9262 (script_language_python): Delete, moved to python.c.
9263 (gdbpy_script_language_defn): Delete.
9264 (info_auto_load_python_scripts): Update to use
9265 extension_language_python.
9267 * breakpoint.c (condition_command): Replace call to
9268 gdbpy_breakpoint_has_py_cond with call to get_breakpoint_cond_ext_lang.
9269 (bpstat_check_breakpoint_conditions): Replace call to gdbpy_should_stop
9270 with call to breakpoint_ext_lang_cond_says_stop.
9271 * python/py-breakpoint.c (gdbpy_breakpoint_cond_says_stop): Renamed
9272 from gdbpy_should_stop. Change result type to enum scr_bp_stop.
9273 New arg slang. Return SCR_BP_STOP_UNSET if py_bp_object is NULL.
9274 (gdbpy_breakpoint_has_cond): Renamed from gdbpy_breakpoint_has_py_cond.
9276 (local_setattro): Print name of extension language with existing
9279 * valprint.c (val_print, value_print): Update to call
9280 apply_ext_lang_val_pretty_printer.
9281 * cp-valprint.c (cp_print_value): Update call to
9282 apply_ext_lang_val_pretty_printer.
9283 * python/py-prettyprint.c: Remove #ifdef HAVE_PYTHON.
9284 (gdbpy_apply_val_pretty_printer): Renamed from
9285 apply_val_pretty_printer. New arg extlang.
9286 (!HAVE_PYTHON, apply_val_pretty_printer): Delete.
9288 * cli/cli-cmds.c (source_script_from_stream): Rewrite to use
9289 extension language API.
9290 * cli/cli-script.c (execute_control_command): Update to call
9291 eval_ext_lang_from_control_command.
9293 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Update to use
9294 enum ext_lang_bt_status values. Update call to
9295 apply_ext_lang_frame_filter.
9296 (mi_cmd_stack_list_locals): Ditto.
9297 (mi_cmd_stack_list_args): Ditto.
9298 (mi_cmd_stack_list_variables): Ditto.
9299 * mi/mi-main.c: Delete #include "python/python-internal.h".
9300 Add #include "extension.h".
9301 (mi_cmd_list_features): Replace reference to python internal variable
9302 gdb_python_initialized with call to ext_lang_initialized_p.
9304 * stack.c (backtrace_command_1): Update to use enum ext_lang_bt_status.
9305 Update to use enum ext_lang_frame_args. Update to call
9306 apply_ext_lang_frame_filter.
9307 * python/py-framefilter.c (extract_sym): Update to use enum
9309 (extract_value, py_print_type, py_print_value): Ditto.
9310 (py_print_single_arg, enumerate_args, enumerate_locals): Ditto.
9311 (py_mi_print_variables, py_print_locals, py_print_args): Ditto.
9312 (py_print_frame): Ditto.
9313 (gdbpy_apply_frame_filter): Renamed from apply_frame_filter.
9314 New arg extlang. Update to use enum ext_lang_bt_status.
9316 * top.c (gdb_init): Delete #ifdef HAVE_PYTHON call to
9317 finish_python_initialization. Replace with call to
9318 finish_ext_lang_initialization.
9320 * typeprint.c (do_free_global_table): Update to call
9321 free_ext_lang_type_printers.
9322 (create_global_typedef_table): Update to call
9323 start_ext_lang_type_printers.
9324 (find_global_typedef): Update to call apply_ext_lang_type_printers.
9325 * typeprint.h (struct ext_lang_type_printers): Add forward decl.
9326 (type_print_options): Change type of global_printers from "void *"
9327 to "struct ext_lang_type_printers *".
9329 * value.c (preserve_values): Update to call preserve_ext_lang_values.
9330 * python/py-value.c: Remove #ifdef HAVE_PYTHON.
9331 (gdbpy_preserve_values): Renamed from preserve_python_values.
9333 (!HAVE_PYTHON, preserve_python_values): Delete.
9335 * utils.c (quit_flag): Delete, moved to extension.c.
9336 (clear_quit_flag, set_quit_flag, check_quit_flag): Delete, moved to
9339 * eval.c: Delete #include "python/python.h".
9340 * main.c: Delete #include "python/python.h".
9342 * defs.h: Update comment.
9344 2014-02-06 Joel Brobecker <brobecker@adacore.com>
9348 2014-02-05 Mark Kettenis <kettenis@gnu.org>
9350 * c-exp.y (YYPRINT, c_print_token): Only define if YYBISON is
9353 2014-02-05 Yao Qi <yao@codesourcery.com>
9355 * remote.c (remote_pass_signals): Remove local 'buf' and use
9357 (remote_program_signals): Likewise.
9359 2014-02-05 Yao Qi <yao@codesourcery.com>
9361 * ctf.c: Include "inferior.h" and "gdbthread.h".
9362 (CTF_PID): A new macro.
9363 (ctf_open): Call inferior_appeared and add_thread_silent.
9364 (ctf_close): Call exit_inferior_silent and set inferior_ptid.
9365 (ctf_thread_alive): New function.
9366 (init_ctf_ops): Install ctf_thread_alive to to_thread_alive.
9368 2014-02-05 Yao Qi <yao@codesourcery.com>
9372 2013-05-24 Yao Qi <yao@codesourcery.com>
9374 * tracepoint.c (TFILE_PID): Remove.
9375 (tfile_open): Don't add thread and inferior.
9376 (tfile_close): Don't set 'inferior_ptid'. Don't call
9377 exit_inferior_silent.
9378 (tfile_thread_alive): Remove.
9379 (init_tfile_ops): Don't set field 'to_thread_alive' of
9382 2014-02-04 Christian Eggers <ceggers@gmx.de> (tiny change)
9384 * remote.c (remote_start_remote): Call remote_check_symbols even
9385 if only symbol-file (not file) has been given.
9387 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9389 * gdbarch.sh (skip_entrypoint): New callback.
9390 * gdbarch.c, gdbarch.h: Regenerate.
9391 * symtab.c (skip_prologue_sal): Call gdbarch_skip_entrypoint.
9392 * infrun.c (fill_in_stop_func): Likewise.
9393 * ppc-linux-tdep.c: Include "elf/ppc64.h".
9394 (ppc_elfv2_elf_make_msymbol_special): New function.
9395 (ppc_elfv2_skip_entrypoint): Likewise.
9396 (ppc_linux_init_abi): Install them for ELFv2.
9398 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9400 * ppc-sysv-tdep.c (ppc64_aggregate_candidate): New routine.
9401 (ppc64_elfv2_abi_homogeneous_aggregate): Likewise.
9402 (ppc64_sysv_abi_push_param): Handle ELFv2 homogeneous structs.
9403 (ppc64_sysv_abi_return_value): Likewise. Also, handle small
9404 structures returned in GPRs.
9406 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9408 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Use correct
9409 offset to the stack parameter list for the ELFv2 ABI.
9411 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9413 * ppc-linux-tdep.c (ppc_linux_init_abi): Only call
9414 set_gdbarch_convert_from_func_ptr_addr and
9415 set_gdbarch_elf_make_msymbol_special for ELFv1.
9416 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_param): Only handle
9417 function descriptors on ELFv1.
9418 (ppc64_sysv_abi_push_dummy_call): Likewise. On ELFv2,
9419 set up r12 at function entry.
9421 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9423 * ppc-tdep.h (enum powerpc_elf_abi): New data type.
9424 (struct gdbarch_tdep): New member elf_abi.
9426 * rs6000-tdep.c: Include "elf/ppc64.h".
9427 (rs6000_gdbarch_init): Detect ELF ABI version.
9429 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9431 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct order
9432 within a register pair holding a DFP 128-bit value on little-endian.
9433 (ppc64_sysv_abi_return_value_base): Likewise.
9434 * rs6000-tdep.c (dfp_pseudo_register_read): Likewise.
9435 (dfp_pseudo_register_write): Likewise.
9437 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9439 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_freg): Use correct
9440 offset on little-endian when passing _Decimal32.
9441 (ppc64_sysv_abi_return_value_base): Likewise for return values.
9443 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9445 * rs6000-tdep.c (efpr_pseudo_register_read): Use correct offset
9446 of the overlapped FP register within the VSX register on little-
9448 (efpr_pseudo_register_write): Likewise.
9450 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9452 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_val): Use correct
9453 offset on little-endian when passing small structures.
9455 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9457 * ppc-sysv-tdep.c (get_decimal_float_return_value): Update comment.
9458 (struct ppc64_sysv_argpos): New data structure.
9459 (ppc64_sysv_abi_push_float): Remove.
9460 (ppc64_sysv_abi_push_val): New function.
9461 (ppc64_sysv_abi_push_integer): Likewise.
9462 (ppc64_sysv_abi_push_freg): Likewise.
9463 (ppc64_sysv_abi_push_vreg): Likewise.
9464 (ppc64_sysv_abi_push_param): Likewise.
9465 (ppc64_sysv_abi_push_dummy_call): Refactor to use those new routines.
9466 (ppc64_sysv_abi_return_value_base): New function.
9467 (ppc64_sysv_abi_return_value): Refactor to use it.
9469 2014-02-04 Ulrich Weigand <uweigand@de.ibm.com>
9471 * NEWS: Document new target powerpc64le-*-linux*.
9473 2014-02-04 Mark Kettenis <kettenis@gnu.org>
9475 * sparc64obsd-tdep.c (sparc64obsd_gregset): New variable.
9476 (sparc64obsd_supply_gregset): Handle registers sets used in ELF
9478 (sparc64obsd_init_abi): Adjust minimum size of the general purpose
9479 register set used in ELF core dumps. Add floating-point register set.
9481 2014-02-03 Kevin Buettner <kevinb@redhat.com>
9483 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Rewrite
9484 dwarf2_to_gdb[] table using symbolic constants. Adjust
9485 penultimate entry from number representing the PC register
9486 to symbolic constant representing the MDR register. Add
9487 constant for the PC register to the end of the table.
9489 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9491 * bsd-kvm.c: Include <sys/param.h>
9493 2014-02-03 Mark Kettenis <kettenis@gnu.org>
9495 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Fix prototype.
9497 2014-01-31 Joel Brobecker <brobecker@adacore.com>
9499 * ada-lang.h (clear_ada_sym_cache): Delete.
9501 2014-01-30 Ulrich Weigand <uweigand@de.ibm.com>
9503 * auxv.c (fprint_target_auxv): Handle AT_HWCAP2.
9505 2014-01-29 Jose E. Marchesi <jose.marchesi@oracle.com>
9507 * sparc64-linux-tdep.c (sparc64_linux_step_trap): Get PC from
9508 the sigreturn register save area only if the syscall is
9511 2014-01-29 Joel Brobecker <brobecker@adacore.com>
9513 * valops.c (value_slice): Minor reformatting.
9515 2014-01-28 Ulrich Weigand <uweigand@de.ibm.com>
9517 * ppc64-tdep.c (ppc64_standard_linkage7): Fix typo.
9519 2014-01-28 Joel Brobecker <brobecker@adacore.com>
9521 * ada-lang.c (maint_set_ada_cmdlist, maint_show_ada_cmdlist):
9523 (maint_set_ada_cmd, maint_show_ada_cmd): New functions.
9524 (ada_ignore_descriptive_types_p): New static global.
9525 (find_parallel_type_by_descriptive_type): Return immediately
9526 if ada_ignore_descriptive_types_p is set.
9527 (_initialize_ada_language): Register new commands "maintenance
9528 set ada", "maintenance show ada", "maintenance set ada
9529 ignore-descriptive-types" and "maintenance show ada
9530 ignore-descriptive-types".
9531 * NEWS: Add entry for new "maint ada set/show
9532 ignore-descriptive-types" commands.
9534 2014-01-27 Markus Metzger <markus.t.metzger@intel.com>
9536 * record-btrace.c (record_btrace_close): Call btrace_teardown
9539 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9541 * ada-lang.c: Remove "#ifdef UI_OUT" condition for including
9544 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9546 * ada-typeprint (type_is_full_subrange_of_target_type):
9548 (print_range): Add parameter bounds_prefered_p. If not set,
9549 try printing range types using the name of their base type.
9550 (print_range_type): Add parameter bounds_prefered_p.
9551 Use it in call to print_range.
9552 (print_array_type, ada_print_type): Update calls to print_range
9553 and print_range_type.
9555 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9557 * ada-typeprint.c (print_array_type, print_choices, print_range)
9558 (print_range_bound, print_dynamic_range_bound, print_range_type):
9561 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9563 * ada-typeprint.c (print_range): Add missing empty line
9564 after local declaration.
9566 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9568 * ada-valprint.c (print_optional_low_bound): Get index_type's
9569 target type for as long as it is a TYPE_CODE_RANGE.
9571 2014-01-27 Joel Brobecker <brobecker@adacore.com>
9573 * procfs.c (procfs_make_note_section): Remove assertion and
9576 2014-01-24 Yao Qi <yao@codesourcery.com>
9578 * remote.c (remote_read_bytes): Change type of len to ULONGEST.
9579 * corelow.c (get_core_siginfo): Likewise.
9581 2014-01-24 Yao Qi <yao@codesourcery.com>
9583 * remote.c (remote_write_bytes_aux): Change type of 'len' to
9584 ULONGEST. Don't check 'len' is negative.
9585 (remote_write_bytes): Change type of 'len' to ULONGEST.
9587 2014-01-23 Tom Tromey <tromey@redhat.com>
9590 * python/lib/gdb/FrameDecorator.py: (FrameVars.fetch_frame_args):
9591 Handle exception from frame.block.
9592 (FrameVars.fetch_frame_locals): Likewise.
9594 2014-01-23 Tom Tromey <tromey@redhat.com>
9597 * python/py-framefilter.c (py_print_frame): Don't call Py_DECREF
9598 on a NULL pointer. Move "goto error" to correct place.
9600 2014-01-23 Tom Tromey <tromey@redhat.com>
9603 * python/py-framefilter.c (apply_frame_filter): Call
9604 ensure_python_env after computing gdbarch.
9606 2014-01-23 Yao Qi <yao@codesourcery.com>
9608 * target.c (raw_memory_xfer_partial): Change argument type
9609 from void * to gdb_byte *.
9610 (memory_xfer_partial_1, memory_xfer_partial): Likewise.
9612 2014-01-22 Doug Evans <dje@google.com>
9614 New gdbserver option --debug-format=timestamp.
9617 2014-01-22 Andreas Arnez <arnez@vnet.linux.ibm.com>
9619 * syscalls/s390x-linux.xml: New file.
9620 * syscalls/s390-linux.xml: New file.
9621 * s390-linux-tdep.c (XML_SYSCALL_FILENAME_S390): New macro.
9622 (XML_SYSCALL_FILENAME_S390X): Likewise.
9623 (op_svc): New enum value for SVC opcode.
9624 (s390_sigtramp_frame_sniffer): Replace literal by 'op_svc'.
9625 (s390_linux_get_syscall_number): New function.
9626 (s390_gdbarch_init): Register '*get_syscall_number' and the
9627 syscall xml file name.
9628 * data-directory/Makefile.in (SYSCALLS_FILES): Add
9629 "s390-linux.xml" and "s390x-linux.xml".
9630 * NEWS: Announce new feature.
9632 2014-01-22 Baruch Siach <baruch@tkos.co.il>
9634 * xtensa-tdep.h (xtensa_elf_greg_t): Change type to uint32_t.
9636 2014-01-22 Pedro Alves <palves@redhat.com>
9638 * xtensa-config.c: Include defs.h.
9640 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9642 * common/common-utils.h: Add "ARI:" comment beside __func__
9645 2014-01-22 Joel Brobecker <brobecker@adacore.com>
9647 * common/common-utils.h (FUNCTION_NAME): Expand the macro's
9648 documentation a bit.
9650 2014-01-21 Roland McGrath <mcgrathr@google.com>
9652 * configure.ac: Call AM_PROG_INSTALL_STRIP.
9653 * configure: Regenerate.
9654 * aclocal.m4: Regenerate.
9655 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM, STRIP):
9656 New substituted variables.
9657 (install-strip): New target.
9658 (INSTALL_SCRIPT): New substituted variable.
9659 (FLAGS_TO_PASS): Add it.
9660 (install-only): Use $(INSTALL_SCRIPT) rather than
9661 $(INSTALL_PROGRAM) for gcore.
9663 2014-01-20 Tom Tromey <tromey@redhat.com>
9665 * cli/cli-decode.h (struct cmd_list_element): Move all bitfields
9668 2014-01-20 Tom Tromey <tromey@redhat.com>
9670 * cli/cli-decode.c (add_cmd, deprecate_cmd, add_alias_cmd)
9671 (add_setshow_cmd_full, delete_cmd, lookup_cmd_1)
9672 (deprecated_cmd_warning, complete_on_cmdlist): Update.
9673 * cli/cli-decode.h (CMD_DEPRECATED, DEPRECATED_WARN_USER)
9674 (MALLOCED_REPLACEMENT, DOC_ALLOCATED): Remove.
9675 (struct cmd_list_element) <flags>: Remove.
9676 <cmd_deprecated, deprecated_warn_user, malloced_replacement,
9677 doc_allocated>: New fields.
9678 <hook_in, allow_unknown, abbrev_flag, type, var_type>: Now
9680 * maint.c (maintenance_do_deprecate): Update.
9681 * top.c (execute_command): Update.
9683 2014-01-20 Baruch Siach <baruch@tkos.co.il>
9685 * xtensa-linux-nat.c: Include asm/ptrace.h.
9687 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9689 * Makefile.in (SFILES): Add d-support.c.
9690 (COMMON_OBS): Add d-support.o.
9691 * d-lang.h (d_parse_symbol): Add comment, now defined in
9693 * d-lang.c (parse_call_convention)
9694 (parse_attributes, parse_function_types)
9695 (parse_function_args, parse_type, parse_identifier)
9696 (call_convention_p, d_parse_symbol): Move functions to ...
9697 * d-support.c: ... New file.
9699 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9701 * d-lang.h (d_parse_symbol): Add declaration.
9702 * d-lang.c (extract_identifiers)
9703 (extract_type_info): Remove functions.
9704 (parse_call_convention, parse_attributes)
9705 (parse_function_types, parse_function_args)
9706 (parse_type, parse_identifier, call_convention_p)
9707 (d_parse_symbol): New functions.
9708 (d_demangle): Use d_parse_symbol to demangle D symbols.
9710 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9712 * d-lang.h (struct builtin_d_type): New data type.
9713 (builtin_d_type): Add declaration.
9714 * d-lang.c (d_language_arch_info, build_d_types)
9715 (builtin_d_type): New functions.
9716 (enum d_primitive_types): New data type.
9717 (d_language_defn): Change c_language_arch_info to
9718 d_language_arch_info.
9719 (d_type_data): New static variable.
9720 (_initialize_d_language): Initialize d_type_data.
9722 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9724 * d-lang.h (d_main_name): Add declaration.
9725 * d-lang.c (d_main_name): New function.
9726 * symtab.c (find_main_name): Add call to d_main_name.
9728 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9730 * d-lang.c (d_language_defn): Change macro_expansion_c to
9733 2014-01-17 Iain Buclaw <ibuclaw@gdcproject.org>
9735 * MAINTAINERS: Add myself as a write-after-approval maintainer.
9737 2014-01-17 Sergio Durigan Junior <sergiodj@redhat.com>
9739 * breakpoint.c (insert_bp_location): Add "volatile" keyword to "struct
9740 gdb_exception" declaration.
9741 * remote.c (getpkt_or_notif_sane): Likewise.
9743 2014-01-17 Doug Evans <dje@google.com>
9745 * common/gdb_vecs.c (delim_string_to_char_ptr_vec_append): New
9746 function, contents of dirnames_to_char_ptr_vec_append moved here.
9747 (delim_string_to_char_ptr_vec): New function.
9748 (dirnames_to_char_ptr_vec_append): Rewrite.
9749 * common/gdb_vecs.h (delim_string_to_char_ptr_vec): Declare.
9751 2014-01-17 Doug Evans <dje@google.com>
9753 * common/common-utils.h (FUNCTION_NAME): Renamed from ASSERT_FUNCTION,
9755 * common/gdb_assert.h (ASSERT_FUNCTION): ... from here.
9756 #include "common-utils.h".
9757 (gdb_assert, gdb_assert_fail, gdb_assert_not_reached): Update.
9758 * common/vec.h (VEC_ASSERT_PASS): Update.
9759 * darwin-nat.h: Replace #include of gdb_assert.h with common-utils.h.
9760 (MACH_CHECK_ERROR): Update.
9762 2014-01-17 Simon Marchi <simon.marchi@ericsson.com>
9764 * gdbarch.sh (gdbarch_address_class_name_to_type_flags): Add
9766 * gdbarch.h: Regenerate.
9768 2014-01-16 Tom Tromey <tromey@redhat.com>
9770 * value.c (struct value) <regnum>: Move earlier.
9772 2014-01-16 Tom Tromey <tromey@redhat.com>
9774 * remote.c (extended_remote_create_inferior): Rename from
9775 extended_remote_create_inferior_1. Add "ops" argument. Remove
9778 2014-01-16 Pedro Alves <palves@redhat.com>
9780 * s390-linux-tdep.c (s390_frame_unwind_cache): Swallow
9781 NOT_AVAILABLE_ERROR errors while parsing the prologue or reading
9784 2014-01-16 Doug Evans <dje@google.com>
9786 * dwarf2read.c (open_and_init_dwp_file): Fix typo in comment.
9788 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9790 * btrace.h (btrace_thread_flag): New.
9791 (struct btrace_thread_info) <flags>: New.
9792 * record-btrace.c (record_btrace_resume_thread)
9793 (record_btrace_find_thread_to_move, btrace_step_no_history)
9794 (btrace_step_stopped, record_btrace_start_replaying)
9795 (record_btrace_step_thread, record_btrace_decr_pc_after_break)
9796 (record_btrace_find_resume_thread): New.
9797 (record_btrace_resume, record_btrace_wait): Extend.
9798 (record_btrace_can_execute_reverse): New.
9799 (record_btrace_open): Fail in non-stop mode.
9800 (record_btrace_set_replay): Split into this, ...
9801 (record_btrace_stop_replaying): ... this, ...
9802 (record_btrace_clear_histories): ... and this.
9803 (init_record_btrace_ops): Init to_can_execute_reverse.
9804 * NEWS: Announce it.
9806 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9808 * target.h (struct target_ops) <to_decr_pc_after_break>: New.
9809 (forward_target_decr_pc_after_break)
9810 (target_decr_pc_after_break): New.
9811 * target.c (forward_target_decr_pc_after_break)
9812 (target_decr_pc_after_break): New.
9813 * aix-thread.c (aix_thread_wait): Call target_decr_pc_after_break
9814 instead of gdbarch_decr_pc_after_break.
9815 * darwin-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9816 instead of gdbarch_decr_pc_after_break.
9817 * infrun.c (adjust_pc_after_break): Call target_decr_pc_after_break
9818 instead of gdbarch_decr_pc_after_break.
9819 * linux-nat.c (cancel_breakpoint): Call target_decr_pc_after_break
9820 instead of gdbarch_decr_pc_after_break.
9821 * linux-thread-db.c (check_event): Call target_decr_pc_after_break
9822 instead of gdbarch_decr_pc_after_break.
9823 * record-full.c (record_full_wait_1): Call target_decr_pc_after_break
9824 instead of gdbarch_decr_pc_after_break.
9826 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9828 * btrace.c: Include regcache.h.
9829 (btrace_add_pc): New.
9830 (btrace_enable): Call btrace_add_pc.
9831 (btrace_is_empty): New.
9832 * btrace.h (btrace_is_empty): New.
9833 * record-btrace.c (require_btrace, record_btrace_info): Call
9836 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9838 * common/linux-btrace.c (perf_event_read_bts, linux_read_btrace):
9839 Support delta reads.
9840 (linux_disable_btrace): Change return type.
9841 * common/linux-btrace.h (linux_read_btrace): Change parameters
9842 and return type to allow error reporting. Update users.
9843 (linux_disable_btrace): Change return type. Update users.
9844 * common/btrace-common.h (btrace_read_type) <BTRACE_READ_DELTA>:
9846 (btrace_error): New.
9847 (btrace_block) <begin>: Comment on BEGIN == 0.
9848 * btrace.c (btrace_compute_ftrace): Start from the end of
9850 (btrace_stitch_trace, btrace_clear_history): New.
9851 (btrace_fetch): Read delta trace, return if replaying.
9852 (btrace_clear): Move clear history code to btrace_clear_history.
9853 (parse_xml_btrace): Throw an error if parsing failed.
9854 * target.h (struct target_ops) <to_read_btrace>: Change parameters
9855 and return type to allow error reporting.
9856 (target_read_btrace): Change parameters and return type to allow
9858 * target.c (target_read_btrace): Update.
9859 * remote.c (remote_read_btrace): Support delta reads. Pass
9861 * NEWS: Announce it.
9863 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9865 * record.h (record_btrace_frame_unwind)
9866 (record_btrace_tailcall_frame_unwind): New declarations.
9867 * dwarf2-frame: Include record.h
9868 (dwarf2_frame_cfa): Throw an error for btrace frames.
9869 * record-btrace.c: Include hashtab.h.
9870 (btrace_get_bfun_name): New.
9871 (btrace_call_history): Call btrace_get_bfun_name.
9872 (struct btrace_frame_cache): New.
9874 (bfcache_hash, bfcache_eq, bfcache_new): New.
9875 (btrace_get_frame_function): New.
9876 (record_btrace_frame_unwind_stop_reason): Allow unwinding.
9877 (record_btrace_frame_this_id): Compute own id.
9878 (record_btrace_frame_prev_register): Provide PC, throw_error
9879 for all other registers.
9880 (record_btrace_frame_sniffer): Detect btrace frames.
9881 (record_btrace_tailcall_frame_sniffer): New.
9882 (record_btrace_frame_dealloc_cache): New.
9883 (record_btrace_frame_unwind): Add new functions.
9884 (record_btrace_tailcall_frame_unwind): New.
9885 (_initialize_record_btrace): Allocate cache.
9886 * btrace.c (btrace_clear): Call reinit_frame_cache.
9887 * NEWS: Announce it.
9889 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9891 * record-btrace.c (record_btrace_set_replay)
9892 (record_btrace_goto_begin, record_btrace_goto_end)
9893 (record_btrace_goto): New.
9894 (init_record_btrace_ops): Initialize them.
9895 * NEWS: Announce it.
9897 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9899 * record-btrace.c (record_btrace_find_new_threads)
9900 (record_btrace_thread_alive): New.
9901 (init_record_btrace_ops): Initialize to_find_new_threads and
9904 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9906 * record-btrace.c (record_btrace_resume): New.
9907 (record_btrace_wait): New.
9908 (init_record_btrace_ops): Initialize to_wait and to_resume.
9910 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9912 * record-btrace.c (record_btrace_xfer_partial)
9913 (record_btrace_insert_breakpoint, record_btrace_remove_breakpoint)
9914 (record_btrace_allow_memory_access): New.
9915 (init_record_btrace_ops): Initialize new methods.
9916 * target.c (raw_memory_xfer_partial): Bail out if target reports
9917 that this memory is not available.
9919 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9921 * target.h (target_ops) <to_insert_breakpoint>
9922 <to_remove_breakpoint>: Add target_ops parameter.
9923 (forward_target_insert_breakpoint): New.
9924 (forward_target_remove_breakpoint): New.
9925 (memory_remove_breakpoint, memory_insert_breakpoint):
9926 Add target_ops parameter.
9927 * target.c (target_insert_breakpoint): Split into this and ...
9928 (forward_target_insert_breakpoint): ... this.
9929 (target_remove_breakpoint): Split into this and ...
9930 (forward_target_remove_breakpoint): ... this.
9931 (debug_to_insert_breakpoint): Add target_ops parameter.
9932 Call forward_target_insert_breakpoint.
9933 (debug_to_remove_breakpoint): Add target_ops parameter.
9934 Call forward_target_remove_breakpoint.
9935 (update_current_target): Do not inherit or default to_insert_breakpoint
9936 and to_remove_breakpoint.
9937 * corelow.c (ignore): Add target_ops parameter.
9938 * exec.c (ignore): Add target_ops parameter.
9939 * mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
9940 Add target_ops parameter.
9941 * monitor.c (monitor_insert_breakpoint, monitor_remove_breakpoint):
9942 Add target_ops parameter.
9943 * nto-procfs.c (procfs_insert_breakpoint, procfs_remove_breakpoint):
9944 Add target_ops parameter.
9945 * record-full.c (record_full_beneath_to_insert_breakpoint)
9946 (record_full_beneath_to_remove_breakpoint, tmp_to_insert_breakpoint)
9947 (tmp_to_remove_breakpoint, record_full_insert_breakpoint)
9948 (record_full_remove_breakpoint, record_full_core_insert_breakpoint)
9949 (record_full_core_remove_breakpoint): Add target_ops parameter.
9951 (record_full_beneath_to_insert_breakpoint_ops)
9952 (record_full_beneath_to_remove_breakpoint_ops)
9953 (tmp_to_insert_breakpoint_ops, tmp_to_remove_breakpoint_ops): New.
9954 (record_full_open): Initialize tmp_to_insert_breakpoint_ops,
9955 tmp_to_remove_breakpoint_ops,
9956 record_full_beneath_to_insert_breakpoint_ops, and
9957 record_full_beneath_to_remove_breakpoint_ops.
9958 * remote-m32r-sdi.c (m32r_insert_breakpoint)
9959 (m32r_remove_breakpoint): Add target_ops parameter.
9960 * remote-mips.c (mips_insert_breakpoint, mips_remove_breakpoint):
9961 Add target_ops parameter.
9962 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint):
9963 Add target_ops parameter.
9965 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9966 Markus Metzger <markus.t.metzger@intel.com>
9968 * record-btrace.c: Include frame-unwind.h.
9969 (record_btrace_frame_unwind_stop_reason)
9970 (record_btrace_frame_this_id, record_btrace_frame_prev_register)
9971 (record_btrace_frame_sniffer, record_btrace_frame_unwind):
9973 (init_record_btrace_ops): Install it.
9975 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9977 * frame.c (get_frame_unwind_stop_reason): Unconditionally call
9980 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9982 * dwarf2-frame.c (dwarf2_frame_cfa): Move UNWIND_UNAVAILABLE check
9985 2014-01-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9987 * frame-unwind.c: Include target.h.
9988 (frame_unwind_try_unwinder): New function with code from ...
9989 (frame_unwind_find_by_frame): ... here. New variable
9990 unwinder_from_target, call also target_get_unwinder)
9991 (target_get_tailcall_unwinder, and frame_unwind_try_unwinder for it.
9992 * target.c (target_get_unwinder, target_get_tailcall_unwinder): New.
9993 * target.h (struct target_ops): New fields to_get_unwinder and
9994 to_get_tailcall_unwinder.
9995 (target_get_unwinder, target_get_tailcall_unwinder): New declarations.
9997 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
9999 * record-btrace.c (record_btrace_fetch_registers)
10000 (record_btrace_store_registers)
10001 (record_btrace_to_prepare_to_store): New.
10002 (init_record_btrace_ops): Add the above.
10004 2014-01-16 Tom Tromey <tromey@redhat.com>
10006 * windows-nat.c (windows_prepare_to_store): Add 'self' argument.
10007 * target.h (struct target_ops) <to_prepare_to_store>: Add
10009 (target_prepare_to_store): Add argument.
10010 * target.c (debug_to_prepare_to_store): Add argument.
10011 (update_current_target): Update.
10012 * remote.c (remote_prepare_to_store): Add 'self' argument.
10013 * remote-sim.c (gdbsim_prepare_to_store): Add 'self' argument.
10014 * remote-mips.c (mips_prepare_to_store): Add 'self' argument.
10015 * remote-m32r-sdi.c (m32r_prepare_to_store): Add 'self' argument.
10016 * record-full.c (record_full_core_prepare_to_store): Add 'self'
10018 * ravenscar-thread.c (ravenscar_prepare_to_store): Add argument.
10019 * nto-procfs.c (procfs_prepare_to_store): Add 'self' argument.
10020 * monitor.c (monitor_prepare_to_store): Add 'self' argument.
10021 * inf-child.c (inf_child_prepare_to_store): Add 'self' argument.
10022 * go32-nat.c (go32_prepare_to_store): Add 'self' argument.
10024 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10026 * btrace.h (replay) <replay>: New.
10027 (btrace_is_replaying): New.
10028 * btrace.c (btrace_clear): Free replay iterator.
10029 (btrace_is_replaying): New.
10030 * record-btrace.c (record_btrace_is_replaying): New.
10031 (record_btrace_info): Print insn number if replaying.
10032 (record_btrace_insn_history): Start at replay position.
10033 (record_btrace_call_history): Start at replay position.
10034 (init_record_btrace_ops): Init to_record_is_replaying.
10036 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10038 * record-btrace.c (record_btrace_insn_history_range): Include
10040 (record_btrace_insn_history_from): Adjust range.
10041 (record_btrace_call_history_range): Include
10043 (record_btrace_call_history_from): Adjust range.
10044 * NEWS: Announce changes.
10046 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10048 * record.h (enum record_print_flag)
10049 <record_print_indent_calls>: New.
10050 * record.c (get_call_history_modifiers): Recognize /c modifier.
10051 (_initialize_record): Document /c modifier.
10052 * record-btrace.c (btrace_call_history): Add btinfo parameter.
10053 Reorder fields. Optionally indent the function name. Update
10055 * NEWS: Announce changes.
10057 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10059 * common/linux-btrace.c (linux_enable_btrace): Enlarge buffer.
10061 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10063 * btrace.c (ftrace_new_function): Start counting at one.
10064 * record-btrace.c (record_btrace_info): Adjust number of calls
10066 * NEWS: Announce it.
10068 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10070 * record-btrace.c (btrace_call_history_insn_range): Print
10071 insn range as [begin, end].
10073 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10075 * btrace.h (struct btrace_func_link): New.
10076 (enum btrace_function_flag): New.
10077 (struct btrace_inst): Rename to ...
10078 (struct btrace_insn): ...this. Update all users.
10079 (struct btrace_func) <ibegin, iend>: Remove.
10080 (struct btrace_func_link): New.
10081 (struct btrace_func): Rename to ...
10082 (struct btrace_function): ...this. Update all users.
10083 (struct btrace_function) <segment, flow, up, insn, insn_offset)
10084 (number, level, flags>: New.
10085 (struct btrace_insn_iterator): Rename to ...
10086 (struct btrace_insn_history): ...this.
10088 (struct btrace_insn_iterator, btrace_call_iterator): New.
10089 (struct btrace_target_info) <btrace, itrace, ftrace>: Remove.
10090 (struct btrace_target_info) <begin, end, level>
10091 <insn_history, call_history>: New.
10092 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10093 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10094 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10095 (btrace_call_number, btrace_call_begin, btrace_call_end)
10096 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10097 (btrace_find_function_by_number, btrace_set_insn_history)
10098 (btrace_set_call_history): New.
10099 * btrace.c (btrace_init_insn_iterator)
10100 (btrace_init_func_iterator, compute_itrace): Remove.
10101 (ftrace_print_function_name, ftrace_print_filename)
10102 (ftrace_skip_file): Change
10103 parameter to const.
10104 (ftrace_init_func): Remove.
10105 (ftrace_debug): Use new btrace_function fields.
10106 (ftrace_function_switched): Also consider gaining and
10107 losing symbol information).
10108 (ftrace_print_insn_addr, ftrace_new_call, ftrace_new_return)
10109 (ftrace_new_switch, ftrace_find_caller, ftrace_new_function)
10110 (ftrace_update_caller, ftrace_fixup_caller, ftrace_new_tailcall):
10112 (ftrace_new_function): Move. Remove debug print.
10113 (ftrace_update_lines, ftrace_update_insns): New.
10114 (ftrace_update_function): Check for call, ret, and jump.
10115 (compute_ftrace): Renamed to ...
10116 (btrace_compute_ftrace): ...this. Rewritten to compute call
10118 (btrace_fetch, btrace_clear): Updated.
10119 (btrace_insn_get, btrace_insn_number, btrace_insn_begin)
10120 (btrace_insn_end, btrace_insn_prev, btrace_insn_next)
10121 (btrace_insn_cmp, btrace_find_insn_by_number, btrace_call_get)
10122 (btrace_call_number, btrace_call_begin, btrace_call_end)
10123 (btrace_call_prev, btrace_call_next, btrace_call_cmp)
10124 (btrace_find_function_by_number, btrace_set_insn_history)
10125 (btrace_set_call_history): New.
10126 * record-btrace.c (require_btrace): Use new btrace thread
10128 (record_btrace_info, btrace_insn_history)
10129 (record_btrace_insn_history, record_btrace_insn_history_range):
10130 Use new btrace thread info fields and new iterator.
10131 (btrace_func_history_src_line): Rename to ...
10132 (btrace_call_history_src_line): ...this. Use new btrace
10133 thread info fields.
10134 (btrace_func_history): Rename to ...
10135 (btrace_call_history): ...this. Use new btrace thread info
10136 fields and new iterator.
10137 (record_btrace_call_history, record_btrace_call_history_range):
10138 Use new btrace thread info fields and new iterator.
10140 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10142 * frame.h (frame_id_build_unavailable_stack_special): New.
10143 * frame.c (frame_id_build_unavailable_stack_special): New.
10145 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10147 * amd64-tdep.c (amd64_classify_insn_at, amd64_insn_is_call)
10148 (amd64_insn_is_ret, amd64_insn_is_jump, amd64_jmp_p): New.
10149 (amd64_init_abi): Add insn_is_call, insn_is_ret, and insn_is_jump
10151 * i386-tdep.c (i386_insn_is_call, i386_insn_is_ret)
10152 (i386_insn_is_jump, i386_jmp_p): New.
10153 (i386_gdbarch_init): Add insn_is_call, insn_is_ret, and
10154 insn_is_jump to gdbarch.
10155 * gdbarch.sh (insn_is_call, insn_is_ret, insn_is_jump): New.
10156 * gdbarch.h: Regenerated.
10157 * gdbarch.c: Regenerated.
10158 * arch-utils.h (default_insn_is_call, default_insn_is_ret)
10159 (default_insn_is_jump): New.
10160 * arch-utils.c (default_insn_is_call, default_insn_is_ret)
10161 (default_insn_is_jump): New.
10163 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10165 * common/btrace-common.h (btrace_read_type) <btrace_read_all>:
10167 (btrace_read_type) <BTRACE_READ_ALL>: ... this. Update users.
10168 (btrace_read_type) <btrace_read_new>: Change to ...
10169 (btrace_read_type) <BTRACE_READ_NEW>: ... this. Update users.
10171 2014-01-16 Markus Metzger <markus.t.metzger@intel.com>
10173 * common/linux-btrace.c (linux_read_btrace): Free trace from
10174 previous iteration.
10176 2014-01-15 Doug Evans <dje@google.com>
10178 * dwarf2read.c (open_and_init_dwp_file): Use pulongest to print
10181 2014-01-15 Tom Tromey <tromey@redhat.com>
10183 * dbxread.c (process_one_symbol): Use set_objfile_main_name.
10184 * dwarf2read.c (read_partial_die): Use set_objfile_main_name.
10185 * objfiles.c (get_objfile_bfd_data): Initialize language_of_main.
10186 (set_objfile_main_name): New function.
10187 * objfiles.h (struct objfile_per_bfd_storage) <name_of_main,
10188 language_of_main>: New fields.
10189 (set_objfile_main_name): Declare.
10190 * symtab.c (find_main_name): Loop over objfiles to find the main
10192 (set_main_name): Now static.
10193 (get_main_info): Add comment.
10194 * symtab.h (set_main_name): Don't declare.
10196 2014-01-15 Tom Tromey <tromey@redhat.com>
10198 * symtab.c (main_progspace_key): New global.
10199 (struct main_info): New.
10200 (name_of_main, language_of_main): Remove.
10201 (get_main_info, main_info_cleanup): New function.
10202 (set_main_name, main_name, main_language): Use get_main_info.
10203 (_initialize_symtab): Initialize main_progspace_key.
10205 2014-01-15 Tom Tromey <tromey@redhat.com>
10207 * dbxread.c (process_one_symbol): Update.
10208 * dwarf2read.c (read_partial_die): Update.
10209 * symfile.c (set_initial_language): Call main_language.
10210 * symtab.c (language_of_main): Now static.
10211 (set_main_name): Add 'lang' parameter.
10212 (find_main_name): Update.
10213 (main_language): New function.
10214 (symtab_observer_executable_changed): Update.
10215 * symtab.h (set_main_name): Update.
10216 (language_of_main): Remove.
10217 (main_language): Declare.
10219 2014-01-15 Tom Tromey <tromey@redhat.com>
10221 * symfile.c (init_entry_point_info): Use new "initialized" field.
10223 * objfiles.h (struct entry_point) <initialized>: New field.
10224 (struct objfile_per_bfd_storage) <ei>: New field, moved from...
10225 (struct objfile) <ei>: ...here. Remove.
10226 * objfiles.c (entry_point_address_query): Update.
10228 2014-01-15 Tom Tromey <tromey@redhat.com>
10230 * objfiles.c (entry_point_address_query): Relocate entry point
10232 (objfile_relocate1): Do not relocate entry point address.
10233 * objfiles.h (struct entry_info) <entry_point>: Update comment.
10234 <the_bfd_section_index>: New field.
10235 * symfile.c (init_entry_point_info): Find the entry point's
10238 2014-01-15 Tom Tromey <tromey@redhat.com>
10240 * solib-frv.c (enable_break): Use entry_point_address_query.
10242 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10244 * NEWS: Add note on improved process record-replay on
10245 arm*-linux* targets.
10247 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10249 * arm-tdep.c (enum arm_record_result): New enum.
10250 (arm_record_unsupported_insn): New function.
10251 (arm_record_coproc_data_proc): Removed.
10252 (thumb2_record_ld_st_multiple): New function.
10253 (thumb2_record_ld_st_dual_ex_tbb): New function.
10254 (thumb2_record_data_proc_sreg_mimm): New function.
10255 (thumb2_record_ps_dest_generic): New function.
10256 (thumb2_record_branch_misc_cntrl): New function.
10257 (thumb2_record_str_single_data): New function.
10258 (thumb2_record_ld_mem_hints): New function.
10259 (thumb2_record_ld_word): New function.
10260 (thumb2_record_lmul_lmla_div): New function.
10261 (thumb2_record_decode_insn_handler): New function.
10262 (decode_insn): Add thumb32 instruction handlers.
10264 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10266 * arm-linux-tdep.c: Include "record-full.h" and "linux-record.h".
10267 (struct arm_linux_record_tdep): Declare.
10268 (arm_canonicalize_syscall): New function.
10269 (arm_all_but_pc_registers_record): New function.
10270 (arm_linux_syscall_record): New function.
10271 (arm_linux_init_abi): Add syscall recording constructs.
10272 * arm-tdep.c (thumb_record_ldm_stm_swi): Update thumb syscall
10273 decoding. (arm_record_coproc_data_proc): Update arm syscall
10275 * arm-tdep.h (struct gdbarch_tdep) <arm_swi_record>: Remove.
10276 <arm_syscall_record>: New field.
10277 * configure.tgt (arm*-*-linux*): Add linux-record.o to
10280 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10282 * arm-tdep.c (thumb_record_misc): Update to use sp as base
10283 register for push instruction recording.
10285 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10287 * arm-tdep.c (thumb_record_misc): Update to correct logical
10288 error while recording ldm, ldmia and pop instructions.
10290 2014-01-15 Omair Javaid <omair.javaid@linaro.org>
10292 * arm-tdep.c (struct arm_mem_r) <addr>: Change type to uint32_t.
10294 2014-01-15 Pedro Alves <palves@redhat.com>
10296 * go32-nat.c (go32_open, go32_close, go32_attach, go32_detach)
10297 (go32_resume, go32_fetch_registers, store_register)
10298 (go32_store_registers, go32_prepare_to_store)
10299 (go32_xfer_memory, go32_files_info, go32_kill_inferior)
10300 (go32_create_inferior, go32_can_run, go32_terminal_init)
10301 (go32_terminal_inferior, go32_terminal_ours): Delete forward
10304 2014-01-15 Tom Tromey <tromey@redhat.com>
10306 * target.h (async_callback_ftype): New typedef.
10307 (struct target_ops) <to_async>: Use it.
10309 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10311 * python/py-value.c (get_field_type): Remove unnecessary curly
10312 braces for single-statement if block.
10314 2014-01-15 Joel Brobecker <brobecker@adacore.com>
10316 * python/py-type.c (convert_field): Add missing empty line
10317 after declarations.
10319 2014-01-14 Doug Evans <dje@google.com>
10321 * symfile.h (expand_symtabs_matching): Renamed from
10322 expand_partial_symbol_names. Update prototype.
10323 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10324 * symfile.c (expand_symtabs_matching): Renamed from
10325 expand_partial_symbol_names. New args file_matcher, kind.
10326 Rename arg fun to symbol_matcher.
10327 (map_symbol_filenames): Renamed from map_partial_symbol_filenames.
10328 * ada-lang.c (ada_complete_symbol_matcher): Renamed from
10329 ada_expand_partial_symbol_name.
10330 (ada_make_symbol_completion_list): Update to call
10331 expand_symtabs_matching.
10332 (ada_add_global_exceptions): Call expand_symtabs_matching.
10333 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_files): Update to
10334 call map_symbol_filenames.
10335 * symtab.c (sources_info): Update to call map_symbol_filenames.
10336 (search_symbols): Call expand_symtabs_matching.
10337 (symbol_completion_matcher): Renamed from expand_partial_symbol_name.
10338 (default_make_symbol_completion_list_break_on): Update to call
10339 expand_symtabs_matching.
10340 (make_source_files_completion_list): Update to call
10341 map_symbol_filenames.
10343 2014-01-14 Doug Evans <dje@google.com>
10345 * symfile.h (expand_symtabs_file_matcher_ftype): New typedef.
10346 (expand_symtabs_symbol_matcher_ftype): New typedef.
10347 (quick_symbol_functions.expand_symtabs_matching): Update to use.
10348 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10349 * symfile.c (expand_partial_symbol_names): Update to use
10350 expand_symtabs_symbol_matcher_ftype.
10351 * dwarf2read.c (dw2_expand_symtabs_matching): Update to use
10352 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10353 Arg name_matcher renamed to symbol_matcher.
10354 * psymtab.c (recursively_search_psymtabs): Update to use
10355 expand_symtabs_symbol_matcher_ftype. Arg name_matcher renamed to
10357 (expand_symtabs_matching_via_partial): Update to use
10358 expand_symtabs_file_matcher_ftype, expand_symtabs_symbol_matcher_ftype.
10359 Arg name_matcher renamed to symbol_matcher.
10361 2014-01-14 Doug Evans <dje@google.com>
10363 * psymtab.c (expand_partial_symbol_names): Delete, moved to symfile.c.
10364 (map_partial_symbol_filenames): Ditto.
10365 * psymtab.h (expand_partial_symbol_names): Delete, moved to symfile.h.
10366 (map_partial_symbol_filenames): Ditto.
10367 * symfile.c (expand_partial_symbol_names): Moved here from psymtab.c.
10368 (map_partial_symbol_filenames): Ditto.
10369 * symfile.h (expand_partial_symbol_names): Moved here from psymtab.h.
10370 (map_partial_symbol_filenames): Ditto.
10371 * symtab.c: Delete #include "psymtab.h".
10373 2014-01-14 Pedro Alves <palves@redhat.com>
10374 Tom Tromey <tromey@redhat.com>
10376 * infrun.c (use_displaced_stepping): Use find_record_target
10377 instead of RECORD_IS_USED.
10378 (adjust_pc_after_break): Use record_full_is_used instead of
10380 * record-btrace.c (record_btrace_open): Call record_preopen
10381 instead of checking RECORD_IS_USED.
10382 * record-full.c (record_full_shortname)
10383 (record_full_core_shortname): New globals.
10384 (record_full_is_used): New function.
10385 (find_full_open): Call record_preopen instead of checking
10387 (init_record_full_ops): Set the target's shortname to
10388 record_full_shortname.
10389 (init_record_full_core_ops): Set the target's shortname to
10390 record_full_core_shortname.
10391 * record-full.h (record_full_is_used): Declare.
10392 * record.c (find_record_target): Make extern.
10393 (record_preopen): New function.
10394 * record.h (RECORD_IS_USED): Delete macro.
10395 (find_record_target, record_preopen): Declare functions.
10397 2014-01-14 Yao Qi <yao@codesourcery.com>
10399 * gdbarch.sh (core_xfer_shared_libraries): Change its argument
10400 'len''s type to ULONGEST.
10401 (core_xfer_shared_libraries_aix): Likewise.
10402 * gdbarch.c, gdbarch.h: Regenerated.
10403 * i386-cygwin-tdep.c (windows_core_xfer_shared_libraries):
10404 Change type of 'len' to ULONGEST.
10405 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10406 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
10408 2014-01-14 Yao Qi <yao@codesourcery.com>
10410 * common/linux-osdata.c (linux_xfer_osdata_processes): Change
10411 type of 'len' to ULONGEST.
10412 (linux_xfer_osdata_processgroups): Likewise.
10413 (linux_xfer_osdata_threads): Likewise.
10414 (linux_xfer_osdata_fds): Likewise.
10415 (linux_xfer_osdata_isockets): Likewise.
10416 (linux_xfer_osdata_shm): Likewise.
10417 (linux_xfer_osdata_sem): Likewise.
10418 (linux_xfer_osdata_msg): Likewise.
10419 (linux_common_xfer_osdata): Likewise.
10420 (struct osdata_type) <getter>: Likewise.
10421 * common/linux-osdata.h (linux_common_xfer_osdata): Update
10424 2014-01-14 Yao Qi <yao@codesourcery.com>
10426 * target.h (target_xfer_partial_ftype): Update.
10427 (struct target_ops) <to_xfer_partial>: Change 'len' type to
10429 * aix-thread.c (aix_thread_xfer_partial): Change type of
10430 argument 'len' to ULONGEST.
10431 * auxv.c (procfs_xfer_auxv): Likewise.
10432 (ld_so_xfer_auxv): Likewise.
10433 (memory_xfer_auxv): Likewise.
10434 * bfd-target.c (target_bfd_xfer_partial): Likewise.
10435 * bsd-kvm.c (bsd_kvm_xfer_partial): Likewise.
10436 * bsd-uthread.c (bsd_uthread_xfer_partial): Likewise.
10437 * corelow.c (core_xfer_partial): Likewise.
10438 * ctf.c (ctf_xfer_partial): Likewise.
10439 * darwin-nat.c (darwin_read_write_inferior): Likewise. Use
10441 (darwin_read_dyld_info): Likewise.
10442 (darwin_xfer_partial): Likewise.
10443 * exec.c (section_table_xfer_memory_partial): Likewise.
10444 (exec_xfer_partial): Likewise.
10445 * exec.h (section_table_xfer_memory_partial): Update
10447 * gnu-nat.c (gnu_xfer_memory): Likewise. Call pulongest
10448 instead of plongest.
10449 (gnu_xfer_partial): Likewise.
10450 * ia64-hpux-nat.c (ia64_hpux_xfer_memory): Likewise.
10451 (ia64_hpux_xfer_solib_got): Likewise.
10452 (ia64_hpux_xfer_partial): Likewise.
10453 * ia64-linux-nat.c (ia64_linux_xfer_partial):
10454 * inf-ptrace.c (inf_ptrace_xfer_partial):
10455 * inf-ttrace.c (inf_ttrace_xfer_partial):
10456 * linux-nat.c (linux_xfer_siginfo): Likewise.
10457 (linux_nat_xfer_partial): Likewise.
10458 (spu_enumerate_spu_ids, linux_proc_xfer_spu): Likewise.
10459 (linux_nat_xfer_osdata, linux_xfer_partial): Likewise.
10460 * monitor.c (monitor_xfer_memory): Likewise.
10461 (monitor_xfer_partial): Likewise.
10462 * procfs.c (procfs_xfer_partial): Likewise.
10463 * record-full.c (record_full_xfer_partial): Likewise.
10464 (record_full_core_xfer_partial): Likewise.
10465 * remote-sim.c (gdbsim_xfer_memory): Likewise. Call pulongest
10466 instead of plongest.
10467 (gdbsim_xfer_partial): Likewise.
10468 * remote.c (remote_xfer_partial): Likewise.
10469 * rs6000-aix-tdep.c (rs6000_aix_ld_info_to_xml): Likewise.
10470 * rs6000-aix-tdep.h (rs6000_aix_ld_info_to_xml): Update
10472 * rs6000-nat.c (rs6000_xfer_partial): Likewise.
10473 (rs6000_xfer_shared_libraries): Likewise.
10474 * sol-thread.c (sol_thread_xfer_partial): Likewise.
10475 * sparc-nat.c (sparc_xfer_wcookie): Likewise.
10476 (sparc_xfer_partial): Likewise.
10477 * spu-linux-nat.c (spu_proc_xfer_spu): Likewise.
10478 (spu_xfer_partial): Likewise.
10479 * spu-multiarch.c (spu_xfer_partial): Likewise.
10480 * target.c (target_read_live_memory): Likewise.
10481 (memory_xfer_live_readonly_partial): Likewise.
10482 (memory_xfer_partial, memory_xfer_partial_1): Likewise.
10483 (target_xfer_partial, default_xfer_partial): Likewise.
10484 (current_xfer_partial): Likewise.
10485 * tracepoint.c (tfile_xfer_partial): Likewise.
10486 * windows-nat.c (windows_xfer_memory): Likewise. Call
10487 pulongest instead of plongest.
10488 (windows_xfer_partial): Likewise.
10489 (windows_xfer_shared_libraries): Likewise.
10491 2014-01-14 Yao Qi <yao@codesourcery.com>
10493 * rs6000-nat.c (rs6000_xfer_shared_libraries): Use
10494 target_xfer_partial_ftype.
10496 2014-01-13 Siva Chandra Reddy <sivachandra@google.com>
10500 * valops.c (value_struct_elt_bitpos): New function
10501 * py-type.c (convert_field): Set 'name' attribute of a gdb.Field
10502 object to 'None' if the field name is an empty string ("").
10503 * python/py-value.c (valpy_getitem): Use 'bitpos' and 'type'
10504 attribute to look for a field when 'name' is 'None'.
10505 (get_field_type): New function
10507 2014-01-13 Doug Evans <dje@google.com>
10510 * dwarf2read.c (dwarf2_get_dwz_file): Call gdb_bfd_record_inclusion.
10511 (try_open_dwop_file): Ditto.
10512 * gdb_bfd.c: #include "vec.h".
10513 (bfdp): New typedef.
10514 (struct gdb_bfd_data): New member included_bfds.
10515 (gdb_bfd_unref): Unref all included bfds.
10516 (gdb_bfd_record_inclusion): New function.
10517 * gdb_bfd.h (gdb_bfd_record_inclusion): Declare.
10519 2014-01-13 Tom Tromey <tromey@redhat.com>
10521 * gdbcore.h (deprecated_core_resize_section_table): Remove.
10523 2014-01-13 Tom Tromey <tromey@redhat.com>
10525 * defs.h (use_windows): Remove.
10526 * gdb.c (main): Update.
10527 * main.c (captured_main, gdb_main): Update.
10528 * main.h (struct captured_main_args) <use_windows>: Remove.
10529 * top.c (use_windows): Remove.
10531 2014-01-13 Tom Tromey <tromey@redhat.com>
10533 * defs.h (deprecated_flush_hook): Remove.
10535 2014-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10538 * linux-thread-db.c (try_thread_db_load): Add parameter
10539 check_auto_load_safe. Move here the file_is_auto_load_safe call.
10540 (try_thread_db_load_from_pdir_1): Move it there from here.
10541 (try_thread_db_load_from_sdir): Update caller.
10542 (try_thread_db_load_from_dir): Move it there from here.
10544 2014-01-13 Patrick Palka <patrick@parcs.ath.cx>
10546 * regformats/regdat.sh: Always rewrite the register file.
10548 2014-01-13 Pedro Alves <palves@redhat.com>
10550 * Makefile.in (CHECK_HEADERS): New variable.
10551 (check-headers:): New rule.
10553 2014-01-13 Tom Tromey <tromey@redhat.com>
10555 * cli/cli-setshow.c (do_set_command): Update.
10556 * defs.h (deprecated_set_hook): Remove.
10557 * top.c (deprecated_set_hook): Remove.
10559 2014-01-13 Pedro Alves <palves@redhat.com>
10561 * tracepoint.c (tfile_fetch_registers): Don't infer the PC from
10562 the tracepoint if the PC is a pseudo-register.
10564 2014-01-13 Tom Tromey <tromey@redhat.com>
10566 * defs.h (XCALLOC): Remove.
10567 * bcache.c (bcache_xmalloc): Use XCNEW, not XCALLOC.
10568 (print_bcache_statistics): Use XCNEWVEC, not XCALLOC.
10569 * dwarf2loc.c (allocate_piece_closure): Likewise.
10570 * elfread.c (elf_symfile_segments): Likewise.
10571 (elf_symfile_segments): Likewise.
10572 * gdbtypes.c (copy_type_recursive): Likewise.
10573 * i386-tdep.c (i386_gdbarch_init): Use XCNEW, not XCALLOC.
10574 * jit.c (jit_frame_sniffer): Use XCNEWVEC, not XCALLOC.
10575 * minsyms.c (prim_record_minimal_symbol_full): Use XCNEW, not
10577 * mt-tdep.c (mt_gdbarch_init): Likewise.
10578 * opencl-lang.c (allocate_lval_closure): Use XCNEWVEC, not
10580 * psymtab.c (psymbol_compare): Use XCNEW, not XCALLOC.
10581 * regcache.c (regcache_xmalloc_1): Use XCNEWVEC, not XCALLOC.
10582 * registry.c (registry_alloc_data): Likewise.
10583 * rs6000-tdep.c (rs6000_gdbarch_init): Use XCNEW, not XCALLOC.
10584 * s390-linux-tdep.c (s390_gdbarch_init): Likewise.
10585 * serial.c (serial_fdopen_ops): Likewise.
10586 * solib-aix.c (solib_aix_get_section_offsets): Use XCNEWVEC, not
10588 * spu-tdep.c (spu_gdbarch_init): Use XCNEW, not XCALLOC.
10589 * symfile.c (default_symfile_segments): Use XCNEW and XCNEWVEC,
10592 2014-01-13 Tom Tromey <tromey@redhat.com>
10594 * defs.h (XMALLOC): Remove.
10595 * avr-tdep.c (avr_gdbarch_init): Use XNEW, not XMALLOC.
10596 * bfin-tdep.c (bfin_gdbarch_init): Likewise.
10597 * cli-out.c (struct ui_out *): Likewise.
10598 * cli/cli-dump.c (add_dump_command): Likewise.
10599 (add_dump_command): Likewise.
10600 * complaints.c (get_complaints): Likewise.
10601 (find_complaint): Likewise.
10602 * dwarf2-frame.c (execute_cfa_program): Likewise.
10603 * dwarf2read.c (abbrev_table_read_table): Likewise.
10604 * gdbarch.sh: Likewise.
10605 * gdbarch.c: Rebuild.
10606 * inf-ttrace.c (inf_ttrace_add_page): Likewise.
10607 * interps.c (interp_new): Likewise.
10608 * lm32-tdep.c (lm32_gdbarch_init): Likewise.
10609 * m32r-tdep.c (m32r_gdbarch_init): Likewise.
10610 * mi/mi-console.c (mi_console_file_new): Likewise.
10611 * mi/mi-interp.c (mi_interpreter_init): Likewise.
10612 * mi/mi-out.c (mi_out_new): Likewise.
10613 * mi/mi-parse.c (mi_parse): Likewise.
10614 * microblaze-tdep.c (microblaze_gdbarch_init): Likewise.
10615 * moxie-tdep.c (moxie_gdbarch_init): Likewise.
10616 * observer.c (xalloc_observer_list_node): Likewise.
10617 * regcache.c (regcache_xmalloc_1): Likewise.
10618 * reggroups.c (reggroup_new): Likewise.
10619 (_initialize_reggroup): Likewise.
10620 * registry.c (register_data_with_cleanup): Likewise.
10621 * remote.c (remote_notif_stop_alloc_reply): Likewise.
10622 * ser-base.c (serial_ttystate): Likewise.
10623 * ser-mingw.c (make_pipe_state): Likewise.
10624 * ser-pipe.c (pipe_open): Likewise.
10625 * serial.c (serial_open): Likewise.
10626 * sh64-tdep.c (sh64_gdbarch_init): Likewise.
10627 * tui/tui-data.c (tui_alloc_generic_win_info): Likewise.
10628 (tui_alloc_win_info): Likewise.
10629 (tui_add_content_elements): Likewise.
10630 * tui/tui-file.c (tui_file_new): Likewise.
10631 * tui/tui-out.c (tui_out_new): Likewise.
10632 * ui-file.c (mem_file_new): Likewise.
10633 * ui-out.c (push_level): Likewise.
10634 (make_cleanup_ui_out_end): Likewise.
10635 (append_header_to_list): Likewise.
10636 (ui_out_new): Likewise.
10637 * user-regs.c (user_reg_add_builtin): Likewise.
10639 2014-01-13 Tom Tromey <tromey@redhat.com>
10641 * defs.h (XZALLOC): Remove.
10642 * ada-lang.c (get_ada_inferior_data): Use XCNEW, not XZALLOC.
10643 * ada-tasks.c (get_ada_tasks_pspace_data): Likewise.
10644 (get_ada_tasks_inferior_data): Likewise.
10645 * auto-load.c (get_auto_load_pspace_data): Likewise.
10646 * auxv.c (get_auxv_inferior_data): Likewise.
10647 * bfd-target.c (target_bfd_reopen): Likewise.
10648 * breakpoint.c (get_catch_syscall_inferior_data): Likewise.
10649 (deprecated_insert_raw_breakpoint): Likewise.
10650 * bsd-uthread.c (bsd_uthread_pid_to_str): Likewise.
10651 * corelow.c (core_open): Likewise.
10652 * darwin-nat.c (darwin_check_new_threads): Likewise.
10653 (darwin_attach_pid): Likewise.
10654 * dummy-frame.c (dummy_frame_push): Likewise.
10655 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
10656 * dwarf2loc.c (allocate_piece_closure): Likewise.
10657 * elfread.c (elf_symfile_segments): Likewise.
10658 * eval.c (ptrmath_type_p): Likewise.
10659 * exceptions.c (EXCEPTIONS_SIGJMP_BUF): Likewise.
10660 * gdbtypes.c (alloc_type_arch): Likewise.
10661 (alloc_type_instance): Likewise.
10662 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
10663 * inf-child.c (inf_child_can_use_agent): Likewise.
10664 * inflow.c (get_inflow_inferior_data): Likewise.
10665 * infrun.c (save_infcall_suspend_state): Likewise.
10666 * jit.c (jit_reader_load): Likewise.
10667 (get_jit_objfile_data): Likewise.
10668 (get_jit_program_space_data): Likewise.
10669 (jit_object_open_impl): Likewise.
10670 (jit_symtab_open_impl): Likewise.
10671 (jit_block_open_impl): Likewise.
10672 (jit_frame_sniffer): Likewise.
10673 * linux-fork.c (add_fork): Likewise.
10674 * maint.c (make_command_stats_cleanup): Likewise.
10675 * objfiles.c (get_objfile_pspace_data): Likewise.
10676 * opencl-lang.c (struct lval_closure): Likewise.
10677 * osdata.c (osdata_start_osdata): Likewise.
10678 * progspace.c (new_address_space): Likewise.
10679 (add_program_space): Likewise.
10680 * remote-sim.c (get_sim_inferior_data): Likewise.
10681 * sh-tdep.c (sh_gdbarch_init): Likewise.
10682 * skip.c (Ignore): Likewise.
10683 (skip_delete_command): Likewise.
10684 * solib-aix.c (get_solib_aix_inferior_data): Likewise.
10685 (library_list_start_library): Likewise.
10686 (solib_aix_current_sos): Likewise.
10687 * solib-darwin.c (get_darwin_info): Likewise.
10688 (darwin_current_sos): Likewise.
10689 * solib-dsbt.c (get_dsbt_info): Likewise.
10690 * solib-ia64-hpux.c (new_so_list): Likewise.
10691 (ia64_hpux_get_solib_linkage_addr): Likewise.
10692 * solib-spu.c (append_ocl_sos): Likewise.
10693 (spu_current_sos): Likewise.
10694 * solib-svr4.c (get_svr4_info): Likewise.
10695 (svr4_keep_data_in_core): Likewise.
10696 (library_list_start_library): Likewise.
10697 (svr4_default_sos): Likewise.
10698 (svr4_read_so_list): Likewise.
10699 * solib-target.c (library_list_start_library): Likewise.
10700 (solib_target_current_sos): Likewise.
10701 * sparc-tdep.c (sparc32_gdbarch_init): Likewise.
10702 * symfile-debug.c (install_symfile_debug_logging): Likewise.
10703 * symfile.c (default_symfile_segments): Likewise.
10704 * target-descriptions.c (tdesc_data_init): Likewise.
10705 (tdesc_create_reg): Likewise.
10706 (struct tdesc_type *): Likewise.
10707 (tdesc_create_vector): Likewise.
10708 (tdesc_set_struct_size): Likewise.
10709 (struct tdesc_type *): Likewise.
10710 (tdesc_free_feature): Likewise.
10711 (tdesc_create_feature): Likewise.
10712 * windows-nat.c (windows_add_thread): Likewise.
10713 (windows_make_so): Likewise.
10714 * xml-support.c (gdb_xml_body_text): Likewise.
10715 (gdb_xml_create_parser_and_cleanup): Likewise.
10716 (xml_process_xincludes): Likewise.
10717 * xml-syscall.c (allocate_syscalls_info): Likewise.
10718 (syscall_create_syscall_desc): Likewise.
10720 2014-01-12 Sergio Durigan Junior <sergiodj@redhat.com>
10722 * i386-tdep.c (i386_stap_parse_special_token_triplet): New
10723 function, with code from i386_stap_parse_special_token.
10724 (i386_stap_parse_special_token_three_arg_disp): Likewise.
10725 (i386_stap_parse_special_token): Move code to the two functions
10726 above; simplify it.
10728 2014-01-09 Pedro Alves <palves@redhat.com>
10729 Hui Zhu <hui@codesourcery.com>
10732 * breakpoint.c (insert_bp_location): Rename hw_bp_err_string to
10733 bp_err_string. Don't mark the location shlib_disabled if the
10734 error thrown wasn't a generic or memory error. Catch errors
10735 thrown while inserting breakpoints in overlayed code. Output
10736 error message of software breakpoints.
10737 * remote.c (remote_insert_breakpoint): If this breakpoint has
10738 target-side commands but this stub doesn't support Z0 packets,
10739 throw NOT_SUPPORTED_ERROR error.
10740 * exceptions.h (enum errors) <NOT_SUPPORTED_ERROR>: New error.
10741 * target.h (target_insert_breakpoint): Extend comment.
10742 (target_insert_hw_breakpoint): Add comment.
10744 2014-01-08 Pedro Alves <palves@redhat.com>
10746 * remote.c (remote_add_thread): Add threads silently if starting
10748 (remote_notice_new_inferior): If in all-stop, and starting up,
10749 don't call notice_new_inferior.
10750 (get_current_thread): New function, factored out from ...
10751 (add_current_inferior_and_thread): ... this. Adjust.
10752 (remote_start_remote) <all-stop>: Fetch the thread list. If we
10753 found any thread, then select the remote's current thread as GDB's
10754 current thread too.
10756 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10758 * NEWS: Create a new section for the next release branch.
10759 Rename the section of the current branch, now that it has
10762 2014-01-08 Joel Brobecker <brobecker@adacore.com>
10764 GDB 7.7 branch created (79301218fa0f074c5656db0ec8972a5ddcf91fb5):
10765 * version.in: Bump version to 7.7.50.DATE-cvs.
10767 2014-01-08 Yao Qi <yao@codesourcery.com>
10769 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Change
10770 type of 'id' to gdb_byte. Cast 'id' to 'const char *'.
10771 (spu_xfer_partial): Cast 'buf' to 'const char *'.
10773 2014-01-08 Yao Qi <yao@codesourcery.com>
10775 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Pass
10776 return value of bfd_get_filename to symbol_file_add_from_bfd.
10778 2014-01-08 Pierre Muller <muller@sourceware.org>
10781 * coff-pe-read.c (struct read_pe_section_data): Add index field.
10782 (add_pe_exported_sym): Use SECTION_DATA->INDEX for call
10783 to prim_record_mininal_symbol_and_info.
10784 (add_pe_forwarded_sym): Use known section number of forwarded symbol
10785 in call to prim_record_minimal_symbol_and_info.
10786 (read_pe_exported_syms): Set index field of section_data.
10788 2014-01-07 Andrew Pinski <apinski@cavium.com>
10790 * features/aarch64-core.xml (cpsr): Change to be 64bit.
10791 * features/aarch64.c: Regenerate.
10793 2014-01-07 Andreas Schwab <schwab@linux-m68k.org>
10795 * target.c (return_null): Define.
10796 (update_current_target): Use it instead of return_zero for
10797 functions that return a pointer.
10799 2014-01-07 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
10801 * source.c (add_path): Fix check for duplicated paths in the previously
10804 2014-01-07 Honggyu Kim <hong.gyu.kim@lge.com>
10806 * ada-lang.c: Remove duplicated include statements.
10807 * alphabsd-nat.c: Ditto.
10808 * amd64-darwin-tdep.c: Ditto.
10809 * amd64fbsd-nat.c: Ditto.
10810 * auto-load.c: Ditto.
10812 * breakpoint.c: Ditto.
10813 * dbxread.c: Ditto.
10814 * fork-child.c: Ditto.
10815 * gdb_usleep.c: Ditto.
10816 * i386-darwin-tdep.c: Ditto.
10817 * i386fbsd-nat.c: Ditto.
10819 * inferior.c: Ditto.
10820 * jv-lang.c: Ditto.
10821 * linux-nat.c: Ditto.
10822 * linux-tdep.c: Ditto.
10823 * m68kbsd-nat.c: Ditto.
10824 * m68klinux-nat.c: Ditto.
10825 * microblaze-tdep.c: Ditto.
10826 * mips-linux-tdep.c: Ditto.
10827 * mn10300-tdep.c: Ditto.
10828 * nto-tdep.c: Ditto.
10829 * opencl-lang.c: Ditto.
10831 * printcmd.c: Ditto.
10832 * regcache.c: Ditto.
10833 * remote-m32r-sdi.c: Ditto.
10835 * symfile.c: Ditto.
10837 * tilegx-linux-nat.c: Ditto.
10838 * tilegx-tdep.c: Ditto.
10839 * tracepoint.c: Ditto.
10841 * vaxbsd-nat.c: Ditto.
10842 * windows-nat.c: Ditto.
10843 * xtensa-tdep.c: Ditto.
10845 2014-01-07 Yao Qi <yao@codesourcery.com>
10847 * spu-linux-nat.c (_initialize_spu_nat): Declare.
10849 2014-01-07 Yao Qi <yao@codesourcery.com>
10850 Joel Brobecker <brobecker@adacore.com>
10852 * aix-thread.c (pdc_read_regs): Cast parameter to uintptr_t.
10853 (pdc_write_regs): Likewise.
10854 (fetch_regs_kernel_thread): Likewise.
10855 (store_regs_kernel_thread): Likewise.
10857 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10859 * ada-varobj.c (ada_varobj_adjust_for_child_access): Convert
10860 tagged type objects to their actual type.
10862 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10864 * ada-valprint.c (print_field_values): Add "language" parameter.
10865 Update calls to print_field_values and print_variant_part.
10866 Pass new parameter "language" in call to val_print instead
10867 of "current_language". Replace call to ada_val_print by call
10869 (print_variant_part): Add "language" parameter.
10870 (ada_val_print_struct_union): Update call to print_field_values.
10872 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10874 * ada-valprint.c (ui_memcpy): Delete.
10875 (ada_print_floating): Update documentation. Add empty line
10876 between between function documentation and implementation.
10877 Delete variable "buffer". Use ui_file_xstrdup in place of
10878 ui_file_put. Minor adjustments following this change.
10880 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10882 * ada-valprint.c (ada_val_print_string): New function,
10883 extracted from ada_val_print_array.
10884 (ada_val_print_array): Replace extracted code by call
10885 to ada_val_print_string followed by a return. Move
10886 "else" branch to the function's top block.
10888 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10890 * ada-valprint.c (ada_val_print_array): Move implementation
10891 down. Rename parameter "offset" and "val" into "offset_aligned"
10892 and "original_value" respectively. Add parameter "offset".
10894 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10896 * ada-valprint.c (ada_val_print_ref): Rewrite by mostly
10897 re-organizing the code. Change the "???" message printed
10898 when target type is a TYPE_CODE_UNDEF into
10899 "<ref to undefined type>".
10901 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10903 * ada-valprint.c (print_record): Delete, implementation inlined...
10904 (ada_val_print_struct_union): ... here. Remove call to
10905 ada_check_typedef in inlined implementation.
10907 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10909 * ada-valprint.c (ada_val_print_gnat_array): New function,
10910 extracted from ada_val_print_1;
10911 (ada_val_print_ptr, ada_val_print_num, ada_val_print_enum)
10912 (ada_val_print_flt, ada_val_print_struct_union)
10913 (ada_val_print_ref): Likewise.
10914 (ada_val_print_1): Delete variables i and elttype.
10915 Replace extracted-out code by call to corresponding
10918 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10920 * ada-valprint.c (ada_val_print_1): Remove call to gdb_flush.
10922 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10924 * ada-valprint.c (ada_val_print_1): Replace calls to
10925 ada_val_print_1 by calls to val_print.
10927 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10929 * ada-valprint.c (ada_val_print_1): Add parameter "language".
10930 Update calls to self accordingly. Replace calls to c_val_print
10931 by calls to val_print.
10933 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10935 * ada-valprint.c (print_record): Delete declaration.
10936 (adjust_type_signedness, ada_val_print_1): Likewise.
10937 (ada_val_print): Move function implementation down.
10938 (print_variant_part, print_field_values, print_record):
10939 Move function implementation up.
10941 2014-01-07 Joel Brobecker <brobecker@adacore.com>
10943 * python/py-type.c (typy_get_name): New function.
10944 (type_object_getset): Add entry for attribute "name".
10945 * NEWS: Add entry mentioning this new attribute.
10947 2014-01-07 Yao Qi <yao@codesourcery.com>
10949 * gnu-nat.c (set_exceptions_cmd): Remove an empty body 'if'
10952 2014-01-07 Yao Qi <yao@codesourcery.com>
10954 * gnu-nat.c (info_port_rights): Add qualifier const to
10957 2014-01-07 Yao Qi <yao@codesourcery.com>
10959 * gnu-nat.c (trace_me): Use 'void' for empty argument list.
10961 2014-01-07 Yao Qi <yao@codesourcery.com>
10963 * gnu-nat.c (make_inf) Update declaration.
10964 (make_inf): Make it static.
10965 (inf_set_traced): Likewise.
10966 (inf_port_to_thread, inf_task_died_status): Likewise.
10968 2014-01-07 Yao Qi <yao@codesourcery.com>
10970 * gnu-nat.c (inf_tid_to_proc): Remove declaration.
10972 2014-01-07 Yao Qi <yao@codesourcery.com>
10974 * gnu-nat.c (_initialize_gnu_nat): Declare.
10976 2014-01-07 Yao Qi <yao@codesourcery.com>
10978 * gdbarch.sh (byte_order, byte_order_for_code): Change type to
10980 (struct gdbarch_info) <byte_order>: Change type to
10982 <byte_order_for_code>: Likewise.
10983 * gdbarch.c, gdbarch.h: Regenerated.
10985 2014-01-06 Sasha Smundak <asmundak@google.com>
10987 * jit.c: (jit_reader_load_command): Fix JIT reader path creation.
10989 2014-01-06 Tom Tromey <tromey@redhat.com>
10991 * doublest.c (convert_doublest_to_floatformat): Use const, not
10993 * somread.c (som_symtab_read): Likewise.
10995 2014-01-07 Hui Zhu <hui@codesourcery.com>
10997 * gdb_bfd.c (gdb_bfd_stash_filename): Removed.
10998 (gdb_bfd_open): Removed gdb_bfd_stash_filename.
10999 (gdb_bfd_fopen): Ditto.
11000 (gdb_bfd_openr): Ditto.
11001 (gdb_bfd_openw): Ditto.
11002 (gdb_bfd_openr_iovec): Ditto.
11003 (gdb_bfd_fdopenr): Ditto.
11004 * gdb_bfd.h (gdb_bfd_stash_filename): Removed.
11005 * solib-aix.c (solib_aix_bfd_open): Alloc object_bfd->filename
11007 * solib-darwin.c (darwin_bfd_open): Alloc res->filename
11009 * symfile-mem.c (symbol_file_add_from_memory): Removed
11010 gdb_bfd_stash_filename.
11012 2014-01-03 Doug Evans <dje@google.com>
11014 * nat/linux-waitpid.c (linux_debug): Remove extraneous \n from
11017 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11019 Update year range in copyright notice of all files.
11021 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11023 * top.c (print_gdb_version): Set copyright year to 2014.
11025 2014-01-01 Joel Brobecker <brobecker@adacore.com>
11027 * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2013.
11029 For older changes see ChangeLog-2013.
11035 version-control: never